当前位置:网站首页>[combinatorics] recursive equation (constant coefficient linear homogeneous recursive equation | constant coefficient, linear, homogeneous concept description | constant coefficient linear homogeneous
[combinatorics] recursive equation (constant coefficient linear homogeneous recursive equation | constant coefficient, linear, homogeneous concept description | constant coefficient linear homogeneous
2022-07-03 16:48:00 【Programmer community】
List of articles
- One 、 Linear homogeneous recurrence equation with constant coefficients
- Two 、 Constant coefficient 、 linear 、 Homogeneous Concept description
- 3、 ... and 、 The formula solution of linear homogeneous recurrence equation with constant coefficients
- Four 、 Outline of the formula solution of linear homogeneous recurrence equation with constant coefficients
One 、 Linear homogeneous recurrence equation with constant coefficients
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
)
=
b
k
\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) = b_k \end{cases}
⎩⎪⎨⎪⎧H(n)−a1H(n−1)−a2H(n−2)−⋯−akH(n−k)=0H(0)=b0,H(1)=b1,H(2)=b2,⋯,H(k)=bk
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 ;
Homogeneous It refers to moving the sequence item to the left , The right term is equal to
0
0
0 ;
The above is called
k
k
k rank Linear homogeneous recurrence equation with constant coefficients ;
b
0
,
b
1
,
b
2
,
⋯
,
b
k
b_0 , b_1, b_2 , \cdots , b_k
b0,b1,b2,⋯,bk yes Recursive equation
k
k
k An initial value ;
Two 、 Constant coefficient 、 linear 、 Homogeneous Concept description
Constant coefficient 、 linear 、 Homogeneous Concept description :
1 . Constant coefficient concept : Constant coefficient refers to
T
(
n
)
,
T
(
n
−
1
)
T(n) , T(n-1)
T(n),T(n−1) these Coefficient before term , It's all constant , Such as
2
T
(
n
−
1
)
2 T(n-1)
2T(n−1) ,
T
(
n
−
1
)
T(n-1)
T(n−1) The coefficient before the term is constant
2
2
2 ;
The recurrence equation introduced in chestnut before , Such as
- Hanoi Tower recursive equation
T
(
n
)
=
2
T
(
n
−
1
)
+
1
T(n) =2 T(n-1) + 1
T(n)=2T(n−1)+1
- Insert sort recurrence equation
W
(
n
)
=
W
(
n
−
1
)
+
n
−
1
W(n) = W(n-1) + n-1
W(n)=W(n−1)+n−1
All are Constant coefficient linear recurrence equation , Not homogeneous ;
2 . Linear concept : The first
n
n
n Items are the previous items
n
−
1
n-1
n−1 Of A linear combination , There is no exponential relationship , So it becomes linear ;
3 . Homogeneous concept : stay
T
(
n
)
T(n)
T(n) There are no other elements besides the item , Only items , Above
T
(
n
)
=
2
T
(
n
−
1
)
+
1
T(n) =2 T(n-1) + 1
T(n)=2T(n−1)+1 There is a constant beyond the term
1
1
1 , The recursive equation is not homogeneous ; If change to
T
(
n
)
=
2
T
(
n
−
1
)
T(n) =2 T(n-1)
T(n)=2T(n−1) , The recursive equation is homogeneous ;
3、 ... and 、 The formula solution of linear homogeneous recurrence equation with constant coefficients
1 . Characteristic root 、 general solution 、 Special solution
Characteristic root : According to the original Recurrence equation , Find out Characteristic root ;
general solution : utilize Characteristic root , Write general solution ;
Special solution : according to general solution , Substitute into the initial value of the recursive equation , Get... For these initial values Special solution , That is, the solution of the sequence ,
2 . The relationship between general solution and special solution :
Recurrence equation and initial value : The dependence of recurrence equation , Recursive equations express more than one sequence , The recurrence equation is Express an infinite sequence of numbers with the same dependencies , Different initial values of recurrence equations , Corresponding to different series , Recurrence equation and The initial value can only determine a sequence ;
Recurrence equation 、 Understand the relationship : general solution It's actually a recursive equation Corresponding Infinite series The common solution of , and A sequence cannot be uniquely determined ;
Special solution 、 Sequence relation : Some undetermined coefficients of the general solution , It should be determined by the initial value , The general solution is substituted into the initial value , Got Special solution , To uniquely determine a given sequence ;
Four 、 Outline of the formula solution of linear homogeneous recurrence equation with constant coefficients
Outline of the solution of recurrence equation formula :
- Characteristic equation and characteristic root
- The relation between the solution of recurrence equation and characteristic root
- Linear properties of solutions
- General solution structure without multiple roots
- There is a general solution structure under double roots
边栏推荐
- [solved] access denied for user 'root' @ 'localhost' (using password: yes)
- LeetCode 1656. Design ordered flow
- [sword finger offer] 58 - I. flip the word order
- [combinatorics] recursive equation (outline of recursive equation content | definition of recursive equation | example description of recursive equation | Fibonacci Series)
- Construction practice camp - graduation summary of phase 6
- 网络安全web渗透技术
- Meituan side: why does thread crash not cause JVM crash
- 消息队列消息丢失和消息重复发送的处理策略
- (Supplement) double pointer topic
- 智慧之道(知行合一)
猜你喜欢
CC2530 common registers for port interrupts
关于视觉SLAM的最先进技术的调查-A survey of state-of-the-art on visual SLAM
CC2530 common registers for watchdog
Recommendation of good books on learning QT programming
What material is 12cr1movr? Chemical property analysis of pressure vessel steel plate 12cr1movr
Simulink oscilloscope data is imported into Matlab and drawn
斑馬識別成狗,AI犯錯的原因被斯坦福找到了
13mnnimo5-4 German standard steel plate 13MnNiMo54 boiler steel 13MnNiMo54 chemical properties
Basis of target detection (IOU)
Arduino esp32: overall framework of lvgl project (I)
随机推荐
How programming apes grow rapidly
Mysql database -dql
爱可可AI前沿推介(7.3)
美团一面:为什么线程崩溃崩溃不会导致 JVM 崩溃
PHP converts a one-dimensional array into a two-dimensional array
跟我学企业级flutter项目:简化框架demo参考
[Jianzhi offer] 57 - ii Continuous positive sequence with sum s
Simulink oscilloscope data is imported into Matlab and drawn
utfwry. Dat PHP, about ThinkPHP's method of IP location using utfwry address Library
Shentong express expects an annual loss of nearly 1billion
Using optimistic lock and pessimistic lock in MySQL to realize distributed lock
[sword finger offer] 58 - I. flip the word order
mysql用户管理
What material is 13crmo4-5 equivalent to in China? 13crmo4-5 chemical composition 13crmo4-5 mechanical properties
Mongodb installation and basic operation
MySQL single table field duplicate data takes the latest SQL statement
Hands on in-depth learning notes (XIV) 3.7 Simple implementation of softmax regression
Preventing/catching “IllegalArgumentException: parameter must be a descendant of this view” error
Mysql 将逗号隔开的属性字段数据由列转行
【剑指 Offer 】64. 求1+2+…+n