Giter VIP home page Giter VIP logo

suffix-tree's Introduction

Suffix Tree

Suffix Tree (Ukkonen's) implementation written in C++.

Prerequisites

  • g++ version 6.3.0 or higher
  • clang++ version 4.0.0-1ubuntu1 or higher

Installing

First compile the project on your local system by:

make clean
make

For testing if it works, see Running tests below

Running Tests

For manual tests, run:

./test [OPTION]... [PARAMETERS]...

OPTIONS:
    -1 [QUERY]...
        Get all occurences of the query in the document as [TITLE] ... <Sorrounding 80 characters> ... 
    -2 [QUERY]...
        Get first occurences of the query or it's Longest Common Subsequence(LCS) as [TITLE] ... <Sorrounding 80 characters> ... 
    -3 [QUERY]...
        Get the top 5 documents based on relevence with the query.
    
EXAMPLE:
	./test -3 cats in the cradle and the silver spoon

Deployment

For using the Suffix Tree:

  • Copy SuffixTree.h and Node.h header files to the location of your source file.
  • Include SuffixTree.h and Node.h to your source file.
  • Use SuffixTree.o and Node.o object files and compile your program:

Alternative (recommended):

make clean
make slib

Copy the libsuffix.a from lib folder and use it as static library.

Built With

  • C++ - The main backend used

Authors

Acknowledgments

  • This is developed as an assignment for Advanced Algorithms Course.
  • I would like to thank my professors, Prof. NS Kumar and Prof. Channa Bankapur for their valuable advice.
  • This code is based on Geeks For Geeks implementation of Suffix tree using C.
  • I would like to thank Tushar Roy for his video on Ukkonens implementation of Suffix Tree.

suffix-tree's People

Contributors

ganesh-k13 avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

suffix-tree's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.