当前位置:网站首页>[combinatorics] recursive equation (characteristic equation and characteristic root | example of characteristic equation | root formula of monadic quadratic equation)
[combinatorics] recursive equation (characteristic equation and characteristic root | example of characteristic equation | root formula of monadic quadratic equation)
2022-07-03 16:53:00 【Programmer community】
List of articles
- One 、 Characteristic equation and characteristic root
- Two 、 Characteristic equation and characteristic root Example ( important )
One 、 Characteristic equation and characteristic root
Standard form of linear homogeneous recurrence equation with constant coefficients :
{
H
(
n
)
−
a
1
H
(
n
−
1
)
−
a
2
H
(
n
−
2
)
−
⋯
−
a
k
H
(
n
−
k
)
=
0
H
(
0
)
=
b
0
,
H
(
1
)
=
b
1
,
H
(
2
)
=
b
2
,
⋯
,
H
(
k
−
1
)
=
b
k
−
1
\begin{cases} H(n) - a_1H(n-1) - a_2H(n-2) - \cdots - a_kH(n-k) = 0 \\\\ H(0) = b_0 , H(1) = b_1 , H(2) = b_2 , \cdots , H(k-1) = b_{k-1} \end{cases}
⎩⎪⎨⎪⎧H(n)−a1H(n−1)−a2H(n−2)−⋯−akH(n−k)=0H(0)=b0,H(1)=b1,H(2)=b2,⋯,H(k−1)=bk−1
Constant coefficient It refers to the sequence of numbers Before item coefficient
a
1
,
a
2
,
⋯
,
a
k
a_1 , a_2 , \cdots , a_k
a1,a2,⋯,ak It's all constant ,
a
k
≠
0
a_k \not=0
ak=0 ;
b
0
,
b
1
,
b
2
,
⋯
,
b
k
−
1
b_0 , b_1, b_2 , \cdots , b_{k-1}
b0,b1,b2,⋯,bk−1 yes Recursive equation
k
−
1
k-1
k−1 An initial value ;
Write the characteristic equation :
x
k
−
a
1
x
k
−
1
−
⋯
−
a
k
=
0
x^k - a_1x^{k-1} - \cdots - a^k = 0
xk−a1xk−1−⋯−ak=0
Characteristic equation 、 The number of terms of the recursive equation 、 The sub idempotent of the characteristic equation :
Characteristic equation 、 The number of terms of the recursive equation : Number of characteristic equation terms And Constant coefficient linear homogeneous The number of recursion equation terms is the same , Yes
k
+
1
k+1
k+1 term ;
The sub idempotent of the characteristic equation : All in all
k
+
1
k+1
k+1 term , Characteristic equation term
x
x
x Power of power from
k
k
k To
0
0
0 , All in all
k
+
1
k + 1
k+1 term ;
Recurrence equation And Characteristic equation relation :
x
k
x^k
xk The coefficient before
1
1
1 Corresponding
H
(
n
)
H(n)
H(n) Coefficient before item
1
1
1 ;
x
k
−
1
x^{k-1}
xk−1 The coefficient before
−
a
1
-a_1
−a1 Corresponding
H
(
n
−
1
)
H(n-1)
H(n−1) Coefficient before item
−
a
1
-a_1
−a1 ;
⋮
\vdots
⋮
x
0
x^{0}
x0 The coefficient before
−
a
k
-a_k
−ak Corresponding
H
(
n
−
k
)
H(n-k)
H(n−k) Coefficient before item
−
a
k
-a_k
−ak ;
from Recurrence equation :
H
(
n
)
−
a
1
H
(
n
−
1
)
−
a
2
H
(
n
−
2
)
−
⋯
−
a
k
H
(
n
−
k
)
=
0
H(n) - a_1H(n-1) - a_2H(n-2) - \cdots - a_kH(n-k) = 0
H(n)−a1H(n−1)−a2H(n−2)−⋯−akH(n−k)=0
Can export
1
1
1 element
k
k
k Sub characteristic equation :
x
k
−
a
1
x
k
−
1
−
⋯
−
a
k
=
0
x^k - a_1x^{k-1} - \cdots - a^k = 0
xk−a1xk−1−⋯−ak=0
The
1
1
1 element
k
k
k Sub characteristic equation be called Of the original recursive equation Characteristic equation ;
The
1
1
1 element
k
k
k Sub characteristic equation Yes
k
k
k A root , be called Recurrence equation The characteristic root of the ;
From recurrence equation to characteristic equation ( a key ) :
- The standard form of recurrence equation : Write the recurrence equation Standard form , All items are to the left of the equal sign , On the right is
0
0
0 ;
- Number of terms of characteristic equation : determine Number of terms of characteristic equation , And The recurrence equation has the same number of terms ;
- The characteristic equation is sub idempotent : The highest power is Number of terms of characteristic equation
−
1
-1
0
0
0 ;
−1 , Lowest power
- Write There is no coefficient The characteristic equation of ;
- The coefficients of the recursive equation will be deduced bit by bit Copy Into the characteristic equation ;
Solve the above characteristic equation , You can get the characteristic root , Generally, it is a quadratic equation with one variable ;
Univariate quadratic equation form
a
x
2
+
b
x
+
c
=
0
ax^2 + bx + c = 0
ax2+bx+c=0
The solution is :
x
=
−
b
±
b
2
−
4
a
c
2
a
x = \cfrac{-b \pm \sqrt{b^2 - 4ac}}{2a}
x=2a−b±b2−4ac
Two 、 Characteristic equation and characteristic root Example ( important )
1 . Fibonacci sequence example :
( 1 ) Fibonacci sequence :
1
,
1
,
2
,
3
,
5
,
8
,
13
,
⋯
1 , 1 , 2 , 3 , 5 , 8 , 13 , \cdots
1,1,2,3,5,8,13,⋯
( 2 ) Recurrence equation :
F
(
n
)
=
F
(
n
−
1
)
+
F
(
n
−
2
)
F(n) = F(n-1) + F(n-2)
F(n)=F(n−1)+F(n−2)
describe : The first
n
n
n Item equal to
n
−
1
n-1
n−1 term and The first
n
−
2
n-2
n−2 Sum of items ;
Such as : The first
4
4
4 Item value
F
(
4
)
=
5
F(4) = 5
F(4)=5 , Is equal to
The first
4
−
1
=
3
4-1=3
4−1=3 Item value
F
(
4
−
1
)
=
F
(
3
)
=
3
F(4-1)=F(3) = 3
F(4−1)=F(3)=3
add The first
4
−
2
=
2
4-2=2
4−2=2 Item value
F
(
4
−
2
)
=
F
(
2
)
=
2
F(4-2) = F(2) =2
F(4−2)=F(2)=2 ;
( 3 ) initial value :
F
(
0
)
=
1
,
F
(
1
)
=
1
F(0) = 1 , F(1) = 1
F(0)=1,F(1)=1
according to
F
(
0
)
=
1
,
F
(
1
)
=
1
F(0) = 1, F(1) = 1
F(0)=1,F(1)=1 You can calculate
F
(
2
)
F(2)
F(2) , according to
F
(
1
)
,
F
(
2
)
F(1),F(2)
F(1),F(2) You can calculate
F
(
3
)
F(3)
F(3) , according to
F
(
2
)
F
(
3
)
F(2)F(3)
F(2)F(3) Sure Calculation
F
(
4
)
F(4)
F(4) ,
⋯
\cdots
⋯ , according to
F
(
n
−
2
)
,
F
(
n
−
1
)
F(n-2) , F(n-1)
F(n−2),F(n−1) You can calculate
F
(
n
)
F(n)
F(n) ;
2 . Write the characteristic equation of Fibonacci sequence :
Recurrence equation :
F
(
n
)
=
F
(
n
−
1
)
+
F
(
n
−
2
)
F(n) = F(n-1) + F(n-2)
F(n)=F(n−1)+F(n−2)
( 1 ) The standard form of recurrence equation :
F
(
n
)
−
F
(
n
−
1
)
−
F
(
n
−
2
)
=
0
F(n) - F(n-1) - F(n-2) = 0
F(n)−F(n−1)−F(n−2)=0
( 2 ) Recursive equation writing :
① First determine the number of terms of the characteristic equation : The same number of terms as the recursive equation ,
3
3
3 term ;
② In determining the characteristic equation
x
x
x Power of power : from
3
−
1
=
2
3-1=2
3−1=2 To
0
0
0 ;
③ Write a recurrence equation without coefficients :
x
2
+
x
1
+
x
0
=
0
x^2 + x^1 + x^0 = 0
x2+x1+x0=0
④ Filling factor : Then the characteristic equation without coefficients
x
2
+
x
1
+
x
0
=
0
x^2 + x^1 + x^0 = 0
x2+x1+x0=0 And
F
(
n
)
−
F
(
n
−
1
)
−
F
(
n
−
2
)
=
0
F(n) - F(n-1) - F(n-2) = 0
F(n)−F(n−1)−F(n−2)=0 The coefficients of corresponding bits are filled into the characteristic equation :
x
2
x^2
x2 The coefficient before Corresponding
F
(
n
)
F(n)
F(n) Coefficient before item
1
1
1 ;
x
1
x^1
x1 The coefficient before Corresponding
F
(
n
−
1
)
F(n-1)
F(n−1) Coefficient before item
−
1
-1
−1 ;
x
0
x^0
x0 The coefficient before Corresponding
F
(
n
−
2
)
F(n-2)
F(n−2) Coefficient before item
−
1
-1
−1 ;
Then the final The characteristic equation is
1
x
2
+
(
−
1
)
x
1
+
(
−
1
)
x
0
=
0
1 x^2 + (-1)x^1 + (-1)x^0 = 0
1x2+(−1)x1+(−1)x0=0 , It is reduced to :
x
2
−
x
−
1
=
0
x^2 - x - 1 = 0
x2−x−1=0
The characteristic root of the characteristic equation is : The solution of the above equation is the characteristic root , Generally, it is a quadratic equation with one variable ;
x
=
1
±
5
2
x = \cfrac{1 \pm \sqrt{5}}{2}
x=21±5
Reference resources : Univariate quadratic equation form
a
x
2
+
b
x
+
c
=
0
ax^2 + bx + c = 0
ax2+bx+c=0
The solution is :x
=
−
b
±
b
2
−
4
a
c
2
a
x = \cfrac{-b \pm \sqrt{b^2 - 4ac}}{2a}
x=2a−b±b2−4ac
边栏推荐
- 智慧之道(知行合一)
- What is the pledge pool and how to pledge?
- Hong Kong Polytechnic University | data efficient reinforcement learning and adaptive optimal perimeter control of network traffic dynamics
- What is the material of 13mnnimor? 13mnnimor steel plate for medium and low temperature pressure vessels
- 深入理解 SQL 中的 Grouping Sets 语句
- Central South University | through exploration and understanding: find interpretable features with deep reinforcement learning
- Zebras are recognized as dogs, and Stanford found the reason why AI made mistakes
- What material is sa537cl2? Analysis of mechanical properties of American standard container plate
- PHP secondary domain name session sharing scheme
- Mongodb installation and basic operation
猜你喜欢
一台服务器最大并发 tcp 连接数多少?65535?
线程池执行定时任务
CC2530 common registers for timer 1
MySQL converts comma separated attribute field data from column to row
建立自己的网站(23)
Thread pool executes scheduled tasks
Visual SLAM algorithms: a survey from 2010 to 2016
Mysql database -dql
Netease UI automation test exploration: airtest+poco
Add color to the interface automation test framework and realize the enterprise wechat test report
随机推荐
Data driving of appium framework for mobile terminal automated testing
To resist 7-Zip, list "three sins"? Netizen: "is the third key?"
13mnnimo5-4 German standard steel plate 13MnNiMo54 boiler steel 13MnNiMo54 chemical properties
QT serial port UI design and solution to display Chinese garbled code
What is the material of 13mnnimor? 13mnnimor steel plate for medium and low temperature pressure vessels
消息队列消息丢失和消息重复发送的处理策略
function overloading
[sword finger offer] 58 - I. flip the word order
Nifi from introduction to practice (nanny level tutorial) - flow
[JDBC] API parsing
[Jianzhi offer] 58 - ii Rotate string left
ucore概述
Golang decorator mode and its use in NSQ
What is the maximum number of concurrent TCP connections for a server? 65535?
Visual SLAM algorithms: a survey from 2010 to 2016
UCORE overview
How to allow remote connection to MySQL server on Linux system?
MySQL user management
mysql用户管理
【剑指 Offer 】64. 求1+2+…+n