《具体数学》Lesson 1:Recurrent Problem学习笔记

本文搬运自本人高中时期CSDN博客,若图片加载不出来,可到原文查看:https://blog.csdn.net/zhangtingxiqwq/article/details/162397627

在这里插入图片描述

Recurrent Problem 递归问题

Mathematical Induction 数学归纳法

Every recurrence problem can be divided into 3 parts :
(1) Research on the small situations
(2) Give the recurrence relation (递归式)
(3) Make the closed-form (封闭形式)

Mathematical induction = Basis + Induction

We first assume the closed-form (3) is right for n1n-1 , and we use the recurrence relation (2) to proof the nn is also right. Apparently, the boundary is the small situations (1)

Example : The Tower of Hanoi

Recurrence relation :
在这里插入图片描述

Close-form:
在这里插入图片描述

Example:Lines in the plane

Recurrence relation:

在这里插入图片描述

Close-form:

在这里插入图片描述

Example: The Josephus Problem

Recurrence relation:

在这里插入图片描述

Close-form:

在这里插入图片描述

Binary & Rotate

Binary in Josephus Problem

Consider the Josephus Problem, if we write nn in base-2 notation :

在这里插入图片描述

And finally we find that:

在这里插入图片描述

So J(n)J(n) is nn rotate left by one bit .

Rotate

Thurthermore, we can solve all the recurrent problem in this bit. For:

在这里插入图片描述

We can find that:

在这里插入图片描述

The main varibles are d and c .

Repertoire method 成套方法

To solve the common problem: (We need its close-form)

在这里插入图片描述

We can assume that:

f(n)=A(n)α+B(n)β+C(n)γf(n)=A(n)\alpha + B(n)\beta + C(n)\gamma

Then we have 2 ways:

  • Way 1 : We solve A(n),B(n),C(n)A(n), B(n), C(n) separately, using the method Mathmatical Induction

  • Way 2 : Use Particular solution to make Equation

For each particular solution, we can substitute to know the particular paremeter , then we get an equation of A(n),B(n),C(n)

The numbers on particular solution we need equals to the numbers of paremeters


For example, in Josephus Problem, if we substitute 3 particular solution:

  • α=1,β=γ=0\alpha = 1, \beta = \gamma = 0 , this particular solution enables us to know the closed-form of A(n)A(n)

  • f(n)=1f(n)=1

  • f(n)=0f(n)=0

And we get the equations:

在这里插入图片描述

As we know the closed form of A(n)A(n) , we can solve fot B(n),C(n)B(n),C(n)

在这里插入图片描述