Algorithms For Dummies


Arranging and Searching Data



Download 7,18 Mb.
Pdf ko'rish
bet246/651
Sana15.07.2021
Hajmi7,18 Mb.
#120357
1   ...   242   243   244   245   246   247   248   249   ...   651
Bog'liq
Algorithms

  Arranging and Searching Data 

     135


Of course, simply sorting the data isn’t enough. If you have an employee database 

sorted by last name, yet need to look up an employee by birth date, the sorting 

isn’t useful. (Say you want to find all of the employees who have a birthday on a 

certain day.) To find the birth date you need, you must still search the entire data-

set one item at a time. Consequently, sorting must focus on a particular need. Yes, 

you needed the employee database sorted by department at one point and by last 

name at another time, but now you need it sorted by birth date in order to use the 

dataset effectively.

The need to maintain several sorted orders for the same data is the reason that 

developers created indexes. Sorting a small index is faster than sorting the entire 

dataset. The index maintains a specific data order and points to the full dataset so 

that you can find what you need extremely fast. By maintaining an index for each 

sort requirement, you can effectively cut data access time and allow several people 

to access the data at the same time in the order in which they need to access it. The 

“Relying on Hashing” section, later in this chapter, gives you an idea of how 

indexing works and why you really need it in some cases, despite the additional 

time and resources needed to maintain the indexes.

Many ways are available to categorize sorting algorithms. One of these ways is the 

speed of the sort. When considering how effective a particular sort algorithm is at 

arranging the data, timing benchmarks typically look at two factors:




Download 7,18 Mb.

Do'stlaringiz bilan baham:
1   ...   242   243   244   245   246   247   248   249   ...   651




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©hozir.org 2025
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