Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>As I wrote in the comments on the question, I think you're just looking at the problem the wrong way.</p> <p>Your description implies that they can go to all the locations before they have to "build"/finish the orders. The problem is that right now, things are grouped in terms of orders, so they try to fill Order #1 by going to all the locations that it requires, then they start looking at Order #2, etc.</p> <p>Instead, you need to give them aggregated information in terms of the locations, and what they need to pick up at each one. Then they just go to all of the locations, in any order, and pick up everything they need from each one. When they've been to all locations, they go through the list and fill the orders from their big pile of stuff.</p> <p>Let me know if I've made some incorrect assumptions here, and I'll try to come up with a different approach.</p> <hr> <p>Just to try and clear up the difference, here's the employee's motion in each method (the first two are not definite, because they could have gone to locations in different orders, I just followed the exact order you listed in, as an employee probably would).</p> <p><strong>Original sort by date (12 moves):</strong></p> <pre><code>E &gt; Q &gt; Z &gt; B &gt; Y &gt; N &gt; B &gt; A &gt; E &gt; A &gt; B &gt; Q </code></pre> <p><strong>Your re-sorted version (10 moves):</strong></p> <pre><code>E &gt; Q &gt; A &gt; B &gt; Z &gt; B &gt; Y &gt; N &gt; A &gt; E </code></pre> <p><strong>By aggregating by location (7 moves):</strong></p> <pre><code>A &gt; B &gt; E &gt; N &gt; Q &gt; Y &gt; Z </code></pre> <p>To further stress the difference, if I assume that all your locations are equidistant from the previous one (so moving from A to B has a cost of 1), and that you have one for each letter. Also assuming that you both want to start and end at location 0, you have:</p> <p><strong>Original sort by date:</strong> amount of movement = 138<br> <strong>Your re-sorted version:</strong> amount of movement = 138 <em>(that's kind of surprising)</em><br> <strong>By aggregating by location:</strong> amount of movement = 52</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload