Ask Question
4 April, 02:20

What is the analysis and complexity of a shell sortalgorithms?

+2
Answers (1)
  1. 4 April, 02:35
    0
    Answer: The shell sort is based on insertion sort. Here the list of elements are divided into smaller sub list which are sorted based on insertion sort.

    Its best case time complexity is O (n * logn) and worst case is O (n * log^2 n)

    Explanation:

    Shell sort is an inplace sorting here we begin by dividing the list into sublist and sorting the list with insertion sort. We create interval for dividing the list into sub list until we reach the smallest interval of 1.

    The best case is O (n * logn).
Know the Answer?
Not Sure About the Answer?
Get an answer to your question ✅ “What is the analysis and complexity of a shell sortalgorithms? ...” in 📙 Computers & Technology if there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Search for Other Answers