文件名称:3.3
介绍说明--下载内容均来自于网络,请自行研究使用
试利用循环队列编写求k阶斐波那契序列中前n+1项的算法。要求满足:
, 其中max为某个约定常数。 (注意:本题所用循环队列的容量仅为k, 则在算法执行结束时,留在循环队列中的元素应是所求k阶斐波那契序列中的最后k项)-Try using a circulating written request queue order k Fibonacci sequence algorithm that deed before n+1 items. Required to meet:, where the agreement for a constant max. (Note: This question of the capacity of only circular queue element k, then at the end of the algorithm execution, stay in the loop with the queue should be a sequence of k-th Fibonacci seeking the last k items)
, 其中max为某个约定常数。 (注意:本题所用循环队列的容量仅为k, 则在算法执行结束时,留在循环队列中的元素应是所求k阶斐波那契序列中的最后k项)-Try using a circulating written request queue order k Fibonacci sequence algorithm that deed before n+1 items. Required to meet:, where the agreement for a constant max. (Note: This question of the capacity of only circular queue element k, then at the end of the algorithm execution, stay in the loop with the queue should be a sequence of k-th Fibonacci seeking the last k items)
(系统自动生成,下载前可以参看下载内容)
下载文件列表
3.3.cpp