Graph Theory37 sections · 1633 units
Open in Course

Quiz: Sparse Table Construction

Knowledge check

Check Your Understanding

You build a binary lifting table for a tree with nn nodes. The table has dimensions n×log2nn \times \lceil\log_2 n\rceil. What does up[v][k] store?

  1. A.The 2k2^k-th ancestor of node vv
  2. B.The kk-th child of node vv
  3. C.The node at depth kk in vv's subtree
  4. D.The kk-th node visited after vv in DFS
Start the roadmap to answer the quizzes and solve the challenges