AceSorting  0.1.0
Sorting algorithms for Arduino (Bubble Sort, Insertion Sort, Shell Sort, Comb Sort, Quick Sort)
Functions
insertionSort.h File Reference
#include "swap.h"
Include dependency graph for insertionSort.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

template<typename T >
void ace_sorting::insertionSort (T data[], uint16_t n)
 Insertion sort. More...
 

Detailed Description

Insertion sort.

Definition in file insertionSort.h.

Function Documentation

◆ insertionSort()

template<typename T >
void ace_sorting::insertionSort ( data[],
uint16_t  n 
)

Insertion sort.

Average complexity: O(n^2)

Template Parameters
Ttype of data to sort

Definition at line 45 of file insertionSort.h.