CSCE 355 Foundations of Computation

Slides:



Advertisements
Similar presentations
Lecture 19 Exam: Tuesday June14 4-6pm Overview. Disclaimer The following is a only study guide. You need to know all the material treated in class.
Advertisements

CS 454 Theory of Computation Sonoma State University, Fall 2011 Instructor: B. (Ravi) Ravikumar Office: 116 I Darwin Hall Original slides by Vahid and.
Fall 2004COMP 3351 Single Final State for NFA. Fall 2004COMP 3352 Any NFA can be converted to an equivalent NFA with a single final state.
1 Single Final State for NFAs and DFAs. 2 Observation Any Finite Automaton (NFA or DFA) can be converted to an equivalent NFA with a single final state.
Costas Busch - RPI1 Mathematical Preliminaries. Costas Busch - RPI2 Mathematical Preliminaries Sets Functions Relations Graphs Proof Techniques.
CS 454 Theory of Computation Sonoma State University, Fall 2011 Instructor: B. (Ravi) Ravikumar Office: 116 I Darwin Hall Original slides by Vahid and.
Courtesy Costas Busch - RPI1 Mathematical Preliminaries.
1 A Single Final State for Finite Accepters. 2 Observation Any Finite Accepter (NFA or DFA) can be converted to an equivalent NFA with a single final.
Final Exam Review Cummulative Chapters 0, 1, 2, 3, 4, 5 and 7.
1 CSCI 2400 section 3 Models of Computation Instructor: Costas Busch.
 2004 SDU Introduction to the Theory of Computation My name: 冯好娣 My office: 计算中心 430
1 CD5560 FABER Formal Languages, Automata and Models of Computation Lecture 7 Mälardalen University 2010.
A Brief Summary for Exam 1 Subject Topics Propositional Logic (sections 1.1, 1.2) –Propositions Statement, Truth value, Proposition, Propositional symbol,
Discrete Mathematics Transparency No. 0-1 Discrete Mathematics Cheng-Chia Chen September 2009.
MATH 224 – Discrete Mathematics
CSC312 Automata Theory Lecture # 1 Introduction.
1 Chapter 1 Automata: the Methods & the Madness Angkor Wat, Cambodia.
Week 15 - Wednesday.  What did we talk about last time?  Review first third of course.
Mathematical Preliminaries. Sets Functions Relations Graphs Proof Techniques.
Fall 2005Costas Busch - RPI1 Mathematical Preliminaries.
Prof. Busch - LSU1 Mathematical Preliminaries. Prof. Busch - LSU2 Mathematical Preliminaries Sets Functions Relations Graphs Proof Techniques.
Induction Proof. Well-ordering A set S is well ordered if every subset has a least element. [0, 1] is not well ordered since (0,1] has no least element.
CSC312 Automata Theory Lecture # 1 Introduction.
Theory of Computation, Feodor F. Dragan, Kent State University 1 TheoryofComputation Spring, 2015 (Feodor F. Dragan) Department of Computer Science Kent.
1 IS 2150 / TEL 2810 Introduction to Security James Joshi Associate Professor, SIS Lecture 3 September 15, 2009 Mathematical Review Security Policies.
ICS 253: Discrete Structures I Induction and Recursion King Fahd University of Petroleum & Minerals Information & Computer Science Department.
Mathematical Preliminaries
THEORY OF COMPUTATION Komate AMPHAWAN 1. 2.
Overview Mathematical Induction Derivations Recursive Inference Parse Trees Equivalence of Inference, Derivations, and Parse Trees.
Lecture 1 Overview Topics 1. Proof techniques: induction, contradiction Proof techniques June 1, 2015 CSCE 355 Foundations of Computation.
Strings Basic data type in computational biology A string is an ordered succession of characters or symbols from a finite set called an alphabet Sequence.
Classifications LanguageGrammarAutomaton Regular, right- linear Right-linear, left-linear DFA, NFA Context-free PDA Context- sensitive LBA Recursively.
Lecture 2 Overview Topics What I forgot from last lecture Proof techniques continued Alphabets, strings, languages Automata June 2, 2015 CSCE 355 Foundations.
1 Mathematical Preliminaries. 2 Sets Functions Relations Graphs Proof Techniques.
CSE 311: Foundations of Computing Fall 2013 Lecture 8: Proofs and Set theory.
CompSci 102 Discrete Math for Computer Science March 13, 2012 Prof. Rodger Slides modified from Rosen.
CSCI 115 Course Review.
1 Discrete Mathematical Mathematical Induction ( الاستقراء الرياضي )
Week 15 - Wednesday.  What did we talk about last time?  Review first third of course.
Chapter 5 With Question/Answer Animations 1. Chapter Summary Mathematical Induction - Sec 5.1 Strong Induction and Well-Ordering - Sec 5.2 Lecture 18.
English for Economic Informatics I Tomáš Foltýnek Theoretical Foundations of Informatics.
Lecture 11 Minimization Topics: Strings distinguishing states Equivalence relation October 6, 2008 CSCE 355 Foundations of Computation.
CSE 20: Discrete Mathematics for Computer Science Prof. Shachar Lovett.
Review: Discrete Mathematics and Its Applications
CSCE 355 Foundations of Computation
Methods of Proof.
Introduction to the Theory of Computation
CSCE 355 Foundations of Computation
CSE 321 Review Session Dave Bacon.
PDAs Accept Context-Free Languages
IS 2150 / TEL 2810 Information Security & Privacy
Single Final State for NFA
Introduction to Automata Theory
Chapter 10: Mathematical proofs
Deterministic PDAs - DPDAs
CSCI-2400 Models of Computation.
A Brief Summary for Exam 1
Sungho Kang Yonsei University
IS 2150 / TEL 2810 Introduction to Security
Review: Discrete Mathematics and Its Applications
MA/CSSE 474 More Math Review Theory of Computation
Mathematical Preliminaries
Chapter 1 Introduction to the Theory of Computation
Chapter 11: Further Topics in Algebra
Applications of Regular Closure
Sub: Theoretical Foundations of Computer Sciences
IS 2150 / TEL 2810 Introduction to Security
IS 2150 / TEL 2810 Information Security & Privacy
CSCE 355 Foundations of Computation
Presentation transcript:

CSCE 355 Foundations of Computation Lecture 1 Overview Topics Proof techniques: induction, contradiction Proof techniques June 1, 2015

Models of Computation

Course Outcomes Mathematical prerequisites: functions, relations, properties of relations, posets. Proof Techniques Finite automata: regular languages, regular expressions, DFAs, NFAs, equivalences. Limitations: pumping lemma Context free languages: grammars, push-down automata Turing machines: undecidability, the halting problem Intractability: NP, NP-Completeness

Prerequisites CSCE 211 Number systems, Boolean algebra, logic design, sequential machines Mealy machines Moore machines

Prerequisites CSCE 350 MATH 374 Techniques for representing and processing information, including the use of lists, trees, and graphs; analysis of algorithms; sorting, searching, and hashing techniques. MATH 374 Propositional and predicate logic; proof techniques; recursion and recurrence relations; sets, combinatorics, and probability; functions, relations, and matrices; algebraic structures.

Review of Relations on Sets Binary relations - (X, Y) ἐ R or X Rel Y < on integers likes (X,Y) Unary relation - properties boring(matthews) Ternary relation “X was introduced to Y by Z” -- ( X, Y, Z) Table in a relational database

Special types of Relations Injections Surjections Functions

Properties of Relations Property Def Example Neg-Example Reflexive Irreflexive symmetric antisymmetric asymmetric transitive Total Injection Surjection function

Posets Partially Ordered Sets (POSETS) Hasse Diagram Reflexive Antisymmetric Transitive Hasse Diagram Topological sorting

Equivalence relations

Proof Techniques 1.1 Direct proof 1.2 Proof by induction 1.3 Proof by transposition 1.4 Proof by contradiction 1.5 Proof by construction 1.6 Proof by exhaustion 1.7 Probabilistic proof 1.8 Combinatorial proof 1.9 Nonconstructive proof 1.10 Proof nor disproof 1.11 Elementary proof

Deductive Proofs the conclusion is established by logically combining the axioms, definitions, and earlier theorems Example: The sum of two even integers is even. Hypothesis

Theorem 1.3 used to prove Theorem 1.4 Theorem 1.3 If x >= 4 then 2x >= x2. Theorem 1.4 If x is the sum of the squares of 4 positive integers then 2x >= x2. Proof

Theorem 1.3 If x >= 4 then 2x >= x2. f(x) = x2 / 2x. Then what is the derivative f’ of f Derivative of quotient?? http://www.math.hmc.edu/calculus/tutorials/quotient_rule/ So f’(x) =

Proofs about Equality of Sets To prove S = T Show S is a subset of T, and T is a subset of S Commutative law of union Theorem 1.10 Distributive law of union over intersection Proof

Proof by Contradiction

If and only If statements IF H then C H = Hypothesis C = conclusion H implies C H only if C C if H A if and only if B If part : Only-if part Theorm 1.7 ceiling = floor  x is an integer

Induction Given a statement S(n) about an integer n that we want to prove. Basis Step: Show S(i) is true for a particular integer i Usually i = 0 or i = 1 Inductive Step: Assume S(n) is true for n >= i and then show S(n+1) is true Inductive Hypothesis: Assume S(n) is true

Example Induction Proof: Theorem 1.16

Number of leaves in complete tree of height h is 2h.

More general induction Basis step as before Assume S(k) for all k <= n then show S(n)

Recursive Def of Tree Basis: a single node is a tree. If T1, T2, … Tk are trees then a new tree can be formed by Add new node N, the root of the new tree Add copies of T1… Tk Add an edge from N to the root of each T1, T2, … Tk

Structural Induction For objects with recursive definitions consisting of base objects and then combining rules Basis step: show the proposition S(X) holds for every base object X. Inductive step: Given a recursive structure X formed from X1, X2, … Xn by the application of the def. then Assume S(X1) S(X2) …. S(Xn) are true and show that S(X) is true

Recursive Def of Arithmetic Expressions Basis: a number or a variable is an expression. If E and F are expressions then a new expression G can be formed by applying one of the three rules G = E + F G = E * F G = ( E )

Every Expression has equal number of left and right parenthses

Homework . Prove if a complete binary tree has n leaves then it has 2n-1 nodes.

References– Mathematical Foundations http://en.wikipedia.org/wiki/Binary_relation http://en.wikipedia.org/wiki/Relation_(mathematics) http://en.wikipedia.org/wiki/Mathematical_proof http://en.wikipedia.org/wiki/Proofs_from_THE_BOOK Extended “Proof” techniques http://www.maths.uwa.edu.au/~berwin/humour/invalid.proofs.html Fair Use Books Online http://fair-use.org/bertrand-russell/the-principles-of-mathematics/ Books Dr. Euler's Fabulous Formula: Cures Many Mathematical Ills