DOC PREVIEW
UMD CMSC 250 - Exam 2 Review

This preview shows page 1-2-15-16-31-32 out of 32 pages.

Save
View full document
View full document
Premium Document
Do you want full access? Go Premium and unlock all 32 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 32 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 32 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 32 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 32 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 32 pages.
Access to all documents
Download any document
Ad free experience
Premium Document
Do you want full access? Go Premium and unlock all 32 pages.
Access to all documents
Download any document
Ad free experience

Unformatted text preview:

CMSC 250 Discrete StructuresSummationsPropertiesUsing the PropertiesMathematical InductionInductive ProofInductive Proofs Must HaveSlide 8Slide 9Another ExampleSetsSet Operations Formal Definitions and Venn DiagramsProcedural Versions of Set DefinitionsProperties of Sets (Theorems 5.2.1 & 5.2.2)Prove A=CDoes A=DHW10, Problem 2CountingProve: # elements in list = n – m + 1How many in list divisible by somethingMultiplication RuleSlide 22Permutation ExampleDifference Rule FormallyAddition Rule FormallyInclusion/Exclusion Ruler-PermutationsPermutationsPermutation w/ Repeated ElementsCombinationsCombinations with RepititionBinomial TheoremCMSC 250Discrete StructuresExam 2 ReviewJanuary 14, 2019 Exam 2 Review 2SummationsWhat is next in the series …General formula for a seriesIdentical seriesSummation and product notationProperties (splitting/merging, distribution)Change of variablesApplications (indexing, loops, algorithms)______,1625,916,49,4 1,122 kkkak7171601111kjkkjk1,1 kkkak2,1 iiibi612kkkk251January 14, 2019 Exam 2 Review 3PropertiesMerging and SplittingDistribution nmkkknmkknmkkbaba kknmkknmkknmkbaba  nmkknmkkacacnikkimkknmkkaaa1knikkimkknmkaaa1January 14, 2019 Exam 2 Review 4Using the Properties1;1  kbkakknmkknmkkba 2nmkknmkkbaJanuary 14, 2019 Exam 2 Review 5Mathematical InductionDefinition–Used to verify a property of a sequence–Formal definition (next slide)What proofs must haveWe proved: –General summation/product –Inequalities –Strong inductionMisc–Recurrence relations–Quotient remainder theorem–Correctness of algorithms (Loop Invariant Theorem)ninni12)1(1,,,1001raararZnRaRrnnjjJanuary 14, 2019 Exam 2 Review 6Inductive ProofLet P(n) be a property that is defined for integers n , and let a be a fixed integer. Suppose the following two statements are true.–P(a) is true.–For all integers k ≥ a, if P(k) is true then P(k+1) is true.Then the statement for all integers n ≥ a, P(n) is true.January 14, 2019 Exam 2 Review 7Inductive Proofs Must HaveBase Case (value)–Prove base case is trueInductive Hypothesis (value)–State what will be assumed in this proofInductive Step (value)–ShowState what will be proven in the next section–ProofProve what is stated in the show portionMust use the Inductive Hypothesis sometimeJanuary 14, 2019 Exam 2 Review 8Prove this statement:Base Case (n=3):Inductive Hypothesis (n=k):Inductive Step (n=k+1):Show: Proof:7161)3(2: LHS82:3RHSkk 212 121)1(2kkRHSLHS nnZn 212,3January 14, 2019 Exam 2 Review 9Prove this statement:Inductive Step (n=k+1):Show: Proof:New goal:Which is true since k≥3.So and 222122212212211 kkkkkk 12112kknnZn 212,3 12112kk   2224twobyMultiply212 kkkkIH24212  kkkk 412 k21 k212224212 kkkJanuary 14, 2019 Exam 2 Review 10Another ExampleFor all integers n ≥ 1,  1232nJanuary 14, 2019 Exam 2 Review 11SetsSet–Notation –  versus –Definitions – Subset, proper subset, partitions/disjoint sets–Operations (, , –, ’, )–Properties and inference rules–Venn diagrams–Empty set propertiesProofs–Element argument, set equality–Propositional logic / predicate calculus–Inference rules–Counterexample–Types – generic particular, induction, contra’s, CWRussell’s Paradox (The Barber’s Puzzle) & Halting ProblemJanuary 14, 2019 Exam 2 Review 12Set OperationsFormal Definitions and Venn DiagramsUnion:Intersection:Complement:Difference:}|{ BxAxUxBA }|{ BxAxUxBA }|{ BxAxUxBA }|{' AxUxAAc'BABA January 14, 2019 Exam 2 Review 13Procedural Versions of Set DefinitionsLet X and Y be subsets of a universal set U and suppose x and y are elements of U.1. x(X Y) xX or xY 2. x(X Y) xX and xY 3. x(X –Y) xX and xY 4. xXc xX 5. (x ,y)(XY ) xX and yYJanuary 14, 2019 Exam 2 Review 14Properties of Sets (Theorems 5.2.1 & 5.2.2)Inclusion TransitivityDeMorgan’s for ComplementDistribution of union and intersectionABA  BBA BAA BAB CACBBA '')'( BABA   '')'( BABA  )()()( CABACBA  )()()( CABACBA  January 14, 2019 Exam 2 Review 15Prove A=CA={nZ | pZ, n = 2p}C={mZ | qZ, m = 2q-2}January 14, 2019 Exam 2 Review 16Does A=DA={xZ | pZ, x = 2p}D={yZ | qZ, y = 3q+1}Easy to disprove universal statements!January 14, 2019 Exam 2 Review 17HW10, Problem 2Did yesterday in class …January 14, 2019 Exam 2 Review 18CountingCounting elements in a list–How many in list are divisible by xProbability – likelihood of an eventPermutations – with and without repetitionMultiplication rule–Tournament play–Rearranging letters in words–Where it doesn’t workDifference rule – If A is a finite set and BA, then n(A – B) = n(A) – n(B)Addition rule – If A1 A2  A3  …  Ak=A and A1, A2 , A3,…,Ak are pairwise disjoint, then n(A) = n(A1) + n(A2) + n(A3) + … + n(Ak)Inclusion/exclusion ruleCombinations – with and without repetition, categoriesBinomial theorem (Pascal’s Triangle))()()(SnEnEP )!(!),(rnnPrnPnr!)!(!!),(),(rrnnrrnPrnrnCrnr 1niic1)(January 14, 2019 Exam 2 Review 19Prove: # elements in list = n – m + 1Base case (List of size 1, x=y)–y – x + 1 = y – y + 1 (by substitution) = 1IH (generic x, y=k [where x  k])–Assume size of list x to k, is k – x + 1IS–Show size of list x to k + 1, is (k + 1) – x + 1–ProveSplit into two lists …January 14, 2019 Exam 2 Review 20How many in list divisible by somethingHow


View Full Document

UMD CMSC 250 - Exam 2 Review

Download Exam 2 Review
Our administrator received your request to download this document. We will send you the file to your email shortly.
Loading Unlocking...
Login

Join to view Exam 2 Review and access 3M+ class-specific study document.

or
We will never post anything without your permission.
Don't have an account?
Sign Up

Join to view Exam 2 Review 2 2 and access 3M+ class-specific study document.

or

By creating an account you agree to our Privacy Policy and Terms Of Use

Already a member?