Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var CheckEndSymbol = true
CheckEndSymbol is a global variable for checking end symbol before Burrows–Wheeler transform
View Source
var ErrEmptySeq = errors.New("bwt: empty sequence")
ErrEmptySeq means a empty sequence is given
View Source
var ErrEndSymbolExisted = errors.New("bwt: end-symbol existed in string")
ErrEndSymbolExisted means you should choose another EndSymbol
View Source
var ErrInvalidSuffixArray = errors.New("bwt: invalid suffix array")
ErrInvalidSuffixArray means length of sa is not equal to 1+len(s)
Functions ¶
func FromSuffixArray ¶
FromSuffixArray compute BWT from sa
func InverseTransform ¶
InverseTransform reverses the bwt to original byte slice. Not optimized yet.
func SuffixArray ¶
SuffixArray returns the suffix array of s. This function is the performance bottleneck of bwt and bwt/fmi package, with O(nlogn).
Types ¶
type SliceOfByteSlice ¶ added in v0.4.0
type SliceOfByteSlice [][]byte
SliceOfByteSlice is [][]byte
func (SliceOfByteSlice) Len ¶ added in v0.4.0
func (s SliceOfByteSlice) Len() int
func (SliceOfByteSlice) Less ¶ added in v0.4.0
func (s SliceOfByteSlice) Less(i, j int) bool
func (SliceOfByteSlice) Swap ¶ added in v0.4.0
func (s SliceOfByteSlice) Swap(i, j int)
Click to show internal directories.
Click to hide internal directories.