In this question we carry out some of the processes involved in establishing
Ask Expert

Be Prepared For The Toughest Questions

Practice Problems

In this question we carry out some of the processes involved in establishing

Q 8. In this question we carry out some of the processes involved in establishing the fact that the languages described by DFAs, NFAs, regular expressions and regular grammars are all the same class, the regular languages.

(a) Give the state diagram of an NFA over {0, 1} recognising the language (01 + 00)∗ + 1. (You do not need to name the states in your diagram.)

(b) Let N be the NFA over {0, 1} shown below. Draw the state diagram of a DFA accepting the same language as N.


(c) Let M be the DFA over {0, 1} shown below.


(i) Give the regular grammar, H, corresponding to the DFA M.

(ii) Give a derivation for the word 10011 in the grammar H.

(d) Consider the regular grammar, G, with terminal symbols T = {0, 1}, non-terminal symbols N = {σ, A, B}, starting symbol σ, and production rules


(i) Draw the diagram of the NFA, N, corresponding to the regular grammar G.

(ii) Give an accepting computation of the word 0001 by N.

(iii) Write down a regular expression for the language L(G) generated by G.

Hint
ComputerLet R1 = (0*1*)* and R2 = (0 | 1)* . These are both regular expressions over the alphabet A = {0, 1} . Part 1: 0 | 1 is the set {0, 1} . a*b* matches any number of repetitions (including zero) of a followed by any number of repetitions (including zero) of b . For example aaabb . (ab)* matches any number of repetitions (including zero) of the ab sequence, for example abab ....

Know the process

Students succeed in their courses by connecting and communicating with
an expert until they receive help on their questions

1
img

Submit Question

Post project within your desired price and deadline.

2
img

Tutor Is Assigned

A quality expert with the ability to solve your project will be assigned.

3
img

Receive Help

Check order history for updates. An email as a notification will be sent.

img
Unable to find what you’re looking for?

Consult our trusted tutors.

Developed by Versioning Solutions.