Practice free →
Home › For broad-phase collision, SWEEP-AND-PRUNE (a.k.…

For broad-phase collision, SWEEP-AND-PRUNE (a.k.a. sort-and-sweep) achieves average performance close to which order on N objects?

AO(N log² N) regardless of scene
BO(N + k) for k overlapping pairs
CO(N²) tests every frame always
DO(N!) for the worst case always
Answer & Solution
Correct answer: B. O(N + k) for k overlapping pairs
Ericson Ch. 7: sort projection intervals each axis; sweep; coherent across frames (objects don't move much). Output sensitive in number of overlapping pairs k.
Solve this in the app — Practice practice & 24k+ MCQs →
Related questions