So 53 willbethesecondelementonAfterthat 633 on 233.
We'regonnakeepgoinglikethatontotheveryend, andthekeythingtorememberhereisthatcountingswordis a stablesortingalgorithm, andsothevalueswiththesamekeysinthisexample 53 633 on 233.
Andthistimewe'regonnausethefirstdiditas a key, andyounoticethattherearesomenumberswithoutanynumberinthatplace, sowe'lljustusezeroasthekeyforthosenumbers.
Butwecould'vechosen, forexample, based 100 based 248 oranyotherpositivelydessertforthatmatter.
Andthischoicewillessentiallycomedowntomaking a tradeoffbetweentimeandspacebecausethelargervaluethatwouldchooseforbethemorespacesrecordforthecountysortstep.
Butatthesametime, ah, larger, beorlargerbasewillimply a smaller D orlessnumberofdigitsforeachnumber.
Here's anintroductiontoReddickSortasanexample, let's saywewant a shortdisarrayoffsixintegerseachintegervalleyrangingfromzerothrough 999 andwewanttosoardisarrayinascendingordersothatthesmallestnumbercomesfirst.