Answer to Question #156803 in Databases | SQL | Oracle | MS Access for Josh

Question #156803

1. An array A[0..n-1] is sorted using the Insertion sort algorithm. The worst case and the best case running time of this computation respectively are


a. O (n log n) and O (n)

b. O (n2) and O (n)

c. O (n log n) and O (n log n)

d. O (n) and O (n log n)


1
Expert's answer
2021-01-23T10:24:13-0500

option b is correct O(n2) and O(n)


Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS