Multiple Choice
What type of algorithm is the following code?
I = 0
While i < len(myList) - 1:
MinIndex = i
J = i + 1
While j < len(myList) :
If myList[ j ] < myList[ minIndex ]:
MinIndex = j
J += 1
If minIndex != i:
Swap(myList, minIndex, i)
I += 1
A) binary search
B) bubble sort
C) sequential search
D) selection sort
Correct Answer:

Verified
Correct Answer:
Verified
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
Q46: What type of algorithm is the following
Q47: What type of algorithm is list indexing
Q48: The time() function returns the amount of
Q50: An analysis of an algorithm's complexity divides