The usual \(\Theta (n^{2})\) implementation of Insertion Sort to sort ab array uses linear
search to identify the position where an element is to be inserted into the already
sorted part of the array. If, instead, we use binary search to identify the position,
the worst case running time will
- Aremain \(\Theta (n^{2})\)
- Bbecome \(\Theta (n(logn)^{2})\)
- Cbecome\(\Theta\)(nogn)
- Dbecome\(\Theta\)(n)