Graph Theory37 sections · 1633 units
Open in CourseQuiz: Path Compression
Knowledge check
Check Your Understanding
You call find(x) on a chain of nodes: . After this single call, what is the depth of node ?
- A., unchanged
- B., because compression halves the chain
- C.
- D., because now points directly to the root