![]() |
libsemigroups
v3.0.0
C++ library for semigroups and monoids
|
libsemigroups
contains an implementation of the Radoszewski-Rytter Algorithm [51] for testing equivalence of words in free bands.
The documentation for the functions in libsemigroups
for free bands are linked to below.
Functions | |
template<typename T> | |
bool | freeband_equal_to (T first1, T last1, T first2, T last2) |
Check if two words represent the same element of a free band (iterators). | |
template<typename T> | |
bool | freeband_equal_to (T x, T y) |
Check if two words represent the same element of a free band (non-word_type ). | |
bool | freeband_equal_to (word_type const &x, word_type const &y) |
Check if two words represent the same element of a free band. | |
bool freeband_equal_to | ( | T | first1, |
T | last1, | ||
T | first2, | ||
T | last2 ) |
T | any type that can be converted to word_type . |
first1 | iterator to start of the first word. |
last1 | iterator to end of the first word. |
first2 | iterator to start of the second word. |
last2 | iterator to end of the second word. |
true
if both words are the same as elements of the free band and false
otherwise.x
and y
, and \(m\) is the number of distinct letters appearing in x
and y
. bool freeband_equal_to | ( | T | x, |
T | y ) |
T | any type that can be converted to word_type . |
x | the first word to compare in the free band. |
y | the second word to compare in the free band. |
true
if both words are the same as elements of the free band and false
otherwise.x
and y
, and \(m\) is the number of distinct letters appearing in x
and y
. The free band is the free object in the variety of bands or idempotent semigroups. The free band \(\textrm{FB}(A)\) generated by some set \(A\) is the largest semigroup all of whose elements \(x\) are idempotent, i.e. satisfy \(x^2=x\). This function efficiently compares whether two words in the generators of \(\textrm{FB}(A)\) are the same as elements of the free band.
x | the first word to compare in the free band. |
y | the second word to compare in the free band. |
true
if both words are the same as elements of the free band and false
otherwise.x
and y
, and \(m\) is the number of distinct letters appearing in x
and y
.