25.07.2013 Views

Problems - Homepage Usask

Problems - Homepage Usask

Problems - Homepage Usask

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

CISG 5115 Theory of Computation, Fall 2008 October 09, 2008<br />

MIDTERM EXAM<br />

Name: Student ID#:<br />

Duration: 75 min.<br />

Total: 100 pts.<br />

This exam is closed book. No books, notes, calculators or any other type of help material is<br />

permitted.<br />

Show all your work on the problems to receive full credit. Explain all the assumptions that<br />

you make (if any), reference all the rules, theorems and other sources that are used. Use the<br />

back side of the sheets in case you need extra space for your answers. Do not take the sheets<br />

apart and submit the entire exam back to the instructor. Clearly identify your answers in the<br />

form required by the question(s).<br />

1. (10 pts.) Describe the method of proof by contradiction:<br />

1


CISG 5115 Theory of Computation, Fall 2008 October 09, 2008<br />

2. (10 pts.) Prove by mathematical induction that n! > 2 n , ∀n ≥ 3.<br />

2


CISG 5115 Theory of Computation, Fall 2008 October 09, 2008<br />

3. (10 pts.) Give definition of extended transition function for DFA.<br />

3


CISG 5115 Theory of Computation, Fall 2008 October 09, 2008<br />

4. (10 pts.) Compute the ɛ-closures of the states in the given ɛ-NDFA:<br />

ɛ a b c<br />

→ p ∅ {p} {q} {r}<br />

q {p} {q} {r} ∅<br />

∗r {q} {r} ∅ {p}<br />

4


CISG 5115 Theory of Computation, Fall 2008 October 09, 2008<br />

5. (10 pts.) Describe the methods for converting a finite automaton to a regular expression.<br />

5


CISG 5115 Theory of Computation, Fall 2008 October 09, 2008<br />

6. (10 pts.) Prove or disprove, for regular expressions R, S:<br />

(R + S) ∗ S = (R ∗ S) ∗<br />

6


CISG 5115 Theory of Computation, Fall 2008 October 09, 2008<br />

7. (10 pts.) State (without proof) the Pumping Lemma for regular languages.<br />

7


CISG 5115 Theory of Computation, Fall 2008 October 09, 2008<br />

8. (10 pts.) Is the language L = {a 2 b 3n |n ∈ Z + } regular? Thoroughly explain your answer.<br />

8


CISG 5115 Theory of Computation, Fall 2008 October 09, 2008<br />

9. (10 pts.) List at least five of the closure properties of the regular languages, i.e. at least five operations<br />

that preserve regularity.<br />

9


CISG 5115 Theory of Computation, Fall 2008 October 09, 2008<br />

10. (10 pts.) Given a regular language L, define the language<br />

init(L) = {w|∃x, such that wx ∈ L}<br />

Is the language init(L) necessarily regular? Thoroughly explain your answer.<br />

Make sure your name and student ID number appear on the title page!<br />

10

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!