Source code online books for professionals by professionals


Sorting and element uniqueness



Download 4,67 Mb.
Pdf ko'rish
bet231/266
Sana31.12.2021
Hajmi4,67 Mb.
#213682
1   ...   227   228   229   230   231   232   233   234   ...   266
Bog'liq
2 5296731884800181221

Sorting and element uniqueness. Sorting is an important operation and an essential subroutine for several other 
algorithms. In Python, you would normally sort by using the list.sort method or the sorted function, both of which 
use a highly efficient implementation of the timsort algorithm. Other algorithms include insertion sort, selection sort, 
and gnome sort (all of which have a quadratic running time), as well as heapsort, mergesort, and quicksort (which 
are loglinear, although this holds only in the average case for quicksort). For information on the quadratic sorting 
algorithms, see Chapter 5; for the loglinear (divide-and-conquer) algorithms, see Chapter 6. Deciding whether a set  
of real numbers contains duplicates cannot (in the worst case) be solved with a running time better than loglinear.  
By reduction, neither can sorting.


Appendix B 

 List of proBLems And ALgorithms
262

Download 4,67 Mb.

Do'stlaringiz bilan baham:
1   ...   227   228   229   230   231   232   233   234   ...   266




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©hozir.org 2024
ma'muriyatiga murojaat qiling

kiriting | ro'yxatdan o'tish
    Bosh sahifa
юртда тантана
Боғда битган
Бугун юртда
Эшитганлар жилманглар
Эшитмадим деманглар
битган бодомлар
Yangiariq tumani
qitish marakazi
Raqamli texnologiyalar
ilishida muhokamadan
tasdiqqa tavsiya
tavsiya etilgan
iqtisodiyot kafedrasi
steiermarkischen landesregierung
asarlaringizni yuboring
o'zingizning asarlaringizni
Iltimos faqat
faqat o'zingizning
steierm rkischen
landesregierung fachabteilung
rkischen landesregierung
hamshira loyihasi
loyihasi mavsum
faolyatining oqibatlari
asosiy adabiyotlar
fakulteti ahborot
ahborot havfsizligi
havfsizligi kafedrasi
fanidan bo’yicha
fakulteti iqtisodiyot
boshqaruv fakulteti
chiqarishda boshqaruv
ishlab chiqarishda
iqtisodiyot fakultet
multiservis tarmoqlari
fanidan asosiy
Uzbek fanidan
mavzulari potok
asosidagi multiservis
'aliyyil a'ziym
billahil 'aliyyil
illaa billahil
quvvata illaa
falah' deganida
Kompyuter savodxonligi
bo’yicha mustaqil
'alal falah'
Hayya 'alal
'alas soloh
Hayya 'alas
mavsum boyicha


yuklab olish