Skip to content
IT-503 (B) · Microprocessor and Interfacing/Unsolved PYQ Paper

A THEORY OF COMPUTATION - NOV 2022 Question Paper

  1. Unit 2
    7 Marks
    aCompute the Regular Expression for the DFA as shown below.
  2. Unit 1
    7 Marks
    bDesign DFA's for detecting 1100 Sequence with Overlap over the alphabet $$\Sigma = \left\{0,1\right\}.$$
  3. Unit 1
    7 Marks
    aDesign a NFA that accepts the language over the alphabet, $$\Sigma = \left\{0,1,2\right\}$$ where the decimal equivalent of the language is divisible by 4.
  4. Unit 3
    7 Marks
    bIdentify the language, L generated by the following grammar, G. $$G = \left(\left\{S,A,B\right\},\left\{a,b\right\},P,S\right)$$ where $$P:\\ S \rightarrow AaA \\ A \rightarrow aA \mid a \\ B \rightarrow bBb \mid bb$$
  5. Unit 1
    7 Marks
    aConvert the following NFA to an equivalent DFA.
  6. Unit 2
    7 Marks
    bFind a regular grammar that generates the language on \{a, b\} consisting of all strings with at most one's and more than two b's.
  7. Unit 3
    7 Marks
    aConstruct context free grammars to accept the language $$L(G)=\left\{a^{n}b^{m}c^{m}d^{2n}\mid n\ge 0,\; m\ge 0\right\}$$ over the alphabet, $$\Sigma = \left\{a,b,c,d\right\}.$$
  8. Unit 4
    7 Marks
    bConstruct Non-Deterministic Pushdown Automata (NPDA) to accept the language $$\left\{w\mid w\text{ starts and ends with the same symbol}\right\}$$ over the alphabet, $$\Sigma = \left\{0,1\right\}.$$
  9. Unit 5
    7 Marks
    aConstruct Turing Machine (TM) to accept the language $$L = \left\{0^{n}1^{2n}2^{n}\mid n\ge 0\right\}$$ over the alphabet, $$\Sigma = \left\{0,1,2\right\}.$$
  10. Unit 4
    7 Marks
    bConstruct corresponding CFG for the following NPDA.
  11. Unit 4
    7 Marks
    aGive a Deterministic PDA that accepts $$\left\{a^{n}b^{m}\mid m\ge 2n+2\right\}$$ over the alphabet, $$\Sigma = \left\{a,b\right\}.$$
  12. Unit 4
    7 Marks
    bGive an NPDA that simulates the following (S is start symbol): $$\begin{aligned} S &\rightarrow aABB \mid aAA \\ A &\rightarrow aBB \mid a \\ B &\rightarrow bBB \mid a \end{aligned}$$
  13. Unit 5
    7 Marks
    aProve that the problem of determining whether for a Turing machine M there is some input string for which M halts is undecidable.
  14. Unit 5
    7 Marks
    bProve that the recursive languages are closed under union, intersection, and complement.
  15. Unit 3
    4 Marks
    iGiven the following ambiguous context free grammar $$\begin{aligned} S &\rightarrow Ab \mid aaB \\ A &\rightarrow a \mid Aa \\ B &\rightarrow b \end{aligned}$$ i) Find the string s generated by the grammar that has two leftmost derivations. Show the derivations.
  16. Unit 3
    4 Marks
    iiii) Show the two derivation trees for the string s.
  17. Unit 3
    3 Marks
    iiiiii) Find an equivalent unambiguous context-free grammar.
  18. Unit 3
    3 Marks
    iviv) Give the unique leftmost derivation and derivation tree for the string s generated from the unambiguous grammar above.
Go to where you left off?

Quick Add to Notes

Save questions, your own notes and screenshots into notes filed by unit. It takes a free account.

Create free account

Have an account? Log in