2. Given the following nondeterministic finite automaton and strings, for each string indicate if the string...
QUESTION 3 Here is a nondeterministic finite automaton with epsilon-transitions. 1 1 Start €,0 0 € 90 91 92 93 95 94 Which of the following strings is NOT accepted? 10101 01110 01111 11110 The following nondeterministic finite automaton: 1 0 А B 0 1 accepts which of the following strings? 1001011 0111011 0101010 1010101
Here is a nondeterministic finite automaton: 0 0 0,1 A B cal 1 0 Convert this NFA to a DFA, using the "lazy' version of the subset construction Which of the following sets of NFA states becomes a state of the DFA constructed in this manner? (B.CD) (A,B,D) (B) (AD)
For each part below, find a finite automaton M which satisfies the given description. Describe M using both a state diagram and a formal 5-tuple in each part. (a) The language accepted by M is the set of all binary strings which contain exactly 3 1’s. (b) The language accepted by M is the set of all binary strings which contain at least 3 1’s. (c) The language accepted by M is the set of all binary strings which contain...
In the following Finite Accepters the initial state is indicated by the label "start", and any final states are indicated by their box being checked as shown below start so inital state final state Given the following Finite Accepter which of the following strings will be accepted? s0 s2 start s1 s3 o a ab bacaabcbcba O c. All strings in the language's alphabet with a prefix of abb O d abababaaaba O e. bbabababbba Of. All strings in the...
Theory of Computation
need ASAP 2-3 hours
1. For the following grammar: a) Give an example of a string accepted by the grammar. b) Give an example of a string not accepted by the grammar. c) Describe the language produced by the grammar. 2. Using the following grammar find a derivation for the string: 0001112 A0A1le C 0C2 | D Create a grammar for the language described by the following RE: Create a grammar for the following language: For the...
Please Help with this questions with short explanation thank you
:)
Consider the pushdown automaton with the following transition rules: 1.8(0,0,20) = {(q,XZ0)} 2. 8(9,0,X) = {(q,XX)} 3. 8(q,1,X) = {(q,x)} 4. 8(q,£,X) = {(p,ɛ)} 5. 8(p,£,X) = {(p,ɛ)} 6.8(p,1,X) = {(p,XX)} 7. 8(p,1,20) = {(p,ɛ)} From the ID (p,1101,XXZ0), which of the following ID's can NOT be reached? (p,101,XZO) (p,101,XXXZO) (2,01,XXXXXZO) O (p,01,8) Here are the transitions of a deterministic pushdown automaton. The start state is qo, and f...
Give nondeterministic finite automata that accept each of the following languages. Provide both state-transition diagrams and the corresponding quintuple representations The set of odd binary numbers (without leading zeros) such that the length of the bit string is 4i+2, for some i 21. a.
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...
1. Consider the alphabet {a,b,c}. Construct a finite automaton that accepts the language described by the following regular expression. 6* (ab U bc)(aa)* ccb* Which of the following strings are in the language: bccc, babbcaacc, cbcaaaaccbb, and bbbbaaaaccccbbb (Give reasons for why the string are or are not in the language). 2. Let G be a context free grammar in Chomsky normal form. Let w be a string produced by that grammar with W = n 1. Prove that the...
discrete mathematics
Leavening question 4 solve others
4. Let be the automaton with the following input set A, state set S and accepting or final ("yes") state set F : A-t, b },s-b"11":2},7-bl } . Suppose s, is the initial state of M , and next state function F of M is given by the table B. Draw the state diagram D D() of the automaton 4 5. Construct the state diagram for the finite-state machine with the state table...