Tag: toc

Chomsky hierarchy

AnswerType 3 regular grammars correspond to finite automata; type 2 context-free grammars to pushdown automata; type 1 context-sensitive grammars to linear bounded…

Read more →

Petri net model

AnswerA Petri net has places, transitions, directed arcs and a marking assigning token counts to places. A transition is enabled when each…

Read more →

NFA for 01(11+00)0*1

AnswerStart q0; q0—0→q1—1→q2. Branch q2—1→q3—1→q5 or q2—0→q4—0→q5. Add q5—0→q5 and q5—1→q6, the only final state. All unspecified transitions are empty. The two…

Read more →