CS 3613: Theoretical Foundations of Computing CS 3613: Theoretical Foundations of Computing
Spring 2009
Homework 1: Prliminaries
Due Date: January 26 (Monday), 2009
----------------------------------------------------
Notes:
  1. Read the notes above carefully.

  2. Do [Sip06] Chapter 0, exercises 0.3, 0.6, and 0.7. Read [Sip06] pages 10 - 13 on Graphs, and do [Sip06] Chapter 0, exercise 0.8.

  3. In each case below, find an expression for the indicated set that involves A, B, and C, and the three set-theoretic operators È, Ç, and Ø (complementation):
    1. { x | x Î A or x Î B but not both }.

    2. { x | x is an element of exactly one of the three sets A, B, and C }.

    3. { x | x is an element of exactly two of the three sets A, B, and C }.

    4. { x | x Î A or x Î B or x Î C }.



  4. Read/review "binary relation", "equivalence relation", "equivalence class", and "index of an equivalence relation" in a typical discrete mathematics text, and do the following problem.
    Let P denote the set of all compound propositions involving the simple/atomic propositions p, q, and r and the logical connectives Ú, Ù, and Ø (complementation). (Included in P are the tautology proposition true and the contradiction proposition false.) Define a binary relation R on P by:

    s  R  t if and only if s º t,
    where º denotes the logical equivalence in propositional logic.
    1. Show that R is an equivalence relation on P.

    2. How many equivalence classes of R are there? [ For every element p Î P, the equivalence class (of the equivalence relation R on P) containing p, denoted by [ p ]R, is the set { t Î P | t  R  p } - the set of all elements in P that are related to p under R. The index of an equivalence relation is the number of its equivalence classes. ] List some elements in the equivalence class containing the compound proposition (p Ùq) Ú(Ør). List some elements in the equivalence class containing the tautology true, and some elements in the equivalence class containing the contradiction false.



  5. Write a quantified statement that says there are exactly two elements x in the set A for which the proposition P (x) holds.

  6. An alphabet is a non-empty finite set of symbols, and a string over the alphabet is a finite sequence of symbols of the alphabet. Some example strings over the binary alphabet {0, 1} are: 1 0 1 1 (for the sequence (1, 0, 1, 1), 1 0 (for the sequence (1, 0)), e (denoting the empty sequence).
    For strings x and y over an alphabet, we denote by |x| the length of the sequence x, and by x y the concatenation of the two sequences x and y in that order.
    For each integer n ³ 0, we define the strings xn and yn over the alphabet { 0, 1 } as follows: x0 = 0 and y0 = 1, and for n ³ 1, xn = xn-1 yn-1 and yn = yn-1 xn-1. Prove the following statements using mathematical induction:
    1. For every n ³ 0, | xn | = | yn |.

    2. For every n ³ 0, xn and yn differ in every position.

    3. For every n ³ 0, x2 n and y2 n are palindromes. (A string x is a palindrome if the reversal sequence of x is identical to the sequence x.)

    4. For every n ³ 0, xn contains neither the substring 000 nor the substring 111. (A string x is a substring of a string y if x is simply a contiguous subsequence of y.)






File translated from TEX by TTH, version 3.35.
On 14 Jan 2009, 13:36.