Lecture 2 : Propositions DRAFT
|
|
- Preston Ross
- 6 years ago
- Views:
Transcription
1 CS/Mth 240: Introduction to Discrete Mthemtics 1/20/2010 Lecture 2 : Propositions Instructor: Dieter vn Melkeeek Scrie: Dlior Zelený DRAFT Lst time we nlyzed vrious mze solving lgorithms in order to illustrte some of the techniques covered in this course. We did not expect you to understnd everything from tht lecture. We did not prove everything s formlly s we should hve, either. From now on, we will e more rigorous, nd you should sk question whenever you don t understnd something. 2.1 Propositions nd Proofs Rememer tht the gol of this course is to tech you how to reson out discrete structures in rigorous mnner. To tht end, we discuss propositions in this lecture. Propositions re cler sttements tht re either true or flse. Definition 2.1. A proposition is sttement tht is either true or flse. Definition 2.2. A proof of proposition is chin of logicl deductions ending in the proposition nd strting from some xioms. We mke few remrks out Definition 2.2. First, think of logicl deductions s steps tht re logiclly sound. Second, xioms re sttements we tke for grnted nd, therefore, don t need to prove. The set of xioms depends on the re we work in. For exmple, when we tlk out Eucliden geometry, there re five sic xioms. The first xiom of Eucliden geometry sttes tht we cn drw stright line segment connecting ny two points Proofs By Picture A common proof technique is to cpture proposition using descriptive pictures nd then reson out the pictures. This is very powerful technique s it llows us to use our intuition. It is sid tht picture is worth thousnd words ; however, e wrned tht in some cses our intuition my led us stry. Wenowgivesomeproofsypicturesexmples. OurfirstexmpleisproofofthePythgoren Theorem. Our second exmple is proof y picture tht leds to n incorrect conclusion. c Figure 2.1: A right tringle with sides of length,, nd c Proposition 2.3 (Pythgoren Theorem). In right tringle where the hypotenuse hs length c nd the other two sides hve lengths nd, we hve = c 2. 1
2 2.1. Propositions nd Proofs Proof. Consider right tringle like the one in Figure 2.1. We tke four copies of the tringle nd rrnge them in two different wys. First, form squre with the hypotenuse s the side. Its re is c 2. We show this rrngement in Figure 2.2. The four copies of the right tringle re shded in drk gry. The spce shded light gry inside the squre in Figure 2.2 is squre of side length. c () An rrngement of four copies of the right tringle from Figure 2.1. There is squre in the middle. () A rerrngement of Figure 2.2. Figure 2.2: Two rrngements of four tringles nd squre. Now rerrnge the five pieces differently, s shown in Figure 2.2. The thick lue lines indicte tht we cn view this rrngement s two squres of sides nd plced next to ech other. The squre on the right hs length is, so the re of tht squre is 2. The squre on the left hs side length, so its re is 2, nd the totl re is, therefore, Since we otined the second picture from the first one y rerrnging, they hve the sme re, which completes the proof tht = c 2. Nowlet ssee proof offlsesttement. ItlooksverysimilrtotheproofofthePythgoren Theorem we just did, ut hs mistke in it. Tke the next exmple s wrning tht you hve to e creful when you write proofs. Incorrect proof tht 1 = 2. Two right tringles with sides 10 nd 11 form rectngle with re = 110. The sitution is shown in Figure 2.3. Tke out smll pieces from the corners. As we cn see from the picture, they re right tringles whose two shorter sides oth hve length 1. Now slide the two remining prts of the tringles together so tht they form rectngle gin. The new rectngle hs side lengths 10 nd 11, nd, thus, n re of = 110. We lso hve two extr pieces with totl re of 1. This is shown in Figure 2.3. Since we otined Figure 2.3 from Figure 2.3, oth pictures hve the sme re, which implies tht 110 = 111. Sutrcting 109 from oth sides gives us 1 = 2. The issue is tht we drew misleding picture in Figure 2.3. The picture looks like squre, which mde us think tht the two shorter sides of our smll tringles we were cutting out oth hd length 1. But tht is not true. When one side hs length 1, the other side hs length either 11/10 or 10/11. 2
3 2.1. Propositions nd Proofs () Arrows show how to slide the remining prts of our two tringles fter cutting out the shded corner pieces. () A rerrngement of the picture from Figure 2.3. Figure 2.3: A picture for n incorrect proof tht 1 = More on Propositions Recll from Definition 2.1 tht proposition is sttement tht is either true or flse. Let us see some exmples of propositions. Exmple 2.1: P 1 : Mdison is the cpitl of Wisconsin. - this is true proposition P 2 : The Yhr river flows into Lke Michign. - this is flse proposition Now let s see some sttements tht re not propositions Exmple 2.2: Wht is the cpitl of Wisconsin? - This is question, not sttement. Is Mdison the cpitl of Wisconsin? - Tht s little etter. This is yes/no question; nonetheless, it is still question nd not sttement. This sentence is not true. - This is not vlid proposition. We cnnot ssign truth vlue to this sttement. The lst sentence is sttement to which we cnnot ssign truth vlue. Assume the sentence were true. Then the sttement would sy tht the sentence is flse, which is contrdiction ecuse we sid it ws true. On the other hnd, suppose the sttement were flse. Then the sentence would e true, nd we hve contrdiction gin. The lst sentence is self-referentil sttement tht is contrdictory. It is lso connected to the hlting prolem, nd we my sy something out tht lter in the course. We will not del with sttements like this sentence is flse in this course. Let s look t some sttements tht we re ctully going to see in this course. Exmple 2.3: 3
4 2.2. Opertions on Propositions G: Every even integer lrger thn 2 cn e expressed s the sum of two primes. Recll tht primes re positive integers greter thn one tht re only divisile y 1 nd themselves. The first few primes re 2,3,5,7,11,... In order to rgue tht the sttement G is flse, we would need to find n even integer tht cnnot e written s sum of two primes. To show tht this sttement is true, we would need to rgue out infinitely mny integers. It is ctully not known whether G is true sttement or not. It is clled Goldch s conjecture. People hve tried to find proof s well s counterexmple, ut hve not succeeded yet. To strt verifying Goldch s conjecture, we could strt writing even numers nd finding two primes for ech of them. For exmple, 4 = 2+2, 6 = 3+3, nd 8 = 3+5. (Note tht the sttement doesn t sy nything out repeting primes, which is why we cn write 4 = 2+2.) But there re infinitely mny even integers greter thn 2, so we would never complete such proof. Now consider the following modifiction of G: Every integer greter thn 3 cn e expressed s sum of two primes. This is flse sttement. It my not seem tht wy t first ecuse it holds for ll integers up to 10. But we cnnot write 11 s sum of two primes. Notice tht 11 is n odd numer. If we wnt to rek ny odd numer n into two integers tht dd up to n, one of the two integer pieces must e even nd the other one must e odd ecuse tht s the only wy how we cn get n odd integer s sum of two integers. Since we wnt oth of the integer pieces to e prime, the even piece must e 2 ecuse 2 is the only even prime. But if we wnt the two pieces to dd up to 11, this forces the other piece to e 9, which is not prime. Hence, we cnnot write 11 s sum of two primes, nd our modifiction of G is flse. 2.2 Opertions on Propositions By n opertion on propositions, we men tht we tke one or more propositions nd comine them to get new proposition. In English, we use words such s not, nd, or, if...then to do so. The mthemticl symols for these re,, nd, respectively. In progrmming lnguge, we would use the symols!, &&,, nd if sttements, respectively. We need to e creful when going from English to the lnguge of mthemtics or to progrmming lnguge, however. The word or don t trnslte exctly into. For exmple, when we sy you cn hve cke or you cn hve ice crem, we usully give the person we tlk to n option to tke one or the other, ut not oth. Tht is, the mening is exclusive. But to mthemticin, or is not exclusive, so mthemticin could tke oth cke nd ice crem. There is similr issue with the if-then construct. Suppose fther tells his son: If you grdute with 4.0 GPA, I will uy you cr. The intended mening is tht the son will get the cr only if he gets 4.0. As we will see, child who is mthemticin cn hope to get cr even without 4.0 GPA Overview of Opertions First let s view the word not s the mthemticl opertion. If P is proposition, we red P s not P. No mtter wht P is, P is true when P is flse, nd P is flse when P is true. We cpture this notion in the form of truth tle. See the truth tle of the opertor in Tle 2.1. In ll tles elow, T stnds for true nd F stnds for flse. Now let s see the menings of nd, or, nd if...then in the lnguge of mthemtics. If P nd Q re propositions, we red P Q s P nd Q, P Q s P or Q, nd P Q s P 4
5 2.2. Opertions on Propositions P P T F F T Tle 2.1: The truth tle of not ( ) implies Q. In the impliction P Q, we cll P the premise nd Q the consequence. We list the truth tles of the three opertors we just discussed together in Tle 2.2. P Q P Q P Q P Q T T T T T T F F T F F T F T T F F F F T Tle 2.2: Truth tles of nd ( ), or ( ), nd implies ( ). We see from the truth tle of why mthemticin cn get oth cke nd ice crem. The row in the truth tle of P Q where P nd Q re oth true hs truth vlue of T. Hence, if P stnds for you get cke nd Q stnds for you get ice crem, tking oth mkes the sentence you get cke or you get ice crem true, which mens tking oth is vlid option. Now let s see why children who study mthemtics cn hope to get cr even if they don t get 4.0 GPA. We see from the truth tle tht the only wy the sttement P Q cn e flse is if the premise you hve 4.0 GPA is true nd the consequence you get cr is flse. Thus, if the premise is flse, the consequence cn e either true or flse for the impliction to e true More Exmples of Implictions Let s recll some propositions we stted erlier in this lecture. P 1 : Mdison is the cpitl of Wisconsin. P 2 : The Yhr river flows into Lke Michign. G: Every even integer lrger thn 2 cn e expressed s the sum of two primes. Exmple 2.4: Consider the impliction G P 1. In English, this sys If Goldch s conjecture is true, then Mdison is the cpitl of Wisconsin. This is true proposition. We would e tempted to sy tht the proposition is flse ecuse we don t know whether G holds or not. But we know tht Mdison is the cpitl of Wisconsin, nd oth rows of the truth tle of n impliction where the consequence is true hve T s the truth vlue (see Tle 2.2 with P = G nd Q = P 1 ). Thus, regrdless of the truth of Goldch s conjecture, the impliction G P 1 is true. Exmple 2.5: Consider the following proposition: If P 2 then 1 = 2. This is true proposition. The premise P 2 is flse nd the consequence is flse, so the impliction is true. Exmple 2.6: If P 1 then 1 = 2 is flse proposition. The premise is true, the consequence is flse, nd the truth tle of the impliction for this cse sys flse. Let us stress once gin tht this is the only wy in which n impliction cn e flse. 5
6 2.2. Opertions on Propositions In the spirit of the lst exmple, we my e tempted to prove Goldch s conjecture y sying tht If 1 = 2 then Goldch s conjecture holds. However, this does not constitute vlid proof. This only gives us true impliction. For proof to e vlid, it does not suffice to give true impliction. We lso need to show tht the premise of tht impliction is true in order to get vlid proof. We will discuss this in more detil lter Comining Propositions Once we hve opertors, we cn strt comining them to otin propositionl formuls such s (P ( P Q)). Definition 2.4. A propositionl formul is proposition otined y pplying finite numer of opertors (,,, ) to propositionl vriles (P,Q,...) Logicl Equivlence It my e the cse tht multiple propositionl formuls re the sme. Definition 2.5. Let F 1 nd F 2 e two propositionl formuls. We sy F 1 nd F 2 re logiclly equivlent if they hve the sme truth vlue for ll possile settings of the vriles. Exmple 2.7: P ( P Q) is logiclly equivlent to P Q. There re mny wys to see this. Since we re discussing truth tles, let us look t the truth tles of the two propositionl formuls. If we compre the truth tles of the two propositionl formuls row y row nd find no difference, then, y Definition 2.5, the two formuls re logiclly equivlent. We show the truth tles together in Figure 2.3. Notice tht the columns corresponding to P ( P Q) nd P Q re the sme, so the two formuls re indeed logiclly equivlent. P Q P P Q P ( P Q) P Q T T F F T T T F F T T T F T T T T T F F T F F F Tle 2.3: Showing tht P ( P Q) nd P Q re logiclly equivlent. Exmple 2.8: P Q is logiclly equivlent to Q P. For exmple, sy P = it is snowing nd Q = it is cold. Then P Q sys If it is snowing, then it is cold, nd Q P sys If it is not cold, it is not snowing. Intuitively, those two sentences sy the sme thing. Let s see the truth tles in Tle 2.4 for verifiction. P Q P Q Q P P Q T T F F T T T F F T F F F T T F T T F F T T T T Tle 2.4: Showing tht P Q nd Q P re logiclly equivlent. 6
7 2.2. Opertions on Propositions We cll Q P the contrpositive proposition of P Q. This is n importnt concept for proofs. Since n impliction is logiclly equivlent to its contrpositive, it suffices to prove the contrpositive in order to prove the impliction. This is common technique in writing proofs ecuse the contrpositive my hve simpler or more intuitive proof thn the impliction. An impliction lso hs converse. The converse of the impliction P Q is the impliction Q P. Exmple 2.9: The impliction nd its converse re not logiclly equivlent. Look t Tle 2.5 which shows the truth tles of the two implictions. The two middle rows of those truth tles re different, so P Q nd Q P re not logiclly equivlent. P Q P Q Q P T T T T T F F T F T T F F F T T Tle 2.5: Showing tht n impliction nd its converse re not logiclly equivlent. Consider P: it is snowing nd Q: it is cold. The impliction P Q sys tht if it is snowing, it is cold, while the impliction Q P sys tht if it is cold, it is snowing. The former doesn t llow the possiility of wrm wether when it snows, while the ltter does llow tht The Equivlence Opertor There is nother logicl opertor tht we use in mthemtics. We use it to denote tht oth n impliction nd its converse hold. We write this s P Q nd red s P if nd only if Q. In other words, P Q is logiclly equivlent to (P Q) (Q P). Agin recll the sttements P 1 nd P 2 from erlier. We use them in the exmple elow. Exmple 2.10: P 1 P 2 is flse sttement ecuse P 1 is true while P 2 is flse. P 1 1 = 2 is flse for the sme reson. P 2 1 = 2 is true ecuse oth sides of the equivlence opertor re flse. x is even x+1 is odd is true The P Versus NP Prolem Consider the following prolem. Someody gives you propositionl formul. Your gol is to set ech vrile in tht formul to either true or flse in wy tht mkes the entire formul true. This is known s the stisfiility prolem nd is equivlent to mny prolems in computer science nd engineering. One lgorithm for stisfiility is exhustive serch. We try ll possile settings to the vriles, ut this is n lgorithm whose running time is exponentil in the numer of vriles. To see tht, 7
8 2.3. Next Time consider formul tht hs k vriles. Ech vrile hs two possile vlues, nd ech vrile cn e ssigned vlue independently, so we hve to multiply together the numers of possile ssignmentsforechvriletogettotlof2 k possilessignmentsoftruthvluestothevriles. We would like to know whether there is fster lgorithm for deciding stisfiility, preferly one tht runs in time tht is polynomil in the numer of vriles. This is known s the P versus NP prolem. We do not know whether stisfiility lgorithm tht is sustntilly fster thn exhustive serch exists. On the other hnd, we re lso unle to disprove the existence of such n lgorithm, which is wht mkes the P versus NP prolem one of the most importnt open prolems in computer science nd mthemtics. 2.3 Next Time Next time we will generlize propositions nd tlk out predictes. 8
Bases for Vector Spaces
Bses for Vector Spces 2-26-25 A set is independent if, roughly speking, there is no redundncy in the set: You cn t uild ny vector in the set s liner comintion of the others A set spns if you cn uild everything
More informationLecture 3: Equivalence Relations
Mthcmp Crsh Course Instructor: Pdric Brtlett Lecture 3: Equivlence Reltions Week 1 Mthcmp 2014 In our lst three tlks of this clss, we shift the focus of our tlks from proof techniques to proof concepts
More informationParse trees, ambiguity, and Chomsky normal form
Prse trees, miguity, nd Chomsky norml form In this lecture we will discuss few importnt notions connected with contextfree grmmrs, including prse trees, miguity, nd specil form for context-free grmmrs
More information2.4 Linear Inequalities and Interval Notation
.4 Liner Inequlities nd Intervl Nottion We wnt to solve equtions tht hve n inequlity symol insted of n equl sign. There re four inequlity symols tht we will look t: Less thn , Less thn or
More informationp-adic Egyptian Fractions
p-adic Egyptin Frctions Contents 1 Introduction 1 2 Trditionl Egyptin Frctions nd Greedy Algorithm 2 3 Set-up 3 4 p-greedy Algorithm 5 5 p-egyptin Trditionl 10 6 Conclusion 1 Introduction An Egyptin frction
More informationReasoning and programming. Lecture 5: Invariants and Logic. Boolean expressions. Reasoning. Examples
Chir of Softwre Engineering Resoning nd progrmming Einführung in die Progrmmierung Introduction to Progrmming Prof. Dr. Bertrnd Meyer Octoer 2006 Ferury 2007 Lecture 5: Invrints nd Logic Logic is the sis
More informationList all of the possible rational roots of each equation. Then find all solutions (both real and imaginary) of the equation. 1.
Mth Anlysis CP WS 4.X- Section 4.-4.4 Review Complete ech question without the use of grphing clcultor.. Compre the mening of the words: roots, zeros nd fctors.. Determine whether - is root of 0. Show
More informationImproper Integrals. The First Fundamental Theorem of Calculus, as we ve discussed in class, goes as follows:
Improper Integrls The First Fundmentl Theorem of Clculus, s we ve discussed in clss, goes s follows: If f is continuous on the intervl [, ] nd F is function for which F t = ft, then ftdt = F F. An integrl
More informationA study of Pythagoras Theorem
CHAPTER 19 A study of Pythgors Theorem Reson is immortl, ll else mortl. Pythgors, Diogenes Lertius (Lives of Eminent Philosophers) Pythgors Theorem is proly the est-known mthemticl theorem. Even most nonmthemticins
More informationMathematics Number: Logarithms
plce of mind F A C U L T Y O F E D U C A T I O N Deprtment of Curriculum nd Pedgogy Mthemtics Numer: Logrithms Science nd Mthemtics Eduction Reserch Group Supported y UBC Teching nd Lerning Enhncement
More informationLecture 3. In this lecture, we will discuss algorithms for solving systems of linear equations.
Lecture 3 3 Solving liner equtions In this lecture we will discuss lgorithms for solving systems of liner equtions Multiplictive identity Let us restrict ourselves to considering squre mtrices since one
More informationIntermediate Math Circles Wednesday, November 14, 2018 Finite Automata II. Nickolas Rollick a b b. a b 4
Intermedite Mth Circles Wednesdy, Novemer 14, 2018 Finite Automt II Nickols Rollick nrollick@uwterloo.c Regulr Lnguges Lst time, we were introduced to the ide of DFA (deterministic finite utomton), one
More informationHomework 3 Solutions
CS 341: Foundtions of Computer Science II Prof. Mrvin Nkym Homework 3 Solutions 1. Give NFAs with the specified numer of sttes recognizing ech of the following lnguges. In ll cses, the lphet is Σ = {,1}.
More informationConvert the NFA into DFA
Convert the NF into F For ech NF we cn find F ccepting the sme lnguge. The numer of sttes of the F could e exponentil in the numer of sttes of the NF, ut in prctice this worst cse occurs rrely. lgorithm:
More informationBridging the gap: GCSE AS Level
Bridging the gp: GCSE AS Level CONTENTS Chpter Removing rckets pge Chpter Liner equtions Chpter Simultneous equtions 8 Chpter Fctors 0 Chpter Chnge the suject of the formul Chpter 6 Solving qudrtic equtions
More informationHow do we solve these things, especially when they get complicated? How do we know when a system has a solution, and when is it unique?
XII. LINEAR ALGEBRA: SOLVING SYSTEMS OF EQUATIONS Tody we re going to tlk out solving systems of liner equtions. These re prolems tht give couple of equtions with couple of unknowns, like: 6= x + x 7=
More information5. (±±) Λ = fw j w is string of even lengthg [ 00 = f11,00g 7. (11 [ 00)± Λ = fw j w egins with either 11 or 00g 8. (0 [ ffl)1 Λ = 01 Λ [ 1 Λ 9.
Regulr Expressions, Pumping Lemm, Right Liner Grmmrs Ling 106 Mrch 25, 2002 1 Regulr Expressions A regulr expression descries or genertes lnguge: it is kind of shorthnd for listing the memers of lnguge.
More informationChapter 9 Definite Integrals
Chpter 9 Definite Integrls In the previous chpter we found how to tke n ntiderivtive nd investigted the indefinite integrl. In this chpter the connection etween ntiderivtives nd definite integrls is estlished
More information378 Relations Solutions for Chapter 16. Section 16.1 Exercises. 3. Let A = {0,1,2,3,4,5}. Write out the relation R that expresses on A.
378 Reltions 16.7 Solutions for Chpter 16 Section 16.1 Exercises 1. Let A = {0,1,2,3,4,5}. Write out the reltion R tht expresses > on A. Then illustrte it with digrm. 2 1 R = { (5,4),(5,3),(5,2),(5,1),(5,0),(4,3),(4,2),(4,1),
More informationFarey Fractions. Rickard Fernström. U.U.D.M. Project Report 2017:24. Department of Mathematics Uppsala University
U.U.D.M. Project Report 07:4 Frey Frctions Rickrd Fernström Exmensrete i mtemtik, 5 hp Hledre: Andres Strömergsson Exmintor: Jörgen Östensson Juni 07 Deprtment of Mthemtics Uppsl University Frey Frctions
More informationSurface maps into free groups
Surfce mps into free groups lden Wlker Novemer 10, 2014 Free groups wedge X of two circles: Set F = π 1 (X ) =,. We write cpitl letters for inverse, so = 1. e.g. () 1 = Commuttors Let x nd y e loops. The
More information(e) if x = y + z and a divides any two of the integers x, y, or z, then a divides the remaining integer
Divisibility In this note we introduce the notion of divisibility for two integers nd b then we discuss the division lgorithm. First we give forml definition nd note some properties of the division opertion.
More informationLinear Systems with Constant Coefficients
Liner Systems with Constnt Coefficients 4-3-05 Here is system of n differentil equtions in n unknowns: x x + + n x n, x x + + n x n, x n n x + + nn x n This is constnt coefficient liner homogeneous system
More informationLinear Inequalities. Work Sheet 1
Work Sheet 1 Liner Inequlities Rent--Hep, cr rentl compny,chrges $ 15 per week plus $ 0.0 per mile to rent one of their crs. Suppose you re limited y how much money you cn spend for the week : You cn spend
More informationCS 373, Spring Solutions to Mock midterm 1 (Based on first midterm in CS 273, Fall 2008.)
CS 373, Spring 29. Solutions to Mock midterm (sed on first midterm in CS 273, Fll 28.) Prolem : Short nswer (8 points) The nswers to these prolems should e short nd not complicted. () If n NF M ccepts
More informationFast Boolean Algebra
Fst Boolen Alger ELEC 267 notes with the overurden removed A fst wy to lern enough to get the prel done honorly Printed; 3//5 Slide Modified; Jnury 3, 25 John Knight Digitl Circuits p. Fst Boolen Alger
More informationUNIFORM CONVERGENCE. Contents 1. Uniform Convergence 1 2. Properties of uniform convergence 3
UNIFORM CONVERGENCE Contents 1. Uniform Convergence 1 2. Properties of uniform convergence 3 Suppose f n : Ω R or f n : Ω C is sequence of rel or complex functions, nd f n f s n in some sense. Furthermore,
More informationThe Regulated and Riemann Integrals
Chpter 1 The Regulted nd Riemnn Integrls 1.1 Introduction We will consider severl different pproches to defining the definite integrl f(x) dx of function f(x). These definitions will ll ssign the sme vlue
More informationThe University of Nottingham SCHOOL OF COMPUTER SCIENCE A LEVEL 2 MODULE, SPRING SEMESTER LANGUAGES AND COMPUTATION ANSWERS
The University of Nottinghm SCHOOL OF COMPUTER SCIENCE LEVEL 2 MODULE, SPRING SEMESTER 2016 2017 LNGUGES ND COMPUTTION NSWERS Time llowed TWO hours Cndidtes my complete the front cover of their nswer ook
More informationMATH 573 FINAL EXAM. May 30, 2007
MATH 573 FINAL EXAM My 30, 007 NAME: Solutions 1. This exm is due Wednesdy, June 6 efore the 1:30 pm. After 1:30 pm I will NOT ccept the exm.. This exm hs 1 pges including this cover. There re 10 prolems.
More information20 MATHEMATICS POLYNOMIALS
0 MATHEMATICS POLYNOMIALS.1 Introduction In Clss IX, you hve studied polynomils in one vrible nd their degrees. Recll tht if p(x) is polynomil in x, the highest power of x in p(x) is clled the degree of
More informationCalculus Module C21. Areas by Integration. Copyright This publication The Northern Alberta Institute of Technology All Rights Reserved.
Clculus Module C Ares Integrtion Copright This puliction The Northern Alert Institute of Technolog 7. All Rights Reserved. LAST REVISED Mrch, 9 Introduction to Ares Integrtion Sttement of Prerequisite
More informationNondeterminism and Nodeterministic Automata
Nondeterminism nd Nodeterministic Automt 61 Nondeterminism nd Nondeterministic Automt The computtionl mchine models tht we lerned in the clss re deterministic in the sense tht the next move is uniquely
More informationMath 4310 Solutions to homework 1 Due 9/1/16
Mth 4310 Solutions to homework 1 Due 9/1/16 1. Use the Eucliden lgorithm to find the following gretest common divisors. () gcd(252, 180) = 36 (b) gcd(513, 187) = 1 (c) gcd(7684, 4148) = 68 252 = 180 1
More informationQuadratic Forms. Quadratic Forms
Qudrtic Forms Recll the Simon & Blume excerpt from n erlier lecture which sid tht the min tsk of clculus is to pproximte nonliner functions with liner functions. It s ctully more ccurte to sy tht we pproximte
More information1. For each of the following theorems, give a two or three sentence sketch of how the proof goes or why it is not true.
York University CSE 2 Unit 3. DFA Clsses Converting etween DFA, NFA, Regulr Expressions, nd Extended Regulr Expressions Instructor: Jeff Edmonds Don t chet y looking t these nswers premturely.. For ech
More informationBoolean algebra.
http://en.wikipedi.org/wiki/elementry_boolen_lger Boolen lger www.tudorgir.com Computer science is not out computers, it is out computtion nd informtion. computtion informtion computer informtion Turing
More informationCS 330 Formal Methods and Models Dana Richards, George Mason University, Spring 2016 Quiz Solutions
CS 330 Forml Methods nd Models Dn Richrds, George Mson University, Spring 2016 Quiz Solutions Quiz 1, Propositionl Logic Dte: Ferury 9 1. (4pts) ((p q) (q r)) (p r), prove tutology using truth tles. p
More informationChapter Five: Nondeterministic Finite Automata. Formal Language, chapter 5, slide 1
Chpter Five: Nondeterministic Finite Automt Forml Lnguge, chpter 5, slide 1 1 A DFA hs exctly one trnsition from every stte on every symol in the lphet. By relxing this requirement we get relted ut more
More informationand that at t = 0 the object is at position 5. Find the position of the object at t = 2.
7.2 The Fundmentl Theorem of Clculus 49 re mny, mny problems tht pper much different on the surfce but tht turn out to be the sme s these problems, in the sense tht when we try to pproimte solutions we
More informationIntroduction to Algebra - Part 2
Alger Module A Introduction to Alger - Prt Copright This puliction The Northern Alert Institute of Technolog 00. All Rights Reserved. LAST REVISED Oct., 008 Introduction to Alger - Prt Sttement of Prerequisite
More informationVectors , (0,0). 5. A vector is commonly denoted by putting an arrow above its symbol, as in the picture above. Here are some 3-dimensional vectors:
Vectors 1-23-2018 I ll look t vectors from n lgeric point of view nd geometric point of view. Algericlly, vector is n ordered list of (usully) rel numers. Here re some 2-dimensionl vectors: (2, 3), ( )
More information1B40 Practical Skills
B40 Prcticl Skills Comining uncertinties from severl quntities error propgtion We usully encounter situtions where the result of n experiment is given in terms of two (or more) quntities. We then need
More informationI1 = I2 I1 = I2 + I3 I1 + I2 = I3 + I4 I 3
2 The Prllel Circuit Electric Circuits: Figure 2- elow show ttery nd multiple resistors rrnged in prllel. Ech resistor receives portion of the current from the ttery sed on its resistnce. The split is
More informationMAA 4212 Improper Integrals
Notes by Dvid Groisser, Copyright c 1995; revised 2002, 2009, 2014 MAA 4212 Improper Integrls The Riemnn integrl, while perfectly well-defined, is too restrictive for mny purposes; there re functions which
More information1 ELEMENTARY ALGEBRA and GEOMETRY READINESS DIAGNOSTIC TEST PRACTICE
ELEMENTARY ALGEBRA nd GEOMETRY READINESS DIAGNOSTIC TEST PRACTICE Directions: Study the exmples, work the prolems, then check your nswers t the end of ech topic. If you don t get the nswer given, check
More informationHomework Solution - Set 5 Due: Friday 10/03/08
CE 96 Introduction to the Theory of Computtion ll 2008 Homework olution - et 5 Due: ridy 10/0/08 1. Textook, Pge 86, Exercise 1.21. () 1 2 Add new strt stte nd finl stte. Mke originl finl stte non-finl.
More informationFinite Automata-cont d
Automt Theory nd Forml Lnguges Professor Leslie Lnder Lecture # 6 Finite Automt-cont d The Pumping Lemm WEB SITE: http://ingwe.inghmton.edu/ ~lnder/cs573.html Septemer 18, 2000 Exmple 1 Consider L = {ww
More informationChapter 6 Techniques of Integration
MA Techniques of Integrtion Asst.Prof.Dr.Suprnee Liswdi Chpter 6 Techniques of Integrtion Recll: Some importnt integrls tht we hve lernt so fr. Tle of Integrls n+ n d = + C n + e d = e + C ( n ) d = ln
More information1 PYTHAGORAS THEOREM 1. Given a right angled triangle, the square of the hypotenuse is equal to the sum of the squares of the other two sides.
1 PYTHAGORAS THEOREM 1 1 Pythgors Theorem In this setion we will present geometri proof of the fmous theorem of Pythgors. Given right ngled tringle, the squre of the hypotenuse is equl to the sum of the
More informationCS103B Handout 18 Winter 2007 February 28, 2007 Finite Automata
CS103B ndout 18 Winter 2007 Ferury 28, 2007 Finite Automt Initil text y Mggie Johnson. Introduction Severl childrens gmes fit the following description: Pieces re set up on plying ord; dice re thrown or
More informationHandout: Natural deduction for first order logic
MATH 457 Introduction to Mthemticl Logic Spring 2016 Dr Json Rute Hndout: Nturl deduction for first order logic We will extend our nturl deduction rules for sententil logic to first order logic These notes
More informationSection 6.1 INTRO to LAPLACE TRANSFORMS
Section 6. INTRO to LAPLACE TRANSFORMS Key terms: Improper Integrl; diverge, converge A A f(t)dt lim f(t)dt Piecewise Continuous Function; jump discontinuity Function of Exponentil Order Lplce Trnsform
More informationHow do we solve these things, especially when they get complicated? How do we know when a system has a solution, and when is it unique?
XII. LINEAR ALGEBRA: SOLVING SYSTEMS OF EQUATIONS Tody we re going to tlk bout solving systems of liner equtions. These re problems tht give couple of equtions with couple of unknowns, like: 6 2 3 7 4
More informationCS 330 Formal Methods and Models
CS 330 Forml Methods nd Models Dn Richrds, George Mson University, Spring 2017 Quiz Solutions Quiz 1, Propositionl Logic Dte: Ferury 2 1. Prove ((( p q) q) p) is tutology () (3pts) y truth tle. p q p q
More informationCM10196 Topic 4: Functions and Relations
CM096 Topic 4: Functions nd Reltions Guy McCusker W. Functions nd reltions Perhps the most widely used notion in ll of mthemtics is tht of function. Informlly, function is n opertion which tkes n input
More informationFirst Midterm Examination
24-25 Fll Semester First Midterm Exmintion ) Give the stte digrm of DFA tht recognizes the lnguge A over lphet Σ = {, } where A = {w w contins or } 2) The following DFA recognizes the lnguge B over lphet
More informationCMPSCI 250: Introduction to Computation. Lecture #31: What DFA s Can and Can t Do David Mix Barrington 9 April 2014
CMPSCI 250: Introduction to Computtion Lecture #31: Wht DFA s Cn nd Cn t Do Dvid Mix Brrington 9 April 2014 Wht DFA s Cn nd Cn t Do Deterministic Finite Automt Forml Definition of DFA s Exmples of DFA
More informationProperties of Integrals, Indefinite Integrals. Goals: Definition of the Definite Integral Integral Calculations using Antiderivatives
Block #6: Properties of Integrls, Indefinite Integrls Gols: Definition of the Definite Integrl Integrl Clcultions using Antiderivtives Properties of Integrls The Indefinite Integrl 1 Riemnn Sums - 1 Riemnn
More informationReview of Gaussian Quadrature method
Review of Gussin Qudrture method Nsser M. Asi Spring 006 compiled on Sundy Decemer 1, 017 t 09:1 PM 1 The prolem To find numericl vlue for the integrl of rel vlued function of rel vrile over specific rnge
More informationName Ima Sample ASU ID
Nme Im Smple ASU ID 2468024680 CSE 355 Test 1, Fll 2016 30 Septemer 2016, 8:35-9:25.m., LSA 191 Regrding of Midterms If you elieve tht your grde hs not een dded up correctly, return the entire pper to
More informationFirst Midterm Examination
Çnky University Deprtment of Computer Engineering 203-204 Fll Semester First Midterm Exmintion ) Design DFA for ll strings over the lphet Σ = {,, c} in which there is no, no nd no cc. 2) Wht lnguge does
More informationLecture 2e Orthogonal Complement (pages )
Lecture 2e Orthogonl Complement (pges -) We hve now seen tht n orthonorml sis is nice wy to descrie suspce, ut knowing tht we wnt n orthonorml sis doesn t mke one fll into our lp. In theory, the process
More informationCoalgebra, Lecture 15: Equations for Deterministic Automata
Colger, Lecture 15: Equtions for Deterministic Automt Julin Slmnc (nd Jurrin Rot) Decemer 19, 2016 In this lecture, we will study the concept of equtions for deterministic utomt. The notes re self contined
More informationHomework 4. 0 ε 0. (00) ε 0 ε 0 (00) (11) CS 341: Foundations of Computer Science II Prof. Marvin Nakayama
CS 341: Foundtions of Computer Science II Prof. Mrvin Nkym Homework 4 1. UsetheproceduredescriedinLemm1.55toconverttheregulrexpression(((00) (11)) 01) into n NFA. Answer: 0 0 1 1 00 0 0 11 1 1 01 0 1 (00)
More informationAn Overview of Integration
An Overview of Integrtion S. F. Ellermeyer July 26, 2 The Definite Integrl of Function f Over n Intervl, Suppose tht f is continuous function defined on n intervl,. The definite integrl of f from to is
More informationCSE396 Prelim I Answer Key Spring 2017
Nme nd St.ID#: CSE96 Prelim I Answer Key Spring 2017 (1) (24 pts.) Define A to e the lnguge of strings x {, } such tht x either egins with or ends with, ut not oth. Design DFA M such tht L(M) = A. A node-rc
More informationIs there an easy way to find examples of such triples? Why yes! Just look at an ordinary multiplication table to find them!
PUSHING PYTHAGORAS 009 Jmes Tnton A triple of integers ( bc,, ) is clled Pythgoren triple if exmple, some clssic triples re ( 3,4,5 ), ( 5,1,13 ), ( ) fond of ( 0,1,9 ) nd ( 119,10,169 ). + b = c. For
More informationexpression simply by forming an OR of the ANDs of all input variables for which the output is
2.4 Logic Minimiztion nd Krnugh Mps As we found ove, given truth tle, it is lwys possile to write down correct logic expression simply y forming n OR of the ANDs of ll input vriles for which the output
More information1 Nondeterministic Finite Automata
1 Nondeterministic Finite Automt Suppose in life, whenever you hd choice, you could try oth possiilities nd live your life. At the end, you would go ck nd choose the one tht worked out the est. Then you
More informationUSA Mathematical Talent Search Round 1 Solutions Year 21 Academic Year
1/1/21. Fill in the circles in the picture t right with the digits 1-8, one digit in ech circle with no digit repeted, so tht no two circles tht re connected by line segment contin consecutive digits.
More informationThe area under the graph of f and above the x-axis between a and b is denoted by. f(x) dx. π O
1 Section 5. The Definite Integrl Suppose tht function f is continuous nd positive over n intervl [, ]. y = f(x) x The re under the grph of f nd ove the x-xis etween nd is denoted y f(x) dx nd clled the
More information1 Probability Density Functions
Lis Yn CS 9 Continuous Distributions Lecture Notes #9 July 6, 28 Bsed on chpter by Chris Piech So fr, ll rndom vribles we hve seen hve been discrete. In ll the cses we hve seen in CS 9, this ment tht our
More informationDesigning finite automata II
Designing finite utomt II Prolem: Design DFA A such tht L(A) consists of ll strings of nd which re of length 3n, for n = 0, 1, 2, (1) Determine wht to rememer out the input string Assign stte to ech of
More information6.2 The Pythagorean Theorems
PythgorenTheorems20052006.nb 1 6.2 The Pythgoren Theorems One of the best known theorems in geometry (nd ll of mthemtics for tht mtter) is the Pythgoren Theorem. You hve probbly lredy worked with this
More informationThe First Fundamental Theorem of Calculus. If f(x) is continuous on [a, b] and F (x) is any antiderivative. f(x) dx = F (b) F (a).
The Fundmentl Theorems of Clculus Mth 4, Section 0, Spring 009 We now know enough bout definite integrls to give precise formultions of the Fundmentl Theorems of Clculus. We will lso look t some bsic emples
More informationMath 8 Winter 2015 Applications of Integration
Mth 8 Winter 205 Applictions of Integrtion Here re few importnt pplictions of integrtion. The pplictions you my see on n exm in this course include only the Net Chnge Theorem (which is relly just the Fundmentl
More informationCS 311 Homework 3 due 16:30, Thursday, 14 th October 2010
CS 311 Homework 3 due 16:30, Thursdy, 14 th Octoer 2010 Homework must e sumitted on pper, in clss. Question 1. [15 pts.; 5 pts. ech] Drw stte digrms for NFAs recognizing the following lnguges:. L = {w
More informationChapter 8.2: The Integral
Chpter 8.: The Integrl You cn think of Clculus s doule-wide triler. In one width of it lives differentil clculus. In the other hlf lives wht is clled integrl clculus. We hve lredy eplored few rooms in
More information8. Complex Numbers. We can combine the real numbers with this new imaginary number to form the complex numbers.
8. Complex Numers The rel numer system is dequte for solving mny mthemticl prolems. But it is necessry to extend the rel numer system to solve numer of importnt prolems. Complex numers do not chnge the
More informationset is not closed under matrix [ multiplication, ] and does not form a group.
Prolem 2.3: Which of the following collections of 2 2 mtrices with rel entries form groups under [ mtrix ] multipliction? i) Those of the form for which c d 2 Answer: The set of such mtrices is not closed
More informationMA123, Chapter 10: Formulas for integrals: integrals, antiderivatives, and the Fundamental Theorem of Calculus (pp.
MA123, Chpter 1: Formuls for integrls: integrls, ntiderivtives, nd the Fundmentl Theorem of Clculus (pp. 27-233, Gootmn) Chpter Gols: Assignments: Understnd the sttement of the Fundmentl Theorem of Clculus.
More informationSection 4: Integration ECO4112F 2011
Reding: Ching Chpter Section : Integrtion ECOF Note: These notes do not fully cover the mteril in Ching, ut re ment to supplement your reding in Ching. Thus fr the optimistion you hve covered hs een sttic
More informationInfinite Geometric Series
Infinite Geometric Series Finite Geometric Series ( finite SUM) Let 0 < r < 1, nd let n be positive integer. Consider the finite sum It turns out there is simple lgebric expression tht is equivlent to
More informationLecture 08: Feb. 08, 2019
4CS4-6:Theory of Computtion(Closure on Reg. Lngs., regex to NDFA, DFA to regex) Prof. K.R. Chowdhry Lecture 08: Fe. 08, 2019 : Professor of CS Disclimer: These notes hve not een sujected to the usul scrutiny
More informationChapter 0. What is the Lebesgue integral about?
Chpter 0. Wht is the Lebesgue integrl bout? The pln is to hve tutoril sheet ech week, most often on Fridy, (to be done during the clss) where you will try to get used to the ides introduced in the previous
More information7. Indefinite Integrals
7. Indefinite Integrls These lecture notes present my interprettion of Ruth Lwrence s lecture notes (in Herew) 7. Prolem sttement By the fundmentl theorem of clculus, to clculte n integrl we need to find
More informationKNOWLEDGE-BASED AGENTS INFERENCE
AGENTS THAT REASON LOGICALLY KNOWLEDGE-BASED AGENTS Two components: knowledge bse, nd n inference engine. Declrtive pproch to building n gent. We tell it wht it needs to know, nd It cn sk itself wht to
More informationRegular Language. Nonregular Languages The Pumping Lemma. The pumping lemma. Regular Language. The pumping lemma. Infinitely long words 3/17/15
Regulr Lnguge Nonregulr Lnguges The Pumping Lemm Models of Comput=on Chpter 10 Recll, tht ny lnguge tht cn e descried y regulr expression is clled regulr lnguge In this lecture we will prove tht not ll
More informationThings to Memorize: A Partial List. January 27, 2017
Things to Memorize: A Prtil List Jnury 27, 2017 Chpter 2 Vectors - Bsic Fcts A vector hs mgnitude (lso clled size/length/norm) nd direction. It does not hve fixed position, so the sme vector cn e moved
More information7.1 Integral as Net Change and 7.2 Areas in the Plane Calculus
7.1 Integrl s Net Chnge nd 7. Ares in the Plne Clculus 7.1 INTEGRAL AS NET CHANGE Notecrds from 7.1: Displcement vs Totl Distnce, Integrl s Net Chnge We hve lredy seen how the position of n oject cn e
More informationSimplifying Algebra. Simplifying Algebra. Curriculum Ready.
Simplifying Alger Curriculum Redy www.mthletics.com This ooklet is ll out turning complex prolems into something simple. You will e le to do something like this! ( 9- # + 4 ' ) ' ( 9- + 7-) ' ' Give this
More informationSpecial Numbers, Factors and Multiples
Specil s, nd Student Book - Series H- + 3 + 5 = 9 = 3 Mthletics Instnt Workooks Copyright Student Book - Series H Contents Topics Topic - Odd, even, prime nd composite numers Topic - Divisiility tests
More informationT 1 T 2 T 3 T 4 They may be illustrated by triangular patterns of numbers (hence their name) as shown:
TOPIC 3: VISUAL EXPLANATIONS (PROOFS) (Pge references to Proof re to Bndll, P R et l, Proof in Mthemtics, KMEP, 2002). 3. The tringulr numbers form the sequence, 3, 6, 0,, 2,... T T 2 T 3 T 4 The m be
More informationMinimal DFA. minimal DFA for L starting from any other
Miniml DFA Among the mny DFAs ccepting the sme regulr lnguge L, there is exctly one (up to renming of sttes) which hs the smllest possile numer of sttes. Moreover, it is possile to otin tht miniml DFA
More informationMore on automata. Michael George. March 24 April 7, 2014
More on utomt Michel George Mrch 24 April 7, 2014 1 Automt constructions Now tht we hve forml model of mchine, it is useful to mke some generl constructions. 1.1 DFA Union / Product construction Suppose
More informationTHE NUMBER CONCEPT IN GREEK MATHEMATICS SPRING 2009
THE NUMBER CONCEPT IN GREEK MATHEMATICS SPRING 2009 0.1. VII, Definition 1. A unit is tht by virtue of which ech of the things tht exist is clled one. 0.2. VII, Definition 2. A number is multitude composed
More information2 b. , a. area is S= 2π xds. Again, understand where these formulas came from (pages ).
AP Clculus BC Review Chpter 8 Prt nd Chpter 9 Things to Know nd Be Ale to Do Know everything from the first prt of Chpter 8 Given n integrnd figure out how to ntidifferentite it using ny of the following
More information10. AREAS BETWEEN CURVES
. AREAS BETWEEN CURVES.. Ares etween curves So res ove the x-xis re positive nd res elow re negtive, right? Wrong! We lied! Well, when you first lern out integrtion it s convenient fiction tht s true in
More informationSection 6: Area, Volume, and Average Value
Chpter The Integrl Applied Clculus Section 6: Are, Volume, nd Averge Vlue Are We hve lredy used integrls to find the re etween the grph of function nd the horizontl xis. Integrls cn lso e used to find
More information