equal_to(std::initializer_list<letter_type>, std::initializer_list<letter_type>)¶
-
bool
libsemigroups::CongruenceWrapper::equal_to(std::initializer_list<letter_type> u, std::initializer_list<letter_type> v)¶ Check if two words represent the same element.
- Return
trueif the wordsuandvrepresent the same element of the finitely presented semigroup, andfalseotherwise.- Complexity
See warning.
- Warning
The problem of determining the return value of this function is undecidable in general, and this function may never terminate.
- See
equal_to(std::string const&, std::string const&).
- Parameters
u: a libsemigroups::word_type consisting of indices of the generators of the finitely presented semigroup.v: a libsemigroups::word_type consisting of indices of the generators of the finitely presented semigroup.
- Exceptions
LibsemigroupsException: ifuorvcontains a letter that is out of bounds.