Take the 2-minute tour ×
Mathematics Stack Exchange is a question and answer site for people studying math at any level and professionals in related fields. It's 100% free, no registration required.

How many integral values of $(X,Y)$ are there such $$((|X-L_1|+|Y-M_1|)+(|X-L_2|+|Y-M_2|)+\cdots+(|X-L_n|+|Y-M_n|))$$ is minimized?

$10^{-6} < X < 10^6$

$10^{-6} < Y < 10^6$


share|improve this question

closed as off-topic by Jonas Meyer, Yes, Aaron Maroja, JChau, TMM Apr 3 at 20:19

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "This question is missing context or other details: Please improve the question by providing additional context, which ideally includes your thoughts on the problem and any attempts you have made to solve it. This information helps others identify where you have difficulties and helps them write answers appropriate to your experience level." – Jonas Meyer, Yes, Aaron Maroja, JChau, TMM
If this question can be reworded to fit the rules in the help center, please edit the question.

2  
Your link is to an image that is no longer available, and links are discouraged for this reason. Please restore the question to this site. –  Ross Millikan May 3 '12 at 13:24
1  
-1: There is no question. –  spohreis May 3 '12 at 13:43

1 Answer 1

up vote 2 down vote accepted

You want X to be a median of the L's and Y to be a median of the M's. For an even count, this can be any value between the central two. This is stated, but not proved, in Wikipedia's article on the median under an optimality property.

To see why the median is the right answer, if X is greater than all the L's and decreases by 1, the total will decrease by the number of L's. The total will still decrease with decreasing X until there are as many L's above as below X. That is the definition of median.

share|improve this answer
    
When $N$ is odd, there is a unique median, so a unique $X$ and a unique $Y$. –  Gerry Myerson May 3 '12 at 5:56

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