Contents
Chapter 7 · Data Structure and AlgorithmPractice

LEARN WITH HARU

Video Lesson တွေက Haru အတန်းသားတွေအတွက်ပါ

Haru ရဲ့ ITPEC FE Full Course မှာ ယခု သင်ခန်းစာတွေကို တစ်ခုချင်း တစ်ကြောင်းချင်း အသေးစိတ်ရှင််ရှင်းပြထားပါတယ်

အခြေခံ မရှိတဲ့ ကျောင်းသားများစွာဟာလည်း ဒီ Course နဲ့ ပဲ အောင်မြင်ကုန်ကြပါပြီ

အတန်းမအပ်သေးပဲ Haru ဆီမှာ အစမ်းသင်ကြည့်ချင်ပါသလား?

သင်တန်းသားတွေရဲ့ စကားသံများ

သင်တန်းသားတွေရဲ့ စကားသံများ
Learning toolsProgress & bookmarks

Current section

1-4-2 Balanced Tree

p. 415

Progress

Not marked complete

Progress and bookmarks

p. 415 · PDF 425

1-4-2 Balanced Tree

Balanced tree is a tree structure that is reorganized to prevent any decline in access efficiency because the level of only a particular leaf becomes deep by adding or deleting data. (A heap is also a type of balanced tree.) The following two tree structures are the representative balanced trees.

(1) AVL tree

AVL tree is a binary tree where difference in depth between right and left leaves in each node is zero or one.

Figure 7-12  Examples of an AVL tree and a non-AVL tree; original source comparison.
Enlarge original visual
Original source text
Figure 7-12  Examples of an AVL tree and a non-AVL tree 
Source visual description

The original AVL and non-AVL trees retain the node depth annotations and the marked difference in depth.

(2) B tree

B tree is a balanced tree where the concept of a binary tree is developed into n-ary tree. B tree is a data structure that has the following features.

  • • All leaves are at the same level.
  • • Each node except the root has n or more and 2n or fewer elements.
  • • In each node (including the root), the number of child node is “number of
    elements+1”.
  • • Each element in the node is sorted.
Figure 7-13  Image of B tree; original source comparison.
Enlarge original visual
Original source text
Figure 7-13  Image of B tree 
Source visual description

The original B tree shows multi-key nodes, pointer fields and linked groups of keys.

Section progress

Original chapter exercises

Original chapter exercises →

New FE Textbook Vol.1 · IT Fundamentals · First Edition, April 2015