예제 #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));
        }