Divided Over Time
CDQ divide and conquer: what shape of problem, and what bound?
Offline problems where you sort on one dimension, recurse, and let the left half's modifications apply to the right half's queries. Three-dimensional dominance counting is the canonical case, at O(nlogn) with a sorted merge for the third dimension.
Offline problems where you sort on one dimension, recurse, and let the left half's modifications apply to the right half's queries. Three-dimensional dominance counting is the canonical case, at O(nlog2n) with a Fenwick tree for the third dimension.
Online problems where you sort on one dimension, recurse, and let the left half's modifications apply to the right half's queries. Three-dimensional dominance counting is the canonical case, at O(nlog2n) with a Fenwick tree for the third dimension.
Offline problems where you sort on one dimension, recurse, and let the right half's modifications apply to the left half's queries. Three-dimensional dominance counting is the canonical case, at O(nlog2n) with a Fenwick tree for the third dimension.
Sign in to answer questions and track your progress
Sign In