Can You Solve the Following Minimization Problems?

Revision en1, by Noam527, 2024-05-03 18:16:06

I've spent some time on the following problem, which is quite generic:

You are given $$$n$$$ pairs of integers $$$(x_i, y_i)$$$, where $$$n$$$ is even, and $$$1 \leq x_i, y_i \leq M$$$. Your goal is to choose exactly $$$\frac{n}{2}$$$ of them, such that their pointwise sum $$$(X, Y)$$$ minimizes the cost function $$$f(X, Y)$$$. What is the best time complexity you can achieve, given some properties about the function $$$f$$$?

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en12 English Noam527 2024-05-04 19:57:57 3091 Tiny change: '$\alpha = X, \beta = Y$ but this' -> '$\alpha = Y, \beta = X$ but this' (published)
en11 English Noam527 2024-05-04 19:17:43 4558 Tiny change: '$O(n \log nM)$.\n</spo' -> '$O(n \log (nM))$.\n</spo'
en10 English Noam527 2024-05-03 21:59:44 149
en9 English Noam527 2024-05-03 19:50:37 2049 Tiny change: '1 \leq x_2, y_1 \leq y' -> '1 \leq x_2$ and $y_1 \leq y'
en8 English Noam527 2024-05-03 19:22:12 3 Tiny change: 'ze $dp[0][*][*][*] = 0$, e' -> 'ze $dp[0][\*][\*][\*] = 0$, e'
en7 English Noam527 2024-05-03 19:21:35 71
en6 English Noam527 2024-05-03 19:16:37 475 Tiny change: 'on">\n####$O(n^4' -> 'on">\n######$O(n^4'
en5 English Noam527 2024-05-03 18:59:54 119
en4 English Noam527 2024-05-03 18:49:04 438
en3 English Noam527 2024-05-03 18:45:34 1257
en2 English Noam527 2024-05-03 18:31:17 1717 Tiny change: 'n $\log M$' -> 'n $\log M$.\n\n2. Polynomial in $n$ and in $M$.'
en1 English Noam527 2024-05-03 18:16:06 450 Initial revision (saved to drafts)