The clerk needs to match two ledgers: the orders and the order lines. He has three ways to do it. He can take an order and find its lines through the catalogue, then the next order, and so on through all of them. He can first sort the order cards into boxes by their numbers, then walk the lines ledger once and open the right box for each line.
In this lesson
- Three algorithms
- What each one costs
- Common mistake
- Key points