Study

Binary Trees Review

  •   0%
  •  0     0     0

  • What is the height of the tree?
    0
  • Which of these tree traversal methods is used to output the contents of a binary tree in ascending order?
    In-Order
  • In a full binary tree...........................
    Each node has exactly zero or two children
  • What is the MAXIMUM number of nodes in a binary search tree with height = 5 ?
    2^(h+1) – 1 => 2^6-1
  • The ____ of a Binary Search Tree starts by visiting the current node, then its left child node and then its right child node.
    Pre-Order Traversal
  • Preorder Traversal of the tree
    1 4 9 8 5 2 3
  • What are the nodes at depth 2?
    [D,E,F,G]
  • In a full binary tree if number of internal nodes is I, then number of leaves L are?
    Number of Leaf nodes in full binary tree is equal to 1 + Number of Internal Nodes i.e L = I + 1
  • How many levels would a tree have to have be to contain 32 nodes(with the first level being considered as 0)?
    4
  • Which is not a binary search tree?
    B
  • How could I get to the node with the K value?
    root.left.right.right
  • How many pair of sibling nodes are in this Tree?
    3
  • Image What is the node above the node with the value E called?
    parent
  • Post order traversal :
    1abc*+de*f+g*+
  • It is the number of edges from the root to the node.
    Depth of a Node
  • In Order traversal
    40 20 50 10 30
  • Add What is the MINIMUM number of nodes in a binary search tree with height = 5?
    6
  • In array representation of binary tree, if the the data is on ith position what is the position of right child?
    2i+1