Ordinal Data - Sorting (Problem / Algorithm)

1 - About

  • Input: array of n numbers, unsorted.
  • Output: array of n numbers, sorted (from smallest to largest)

Possible Assumption:

  • numbers are distinct
  • with duplicates, the problem can even be easier

Sorting has complexity O(n log n) but repeated sorting can be avoided with a better data structure

3 - Illustration

Manual sorting and counting of 4 million London Underground tickets in 1939 to analyse train use across the network.

4 - Algorithm

Data Science
Data Analysis
Data Science
Linear Algebra Mathematics

Powered by ComboStrap