PDA

View Full Version : CS402 4th assignment, July, 2010



usman malik
07-11-2010, 07:20 AM
Question No 1: Marks: 5

Find the prefixes of Q in R where Q and R are languages given below:

Q={ ababa , aabbbbbbb,baabba , babbaaaaaa }

R={ aababa , bbaabba , bbaababa, aaaabbbbbbb, abbabbaaaaaa}

Question No. 2

By marking the states, decide whether the following FA accepts any word or not? Marks: 5

Note: Show all steps







Question No. 3 Marks: 5

Describe the language (in English) generated by the following CFG:

S  XY
X  aX | bX | 
Y  baa | bab | bba | bbb

Question No. 4 Marks: 5

Construct the CFG that generates the language L = {w  {a, b}*: length(w)  2 and w begins with b and ends in aa or bb}.



plz give me solution................

Xpert
07-11-2010, 06:41 PM
is ki file upload karo in word format, cant understand

usman malik
07-12-2010, 05:29 AM
Question No 1:

Find the prefixes of Q in R where Q and R are languages given below:

Q={ ababa , aabbbbbbb,baabba , babbaaaaaa }

R={ aababa , bbaabba , bbaababa, aaaabbbbbbb, abbabbaaaaaa}



Question No. 2

Describe the language (in English) generated by the following CFG:

S --> XY
X --> aX | bX | lambda
Y --> baa | bab | bba | bbb

Question No. 3
Construct the CFG that generates the language L = {w belong to {a, b}*: length(w) >= 2 and w begins with b and ends in aa or bb}.

viki
07-12-2010, 01:56 PM
file dear upload karain na ais ki

viki
07-12-2010, 02:03 PM
Question No 1: Describe the language (in English) generated by the following CFG
S → aA | bB
A → aS | bC
B → aC | bS| Λ
C → bA | aB
This CFG accepts those strings that have even number of a’s and odd number of b’s.


Complete Solution Download the File

478

usman malik
07-13-2010, 06:43 AM
this is respective assignment with 15th july due date

usman malik
07-13-2010, 06:57 AM
Due date 15th july

Xpert
07-13-2010, 02:52 PM
thanks good solution.

usman malik
07-15-2010, 07:14 AM
This wrong solution. U have uploaded solution of some other questions plz see my questions as uploaded.........

usman malik
07-15-2010, 07:19 AM
U r not smart enough dear.....................................wrong answers...
U r not answering my questions...........................as uploaded

viki
07-15-2010, 01:11 PM
U r not smart enough dear.....................................wrong answers...
U r not answering my questions...........................as uploaded

ap ka answer kon sa hia ji aur jo question main na upload kiya hai aus ka solution right hai

Xpert
07-15-2010, 01:16 PM
array bhai i am sorry i am very busy these days. i am in final semester and having my final project as well. so please don't mind

sanam
07-15-2010, 05:24 PM
yah kon c languge hai./....