All Projects → abahgat → Suffixtree

abahgat / Suffixtree

Licence: apache-2.0
A Java implementation of a Generalized Suffix Tree using Ukkonen's algorithm

Programming Languages

java
68154 projects - #9 most used programming language

Labels

Projects that are alternatives of or similar to Suffixtree

Ki
Go language (golang) full strength tree structures (ki in Japanese)
Stars: ✭ 61 (-36.46%)
Mutual labels:  tree
Redmine issues tree
Provides a tree view of the Redmine issues list
Stars: ✭ 79 (-17.71%)
Mutual labels:  tree
Vue Finder
📁 A Vue.js component to display hierarchical data (like the MacOS X finder)
Stars: ✭ 87 (-9.37%)
Mutual labels:  tree
React Infinite Tree
The infinite-tree library for React.
Stars: ✭ 63 (-34.37%)
Mutual labels:  tree
Exploretrees Sg
🌳 Explore Trees in Singapore 🇸🇬
Stars: ✭ 68 (-29.17%)
Mutual labels:  tree
Hands On Algorithmic Problem Solving
A middle-to-high level algorithm book designed with coding interview at heart!
Stars: ✭ 1,227 (+1178.13%)
Mutual labels:  tree
Angular2 Tree Diagram
Angular Hierarchical UI module
Stars: ✭ 50 (-47.92%)
Mutual labels:  tree
Treeviz
Tree diagrams with JavaScript 🌲 📈
Stars: ✭ 95 (-1.04%)
Mutual labels:  tree
Pidtree
🚸 Cross platform children list of a PID.
Stars: ✭ 76 (-20.83%)
Mutual labels:  tree
Behavior Tree
🌲 Manage React state with Behavior Trees
Stars: ✭ 85 (-11.46%)
Mutual labels:  tree
Buckets Js
A complete, fully tested and documented data structure library written in pure JavaScript.
Stars: ✭ 1,128 (+1075%)
Mutual labels:  tree
Immutable Treeutils
Functional tree traversal helpers for ImmutableJS data structures
Stars: ✭ 67 (-30.21%)
Mutual labels:  tree
Swordtooffer
经典常考必备面试算法,包括但不仅限于《剑指Offer》,《程序员面试金典》中的题目,持续更新中...
Stars: ✭ 81 (-15.62%)
Mutual labels:  tree
Road Network
QuadTree Model for generating random road network
Stars: ✭ 61 (-36.46%)
Mutual labels:  tree
Astq
Abstract Syntax Tree (AST) Query Engine
Stars: ✭ 89 (-7.29%)
Mutual labels:  tree
Dockviz
Visualizing Docker data
Stars: ✭ 1,104 (+1050%)
Mutual labels:  tree
Splay Tree
Fast splay-tree data structure
Stars: ✭ 80 (-16.67%)
Mutual labels:  tree
Envh
Go helpers to manage environment variables
Stars: ✭ 95 (-1.04%)
Mutual labels:  tree
Smart Array To Tree
Convert large amounts of data array to tree fastly
Stars: ✭ 91 (-5.21%)
Mutual labels:  tree
Data Structures
This repository contains some data structures implementation in C programming language. I wrote the tutorial posts about these data structures on my personal blog site in Bengali language. If you know Bengali then visit my site
Stars: ✭ 82 (-14.58%)
Mutual labels:  tree

Generalized Suffix Tree

Build Status

A Generalized Suffix Tree, based on Ukkonen's paper "On-line construction of suffix trees" http://www.cs.helsinki.fi/u/ukkonen/SuffixT1withFigs.pdf

Allows for fast storage and fast(er) retrieval by creating a tree-based index out of a set of strings. Unlike common suffix trees, which are generally used to build an index out of one (very) long string, a Generalized Suffix Tree can be used to build an index over many strings.

Its main operations are put and search:

  • put adds the given key to the index, allowing for later retrieval of the given value.
  • search can be used to retrieve the set of all the values that were put in the index with keys that contain a given input.

In particular, after put(K, V), search(H) will return a set containing V for any string H that is substring of K.

The overall complexity of the retrieval operation (search) is O(m) where m is the length of the string to search within the index.

Differences from the original suffix tree

Although the implementation is based on the original design by Ukkonen, there are a few aspects where it differs significantly.

The tree is composed of a set of nodes and labeled edges. The labels on the edges can have any length as long as it's greater than 0. The only constraint is that no two edges going out from the same node start with the same character.

Because of this, a given (startNode, stringSuffix) pair can denote a unique path within the tree, and it is the path (if any) that can be composed by sequentially traversing all the edges (e1, e2, …) starting from startNode such that (e1.label + e2.label + …) is equal to the stringSuffix. See the GeneralizedSuffixTree#search method for details.

The union of all the edge labels from the root to a given leaf node denotes the set of the strings explicitly contained within the GST. In addition to those Strings, there are a set of different strings that are implicitly contained within the GST, and it is composed of the strings built by concatenating e1.label + e2.label + ... + $end, where e1, e2, … is a proper path and $end is prefix of any of the labels of the edges starting from the last node of the path.

This kind of "implicit path" is important in the testAndSplit method.

License

This Generalized Suffix Tree is released under the Apache License 2.0

Copyright 2012 Alessandro Bahgat Shehata

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].