January 2024
Intermediate to advanced
480 pages
12h 36m
English

It’s amazing how often computer programs need to search for information, whether it’s to find a user’s profile in a database or to retrieve a customer’s orders. No one likes waiting for a slow search to complete.
In this chapter, we’ll solve two problems whose solutions hinge on being able to perform efficient searches. The first problem is determining whether or not all snowflakes in a collection are identical. The second is determining how many passwords can be used to log in to someone’s account. We want to solve these problems correctly, but we’ll see that some correct approaches are simply too slow. We’ll be able to achieve enormous ...
Read now
Unlock full access