AMALIYOT ISHI-5
MAVZU: DARAXTSIMON MA’LUMOTLAR TUZILMASI
Daraxt ko’rigini tashkil qiling.
Inorder (simmetrik)
(b) Preorder (to’g’ri)
(c) Postorder (teskari)
Dastur kodini yozing( har bir talaba o’z variantidagi sonlarni kiritib natija olishi kerak)
Variantlar
5, 3 ,2, 10, 14, 13 ,56, 12, 33, 23, 1,32,35,70,59
7,4,2,5, 14,12,13,11,18,15,17,16,3,1,20,19,24
19, 14,12,15,13,10,21,19,24,28,25,26,23,33,30,35,34
35,44,21,25,23,20, 42,43, 41, 15, 17,47,45,46,49,48
43, 30,25,27,29, 26, 49,46, 48,47, 55,53,54,59,58,60
30,25,26,23,24,39,35, 33,34,41,40,42,31,32,46,44,45,
42, 30,35,33,36,34,29,27,28,26,47,45,46,43
36,23,25,24,20,21,24,15,13,40,37,38,39,42
19, 11,9, 5,8,10,15,14,17,16,18,25,22,27,26
33,24,27,20, 28,14,16,11,13,10,38,35,34,36
22,17,14,19,18,13,10,9,12,26,24,23,25
43, 33, 24,36,35,37,26,22,23,19,18,47,45,44,46,49,48,50
25, 20,17,19,16,22,21,24,23,34,30,31,29, 38,35,36, 40,39,44,
40,14,10,13,12,8,9,7,17,15,16,44,42,41,43,47
18, 9,4,6,3,5,7,23,20,19,22,21,28,25,26,24
17,8,3,4,2,1,5,20,18,19,25,23,27,26,22, 30,35,33,34,37
18,14,16,15,17,10,13,11,8,9,7,24,22,26,25,27
36,45,40,42,41,38,37,39,19,24,16,17,15,29,25
19,14,16,12,13,10,11,30, 40,35,36,33,34,31
14, 24,10, 8,9,4,5,3,1,2,29,24, 26, 25,23,33,30,35,34
5, 3 ,2, 10, 14, 13 ,56, 12, 33, 23, 1,32,35,70,59
7,4,2,5, 14,12,13,11,18,15,17,16,3,1,20,19,24
19, 14,12,15,13,10,21,19,24,28,25,26,23,33,30,35,34
35,44,21,25,23,20, 42,43, 41, 15, 17,47,45,46,49,48
43, 30,25,27,29, 26, 49,46, 48,47, 55,53,54,59,58,60
30,25,26,23,24,39,35, 33,34,41,40,42,31,32,46,44,45,
42, 30,35,33,36,34,29,27,28,26,47,45,46,43
36,23,25,24,20,21,24,15,13,40,37,38,39,42
19,16,14,12,4,18,6,5, 3,35,36,33,34,31,45
14, 4,11, 18,9,14,5,3,10,20,29,24, 26, 25,23,33,30,35,34
33,14,17,10, 20,24,26,21,23,18,28,45,34,36,49
Dostları ilə paylaş: |