示例#1
0
 public BlockSuffixArrayInsertStringFirstStrategy(BlockSuffixArray array, int curIdx, int strLen, char newChar)
 {
     this.array   = array;
     this.curIdx  = curIdx;
     this.strLen  = strLen;
     this.newChar = newChar;
 }
示例#2
0
        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);
        }
示例#3
0
        private static bool TestBlockSuffixArray(string str)
        {
            var array = new BlockSuffixArray();

            return(AddString(array, str));
        }