当前位置:网站首页>[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
边栏推荐
- Register in PHP_ Globals parameter settings
- Necessary ability of data analysis
- Svn usage specification
- 深入理解 SQL 中的 Grouping Sets 语句
- Mysql 将逗号隔开的属性字段数据由列转行
- How to promote cross department project collaboration | community essay solicitation
- 于文文、胡夏等明星带你玩转派对 皮皮APP点燃你的夏日
- Extraction of the same pointcut
- 数据分析必备的能力
- 浅谈拉格朗日插值及其应用
猜你喜欢

Netease UI automation test exploration: airtest+poco

Cocos Creator 2. X automatic packaging (build + compile)

【LeetCode】94. Middle order traversal of binary tree

CC2530 common registers for watchdog

What is the material of 13mnnimor? 13mnnimor steel plate for medium and low temperature pressure vessels

Daily code 300 lines learning notes day 10

Thread pool executes scheduled tasks

NLP four paradigms: paradigm 1: fully supervised learning in the era of non neural networks (Feature Engineering); Paradigm 2: fully supervised learning based on neural network (Architecture Engineeri

PyTorch 1.12发布,正式支持苹果M1芯片GPU加速,修复众多Bug

One article takes you to understand machine learning
随机推荐
Execute script unrecognized \r
2022爱分析· 国央企数字化厂商全景报告
浅谈拉格朗日插值及其应用
Recommendation of good books on learning QT programming
Zebras are recognized as dogs, and Stanford found the reason why AI made mistakes
Preventing/catching “IllegalArgumentException: parameter must be a descendant of this view” error
关于视觉SLAM的最先进技术的调查-A survey of state-of-the-art on visual SLAM
UCORE overview
2022 love analysis · panoramic report of digital manufacturers of state-owned enterprises
关于学习Qt编程的好书精品推荐
Unreal_ Datatable implements ID self increment and sets rowname
【LeetCode】94. Middle order traversal of binary tree
MySQL Basics
Learn from me about the enterprise flutter project: simplified framework demo reference
Network security web penetration technology
爱可可AI前沿推介(7.3)
To resist 7-Zip, list "three sins"? Netizen: "is the third key?"
NLP四范式:范式一:非神经网络时代的完全监督学习(特征工程);范式二:基于神经网络的完全监督学习(架构工程);范式三:预训练,精调范式(目标工程);范式四:预训练,提示,预测范式(Prompt工程)
Is it safe to open a stock account by mobile registration? Does it need money to open an account
[Jianzhi offer] 58 - ii Rotate string left