Exemple #1
0
        public static void driver()
        {
            string         test    = "banana";
            SuffixTree20_8 tree    = new SuffixTree20_8(test);
            string         sub     = "b";
            List <int>     indexes = tree.getIndexes(sub);

            indexes = Node.node.indexes;
            foreach (int i in indexes)
            {
                Console.WriteLine("{0}: index = {1}", test.Substring(i), i);
            }
        }
Exemple #2
0
 static void Main(string[] args)
 {
     SuffixTree20_8.driver();
     Console.ReadLine();
 }
 public static void driver()
 {
     string test = "banana";
     SuffixTree20_8 tree = new SuffixTree20_8(test);
     string sub = "b";
     List<int> indexes = tree.getIndexes(sub);
     indexes = Node.node.indexes;
     foreach (int i in indexes)
         Console.WriteLine("{0}: index = {1}", test.Substring(i), i);
 }