(1) what is the height of node "C" ? (2) what is the height of node "D" ? (3) what is the height of node "F" ?

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

(1) what is the height of node "C" ?

(2) what is the height of node "D" ?

(3) what is the height of node "F" ?

(4) what is the left-subtree-height of "C"

(5) what is the right-subtree-height of "C"

(6) what is the balance factor of "C' ?

(7) what is the left-subtree-height of "D"

(8) what is the right-subtree-height of "D"

(9) what is the balance factor of "D" ?

(10) what is the left-subtree-height of "F"

(11) what is the right-subtree-height of "F"

(12) what is the balance factor of "F" ?

(13) Please write down the unbalance nodes if any. If every node is balanced, just enter "none". If more than one node is unbalanced, separate them by one comma. Ex: Y,X

(14) There are four imbalance cases: LL, LR, RL, and RR. Please indicate the imbalance case of the previous unbalanced node . If every node balanced, just enter "none". If more than one node is unbalanced, just indicate the case for the first unbalanced node.

(15) If an AVL tree has N elements, what could be the Big O notation of the search function of this AVL tree in terms of N ?

Please answer each question for the tree below by filling up each blank. Please
just enter a number for each blank. Ex, if you believe that the height of a given
node is 10, just enter 10.
A
B
D
C
F
E
G
Transcribed Image Text:Please answer each question for the tree below by filling up each blank. Please just enter a number for each blank. Ex, if you believe that the height of a given node is 10, just enter 10. A B D C F E G
Expert Solution
steps

Step by step

Solved in 3 steps

Blurred answer
Knowledge Booster
Binary Tree
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education