Radix Sort

From NovaOrdis Knowledge Base
Revision as of 01:18, 10 August 2018 by Ovidiu (talk | contribs) (→‎Overview)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Internal

Overview

CLRS page 197.

If there are n integers to sort, each integer has d digits, and each digit can take up to k possible values, then radix sort can sort the numbers in Θ(d(n + k)) time.

Worst-case time Θ(d(n + k))
Average-case time Θ(d(n + k))
Best-case time