+1 vote
in Data Structures & Algorithms II by (110k points)
Which of the following sorting algorithms is closely related to shell sort?

(a) Selection sort

(b) Merge sort

(c) Insertion sort

(d) Bucket sort

I have been asked this question during an interview for a job.

I need to ask this question from Shell sort topic in chapter Sorting of Data Structures & Algorithms II

1 Answer

+1 vote
by (614k points)
selected by
Best answer
The correct choice is (c) Insertion sort

To explain: Shell sort performs an insertion sort on hk independent arrays. It is mainly a variation of insertion sort.

Related questions

Welcome to TalkJarvis QnA, a question-answer community website for the people by the people. On TalkJarvis QnA you can ask your doubts, curiosity, questions and whatever going in your mind either related to studies or others. Experts and people from different fields will answer.