CS 390 Test I
February 20, 1996
1. Which of the following statements are true and which are false ?
(a) If tex2html_wrap_inline30 , then tex2html_wrap_inline32 .
(b) The function tex2html_wrap_inline34 defined as tex2html_wrap_inline36 is one-to-one.
(c) Let A be the domain of a function f, let tex2html_wrap_inline42 and let tex2html_wrap_inline44 .
Then tex2html_wrap_inline46 .
(d) If languages tex2html_wrap_inline48 and tex2html_wrap_inline50 are regular, then tex2html_wrap_inline52 is regular.
(e) tex2html_wrap_inline54

2. Find a regular expression for the languages of strings over the alphabet {0,1} containing exactly three 0's.

3. Consider the language of strings consisting of one or more a's followed by zero or more b's. The alphabet for this language is tex2html_wrap_inline64 .
(a) What is the shortest string of this language ?
(b) List all the strings of length 2 of this language.
(c) List all the strings of length 3 of this language.
(d) Show how strings of length 2 are generated from strings of length 1.
(e) Show how strings of length 3 are generated from strings of length 2.
(f) Inductively define this language.

4. Prove by induction that a language consisting of a single string is regular.

S. Toida
Tue Jan 14 11:37:34 EST 1997

Back to 1996 Test 1 Solutions

Back to CS390 1996 Test 1

Back to CS390 Past Tests