CSE 2813 Discrete Structures Recurrence Relations Section 6.1.

Slides:



Advertisements
Similar presentations
Advanced Counting Techniques
Advertisements

Chapter 8 Recursion. 8.1 Recursively Defined Sequences.
Chapter Recurrence Relations
Fall 2002CMSC Discrete Structures1 Now it’s Time for… RecurrenceRelations.
Chapter 6 Advanced Counting 6.1 Recurrence Relations.
BCT 2083 DISCRETE STRUCTURE AND APPLICATIONS
Week #10 – 28/30 October and 1 November 2002 Prof. Marie desJardins
CS 2210 (22C:19) Discrete Structures Advanced Counting
Chapter Recurrence Relations
CSE115/ENGR160 Discrete Mathematics 04/19/12 Ming-Hsuan Yang UC Merced 1.
CSE115/ENGR160 Discrete Mathematics 04/21/11 Ming-Hsuan Yang UC Merced 1.
Recursion.
1 Section 6.1 Recurrence Relations. 2 Recursive definition of a sequence Specify one or more initial terms Specify rule for obtaining subsequent terms.
6.Advanced Counting Techniques 1 Copyright M.R.K. Krishna Rao 2003 Ch 6. Recurrence Relations A recurrence relation for the sequence {a n } is an equation.
Strong Induction 2/27/121. Induction Rule 2/27/122.
Chapter 8 With Question/Answer Animations 1. Chapter Summary Applications of Recurrence Relations Solving Linear Recurrence Relations Homogeneous Recurrence.
Analysis of Recursive Algorithms October 29, 2014
Applied Discrete Mathematics Week 9: Relations
Advanced Counting Techniques
Jessie Zhao Course page: 1.
Chapter 8. Section 8. 1 Section Summary Introduction Modeling with Recurrence Relations Fibonacci Numbers The Tower of Hanoi Counting Problems Algorithms.
Advanced Counting Techniques CSC-2259 Discrete Structures Konstantin Busch - LSU1.
13.2 Recursive Definitions Objective 1) Provide the recursive definition for sequences; 2) Identify the type of a sequence from a recursive definition.
4.6.2 Exponential generating functions
Section 2.4. Section Summary Sequences. Examples: Geometric Progression, Arithmetic Progression Recurrence Relations Example: Fibonacci Sequence Summations.
Fall 2015 COMP 2300 Discrete Structures for Computation Donghyun (David) Kim Department of Mathematics and Physics North Carolina Central University 1.
Ch. 7: Advanced Counting Techniques
Recurrence Relation. Outline  What is a recurrence relation ?  Solving linear recurrence relations  Divide-and-conquer algorithms and recurrence relations.
Module #20 - Recurrences 1 Ch. 7 Recurrence Relations Rosen 6 th ed., §§7.1.
R. Johnsonbaugh Discrete Mathematics 7 th edition, 2009 Chapter 7 Recurrence Relations Instructor Tianping Shuai.
15.1 CompSci 102© Michael Frank Today’s topics Recurrence relationsRecurrence relations –Stating recurrences –LiHoReCoCo Reading: Sections Reading:
Sequences and Summations
Chapter 7 Advance Counting Techniques. Content Recurrence relations Generating function The principle of inclusion-exclusion.
Recurrence Relations: Selected Exercises
Section 2.4. Section Summary Sequences. Examples: Geometric Progression, Arithmetic Progression Recurrence Relations Example: Fibonacci Sequence Summations.
Module #1 - Logic 1 Based on Rosen, Discrete Mathematics & Its Applications. Prepared by (c) , Michael P. Frank and Modified By Mingwu Chen Recurrence.
Fall 2015 COMP 2300 Discrete Structures for Computation Donghyun (David) Kim Department of Mathematics and Physics North Carolina Central University 1.
Chapter 8 With Question/Answer Animations. Chapter Summary Applications of Recurrence Relations Solving Linear Recurrence Relations Homogeneous Recurrence.
CompSci 102 Discrete Math for Computer Science January 31, 2012 Prof. Rodger Slides modified from Rosen AB a b c d x y z.
after UCI ICS/Math 6A, Summer AdvancedCounting -1 Recurrence Relations (RRs) A “Recurrence Relation”
Sequences and Summations Section 2.4. Section Summary Sequences. – Examples: Geometric Progression, Arithmetic Progression Recurrence Relations – Example:
Advanced Counting Techniques CSC-2259 Discrete Structures Konstantin Busch - LSU1.
Recursion. The Fibonacci sequence presented in 1201 by Leonardo Fibonacci is one of the most famous. It looks like this 1, 1, 2, 3, 5, 8, 13, 21, 34,
1 Topics Recursion sections 8.1 – Recursion A recursively defined sequence –First, certain initial values are specified –Later terms of the sequence.
22C:19 Discrete Math Advanced Counting Fall 2010 Sukumar Ghosh.
CSE 2813 Discrete Structures Solving Recurrence Relations Section 6.2.
Agenda Lecture Content:  Recurrence Relations  Solving Recurrence Relations  Iteration  Linear homogenous recurrence relation of order k with constant.
8.1: Recurrence Relations We touched on them briefly before; we’ll dive deeper here. We aren’t going to focus on solving them, but you should know how.
Recurrence Relations. Outline Recurrence relationsSolving recurrence relationsRecurrence and Divide-and-conquer algorithmsGenerating functions
RECURRENCE Sequence Recursively defined sequence
Chapter 2 1. Chapter Summary Sets The Language of Sets - Sec 2.1 – Lecture 8 Set Operations and Set Identities - Sec 2.2 – Lecture 9 Functions and sequences.
Advanced Counting Techniques
Discrete Math For Computing II. Contact Information B. Prabhakaran Department of Computer Science University of Texas at Dallas Mail Station EC 31, PO.
Recurrence Relations: Selected Exercises. Copyright © Peter Cappello2 Exercise 10 (a) A person deposits $1,000 in an account that yields 9% interest compounded.
CMSC Discrete Structures
Advanced Counting Techniques
Applied Discrete Mathematics Week 11: Relations
Introduction to Recurrence Relations
Discrete Math (2) Haiming Chen Associate Professor, PhD
4.6.2 Exponential generating functions
CS 2210 Discrete Structures Advanced Counting
CMSC Discrete Structures
Recursion: The Mirrors
Applied Discrete Mathematics Week 7: Computation
4.7 Recurrence Relations P13, P100
1A Recursively Defined Functions
CMSC Discrete Structures
Recurrence Relations Discrete Structures.
Chapter 7 Advanced Counting Techniques
ICS 253: Discrete Structures I
Presentation transcript:

CSE 2813 Discrete Structures Recurrence Relations Section 6.1

CSE 2813 Discrete Structures Definition A recurrence relation for the sequence { a n } is an equation that expresses a n in terms of one or more of the previous terms of the sequence, namely, a 0, a 1,…, a n -1, for all integers n with n  n 0, where n 0 is a nonnegative integer. A sequence is called a solution of a recurrence relation if its terms satisfy the recurrence relation.

CSE 2813 Discrete Structures Recurrence Relations vs. Recursive Definitions So what is the difference? Recursive definitions can be used to solve counting problems. When they are used in this way, the rule for finding terms from those that precede them is called a recurrence relation.

CSE 2813 Discrete Structures Example Let { a n } be a sequence that satisfies the recurrence relation a n = a n -1  a n -2 for n = 2, 3, 4,… Suppose that a 0 = 3 and a 1 = 5. What are a 2 and a 3 ?

CSE 2813 Discrete Structures Example Consider the recurrence relation: a n = 2 a n -1  a n -2 for n = 2, 3, 4, … Show whether each of the following is a solution of this recurrence relation? a n = 3 n a n = 2 n a n = 5

CSE 2813 Discrete Structures Modeling with Recurrence Relations A person deposits $10,000 in a savings account at a bank yielding 11% per year with interest compounded annually. How much will be in the account after 30 years?

CSE 2813 Discrete Structures Rabbits and the Fibonacci Sequence A young pair of rabbits (one of each sex) is placed on an island. –A pair does not breed until they are 2 months old. –After they are 2 months old, each pair produces another pair each month. Find the number of pairs of rabbits on the island after n months, assuming that no rabbits ever die.

CSE 2813 Discrete Structures The Tower of Hanoi Find a recurrence relation to find the number of moves needed to solve the Tower of Hanoi problem with n disks. Tower of Hanoi

CSE 2813 Discrete Structures More Example Find a recurrence relation for the number of bit strings of length n that do not contain two consecutive 0s. Find a recurrence relation for the number of bit strings of length n that contain two consecutive 0s.

CSE 2813 Discrete Structures Exercises 1, 5, 9, 10, 11, 13, 24, 25, 27