A) quicksort
B) insertion sort
C) bubble sort
D) merge sort
Correct Answer
verified
True/False
Correct Answer
verified
True/False
Correct Answer
verified
Multiple Choice
A) O(n log n)
B) O(n^n)
C) O(n**2)
D) O(n**3)
Correct Answer
verified
Multiple Choice
A) As a rule, any reduction in the order of magnitude of complexity is preferable to a tweak in code that reduces the constant of proportionality.
B) As a rule, any reduction in the constant of proportionality is preferable to a tweak that reduces the order of magnitude in complexity.
C) As a rule, any reduction in the lines of code required to make an algorithm function is desirable to that of faster run times.
D) As a rule, any reduction in the use of memory required by an algorithm is preferred over a tweak that improves run times.
Correct Answer
verified
Multiple Choice
A) benchmarking
B) instruction counting
C) set analyzing
D) process profiling
Correct Answer
verified
Multiple Choice
A) The selection sort algorithm repeatedly swaps elements that are out of order in a list until they are completely sorted.
B) The selection 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 selection sort algorithm repeatedly inserts the i-th element into its proper place in the first i items in the list.
D) The selection sort algorithm partitions a list around a pivot item and sorts the resulting sublists.
Correct Answer
verified
Multiple Choice
A) time.ctime()
B) time.time()
C) time.count()
D) time.epoch()
Correct Answer
verified
True/False
Correct Answer
verified
True/False
Correct Answer
verified
True/False
Correct Answer
verified
Showing 41 - 51 of 51
Related Exams