Discrete Structures Chapter 5: Sequences, Mathematical Induction, and Recursion 5.7 Solving Recurrence Relations by Iteration The keener one’s sense of.

Slides:



Advertisements
Similar presentations
Week 6 - Wednesday CS322.
Advertisements

Chapter 1: Number Patterns 1.3: Arithmetic Sequences
Lecture 5COMPSCI.220.FS.T Worst-Case Performance Upper bounds : simple to obtain Lower bounds : a difficult matter... Worst case data may be unlikely.
Kavita Math231 Recursion and Iteration. Kavita Math231 We use Recursion when we have to perform a complex task that can be broken into the several subtasks.
Discrete Structures Chapter 6 Recurrence Relations
Analysis of Recursive Algorithms
Copyright © Cengage Learning. All rights reserved. CHAPTER 5 SEQUENCES, MATHEMATICAL INDUCTION, AND RECURSION SEQUENCES, MATHEMATICAL INDUCTION, AND RECURSION.
Unit 1. Sorting and Divide and Conquer. Lecture 1 Introduction to Algorithm and Sorting.
Chapter 1: Number Patterns 1.6: Geometric Sequences
11.3 – Geometric Sequences.
Honors Geometry Section 1.0 Patterns and Inductive Reasoning
SECTION 7.2 ARITHMETIC SEQUENCES. (a) 5, 9, 13, 17, 21,25 (b) 2, 2.5, 3, 3.5, 4, 4, (c) 8, 5, 2, - 1, - 4, - 7 Adding 4 Adding.5 Adding - 3 Arithmetic.
Chapter 1 The Art of Problem Solving © 2008 Pearson Addison-Wesley.
Arithmetic Sequences (Recursive Formulas). Vocabulary sequence – a set of numbers in a specific order. terms – the numbers in the sequence. arithmetic.
Lesson 4-4: Arithmetic and Geometric Sequences
Mid-Chapter Test Review
 2012 Pearson Education, Inc. Slide Chapter 1 The Art of Problem Solving.
Copyright © Cengage Learning. All rights reserved. CHAPTER 5 SEQUENCES, MATHEMATICAL INDUCTION, AND RECURSION SEQUENCES, MATHEMATICAL INDUCTION, AND RECURSION.
Chapter 7 Recursion 1CSCI 3333 Data Structures. 2 Recurrent Sequence A recursively defined sequence – First, certain initial values are specified  c.f.,
1 Section 5.5 Solving Recurrences Any recursively defined function ƒ with domain N that computes numbers is called a recurrence or recurrence relation.
RECURRENCE Sequence Recursively defined sequence
Sequences and Summations
Arithmetic Sequences Standard: M8A3 e. Use tables to describe sequences recursively and with a formula in closed form.
Fall 2015 COMP 2300 Discrete Structures for Computation Donghyun (David) Kim Department of Mathematics and Physics North Carolina Central University 1.
Homework Questions. Geometric Sequences In a geometric sequence, the ratio between consecutive terms is constant. This ratio is called the common ratio.
1 Topics Recursion sections 8.1 – Recursion A recursively defined sequence –First, certain initial values are specified –Later terms of the sequence.
Introduction to Algorithms Chapter 4: Recurrences.
Arithmetic Sequences In an arithmetic sequence, the difference between consecutive terms is constant. The difference is called the common difference. To.
CSE 2813 Discrete Structures Solving Recurrence Relations Section 6.2.
Solving Recurrence Relations by Iteration Lecture 36 Section 8.2 Mon, Apr 17, 2006.
RECURRENCE Sequence Recursively defined sequence
Coordinate Algebra Arithmetic and Geometric Sequences Learning Target: Students can use the explicit formula to find the n th term of a sequence.
Arithmetic and Geometric Sequences. Determine whether each sequence is arithmetic, geometric, or neither. Explain your reasoning. 1. 7, 13, 19, 25, …2.
11.3 – Geometric Sequences. What is a Geometric Sequence?  In a geometric sequence, the ratio between consecutive terms is constant. This ratio is called.
+ Lesson 3B: Geometric Sequences + Ex 1: Can you find a pattern and use it to guess the next term? A) 3, 9, 27, … B) 28, 14, 7, 3.5,... C) 1, 4, 9, 16,...
1 RECURRENCE 1. Sequence 2. Recursively defined sequence 3. Finding an explicit formula for recurrence relation.
Lesson 3A: Arithmetic Sequences Ex 1: Can you find a pattern and use it to guess the next term? A) 7, 10, 13, 16,... B) 14, 8, 2, − 4,... C) 1, 4, 9,
Warm up Write the exponential function for each table. xy xy
Ch.9 Sequences and Series Section 1 - Mathematical Patterns.
Pre-Calculus Section 8.1A Sequences and Series. Chapter 8: Sequences, Series, and Probability Sequences and series describe algebraic patterns. We will.
Unit 4: Sequences & Series 1Integrated Math 3Shire-Swift.
Advanced Algorithms Analysis and Design By Dr. Nazir Ahmad Zafar Dr Nazir A. Zafar Advanced Algorithms Analysis and Design.
Given an arithmetic sequence with
Review Find the explicit formula for each arithmetic sequence.
4-7 Arithmetic Sequences
Analysis of Algorithms CS 477/677
3.5 Arithmetic Sequences as Linear Functions
Unit 1. Sorting and Divide and Conquer
Splash Screen.
Copyright © Cengage Learning. All rights reserved.
11.3 – Geometric Sequences.
Coordinate Algebra Day 54
Solving Recurrence Relations by Iteration
Geometric Sequences.
Notes Over 11.5 Recursive Rules
Arithmetic Sequences In an arithmetic sequence, the difference between consecutive terms is constant. The difference is called the common difference. To.
Arithmetic Sequence A sequence of terms that have a common difference between them.
Solving Recurrence Relations by Iteration
Warm Up.
At the end of this session, learner will be able to:
Module 3 Arithmetic and Geometric Sequences
Write the recursive and explicit formula for the following sequence
Mathematical Induction
Unit 3: Linear and Exponential Functions
Arithmetic Sequence A sequence of terms that have a common difference between them.
Arithmetic Sequence A sequence of terms that have a common difference (d) between them.
Module 3 Arithmetic and Geometric Sequences
4-7 Arithmetic Sequences
1.6 Geometric Sequences Geometric sequence: a sequence in which terms are found by multiplying a preceding term by a nonzero constant.
Introduction to Arithmetic Sequences
Presentation transcript:

Discrete Structures Chapter 5: Sequences, Mathematical Induction, and Recursion 5.7 Solving Recurrence Relations by Iteration The keener one’s sense of logical deduction, the less often one makes hard and fast inferences. – Bertrand Russell, 1872 – 1970 Erickson 5.7 Solving Recurrence Relations by Iteration

5.7 Solving Recurrence Relations by Iteration Method of Iteration The most basic method for finding an explicit formula for a recursively defined sequence is iteration. It works as follows: Given a sequence a0, a1, a2, … defined by a recurrence relation and initial conditions, you start from the initial conditions and calculate successive terms of the sequence until you see a pattern developing. At that point, you create an explicit formula. Erickson 5.7 Solving Recurrence Relations by Iteration

5.7 Solving Recurrence Relations by Iteration Example – pg. 315 #4 Use iteration to guess an explicit formula for the sequence. Use formulas from Section 5.2 to simplify your answers whenever possible. Then use mathematical induction to verify the correctness of the formula you obtained. Erickson 5.7 Solving Recurrence Relations by Iteration

5.7 Solving Recurrence Relations by Iteration Example – pg. 315 #15 Use iteration to guess an explicit formula for the sequence. Use formulas from Section 5.2 to simplify your answers whenever possible. Then use mathematical induction to verify the correctness of the formula you obtained. Erickson 5.7 Solving Recurrence Relations by Iteration

5.7 Solving Recurrence Relations by Iteration Definition Geometric Sequence A sequence a0, a1, a2, … is called a geometric sequence iff there is a constant r s.t. It follows that, Erickson 5.7 Solving Recurrence Relations by Iteration

5.7 Solving Recurrence Relations by Iteration Definition Arithmetic Sequence A sequence a0, a1, a2, … is called an arithmetic sequence iff there is a constant d s.t. It follows that, Erickson 5.7 Solving Recurrence Relations by Iteration

5.7 Solving Recurrence Relations by Iteration Example – pg. 315 # 20 A runner targets herself to improve her time on a certain course by 3 seconds a day. If on day 0 she runs the course in 3 minutes, how fast must she run it on day 14 to stay on target? Erickson 5.7 Solving Recurrence Relations by Iteration

5.7 Solving Recurrence Relations by Iteration Example – pg. 315 # 25 A certain computer algorithm executes twice as many operations when it is run with an input size k as when it is run with an input size k – 1 (where k is an integer greater than 1). When the algorithm is run with an input size of 1, it executes seven operations. How many operations does it execute when it is run with an input of size 25? Erickson 5.7 Solving Recurrence Relations by Iteration