Kedu usoro na-arụ ọrụ nke ọma mgbe pivots ya na-ekewa ntinye n'ime ndepụta nhata? N'iburu ajụjụ nke mbụ n'uche, dee ihe gbara ya gburugburu bụ́ nke ga-enye azịza ya. Ọ nwere ike ịbụ 1 - 20 ahịrịokwu. Ihe ndị gbara ya gburugburu:
Dịka ọmụmaatụ, tụlee algorithm nke na-edozi ngwa ngwa. Nke a na-edozi nsogbu nke ịhazi ndepụta nke integers nke enyere dị ka ntinye. Ọnọdụ kachasị njọ bụ mgbe a na-edozi ntinye ma ọ bụ na-edozi n'usoro, na algorithm na-ewe oge O ((n2) maka ikpe a. Ọ bụrụ na anyị chere na ngbanwe niile enwere ike nke ndepụta ntinye nwere ike ịbụ, oge nkezi ewepụtara maka nhazi bụ O ((n log n). Ọnọdụ kachasị mma na-eme mgbe pivoting ọ bụla na-ekewa ndepụta ahụ na ọkara, na-achọkwa O ((n log n) oge.