Khipha ama-algorithm okuhlunga okukhulunywe ngawo esigabeni esilandelayo.
Context:Nakuba kunenqwaba yama-algorithm okuhlunga, ekusetshenzisweni okusebenzayo ama-algorithm ambalwa yiwona aphambili. Ukuhlunga kokufaka kusetshenziswa kabanzi kumaqoqo amancane wedatha, kuyilapho kusetshenziselwa amaqoqo amakhulu wedatha ukuhlunga okusebenza kahle, ikakhulukazi ukuhlunga kwenqwaba, ukuhlanganisa ukuhlunga, noma ukuhlunga okusheshayo. Ukuqaliswa kahle ngokuvamile ukusebenzisa i-algorithm hybrid, ukuhlanganisa i-algorithm asymptotically ephumelelayo yokuhlunga okuphelele ngokuhlunga kokufaka kuhlu oluncane ezansi kokuphindaphindeka. Ukuqaliswa okulungiselelwe kakhulu kusebenzisa izinhlobo eziyinkimbinkimbi, njenge-Timsort (ukuhlanganisa ukuhlunga, ukuhlunga ukufaka, kanye nomqondo owengeziwe), osetshenziswa ku-Android, Java, nePython, kanye ne-introsort (i-quicksort ne-heapsort), esetshenziswa (ngamafomu ahlukahlukene) kwezinye izinhlelo zokuhlunga ze-C ++ naku-.NET.  Ukuze uthole idatha elinganiselwe, njengezinombolo ezisesikhaleni esinqunyiwe, izinhlobo zokusabalalisa ezifana nokubala ukuhlunga noma ukuhlunga kwe-radix zisetshenziswa kabanzi. Ukuhlunga kwe-bubble nokwehlukahluka akuvamile ukusetshenziswa ekusebenzeni, kodwa kuvame ukutholakala ekufundiseni nasezingxoxweni zomqondo.  Lapho zihlukanisa izinto ngokomzimba (njengezincwadi zezinhlamvu zamagama, izivivinyo noma izincwadi) abantu ngokujwayelekile basebenzisa ukuhlunga kokufaka amasethi amancane. Ukuze uthole amasethi amakhulu, abantu bavame ukuqala ngamabhakede, njengokubhala uhlamvu lokuqala, futhi amabhakede amaningi avumela ukuhlunga okusebenzayo kwamasethi amakhulu kakhulu. Ngokuvamile indawo ishibhile, njengokusakaza izinto phansi noma endaweni enkulu, kodwa imisebenzi iyabiza, ikakhulukazi ukuhambisa into ibanga elikhulu <unk> indawo yokubhekisela ibalulekile. Ukuhlanganisa ukuhlunga nakho kuyasebenza ezintweni ezibonakalayo, ikakhulukazi njengoba kungasetshenziswa izandla ezimbili, eyodwa yohlu ngalunye ukuhlanganisa, kanti amanye ama-algorithms, afana ne-heapsort noma i-quicksort, awakufanelekeli ukusetshenziswa ngabantu. Amanye ama-algorithm, njengokuhlunga umtapo wezincwadi, okuhlukile kokuhlunga kokufaka okushiya izikhala, nakho kuyasebenza ekusetshenzisweni ngokomzimba.
Ukuhlunga kokufaka, ukuhlunga kwenqwaba, ukuhlunga kokuhlanganisa, ukuhlunga okusheshayo, ukuhlunga kwesikhathi, ukuhlunga kwe-radix, ukuhlunga kwe-bubble, ukuhlunga kwebhakede, ukuhlunga komtapo wolwazi, kanye nama-algorithm we-hybrid ahlanganisa ama-algorithm amaningi wokuhlunga.