yoshi@renyi ~/Documents/www/2013i/mac323/exx/2013.06.11 $ make all gcc -g -I. -Wall -pedantic -ansi -c getline.c gcc -g -I. -Wall -pedantic -ansi -c suff_arr.c gcc -g -I. -Wall -pedantic -ansi -c lrs.c gcc -g -I. -Wall -pedantic -ansi -o lrs getline.o suff_arr.o lrs.o -lm gcc -g -I. -Wall -pedantic -ansi -c kwic.c gcc -g -I. -Wall -pedantic -ansi -o kwic getline.o suff_arr.o kwic.o -lm yoshi@renyi ~/Documents/www/2013i/mac323/exx/2013.06.11 $ cat ex.in aacaagtttacaagcyoshi@renyi ~/Documents/www/2013i/mac323/exx/2013.06.11 $ lrs 1 < ex.in Suffix array: aacaagtttacaagc aagc aagtttacaagc acaagc acaagtttacaagc agc agtttacaagc c caagc caagtttacaagc gc gtttacaagc tacaagc ttacaagc tttacaagc Repeated segment of max length: acaag yoshi@renyi ~/Documents/www/2013i/mac323/exx/2013.06.11 $ cat exx.in actttcaaaaaaatcagcgtaaaaaacatactaatttgggcaaattcccacctgtttttagggacatttttctttgaattagagcctcagcagctcgtcattgctgaattttcttgaagtyoshi@renyi ~/Documents/www/2013i/mac323/exx/2013.06.11 $ lrs 0 < exx.in Repeated segment of max length: ttttctt yoshi@renyi ~/Documents/www/2013i/mac323/exx/2013.06.11 $ cat tinyTale.txt it was the best of times it was the worst of times it was the age of wisdom it was the age of foolishness it was the epoch of belief it was the epoch of incredulity it was the season of light it was the season of darkness it was the spring of hope it was the winter of despair yoshi@renyi ~/Documents/www/2013i/mac323/exx/2013.06.11 $ lrs 0 < tinyTale.txt Repeated segment of max length: st of times it was the yoshi@renyi ~/Documents/www/2013i/mac323/exx/2013.06.11 $ head ~/Documents/www/TMP/DATA/Gutenberg/bible_KJ.txt The Project Gutenberg EBook of The King James Bible This eBook is for the use of anyone anywhere at no cost and with almost no restrictions whatsoever. You may copy it, give it away or re-use it under the terms of the Project Gutenberg License included with this eBook or online at www.gutenberg.org Title: The King James Bible yoshi@renyi ~/Documents/www/2013i/mac323/exx/2013.06.11 $ lrs 0 < ~/Documents/www/TMP/DATA/Gutenberg/bible_KJ.txt Repeated segment of max length: the house of his precious things, the silver, and the gold, and the spices, and the precious ointment, and all the house of his armour, and all that was found in his treasures: there was nothing in his house, nor in all his dominion, that Hezekiah shewed them not. yoshi@renyi ~/Documents/www/2013i/mac323/exx/2013.06.11 $ head tale.txt it was the best of times it was the worst of times it was the age of wisdom it was the age of foolishness it was the epoch of belief it was the epoch of incredulity it was the season of light it was the season of darkness it was the spring of hope it was the winter of despair we had everything before us we had nothing before us we were all going direct to heaven we were all going direct the other wayin short the period was so far like the present period that some of its noisiest authorities insisted on its being received for good or for evil in the superlative degree yoshi@renyi ~/Documents/www/2013i/mac323/exx/2013.06.11 $ kwic tale.txt 15 0 search o st giless to search for contraband her unavailing search for your fathe le and gone in search of her husband t provinces in search of impoverishe dispersing in search of other carri n that bed and search the straw hold better thing t is a far far better thing that i do than some sense of better things else forgotte was capable of better things mr carton en yoshi@renyi ~/Documents/www/2013i/mac323/exx/2013.06.11 $ make clean /bin/rm -f *~ \#~ .\#* *.o core a.out yoshi@renyi ~/Documents/www/2013i/mac323/exx/2013.06.11 $