1.

What is the worst case analysis of shell sort using Shell’s increments?(a) O(N)(b) O(N^2)(c) O(N^1/2)(d) O(N^3/2)I got this question in semester exam.This key question is from Shell sort in chapter Sorting of Data Structures & Algorithms II

Answer»

Right option is (b) O(N^2)

The EXPLANATION is: The WORST case ANALYSIS is mathematically found to be O(N^2). The proof is RATHER complicated.



Discussion

No Comment Found

Related InterviewSolutions