BCS503 Assignment-1 ATC (CSBS)
BCS503 Assignment-1 ATC (CSBS)
Group Question
Question
No No
1 Construct DFA for the following
G1 starts with abb
Ends with bab
Implement the same in JFLAP and verify.
2 Minimize the DFA.
2 Construct a DFA for the set of strings that either begin or end (or both) with 01.
Implement the same in JFLAP and verify.
3 Define R.E for the following. Implement the same in JFLAP and verify.
I. L={anbm| n+m is even}
II. L= {w Ꜫ {a,b}* : there is no more than one b}
1 Minimize the following DFA. Implement the same in JFLAP and verify.
G16
2 Write NFA for (0+1)*001(0+1)*. Implement the same in JFLAP and verify.
3 Design a DFA for the set of all strings such that each block of five consecutive symbols
contain at least 2 0’s . Implement the same in JFLAP and verify.
1 Write R.E for the following
G17 L={w€{0,1}*: w has no pair of consecutive zeros}
L ={ w€{a,b,c}*: is a set of all strings which contain atleast one occurrence of each
symbol }. Implement the same in JFLAP and verify.
2 Construct DFA: L={w€{a,b}* :na mod 3 >na mod 2}. Implement the same in JFLAP and
verify.
3 Write a R.E from the DFA using state elimination method. Implement the same in JFLAP
and verify.
1 Construct DFA na mod 3 <na mod 2. Implement the same in JFLAP and verify.
G18 2 Develop a Finite Automata to accept the language defined by each of the following
regular expressions
(aba U aabaa)* . Implement the same in JFLAP and verify.
3 State and prove the Pumping Lemma theorem for Regular Languages. &
Prove L={ap|p is prime} is not regular
1 Construct DFA for the following:
L = {w Ꜫ {0,1}* : every 0 in w is immediately followed by the string 11}. Implement the
G19 same in JFLAP and verify.
2 Define distinguishable and indistinguishable states. Apply DFA algorithm. Implement the
same in JFLAP and verify.
δ 0 1
->A B E
B C F
*C D H
D E H
E F I
*F G B
G H B
H I C
*I A E
3 Write a R.E from the DFA. Implement the same in JFLAP and verify.
2 Convert NFA into DFA using subset construction. Implement the same in JFLAP and
verify.
G21 0 1
p {q,s} {q}
*q {r} {q,r}
r {s} {p}
*s ∅ {p}
3 Prove that L={a : n=2 for some k>=0 } is not regular
n k
G28 1 Obtain a DFA to accept the language L = { waabw | w € ( a, b)* }. Implement the same in
JFLAP and verify.
2 {w € {a, b}*: w does not end in ba }. Implement the same in JFLAP and verify.
3 Obtain the regular expression for the following finite automata. Implement the same in
JFLAP and verify.
G29 1 Obtain a DFA to accept the language L contains strings of a’s and b’s starting with ab.
Implement the same in JFLAP and verify.
2 {w € {a, b}*: w has both aa and bb as a substring } Implement the same in JFLAP and
verify.
3 Show that L= {ai bj | i ≠ j} is not regular
G30 1 Draw a DFA to accept strings of a’s and b’s such that L = { awa | w € (a+b)* }
Implement the same in JFLAP and verify.
2 w € {0, 1}*: w has no more than one pair of 0’s and no more than one pair of
consecutive l's
Implement the same in JFLAP and verify.
3 Obtain the regular expression for the following finite automata. Implement the same in
JFLAP and verify.
G31 1 Draw a DFA to accept strings of a’s and b’s ending with ab or ba. Implement the same in
JFLAP and verify.
2 Convert the following ε-NFA to DFA. Implement the same in JFLAP and verify.
3 Consider the following DFA - M: Show a regular expression for L(M). Implement the
same in JFLAP and verify.
Students Groups:
4CB22CB001 =>4CB22CB002 G1
4CB22CB003 =>4CB22CB004 G2
4CB22CB005 =>4CB22CB006 G3
4CB22CB007 =>4CB22CB008 G4
4CB22CB009 =>4CB22CB010 G5
4CB22CB011 =>4CB22CB012 G6
4CB22CB013 =>4CB22CB014 G7
4CB22CB015 =>4CB22CB016 G8
4CB22CB017 =>4CB22CB018 G9
4CB22CB019 =>4CB22CB020 G10
4CB22CB021 =>4CB22CB022 G11
4CB22CB023 =>4CB22CB024 G12
4CB22CB025 =>4CB22CB026 G13
4CB22CB027 =>4CB22CB028 G14
4CB22CB029 =>4CB22CB030 G15
4CB22CB031 =>4CB22CB032 G16
4CB22CB033 =>4CB22CB034 G17
4CB22CB035 =>4CB22CB036 G18
4CB22CB037=>4CB22CB038 G19
4CB22CB039=>4CB22CB040 G20
4CB22CB041=>4CB22CB042 G21
4CB22CB043 =>4CB22CB044 G22
4CB22CB045 =>4CB22CB046 G23
4CB22CB047 =>4CB22CB048 G24
4CB22CB049 =>4CB22CB050 G25
4CB22CB051 =>4CB22CB052 G26
4CB22CB053 =>4CB22CB054 G27
4CB22CB055 =>4CB22CB056 G28
4CB22CB057 =>4CB22CB058 G29
4CB22CB059 =>4CB22CB060 G30
4CB22CB061 =>4CB22CB062 G31
Rubrics for Assessment:
SI.No. Criteria for Evaluation Marks
1 Punctuality in submission 2
2 Structure and format 2
3 Orderliness/clarity, readability 2
4 Relevance, correctness of answers 2
5 Academic Honesty 2
Instructions to Students:
1. Assignments should only be written in the assignment book. Screenshots of JFLAP Simulation must
be pasted.
2. Assignment should be submitted on or before the submission date as mentioned above.
3. Use black pen only.
4. Student should answer the assigned questions to their respective USN only.
Signature of Course Instructor with Date Signature of Course Coordinator with Date
APPROVED
Signature of Senior Faculty/Expert with Date Signature of Senior Faculty/Expert with Date