MathOverflow is a question and answer site for professional mathematicians. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

It's known that finding the intersection of n halfplanes in 2-d takes $\Omega(n\log n)$ time. Does the lower bound apply if we change the question to deciding whether the intersection is non-empty?

share|cite|improve this question
up vote 2 down vote accepted

It seems this can be done in linear time. Algorithms that solve linear programs are also capable of deciding whether the LP is feasible or not and 2-d linear programs can be solved in linear time (linear in terms of the number of constraints). So to decide whether a set of n halfplanes is non-empty or not, just solve the LP that has those halfplanes as its constraints with any objective function.

share|cite|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.