public BlockSuffixArrayInsertStringFirstStrategy(BlockSuffixArray array, int curIdx, int strLen, char newChar) { this.array = array; this.curIdx = curIdx; this.strLen = strLen; this.newChar = newChar; }
private static bool TestSumBlockSuffixArray(string str) { var array = new BlockSuffixArray(); array.AddStringAtEnd(str); bool res = IsSuffixArrayCorrect(array); if (!res) { Console.Out.WriteLine("************"); Console.Out.WriteLine(array); } return(res); }
private static bool TestBlockSuffixArray(string str) { var array = new BlockSuffixArray(); return(AddString(array, str)); }