v3 TCS PAPER SOLUTIONS - 2023
v3 TCS PAPER SOLUTIONS - 2023
REGULAR EXPRESSION:
DEC 18/5M
Q1 C Define Regular Expression & Write Regular Expression
for Strings that end with “1” has no substring 00 over ∑={0,1}
Link: https://youtu.be/QiFY6HWeClE
JUNE 19/5M
Q1 C Explain applications of Regular Expression
Link: https://youtu.be/p-Z7zGPyPZo
DEC 19/5M
Q1 C Define Regular Expression & Write Regular Expression
for Strings that
contain atmost 3 0’s over ∑={0, 1}
Link: https://youtu.be/jqLo_zxEwiY
Page - 4
Link: https://youtu.be/PyGmAARYal4
Page - 5
June 19 / 5M
Q1 A Differentiate between DFA and NFA
Link: https://youtu.be/nlY8VJSlUD0
June 19 / 5M
Q1 B Design DFA to recognize strings ending in 100 over ∑ =
{0, 1}
Link: https://youtu.be/TYfWHK6lffk
Nov 2022 / 5M
Q1 A. Differentiate between DFA and NFA
Link: https://youtu.be/J3rrfYqGi2o
Page - 6
May 2023 / 5M
Q1 B Differentiate between DFA and NFA
Link: https://youtu.be/n7F4CTaez5o
DEC 18/5M
Q6 D Write Short note on Moore and Mealy Machine
Link: https://youtu.be/d-rjVsCbzdg
NOV 2022 / 5M
Q1 B COMPARE AND CONTRAST MOORE AND MEALY
MACHINE
Link: https://youtu.be/eQH0FSlZvvU
MAY 2023 / 5M
Q1C) Difference between Moore and Mealy machine
Link: https://youtu.be/F1RJsIUAnP8
GRAMMARS:
Dec 18 / 5M & Dec 19 / 5M
Q)Explain Chomsky’s Hierarchy
Link: https://youtu.be/EmovChAyDGI
Dec 19 / 5M
Q1 D) What is ambiguous grammar? Check if the following
grammar is ambiguous or not?
E → E + E | E – E | E * E | (E) | id
Link: https://youtu.be/UMVz9n2heAE
Dec 19 / 10M
Q4 B ) Express the following in CNF:
S→0A0|1B1|BB
A→C
B→S|A
C→S|ε
Link: https://youtu.be/myjULEXp58k
May 2023 / 5M
Q1A Explain Chomsky's Hierarchy for grammar
Link: https://youtu.be/0KjVlZlPgb8
Link: https://youtu.be/WarRwDc5SZ8
Turing Machine:
June 19 / 10M
Q3 B. Explain different types of Turing Machine.
Link: https://youtu.be/PjKLlRoYcMU
June 19 / 10M
Q4 A Design TM that computes function(m,n) = m + n
Link: https://youtu.be/ampGmY-o0MU
Dec 18 / 10M
Q4 A Construct TM to check for well-formedness of
parenthesis
Link: https://youtu.be/kfrL3bQCUck
Nov 2022 / 5M
Q1C VARIANTS OF TURING MACHINE
Link: https://youtu.be/tf1DZ0KiAjY
Nov 2022 / 5M
Q3B) Design TM to check for well formedness of parenthesis.
Link: https://youtu.be/4wHuJpliIuA
Page - 15
May 2023 / 5M
Q1D Explain Recursive and Recursively Enumerable
Languages.
Link: https://youtu.be/ELiVNz_iIt0
Pumping Lemma:
Nov 2022 / 10M
Q5B) Give the formal definition of Pumping Lemma for
Regular Language and then prove that the following language
is not regular: L = { 0m1m+1 | m > 0}
Link: https://youtu.be/XmhYgmXZ4xY
Short Notes:
Dec 19 / 5M & June 19 / 5M
Q1 A) Explain Post Correspondence Problem
Link: https://youtu.be/8WSKfqtGdfE
Dec 19 / 5M
Q1 B) Differentiate between FA and PDA
Link: https://youtu.be/ugVM2lFtUoI
May 23 / 10M
Q6 A Explain PCP with an example
Link: https://youtu.be/a7IWPc7_ABY