Understanding the Different Types of Algorithms (Part One)
ivanh.substack.com
Binary Search Suppose you’re trying to search for a person in a yearbook. Their last name starts with the letter J. Now you could start at the beginning and just keep flipping pages until you’ve reached J. But you’re most likely going to start in the middle because you know J will be near the middle of the book.
Understanding the Different Types of Algorithms (Part One)
Understanding the Different Types of…
Understanding the Different Types of Algorithms (Part One)
Binary Search Suppose you’re trying to search for a person in a yearbook. Their last name starts with the letter J. Now you could start at the beginning and just keep flipping pages until you’ve reached J. But you’re most likely going to start in the middle because you know J will be near the middle of the book.