Save
...
computer science
fundamentals of algorithms
searching and sorting algorithms
Save
Share
Learn
Content
Leaderboard
Learn
Created by
lucy dock
Visit profile
Cards (11)
Binary Search
A
searching algorithm
that
divides
the
search space
in
half
each time until it finds the
target
, faster than
linear
but requires the
array
to be
sorted
View source
Linear Search
A
searching algorithm
which looks at every
element
in
turn
until it finds the
target
, it is
slow
but works even on
unsorted
data
View source
Efficiency
The
processing time
required to run an
algorithm
, can be
poor
for some simple algorithms like
linear search
or
bubble sort
View source
Merge Sort
A very
efficient
sorting algorithm that repeatedly
breaks down
a list into
smaller
lists, then repeatedly
merges
them back together in
order
View source
Bubble Sort
A
sorting algorithm
that
passes
over the list many times,
swapping adjacent items
if they are in the
wrong order.
Not very
efficient.
View source
Sorting algorithm
Any
algorithm
that puts
data
in
order
, examples are
bubble
,
insertion
and
merge
View source
Searching algorithm
Any algorithm that finds data within a
data structure
, examples are
linear
(also called
serial
) and
binary.
View source
Before using binary search, the data must be sorted into order.
View source
Linear search will work on sorted or unsorted data
View source
Bubble sort, insertion sort and linear search are all very slow, inefficient algoritms
View source
Binary search and merge sort are very fast algorithms because they complete the task with many fewer comparisons
View source