• Lifter@discuss.tchncs.de
    link
    fedilink
    arrow-up
    1
    ·
    18 days ago

    That doesn’t make sense at all. How would you - given two stacks of papers - know which stack the correct form is?

    • Cracks_InTheWalls@sh.itjust.works
      link
      fedilink
      arrow-up
      2
      ·
      edit-2
      18 days ago

      There’s lots of stuff about what I do that doesn’t make much sense :)

      It works in this scenario because the stacks are reliably sorted by customer and date, and each form has a running tally of what cookies are on offer as things get added to the list.

      Assume customer x’s forms are taken out, and you make two stacks of them without shuffling the forms. The very first form on the first stack from 2022-01-01 does not include cookie y. The first form on the second stack, from 2023-02-01, also does not contain cookie y. Based on this information and the conditions above, you can infer that the form you want is in the second stack.

      Now, if the forms were not reliably sorted, or did not contain a running record, you’d need to approach this differently. Strategies would probably involve inferences or straight getting the info you need from other sources - custumer correspondence around “We want cookie y, how much?” (if it occurred when you were in a position to get such correspondence); knowledge of big changes to cookie offerings to the customer (contract renewals); bugging accounting at a regular, annoying cadence with progressive escalation until they answer/complain about you bugging them, etc.

      • Lifter@discuss.tchncs.de
        link
        fedilink
        arrow-up
        1
        ·
        17 days ago

        Wow that got complicated very quickly. Bummer no-one can come up with a simple example of when quicksort is useful.