CSCI 6420
Spring 2016
Practice Questions for Exam 1

  1. What is the definition of a computable language?

    Answer

  2. What is the definition of the intersection of two languages?

    Answer

  3. Is there such a thing as a computable program? Why or why not?

    Answer

  4. Suppose that A and B are two computable languages over alphabet {a, b, c, d}. Is AB computable? Explain.

    Answer

  5. The difference ST of two sets S and T is the set {x | xS and xT}.

    Suppose that S is a computable language over alphabet A = {a, b, c, d}. Is A* − S computable? Explain.

    Answer

  6. Let B = {p | p is a Java program that contains a static variable of type int called frog}. Is B computable? Why or why not?

    Answer

  7. A configuration of pieces on an 8x8 chessboard can be described by a string. The configuration tells which piece (if any) is in each square, and whose move is next. Consider the set W of all chessboard configurations where black has a winning strategy. Is W a computable set of strings? (In Chess, if a particular configuration is reached more than once in a game, the game is a draw.)

    Answer

  8. Let S = {x | x ∈ {a, b, c}* and the length of x is a power of 2}. Prove that S is not a regular language.

    Answer

  9. Let S = {anbcn | n ≥ 0}. Prove that S is not a regular language.

    Answer