Assignment 3
Assignment 3
Assignment 3
Department of CSE
COURSE B.Tech., VI SEM,
Assignment No.-3, (2019-20) Even Semester
Theory of Automata and Formal Languages (KCS402)
b) If L1, L2 are languages such that L1∩L2 is regular, then L1 and L2 are context-
free.
8 Outline a PDA that accepts exactly the strings with correctly matched parentheses in the 10 BL-4
alphabet containing just two symbols, left and right parentheses. Exhibit an accepting
computation by the machine on the input (()()).
9 Design a PDA that accepts strings in the alphabet {a, b, ), (} such that the parentheses are 10 BL-6
correctly matched, and between each left parenthesis and the next right parenthesis,
and in the whole string, there are equal numbers of a’s and b’s. For example, ((abab)(ab))
is accepted but ((aab)(ab)) is not accepted. Also ((abab)ab(ab)) is accepted, but not
((abab)aba(ab)). The stated conditions guarantee that, as you proceed from left to right,
each time you encounter either kind of parenthesis, the numbers of a’s and b’s already
processed are equal.
10 Interpret a PDA that accepts palindromes, that is strings that are equal to their own 10 BL-2
reverse. Further, consider the problem of making a PDA to accept “doubled strings”, that
is, strings formed by repeating a string, such as abcabc, which is the double of abc.
Explain why an approach like the PDA for palindromes won’t work to make a PDA for this
language.
Bloom Level:
S
Level Skill Demonstrated
No.
Ability to recall of information like, facts, conventions, definitions, jargon, technical terms,
classifications, categories, and criteria.
Rememb
1. Ability to recall methodology and procedures abstractions, principles, and theories in the field.
er
Knowledge of dates, events, places.
Mastery of subject matter
Understanding information
Grasp meaning
Understa Translate knowledge into new context
2.
nd Interpret facts, compare, contrast
Order, group, infer causes
Predict consequences
Use information
Use methods, concepts, laws, theories in new situations
3. Apply
Solve problems using required skills or knowledge
Demonstrating correct usage of a method or procedure
Break down a complex problem into parts.
Identify the relationships and interaction between the different parts of complex problem.
4. Analyse
Identify the missing information, sometimes the redundant information and the contradictory
information, if any.
Compare and discriminate between ideas
Assess value of theories, presentations make
5. Evaluate
Choices based on reasoned argument verify value of evidence recognize subjectivity use of definite
criteria for judgments
Use old ideas to create new ones
6. Create Combine parts to make (new) whole,
Generalize from given facts relate knowledge from several areas predict, draw conclusions