200 likes | 299 Vues
This research paper by Mehrdad Mahdavi delves into the mechanisms of winning an election through majority voting. The study presents a straightforward approach to leverage disjunction and predicates like strict majority and conditional majority. The analysis includes refinements, introduction of count variables, application of linear time code, state transformation, fast code implementation, and various algorithmic optimizations for efficient election outcomes.
E N D
Majority voting Mehrdad Mahdavi 83206054
Winning an election Predicates: (strict majority) (exists majority) (conditional majority) Abstract program :
Disjunction inherent using (i) (ii)
First refinement (i) If there is no majority is a as i, then the only possible maj . In as (i+1) is as[i]
Add variable d (State transformation)
Merge alternation Law 18.2 left-distribution of composition over alternation
Simplify alternation Law 18.4 remove false guard Law 18.5 remove alternation
Flatten nested alternations Law 18.6