Notizen
Binary Search Algorithm
Inhalt der Notizen (1)
Seite 1
Binary Search
Binary Search starts by picking the middle element of the array. If it is larger than the item wanted, it removed the first half of the array. If it is smaller, it removes the second half. It will continue to do this until it finds the element wanted.
Advantages:
Fast - gets rid of half the array on just the first run
It can indicate where in the array the element is (near the beginning, towards the end)
Disadvantages
Harder to implement that linear search
Requires an already sorted (ascending order) array!

Informationen
- Beschreibung
- GCSE Computing (Fundamentals of Algorithms) Notiz am Binary Search Algorithm, erstellt von Dexter Hill am 23/12/2020.
- Erstellt von
- Dexter Hill · Dez 2020
- Aktualisiert
- 23 Dez 2020
- Aufrufe
- 0
- Bewertung