O GoConqr está de visual novo! Conte para nós o que você achou.

Quiz

0. AVL Tree Visualization

Mena Sargios 16 perguntas

Fazer o quiz

Perguntas do quiz (16)

  1. 1An AVL tree is an example of a balanced tree.
    1. AVerdadeiro
    2. BFalso
  2. 2When the Avl is in a left left case which of these steps should you take
    to correct the height of the tree ?
    1. AA) Right
    2. BB) left
    3. CC) Left Right
    4. DD) Rgiht left
  3. 3Why is a balance condition imporant in binary search trees like AVL?
    1. AIt ensures that the depth of the tree is O(logN)
    2. Bnone of the above
  4. 4What is a "balanced" binary tree?
    1. AA) A tree whose leaves are all on the same depth
    2. BB) A complete and full tree
    3. CC) A tree whose left and right subtrees differ by at most 1 in depth
    4. DD) A binary tree cannot be balanced
  5. 5What’s the average case for search? Worst case?
    1. AO(log n); O(log n)
    2. Bnone of the above
  6. 6What is an AVL tree?
    1. AA) a tree with lots of leaves
    2. BB) a self balancing binary tree
    3. CC) there is no such thing
    4. DD) a tree with the parent being the smallest value
  7. 7When 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?
    1. AA. if the new node is a left leaf, rotate left
    2. BB. update the height and determine the balance of the tree recursively
    3. CC. if the new node is a right leaf, rotate right
    4. DD. deconstruct the tree and build it again from scratch
  8. 8What makes AVL trees different from Binary Search Trees?
    1. AIn an AVL tree every node in the tree, the height of the left and right subtrees can differ by at most one.
    2. Bnone of the above
  9. 9What is an AVL tree visualization?
    1. AA. an AVL tree is a self-balancing binary search tree.
    2. BB. an AVL tree is a non-balancing binary search tree.
    3. CC. an AVL tree is a back-balancing binary search tree.
    4. DD. an AVL tree is a front-balancing binary search tree.
  10. 10An 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.

    1. AVerdadeiro
    2. BFalso

Informações

Descrição
Algorithms and Data Structures | Test 3 Review | CSCI-3110-002 MTSU
Idioma
English
Visualizações
829
Etiquetas
mtsucscitest
Avaliação
Ainda sem avaliações
Avalie este quiz
Avalie este quiz

Fale Conosco

Sobre o que é sua mensagem?

O que você acha do novo visual?

Você gostou?