Juan  Luis  Cordero

15%
Flag icon
Sorting two cards is simple: just put the smaller one on top. And given a pair of two-card stacks, both of them sorted, you can easily collate them into an ordered stack of four. Repeating this trick a few times, you’d build bigger and bigger stacks, each one of them already sorted.
Algorithms to Live By: The Computer Science of Human Decisions
Rate this book
Clear rating
Open Preview