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
- 314441
- Pattern
- 2019 pattern
- Exam
- Insem
- Session
- Oct 2024
- Max. marks
- 30
- Time
- 1 Hour
- Semester
- I
- Paper code
- [6360]-55
Printed for: T.E. (Information Technology) (Insem)
Instructions to the candidates
- Answer Q1 or Q2, Q3 or Q4.
- Neat Diagrams must be drawn wherever necessary.
- Figure to the right indicate full marks.
- Assume suitable data if necessary.
Questions
Q1
- a)[4]
Design a Moore machine to find 2’s complement of any binary number. Write the definition of a Moore Machine.
- b)[5]
This part has equations that don’t show as text. Open the PDF to read it.
- c)[6]
Write the formal definitions for the following : i) DFA (Deterministic Finite Automata) ii) Finite State Machine iii) NFA (Non- Deterministic Finite Automata) with moves
OR- a)
Q2
- a)[5]
Construct a Moore machine for a binary input sequence such that if it has a substring ‘110’, the machine outputs A; if it has a substring ‘101’, the machine outputs B, otherwise machine outputs C.
- b)[5]
Show that following DFAs (Deterministic Finite Automata) are equivalent or not.
- c)[5]
Justify that there can be the equivalent Mealy machine for any Moore machine by suitable example.
- a)
Q3
- a)[5]
For the following regular expressions, draw the FA (Finite Automata) recognizing the corresponding language. i) ab* + ba* + b*a + (a*b)* ii) b*a (a+b)*ab*
- b)[5]
State and explain Pumping Lemma for a regular language.
- c)[5]
Find the regular Expression for the FA (Finite Automata) using Arden’s Theorem.
OR- a)
Q4
- a)[5]
This part has equations that don’t show as text. Open the PDF to read it.
- b)[5]
Represent the following language using regular expression over = {0,l,2} for the following i) At least one occurrence of 0 followed by at least one occurrence of 1 followed by at least one occurrence of 2. ii) Any number of 0’s followed by at least one occurrence of 1 followed by at least one occurrence of 2
- c)[5]
This part has equations that don’t show as text. Open the PDF to read it.
- a)