2015年8月30日

摘要: 1 #include 2 #include 3 #include 4 using namespace std; 5 const int maxn = 1002; 6 int sa[maxn], rank[maxn], height[maxn]; 7 int wa[maxn], wb[maxn], ... 阅读全文

posted @ 2015-08-30 17:52 LLGemini 阅读(328) 评论(0) 推荐(0) 编辑

摘要: 模板奉上int rank[maxn],height[maxn];void calheight(int *r,int *sa,int n){ int i,j,k=0; for(i=1;i1 且Rank[i]>1,一定有h[i]≥h[i-1]-1。(这条性质要好好理解!) 证明:设suf... 阅读全文

posted @ 2015-08-30 17:40 LLGemini 阅读(5055) 评论(0) 推荐(2) 编辑