Please answer True or False and fill in the blank. Thanks for the help in advance.
e) A function can be both O(n) and O(n^2).
f) An array of 100 integers can be sorted in O(1) time.
g) An array of n 10-digit integers can be sorted in O(n) time.
h) Heap sort is an in-place sorting algorithm.
i) Merge sort is an in-place sorting algorithm.
j) Merge sort is a stable sorting algorithm.
k) Given an unsorted array of n integers, the median element in the array can be found in O(n) time in the average case.
1) Either the same depth or depths differing by one.
Fill in the blanks:
a) n + n log n = O(n log n)
b) n^3 log n = O(n^3 log n)
c) n! + n^2 = O(n!)