Save
Computer Science Paper 1
4.3 Fundamentals Of Algorithms
Sorting Algorithms
Save
Share
Learn
Content
Leaderboard
Share
Learn
Created by
Samuel Olaleye
Visit profile
Cards (8)
What is the main task of a sorting algorithm?
To put elements of an
array
in order
View source
What is the benefit of using sorted lists in searching?
It reduces the time to
locate
an item
View source
Name 2 types of Sorting Algorithms?
Bubble sort and merge sort
View source
What is the time complexity of the bubble sort algorithm?
O(n²)
View source
How does a computer determine if the list is sorted in bubble sort?
By making a
pass
with no
swaps
View source
What are the steps of the bubble sort process?
Compare adjacent elements
Swap if out of order
Repeat until sorted
Confirm sorted with no swaps
View source
What is the time complexity of merge sort?
O(n log n)
View source
What is the process of merge sort?
Split the list into smaller
lists
Continue splitting until
single
elements
Merge lists by
comparison
Form a new sorted list
View source