Module 9: Mathematical Induction

Size: px
Start display at page:

Download "Module 9: Mathematical Induction"

Transcription

1 Module 9: Mathematical Induction

2 Module 9: Announcements There is a chance that this Friday s class may be cancelled. Assignment #4 is due Thursday March 16 th at 4pm. Midterm #2 Monday March 20 th, 2017 from 7pm to 9pm Read the Piazza post. Let us know if you have a conflict.

3 Learning goals: pre-class Epp 4 th section 5.1: Convert sequences to and from explicit formulas that describe the sequence. Convert sums to and from summation/σ notation. Convert products to and from product/π notation. Manipulate formulas in summation/product notation by adjusting their bounds, merging or splitting summations/products, and factoring out values.

4 Learning goals: pre-class Epp 4 th sections 5.2 to 5.4: Given a theorem to prove stated in terms of its induction variable (i.e., usually, in terms of n), write out the skeleton of an inductive proof including: the base case(s) that need to be proven, the induction hypothesis, and the inductive step that needs to be proven.

5 Learning goals: in-class By the end of this module, you should be able to: Establish properties of self-referential structures using inductive proofs that naturally build on those self-references. Critique formal inductive proofs to determine whether they are valid and where the error(s) lie if they are invalid. Prove properties of the non-negative integers (or a subset) with appropriate self-referential structure using weak or strong induction as needed.

6 The BIG questions: How can we convince ourselves that an algorithm does what it's supposed to do? How do we determine whether or not one algorithm is better than another one? Mathematical induction is a very useful tool when proving the correctness or efficiency of an algorithm. We will see several examples of this.

7 Module 9 outline Example: single-elimination tournaments. Defining and validating mathematical induction. More examples where we can use induction. A slightly different type of induction.

8 Single-elimination tournaments Problem: single-elimination tournament Teams play one another in pairs The winner of each pair advances to the next round Los Angeles Vancouver Toronto St. Louis Pittsburgh New York Isl. Montréal Buffalo Los Angeles Toronto New York Isl. Montréal Los Angeles Montréal Round 2 Round 3 Round 4 Montréal

9 Single-elimination tournaments If we have n rounds of playoffs, how many teams can participate? a.n b.2n c.n 2 d.2 n e.none of the above. Let s prove this using mathematical induction.

10 The inductive step If 2 n teams can participate in a playoff with n rounds, how many teams can participate in a playoff with 2 n+1 rounds? a. 2 n +1 b. 2 n+1 c. (n+1) 2 d. None of the above.

11 The inductive step Theorem: If 2 n teams can participate in a playoff of n rounds, then 2 n+1 teams can participate in a playoff of n+1 rounds. Let P(x, y) be true if y teams can play in x rounds. In predicate logic: n Z, P(n, 2, ) P(n + 1, 2,01 ) Let s prove this.

12 The inductive step Theorem: If 2 n teams can participate in a playoff of n rounds, then 2 n+1 teams can participate in a playoff of n+1 rounds. Proof: Consider an unspecified playoff with n rounds. Assume that 2 n teams can participate in a playoff of n rounds. We can think of a playoff with n+1 rounds as follows: Two playoffs with n rounds proceed in parallel. The two winners then complete in one more round to determine the winner. Since each playoff with n rounds has 2 n teams, a playoff with n+1 rounds has 2 n+1 teams. QED

13 The complete induction proof Theorem: For any positive integer n, at most 2 n teams can participate in a playoff of n rounds. In predicate logic, the theorem becomes: n Z, P(n, 2, ) Proof: We prove this by induction. Base case: Induction step:

14 What did we prove with induction? Theorem: n Z, P n, 2, P 1,2 P 2,4 P 3,8 P 4,16 Proof: We prove this by induction. Base case: n = 1, P(1,2) is true. Induction step: We will prove that n Z, P n, 2, P n + 1, 2,01 P(1,2) P(2,4) P 2,4 P(3,8) P 3,8 P(4,16)

15 What did we prove with induction? P(1,2) P(1,2) P(2,4) P(2,4) by modus ponens P(2,4) P(2,4) P(3,8) P(3,8) by modus ponens P(3,8) P(3,8) P(4,16) P(4,16) by modus ponens Therefore, we have shown that: P 1,2 P 2,4 P 3,8 P 4,16 n Z, P n, 2,

16 The connection to recursion For an unspecified positive integer n To prove P(n + 1, 2,01 ): We can instead prove P(n, 2, ). This is a recursive call. Induction is more or less the same as recursion! A fun example involving induction:

17 Module 9 outline Example: single-elimination tournaments. Defining and validating mathematical induction. More examples where we can use induction. A slightly different type of induction.

18 Ordering students using adjacent swaps We want to order a group of 5 students in order of day of birth We are only allowed to swap pairs of adjacent students. We claimed the maximum number of swaps for n students is n(n-1)/2.

19 How many swaps do we need? Let s place students from left to right. The students already placed are ordered by day of birth. We swap each new student with his/her neighbour until he/she is at the right place. The i th student may be swapped with all previous (i-1) students.,<1 So the total number of swaps is : i Theorem 1:,<1 n Z 0, : i =>? = =>? n n 1 2

20 Theorem 1:,<1 n Z 0, : i =>? = n n 1 2 Let s parse the theorem first. One way to think about it: Theorem 1: 0 = = = = = 10 Another way to think about it:,<1 Let n n 1 P n : i =>? = Theorem 1: P(1) P(2) P(3) P(4) 2

21 Theorem 1:,<1 n Z 0, : i =>? = n n 1 2 Which base case(s) do we need to prove? a. n = 0 b. n = 1 c. n = 2 d. n = 0 and n = 1 e. n = 1 and n = 2

22 Theorem 1:,<1 n Z 0, : i =>? = n n 1 2 What do we need to prove in the induction step? a. b.,<1 n Z 0 : i = =>?,<1 n Z 0, : i = =>? n n 1 2 n n 1 2 : i = c. Both of a and b are correct. d. Neither of a and b are correct., =>? n + 1 n 2, n Z 0, : i = =>? n + 1 n 2

23 What is induction proving?,<1 n n 1 Base case: P 1 P n : i = 2 Induction step: =>? P(1) P(2) P 2 P 3 P 3 P 4 Combining the two, we have proven that P(1) P 2 P 3 P 4

24 A fun video about induction feature=related

25 Theorem 1:,<1 n Z 0, : i =>? = n n 1 2 Proof: We prove the theorem by induction. Base case: n = 1 Clearly, with only 1 student, no swap is needed: which is equal to 1*(1-1)/2 = 0 Induction step: Pick an unspecified n 1. Assume that when we have n students, we need at most n(n-1)/2 swaps. Equivalently we assume that,<1 : i =>? This is called the Induction Hypothesis. = n n 1 2

26 Theorem 1:,<1 n Z 0, : i =>? Proof (continued) Induction step (continued) For n+1 students, we need at most swaps. = n n 1, : i =>? 2,<1 = : i =>? + n By the induction hypothesis, this is equal to n n n = n + 1 n swaps, as required for the induction step. Hence by the principle of M.I., the theorem holds. QED 2

27 Induction is like recursion Where is our recursive call in the induction proof? a. Base case: b. Induction step: consider an unspecified positive integer n. c. Induction step: Assume that (where we stated our induction hypothesis) d. Induction step: The algebra where we applied our induction hypothesis e. Induction step: some other algebra steps

28 Induction is like recursion I don t know how to calculate (n-2) + (n-1) + n However, if you tell me how to calculate (n-2) + (n-1) I can calculate the first sum as follows (n-2) + (n-1) + n = ( (n-2) + (n-1)) + n

29 Review questions on induction Give me 3 critical components of an induction proof. When we are completing the induction step, what is our most important goal in life? Writing an induction proof is like playing dominos. What does the base case correspond to? What does the induction step correspond to? Induction is similar to recursion. Which part of an induction proof corresponds to the recursive call?

30 Geometric series Theorem 2: H t N, : 5 = =>? = 5H These summations occur frequently when we need to determine the running time of divideand-conquer algorithms.

31 Theorem 2: H t N, : 5 = =>? = 5H What should we prove in the base case? a. t = -1 b. t = 0 c. t = 1 d. t = 2 e. t = 3

32 Theorem 2: What do we need to prove in the induction step? a. b. H t N, : 5 = =>? H t N, : 5 = =>? t N, : 5 = c. Both of a and b are correct. d. Neither of a and b are correct. H =>? = 5H = 5H = 5H H01 : 5 = =>? = 5H0I H01 t N, : 5 = =>? = 5H0I 1 5 1

33 Theorem 2: Proof: Base case: t = 0 The summation is 5 0 = 1, and Induction step: Consider an unspecified natural number t. Assume that We need to prove that H t N, : 5 = =>? = 5H = 1 Hence by the principle of M.I., the theorem holds. QED

34 Proving an inequality Theorem 3: For all integers n 4, 2 n < n! Rules for inequalities: Start from one side (say the left side) Work step by step towards the other. When dealing with <, you are allowed to make the expression larger, but never smaller. Example: if I am smaller than you, then I am still smaller than you when you stand on a bench.

35 Theorem 3: n 4, 2 n < n! Another version of the induction step: We want to prove that n?, 2,<1 < n 1! 2, < n!. Consider an unspecified n?. Induction hypothesis: assume that 2 n-1 < (n-1)! 2 n = 2(2 n-1 ) < 2(n-1)! < n(n-1)! = n! What is the smallest value of n that we should use in the induction step? (a) less than 4 (d) 5 (b) 3 (e) more than 5 (c) 4

36 Sum of inverted squares Theorem 4: An interesting mathematical fact (which doesn t Q help with the proof): Let s prove this!, n 1, : 1 i I =>1 : 1 i I =>1 2 1 n = πi 6

37 Midterm 2 Work through the posted practice problem on converting a DFA to a sequential circuit! Topics covered: Converting a DFA to a sequential circuit Predicate logic to proof structure (assign #4 Q1) Proof structure to predicate logic (assign #4 Q2) Direct proof Proof by contrapositive and/or contradiction Induction

38 Theorem 4: After applying the induction hypothesis, what inequality do we need to prove? a. b. c. d. n 1, : 1 i I 2 1 n + 1 (n + 1) I 2 1 n 2 1 n + 1 (n + 1) I 2 1 n n (n + 1) I 2 1 n 2 1 n (n + 1) I 2 1 n + 1, =>1 2 1 n

39 Midterm 2 Work through the posted practice problem on converting a DFA to a sequential circuit! Topics covered: Converting a DFA to a sequential circuit Predicate logic to proof structure (assign #4 Q1) Proof structure to predicate logic (assign #4 Q2) Direct proof Proof by contrapositive and/or contradiction Induction

40 Sum of inverted squares Theorem 4: An interesting mathematical fact (which doesn t Q help with the proof): Let s prove this!, n 1, : 1 i I =>1 : 1 i I =>1 2 1 n = πi 6

41 Theorem 4: n 1, : 1 i I What should we prove in the base case? a. n = -1 b. n = 0 c. n = 1 d. n = 2 e. n = 3, =>1 2 1 n

42 Theorem 4: What do we need to prove in the induction step? a. b. t N,, : 1 i I =>1, t N, : 1 i I =>1 n 1, : 1 i I c. Both of a and b are correct. d. Neither of a and b are correct., =>1, n : 1 i I =>1 2 1 n 2 1 n + 1, n t N, : 1 i I =>1 2 1 n + 1

43 Proving a theorem about a DFA Consider the following DFA:

44 Which strings does this DFA accept? In addition to the empty string, what other strings does this DFA accept? a. Strings whose length is divisible by 5. b. Unsigned binary integers that are prime numbers. c. Strings with alternating 1 s and 0 s d. Unsigned binary integers that are divisible by 5.

45 Which strings does this DFA accept? In addition to the empty string, what other strings does this DFA accept? a. Strings whose length is divisible by 5. b. Unsigned binary integers that are prime numbers. c. Strings with alternating 1 s and 0 s d. Unsigned binary integers that are divisible by 5.

46 Proving a theorem about this DFA Suppose that we want to prove that this DFA only accepts binary numbers that are divisible by 5. Which statement should we prove (ignoring empty strings)? a.the DFA is in state 0 if and only if s is divisible by 5. b.the DFA is in state r if and only if r is the remainder when we divide s by 5.

47 Proving a theorem about this DFA Suppose that we want to prove that this DFA only accepts binary numbers that are divisible by 5. Which statement should we prove (ignoring empty strings)? a.the DFA is in state 0 if and only if s is divisible by 5. b.the DFA is in state r if and only if r is the remainder when we divide s by 5. We cannot prove a fact about state 0 without discussing the other states.

48 Theorem: The DFA ends up in state r after reading a string s if and only if q Z, s = 5q + r. Proof: by induction on the length n of s. Base case: n = 1 This can be verified easily by looking at the DFA. Induction step: Consider an unspecified integer n 2. Induction hypothesis: assume that the DFA behaves correctly for any string with n bits. We need to show that the DFA behaves correctly for any string with n + 1 bits.

49 Theorem: The DFA ends up in state r after reading a string s if and only if q Z, s = 5q + r. Proof (continued): Suppose that s = b n-1 b n-2...b 2 b 1 b 0. After reading the bits b n-1 b n-2...b 2 b 1, the DFA is in state r. By the induction hypothesis, the binary integer b n-1 b n-2...b 2 b 1 = 5q + r for some integer q. Now, s = 2 (b n-1 b n-2...b 2 b 1 ) + b 0 = 2(5q+r) + b 0 = 10q + 2r + b 0 and so s = 5 (2q) + (2r + b 0 ). So the DFA should have the following transitions: r b 0 2r+b r b 0 2r+b

50 Theorem: The DFA ends up in state r after reading a string s if and only if q Z, s = 5q + r. Proof (continued): It does, and hence after reading all n bits of s, the DFA ends up in state r if and only if q Z, s = 5q + r. Hence by the principle of mathematical induction, the DFA ends up in state r after reading a string s if and only if q Z, s = 5q + r. QED Corollary: the DFA is in state 0 if and only if s is divisible by 5.

51 Module 9 outline Example: single-elimination tournaments. Defining and validating mathematical induction. More examples where we can use induction. A slightly different type of induction.

52 The induction we have seen so far To solve n + 1, we make a recursive call to n (the previous case). Examples ( n n ) + 5 n+1 2 n < n! ---> 2 n+1 < (n+1)! The DFA behaves correctly for a string with n bits, then it also behaves correctly for a string with (n+1) bits. What if we need to make recursive call to one or more previous cases?

53 Carrying water across a desert We need to buy jugs of water in order to cross a desert. Unfortunately, the water jugs only come in two sizes: 5 liters and 7 liters. Prove that as long as n >= 24, we can buy n liters of water using 5-liter and 7-liter jugs only.

54 The induction step/the recursive call Which of the following ideas can be used for the induction step? If I can buy n-1 liters of water, then I can also buy n liters of water. If I can buy n-3 liters of water, then I can also buy n liters of water. If I can buy n-5 liters of water, then I can also buy n liters of water. If I can buy n-7 liters of water, then I can also buy n liters of water.

55 The induction step Version 1: P(n-5) -> P(n) Suppose that we can buy (n-5) liters of water using x 5-liter jugs and y 7-liter jugs. Then we can buy n liters of water using (x+1) 5- liter jugs and y 7-liter jugs only. Version 2: P(n-7) -> P(n) Suppose that we can buy (n-7) liters of water using x 5-liter jugs and y 7-liter jugs. Then we can buy n liters of water using x 5-liter jugs and (y+1) 7-liter jugs only.

56 The base cases Induction step: Assume that we can buy (n-5)l of water, then we can also buy nl of water. What is the smallest value of n for which we can apply the induction step? a. 24 b. 25 c. 28 d. 29 e. 30

57 The base cases Induction step: Assume that we can buy (n-5)l of water, then we can also buy nl of water. How many base cases do we need to prove? a. 1 b. 3 c. 5 d. 7 e. 9

58 A lower bound for Fibonacci numbers The Fibonacci numbers are defined as follows: F(0) = 0 F(1) = 1 F(n) = F(n-1) + F(n-2) for any n >= 2. Theorem: for every integer n >= 1, F(n) >= 1.6 n-2.

59 The induction step/the recursive call What should we prove in the induction step? a. If F(n-1) satisfies the theorem, then F(n) also satisfies the theorem. b. If F(n-2) satisfies the theorem, then F(n) also satisfies the theorem. c. If F(n-2) and F(n-1) satisfy the theorem, then F(n) also satisfies the theorem. d. If F(n) and F(n+1) satisfy the theorem, then F(n+2) also satisfies the theorem.

60 Let s complete the induction step.

61 The base cases What is the smallest value of n for which we can apply the induction step? a. 0 b. 1 c. 2 d. 3 e. 4 What are the base cases that we need to prove?

62 Additional induction examples

63 A binary tree A binary tree is a data structure that is defined recursively A binary tree is Empty, or A node with some data, and two children that are themselves trees

64 Calculating the size of a binary tree Consider the following procedure to calculate the size of a binary tree. If the tree is null, then the size of the tree is 0. Otherwise, the size of the tree = 1 + the size of its left child + the size of its right child Theorem 6: Prove that the above procedure correctly computes the number of (non-null) nodes of the tree.

65 Calculating the size of a binary tree We prove this using mathematical induction on the size of the tree. Base case: t is null In this case t contains exactly 0 nodes. Induction step: Assume the algorithm works for trees that are smaller than t. Because the left sub-tree of t is smaller than t, the 1st recursive calls correctly returns the size of the left sub-tree of t.

66 Calculating the size of a binary tree Proof (continued) Induction step (continued) Similarly the right sub-tree of t is smaller than t, and so the 2nd recursive call correctly returns the size of the right sub-tree of t. But we return 1 + the sum of the values returned by the recursive calls. This is exactly the size of t (1 for the root, and the sum of the sizes of the two sub-trees). Hence by the principle of M.I., our algorithm computes correctly the size of every tree. QED

67 Randomized-quick-select We can find the i th smallest element in an unsorted list as follows: Pick a random element x of the list. Divide the list into three sublists: list-smaller: elements smaller than x list-equal: elements equal to x list-larger: elements larger than x Then search list-smaller if i length of list-smaller list-larger if i > length of list smaller + length of list-equal otherwise return x

68 Randomized-quick-select This algorithm is called randomized-quick-select. A student shows the expected number of steps S(n) of the algorithm on a list with n elements is: S(1) = 4c S(2) = 12c S(3) = 20c S(n) 2cn + S(Floor(3n/4)) when n 4

69 Randomized-quick-select Prove: for every n 1, S(n) 8cn.

CPSC 121: Models of Computation. Module 9: Proof Techniques (part 2) Mathematical Induction

CPSC 121: Models of Computation. Module 9: Proof Techniques (part 2) Mathematical Induction CPSC 121: Models of Computation Module 9: Proof Techniques (part 2) Mathematical Induction Module 9: Announcements Midterm #2: th Monday November 14, 2016 at 17:00 Modules 5 (from multiple quantifiers

More information

Proof Techniques (Review of Math 271)

Proof Techniques (Review of Math 271) Chapter 2 Proof Techniques (Review of Math 271) 2.1 Overview This chapter reviews proof techniques that were probably introduced in Math 271 and that may also have been used in a different way in Phil

More information

CS 220: Discrete Structures and their Applications. Mathematical Induction in zybooks

CS 220: Discrete Structures and their Applications. Mathematical Induction in zybooks CS 220: Discrete Structures and their Applications Mathematical Induction 6.4 6.6 in zybooks Why induction? Prove algorithm correctness (CS320 is full of it) The inductive proof will sometimes point out

More information

Lecture Overview. 2 Weak Induction

Lecture Overview. 2 Weak Induction COMPSCI 30: Discrete Mathematics for Computer Science February 18, 019 Lecturer: Debmalya Panigrahi Lecture 11 Scribe: Kevin Sun 1 Overview In this lecture, we study mathematical induction, which we often

More information

Chapter 2. Mathematical Reasoning. 2.1 Mathematical Models

Chapter 2. Mathematical Reasoning. 2.1 Mathematical Models Contents Mathematical Reasoning 3.1 Mathematical Models........................... 3. Mathematical Proof............................ 4..1 Structure of Proofs........................ 4.. Direct Method..........................

More information

Induction and recursion. Chapter 5

Induction and recursion. Chapter 5 Induction and recursion Chapter 5 Chapter Summary Mathematical Induction Strong Induction Well-Ordering Recursive Definitions Structural Induction Recursive Algorithms Mathematical Induction Section 5.1

More information

Chapter Summary. Mathematical Induction Strong Induction Well-Ordering Recursive Definitions Structural Induction Recursive Algorithms

Chapter Summary. Mathematical Induction Strong Induction Well-Ordering Recursive Definitions Structural Induction Recursive Algorithms 1 Chapter Summary Mathematical Induction Strong Induction Well-Ordering Recursive Definitions Structural Induction Recursive Algorithms 2 Section 5.1 3 Section Summary Mathematical Induction Examples of

More information

CSC236 Week 3. Larry Zhang

CSC236 Week 3. Larry Zhang CSC236 Week 3 Larry Zhang 1 Announcements Problem Set 1 due this Friday Make sure to read Submission Instructions on the course web page. Search for Teammates on Piazza Educational memes: http://www.cs.toronto.edu/~ylzhang/csc236/memes.html

More information

Logic, Sets, and Proofs

Logic, Sets, and Proofs Logic, Sets, and Proofs David A. Cox and Catherine C. McGeoch Amherst College 1 Logic Logical Operators. A logical statement is a mathematical statement that can be assigned a value either true or false.

More information

CS1800: Mathematical Induction. Professor Kevin Gold

CS1800: Mathematical Induction. Professor Kevin Gold CS1800: Mathematical Induction Professor Kevin Gold Induction: Used to Prove Patterns Just Keep Going For an algorithm, we may want to prove that it just keeps working, no matter how big the input size

More information

Mathematical Induction

Mathematical Induction Mathematical Induction MAT30 Discrete Mathematics Fall 018 MAT30 (Discrete Math) Mathematical Induction Fall 018 1 / 19 Outline 1 Mathematical Induction Strong Mathematical Induction MAT30 (Discrete Math)

More information

Binomial Coefficient Identities/Complements

Binomial Coefficient Identities/Complements Binomial Coefficient Identities/Complements CSE21 Fall 2017, Day 4 Oct 6, 2017 https://sites.google.com/a/eng.ucsd.edu/cse21-fall-2017-miles-jones/ permutation P(n,r) = n(n-1) (n-2) (n-r+1) = Terminology

More information

Lecture 17: Trees and Merge Sort 10:00 AM, Oct 15, 2018

Lecture 17: Trees and Merge Sort 10:00 AM, Oct 15, 2018 CS17 Integrated Introduction to Computer Science Klein Contents Lecture 17: Trees and Merge Sort 10:00 AM, Oct 15, 2018 1 Tree definitions 1 2 Analysis of mergesort using a binary tree 1 3 Analysis of

More information

Mathematical Induction

Mathematical Induction Mathematical Induction MAT231 Transition to Higher Mathematics Fall 2014 MAT231 (Transition to Higher Math) Mathematical Induction Fall 2014 1 / 21 Outline 1 Mathematical Induction 2 Strong Mathematical

More information

Carmen s Core Concepts (Math 135)

Carmen s Core Concepts (Math 135) Carmen s Core Concepts (Math 135) Carmen Bruni University of Waterloo Week 4 1 Principle of Mathematical Induction 2 Example 3 Base Case 4 Inductive Hypothesis 5 Inductive Step When Induction Isn t Enough

More information

Induction and Recursion

Induction and Recursion . All rights reserved. Authorized only for instructor use in the classroom. No reproduction or further distribution permitted without the prior written consent of McGraw-Hill Education. Induction and Recursion

More information

Mathematical Induction. Rosen Chapter 4.1,4.2 (6 th edition) Rosen Ch. 5.1, 5.2 (7 th edition)

Mathematical Induction. Rosen Chapter 4.1,4.2 (6 th edition) Rosen Ch. 5.1, 5.2 (7 th edition) Mathematical Induction Rosen Chapter 4.1,4.2 (6 th edition) Rosen Ch. 5.1, 5.2 (7 th edition) Motivation Suppose we want to prove that for every value of n: 1 + 2 + + n = n(n + 1)/2. Let P(n) be the predicate

More information

Notes on induction proofs and recursive definitions

Notes on induction proofs and recursive definitions Notes on induction proofs and recursive definitions James Aspnes December 13, 2010 1 Simple induction Most of the proof techniques we ve talked about so far are only really useful for proving a property

More information

Discrete Mathematics and Probability Theory Fall 2013 Vazirani Note 1

Discrete Mathematics and Probability Theory Fall 2013 Vazirani Note 1 CS 70 Discrete Mathematics and Probability Theory Fall 013 Vazirani Note 1 Induction Induction is a basic, powerful and widely used proof technique. It is one of the most common techniques for analyzing

More information

Packet #1: Logic & Proofs. Applied Discrete Mathematics

Packet #1: Logic & Proofs. Applied Discrete Mathematics Packet #1: Logic & Proofs Applied Discrete Mathematics Table of Contents Course Objectives Page 2 Propositional Calculus Information Pages 3-13 Course Objectives At the conclusion of this course, you should

More information

Homework #2 Solutions Due: September 5, for all n N n 3 = n2 (n + 1) 2 4

Homework #2 Solutions Due: September 5, for all n N n 3 = n2 (n + 1) 2 4 Do the following exercises from the text: Chapter (Section 3):, 1, 17(a)-(b), 3 Prove that 1 3 + 3 + + n 3 n (n + 1) for all n N Proof The proof is by induction on n For n N, let S(n) be the statement

More information

With Question/Answer Animations

With Question/Answer Animations Chapter 5 With Question/Answer Animations Copyright McGraw-Hill Education. All rights reserved. No reproduction or distribution without the prior written consent of McGraw-Hill Education. Chapter Summary

More information

Divide and Conquer. CSE21 Winter 2017, Day 9 (B00), Day 6 (A00) January 30,

Divide and Conquer. CSE21 Winter 2017, Day 9 (B00), Day 6 (A00) January 30, Divide and Conquer CSE21 Winter 2017, Day 9 (B00), Day 6 (A00) January 30, 2017 http://vlsicad.ucsd.edu/courses/cse21-w17 Merging sorted lists: WHAT Given two sorted lists a 1 a 2 a 3 a k b 1 b 2 b 3 b

More information

Announcements. Read Section 2.1 (Sets), 2.2 (Set Operations) and 5.1 (Mathematical Induction) Existence Proofs. Non-constructive

Announcements. Read Section 2.1 (Sets), 2.2 (Set Operations) and 5.1 (Mathematical Induction) Existence Proofs. Non-constructive Announcements Homework 2 Due Homework 3 Posted Due next Monday Quiz 2 on Wednesday Read Section 2.1 (Sets), 2.2 (Set Operations) and 5.1 (Mathematical Induction) Exam 1 in two weeks Monday, February 19

More information

CSI Mathematical Induction. Many statements assert that a property of the form P(n) is true for all integers n.

CSI Mathematical Induction. Many statements assert that a property of the form P(n) is true for all integers n. CSI 2101- Mathematical Induction Many statements assert that a property of the form P(n) is true for all integers n. Examples: For every positive integer n: n! n n Every set with n elements, has 2 n Subsets.

More information

SEQUENCES, MATHEMATICAL INDUCTION, AND RECURSION

SEQUENCES, MATHEMATICAL INDUCTION, AND RECURSION CHAPTER 5 SEQUENCES, MATHEMATICAL INDUCTION, AND RECURSION Copyright Cengage Learning. All rights reserved. SECTION 5.4 Strong Mathematical Induction and the Well-Ordering Principle for the Integers Copyright

More information

Chapter 3. Cartesian Products and Relations. 3.1 Cartesian Products

Chapter 3. Cartesian Products and Relations. 3.1 Cartesian Products Chapter 3 Cartesian Products and Relations The material in this chapter is the first real encounter with abstraction. Relations are very general thing they are a special type of subset. After introducing

More information

Lecture Notes on DISCRETE MATHEMATICS. Eusebius Doedel

Lecture Notes on DISCRETE MATHEMATICS. Eusebius Doedel Lecture Notes on DISCRETE MATHEMATICS Eusebius Doedel c Eusebius J. Doedel, 009 Contents Logic. Introduction............................................................................... Basic logical

More information

Mathematical Induction

Mathematical Induction Mathematical Induction Let s motivate our discussion by considering an example first. What happens when we add the first n positive odd integers? The table below shows what results for the first few values

More information

Advanced Counting Techniques. Chapter 8

Advanced Counting Techniques. Chapter 8 Advanced Counting Techniques Chapter 8 Chapter Summary Applications of Recurrence Relations Solving Linear Recurrence Relations Homogeneous Recurrence Relations Nonhomogeneous Recurrence Relations Divide-and-Conquer

More information

SMT 2013 Power Round Solutions February 2, 2013

SMT 2013 Power Round Solutions February 2, 2013 Introduction This Power Round is an exploration of numerical semigroups, mathematical structures which appear very naturally out of answers to simple questions. For example, suppose McDonald s sells Chicken

More information

Mathematical Induction. How does discrete math help us. How does discrete math help (CS160)? How does discrete math help (CS161)?

Mathematical Induction. How does discrete math help us. How does discrete math help (CS160)? How does discrete math help (CS161)? How does discrete math help us Helps create a solution (program) Helps analyze a program How does discrete math help (CS160)? Helps create a solution (program) q Logic helps you understand conditionals

More information

CPSC 121 Sample Final Examination December 2013

CPSC 121 Sample Final Examination December 2013 CPSC 121 Sample Final Examination December 201 [6] 1. Short answers [] a. What is wrong with the following circuit? You can not connect the outputs of two or more gates together directly; what will happen

More information

For all For every For each For any There exists at least one There exists There is Some

For all For every For each For any There exists at least one There exists There is Some Section 1.3 Predicates and Quantifiers Assume universe of discourse is all the people who are participating in this course. Also let us assume that we know each person in the course. Consider the following

More information

Mathematical Fundamentals

Mathematical Fundamentals Mathematical Fundamentals Sets Factorials, Logarithms Recursion Summations, Recurrences Proof Techniques: By Contradiction, Induction Estimation Techniques Data Structures 1 Mathematical Fundamentals Sets

More information

CPSC 121: Models of Computation

CPSC 121: Models of Computation CPSC 121: Models of Computation Unit 6 Rewriting Predicate Logic Statements Based on slides by Patrice Belleville and Steve Wolfman Coming Up Pre-class quiz #7 is due Wednesday October 25th at 9:00 pm.

More information

LECTURE NOTES DISCRETE MATHEMATICS. Eusebius Doedel

LECTURE NOTES DISCRETE MATHEMATICS. Eusebius Doedel LECTURE NOTES on DISCRETE MATHEMATICS Eusebius Doedel 1 LOGIC Introduction. First we introduce some basic concepts needed in our discussion of logic. These will be covered in more detail later. A set is

More information

Climbing an Infinite Ladder

Climbing an Infinite Ladder Section 5.1 Section Summary Mathematical Induction Examples of Proof by Mathematical Induction Mistaken Proofs by Mathematical Induction Guidelines for Proofs by Mathematical Induction Climbing an Infinite

More information

CS 173: Induction. Madhusudan Parthasarathy University of Illinois at Urbana-Champaign. February 7, 2016

CS 173: Induction. Madhusudan Parthasarathy University of Illinois at Urbana-Champaign. February 7, 2016 CS 173: Induction Madhusudan Parthasarathy University of Illinois at Urbana-Champaign 1 Induction February 7, 016 This chapter covers mathematical induction, and is an alternative resource to the one in

More information

Discrete Structures CRN Test 3 Version 1 CMSC 2123 Autumn 2013

Discrete Structures CRN Test 3 Version 1 CMSC 2123 Autumn 2013 . Print your name on your scantron in the space labeled NAME. 2. Print CMSC 223 in the space labeled SUBJECT. 3. Print the date 2-2-203, in the space labeled DATE. 4. Print your CRN, 786, in the space

More information

Department of Computer Science University at Albany, State University of New York Solutions to Sample Discrete Mathematics Examination II (Fall 2007)

Department of Computer Science University at Albany, State University of New York Solutions to Sample Discrete Mathematics Examination II (Fall 2007) Department of Computer Science University at Albany, State University of New York Solutions to Sample Discrete Mathematics Examination II (Fall 2007) Problem 1: Specify two different predicates P (x) and

More information

Mathematical Induction

Mathematical Induction Chapter 6 Mathematical Induction 6.1 The Process of Mathematical Induction 6.1.1 Motivating Mathematical Induction Consider the sum of the first several odd integers. produce the following: 1 = 1 1 + 3

More information

5 + 9(10) + 3(100) + 0(1000) + 2(10000) =

5 + 9(10) + 3(100) + 0(1000) + 2(10000) = Chapter 5 Analyzing Algorithms So far we have been proving statements about databases, mathematics and arithmetic, or sequences of numbers. Though these types of statements are common in computer science,

More information

At the start of the term, we saw the following formula for computing the sum of the first n integers:

At the start of the term, we saw the following formula for computing the sum of the first n integers: Chapter 11 Induction This chapter covers mathematical induction. 11.1 Introduction to induction At the start of the term, we saw the following formula for computing the sum of the first n integers: Claim

More information

CSC 344 Algorithms and Complexity. Proof by Mathematical Induction

CSC 344 Algorithms and Complexity. Proof by Mathematical Induction CSC 344 Algorithms and Complexity Lecture #1 Review of Mathematical Induction Proof by Mathematical Induction Many results in mathematics are claimed true for every positive integer. Any of these results

More information

CPSC 121: Models of Computation

CPSC 121: Models of Computation CPSC 121: Models of Computation Unit 4 Propositional Logic Proofs Based on slides by Patrice Belleville and Steve Wolfman Coming Up Pre-class quiz #5 is due Wednesday October 4th at 21:00 Assigned reading

More information

CPSC 121: Models of Computation. Module 6: Rewriting predicate logic statements

CPSC 121: Models of Computation. Module 6: Rewriting predicate logic statements CPSC 121: Models of Computation Pre-class quiz #7 is due Wednesday October 16th at 17:00. Assigned reading for the quiz: Epp, 4th edition: 4.1, 4.6, Theorem 4.4.1 Epp, 3rd edition: 3.1, 3.6, Theorem 3.4.1.

More information

Math 10850, fall 2017, University of Notre Dame

Math 10850, fall 2017, University of Notre Dame Math 10850, fall 2017, University of Notre Dame Notes on first exam September 22, 2017 The key facts The first midterm will be on Thursday, September 28, 6.15pm-7.45pm in Hayes-Healy 127. What you need

More information

CS 2110: INDUCTION DISCUSSION TOPICS

CS 2110: INDUCTION DISCUSSION TOPICS CS 110: INDUCTION DISCUSSION TOPICS The following ideas are suggestions for how to handle your discussion classes. You can do as much or as little of this as you want. You can either present at the board,

More information

Mathematical Induction. Section 5.1

Mathematical Induction. Section 5.1 Mathematical Induction Section 5.1 Section Summary Mathematical Induction Examples of Proof by Mathematical Induction Mistaken Proofs by Mathematical Induction Guidelines for Proofs by Mathematical Induction

More information

The Real Number System

The Real Number System MATH 337 The Real Number System Sets of Numbers Dr. Neal, WKU A set S is a well-defined collection of objects, with well-defined meaning that there is a specific description from which we can tell precisely

More information

CISC-102 Fall 2017 Week 3. Principle of Mathematical Induction

CISC-102 Fall 2017 Week 3. Principle of Mathematical Induction Week 3 1 of 17 CISC-102 Fall 2017 Week 3 Principle of Mathematical Induction A proposition is defined as a statement that is either true or false. We will at times make a declarative statement as a proposition

More information

0.Axioms for the Integers 1

0.Axioms for the Integers 1 0.Axioms for the Integers 1 Number theory is the study of the arithmetical properties of the integers. You have been doing arithmetic with integers since you were a young child, but these mathematical

More information

7.11 A proof involving composition Variation in terminology... 88

7.11 A proof involving composition Variation in terminology... 88 Contents Preface xi 1 Math review 1 1.1 Some sets............................. 1 1.2 Pairs of reals........................... 3 1.3 Exponentials and logs...................... 4 1.4 Some handy functions......................

More information

CSC236H Lecture 2. Ilir Dema. September 19, 2018

CSC236H Lecture 2. Ilir Dema. September 19, 2018 CSC236H Lecture 2 Ilir Dema September 19, 2018 Simple Induction Useful to prove statements depending on natural numbers Define a predicate P(n) Prove the base case P(b) Prove that for all n b, P(n) P(n

More information

Discrete Mathematics: Midterm Test with Answers. Professor Callahan, section (A or B): Name: NetID: 30 multiple choice, 3 points each:

Discrete Mathematics: Midterm Test with Answers. Professor Callahan, section (A or B): Name: NetID: 30 multiple choice, 3 points each: Discrete Mathematics: Midterm Test with Answers Professor Callahan, section (A or B): Name: NetID: 30 multiple choice, 3 points each: 1. If f is defined recursively by: f (0) = -2, f (1) = 1, and for n

More information

MAT246H1S - Concepts In Abstract Mathematics. Solutions to Term Test 1 - February 1, 2018

MAT246H1S - Concepts In Abstract Mathematics. Solutions to Term Test 1 - February 1, 2018 MAT246H1S - Concepts In Abstract Mathematics Solutions to Term Test 1 - February 1, 2018 Time allotted: 110 minutes. Aids permitted: None. Comments: Statements of Definitions, Principles or Theorems should

More information

Lecture 7 Feb 4, 14. Sections 1.7 and 1.8 Some problems from Sec 1.8

Lecture 7 Feb 4, 14. Sections 1.7 and 1.8 Some problems from Sec 1.8 Lecture 7 Feb 4, 14 Sections 1.7 and 1.8 Some problems from Sec 1.8 Section Summary Proof by Cases Existence Proofs Constructive Nonconstructive Disproof by Counterexample Nonexistence Proofs Uniqueness

More information

Math 31 Lesson Plan. Day 2: Sets; Binary Operations. Elizabeth Gillaspy. September 23, 2011

Math 31 Lesson Plan. Day 2: Sets; Binary Operations. Elizabeth Gillaspy. September 23, 2011 Math 31 Lesson Plan Day 2: Sets; Binary Operations Elizabeth Gillaspy September 23, 2011 Supplies needed: 30 worksheets. Scratch paper? Sign in sheet Goals for myself: Tell them what you re going to tell

More information

We want to show P (n) is true for all integers

We want to show P (n) is true for all integers Generalized Induction Proof: Let P (n) be the proposition 1 + 2 + 2 2 + + 2 n = 2 n+1 1. We want to show P (n) is true for all integers n 0. Generalized Induction Example: Use generalized induction to

More information

1. Consider the conditional E = p q r. Use de Morgan s laws to write simplified versions of the following : The negation of E : 5 points

1. Consider the conditional E = p q r. Use de Morgan s laws to write simplified versions of the following : The negation of E : 5 points Introduction to Discrete Mathematics 3450:208 Test 1 1. Consider the conditional E = p q r. Use de Morgan s laws to write simplified versions of the following : The negation of E : The inverse of E : The

More information

Quiz 1. Directions: Show all of your work and justify all of your answers.

Quiz 1. Directions: Show all of your work and justify all of your answers. Quiz 1 1. Let p and q be the following statements. p : Maxwell is a mathematics major. q : Maxwell is a chemistry major. (1) a. Write each of the following in symbolic form using logical connectives. i.

More information

CSE 20 DISCRETE MATH SPRING

CSE 20 DISCRETE MATH SPRING CSE 20 DISCRETE MATH SPRING 2016 http://cseweb.ucsd.edu/classes/sp16/cse20-ac/ Today's learning goals Describe computer representation of sets with bitstrings Define and compute the cardinality of finite

More information

Discrete Mathematics and Probability Theory Spring 2014 Anant Sahai Note 3

Discrete Mathematics and Probability Theory Spring 2014 Anant Sahai Note 3 EECS 70 Discrete Mathematics and Probability Theory Spring 014 Anant Sahai Note 3 Induction Induction is an extremely powerful tool in mathematics. It is a way of proving propositions that hold for all

More information

Quiz 3 Reminder and Midterm Results

Quiz 3 Reminder and Midterm Results Quiz 3 Reminder and Midterm Results Reminder: Quiz 3 will be in the first 15 minutes of Monday s class. You can use any resources you have during the quiz. It covers all four sections of Unit 3. It has

More information

CS 161 Summer 2009 Homework #2 Sample Solutions

CS 161 Summer 2009 Homework #2 Sample Solutions CS 161 Summer 2009 Homework #2 Sample Solutions Regrade Policy: If you believe an error has been made in the grading of your homework, you may resubmit it for a regrade. If the error consists of more than

More information

2. Two binary operations (addition, denoted + and multiplication, denoted

2. Two binary operations (addition, denoted + and multiplication, denoted Chapter 2 The Structure of R The purpose of this chapter is to explain to the reader why the set of real numbers is so special. By the end of this chapter, the reader should understand the difference between

More information

CS 250/251 Discrete Structures I and II Section 005 Fall/Winter Professor York

CS 250/251 Discrete Structures I and II Section 005 Fall/Winter Professor York CS 250/251 Discrete Structures I and II Section 005 Fall/Winter 2013-2014 Professor York Practice Quiz March 10, 2014 CALCULATORS ALLOWED, SHOW ALL YOUR WORK 1. Construct the power set of the set A = {1,2,3}

More information

Preparing for the CS 173 (A) Fall 2018 Midterm 1

Preparing for the CS 173 (A) Fall 2018 Midterm 1 Preparing for the CS 173 (A) Fall 2018 Midterm 1 1 Basic information Midterm 1 is scheduled from 7:15-8:30 PM. We recommend you arrive early so that you can start exactly at 7:15. Exams will be collected

More information

Welcome to MAT 137! Course website:

Welcome to MAT 137! Course website: Welcome to MAT 137! Course website: http://uoft.me/ Read the course outline Office hours to be posted here Online forum: Piazza Precalculus review: http://uoft.me/precalc If you haven t gotten an email

More information

Name CMSC203 Fall2008 Exam 2 Solution Key Show All Work!!! Page (16 points) Circle T if the corresponding statement is True or F if it is False.

Name CMSC203 Fall2008 Exam 2 Solution Key Show All Work!!! Page (16 points) Circle T if the corresponding statement is True or F if it is False. Name CMSC203 Fall2008 Exam 2 Solution Key Show All Work!!! Page ( points) Circle T if the corresponding statement is True or F if it is False T F GCD(,0) = 0 T F For every recursive algorithm, there is

More information

1 Sequences and Summation

1 Sequences and Summation 1 Sequences and Summation A sequence is a function whose domain is either all the integers between two given integers or all the integers greater than or equal to a given integer. For example, a m, a m+1,...,

More information

MA008/MIIZ01 Design and Analysis of Algorithms Lecture Notes 3

MA008/MIIZ01 Design and Analysis of Algorithms Lecture Notes 3 MA008 p.1/37 MA008/MIIZ01 Design and Analysis of Algorithms Lecture Notes 3 Dr. Markus Hagenbuchner markus@uow.edu.au. MA008 p.2/37 Exercise 1 (from LN 2) Asymptotic Notation When constants appear in exponents

More information

MATH 55 - HOMEWORK 6 SOLUTIONS. 1. Section = 1 = (n + 1) 3 = 2. + (n + 1) 3. + (n + 1) 3 = n2 (n + 1) 2.

MATH 55 - HOMEWORK 6 SOLUTIONS. 1. Section = 1 = (n + 1) 3 = 2. + (n + 1) 3. + (n + 1) 3 = n2 (n + 1) 2. MATH 55 - HOMEWORK 6 SOLUTIONS Exercise Section 5 Proof (a) P () is the statement ( ) 3 (b) P () is true since ( ) 3 (c) The inductive hypothesis is P (n): ( ) n(n + ) 3 + 3 + + n 3 (d) Assuming the inductive

More information

(1) Which of the following are propositions? If it is a proposition, determine its truth value: A propositional function, but not a proposition.

(1) Which of the following are propositions? If it is a proposition, determine its truth value: A propositional function, but not a proposition. Math 231 Exam Practice Problem Solutions WARNING: This is not a sample test. Problems on the exams may or may not be similar to these problems. These problems are just intended to focus your study of the

More information

a. See the textbook for examples of proving logical equivalence using truth tables. b. There is a real number x for which f (x) < 0. (x 1) 2 > 0.

a. See the textbook for examples of proving logical equivalence using truth tables. b. There is a real number x for which f (x) < 0. (x 1) 2 > 0. For some problems, several sample proofs are given here. Problem 1. a. See the textbook for examples of proving logical equivalence using truth tables. b. There is a real number x for which f (x) < 0.

More information

Seunghee Ye Ma 8: Week 2 Oct 6

Seunghee Ye Ma 8: Week 2 Oct 6 Week 2 Summary This week, we will learn about sequences and real numbers. We first define what we mean by a sequence and discuss several properties of sequences. Then, we will talk about what it means

More information

Sequences of Real Numbers

Sequences of Real Numbers Chapter 8 Sequences of Real Numbers In this chapter, we assume the existence of the ordered field of real numbers, though we do not yet discuss or use the completeness of the real numbers. In the next

More information

Contribution of Problems

Contribution of Problems Exam topics 1. Basic structures: sets, lists, functions (a) Sets { }: write all elements, or define by condition (b) Set operations: A B, A B, A\B, A c (c) Lists ( ): Cartesian product A B (d) Functions

More information

Math 324 Summer 2012 Elementary Number Theory Notes on Mathematical Induction

Math 324 Summer 2012 Elementary Number Theory Notes on Mathematical Induction Math 4 Summer 01 Elementary Number Theory Notes on Mathematical Induction Principle of Mathematical Induction Recall the following axiom for the set of integers. Well-Ordering Axiom for the Integers If

More information

Announcements. Exam 1 Review

Announcements. Exam 1 Review Announcements Quiz today Exam Monday! You are allowed one 8.5 x 11 in cheat sheet of handwritten notes for the exam (front and back of 8.5 x 11 in paper) Handwritten means you must write them by hand,

More information

Arithmetic and Incompleteness. Will Gunther. Goals. Coding with Naturals. Logic and Incompleteness. Will Gunther. February 6, 2013

Arithmetic and Incompleteness. Will Gunther. Goals. Coding with Naturals. Logic and Incompleteness. Will Gunther. February 6, 2013 Logic February 6, 2013 Logic 1 2 3 Logic About Talk Logic Things talk Will approach from angle of computation. Will not assume very much knowledge. Will prove Gödel s Incompleteness Theorem. Will not talk

More information

CS Data Structures and Algorithm Analysis

CS Data Structures and Algorithm Analysis CS 483 - Data Structures and Algorithm Analysis Lecture VII: Chapter 6, part 2 R. Paul Wiegand George Mason University, Department of Computer Science March 22, 2006 Outline 1 Balanced Trees 2 Heaps &

More information

Practice Midterm Exam Solutions

Practice Midterm Exam Solutions CSE 311: Foundations of Computing I Practice Midterm Exam Solutions Name: Sample Solutions ID: TA: Section: INSTRUCTIONS: You have 50 minutes to complete the exam. The exam is closed book. You may not

More information

Automata Theory and Formal Grammars: Lecture 1

Automata Theory and Formal Grammars: Lecture 1 Automata Theory and Formal Grammars: Lecture 1 Sets, Languages, Logic Automata Theory and Formal Grammars: Lecture 1 p.1/72 Sets, Languages, Logic Today Course Overview Administrivia Sets Theory (Review?)

More information

Undergraduate Notes in Mathematics. Arkansas Tech University Department of Mathematics. Introductory Notes in Discrete Mathematics Solution Guide

Undergraduate Notes in Mathematics. Arkansas Tech University Department of Mathematics. Introductory Notes in Discrete Mathematics Solution Guide Undergraduate Notes in Mathematics Arkansas Tech University Department of Mathematics Introductory Notes in Discrete Mathematics Solution Guide Marcel B. Finan c All Rights Reserved 2015 Edition Contents

More information

Tribhuvan University Institute of Science and Technology Micro Syllabus

Tribhuvan University Institute of Science and Technology Micro Syllabus Tribhuvan University Institute of Science and Technology Micro Syllabus Course Title: Discrete Structure Course no: CSC-152 Full Marks: 80+20 Credit hours: 3 Pass Marks: 32+8 Nature of course: Theory (3

More information

(c) Give a proof of or a counterexample to the following statement: (3n 2)= n(3n 1) 2

(c) Give a proof of or a counterexample to the following statement: (3n 2)= n(3n 1) 2 Question 1 (a) Suppose A is the set of distinct letters in the word elephant, B is the set of distinct letters in the word sycophant, C is the set of distinct letters in the word fantastic, and D is the

More information

Exercises 1 - Solutions

Exercises 1 - Solutions Exercises 1 - Solutions SAV 2013 1 PL validity For each of the following propositional logic formulae determine whether it is valid or not. If it is valid prove it, otherwise give a counterexample. Note

More information

Discrete Mathematics. Spring 2017

Discrete Mathematics. Spring 2017 Discrete Mathematics Spring 2017 Previous Lecture Principle of Mathematical Induction Mathematical Induction: Rule of Inference Mathematical Induction: Conjecturing and Proving Mathematical Induction:

More information

D I S C R E T E M AT H E M AT I C S H O M E W O R K

D I S C R E T E M AT H E M AT I C S H O M E W O R K D E PA R T M E N T O F C O M P U T E R S C I E N C E S C O L L E G E O F E N G I N E E R I N G F L O R I D A T E C H D I S C R E T E M AT H E M AT I C S H O M E W O R K W I L L I A M S H O A F F S P R

More information

Day 6. Tuesday May 29, We continue our look at basic proofs. We will do a few examples of different methods of proving.

Day 6. Tuesday May 29, We continue our look at basic proofs. We will do a few examples of different methods of proving. Day 6 Tuesday May 9, 01 1 Basic Proofs We continue our look at basic proofs. We will do a few examples of different methods of proving. 1.1 Proof Techniques Recall that so far in class we have made two

More information

Fall 2017 Test II review problems

Fall 2017 Test II review problems Fall 2017 Test II review problems Dr. Holmes October 18, 2017 This is a quite miscellaneous grab bag of relevant problems from old tests. Some are certainly repeated. 1. Give the complete addition and

More information

COM S 330 Lecture Notes Week of Feb 9 13

COM S 330 Lecture Notes Week of Feb 9 13 Monday, February 9. Rosen.4 Sequences Reading: Rosen.4. LLM 4.. Ducks 8., 8., Def: A sequence is a function from a (usually infinite) subset of the integers (usually N = {0,,, 3,... } or Z + = {,, 3, 4,...

More information

Basic Proof Examples

Basic Proof Examples Basic Proof Examples Lisa Oberbroeckling Loyola University Maryland Fall 2015 Note. In this document, we use the symbol as the negation symbol. Thus p means not p. There are four basic proof techniques

More information

Entropy as a measure of surprise

Entropy as a measure of surprise Entropy as a measure of surprise Lecture 5: Sam Roweis September 26, 25 What does information do? It removes uncertainty. Information Conveyed = Uncertainty Removed = Surprise Yielded. How should we quantify

More information

PUTNAM TRAINING NUMBER THEORY. Exercises 1. Show that the sum of two consecutive primes is never twice a prime.

PUTNAM TRAINING NUMBER THEORY. Exercises 1. Show that the sum of two consecutive primes is never twice a prime. PUTNAM TRAINING NUMBER THEORY (Last updated: December 11, 2017) Remark. This is a list of exercises on Number Theory. Miguel A. Lerma Exercises 1. Show that the sum of two consecutive primes is never twice

More information

Math Circle: Recursion and Induction

Math Circle: Recursion and Induction Math Circle: Recursion and Induction Prof. Wickerhauser 1 Recursion What can we compute, using only simple formulas and rules that everyone can understand? 1. Let us use N to denote the set of counting

More information

CMSC250 Homework 9 Due: Wednesday, December 3, Question: Total Points: Score:

CMSC250 Homework 9 Due: Wednesday, December 3, Question: Total Points: Score: Name & UID: Circle Your Section! 0101 (10am: 3120, Ladan) 0102 (11am: 3120, Ladan) 0103 (Noon: 3120, Peter) 0201 (2pm: 3120, Yi) 0202 (10am: 1121, Vikas) 0203 (11am: 1121, Vikas) 0204 (9am: 2117, Karthik)

More information

1 Divide and Conquer (September 3)

1 Divide and Conquer (September 3) The control of a large force is the same principle as the control of a few men: it is merely a question of dividing up their numbers. Sun Zi, The Art of War (c. 400 C.E.), translated by Lionel Giles (1910)

More information