GoConqr hat ein neues Design! Sag uns, wie es dir gefällt.

Quiz

2. Red Black Tree

Mena Sargios 19 Fragen 3.244 Aufrufe

Quiz starten

Fragen in diesem 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. ARichtig
    2. BFalsch
  8. 8In a red black tree, every node is either red or black?
    1. ARichtig
    2. BFalsch
  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)

Informationen

Beschreibung
Algorithms and Data Structures | Test 3 Review | CSCI-3110-002 MTSU
Sprache
English
Aufrufe
3.244
Schlagwörter
mtsucsci3110
Bewertung
Noch keine Bewertungen
Bewerte dieses Quiz
Bewerte dieses Quiz

Feedback

Worum geht es?

Wie gefällt dir das neue Design?

Dein Eindruck