矩阵一维递推 菲波拉契数
摘要:
算法:利用矩阵乘法求解递推,时间复杂度O(lgn)View Code #include<stdio.h>#include<stdlib.h>#include<string.h>#include<iostream>#include<vector>#include<string>#include<math.h>#include<map>#include<set>#include<algorithm>using namespace std;#define MAXN 10#defin 阅读全文
posted @ 2012-08-16 21:28 more think, more gains 阅读(207) 评论(0) 推荐(0) 编辑