A) The bubble sort algorithm repeatedly swaps elements that are out of order in a list until they are completely sorted.
B) The bubble sort algorithm repeatedly swaps the smallest element in an unsorted portion of a list with an element at the start of the unsorted portion.
C) The bubble sort algorithm repeatedly inserts the i-th element into its proper place in the first i items in the list.
D) The bubble sort algorithm partitions a list around a pivot item and sorts the resulting sublists.
Correct Answer
verified
True/False
Correct Answer
verified
Multiple Choice
A) __in__
B) __contains__
C) __present__
D) __within__
Correct Answer
verified
True/False
Correct Answer
verified
True/False
Correct Answer
verified
True/False
Correct Answer
verified
True/False
Correct Answer
verified
Multiple Choice
A) mergeSort
B) mergeSortHelper
C) merge
D) mergeSplit
Correct Answer
verified
True/False
Correct Answer
verified
True/False
Correct Answer
verified
Multiple Choice
A) Different hardware platforms have different processing speeds, meaning the running times will differ.
B) A benchmark test does not account for differences in the size of data sets.
C) The test cannot be performed without modifying the code for which the benchmark will be performed on.
D) It can be impractical to determine the running time for algorithms with very large data sets.
Correct Answer
verified
Multiple Choice
A) pattern analysis
B) complexity analysis
C) cost analysis
D) micro analysis
Correct Answer
verified
True/False
Correct Answer
verified
True/False
Correct Answer
verified
Multiple Choice
A) memoization
B) prioritization
C) amortization
D) memorization
Correct Answer
verified
True/False
Correct Answer
verified
True/False
Correct Answer
verified
True/False
Correct Answer
verified
Multiple Choice
A) The insertion sort algorithm repeatedly swaps elements that are out of order in a list until they are completely sorted.
B) The insertion sort algorithm repeatedly swaps the smallest element in an unsorted portion of a list with an element at the start of the unsorted portion.
C) The insertion sort algorithm repeatedly inserts the i-th element into its proper place in the first i items in the list.
D) The insertion sort algorithm partitions a list around a pivot item and sorts the resulting sublists.
Correct Answer
verified
True/False
Correct Answer
verified
Showing 21 - 40 of 51
Related Exams