FS Mod3
FS Mod3
FB SD
CL HN PA WS
AX DE FT JD NR RF TK YJ
0 FB 10 8 8 HN 7 1
ROOT 9 1 JD 9 KF 0 3
2 RF 10 CL 4 12
3 SD 6 13 11 NR
4 AX 12 DE
5 YJ 13 WS 14 5
6 PA 11 2 14 TK
7 FT
04/10/2024 dept. of ISE 20
With the insertion of following key to previous tree : LV NP MB TM UF ND TS NK
KF
FB SD
CL HN PA WS
AX DE FT JD NR RF TK YJ
LV
LA NP
MB
ND
NK
04/10/2024 dept. of ISE 21
AVL Tree
• A height-balanced k tree ( HB(k) tree)
•Allowable difference in the height of any two sub-tree is k
AVL tree is a self-balancing Binary Search Tree (BST) where the difference between
heights of left and right subtrees cannot be more than one for all nodes.
• AVL tree address the problem of keeping an index in sorted order cheaply
but not on binary search seek.
• Paged binary tree attempts to address the problem by locating multiple
binary nodes on the same disk page.
• Page is a unit of disk I/O for handling seek and transfer of disk data
• Paged Binary Tree: Divide a binary tree into pages and then store each page
in a block of contiguous locations on disk.
• If every page holds 7 keys, 511 nodes(keys) in only three seeks