Data Structures & AlgorithmsVery hardICPC regional · offline techniques

Problem: What is the main idea of the 'parallel binary search' technique?

  1. A. Run a single search with multiple threads
  2. B. Run binary searches for many queries simultaneously, sharing sweeps over the data
  3. C. Sort queries by value only
  4. D. Use hashing to skip comparisons

Correct answer: B. Run binary searches for many queries simultaneously, sharing sweeps over the data

Each round splits queries by midpoint and processes them together in one pass.

More Coding Interview Problems questions

Exams that ask this topic