Algorithms Library Toolkit
A toolkit for algorithms, especially for algorithms on formal languages
|
#include <NormalizeRotation.h>
Static Public Member Functions | |
template<class SymbolType > | |
static string::CyclicString< SymbolType > | normalize (const string::CyclicString< SymbolType > &string) |
Computes lexicographically least circular rotation, based on Kellogg S. Booth 1979, modified to working code by Ladislav Vagner
|
static |
Computes lexicographically least circular rotation, based on Kellogg S. Booth 1979, modified to working code by Ladislav Vagner
SymbolType | the type of symbols in the rotated string. |
string | the rotated string |
string
in its least lexicographical rotation Knuth–Morris–Pratt like array
Least circular string shift value