1.

Comb sort is an improved version of _______(a) Selection sort(b) Bubble sort(c) Insertion sort(d) Merge sortI had been asked this question in quiz.This question is from Sorting in section Sorting of Data Structures & Algorithms II

Answer»

The CORRECT option is (b) Bubble sort

The BEST I can explain: Comb sort compares TWO elements at a VARIABLE gap from each other in each iteration unlike bubble sort where the gap REMAINS 1. This reduces the average time complexity of comb sort.



Discussion

No Comment Found

Related InterviewSolutions