
Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!

Devise a T uring M achine that accepts a language L = {0 i^ # 0 j^ , where i is a square of j }, E xample : ~000000000#000~, here the first number (9) is a square of the second one (3) and thus the language is accepted. Show the complete input as well as tape alphabet, the algorithm and the complete state machine for full credit.
Show a T M for recognizing the language L = { w#w R^ } showing the tape format, algorithm and the complete state machine Zİ
Devise a non-deterministic pushdown automata for the following C F G and show the parse using the input : S Æ a A b | b B a A Æ a B b | c B Æ b A a | c
For the following grammar answer the questions (a) Compute First(), Follow() for each non-terminal and also compute the Predict() sets for each production (b) Is this grammar LL(1)? Why or why not? © If it is not LL(1), convert it into LL(1) and then show LL(1) parsing table or show LL(2) parsing table without converting it. <assign-statement> Æ ID =
T he iterative algorithm we discussed in the class to compute the First() and Follow() sets is inefficient; suggest an improvement to compute the sets more efficiently. H int: Consider putting an order on the computation of sets.