Tutorial 4 (1)
Tutorial 4 (1)
TUTORIAL
Name of Student
Enrollment No.
Academic Year
2024-25
COMPUTER ENGINEERING DEPARTMENT
COs
Course Outcome (CO)
Students will be able to
Course CO Statement
Outcome
CO1 Use the concepts and techniques of discrete mathematics for theoretical computer
science.
CO2 Identify different formal languages and their relationship.
CO3 Classify and construct grammars for different languages and vice-versa.
CO4 Build finite automata, push down automata and turing machine.
CO5 Analyze various concepts of undecidability and Computable Function and Discuss
analytically and intuitively for problem-solving situation
C.K. PITHAWALA COLLEGE OF ENGINEERING AND TECHNOLOGY, SURAT
Name of Student
Enrollment No.
INDEX
Sr.No Title Date Grade Sign
1 Basics of mathematical theory concepts
2 Regular, non-regular and formal languages
3 Context Free Grammar and Languages
4 Push Down Automata and Turing Machines
5 Theory of Computation in the computer field to solve
computational problems
Q.2 Define Push Down Automata (PDA). Draw PDA accepting strings of U
Brackets like following.
S 🡪 SS | {S} | [S] | Λ
S → 0S1 | 00 | 11 0S
Q.4 Draw Turing Machine(TM) which recognizes words of the form { an bn cn | U
n≥ 1 }
[Batch 2]
Q. Questions (Total Marks: 10) Level of
Bloom’s
No
Taxonomy
Q.1 For the language L={set of strings over alphabet {a, b} with exactly twice as A
many a’s as b’s} design a PDA (Push Down Automata) and trace it for the
sring “abaabbaaaaabaab”
(Q, Σ, Г, δ, q, Z, F) where Q={q, r}, Σ = {0, 1}, Г = {Z, X}, δ is defined by:
State Input Stack New State Stack
q 0 Z q XZ
q 0 X q XX
q 1 X r ^
r 1 X r ^
r ^ Z r ^
[Batch 3]
Q. No Questions (Total Marks: 10) Level of
Bloom’s
Taxonomy
Q.1 Write PDA for following languages: A
Q.3 Design and draw a deterministic PDA accepting strings with more a’s U
than b’s. Trace it for
[Batch 4]
Q. No Questions (Total Marks: 10) Level of
Bloom’s
Taxonomy
Q.1 Design and draw a deterministic PDA accepting strings of the language U