Package com.googlecode.gaal.suffix.api.LinearizedSuffixTree

Examples of com.googlecode.gaal.suffix.api.LinearizedSuffixTree.BinaryInterval.right()


            if (!interval.isTerminal()) {
                if (maximalSet.contains(interval) != isMaximal(interval)) {
                    System.err.printf("%s - got:%s, expected:%s\n", interval, maximalSet.contains(interval),
                            isMaximal(interval));
                    int[] lcpTable = lst.getLcpTable();
                    for (int i = interval.left(); i <= interval.right(); i++) {
                        System.err.print(lcpTable[i]);
                    }
                    System.err.println();
                    fail("maximality mismatch");
                }
View Full Code Here


                if ((distinctBwtSet.contains(interval) && maximalSet.contains(interval)) != isSupermaximal(interval)) {
                    System.err.printf("%s - got:%s, expected:%s\n", interval, distinctBwtSet.contains(interval),
                            isSupermaximal(interval));
                    int[] suffixTable = lst.getSuffixTable();
                    IntSequence sequence = corpus.sequence();
                    for (int i = interval.left(); i <= interval.right(); i++) {
                        System.err.print(corpus.toToken(sequence.get(suffixTable[i] - 1, sequence.size() - 1)) + " ");
                    }
                    System.err.println();
                    fail("supermaximality mismatch");
                }
View Full Code Here

                if (singletonBwtSet.contains(interval) != isBwtSingleton(interval)) {
                    System.err.printf("%s - got:%s, expected:%s\n", interval, singletonBwtSet.contains(interval),
                            isBwtSingleton(interval));
                    int[] suffixTable = lst.getSuffixTable();
                    IntSequence sequence = corpus.sequence();
                    for (int i = interval.left(); i <= interval.right(); i++) {
                        System.err.print(corpus.toToken(sequence.get(suffixTable[i] - 1, sequence.size() - 1)) + " ");
                    }
                    System.err.println();
                    fail("bwt singleton mismatch");
                }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.