CMSC250 S ECTIONS 0303 & 0304 M IDTERM R EVIEW Sri Kankanahalli Discussion 10: 9 March 2016 Office Hrs: Mon. and Wed. 4-6PM AVW 1112.

Slides:



Advertisements
Similar presentations
Functions Reading: Epp Chp 7.1, 7.2, 7.4
Advertisements

1.6 Functions. Chapter 1, section 6 Functions notation: f: A B x in A, y in B, f(x) = y. concepts: –domain of f, –codomain of f, –range of f, –f maps.
Tutorial 2: First Order Logic and Methods of Proofs
With examples from Number Theory
Introduction to Proofs
Chapter 3 Elementary Number Theory and Methods of Proof.
(CSC 102) Discrete Structures Lecture 14.
Quotient-Remainder Theory, Div and Mod
Homework 7 –Average: 70Median: 75 – Homework 8 –Average: 74Median:
CSE 20 DISCRETE MATH Prof. Shachar Lovett Clicker frequency: CA.
CS 454 Theory of Computation Sonoma State University, Fall 2011 Instructor: B. (Ravi) Ravikumar Office: 116 I Darwin Hall Original slides by Vahid and.
Logic and Proof. Argument An argument is a sequence of statements. All statements but the first one are called assumptions or hypothesis. The final statement.
Snick  snack CPSC 121: Models of Computation 2008/9 Winter Term 2 Functions Steve Wolfman, based on notes by Patrice Belleville and others.
CMSC 250 Discrete Structures Exam #1 Review. 21 June 2007Exam #1 Review2 Symbols & Definitions for Compound Statements pq p  qp  qp  qp  qp  q 11.
CMSC 250 Discrete Structures Number Theory. 20 June 2007Number Theory2 Exactly one car in the plant has color H( a ) := “ a has color”  x  Cars –H(
Proof Must Have Statement of what is to be proven.
CS 454 Theory of Computation Sonoma State University, Fall 2011 Instructor: B. (Ravi) Ravikumar Office: 116 I Darwin Hall Original slides by Vahid and.
Lecture 3.2: Public Key Cryptography II CS 436/636/736 Spring 2012 Nitesh Saxena.
The essential quality of a proof is to compel belief.
CS 2210 (22C:019) Discrete Structures Sets and Functions Spring 2015 Sukumar Ghosh.
Methods of Proof & Proof Strategies
MTH-376 Algebra Lecture 1. Instructor: Dr. Muhammad Fazeel Anwar Assistant Professor Department of Mathematics COMSATS Institute of Information Technology.
Induction and recursion
A Brief Summary for Exam 1 Subject Topics Propositional Logic (sections 1.1, 1.2) –Propositions Statement, Truth value, Proposition, Propositional symbol,
MATH 224 – Discrete Mathematics
CSE 311: Foundations of Computing Fall 2013 Lecture 8: More Proofs.
Week 15 - Wednesday.  What did we talk about last time?  Review first third of course.
1 Chapter Facts about Functions. 2 Section 2.3 Properties of Functions Let ƒ : A → B be a function. There are three properties that ƒ might possess.
1 Introduction to Abstract Mathematics Chapter 3: Elementary Number Theory and Methods of Proofs Instructor: Hayk Melikya Direct.
CSE 311 Foundations of Computing I Lecture 8 Proofs and Set Theory Spring
Chapter 5 Existence and Proof by contradiction
Methods of Proof Lecture 3: Sep 9. This Lecture Now we have learnt the basics in logic. We are going to apply the logical rules in proving mathematical.
321 Section, Week 3 Natalie Linnell. Functions A function from A to B is an assignment of exactly one element of B to each element of A. We write f(a)
Basic Structures: Sets, Functions, Sequences, and Sums CSC-2259 Discrete Structures Konstantin Busch - LSU1.
1 CMSC 250 Discrete Structures CMSC 250 Lecture 1.
Week 7 - Monday.  What did we talk about last time?  Sets.
MATH 224 – Discrete Mathematics
CSE 311 Foundations of Computing I Lecture 9 Proofs and Set Theory Autumn 2012 CSE
Foundations of Discrete Mathematics Chapter 4 By Dr. Dalia M. Gil, Ph.D.
Sets Definition: A set is an unordered collection of objects, called elements or members of the set. A set is said to contain its elements. We write a.
CSci 2011 Discrete Mathematics Lecture 9, 10
CS 2800 Midterm Review. Announcements Midterm Tuesday, 11/3, 7:30PM, UP B17 Covers up to and including HW #4 (induction) Practice Prelim / Homework Solutions.
Lecture 3.1: Public Key Cryptography I CS 436/636/736 Spring 2015 Nitesh Saxena.
CS104:Discrete Structures Chapter 2: Proof Techniques.
CSE 311: Foundations of Computing Fall 2013 Lecture 8: Proofs and Set theory.
FUNCTIONS COSC-1321 Discrete Structures 1. Function. Definition Let X and Y be sets. A function f from X to Y is a relation from X to Y with the property.
1 CMSC 250 Chapter 3, Number Theory. 2 CMSC 250 Introductory number theory l A good proof should have: –a statement of what is to be proven –"Proof:"
CSE 20: Discrete Mathematics for Computer Science Prof. Shachar Lovett.
CSCI 115 Course Review.
Section 1.7. Definitions A theorem is a statement that can be shown to be true using: definitions other theorems axioms (statements which are given as.
Methods of Proof Lecture 4: Sep 20 (chapter 3 of the book, except 3.5 and 3.8)
Week 15 - Wednesday.  What did we talk about last time?  Review first third of course.
Chapter 2 1. Chapter Summary Sets (This Slide) The Language of Sets - Sec 2.1 – Lecture 8 Set Operations and Set Identities - Sec 2.2 – Lecture 9 Functions.
1 Lecture 5 Functions. 2 Functions in real applications Curve of a bridge can be described by a function Converting Celsius to Fahrenheit.
Week 8 - Wednesday.  What did we talk about last time?  Relations  Properties of relations  Reflexive  Symmetric  Transitive.
CSE 20: Discrete Mathematics for Computer Science Prof. Shachar Lovett.
The Foundations: Logic and Proofs
CS 2210:0001 Discrete Structures Sets and Functions
Direct Proof by Contraposition Direct Proof by Contradiction
CSE 321 Review Session Dave Bacon.
Chapter 1: The Foundations: Logic and Proofs
Sets Set Identities Sets and propositional logic have some similar properties In fact both are forms of boolean algebra Compare Set Identities table (p.
CSCE 355 Foundations of Computation
CS 280 Midterm Review.
Propositional Logic Defining Propositional Logic
The Foundations: Logic and Proofs
CSE 20: Discrete Mathematics for Computer Science Prof. Shachar Lovett
A Brief Summary for Exam 1
Math/CSE 1019N: Discrete Mathematics for Computer Science Winter 2007
Lecture 5 Number Theory & Proof Methods
Presentation transcript:

CMSC250 S ECTIONS 0303 & 0304 M IDTERM R EVIEW Sri Kankanahalli Discussion 10: 9 March 2016 Office Hrs: Mon. and Wed. 4-6PM AVW 1112

Topics for Today Midterm 1 is March 21 st ! ! ! Review: Propositional logic(1.1, 1.2, 1.4) Binary arithmetic(Feb 3. slides 18-21) Two’s complement Proof techniques(1.7, a bit of 1.8) Set theory(2.1, 2.2) Functions(2.3) Floor and ceiling functions Number theory(4.1)

Propositional Logic Know: Logical connectives (including implication and bi- implication) Quantifiers (∀, ∃) Translating from English to propositional logic, in both directions A(X): X is a cow. B(X): X is blue. “All cows are blue.” ∀ x [A(x) → B(x)] ∃ x ¬A(x) ∧ B(x) “There exists a thing that is not a cow and is blue.”

Propositional Logic Don’t need to know (for this test): System specifications Circuits

Propositional Logic Slides: Feb. 1, everything Feb. 8, material on quantifiers Feb. 10, everything Practice problems: Translating from English to propositional logic Chapter 1.1, #10-12 Working with quantifiers Chapter 1.4, #10, 32, 33

Binary Arithmetic Know: How to convert numbers from base 10 to binary Two’s complement arithmetic Don’t need to know How to convert to other bases (octal, hexadecimal, etc.) Though this is still a good skill to have in life!

Binary Arithmetic Slides: Feb. 3, material on binary arithmetic Practice problems: Convert 59 to an 8-bit two’s complement binary number. Convert -63 to an 8-bit two’s complement binary number. Express (21 – 95) as an 8-bit two’s complement binary number.

Proof Techniques Know: All our basic methods of proof Direct proof Proof by contraposition Proof by contradiction General proof techniques Constructing a counterexample Proof by cases

Proof Techniques Slides: Feb. 17, everything Practice problems: Basic proof methods Chapter 1.7, #1-5, 6, 13 Proof by counterexample and/or cases Chapter 1.8, #3, 6

Set Theory Know: Set operations (union, intersection, difference) Definition of subset and proper subset Proving properties of sets Proof by “element chasing” Proof by derivation Don’t need to know (for this test): Set identities (you’ll get a sheet, like the one you had on the HW)

Set Theory Slides: Feb. 22, everything Practice problems: “Element chasing” proofs Chapter 2.2, #16, 19 Derivational proofs Chapter 2.2, #17, 18 Prove (A – B) ∩ (B – A) = ∅, both ways.

Functions Know: Finding the domain and codomain of a function Injectivity, surjectivity, bijectivity – and how to prove them How to take the inverse of a function, and verify it Floor and ceiling functions Don’t need to know (for this test): Partial functions Binary relations

Functions Slides: Feb. 24, everything Feb. 29, material on floor/ceiling functions Practice problems: Finding domain and codomain Chapter 2.3, #7 Determining injectivity/surjectivity/bijectivity Chapter 2.3, #12-15, 22, 23 Taking inverses of functions Find the inverse of f(x) = 3x /x Floor and ceiling functions Chapter 2.3, #8, 9

Number Theory Know: Proving things about even/odd numbers Divisibility Modular arithmetic Proving statements like: “If n is odd, n 2 ≡ 1 (mod 8).” “If n is odd and m ≡ 3 (mod 4), then (n 2 + m) is divisible by 4.” (More complicated than midterm.) Proving small roots are irrational Using modular arithmetic Using the Unique Factorization Theorem (slides later!)

Number Theory Don’t need to know (for this test): The division algorithm Modular exponentiation Proofs about primes

Number Theory Slides: Feb. 29, number theory and divisibility Mar. 7, everything Practice problems: Proving things about even/odd numbers Chapter 1.7, #1-5, 6, 13 Divisibility Chapter 4.1, #5-8 Modular arithmetic Chapter 4.1, #38-40 Proving irrationality Prove √3 is irrational, once with modular arithmetic, and once with the Unique Factorization Theorem.

Unique Factorization Theorem Also called the “Fundamental Theorem of Arithmetic” Theorem: “Every integer can be expressed as a product of unique prime numbers.” 24= 3 * 2 * 2 * 2= 3 * = 5 * 4 * 4 * 2= 5 * 4 2 * 2 x = p 1 a 1 * p 2 a 2 * … * p n a n

Unique Factorization Theorem Proof: √2 is irrational. A proof by contradiction (like usual): Assume √2 is rational. Then √2 = a / b, for a and b with no common factors. So 2 = a 2 / b 2. So a 2 = 2b 2. We’ve done this many times before. Only the next part differs.

Unique Factorization Theorem Proof: √2 is irrational. So a 2 = 2b 2. By the UFT, we can write a and b as a unique product of prime factors. a = p 1 x 1 * p 2 x 2 * … * p n x n b = q 1 y 1 * q 2 y 2 * … * q n y n So, we can write a 2 and b 2 as: a 2 = p 1 2x 1 * p 2 2x 2 * … * p n 2x n b 2 = q 1 2y 1 * q 2 2y 2 * … * q n 2y n

Unique Factorization Theorem Proof: √2 is irrational. a 2 = 2b 2. So, we can write a 2 and b 2 as: a 2 = p 1 2x 1 * p 2 2x 2 * … * p n 2x n b 2 = q 1 2y 1 * q 2 2y 2 * … * q n 2y n We see a 2 and b 2 have all even powers, for each prime in their factorizations. So, a 2 and b 2 would both have an even number of 2s in their factorizations. So, 2b 2 would have an odd number of 2s. Since 2b 2 has an odd number of 2s in its factorization, and a 2 has an even number of 2s, by the UFT they can’t be equal! Contradiction.

Unique Factorization Theorem Proof: √2 is irrational. a 2 = 2b 2. Since 2b 2 has an odd number of 2s in its factorization, and a 2 has an even number of 2s, by the UFT they can’t be equal! Contradiction. Because assuming that √2 is rational leads to a contradiction, √2 must be irrational. QED