Professional Documents
Culture Documents
NAME: __________________________________________________________________________
RUID:___________________________________________________________________________
Electronic Devices are not permitted during the quiz. These include but are not restricted to calculators,
computers and cell phones.
No communication between students or anyone outside of class is permitted during the quiz.
Textbooks, notes and any other written materials are not permitted during the quiz.
_____________________ a)
_____________________ b)
10
_____________________ c)
01
_____________________ d)
000
_____________________ e)
11
_____________________ f)
010
_____________________ g)
0000
_____________________ h)
0001
_____________________ i)
110
_____________________ j)
0010
______________ a) S A10, AB 0
______________ b) S B, A B, B A, B 1
______________ d) S 1A, A 1, S
_____________________ a)
_____________________ b)
aa
_____________________ c)
aaaa
_____________________ d)
aaaaa
_____________________ e)
ab
_____________________ f)
aaaab
_____________________ g)
_____________________ h)
bb
_____________________ i)
bbbbb
_____________________ j)
5. Find a context-free grammar that generates the set of all strings over the alphabet {0, 1} such
that 0 appears twice as many times as 1. List the productions in the space provided below. Use only
four productions and only one nonterminal, S.
Scratch Paper