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

Quiz

2. Red Black Tree

Mena Sargios 19 perguntas 3.244 visualizações

Fazer o quiz

Perguntas do quiz (19)

  1. 1
    What color must the leaves be in a red-black tree?
    1. ABlack
    2. BRed
  2. 2The number of black nodes from the root to a node is the node's
    ____ ______; the uniform number of black nodes in all paths from
    root to the leaves is called the ____ _____ of the red–black tree.
    1. AA) red height, red depth
    2. BB) red depth, red height
    3. CC) black depth, black height
    4. DD) black height, black depth
  3. 3What makes a tree a red-black tree?
    1. AAn extra bit on each node which determines the color to help balance it.
    2. Bnone of the above
  4. 4If a node is red, what color are its children?
    1. AA) Red
    2. BB) Black
    3. CC) Blue
    4. DD) Red node has to be leaf
  5. 5What are the Red and black colors used for?
    1. AA.to make it easier to read
    2. BB.they serve no purpose
    3. CC.they show the nodes with no children
    4. DD.They are part of the balancing of the tree
  6. 6What time does A red-black tree gurantee for searching?
    1. AO(log n) time
    2. Bnone of the above
  7. 7In a Red-Black Tree, the root of tree is always black.
    1. AVerdadeiro
    2. BFalso
  8. 8In a red black tree, every node is either red or black?
    1. AVerdadeiro
    2. BFalso
  9. 9In a Red-Black Tree, if a node is red, its child must be _________.
    1. ABlack
    2. BRed
  10. 10What is the searching time of a red-black tree?
    1. AA) O(n log n)
    2. BB) O(log n)
    3. CC) O(n^2)
    4. DD) O(n)

Informações

Descrição
Algorithms and Data Structures | Test 3 Review | CSCI-3110-002 MTSU
Idioma
English
Visualizações
3.244
Etiquetas
mtsucsci3110
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?