Question

In: Computer Science

We demonstrated that if A is recognized by a nondeterministic finite state automaton, it can be...

We demonstrated that if A is recognized by a nondeterministic finite state automaton, it can be recognized by a deterministic finite-state automaton, by giving an algorithm for constructing a machine M' that is deterministic and accepts the same language as a nondeterministic machine M.
By the construction algorithm we used, how many states will M' have if M has n states. Justify your answer

Solutions

Expert Solution

If Non Deteterministic Finite Automaton for some language has n states, then states in Deteterministic Finite Automaton which accepts the same language as Non Deteterministic Finite Automaton can be determined by set of subsets of the states of the Non Deteterministic Finite Automaton.
Which means:-

1states in equivalent Deteterministic Finite Automaton ,
where n is number of states in Non Deteterministic Finite Automaton.

For example if Non Deteterministic Finite Automaton has three states, and , then, Deteterministic Finite Automaton can have any number of states from the set:-

{{}, q0, q1, q2, {q0, q1}, {q1, q2}, {q0, q2}, {q0, q1, q2}}

So, corresponding DFA can have any number of stated from the above set i.e, number of states may be from as low as 0 to maximum of 8, if number of states in NFA is 3.


Related Solutions

What is a finite-state machine ? What is a pushdown automaton ? What is a Turing...
What is a finite-state machine ? What is a pushdown automaton ? What is a Turing machine? What is a Turing complete language? Compare the finite-state machine , pushdown automaton , and Turing machine.?
DFA Python DFA simulator A deterministic finite automaton (DFA) - also known as deterministic finite state...
DFA Python DFA simulator A deterministic finite automaton (DFA) - also known as deterministic finite state machine - is a finite state machine that accepts/rejects finite strings of symbols and only produces a unique computation (or run) of the automaton for each input string. Write a DFA simulator using the python programming language. Read your DFA from a textfile. First line contains a list of the final states (as integers), separated by a space. Rest of file contains the transitions...
Give the finite-state automaton and the regular grammar for the following: (a) (ab v ba)* v...
Give the finite-state automaton and the regular grammar for the following: (a) (ab v ba)* v (ab)* (b) (11*)*(110 v 01) (c) All strings over {0,1} containing the string 010 (d) All strings over {0,1} which do not contain the string 010
Design an FA (Finite automaton) and RE to accept the set of all strings over the...
Design an FA (Finite automaton) and RE to accept the set of all strings over the alphabet {0,1} which contains even number of 0's and odd number of 1's.
Create a Deterministic finite automaton that takes in binary strings and accepts them which has both...
Create a Deterministic finite automaton that takes in binary strings and accepts them which has both an odd number of zeros and a sum that is divisible by 3 (but no others). For example, 0111 should be accepted, but not 011 or 111.
Automata Theory and Formal Languages Instructions: Draw the DFA (Deterministic Finite Automaton) of the following: DFA...
Automata Theory and Formal Languages Instructions: Draw the DFA (Deterministic Finite Automaton) of the following: DFA in which set of all strings can be accepted which end with ‘a’ DFA in which set of all strings can be accepted which start with ab DFA in which set of all strings can be accepted which contain ab DFA in which set of all strings can be accepted which ends with ab
Automata Theory and Formal Languages Instructions: Draw the DFA (Deterministic Finite Automaton) of the following: DFA...
Automata Theory and Formal Languages Instructions: Draw the DFA (Deterministic Finite Automaton) of the following: DFA for binary number divisible by 2 DFA for binary number divisible by 3 DFA in which set of all strings can be accepted which start with a DFA in which set of all strings can be accepted which contains ‘a’
Write a program in python programming language to implement/simulate a finite automaton that accepts (only): odd...
Write a program in python programming language to implement/simulate a finite automaton that accepts (only): odd Binary numbers // 00000000, 0101, 111111, etc. Show: Finite Automaton Definition, Graph, Table
Write a program in python programming language to implement/simulate a finite automaton that accepts (only): unsigned...
Write a program in python programming language to implement/simulate a finite automaton that accepts (only): unsigned integer numbers // 123, 007, 4567890, etc. Show: Finite Automaton Definition, Graph, Table.
how can active listening be demonstrated
how can active listening be demonstrated
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT