Comb Sort

Comb Sort is mainly an improvement over Bubble Sort. Bubble sort always compares adjacent values. So all inversions are removed one by one. Comb Sort improves on Bubble Sort by using gap of size more than 1. The gap starts with a large value and shrinks by a factor of 1.3 in every iteration until … Continue reading Comb Sort

Searching and Sorting Algorithms

Searching Algorithms : Linear SearchBinary SearchJump SearchInterpolation SearchExponential SearchSublist Search (Search a linked list in another list)Fibonacci SearchThe Ubiquitous Binary SearchRecursive program to linearly search an element in a given arrayRecursive function to do substring searchUnbounded Binary Search Example (Find the point where a monotonically increasing function becomes positive first time) Sorting Algorithms: Selection SortBubble … Continue reading Searching and Sorting Algorithms