AceSorting  0.2
Sorting algorithms for Arduino (Bubble Sort, Insertion Sort, Shell Sort, Comb Sort, Quick Sort)
Functions
selectionSort.h File Reference
#include "swap.h"
Include dependency graph for selectionSort.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::selectionSort (T data[], uint16_t n)
 Selection sort. More...
 

Detailed Description

Selection sort.

Definition in file selectionSort.h.

Function Documentation

◆ selectionSort()

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

Selection sort.

Average complexity: O(n^2)

Template Parameters
Ttype of data to sort

Definition at line 45 of file selectionSort.h.