Listen "#90 Binary Search"
Episode Synopsis
Binary search is an algorithm for finding an item in a sorted data set. It requires that all of the items in the data set be of the same data type and comparable to one another. In other words, the data type needs to have a defined "order." Binary search is orders of magnitude more efficient than its chief alternative, linear search, which is just an in-order search of every item in a data set. Binary search works by continuously reducing the search space by half. A binary search can find an item in a data set in a maximum of log(number of items in the data set) operations where log is base 2. We explain this simple but efficient fundamental computer science algorithm and the downside of requiring that a data set be sorted.
Show Notes
Episode 62: What is an Algorithm?
Follow us on Twitter @KopecExplains.
Theme “Place on Fire” Copyright 2019 Creo, CC BY 4.0
Find out more at http://kopec.live
Show Notes
Episode 62: What is an Algorithm?
Follow us on Twitter @KopecExplains.
Theme “Place on Fire” Copyright 2019 Creo, CC BY 4.0
Find out more at http://kopec.live
More episodes of the podcast Kopec Explains Software
#135 Hacking the Classic Mac OS
20/03/2025
#134 The CrowdStrike Incident
12/08/2024
#133 Ad Blockers
21/07/2024
#132 What is Machine Learning?
02/06/2024
#131 Abandonware
19/04/2024
#130 Grace Hopper
18/03/2024
#129 BASIC
01/02/2024
#128 Copyright & Machine Learning Models
11/12/2023
#127 The Google Search Antitrust Lawsuit
13/11/2023
#126 How Does Google Make Money?
30/10/2023
ZARZA We are Zarza, the prestigious firm behind major projects in information technology.