We have been working very hard since 2009 to facilitate in learning Read More. We can't keep up without your support. Donate.

Views: 278

Replies to This Discussion

These are the questions:

Assignment Statements:

Suppose that a handle is a substring that matches a right hand side or production rule in the grammar and whose reduction to the non-terminal on the left hand side of that grammar rule is a step along the reverse of a right most derivation.

Question # 1:

Find the handles of the sentential forms occurring in the derivation of string “id + id * id” by the following grammar
E → E+E | E*E | id

Question # 2:

Consider the following grammar and show the handle of each right sentential form for string (a, (a, a)).
S → (L) | a
L → L, S | S
Q1:
E  E + E  E + E * E  E + E * id  E + id * id  id + id * id
Q2:
S(L)(L,S)(L,(L))(L,(L,S))(L,(L,a))(L,(S,a))(L,(a,a))(S,(a,a))
(a,(a,a))
Q1:
E  E + E  E + E * E  E + E * id  E + id * id  id + id * id
Q2:
S(L)(L,S)(L,(L))(L,(L,S))(L,(L,a))(L,(S,a))(L,(a,a))(S,(a,a))
(a,(a,a))

RSS

Looking For Something? Search Below

Latest Activity

Ammara Sabir posted a status
"Nend buhla deti h hr dukh drd ko,,,,,,,,,,,,,,,,,❤️❤️❤️❤️❤️❤️❤️❤️ jb dill❤️❤️❤️❤️❤️❤️ udas ho tu phir su hi jana chahiye"
1 hour ago
Ammara Sabir posted a status
"Kahan talash kro gy tm muj jesa shakhs,,,,,,,,,,,,❤️❤️❤️❤️❤️❤️ jo tum sy juda bhi rhy❤️❤️❤️❤️❤️❤️ or tum sy muhabbat bhi kry"
1 hour ago
Ammara Sabir posted a status
"Apny lehjy pr gor kr k bta,,,,,,,,,❤️❤️❤️❤️,,,,,,,,,,,,,❤️❤️❤️❤️, lafz kitny hain or Teer kitny hain❤️❤️❤️❤️❤️❤️❤️❤️"
1 hour ago
Ammara Sabir posted a status
"Ye jo dill m qyam krty hain na,,,,,,,,,,,,,,,,,,,,,,,,,, yehi jeena hram krty hain"
1 hour ago
+ !! Ήලᵯᵯℹ Ⲥⱨ !! +!! liked muhammad ahmad's profile
2 hours ago
Asam updated their profile
4 hours ago
Saddam Hussain replied to + M.Tariq Malik's discussion CS611 Current Finalterm Papers Fall 2020 and Past Solved Papers in the group CS611 Software Quality Engineering
4 hours ago
Saddam Hussain replied to + M.Tariq Malik's discussion CS611 Current Finalterm Papers Fall 2020 and Past Solved Papers in the group CS611 Software Quality Engineering
4 hours ago

© 2021   Created by + M.Tariq Malik.   Powered by

Promote Us  |  Report an Issue  |  Privacy Policy  |  Terms of Service