CSE
c318f94t3

# c318f94t3 - CSc 318 Exam 3 Friday 2 December 1994(1(15 pts...

• Notes
• nizhes
• 1

This preview shows page 1. Sign up to view the full content.

CSc 318 Exam 3 Friday 2 December 1994 (1) (15 pts) Find a minimal complete DFA equivalent to the DFA ({s,1,2,3,4}, {a,b}, { (s,a,1), (s,b,2), (1,a,3), (1,b,2), (3,a,3), (3,b,s), (2,a,4), (2,b,2), (4,a,3), (4,b,s)}, s, {3,4} ) (2) (15 pts) Find an NFA with the same language as the lambda-NFA ({s,2,3,4}, {a,b}, {(s,a,2), (s,lambda,2), (2,b,3), (2,lambda,3), (s,b,4), (4,a,4), (4,lambda,3)}, s, {3} ) (3) (20 pts) Prove that for every complete DFA there is an EFA with the same language. (4) (20 pts) Let P and R be lambda-NFAs with disjoint state symbols.
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: Prove that L(P) U L(R) is a subset of L(P U R). (5) (10 pts) Prove that (making believe the *'s and .'s are superscripts) [ [ [ [a U b]* U a] . [a . b]] U c]* is a regular expression over the alphabet {a,b,c,d}. (6) (10 pts) Find a CFG which is not left-recursive and equivalent to the CFG S --> Sab | Sbc | aSb | c (7) (10 pts) Given the CFG, G, given below, find a lambda-free CFG, G', such that L(G')=L(G)-{lambda}. S --> abSbScSd | lambda...
View Full Document

• Spring '08
• varies
• Regular expression, Regular language, Nondeterministic finite state machine, Automata theory

{[ snackBarMessage ]}

### What students are saying

• As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

Kiran Temple University Fox School of Business ‘17, Course Hero Intern

• I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

Dana University of Pennsylvania ‘17, Course Hero Intern

• The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

Jill Tulane University ‘16, Course Hero Intern