Class CoalitionFormation

java.lang.Object
org.episteme.social.politics.CoalitionFormation

public final class CoalitionFormation extends Object
Models political coalition formation using game theory principles. Identifies winning coalitions and potential power structures between parties.
Since:
1.0
Version:
1.1
Author:
Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
  • Method Details

    • findWinningCoalitions

      public static List<Set<String>> findWinningCoalitions(Map<String,Integer> parties, int threshold)
      Identifies all winning coalitions where the sum of seats exceeds a given threshold. A winning coalition is a set of parties that can collectively form a majority.
      Parameters:
      parties - Map of party names to their respective seat counts
      threshold - the minimum seats required for a majority (e.g., total/2 + 1)
      Returns:
      a list of winning coalitions (each coalition is a Set of party names)