HaskellForMaths-0.3.2: Combinatorics, group theory, commutative algebra, non-commutative algebra




sgs :: (Ord a, Show a) => [Permutation a] -> [Permutation a]Source

Given generators for a permutation group, return a strong generating set. The result is calculated using random Schreier-Sims algorithm, so has a small (<10^-6) chance of being incomplete. The sgs is relative to the base implied by the Ord instance.

isMemberSGS :: (Ord a, Show a) => [Permutation a] -> Permutation a -> BoolSource

Given a strong generating set gs, isMemberSGS gs is a membership test for the group