CS 390 Test I
February 25, 1997
1. Which of the following statements are true and which are false ?
(a) If
, then
for any integer
.
(b)
(c) Let
A be the domain of a function f, let
and let
.
Then
.
(d) If languages
and
are regular, then
is regular.
(e) The function
defined as
is one-to-one and onto.
2. Consider the language of strings consisting of one or more a's and zero or more b's.
The alphabet for this language is
.
(a) What is the shortest string of this language ?
(b) List all the strings of length 2 of this language.
(c) Show what kind of operations are necessary to generate strings of length 3 from strings of length 2.
(d) Inductively define this language.
3. Prove by induction that
for any string x and any natural number n.
4. Find a regular expression for the language of strings over the alphabet
{a,b} which are accepted by the FA given by the following transition table.
The initial state is
and the accepting state is
.