edited by
1,762 views
0 votes
0 votes

Consider the following grammar:

S → XX

X → b

X → aX

 

Where S and X are non-terminals and a, b are terminals. Which of the following can be the viable prefixes?

  1. aabS
  2. aa
  3. aaaSbcb
  4. aaabb

 

edited by

Please log in or register to answer this question.

Related questions

0 votes
0 votes
2 answers
1
pC asked Jan 2, 2016
623 views
Suppose if we have6 Different English movies8 Different Malayalam Movies10 Different Hindi MovieHow many ways we can choose 2 movies of different languages ?How do one kn...
0 votes
0 votes
1 answer
2
`JEET asked Jan 21, 2019
1,089 views
Disk request come into disk driver for cylinders 5, 17, 60, 125, 28, 170, 8, 32. Total moves using SCAN algorithm when disk head is currently positioned at 35 and moving ...
0 votes
0 votes
1 answer
3
`JEET asked Jan 16, 2019
363 views
1 votes
1 votes
0 answers
4
`JEET asked Dec 18, 2018
419 views
Compute the coefficient value of $ x^3 y^2z$ in the $(x-y+3z)^6$