



Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!




COT 3100 Topics Covered Logic : Use of truth tables, logical connectives, implications, logic and implication laws, use of quantifiers Sets : Definition, Union, Intersection, Minus, Some Counting, Set Laws, Set Table, Venn Diagrams, Inclusion/Exclusion Principle Relations & Functions: Definition of a relation, reflexive, irreflexive, symmetric, anti-symmetric, transitive, injection, surjection, and bijection. Number Theory: Induction, Definition of divisibility, Use of mod and mod rules, Euclidโs Algorithm Strings and Languages: Regular expressions, DFAs, languages are sets of strings. Relevant parts in the book: Logic 2.1 โ 2. Sets 3.1- 3. Number Theory 4.1 โ 4. Relations & Functions 5.1,5.2,5.6,7.1,7.3,7. Strings & Languages: 6.1, remember 6.2-6.3 talks about FSMs, but I have dealt only with DFAโs. Since we have not had an exam with induction, number theory and strings and languages, that will be the stress of the exam. No need to memorize the logic or set laws โ I will attach the necessary tables.
Logic problem Show that the following is a tautology: ( (p ๏ r) ๏ ( (q ๏ r) ๏ p) ) ๏ ๏ ( (๏(p ๏ q) ) ๏ p ). ( (p ๏ r) ๏ ( (q ๏ r) ๏ p) ) ๏ ๏ ( (๏(p ๏ q) ) ๏ p ) ๏ ( (p ๏ r) ๏ ( (q ๏ r) ๏ p) ) ๏ ๏๏( p ๏ q) ๏ ๏p ๏ (De Morgans) ( (p ๏ r) ๏ ( (q ๏ r) ๏ p) ) ๏ ( p ๏ q) ๏ ๏p ๏ (Double Negation) (๏p ๏ p) ๏ ( (p ๏ r) ๏ (q ๏ r) ๏ (p ๏ q)) ๏ (Com/Assoc. over or) T ๏ ( (p ๏ r) ๏ (q ๏ r) ๏ (p ๏ q)) ๏ (Inverse Law) T ๏ (Domination Law) Set Problem Prove or disprove: ((A ๏ C) ๏ (B ๏ C)) ๏ ((A ๏ B) โ C = ๏) PROVE if ((A ๏ C) ๏ (B ๏ C)), that means we can assume if x๏A, then x๏C, and if x๏B then x๏C. Now, we need to show that ((A ๏ B) โ C = ๏). Consider to the contrary that there is an element x๏(A ๏ B) โ C, That would mean by definition of set difference, that x๏ A ๏ B , but x๏C.
g(a) = z g(b) = z g(f(1)) = z Here we have that g๏ฐf is not only injective, but also bijective. But, g is not injective since g(a)=g(b). Induction Problem
๏ฝ n i i x 0 < x n+ . Use induction on n. Base case: n=0. LHS = x 0 = 1, RHS = x. With given information we find LHS < RHS as desired. Inductive hypothesis: Assume for an arbitrary value of n=k
๏ฝ k i i x 0 < x k+ . Inductive Step: Under this assumption we must prove our
๏ซ ๏ฝ 1 0 k i i x (^) < x(k+1)+1.
๏ซ ๏ฝ 1 0 k i x i
๏ฝ k i x^ i 0
๏ฝ n i x^ i 0 < x n+ , for all n ๏ณ 0 and x > 2. Number Theory Problem
Given that 5 | (2x + 5y), where x and y are integers, show that 5 | x. Using our given information, we find that 2x + 5y = 5c, for some integer c. 2x = 5c โ 5y x = 5(c โ y)/ We are given that x is an integer. Thus, we must have that 2 | (5(c โ y)). But if c โ y is odd, this will be false. So, we must have that 2 | (c โ y). In this case we can let c โ y = 2d, for some integer d. Substituting, we have x = 5(2d)/ x = 5d, so we can conclude that 5 | x. String/Language problem Let T, W, and X be languages over the alphabet {a,b}. Show that if T ๏ W, then (T ๏ X)* ๏ (W ๏ T). First we will show that (T ๏ X) ๏ (W ๏ T). Let y ๏T ๏ X. We must show that y ๏ W ๏ T. If we have that y ๏T ๏ X, we can conclude that y ๏T and y ๏X. But we also know that T ๏ W. Thus, given that y ๏ T, we also know that y๏W. Since both of these are true, we have y ๏ W ๏ T, as desired. Now that we have established that (T ๏ X) ๏ (W ๏ T), we can โstarโ both sides to yield (T ๏ X) ๏ (W ๏ T)*.