Escolar Documentos
Profissional Documentos
Cultura Documentos
Department of Computer Science and Engineering THEORY OF COMPUTATION Part A Anna University Previous Semester Questions
Nov / Dec 2005 UNIT I Nov / Dec 2003 1. Obtain the DFA equivalent to the following NFA 2. Obtain an NFA without transition to the following NFA with transition 2. April / May 2004 1. 2. Is it true the language accepted by NFA is different from the regular language? Justify your answer. Describe the following sets by regular expression a. b. L1 = Set of all strings of 0s and 1s ending in 00 L2 = Set of all strings of 0s and 1s beginning with 0 and ending with 1 Nov / Dec 2004 1. Obtain the - closure of states q0 and q1 in the following NFA with transition Find the - closure of states 1, 2, and 4 in the following transition diagram Nov / Dec 2006 1. Construct a finite automata for the language {0n | n mod 3=2 n>0} April / May 2007 1. 2. 1. 1. 2. April / May 2005 1. Find the language accepted by the following automaton Nov / Dec 2008 2. Define NFA with - transition. Is the NFAs with - transition are more powerful than the NFAs without - transition? 1. Define the Language described by NFA and DFA 3. What is a finite automaton? Give two examples. Enumerate the difference between DFA and NFA List any four ways of theorem proving Define automata What is the principle of mathematical induction? Construct a DFA over = { a, b } which produces not more than 3as April / May 2006 1. Find the language accepted by the DFA given below 1. Obtain the - closure of each state in the following NFA with - moves
Page No : 1
April / May 2012 What is epsilon transition in finite automata? Specify the main difference between DFA and NFA. Define a) Finite automat b) Transition Diagram April / May 2007 1. 2. 1. Verify whether L = { a2n | n > 1 } is regular. Mention the closure properties of regular language Show that the complement of a regular language is regular.
Page No : 2
State pumping lemma and its advantages. Consider the alphabet = { a, b, (, ), +, *, ., }. Construct a context free grammar that generated all strings in * that are regular expression over the alphabet { a, b }.
April / May 2008 1. 1. 2. 3. 1. Construct a DFA fro the regular expression aa* | bb* Show that the complement of a regular language is also regular. Show that * is by constructing its NFA using Thomsons construction. State pumping lemma and its advantages. Write regular expression for the following language over the alphabet = { 0, 1 } The set of all strings not containing 101 as substring. Provide justification that your Regular Expression is correct. 2. Prove or disprove the following for regular expression ( a + b )* cd for = { a, b, c, d } Nov / Dec 2009 1. 1. 2. What is ( 10, 11 ) ?
*
Nov / Dec 2012 1. Give the regular expression for the following a. b. 2. 1. 2. L1 = set of all strings of 0 and 1 ending in 00 L2 = set of all strings of 0 and 1 beginning with 0 and ending with 1.
Differentiate regular expression and regular language. What is a regular expression? Name any four closure properties of regular languages.
April / May 2010 Let L = { w | w { 0, 1 }* w does not contain 00 and is not empty }. Construct a regular expression that generates L. Prove or disprove that the regular languages are closed under concatenation and complement. Nov / Dec 2010 1. 2. Give the regular expression for set of all strings ending in 00. State pumping lemma for regular set. 3. 2. Nov / Dec 2003 1.
UNIT III Let G = ( { S, C }, { a, b }, P, S ) where P consist of S aCa C aCa | b find L(G) Consider G whose productions are S aAS | a, A SbA | SS | ba. Show that S aabbaa and construct a derivation tree whose yield in aabbaa. Define push down automata
Page No : 3
Page No : 4
derive the string aaabbabba as leftmost derivation. What is meant by empty production removal in PDA? Show that the grammar S a | Sa | bSS | SSb | SbS is ambiguous. Find whether the language { a b c | m > 0 } is context free or not. Find out the context free language S aSb | aAb, A bAa | ba. Define Instantaneous description of PDA. What do you mean by expressive power of a grammar? Construct a PDA to accept the language { (ab) | n > 1 } by empty stack. Give a semi three grammar generating { a | i is a positive power of 3 } For a PDA M = ( Q, , , , q0, Z0, F ) define the language accepted by the final state. April / May 2010 1. Consider the following grammar G with productions, S ABC | BaB, A aA | BaC | aaa, B bBB | a, C CA | AC. Give the CFG with no useless variables that generates the same language. 2. 1. 2. 1. State the definition for PDA. Write down the context free grammar for the language { } 1 | = n b a L n n . Is the grammar id | E E E + is ambiguous? Justify. 2. 1. Construct a CFG over {a, b} generating a language consisting of equal number of a's and b's.
i n
April / May 2013 1. What is a CFG? 2. Define the term ambiguity in grammars. UNIT IV Nov / Dec 2003 1. 2. 1. Define Turing machine. Define instantaneous description and move of a Turing machine. When a recursively enumerable language is said to be recursive. Is it true that the language accepted by a non deterministic Turing machine is different from recursively enumerable language? Define Multitape Turing machine Explain the basic Turing machine model and explain in one move. What are the actions take place in a Turing Machine.
Page No : 5
Page No : 6
Page No : 7
Page No : 8