Question Paper: Bms College of Engineering
Question Paper: Bms College of Engineering
Question Paper: Bms College of Engineering
Autonomous Institute Affiliated to VTU, Supplementary Semester End Examinations October 2020
Theoretical foundations of Computations [19CS4PCTFC]
Marks: 100 Duration: 210 mins.
1) (10)
Construct a DFA to accept a string w satisfying the following condition:
a) |w| mod 3 >=|w| mod 2 where w ∈ Σ* and Σ={a}
b) (10)
2) (5)
Obtain regular expression to accept the strings of a's and b's such that every block of four
a) consecutive symbols consists of at least two b's.
b) Using Pumping Lemma, show that the language L = {an! | n>=0 } is not regular. (6)
c) (9)
[OR] Obtain an NFA for the regular expression (a+b)*aa(a+b)*. Show the step by step procedure involved (10)
3) in constructing the NFA.
Page #1
a)
b) (10)
4) Obtain a grammar to generate a language consisting of all non-palindromes over {a,b}. Give the (6)
derivation for the string abbaba which is not a palindrome.
a)
b) (6)
c) (8)
[OR] (10)
5)
a)
b) (10)
a)
b) (10)
Page #2
7) Obtain a Turing Machine which accepts all strings that begin and end with the same symbol over (10)
{0,1}.
a)
b) Explain the following: (10)
i. a language that is not recursively enumerable
ii. undecidable problems that are RE
-----End-----
Page #3