CS154 Formal Languages and Computability

Slides:



Advertisements
Similar presentations
Mathematical Induction
Advertisements

Introduction to Proofs
CSE 105 Theory of Computation Alexander Tsiatas Spring 2012 Theory of Computation Lecture Slides by Alexander Tsiatas is licensed under a Creative Commons.
Mathematical Induction II Lecture 14: Nov
Elementary Number Theory and Methods of Proof
1 Mathematical Induction. 2 Mathematical Induction: Example  Show that any postage of ≥ 8¢ can be obtained using 3¢ and 5¢ stamps.  First check for.
CS 454 Theory of Computation Sonoma State University, Fall 2011 Instructor: B. (Ravi) Ravikumar Office: 116 I Darwin Hall Original slides by Vahid and.
CS5371 Theory of Computation
CSE115/ENGR160 Discrete Mathematics 01/31/12 Ming-Hsuan Yang UC Merced 1.
Theoretical Computer Science COMP 335 Fall 2004
Introduction to Proofs Goals 1.Introduce notion of proof & basic proof methods. 2.Distinguish between correct & incorrect arguments 3.Understand & construct.
Discrete Structures Chapter 5: Sequences, Mathematical Induction, and Recursion 5.2 Mathematical Induction I [Mathematical induction is] the standard proof.
Lecture , 3.1 Methods of Proof. Last time in 1.5 To prove theorems we use rules of inference such as: p, p  q, therefore, q NOT q, p  q, therefore.
1 Number Theory and Methods of Proof Content: Properties of integer, rational and real numbers. Underlying theme: Methods of mathematical proofs.
C OURSE : D ISCRETE STRUCTURE CODE : ICS 252 Lecturer: Shamiel Hashim 1 lecturer:Shamiel Hashim second semester Prepared by: amani Omer.
Methods of Proof & Proof Strategies
 2004 SDU Introduction to the Theory of Computation My name: 冯好娣 My office: 计算中心 430
Mathematical Maxims and Minims, 1988
Mathematics Review Exponents Logarithms Series Modular arithmetic Proofs.
Mathematical Induction. F(1) = 1; F(n+1) = F(n) + (2n+1) for n≥ F(n) n F(n) =n 2 for all n ≥ 1 Prove it!
CSNB143 – Discrete Structure Topic 5 – Induction Part I.
1 Introduction to Abstract Mathematics Chapter 4: Sequences and Mathematical Induction Instructor: Hayk Melikya 4.1- Sequences. 4.2,
CSCI 4325 / 6339 Theory of Computation Chapter One Zhixiang Chen Department of Computer Science University of Texas-Pan American.
Section 1.8. Section Summary Proof by Cases Existence Proofs Constructive Nonconstructive Disproof by Counterexample Nonexistence Proofs Uniqueness Proofs.
CS 173, Lecture B August 27, 2015 Tandy Warnow. Proofs You want to prove that some statement A is true. You can try to prove it directly, or you can prove.
Discrete Mathematics Tutorial 11 Chin
1 Sections 1.5 & 3.1 Methods of Proof / Proof Strategy.
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.
9.4 Mathematical Induction
Mathematical Induction I Lecture 4: Sep 16. This Lecture Last time we have discussed different proof techniques. This time we will focus on probably the.
Chap 3 –A theorem is a statement that can be shown to be true –A proof is a sequence of statements to show that a theorem is true –Axioms: statements which.
Theory of Computation, Feodor F. Dragan, Kent State University 1 TheoryofComputation Spring, 2015 (Feodor F. Dragan) Department of Computer Science Kent.
Section 3.3: Mathematical Induction Mathematical induction is a proof technique that can be used to prove theorems of the form:  n  Z +,P(n) We have.
Methods of Proof Dr. Yasir Ali. Proof A (logical) proof of a statement is a finite sequence of statements (called the steps of the proof) leading from.
CS104:Discrete Structures Chapter 2: Proof Techniques.
Introduction to Proofs
CS154 Formal Languages and Computability Thaddeus Aid Department of Computer Science San Jose State University Spring 2016 Creative Commons Attribution-ShareAlike.
Mathematical Induction I Lecture 5: Sep 20 (chapter of the textbook and chapter of the course notes)
ICS 253: Discrete Structures I
Section 1.8. Proof by Cases Example: Let b = max{a, b} = a if a ≥ b, otherwise b = max{a, b} = b. Show that for all real numbers a, b, c
Methods of Proof Lecture 4: Sep 20 (chapter 3 of the book, except 3.5 and 3.8)
1 Discrete Mathematical Mathematical Induction ( الاستقراء الرياضي )
CS154 Formal Languages and Computability Thaddeus Aid Department of Computer Science San Jose State University Spring 2016 Creative Commons Attribution-ShareAlike.
Mathematical Induction I Lecture 19 Section 4.2 Mon, Feb 14, 2005.
Mathematical Induction. The Principle of Mathematical Induction Let S n be a statement involving the positive integer n. If 1.S 1 is true, and 2.the truth.
Proof And Strategies Chapter 2. Lecturer: Amani Mahajoub Omer Department of Computer Science and Software Engineering Discrete Structures Definition Discrete.
Introduction to Proofs Goals 1.Introduce notion of proof & basic proof methods. 2.Distinguish between correct & incorrect arguments 3.Understand & construct.
Chapter 1 Logic and Proof.
Hubert Chan (Chapters 1.6, 1.7, 4.1)
The Foundations: Logic and Proofs
CSE15 Discrete Mathematics 02/01/17
CSE322 PUMPING LEMMA FOR REGULAR SETS AND ITS APPLICATIONS
Direct Proof by Contraposition Direct Proof by Contradiction
Advanced Algorithms Analysis and Design
Mathematical Induction II
Hubert Chan (Chapters 1.6, 1.7, 4.1)
Recursively Defined Functions
The Foundations: Logic and Proofs
CS 220: Discrete Structures and their Applications
CS154 Formal Languages and Computability
Section 2.1 Proof Techniques Introduce proof techniques:   o        Exhaustive Proof: to prove all possible cases, Only if it is about a.
Mathematical Induction I
MA/CSSE 474 More Math Review Theory of Computation
Induction (Section 3.3).
Topic Past Papers –Proofs
Lecture 5 Number Theory & Proof Methods
Introduction to Proofs
Introduction to Proofs
Presentation transcript:

CS154 Formal Languages and Computability Thaddeus Aid Department of Computer Science San Jose State University Spring 2016 Creative Commons Attribution-ShareAlike 4.0 International License

Creative Commons Attribution-ShareAlike 4.0 International License Citation Lecture developed in conjunction with: Introduction to Theory of Computation Anil Maheshwari Michiel Smid http://cglab.ca/~michiel/TheoryOfComputation/TheoryOfComputation.pdf Creative Commons Attribution-ShareAlike 4.0 International License

Creative Commons Attribution-ShareAlike 4.0 International License Theorem A mathematical statement that is true How do we know it is true? We prove it This is different to science where we test hypotheses Creative Commons Attribution-ShareAlike 4.0 International License

Creative Commons Attribution-ShareAlike 4.0 International License Proof Like debugging it is a bit of an art that takes time to learn Study and understand the problem Study and understand sub-theorems Construct a set of simple instance problems and solve them Write your steps down in order to remember what you did and spot errors! Keep at it! If it was easy then we wouldn’t need advanced mathematics! Creative Commons Attribution-ShareAlike 4.0 International License

Creative Commons Attribution-ShareAlike 4.0 International License Direct Proof Directly solve the proof Prove that for every positive odd integer n : n2 is also odd Prove that for every graph G = (V, E) the sum of all deg(v) is even Creative Commons Attribution-ShareAlike 4.0 International License

Creative Commons Attribution-ShareAlike 4.0 International License Constructive Proof Building the object, proves the object. Build an object such that the object has the property P A graph is called 3-regular if each deg(v) == 3 Prove that for any even n > 4 there exists a 3-regular graph Creative Commons Attribution-ShareAlike 4.0 International License

Nonconstructive Proof Determine if an object has the property P without constructing it Prove that there are irrational numbers x, y such that xy is rational Creative Commons Attribution-ShareAlike 4.0 International License

Proof by Contradiction If a theorem states that statement S is true try and prove the opposite Prove (using our constructive proof) that if n2 is even then n is even Prove sqrt(2) is irrational: sqrt(2) cannot be written as m/n where m and n are integers. Creative Commons Attribution-ShareAlike 4.0 International License

The Pigeon Hole Principle If n+1 objects are placed into n boxes then one box has at least 2 objects If |A| > |B| then there is no one to one mapping from A -> B Prove that for any positive integer n that n2 + 1 arbitrary positive numbers contains within it a subsequence of n + 1 numbers in either an ascending or descending order. Creative Commons Attribution-ShareAlike 4.0 International License

Creative Commons Attribution-ShareAlike 4.0 International License Proof by Induction Prove that step one is true: P(n) is true Induction step: P(n+1) is also true Prove: Creative Commons Attribution-ShareAlike 4.0 International License