5-amaliy mashg’ulot
Berilgan sonlar ketma-ketligini linear search va binary search yordamida
ishlash vaqti hamda ularning ishlash vaqti (ms) va elementlar soni n uchun
grafik chizib tasvirlang.
1. -56 -4 -79 -3 70 -86 99 99 0 -4 92 63 50 51 74
2. -79 -53 51 -45 85 36 84 -82 -24 37 -49 -38 80 1 -37
3. 19 -92 -4 55 23 55 -81 -98 77 -86 -57 9 -85 -48 95
4. 68 92 -53 8 -92 94 52 -22 93 -95 -99 -55 74 -60 41
5. -73 69 65 -20 -76 66 -36 -65 73 -36 44 76 -19 -64 59
6. -71 83 -29 -47 -55 -49 -39 6 -57 -100 59 -93 -96 39 26
7. 53 -100 91 -28 -9 94 60 56 6 57 4 56 -26 -56 -37