CS 475/575 Final Exam
Spring 2012
Preview / Study guide
Your score on this exam is based on your best 10 of these 11 problems: 1(a,b,c), 2(a,b,c,d), 3(a,b,c), 4.
1. Let language L1 = .
a. Write a regu
CS 475/575 Exam 3
Spring 2012
Name _
Your score on this exam is based on your best 7 of these 8 problems.
1. The ambiguous grammar below generates strings that represent regular expressions.
Draw all
CS 475/575 Exam 3
Spring 2012
Solution
Your score on this exam is based on your best 7 of these 8 problems.
1. The ambiguous grammar below generates strings that represent regular expressions.
Draw al
CS 475/575 Exam 5
Spring 2012
Name _
Your score on this exam is based on your best 5 of these 6 problems.
1. Write an accepting computation sequence for the input string aa using this
non-deterministi
CS 475/575 Exam 4
Spring 2012
Name _
Your score on this exam is based on your best 6 of these 7 problems.
1. The pushdown automaton below accepts by both final state and empty stack; that is, both
con
CS 475/575 Exam 5
Spring 2012
Solution
Your score on this exam is based on your best 5 of these 6 problems.
1. Write an accepting computation sequence for the input string aa using this
non-determinis
CS 475/575 Exam 2
Spring 2012
Solution
Your score on this exam is based on your best 7 of these 8 problems.
1. Write a regular expression that generates the set of strings over alphabet cfw_a, b that
CS 475/575 Exam 1
Spring 2012
Name _
Your score on this exam is based on your best 5 of these 6 problems.
1. Let language L be the strings over alphabet cfw_a,b,c that do not contain two consecutive
i
CS 475/575 Exam 1
Spring 2012
Solution
Your score on this exam is based on your best 5 of these 6 problems.
1. Let language L be the strings over alphabet cfw_a,b,c that do not contain two consecutive
CS 475/575 Exam 2
Spring 2012
Name _
Your score on this exam is based on your best 7 of these 8 problems.
1. Write a regular expression that generates the set of strings over alphabet cfw_a, b that do
CS 475/575 Exam 5
Spring 2012
Preview / Study guide
Your score on this exam is based on your best 5 of these 6 problems.
1. Given a Turing machine, write an accepting computation sequence for an input
CS 475/575 Exam 3
Spring 2012
Preview / Study guide
Your score on this exam is based on your best 7 of these 8 problems.
1. Given an ambiguous grammar, draw each distinct parse tree for a given input
CS 475/575 Exam 4
Spring 2012
Preview / Study guide
Your score on this exam is based on your best 6 of these 7 problems.
1. Given a pushdown automaton, write accepting computation sequences for some i
CS 475/575 Exam 1
Spring 2012
Preview / Study guide
Your score on this exam is based on your best 5 of these 6 problems.
1. Draw a deterministic finite-state machine that accepts a given language.
2.
CS 475/575 Exam 2
Spring 2012
Preview / Study guide
Your score on this exam is based on your best 7 of these 8 problems.
1. Write a regular expression that generates a given language.
2. Determine whe
CS 475/575 Exam 4
Spring 2012
Solution
Your score on this exam is based on your best 6 of these 7 problems.
1. The pushdown automaton below accepts by both final state and empty stack; that is, both
c