SLIDE 39 Recognizable languages Rational languages Graphs Σ∗-automata Example GAP Semigroups Automata Automata (II) Semigroups (II) NS References
The following appears in the GAP shell:
gap> fxsgp:=FreeMonoid("a","b");; <free monoid on the generators [ a, b ]> gap> a:=GeneratorsOfMonoid( fxsgp )[ 1 ];; a gap> b:=GeneratorsOfMonoid( fxsgp )[ 2 ];; b gap> rxsgp:=[[a*a*a,a*a],[a*a*a,a*a],[a*a*b,a*a],[b*a*a,a*a],[a*b*a,a], [b*b*a,b*b],[a*b*b,b*b],[b*b*b,b*b],[b*b*b,b*b],[b*a*b,b]];; [ [ a^3, a^2 ], [ a^3, a^2 ], [ a^2*b, a^2 ], [ b*a^2, a^2 ], [ a*b*a, a ], [ b^2*a, b^2 ], [ a*b^2, b^2 ], [ b^3, b^2 ], [ b^3, b^2 ], [ b*a*b, b ] ] gap> b21:=fxsgp/rxsgp; <fp monoid on the generators [ a, b ]> gap>
(Of course, this gives an alternative way to give the same semigroup to GAP.)
Now one may use the GAP shell to perform computations, but (for some) one may use the Tcl/Tk graphical interface as well.
gap> Elements(b21); [ <identity ...>, a, b, a^2, a*b, b*a ]
Manuel Delgado Semigroups and Automata Soria, 20-24/07/2009 77 / 147 Recognizable languages Rational languages Graphs Σ∗-automata Example GAP Semigroups Automata Automata (II) Semigroups (II) NS References
By typing “DrawRightCayleyGraph(b21);” in the GAP command line, a picture of the right Cayley graph of the Brandt monoid pops up. The same may be obtained by pressing the “Draw Cayley Graph” bottom in the “Functions” menu of the Tcl/Tk interface.
Manuel Delgado Semigroups and Automata Soria, 20-24/07/2009 78 / 147