Docsity
Docsity

Prepare for your exams
Prepare for your exams

Study with the several resources on Docsity


Earn points to download
Earn points to download

Earn points by helping other students or get them with a premium plan


Guidelines and tips
Guidelines and tips

Recursive Sequences - Discrete Mathematics - Lecture Slides, Slides of Discrete Mathematics

During the study of discrete mathematics, I found this course very informative and applicable.The main points in these lecture slides are:Recursive Sequences, Recurrence Relation, Tower of Hanoi Problem, Compound Interest, Fibonacci Numbers, Solving Recurrences, Explicit Formula, Second-Order Homogenous Recurrences, Distinct Roots Case, Classes of Functions

Typology: Slides

2012/2013

Uploaded on 04/27/2013

atasi
atasi 🇮🇳

4.6

(32)

136 documents

1 / 8

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
Discrete Mathematics
Lecture 8
Docsity.com
pf3
pf4
pf5
pf8

Partial preview of the text

Download Recursive Sequences - Discrete Mathematics - Lecture Slides and more Slides Discrete Mathematics in PDF only on Docsity!

Discrete Mathematics

Lecture 8

Recursive Sequences

  • A recurrence relation for a sequence a 0 , a 1 , a 2 , … is a formula that relates each term ak to certain collection of its predecessors. Each recurrence sequence needs initial conditions that make it well-defined
  • Famous recurrences: algebraic and geometric sequences, factorial, Fibonacci numbers
  • Tower of Hanoi problem
  • Compound interest

Solving Recurrences

  • Iteration method
  • Telescoping
  • Range transformation
  • Domain transformation
  • Recurrences involving sum

Exercises

  • Find an explicit formula for:

x (^) k = 3x (^) k-1 + k with x 1 = 1 wk = wk-2 + k with w 1 = 1, w 2 = 2 u (^) k = u (^) k-2 * u (^) k-1 with u 0 = u 1 = 2

Classes of Functions

  • Constants
  • Polynoms: linear, quadratic
  • Exponents
  • Logarithms
  • Functions in between
  • Relationship between different classes

O-notation

  • Function f(n) is of order g(n), written f = O(g),

when there exists number M such that there exists number n 0 so that for all n > n 0 we have f(n) <= M

  • g(n)
  • If f is O(g), then g is Ω(f), or in other words, when

for all numbers M and for all numbers no, there exists n > n 0 such that f(n) > M * g(n)

  • If f is O(g) and g is O(f), then we say that f is Θ(g)

or that f and g are of the same order