Multiple Choice
What type of algorithm is the following code?
N = len(myList)
While n > 1:
I = 1
While i < n:
If myList[ i ] < myList[ i - 1 ]:
Swap(myList, i, i - 1)
I += 1
N -= 1
A) linear sort
B) bubble sort
C) insertion sort
D) selection sort
Correct Answer:

Verified
Correct Answer:
Verified
Related Questions
Q40: The sequential search algorithm does more work
Q41: The performance of an algorithm in a
Q42: How can the following algorithm be described?
Q43: In a selection sort, the inner loop
Q44: The order of complexity of a linear-time
Q45: Benchmarking is the process of using the
Q47: What type of algorithm is list indexing
Q48: The time() function returns the amount of
Q49: What type of algorithm is the following
Q50: An analysis of an algorithm's complexity divides