GoConqr has a new look! Let us know what you think.

Notes

Binary Search Algorithm

Dexter Hill Computing GCSE English 1 page

Binary Search Algorithm

Content of the notes (1)

Page 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!

Binary Search Algorithm

Information

Description
GCSE Computing (Fundamentals of Algorithms) Note on Binary Search Algorithm, created by Dexter Hill on 23/12/2020.
Created by
Dexter Hill
Views
0
Rating

Feedback

What is it about?

What do you think of the new look?

How do you like it?