 #### Bubble sort

A form of sorting by exchanging that simply interchanges pairs of elements that are out of order in a sequence of passes through the file, until...

#### Insertion sort

Insertion sort is a simple sorting algorithm that builds the final sorted array (or list) one item at a time. It is much less efficient on large...  #### Selection sort

In computer science, selection sort is a sorting algorithm, specifically an in-place comparison sort. It has O(n2) time complexity, making it...

#### Merge sort

In computer science, merge sort (also commonly spelled mergesort) is an efficient, general-purpose, comparison-based sorting algorithm. Most...  #### Quick sort

Quicksort (sometimes called partition-exchange sort) is an O(N log N) efficient sorting algorithm, serving as a systematic method for placing the...

#### Shell sort

A sorting algorithm proposed by Donald Shell in 1959, it is a variant of straight insertion sort that allows records to take long leaps rather...  #### Linear search

In computer science, linear search or sequential search is a method for finding an element within a list. It sequentially checks each element of...

#### Binary search

A searching algorithm that uses a file in which the sort key are in ascending order. The middle key in the file is examined and, depending upon...  #### N queens problem

We have discussed Knight’s tour and Rat in a Maze problems in Set 1 and Set 2 respectively. Let us discuss N Queen as another example problem that... #### Linear search

In computer science, linear search or sequential search is a method for finding an element within a list. It sequentially checks each element of...

#### Binary search

A searching algorithm that uses a file in which the sort key are in ascending order. The middle key in the file is examined and, depending upon...  #### Bubble sort

A form of sorting by exchanging that simply interchanges pairs of elements that are out of order in a sequence of passes through the file, until...

#### Insertion sort

Insertion sort is a simple sorting algorithm that builds the final sorted array (or list) one item at a time. It is much less efficient on large...  #### Selection sort

In computer science, selection sort is a sorting algorithm, specifically an in-place comparison sort. It has O(n2) time complexity, making it...

#### Merge sort

In computer science, merge sort (also commonly spelled mergesort) is an efficient, general-purpose, comparison-based sorting algorithm. Most...  #### Quick sort

Quicksort (sometimes called partition-exchange sort) is an O(N log N) efficient sorting algorithm, serving as a systematic method for placing the...

#### Shell sort

A sorting algorithm proposed by Donald Shell in 1959, it is a variant of straight insertion sort that allows records to take long leaps rather...  #### N queens problem

We have discussed Knight’s tour and Rat in a Maze problems in Set 1 and Set 2 respectively. Let us discuss N Queen as another example problem that...