当前位置:网站首页>[combinatorics] recursive equation (the problem of solving recursive equation with multiple roots | the problem is raised)
[combinatorics] recursive equation (the problem of solving recursive equation with multiple roots | the problem is raised)
2022-07-03 17:13:00 【Programmer community】
List of articles
- One 、 The problem of solving recurrence equations with multiple roots
- Two 、 Examples of recurrence equations with multiple roots
One 、 The problem of solving recurrence equations with multiple roots
There are some Recurrence equation Of Characteristic equation Of Characteristic root Yes Heavy root The situation of , The characteristic equation is solved Some of the characteristic roots are equal , So that makes Constants in the general solution cannot obtain unique values ;
Reference resources : 【 Combinatorial mathematics 】 Recurrence equation ( General definition | Structure theorem of general solution of recursive equation without multiple roots ) Two 、 Structure theorem of general solution of recursive equation without multiple roots
stay “ Structure theorem of general solution of recursive equation without multiple roots ” In the chapter , General understanding requirements In the system of equations The coefficient determinant is not equal to
0
0
0 ,
∏
1
≤
i
<
j
≤
k
(
q
i
−
q
k
)
≠
0
\prod\limits_{1 \leq i < j \leq k} ( q_i - q_k ) \not= 0
1≤i<j≤k∏(qi−qk)=0 , If there are two characteristic roots
q
i
,
q
k
q_i , q_k
qi,qk equal , The top " The coefficient determinant is not equal to
0
0
0" It cannot be achieved ;
If the characteristic equation has multiple roots , You can't use it “ Formula solution of recurrence equation without multiple roots ” Solve the recursive equation ;
For recursive equations with multiple roots , Needs to be Linearly independent elements All found , Linear combination , To get a general solution ;
A linear combination : Multiply a solution by
c
1
c_1
c1 , The other solution is multiplied by
c
2
c_2
c2 , The combination after adding ;
Two 、 Examples of recurrence equations with multiple roots
Recurrence equation :
H
(
n
)
−
4
H
(
n
−
1
)
+
4
H
(
n
−
2
)
=
0
H(n) - 4H(n-1) + 4H(n-2) = 0
H(n)−4H(n−1)+4H(n−2)=0
initial value :
H
(
0
)
=
0
,
H
(
1
)
=
1
H(0) = 0 , H(1) = 1
H(0)=0,H(1)=1
Complete process of solving recursive equations without multiple roots :
- 1 . Write the characteristic equation :
- ( 1 ) 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 ;
- ( 2 ) Number of terms of characteristic equation : determine Number of terms of characteristic equation , And The recurrence equation has the same number of terms ;
- ( 3 ) The characteristic equation is sub idempotent : The highest power is Number of terms of characteristic equation
−
1
-1
0
0
0 ;
−1 , Lowest power
- ( 4 ) Write There is no coefficient The characteristic equation of ;
- ( 5 ) The coefficients of the recursive equation will be deduced bit by bit Copy Into the characteristic equation ;
- 2 . Solution characteristic root : take The eigenvalue of the characteristic equation is solved ,
x
=
−
b
±
b
2
−
4
a
c
2
a
x = \cfrac{-b \pm \sqrt{b^2 - 4ac}}{2a}
x=2a−b±b2−4ac
- 3 . Construct the general solution of recurrence equation : structure
c
1
q
1
n
+
c
2
q
2
n
+
⋯
+
c
k
q
k
n
c_1q_1^n + c_2q_2^n + \cdots + c_kq_k^n
c1q1n+c2q2n+⋯+ckqkn Linear combination of forms , The linear combination is the solution of the recursive equation ;
- 4 . Find the constant in the general solution : Substitute the initial value of the recursive equation into the general solution , obtain
k
k
k individual
k
k
k Finite element equations , By solving the equations , Get the constant in the general solution ;
- ( 1 ) The constant is substituted into the general solution : Get the final solution of the recursive equation ;
Recurrence equation -> Characteristic equation -> Characteristic root -> general solution -> Substitute the initial value to find the general solution constant
Solve according to the above solution process :
1 . Characteristic equation :
( 1 ) The standard form of recurrence equation : Recursive equations are already in standard form ;
( 2 ) Number of terms of characteristic equation : And The number of terms of recurrence equation identical ,
3
3
3 term ;
( 3 ) The characteristic equation is sub idempotent : The highest power is The number of terms of the characteristic equation minus one ,
3
−
1
=
2
3-1=2
3−1=2 , Lowest power
0
0
0 ;
( 4 ) Write There is no coefficient The characteristic equation of :
x
2
+
x
+
1
=
0
x^2 + x + 1 = 0
x2+x+1=0
( 5 ) The coefficients of the recursive equation will be deduced bit by bit Copy Into the characteristic equation ;
1
x
2
+
(
−
4
)
x
+
(
4
)
1
=
0
1x^2 + (-4)x + (4)1 = 0
1x2+(−4)x+(4)1=0
x
2
−
4
x
+
4
=
0
x^2 - 4x + 4 = 0
x2−4x+4=0
2 . Solution characteristic root : take The eigenvalue of the characteristic equation is solved ,
x
=
−
b
±
b
2
−
4
a
c
2
a
x = \cfrac{-b \pm \sqrt{b^2 - 4ac}}{2a}
x=2a−b±b2−4ac
x
=
4
±
16
−
16
2
=
2
x=\cfrac{4 \pm \sqrt{16 - 16}}{2} = 2
x=24±16−16=2
Both characteristic roots are
2
2
2 ,
q
1
=
2
,
q
2
=
2
q_1=2, q_2 = 2
q1=2,q2=2 ;
3 . Construct the general solution of recurrence equation : structure
c
1
q
1
n
+
c
2
q
2
n
+
⋯
+
c
k
q
k
n
c_1q_1^n + c_2q_2^n + \cdots + c_kq_k^n
c1q1n+c2q2n+⋯+ckqkn Linear combination of forms , The linear combination is the solution of the recursive equation ;
The general solution is :
H
(
n
)
=
c
1
2
n
+
c
2
2
n
=
c
2
n
H(n) = c_12^n + c_22^n = c2^n
H(n)=c12n+c22n=c2n
4 . Find the constant in the general solution : Substitute the initial value of the recursive equation into the general solution , obtain
k
k
k individual
k
k
k Finite element equations , By solving the equations , Get the constant in the general solution ;
take
c
2
n
c2^n
c2n Substitute into
x
2
−
4
x
+
4
=
0
x^2 - 4x + 4 = 0
x2−4x+4=0 In the characteristic equation ,
c
c
c There is no solution ;
If Two characteristic roots All are
2
2
2 , Linear correlation , Right now It is impossible to determine
c
1
,
c
2
c_1, c_2
c1,c2 Undetermined constant ;
Observe
n
2
n
n2^n
n2n Is the solution , The solution and
2
n
2^n
2n Linearly independent , Linearly combine the above two solutions ,
c
1
n
2
n
+
c
2
2
n
c_1n2^n + c_22^n
c1n2n+c22n A linear combination , Is the solution of a recursive equation ,
Substitute the initial value into , You can work out
c
1
,
c
2
c_1, c_2
c1,c2 The value of the constant ;
边栏推荐
- [try to hack] active detection and concealment technology
- How SVN views modified file records
- Thread pool: the most common and error prone component of business code
- 比亚迪、长城混动市场再“聚首”
- SVN完全备份svnadmin hotcopy
- Depth first search of graph
- Recommendation of good books on learning QT programming
- Vs code plug-in korofileheader
- Simple use of unity pen XR grab
- 跨境电商:外贸企业做海外社媒营销的优势
猜你喜欢
![[error reporting] omp: error 15: initializing libiomp5md dll, but found libiomp5md. dll already initialized.](/img/a0/4fc0e0741aad2885873e60f2af3387.jpg)
[error reporting] omp: error 15: initializing libiomp5md dll, but found libiomp5md. dll already initialized.

Why is WPA3 security of enterprise business so important?

Recommendation of good books on learning QT programming

免费数据 | 新库上线 | CnOpenData中国保险中介机构网点全集数据

聊聊接口优化的几个方法
![Luogu: p1155 [noip2008 improvement group] double stack sorting (bipartite graph, simulation)](/img/be/4ef38f711e7319a2cc83db2bee3a07.jpg)
Luogu: p1155 [noip2008 improvement group] double stack sorting (bipartite graph, simulation)

線程池:業務代碼最常用也最容易犯錯的組件

New features of C 10

UCORE overview

Talk about several methods of interface optimization
随机推荐
Static program analysis (I) -- Outline mind map and content introduction
One brush 148 force deduction hot question-5 longest palindrome substring (m)
【RT-Thread】nxp rt10xx 设备驱动框架之--Pin搭建和使用
Execute script unrecognized \r
Simple configuration of postfix server
Network security web penetration technology
Leetcode: lucky number in matrix
Assignment examination questions of advanced English (III) for the course examination of Fujian Normal University in February 2022
Assembly instance analysis -- screen display in real mode
Luogu: p1155 [noip2008 improvement group] double stack sorting (bipartite graph, simulation)
How to judge the region of an IP through C?
图之深度优先搜索
浅谈拉格朗日插值及其应用
PHP online confusion encryption tutorial sharing + basically no solution
MySQL user management
ucore概述
匯編實例解析--實模式下屏幕顯示
A day's work list of an ordinary programmer
Dagong 21 autumn "power plant electrical part" online operation 1 [standard answer] power plant electrical part
网络硬盘NFS的安装与配置