作者投稿和查稿 主编审稿 专家审稿 编委审稿 远程编辑

计算机工程 ›› 2010, Vol. 36 ›› Issue (21): 162-163,166. doi: 10.3969/j.issn.1000-3428.2010.21.058

• 安全技术 • 上一篇    下一篇

Fibonacci数和Lucas数的联合迭代算法

杨荣华   

  1. (福建工程学院计算机与信息科学系,福州 350108)
  • 出版日期:2010-11-05 发布日期:2010-11-03
  • 作者简介:杨荣华(1966-),男,讲师、硕士,主研方向:信息安全
  • 基金资助:
    福建省科技基金资助重点项目(2008H0001);福建省教育厅科技基金资助项目(JB08192)

Associated Iterative Algorithm for Fibonacci Numbers and Lucas Numbers

YANG Rong-hua   

  1. (Computer and Information Science Department, Fujian University of Technology, Fuzhou 350108, China)
  • Online:2010-11-05 Published:2010-11-03

摘要: 针对超大Fibonacci数和Lucas数的计算问题,提出一种Fibonacci-Lucas数联合迭代算法,在单次循环中选择二倍步长的方式,采用交替计算Fibonacci数和Lucas数的方法,减低超大数迭代算式的复杂度,提高程序的计算效率。实验结果表明,该算法运行时间比现有的矩阵迭代算法更短。

关键词: Fibonacci数, Lucas数, 矩阵迭代, 联合迭代

Abstract: Aiming at the calculating problems of very large Fibonacci numbers and Lucas numbers, an associated iterative algorithm for Fibonacci numbers and Lucas numbers is proposed, which selects double step in a single cycle and uses the method of alternate calculating of Fibonacci numbers and Lucas numbers. The algorithm reduces complexity of iterative formula of very large numbers and improves the computational efficiency of program. Experimental result shows that running time of the algorithm is faster than the matrix iterative algorithm.

Key words: Fibonacci numbers, Lucas numbers, matrix iterative, associated iterative

中图分类号: