Skip to content

T_CodeJam_Collections_SuffixTreeBase

Andrew Koryavchenko edited this page Jun 17, 2018 · 2 revisions

SuffixTreeBase Class

Base class for suffix tree algorithm implementation.

Inheritance Hierarchy

System.Object
  CodeJam.Collections.SuffixTreeBase
    CodeJam.Collections.SuffixTree
Namespace: CodeJam.Collections
Assembly: CodeJam (in CodeJam.dll) Version: 2.1.0.0

Syntax

C#

public abstract class SuffixTreeBase

VB

Public MustInherit Class SuffixTreeBase

F#

[<AbstractClassAttribute>]
type SuffixTreeBase =  class end

The SuffixTreeBase type exposes the following members.

Constructors

 

Name Description
Protected method SuffixTreeBase Constructs a base for a suffix tree
  Back to Top

Properties

 

Name Description
Protected property EdgeComparer The comparer to compare edges of a node against a char
Protected property InternalData Concatenated input strings
Protected property NodesCount Number of nodes
Protected property Root The root node
Protected property StringLocations List of locatons of added strings inside the InternalData
  Back to Top

Methods

 

Name Description
Public method Add Adds a new string to the tree
Protected method AddNode Adds a new node
Public method All Enumerates all suffixes in the suffix tree
Protected method AppendNodeText Prints a single node information
Protected method BuildFor Appends suffixes for the last added string
Public method Contains Checks wether the suffix tree contains the given substring or not
Public method ContainsSuffix Checks wether the suffix tree contains the given suffix or not
Public method Equals Determines whether the specified object is equal to the current object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method GetHashCode Serves as the default hash function. (Inherited from Object.)
Protected method GetNode Gets a node at the index
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method Print Prints the tree structure to the string for the debugging purposes
Public method StartingWith Enumerates all suffixes starting with the given prefix
Public method ToString Returns a string that represents the current object. (Inherited from Object.)
Protected method UpdateNode Updates the node at the index
  Back to Top

Fields

 

Name Description
Protected fieldStatic member RootNodeIndex Root node index
  Back to Top

See Also

Reference

CodeJam.Collections Namespace

Clone this wiki locally