搜索资源列表
Desktop
- 斐波那契数是0、1、1、2、3、5、8、13、21,用递归方法可以定义为F0=0,F1=1,Fn=F(n-1)+F(n-2)(n>=2,n∈N*),此程序作用为算出第n个斐波那契数的数值并输出(Calculate the n value and output Fibonacci number)
田忌赛马
- 输入n[1, 100]组田忌和齐威王的马的速度,使用贪心法求田忌胜出的最多盘数(赢局数—输局数,平局数不算分),设计贪心策略,实现程序。 输入:组数n[1, 100],田忌和齐威王每组马的速度,每一组包含两个正整数,分别表示这一组田忌和齐威王的马的速度; 输出:匹配策略,赢局数,输局数,平局数(Input the speed of n [1, 100] groups of Tian Ji and Qi Weiwang's horses, use the greedy
奇异值确定K
- 根据奇异值分解出来的奇异值,画出奇异值分布曲线,根据公式算出奇异值的突变点,此时突变点即是VMD分解分量数的K值(According to the singular value decomposed by singular value, the distribution curve of singular value is drawn, and the mutation point of singular value is calculated according to the formula.