
1 table about Gerrymandering
Shortest Splitline Districting Algorithm
5 rows × 1 cols · as of 30 November 2026
The shortest splitline algorithm is a rule for dividing a state into electoral districts using its boundaries, population, and the number of districts required.
It repeatedly splits the state with the shortest straight line that gives the two resulting areas populations proportional to the districts they will contain, using fixed tie-breakers when needed.
The same process is applied to each area until all districts are formed, with a rule assigning any residence crossed by a boundary to one of the resulting districts.
| Shortest splitline algorithm |
|---|
| Start with the boundary outline of the state. |
| Let N=A+B where N is the number of districts to create, and A and B are two whole numbers, either equal (if N is even) or differing by exactly one (if N is odd). For example, if N is 10, each of A and B would be 5. If N is 7, A would be 4 and B would be 3. |
| Among all possible straight lines that split the state into two parts with the population ratio A:B, choose the shortest. If there are two or more such shortest lines, choose the one that is most north–south in direction; if there is still more than one possibility, choose the westernmost. |
| We now have two hemi-states, each to contain a specified number (namely A and B) of districts. Handle them recursively via the same splitting procedure. |
| Any human residence that is split in two or more parts by the resulting lines is considered to be a part of the most north-eastern of the resulting districts; if this does not decide it, then of the most northern. |
Source: en.wikipedia.org/wiki/Gerrymandering, shared under CC BY-SA 4.0.
Updates: Latest edits
More: All tables from Gerrymandering · Tables like this · Random tables