CS 3613: Theoretical Foundations of Computing
CS 3613: Theoretical Foundations of Computing
Spring 2009
Homework 1: Prliminaries
Due Date: January 26 (Monday), 2009
----------------------------------------------------
Notes:
Read Course Information: Section 7 (Miscellaneous) and Section 9 (Academic Dishonesty or Misconduct).
When you are giving a construction, example, etc., provide a justification with your argument. Your solutions to numerical problems must contain the derivation of your answers. In all of your presentations, strive for correctness, completeness, and clarity. When in doubt about the assumptions of problems, the interpretations of wording, etc., consult the instructor.
You should strive to complete all problems assigned, and a subset of them will be graded.
Read the notes above carefully.
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.
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):
{ x | x Î A or x Î B but not both }.
{ x | x is an element of exactly one of the three sets A, B, and C }.
{ x | x is an element of exactly two of the three sets A, B, and C }.
{ x | x Î A or x Î B or x Î C }.
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 ifandonlyif s º t,
where º denotes the logical equivalence in propositional logic.
Show that R is an equivalence relation on P.
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.
Write a quantified statement that says there are exactly two elements x in the set A for which the proposition P (x) holds.
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:
For every n ³ 0, | xn | = | yn |.
For every n ³ 0, xn and yn differ in every position.
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.)
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.