Theory of Computation (TOC) SPPU Insem Question Paper Oct 2024
All 4 questions from this SPPU insem paper, as printed. Read them here or open the PDF.
- Subject code
- 310242
- Pattern
- 2019 pattern
- Exam
- Insem
- Session
- Oct 2024
- Max. marks
- 30
- Time
- 1 Hour
- Semester
- I
- Paper code
- [6360]-26
Printed for: T.E. (Computer Engineering) (Insem)
Instructions to the candidates
- Answer the question of 1 or 2, 3 or 4.
- Neat diagrams must be drawn wherever necessary.
- Figures to the right indicate full marks.
- Assume suitable data if necessary.
Questions
Q1
- a)[9]
Convert the given NFA- ε to an NFA to DFA.
- b)[6]
Design a DFA which can accept a decimal number divisible by 3.
Also asked:Aug 2025
OR- a)
Q2
- a)[7]
Convert following NFA to DFA.
- b)[8]
i) Design a moore machine for the 1’s complement of binary number. ii) Design a Mealy machine to find out 2’s complement of a given binary number. 2
- a)
Q3
- a)[9]
Convert the following RE to ε -NFA and find the ε -closure of all the states and corresponding DFA. (0 + 1) *.1.(0 + 1).
- b)[6]
i) Regular Expression of strings over {0,1} that have at least one 1. ii) Regular Expression of strings over {0,1} that have at most one 1. iii) Regular Expression of all strings over {0,1} ending with 00 and beginning with 1.
OR- a)
Q4
- a)[7]
i) Write the regular expression for the language starting with a but not having consecutive b’s. ii) Write the regular expression for the language L over ∑ = {0,1} such that all the string do not contain the substring 01. iii) Write the regular expression for the language containing the string over {0,1} in which there are atleast two occurrences of 1’s between any two occurrences of 1’s between any two occurrences of 0’s.
- b)[4]
This part has equations that don’t show as text. Open the PDF to read it.
- c)[4]
Construct the regular expression for the given DFA using Ardens Theorem.
- a)