Combninatorial Mathematics 2

download Combninatorial Mathematics 2

of 67

Transcript of Combninatorial Mathematics 2

  • 8/10/2019 Combninatorial Mathematics 2

    1/67

  • 8/10/2019 Combninatorial Mathematics 2

    2/67

    2 Chapter 2 Solving Recurrences

  • 8/10/2019 Combninatorial Mathematics 2

    3/67

    Section 2.1 Types of Recurrences 3

    2.1 TYPES OF RECURRENCES

  • 8/10/2019 Combninatorial Mathematics 2

    4/67

  • 8/10/2019 Combninatorial Mathematics 2

    5/67

    Section 2.1 Types of Recurrences 5

    Variable Coef cients

  • 8/10/2019 Combninatorial Mathematics 2

    6/67

    6 Chapter 2 Solving Recurrences

    Fig 2.1.1

    Table 2.1.1

  • 8/10/2019 Combninatorial Mathematics 2

    7/67

    Section 2.1 Types of Recurrences 7

  • 8/10/2019 Combninatorial Mathematics 2

    8/67

    8 Chapter 2 Solving Recurrences

    Some Non-linear Recurrences

  • 8/10/2019 Combninatorial Mathematics 2

    9/67

    Section 2.2 Finding an OGF 9

    2.2 FINDING AN OGF

  • 8/10/2019 Combninatorial Mathematics 2

    10/67

  • 8/10/2019 Combninatorial Mathematics 2

    11/67

    Section 2.2 Finding an OGF 11

  • 8/10/2019 Combninatorial Mathematics 2

    12/67

    12 Chapter 2 Solving Recurrences

  • 8/10/2019 Combninatorial Mathematics 2

    13/67

    Section 2.2 Finding an OGF 13

  • 8/10/2019 Combninatorial Mathematics 2

    14/67

    14 Chapter 2 Solving Recurrences

  • 8/10/2019 Combninatorial Mathematics 2

    15/67

    Section 2.3 Partial Fractions 15

    2.3 PARTIAL FRACTIONS

  • 8/10/2019 Combninatorial Mathematics 2

    16/67

    16 Chapter 2 Solving Recurrences

  • 8/10/2019 Combninatorial Mathematics 2

    17/67

    Section 2.3 Partial Fractions 17

  • 8/10/2019 Combninatorial Mathematics 2

    18/67

    18 Chapter 2 Solving Recurrences

  • 8/10/2019 Combninatorial Mathematics 2

    19/67

    Section 2.4 Characteristic Roots 19

    2.4 CHARACTERISTIC ROOTS

    Characteristic Equation

  • 8/10/2019 Combninatorial Mathematics 2

    20/67

    20 Chapter 2 Solving Recurrences

  • 8/10/2019 Combninatorial Mathematics 2

    21/67

    Section 2.4 Characteristic Roots 21

    Alternative Initial Values

  • 8/10/2019 Combninatorial Mathematics 2

    22/67

    22 Chapter 2 Solving Recurrences

    Repeated Roots

  • 8/10/2019 Combninatorial Mathematics 2

    23/67

    Section 2.4 Characteristic Roots 23

    Non-homogeneous Equations

  • 8/10/2019 Combninatorial Mathematics 2

    24/67

    24 Chapter 2 Solving Recurrences

  • 8/10/2019 Combninatorial Mathematics 2

    25/67

    Section 2.4 Characteristic Roots 25

  • 8/10/2019 Combninatorial Mathematics 2

    26/67

  • 8/10/2019 Combninatorial Mathematics 2

    27/67

    Section 2.4 Characteristic Roots 27

  • 8/10/2019 Combninatorial Mathematics 2

    28/67

    28 Chapter 2 Solving Recurrences

    Complex Roots

  • 8/10/2019 Combninatorial Mathematics 2

    29/67

    Section 2.4 Characteristic Roots 29

  • 8/10/2019 Combninatorial Mathematics 2

    30/67

    30 Chapter 2 Solving Recurrences

    2.5 SIMULTANEOUS RECURSIONS

    Fig 2.5.1

  • 8/10/2019 Combninatorial Mathematics 2

    31/67

    Section 2.5 Simultaneous Recursions 31

    Fibonacci Rabbits

  • 8/10/2019 Combninatorial Mathematics 2

    32/67

    32 Chapter 2 Solving Recurrences

    Ubiquitousness of the Fibonacci Seq

    Fig 2.5.2

  • 8/10/2019 Combninatorial Mathematics 2

    33/67

    Section 2.5 Simultaneous Recursions 33

    Fig 2.5.3

    Solving the Fibonacci Recurrence

  • 8/10/2019 Combninatorial Mathematics 2

    34/67

    34 Chapter 2 Solving Recurrences

  • 8/10/2019 Combninatorial Mathematics 2

    35/67

    Section 2.5 Simultaneous Recursions 35

  • 8/10/2019 Combninatorial Mathematics 2

    36/67

    36 Chapter 2 Solving Recurrences

    Some Tiling Problems

    Fig 2.5.4

  • 8/10/2019 Combninatorial Mathematics 2

    37/67

    Section 2.5 Simultaneous Recursions 37

  • 8/10/2019 Combninatorial Mathematics 2

    38/67

    38 Chapter 2 Solving Recurrences

    2.6 FIBO NUMBER IDENTITIES

    Forward-Shift and Subscript Multipliers

  • 8/10/2019 Combninatorial Mathematics 2

    39/67

    Section 2.6 Fibo Number Identities 39

  • 8/10/2019 Combninatorial Mathematics 2

    40/67

    40 Chapter 2 Solving Recurrences

    Cassinis Identity

  • 8/10/2019 Combninatorial Mathematics 2

    41/67

    Section 2.6 Fibo Number Identities 41

  • 8/10/2019 Combninatorial Mathematics 2

    42/67

  • 8/10/2019 Combninatorial Mathematics 2

    43/67

    Section 2.6 Fibo Number Identities 43

  • 8/10/2019 Combninatorial Mathematics 2

    44/67

    44 Chapter 2 Solving Recurrences

    2.7 NON-CONSTANT COEFFICIENTS

    A Reduction Strategy

  • 8/10/2019 Combninatorial Mathematics 2

    45/67

    Section 2.7 Non-Constant Coef cients 45

  • 8/10/2019 Combninatorial Mathematics 2

    46/67

    46 Chapter 2 Solving Recurrences

  • 8/10/2019 Combninatorial Mathematics 2

    47/67

    Section 2.7 Non-Constant Coef cients 47

    Sum in a Recurrence: Quicksort

  • 8/10/2019 Combninatorial Mathematics 2

    48/67

  • 8/10/2019 Combninatorial Mathematics 2

    49/67

    Section 2.7 Non-Constant Coef cients 49

    Analysis of the Time to Quicksort

  • 8/10/2019 Combninatorial Mathematics 2

    50/67

    50 Chapter 2 Solving Recurrences

  • 8/10/2019 Combninatorial Mathematics 2

    51/67

  • 8/10/2019 Combninatorial Mathematics 2

    52/67

    52 Chapter 2 Solving Recurrences

    Con rming Small Cases

  • 8/10/2019 Combninatorial Mathematics 2

    53/67

    Section 2.8 Divide-&-Conquer Relations 53

    2.8 DIVIDE-&-CONQUER RELATIONS

    Binary Search

  • 8/10/2019 Combninatorial Mathematics 2

    54/67

    54 Chapter 2 Solving Recurrences

  • 8/10/2019 Combninatorial Mathematics 2

    55/67

  • 8/10/2019 Combninatorial Mathematics 2

    56/67

    56 Chapter 2 Solving Recurrences

    Algorithm 2.8.1:

    Analysis of the Time for a Binary Search

  • 8/10/2019 Combninatorial Mathematics 2

    57/67

  • 8/10/2019 Combninatorial Mathematics 2

    58/67

    58 Chapter 2 Solving Recurrences

  • 8/10/2019 Combninatorial Mathematics 2

    59/67

  • 8/10/2019 Combninatorial Mathematics 2

    60/67

    60 Chapter 2 Solving Recurrences

    Recursive Mergesort

    Algorithm 2.8.3:

    Analysis of the Time or a Mergesort

  • 8/10/2019 Combninatorial Mathematics 2

    61/67

    Section 2.8 Divide-&-Conquer Relations 61

  • 8/10/2019 Combninatorial Mathematics 2

    62/67

    62 Chapter 2 Solving Recurrences

    The Josephus Recurrence

    Fig 2.8.1

  • 8/10/2019 Combninatorial Mathematics 2

    63/67

  • 8/10/2019 Combninatorial Mathematics 2

    64/67

  • 8/10/2019 Combninatorial Mathematics 2

    65/67

    Section 2.8 Divide-&-Conquer Relations 65

    Fig 2.8.4

  • 8/10/2019 Combninatorial Mathematics 2

    66/67

    66 Chapter 2 Solving Recurrences

  • 8/10/2019 Combninatorial Mathematics 2

    67/67

    Section 2.8 Divide-&-Conquer Relations 67