Save
...
computational thinking
mod3
merge sort
Save
Share
Learn
Content
Leaderboard
Share
Learn
Created by
emily d
Visit profile
Cards (10)
merge sort
is a sorting
algorithm
that works by breaking down the list into two
sublists
and then sorting each sublist into order
What sorting algorithm is being discussed?
Bubble sort
View source
What is the main process of bubble sort?
Compare adjacent items
Swap if out of order
Highest number moves to the right
Sorted partition
forms at the end
View source
What happens to the highest number during bubble sort?
It
bubbles
to the right
View source
What is the result after the first iteration of bubble sort?
Nine
is in the correct spot
View source
What does the pseudocode for bubble sort indicate about its structure?
It uses a nested
for-loop
Indicates multiple
iterations
Each iteration compares
elements
View source
What is the worst-case time complexity of bubble sort?
Big O
of
n
2
n^2
n
2
View source
What does the variable
n
n
n
represent in the time complexity?
Size of the
array
View source
What should you do if you have questions about bubble sort?
Ask them
below
View source
What is the final outcome of the bubble sort algorithm?
The array is
sorted
View source