mirror of
https://github.moeyy.xyz/https://github.com/trekhleb/javascript-algorithms.git
synced 2024-12-25 22:46:20 +08:00
adds note explaining origin of the name 'radix sort' (#293)
This commit is contained in:
parent
43e1cca3e6
commit
f36381c7ec
@ -7,6 +7,13 @@ is required, but because integers can represent strings of characters
|
|||||||
(e.g., names or dates) and specially formatted floating point numbers, radix
|
(e.g., names or dates) and specially formatted floating point numbers, radix
|
||||||
sort is not limited to integers.
|
sort is not limited to integers.
|
||||||
|
|
||||||
|
*Where does the name come from?*
|
||||||
|
|
||||||
|
In numeral systems, the word **radix** represents how many digits are possible.
|
||||||
|
For example, a binary system (using numbers 0 and 1) has a radix of 2 and a decimal
|
||||||
|
system (using numbers 0 to 9) has a radix of 10.
|
||||||
|
|
||||||
|
|
||||||
## Efficiency
|
## Efficiency
|
||||||
|
|
||||||
The topic of the efficiency of radix sort compared to other sorting algorithms is
|
The topic of the efficiency of radix sort compared to other sorting algorithms is
|
||||||
|
Loading…
Reference in New Issue
Block a user