计算机科学 > 数据结构与算法
[提交于 2015年4月24日 (v1),最后修订于 2017年3月15日 (此版本, v3)]
标题:A Practical and Worst-Case Efficient Algorithm for Divisor Methods of Apportionment
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读摘要:Proportional apportionment is the problem of assigning seats to parties according to their relative share of votes. Divisor methods are the de-facto standard solution, used in many countries. In recent literature, there are two algorithms that implement divisor methods: one by Cheng and Eppstein (ISAAC, 2014) has worst-case optimal running time but is complex, while the other (Pukelsheim, 2014) is relatively simple and fast in practice but does not offer worst-case guarantees. We demonstrate that the former algorithm is much slower than the other in practice and propose a novel algorithm that avoids the shortcomings of both. We investigate the running-time behavior of the three contenders in order to determine which is most useful in practice.