Function ADS::isLyndon

Function Documentation

inline bool ADS::isLyndon(std::string_view S)

S is a Lyndon word: nonempty and smaller than all its proper suffixes, \( O( n^2 ) \) by the definition.