1. 05 Dec, 2019 1 commit
    • Karim El Sheikh's avatar
      More efficient Colour compareTo (Compares Key Sizes first). · 62215584
      Karim El Sheikh authored
      kWL() method has been clarified with comments, and cleaned up for better readability.
      Message for the number of colour classes at the end of Round 0 is now always printed regardless whether the groups have not or have been differentiated. At the end of other Rounds it was always printed.
      Pairs of elements are now chosen starting from index 1 because index 0 contained the identity element.
      Changed one message in compareColours to be slightly more concise.
      Removed all extra IndexedTreeMap Subclasses, but kept a new one with generic Key and Integer Value. It is used in the kWL method, and in the Colour Class to implement multisets efficiently.
      Parsing the commands "kWL( ..." is now more efficient because the permutations are now passed as indices instead of a new String object.
      Other minor changes.
      62215584
  2. 03 Dec, 2019 2 commits
  3. 02 Dec, 2019 1 commit