Algortihms
Algortihms
MS
Introduction
The word algorithm comes from the name of the 9th century
Persian and Muslim mathematician Abu Abdullah Muhammad ibn
Musa Al-Khwarizmi, he was mathematician, astronomer and
geographer during the Islamic prophet era.
Sorting Algorithms
Searching
Algorithms
A search algorithm is the step-by-step procedure used to
locate specific data among a collection of data.
Michaela Denise
Dana Joshua
Fran Louise
Sorting a list of name
Joaquin in ascending order Michaela
Sorting
Algorithms
92 93
47 92
29 Sorting 84
Algorithm
(descending)
53 53
84 48
48 47
Sorting a list of
93 numbers in 29
descending order
Types Sorting
Algorithm
Bubble Sort – is simplest sorting algorithm that works by
repeatedly swapping the adjacent elements if they are in wrong
order.
Types Sorting
Algorithm
Selection Sort – It repeatedly passes through the list of items to be
sorted, and selects the lowest value ( or highest value in the case of a
descending sort)
Initially, the sorted part is empty, and the unsorted part is the entire list.
Descending to
Ascending order
Types Sorting
Algorithm
Bucket Sort – It is a sorting algorithm which makes use of “buckets” to
sort a list.
It is a comparison sort algorithm that operates on elements by dividing
them into different buckets and then sorting these buckets individually.
Each bucket is sorted individually using a separate sorting algorithm or
by applying the bucket sort algorithm recursively.
In the example above:
1. Create a bucket that have ranges (0 to 9, 10 to 19 etc.)
2. Recurse to the list and identify what bucket a specific item needs
to go into.
Types Sorting
Algorithm
Merge Sort – is another divide and conquer algorithm similar to the
bucket sort algorithm.
The idea of breaking down a list into several sub-lists until each
sub list consists of a single element and merging those sub lists in a
manner that results into a sorted list.