当前位置:网站首页>[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 ;
边栏推荐
- 手把手带你入门 API 开发
- Leetcode13. Roman numeral to integer (three solutions)
- MySQL user management
- 在iptables防火墙下开启vsftpd的端口
- On Lagrange interpolation and its application
- Why is WPA3 security of enterprise business so important?
- 人生还在迷茫?也许这些订阅号里有你需要的答案!
- LeetCode13.罗马数字转整数(三种解法)
- vs code 插件 koroFileHeader
- Simple use of unity pen XR grab
猜你喜欢

The largest matrix (H) in a brush 143 monotone stack 84 histogram

Bcvp developer community 2022 exclusive peripheral first bullet

Life is still confused? Maybe these subscription numbers have the answers you need!
![[RT thread] NXP rt10xx device driver framework -- pin construction and use](/img/75/b4f034bfe49409f76e7fd92758804e.png)
[RT thread] NXP rt10xx device driver framework -- pin construction and use

Redis:关于列表List类型数据的操作命令

静态程序分析(一)—— 大纲思维导图与内容介绍

Free data | new library online | cnopendata complete data of China's insurance intermediary outlets

Kubernetes resource object introduction and common commands (III)
![[RT thread] NXP rt10xx device driver framework -- Audio construction and use](/img/85/32a83eaa4b7f5b30d4d7c4f4c32791.png)
[RT thread] NXP rt10xx device driver framework -- Audio construction and use
![[RT thread] construction and use of --hwtimer of NXP rt10xx device driver framework](/img/df/a7719bcb00ff66e21f3a391ab94573.png)
[RT thread] construction and use of --hwtimer of NXP rt10xx device driver framework
随机推荐
Dagong 21 autumn "power plant electrical part" online operation 1 [standard answer] power plant electrical part
One brush 148 force deduction hot question-5 longest palindrome substring (m)
Redis: operation commands for list type data
跨境电商:外贸企业做海外社媒营销的优势
The way of wisdom (unity of knowledge and action)
远程办公之如何推进跨部门项目协作 | 社区征文
Online assignment 3 of mobile Internet technology in the 20th autumn of electronic technology [standard answer]
New features of C 10
Answer to the homework assessment of advanced English reading (II) of the course examination of Fuzhou Normal University in February 2022
One brush 142 monotone stack next larger element II (m)
Swm32 series Tutorial 4 port mapping and serial port application
Hands on in-depth learning notes (XIV) 3.7 Simple implementation of softmax regression
27. 输入3个整数,按从大到小的次序输出。要求用指针方法实现。
[2. Basics of Delphi grammar] 1 Identifiers and reserved words
數據分析必備的能力
[RT thread] NXP rt10xx device driver framework -- Audio construction and use
在iptables防火墙下开启vsftpd的端口
Cross border e-commerce: advantages of foreign trade enterprises in overseas social media marketing
LeetCode 1657. Determine whether the two strings are close
Thread pool: the most common and error prone component of business code