Sunday, 05 20th

Last update09:44:47 AM

Login With Facebook

Combinestudy

CS606 Spring 2012 Second Assignment

Rate this item
(0 votes)

Consider the following grammar;

 

S ―> XaYb

X ―> bXc | b

Y ―> dYa | d

 

Find the first sets for each non-terminal of the given grammar.

 

CS606 Spring 2012 First Assignment

Rate this item
(0 votes)
Question No 1: Marks 10
Construct Nondeterministic finite automata (NFA) for regular expression (a* | b*)* using
Thompson’s Construction Algorithm. Show the sequence of moves in processing the input string
“ababbab”.
Question No 2: Marks 10
For the NFA given below, you are required to determine an equivalent DFA for it using subset
construction. Where the alphabet is {a, b}.

CS606 Fall 2011 First Assignment

Rate this item
(0 votes)

Question 1:

Suppose that you are working as a programmer in Microsoft. They assigned you a task to draw a finite acceptor which can be useful for lexical analyses of language L expressed as L = {w  (a, b)* / nb(w) mod 3 > 1.}. You are requested to analyze this language and construct a deterministic finite acceptor of this language.