Gerrymandering Attempts with Uncertain Voters
This repository contains the source code for an investigation on the impact of swing voters in two-party gerrymandering.
astar.py
: code for the heuristic search algorithmgerrymander.py
: classes implementing the gerrymander modelLICENSE
: our code is available under the MIT licensereadme.md
: this file containing a readme of the repositoryresults_0D.txt
: results for the 0-dimensional modelresults_1D.txt
: results for the 1-dimensional modelresults_2D.txt
: results for the 2-dimensional model
For running the code you need a working version of Python3
with the numpy
and tqdm
libraries.