25/04/2019
Inspired by the book “Algorithm to Live by”, here comes three lessons using the techniques learnt from it for us to organize our household work.
Lesson 1: Organize your stuff faster using a variety of sorting algorithms.
Albert Einstein was known as a walking source of chaos, and he’s famously credited with saying: “If a cluttered desk is a sign of a cluttered mind, of what, then, is an empty desk a sign?”
I will be happy about if you’re more like Einstein and prefer a decent amount of organized chaos! However, when you’re moving houses or can’t walk around your bed any more, because everything’s cramped in your home, a sorting algorithm might be in order. The next time you clean up, try using one of these three:
Bubble sort.
We coded this one in college. Basically, you only ever compare two items at a time and put them in the right order, going through all pairs of items one by one and swap them if their order is wrong. Once you’re through the list, start over until you don’t have to swap anything any more. Perfect for sorting books!
Insertion sort.
This is less incremental, making you take out all items to be organized and then inserting them in the right order. This is ideal for organizing your wardrobe.
Merge sort.
I hope you only have to use this one when you move. It works by dividing all of your collections into multiple piles, sorting the piles (for example by room), and then re-assembling the sorted piles to get a full solution.
Pretty cool, huh?
See you in the next lesson~ =]
Enquiry:
SA Education www.soundart.hk
L&D Manager JACKY POON,5583 9363,[email protected]