C# Class natix.CompactDS.SuffixArray

A simple and plain suffix-array
Exibir arquivo Open project: sadit/natix

Public Properties

Property Type Description
SA int[]
Text IList
charT IList
newF Bitmap

Public Methods

Method Description
Build ( IList text, int alphabet_size ) : void

Suffix array built in

LexicographicCompare ( IList a, int aStart, int aEnd, IList b, int bStart, int bEnd ) : int

Compare to arrays lexicographically, returns an integer representing something like a - b

Load ( BinaryReader Input ) : void

Load a suffix array from disk

LowerBound ( IList query, int qstart, int qlen, int min, int max, int &lower ) : void

Lower bound using binary search

Save ( BinaryWriter Output ) : void
Save_CSA_BWT ( string sa_name, int sample_step ) : void
Search ( IList query ) : int[]

Search for occurrences of a simple pattern

SuffixArray ( ) : System
UpperBound ( IList query, int qstart, int qlen, int min, int max, int &upper ) : void

Upper bound using binary search

Method Details

Build() public method

Suffix array built in
public Build ( IList text, int alphabet_size ) : void
text IList
alphabet_size int
return void

LexicographicCompare() public static method

Compare to arrays lexicographically, returns an integer representing something like a - b
public static LexicographicCompare ( IList a, int aStart, int aEnd, IList b, int bStart, int bEnd ) : int
a IList
aStart int
aEnd int
b IList
bStart int
bEnd int
return int

Load() public method

Load a suffix array from disk
public Load ( BinaryReader Input ) : void
Input System.IO.BinaryReader
return void

LowerBound() public method

Lower bound using binary search
public LowerBound ( IList query, int qstart, int qlen, int min, int max, int &lower ) : void
query IList
qstart int
qlen int
min int
max int
lower int
return void

Save() public method

public Save ( BinaryWriter Output ) : void
Output System.IO.BinaryWriter
return void

Save_CSA_BWT() public method

public Save_CSA_BWT ( string sa_name, int sample_step ) : void
sa_name string
sample_step int
return void

Search() public method

Search for occurrences of a simple pattern
public Search ( IList query ) : int[]
query IList
return int[]

SuffixArray() public method

public SuffixArray ( ) : System
return System

UpperBound() public method

Upper bound using binary search
public UpperBound ( IList query, int qstart, int qlen, int min, int max, int &upper ) : void
query IList
qstart int
qlen int
min int
max int
upper int
return void

Property Details

SA public_oe property

public int[] SA
return int[]

Text public_oe property

Data of the suffix array
public IList Text
return IList

charT public_oe property

public IList charT
return IList

newF public_oe property

public Bitmap,natix.CompactDS newF
return Bitmap