Computer Science EngineeringVery hard
The minimal complete DFA over {a, b} for the language a*b* has how many states?
- A. 2
- B. 4
- C. 3
- D. 1
Correct answer: C. 3
The states are: only a's so far, in the b-section, and a dead state after seeing b followed by a.
Practise more Theory of Computation, Compilers & Digital Logic (ISRO CS) questionsTheory of Computation, Compilers & Digital Logic (ISRO CS): notes and key points
More Theory of Computation, Compilers & Digital Logic (ISRO CS) questions
- The grammar S -> aSa | bSb | a | b | epsilon generates
- An int a[10][20] array is stored in row-major order with base address 1000 and 4-byte elements. The address of a[3][5] is
- Which machine model is equivalent in power to context-free grammars?
- The intersection of a regular language and a context-free language is always
- Compared with a parse tree, an abstract syntax tree
- How many states does the LR(0) automaton (canonical collection of item sets, including the augmented production) have for the grammar S ->…