Consider the ternary number system. Draw a state diagram for a DFA that accepts ternary strings that are not divisible by nine. What is the corresponding regular expression?
Consider the ternary number system. Draw a state diagram for a DFA that accepts ternary strings...
Part B - Automata Construction Draw a DFA which accepts the following language over the alphabet of {0,1}: the set of all strings such that the number of 0s is divisible by 2 and the number of 1s is divisible by 5. Your DFA must handle all intput strings in {0,1}*. Here is a methodical way to do this: Figure out all the final states and label each with the shortest string it accepts, work backwards from these states to...
Draw a DFA which accepts the following language over the alphabet of {0,1}: the set of all strings such that there are no consecutive 0s, and the number of 1s is divisible by 5. Your DFA must handle all intput strings in {0,1}*. Here is a way to approach the problem: First focus only building the DFA which accepts the language: As you build your DFA, label your states with an explanation of what the state actually represents in terms...
Draw a DFA which accepts the following language over the alphabet of {0,1}: the set of all strings such that there are two consecutive 0s or the number of 1s is not divisible by 5. Your DFA must handle all intput strings in {0,1}*. (Hint: look at solution of previous question)
Draw a state diagram for a DFA that accepts any binary string (e.g.,0101000) that ends with three or more consecutive zeroes.
Design a DFA with 2 states that accepts the language of all binary numbers that are divisible by 3. Demonstrate it with a two-state DFA and a proof that the accepted language is precisely binary strings representing numbers divisible by 3. Otherwise, prove that such a two-state DFA is impossible.
Draw a DFA that accepts all binary strings of length 4 modulo 7.
a. Draw the transition diagram for the DFA
b. Construct a regular expression for the language of the DFA
by computing all the R_ij^(k) regular expressions.
Consider the following DFA: 1 A В C B A C В
Suppose the alphabet is sigma = {a, b, ..., z, 0, 1, ..., 9,: }, i.e., the standard letters a-z, decimal numbers, and colon (: ). The colon is used as a delimiter between fields in a text file. Each line of the file thus corresponds to a string. a) Give a regular expression that accepts strings with four fields (i.e., with 3 delimiters). b) Give a regular expression that accepts strings where the second field is numerical. c) Give...
Give a DFA over {a,b} that accepts all strings containing a total of exactly 4 'a's (and any number of 'b's). For each state in your automaton, give a brief description of the strings associated with that state.
For each of the following languages, give the state diagram of a DFA that accepts the languages. a) (ab) ∗ ba b) aa(a + b) +bb c) ((aa) +bb) ∗