Computer Science help (DFA)

SLAM: debunk creationism, pseudoscience, and superstitions. Discuss logic and morality.

Moderator: Alyrium Denryle

Post Reply
User avatar
Pezzoni
Jedi Knight
Posts: 565
Joined: 2005-08-15 03:03pm

Computer Science help (DFA)

Post by Pezzoni »

I need to state what the below DFA does; It seems to accept words starting in 0 and ending in 1, and 1 - a technically correct (as far as I can tell) definition, but it doesn't seem like a particularly tidy definition. Am I missing something here?

Image

Any gentle prodding in the correct direction (if I'm not already there) would be appreciated :)

Thanks,
User avatar
Molyneux
Emperor's Hand
Posts: 7186
Joined: 2005-03-04 08:47am
Location: Long Island

Re: Computer Science help (DFA)

Post by Molyneux »

Pezzoni wrote:I need to state what the below DFA does; It seems to accept words starting in 0 and ending in 1, and 1 - a technically correct (as far as I can tell) definition, but it doesn't seem like a particularly tidy definition. Am I missing something here?

Image

Any gentle prodding in the correct direction (if I'm not already there) would be appreciated :)

Thanks,
As far as I can tell, it accepts any words which:
a) end in 1, and
b) are either only one character long, or begin with 0.

That seems like a tidy enough definition to me...
Ceci n'est pas une signature.
Rekkon
Padawan Learner
Posts: 305
Joined: 2006-07-09 11:52pm

Post by Rekkon »

Unless I am missing something in the notation (we never used '{}', but I assume it is the same as the error trap states we used), either of those definitions seem as simple as you can get.
User avatar
Pezzoni
Jedi Knight
Posts: 565
Joined: 2005-08-15 03:03pm

Post by Pezzoni »

Thanks to both of you; guess I was just over-thinking it a bit :)
Post Reply