/algorithms

Collection of algorithms from various fields

Primary LanguageC++

Algorithms

Search Algorithms

Binary Search (a/k/a half-interval search or logarithmic search)

Implementation of the binary search in different languages. The underlying data structure is a simple array. It runs at worst logarithmic time, making log n comparisons, where n in the number of elements in the array.

Sorting Algorithms

Insertion Sort