The rule used on this page
Receipts are numbered in the order you type them, starting at one on this page and at zero in the calculation. Each receipt is assigned permanently to a lane, which is its number divided by the height limit and rounded down. A receipt is placed on top of whatever its lane already holds. A pick takes the top lot from the lowest numbered lane that still holds something. A gap made by a pick is never backfilled and no lot is ever moved between lanes. That rule is the page's, it is deliberately small, and it is not taken from either source. where ℓi is the lane number in the calculation, i the receipt number starting at zero, and h the height limit. A worked example
- At height 2, receipts A and B enter lane 1, C and D enter lane 2, and E enters lane 3.
- The pick takes B from the top of the lowest occupied lane. A is then the lot on top next.
- Draining the rule gives B, A, D, C, E.
- The pairs B with A and D with C leave in reverse, so the count is 2.
What a reversed pair is
Two lots form a reversed pair when their order in the full outgoing sequence is the reverse of their order in the receipt sequence. The number this page reports is a count of pairs, not a count of lots that came out in the wrong place and not a count of moves anybody would have to make. In the worked example four lots are involved across two pairs, and the answer is two.
Nothing here counts a relocation
The rule never moves a lot to reach another one, so there is no relocation to count and this page reports none.
The two answers move independently
The pair count and the lot the rule puts on top next are different answers about the same record. On six receipts with a pick after the third and another after the fifth, heights three and four both give six reversed pairs while the next lot changes. The sweep watches the count and the finding names both.
Check it yourself
Set the height to 6 and leave the sweep at 1 to 8 in steps of 1. The answer holds from 5 through 8, because five receipts already fit in one lane and raising the ceiling of a lane that is not full changes nothing. Then set the height to 1. The count is zero, and it is zero only there.
Counting the crossings on the chart
Every place two connectors cross is one reversed pair, and the marked crossings stop at twelve. Where three connectors meet at one point the marks sit on top of each other, so read the number from the table rather than from the drawing.
The calculation domain
The calculation accepts a height limit from 1 to 8 and 1 to 100 events with lot names up to 80 characters. This page offers 4 to 14 events and shorter names because the chart draws one cell for every receipt.
Boundary
It replays the events you typed under the one lane rule stated on this page. It does not determine how a real yard is laid out, whether a lot can be reached, or what an inventory record ought to assume.
Source anchors
Auburn University, an open dissertation on block stacked warehouses. United States Government Accountability Office, inventory system requirements. The first describes lots placed on one another on a floor and what that does to reaching them. The second sets out first in first out as an assumption an inventory record makes rather than a description of a yard. The rule on this page is the page's own and every event on it comes from your own typing.
Calculation version
1.0.0