Class PermutationGroup

  • All Implemented Interfaces:
    java.lang.Iterable<java.util.List<java.lang.Integer>>

    public class PermutationGroup
    extends java.lang.Object
    implements java.lang.Iterable<java.util.List<java.lang.Integer>>
    Author:
    Peter
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addPermutation​(java.util.List<java.lang.Integer> permutation)  
      static java.util.List<java.lang.Integer> combine​(java.util.List<java.lang.Integer> permutation1, java.util.List<java.lang.Integer> permutation2)  
      void completeGroup()
      Starts with an incomplete set of group generators in `permutations` and expands it to include all possible combinations.
      java.lang.String getGroupTable()  
      int getOrder()  
      static int getOrder​(java.util.List<java.lang.Integer> permutation)  
      java.util.List<java.lang.Integer> getPermutation​(int index)  
      int hashCode()  
      java.util.Iterator<java.util.List<java.lang.Integer>> iterator()  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface java.lang.Iterable

        forEach, spliterator
    • Constructor Detail

      • PermutationGroup

        public PermutationGroup()
    • Method Detail

      • addPermutation

        public void addPermutation​(java.util.List<java.lang.Integer> permutation)
      • getPermutation

        public java.util.List<java.lang.Integer> getPermutation​(int index)
      • getOrder

        public int getOrder()
      • completeGroup

        public void completeGroup()
        Starts with an incomplete set of group generators in `permutations` and expands it to include all possible combinations. Ways to complete group: - combinations of permutations pi x pj - combinations with itself p^k
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • combine

        public static java.util.List<java.lang.Integer> combine​(java.util.List<java.lang.Integer> permutation1,
                                                                java.util.List<java.lang.Integer> permutation2)
      • getOrder

        public static int getOrder​(java.util.List<java.lang.Integer> permutation)
      • getGroupTable

        public java.lang.String getGroupTable()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • iterator

        public java.util.Iterator<java.util.List<java.lang.Integer>> iterator()
        Specified by:
        iterator in interface java.lang.Iterable<java.util.List<java.lang.Integer>>