Data Structures & AlgorithmsVery hardICPC regional · parallel algorithms

Problem: Which operation does the 'pointer jumping' technique speed up in parallel algorithms, and what is its complexity?

  1. A. Finding list ranks or tree depths in O(log n) rounds
  2. B. Matrix multiplication in O(n)
  3. C. Sorting in O(1)
  4. D. Shortest path in O(V)

Correct answer: A. Finding list ranks or tree depths in O(log n) rounds

Repeated doubling of pointers finishes list ranking in log n rounds.

More Coding Interview Problems questions

Exams that ask this topic