PDS - 04225 Balanced Trees - Chapter 7

Quiz
•
Computers
•
University
•
Medium
Rafael Orta
Used 371+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Indicate whether the tree is an AVL tree
Yes
No
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Indicate whether the tree is an AVL tree
Yes
No
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Indicate whether the tree is an AVL tree
Yes
No
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the minimum possible height of an AVL tree with 7 nodes?
2
3
5
7
Answer explanation
The minimum depth is the number of nodes along the shortest path from the root node down to the nearest leaf node. The minimum would be a perfect tree
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the maximum possible height of an AVL tree with 7 nodes?
2
3
5
7
Answer explanation
If there are n nodes in AVL Tree, its maximum height can not exceed 1.44log2n. Approximately 1.5 times the minimum, since the minimum is 2 , then 2 * 1.5 = 3
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
An AVL tree maintains the minimum possible height.
True
False
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which red-black tree requirement does this BST not satisfy?
Root node must be black
None
A red node's children cannot be red.
All paths from a node to a null leaf nodes must have the same number of black nodes.
Create a free account and access millions of resources
Similar Resources on Wayground
15 questions
AlgoMania Quiz

Quiz
•
University
15 questions
Quiz 3 - 61_O

Quiz
•
University
15 questions
special exam in BINARY TREE

Quiz
•
University
10 questions
Quiz despre B+ Tree

Quiz
•
University
10 questions
GODOT ENGINE

Quiz
•
University
10 questions
Trees

Quiz
•
University
8 questions
FOS Ch.1 PArt 4 (QUIZ 4)

Quiz
•
University
9 questions
Data structures

Quiz
•
University
Popular Resources on Wayground
50 questions
Trivia 7/25

Quiz
•
12th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
11 questions
Negative Exponents

Quiz
•
7th - 8th Grade
12 questions
Exponent Expressions

Quiz
•
6th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
20 questions
One Step Equations All Operations

Quiz
•
6th - 7th Grade
18 questions
"A Quilt of a Country"

Quiz
•
9th Grade