![]() |
![]() |
|
The language accepted by the machine is the set of all strings over {a,b} that start with , followed by .
You might, or might not, need to include furtherfollowed bys in the solution.
hint: You should use the wordsevenand/orodd, and might or might not need to include the phrases0 or moreor1 or more.
hint: My own solution has about 20 words filling in the blanks.
no leading zerosrequirement (so, e.g., you should accept 00100). But we will also consider the empty-string as denoting 0 (since it is how you'd write zero if you choose to not include any leading zeroes!). These conventions simplify the solution1.
in math), as in the second sentence of the book's Example 5.2 (pg 43 = 58-15).
RPS-win-by-2), part b.
convenience: If typing your transitions, you don't need to typeset (say) RP; you can simply type it asRPand we'll understand it denotes a singlecharacterof Σ.
the first player to win two rounds, let's define it as
the first player to be ahead by two. This makes the answer easier/smaller. On the other hand, games will last longer.
hint: I drew my answer with most states having three outgoing arrows, each of those arrow labeled with three elements of Σ.
convenience: You may simply label an arrowΣto denote that all inputs should follow that arrow.
clarification: The diagram is a bit poorly drawn, with the arrows’ labels all shifted to the right a bit. So from the upper-right state, input a leads either back to itself or down to the lower-right; similarly input b leads to the lower-left, not down to the lower-right.
This page licensed CC-BY 4.0 Ian Barland Page last generated | Please mail any suggestions (incl. typos, broken links) to ibarland ![]() |