COT 6315/CM 710-R Formal Languages and Computation Theory (Summer 2000)

Examination 1

This examination is a closed book examination. It is prepared with an expected completion time of 50 minutes. It is to be taken in a period of time no longer than 65 minutes.
On my honor, I have neither given nor received unauthorized aid in completing this examination: ____________________________________. (Sign your name if you agree and wish to receive a grade for this examination.)

NOTE: Complete exactly 5 of the following 6 questions. Clearly note which question you do NOT want graded.

  1. Show that if L is the language over alphabet {0,1} defined by L = {x | x is the binary representation of a number and x mod 3 = 0}, then L is a regular language.

  2. Prove or disprove the following claim: the language abnacn is regular.

  3. Consider the DFA M = ({q0,q1,q2}, {0,1}, d, q0, {q0}) with transition function d defined as:

     01
    q0q0q1
    q1q1q2
    q2q2q0

    Draw a state transition diagram for M then construct a regular expression for M using the CONVERT procedure described in Sipser's text. Show each intermediate GNFA generated by your application of the procedure.

  4. Consider the alphabet containing four distinct symbols S = {[0/0], [0/1], [1/0], [1/1]}.

    A string of symbols in S gives two sequences of binary digits and represents two distinct binary numbers: the one whose bits are to the left of each slash and the one whose bits are to the right of each slash. Thus the string [1/0][1/1][0/1] is interpreted as the two numbers 110 and 011, representing 6 and 3 in the left and right positions respectively.

    Design a determinitstic finite automaton to accept those strings over S in which the left number is exactly twice the right number.

  5. Prove that any finite language is regular.

  6. Demonstrate that the regular languages are closed under intersection by showing how one can combine two DFAs M1 and M2 into a new DFA M3 whose language is the intersection of the languages of M1 and M2.

This document is copyright 2000 by Joseph N. Wilson.