You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The problem is that with resolute=False all possible permutations of candidates are considered, to see if another committee can be found. This problem occurs in the implementation of all sequential rules.
The solution is to recognize that all candidates are equivalent and can be replaced with each other.
That is, all candidates are replaced by a placeholder (say A) and we store that the ballot consists of 10 copies of A. Only when outputting committees, we resolve the placeholders and replace them with all possible combinations of candidates (in case of the example, there is only one possibility).
Challenge: correctly use multi-sets instead of sets in all sequential algorithms.
The text was updated successfully, but these errors were encountered:
The following program runs for a (very) long time:
The problem is that with
resolute=False
all possible permutations of candidates are considered, to see if another committee can be found. This problem occurs in the implementation of all sequential rules.The solution is to recognize that all candidates are equivalent and can be replaced with each other.
That is, all candidates are replaced by a placeholder (say A) and we store that the ballot consists of 10 copies of A. Only when outputting committees, we resolve the placeholders and replace them with all possible combinations of candidates (in case of the example, there is only one possibility).
Challenge: correctly use multi-sets instead of sets in all sequential algorithms.
The text was updated successfully, but these errors were encountered: