Questão 1
Questão
An AVL tree is an example of a balanced tree.
Questão 2
Questão
When the Avl is in a left left case which of these steps should you take
to correct the height of the tree ?
Responda
-
A) Right
-
B) left
-
C) Left Right
-
D) Rgiht left
Questão 3
Questão
Why is a balance condition imporant in binary search trees like AVL?
Questão 4
Questão
What is a "balanced" binary tree?
Responda
-
A) A tree whose leaves are all on the same depth
-
B) A complete and full tree
-
C) A tree whose left and right subtrees differ by at most 1 in depth
-
D) A binary tree cannot be balanced
Questão 5
Questão
What’s the average case for search? Worst case?
Responda
-
O(log n); O(log n)
-
none of the above
Questão 6
Questão
What is an AVL tree?
Responda
-
A) a tree with lots of leaves
-
B) a self balancing binary tree
-
C) there is no such thing
-
D) a tree with the parent being the smallest value
Questão 7
Questão
When inserting into an AVL tree, the first step is to insert a node in its proper place according to BST rules.
After BST insertion however, the tree is not guaranteed to be an AVL tree. What is the next step in the algorithm?
Responda
-
A. if the new node is a left leaf, rotate left
-
B. update the height and determine the balance of the tree recursively
-
C. if the new node is a right leaf, rotate right
-
D. deconstruct the tree and build it again from scratch
Questão 8
Questão
What makes AVL trees different from Binary Search Trees?
Questão 9
Questão
What is an AVL tree visualization?
Responda
-
A. an AVL tree is a self-balancing binary search tree.
-
B. an AVL tree is a non-balancing binary search tree.
-
C. an AVL tree is a back-balancing binary search tree.
-
D. an AVL tree is a front-balancing binary search tree.
Questão 10
Questão
An Adelson-Velskii Landis (AVL) tree is a self-balancing Binary Search Tree(BST) that maintains it's height to be O(log N) when having N vertices in the AVL tree.
Questão 11
Questão
When rotating an AVL tree which of the following are a case where you would need to rotate?
Responda
-
A. left,left
-
B. left,right
-
C. right,right
-
D. right,left
-
E. All of the above
Questão 12
Questão
In average case, what is the efficiency of insertion of an AVL tree
Responda
-
A. logn
-
B. nlogn
-
C. n
-
D. n2
Questão 13
Questão
What do AVL trees do?
Questão 14
Questão
What is the worst case possible height of AVL tree?
Responda
-
A.n
-
B.n^2
-
C.1.44 log n
-
D.n+2
Questão 15
Questão
What is the term for AVL tree balancing?
Responda
-
zig-zag
-
none of the above
Questão 16
Questão
What is the biggest height difference an AVL tree can have without rotating?