Chapter Study

BSC CSIT Semester 4 Theory of Computation () Questions & Answers | Past TU Exam Papers

Practice from Theory of Computation with detailed solutions and model answers from past Tribhuvan University exams.

9
Questions
45
Marks
Back to All Chapters

Give the regular expressions for following language over alphabet {0, 1}.

a. Set of all strings with 2nd symbol from right is 1.

b. Set of all strings starting with 00 or 11 and ending with 10 or 01.

MediumTHEORY5 marks2076(TU Final)

Show that language

L=0m1mm1L = { 0^m 1^m | m ≥ 1 }

is not a regular language.

MediumTHEORY5 marks2076(TU Final)

Give the regular expressions for the following language over alphabet {a, b}.

a. Set of all strings with substring bab or abb.

b. Set of all strings whose 3 symbol is ‘a’ and 5 symbol is ‘b’.

MediumTHEORY5 marks2078(TU Final)

Show that L = { a | n is a prime number } is not a regular language.

MediumTHEORY5 marks2078(TU Final)

Convert the following regular expression into equivalent Finite Automata

a. (0+1)*10(1+0)

b. 1*0(0+1)*1

MediumTHEORY5 marks2079(TU Final)

Write regular expression over {a,b} that represents

a. Strings having exactly two a’s and atleast two b’s.

b. Strings having an even number of a’s and each a followed by at least one b.

MediumTHEORY5 marks2080(TU Final)

Using pumping lemma, prove that the language L = {a b c | j=i+k} is not regular.

MediumTHEORY5 marks2080(TU Final)

Differentiate Kleen closure from positive closure. Compute positive and Kleen closure of {ab}.

MediumTHEORY5 marks2080(TU Final)

Construct regular expression over {1,2,….9} that represents

a. strings of even numbers with length 4 starting with 2 and ending with 8.

b. strings starting with odd numbers and ending with even numbers.

MediumTHEORY5 marks2080(TU Final)
Showing 9 questions

Unit III: Regular Expressions (6 Hrs.) chapter questions with answers for Theory of Computation (BSC CSIT Semester 4). Prepare for TU exams with our comprehensive question bank and model answers.