Mavzu: daraxtsimon ma’lumotlar tuzilmasi



Yüklə 14,58 Kb.
tarix03.06.2023
ölçüsü14,58 Kb.
#124527

AMALIYOT ISHI-5


MAVZU: DARAXTSIMON MA’LUMOTLAR TUZILMASI



  1. Daraxt ko’rigini tashkil qiling.




  1. Inorder (simmetrik)
    (b) Preorder (to’g’ri)
    (c) Postorder (teskari)




  1. Dastur kodini yozing( har bir talaba o’z variantidagi sonlarni kiritib natija olishi kerak)

Variantlar



  1. 5, 3 ,2, 10, 14, 13 ,56, 12, 33, 23, 1,32,35,70,59

  2. 7,4,2,5, 14,12,13,11,18,15,17,16,3,1,20,19,24

  3. 19, 14,12,15,13,10,21,19,24,28,25,26,23,33,30,35,34

  4. 35,44,21,25,23,20, 42,43, 41, 15, 17,47,45,46,49,48

  5. 43, 30,25,27,29, 26, 49,46, 48,47, 55,53,54,59,58,60

  6. 30,25,26,23,24,39,35, 33,34,41,40,42,31,32,46,44,45,

  7. 42, 30,35,33,36,34,29,27,28,26,47,45,46,43

  8. 36,23,25,24,20,21,24,15,13,40,37,38,39,42

  9. 19, 11,9, 5,8,10,15,14,17,16,18,25,22,27,26

  10. 33,24,27,20, 28,14,16,11,13,10,38,35,34,36

  11. 22,17,14,19,18,13,10,9,12,26,24,23,25

  12. 43, 33, 24,36,35,37,26,22,23,19,18,47,45,44,46,49,48,50

  13. 25, 20,17,19,16,22,21,24,23,34,30,31,29, 38,35,36, 40,39,44,

  14. 40,14,10,13,12,8,9,7,17,15,16,44,42,41,43,47

  15. 18, 9,4,6,3,5,7,23,20,19,22,21,28,25,26,24

  16. 17,8,3,4,2,1,5,20,18,19,25,23,27,26,22, 30,35,33,34,37

  17. 18,14,16,15,17,10,13,11,8,9,7,24,22,26,25,27

  18. 36,45,40,42,41,38,37,39,19,24,16,17,15,29,25

  19. 19,14,16,12,13,10,11,30, 40,35,36,33,34,31

  20. 14, 24,10, 8,9,4,5,3,1,2,29,24, 26, 25,23,33,30,35,34

  21. 5, 3 ,2, 10, 14, 13 ,56, 12, 33, 23, 1,32,35,70,59

  22. 7,4,2,5, 14,12,13,11,18,15,17,16,3,1,20,19,24

  23. 19, 14,12,15,13,10,21,19,24,28,25,26,23,33,30,35,34

  24. 35,44,21,25,23,20, 42,43, 41, 15, 17,47,45,46,49,48

  25. 43, 30,25,27,29, 26, 49,46, 48,47, 55,53,54,59,58,60

  26. 30,25,26,23,24,39,35, 33,34,41,40,42,31,32,46,44,45,

  27. 42, 30,35,33,36,34,29,27,28,26,47,45,46,43

  28. 36,23,25,24,20,21,24,15,13,40,37,38,39,42

  29. 19,16,14,12,4,18,6,5, 3,35,36,33,34,31,45

  30. 14, 4,11, 18,9,14,5,3,10,20,29,24, 26, 25,23,33,30,35,34

  31. 33,14,17,10, 20,24,26,21,23,18,28,45,34,36,49

Yüklə 14,58 Kb.

Dostları ilə paylaş:




Verilənlər bazası müəlliflik hüququ ilə müdafiə olunur ©azkurs.org 2024
rəhbərliyinə müraciət

gir | qeydiyyatdan keç
    Ana səhifə


yükləyin