Showing posts with label cs402 assignment no 2 solution. Show all posts
Showing posts with label cs402 assignment no 2 solution. Show all posts

Tuesday, 16 January 2018

Download Cs402 Assignment No 2 Solution File Doc Format

20:28 0
Consider the following two regular languages:

Let L1 be the language defined over alphabet ∑={a    b} that contains all strings starting with alphabet a. (Example strings abbababa, aaaab, abaabbbb)
 R.E = a(a+b)*
F.A 1

2nd diagram (a,b)

Let L2 be the language defined over alphabet ∑={a    b} that contains all strings in which alphabet a comes in the string in even number. (Example strings aba, bbabaaab, abaabba)
 R.E = b*(ab*a)*b*
F.A 2


Construct the corresponding FAs of above languages. Construct the transition table for the intersection of above regular languages and a corresponding transition diagram for (FA1∩FA2).
Transition Table


Old States New States After Reading  
  A B  
Z1 (p,1) (q,2) Z4 (r,1) Z5  
Z2 (p,2) (q,1) Z3 (r,2) Z6  
Z3 (q,1) (q,2) Z4 (q,1) Z3  
Z4 (q,2) (q,1) Z3 (q,2) Z4  
Z5 (r,1) (r,2) Z6 (r,1) Z5  
Z6 (r,2) (r,1) Z5 (r,2) Z6

(FA1∩FA2)

Download Complete Cs402 Assignment Solution


CS402 Assignment No 02 Solution

20:07 0
Question No 1:                                                                                                              Marks:5+5+5=15
Consider the following two regular languages:

Let L1 be the language defined over alphabet ∑={a    b} that contains all strings starting with alphabet a. (Example strings abbababa, aaaab, abaabbbb)
Let L2 be the language defined over alphabet ∑={a    b} that contains all strings in which alphabet a comes in the string in even number. (Example strings aba, bbabaaab, abaabba)


Construct the corresponding FAs of above languages. Construct the transition table for the intersection of above regular languages and a corresponding transition diagram for (FA1FA2).

CS402 Assignment Solution: