Class SymmetricGroup
java.lang.Object
dk.jonaslindstrom.ruffini.permutations.structures.SymmetricGroup
- All Implemented Interfaces:
Group<Permutation>
,Monoid<Permutation>
,Semigroup<Permutation>
,Set<Permutation>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
equals
(Permutation a, Permutation b) Returnstrue
if and only if a = b as elements of this set.identity()
Return the identity element of this monoid.Return the inverse a-1.multiply
(Permutation a, Permutation b) Return the result of the product ab in this group.toString()
Returns a human-readable string representation of an element in this set.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface dk.jonaslindstrom.ruffini.common.abstractions.Monoid
isIdentity, power
-
Constructor Details
-
SymmetricGroup
public SymmetricGroup(int n)
-
-
Method Details
-
identity
Description copied from interface:Monoid
Return the identity element of this monoid.- Specified by:
identity
in interfaceMonoid<Permutation>
-
multiply
Description copied from interface:Semigroup
Return the result of the product ab in this group.- Specified by:
multiply
in interfaceSemigroup<Permutation>
-
toString
Description copied from interface:Set
Returns a human-readable string representation of an element in this set.- Specified by:
toString
in interfaceSet<Permutation>
-
equals
Description copied from interface:Set
Returnstrue
if and only if a = b as elements of this set.- Specified by:
equals
in interfaceSet<Permutation>
-
invert
Description copied from interface:Group
Return the inverse a-1.- Specified by:
invert
in interfaceGroup<Permutation>
-
toString
-