Delegate BWTransform.SortStrategy
Any strategy to sort the System.Char of a RotatedTextWithTerminator, for example to turn a BWT into its sorted version.
Namespace: MoreStructures.BurrowsWheelerTransform
Assembly: MoreStructures.dll
Syntax
public delegate (RotatedTextWithTerminator sortedText, IEnumerable<int> indexesMapping) SortStrategy(RotatedTextWithTerminator text, IComparer<char>? comparer = null);
Parameters
Type | Name | Description |
---|---|---|
RotatedTextWithTerminator | text | The text to be sorted. |
System.Nullable<IComparer<System.Char>> | comparer | The |
Returns
Type | Description |
---|---|
System.ValueTuple<RotatedTextWithTerminator, IEnumerable<System.Int32>> | A new RotatedTextWithTerminator, sorted according to the provided |