IF YOU HAVE ANY DOUBTS COMMENT BELOW I WILL BE THERE TO HELP YOU
ANSWER:
EXPLANATION:
20 states
Q={q0,q1,q2,q3,q4,q5,q6,q7,q8,q9,q10,q11,q12,q13,q14,q15,q16,q17,q18,q19}
initial state:{q0}
final state F={q10}
={0,1}

10 states
Q={A,B,C,D,E,F,G,H,I,J,K}
initial state={A}
finalstates f{B,C,D,E,F,G,H,I,J,K]
={0,1}

HOPE IT HELPS YOU
RATE THUMBSUP PLEASE
Exercise 2.5.3: Design e-NFA's for the following languages. Try to use e- transitions to simplify your...
Give nondeterministic finite automata to accept the following languages. Try to take advantage of nondeterminism as much as possible. a) The set of strings over the alphabet {0,1,...,9} such that the final digit has appeared before. b) The set of strings over the alphabet {0,1,...,9} such that the final digit has not appeared before. c) The set of strings of 0's and 1's such that there are two 0's separated by a number of positions that is a multiple of...
Exercise 3.1.1: Write regular expressions for the following languages: * a) The set of strings over alphabet {a,b,c} containing at least one a and at least one b. b) The set of strings of O's and l’s whose tenth symbol from the right end is
Design Turing machines for the following languages: a. The set of all strings with an equal number of 0’s and 1’s. b. {an bn cn | n >= 1} c. {wwR | w is any string of 0’s and 1’s}
1. Design an NFA (Not DFA) of the following languages. a) Lw E a, b) lw contain substring abbaab) b) L- [w E 10,1,2) lsum of digits in w are divisible by three) c) L-(w E {0,1,2)' |The number is divisible by three} d) The language of all strings in which every a (if there are any) is followed immediately by bb. e) The language of all strings containing both aba and bab as substrings. f L w E 0,1every...
Give English descriptions of the languages represented by the following regular expressions. The descriptions should be simple, similar to how we have been defining languages in class(e.g., “languages of binary strings containing 0 in even positions. . .”). Note: While describing your language, you don’t want to simply spell out the conditions in your regular expressions. E.g., if the regular expression is 0(0 + 1)∗, an answer of the sort “language of all binary strings that start with a 0”...
Exercise 4.1.1: Prove that the following are not regular languages a) (0"1n|n 2 1). This language, consisting of a string of 0's followed by an cqual-length string of 1's, is the language Loi we considered informally at the beginning of the scction. Here, you should apply the pumping lemma in the proof. b) The set of strings of balanced parentheses. These are the strings of char- acters "(" and " that can appear in a well-formed arithmetic expression *c) O"IO"...
1. Write regular expressions to capture the following regular languages: (a) The set of binary strings which have a 1 in every even position. (Note: odd positions may be either 0 or 1.) (b) The set of binary strings that do not contain 011 as a substring. (c) Comments in Pascal. These are delimited by (* and *) or by { and }, and can contain anything in between; they are NOT allowed to nest, however. 2. Write a DFA...
Construct NFAs for the following languages: 1. The set if binary strings such that the number of 0's is a multiple of 3 or the number of 1's is a multiple of 5. 2. The set of all binary strings containing 101 or 100 as substring 3. The set of all strings such that the 12th symbol from the right end is 0
4) For the alphabet S={a, b}, construct an FA that accepts the following languages. Show all of your work. (a) L = {all strings with exactly one b}. (b) L = {all strings with at least one a}. (c) L = {all strings with no more than three b's}.
4) For the alphabet S={a, b}, construct an FA that accepts the following languages. (d) L= {all strings with at least one a and exactly two b's} (e) L= {all strings with b as the third letter} (f) L={w, |w| mod 4 = 0} // the cardinality of the word is a multiple of 4