An O(k2log(n/k)) Algorithm for Computing Generalized Order-k Fibonacci Numbers with Linear Space

From MaRDI portal
Publication:3816136





The generalized order-k Fibonacci series is defined recursively by \(f_{n,m}=\sum^{k}_{i=1}f_{n-i,m}\) for \(n>0\), \(1\leq m\leq k\) with initial conditions: \(f_{n,m}=1\), if \(m=1-n\), and \(f_{n,m}=0\) otherwise, when \(-k+1\leq n\leq 0\), and \(f_{1,m}=1\), for \(1\leq m\leq k\). Thus for \(k=2\), \(f_{n,1}=F_ n\), the traditional Fibonacci numbers. The author is interested in improving the efficiency of generating these numbers, which have an application in efficient merging of strings in the polyphase sort of \((k+1)\) tape drives. He defines a \(k\times k\) matrix \(M^ n\) whose ith row is \([f_{n-i+1},1,...,f_{n-i+1}]\) and uses the result from an earlier paper that \(M^ n\) is the nth power of \(M^ 1\). Now using efficient procedures for taking matrix powers, and recording only one row of the matrix, he provides algorithms in PASCAL to calculate these numbers in \(O(k^ 2 \log (n/k))\) time units, using O(k) space units. The quality of the paper is significantly hampered by poor typesetting and proofreading, with numerous missing, broken or inverted characters, and spelling mistakes.











This page was built for publication: An O(k2log(n/k)) Algorithm for Computing Generalized Order-k Fibonacci Numbers with Linear Space

Report a bug (only for logged in users!)Click here to report a bug for this page (MaRDI item Q3816136)