Given $n$ vectors, find partitions with closest centroids












0












$begingroup$


Given vectors $a_1, dots, a_nin mathbb R^d$ where $n$ is even, I want to find partitions $I$ and $J$ of $[n]$ with $|I|=|J|=frac n2$ to minimize
$$left| sum_{iin I} a_i - sum_{jin J} a_j right|.$$
This problem can be written as a binary optimization problem. Given matrix $A = [a_1 dots a_n]$, I want to minimize $|Ax|$ over $xin{-1,1}^n$ and $sum_{i=1}^n x_i=0$.



Finding exact global minimum looks NP-hard (in $d$ or $n$). Is it possible to find a nice approximate solution (like $(1+epsilon)$-approximation for $K$-means)?



Convex relaxation does not seems to work because the convex hull of the feasible region contains a trivial global minimizer $x=0$.



Any help will greatly appreciated.










share|cite|improve this question









$endgroup$












  • $begingroup$
    Looks like a multidimensional generalization of the partition problem (unless the restriction $|I|=|J|$ makes a big difference, not sure).
    $endgroup$
    – Rahul
    Jan 25 at 4:13










  • $begingroup$
    @Rahul Thanks for pointing this out. It is interesting enough to consider the problem without the restriction. Can the algorithm generalize to multidimensional case?
    $endgroup$
    – Mayu
    Jan 25 at 5:56
















0












$begingroup$


Given vectors $a_1, dots, a_nin mathbb R^d$ where $n$ is even, I want to find partitions $I$ and $J$ of $[n]$ with $|I|=|J|=frac n2$ to minimize
$$left| sum_{iin I} a_i - sum_{jin J} a_j right|.$$
This problem can be written as a binary optimization problem. Given matrix $A = [a_1 dots a_n]$, I want to minimize $|Ax|$ over $xin{-1,1}^n$ and $sum_{i=1}^n x_i=0$.



Finding exact global minimum looks NP-hard (in $d$ or $n$). Is it possible to find a nice approximate solution (like $(1+epsilon)$-approximation for $K$-means)?



Convex relaxation does not seems to work because the convex hull of the feasible region contains a trivial global minimizer $x=0$.



Any help will greatly appreciated.










share|cite|improve this question









$endgroup$












  • $begingroup$
    Looks like a multidimensional generalization of the partition problem (unless the restriction $|I|=|J|$ makes a big difference, not sure).
    $endgroup$
    – Rahul
    Jan 25 at 4:13










  • $begingroup$
    @Rahul Thanks for pointing this out. It is interesting enough to consider the problem without the restriction. Can the algorithm generalize to multidimensional case?
    $endgroup$
    – Mayu
    Jan 25 at 5:56














0












0








0





$begingroup$


Given vectors $a_1, dots, a_nin mathbb R^d$ where $n$ is even, I want to find partitions $I$ and $J$ of $[n]$ with $|I|=|J|=frac n2$ to minimize
$$left| sum_{iin I} a_i - sum_{jin J} a_j right|.$$
This problem can be written as a binary optimization problem. Given matrix $A = [a_1 dots a_n]$, I want to minimize $|Ax|$ over $xin{-1,1}^n$ and $sum_{i=1}^n x_i=0$.



Finding exact global minimum looks NP-hard (in $d$ or $n$). Is it possible to find a nice approximate solution (like $(1+epsilon)$-approximation for $K$-means)?



Convex relaxation does not seems to work because the convex hull of the feasible region contains a trivial global minimizer $x=0$.



Any help will greatly appreciated.










share|cite|improve this question









$endgroup$




Given vectors $a_1, dots, a_nin mathbb R^d$ where $n$ is even, I want to find partitions $I$ and $J$ of $[n]$ with $|I|=|J|=frac n2$ to minimize
$$left| sum_{iin I} a_i - sum_{jin J} a_j right|.$$
This problem can be written as a binary optimization problem. Given matrix $A = [a_1 dots a_n]$, I want to minimize $|Ax|$ over $xin{-1,1}^n$ and $sum_{i=1}^n x_i=0$.



Finding exact global minimum looks NP-hard (in $d$ or $n$). Is it possible to find a nice approximate solution (like $(1+epsilon)$-approximation for $K$-means)?



Convex relaxation does not seems to work because the convex hull of the feasible region contains a trivial global minimizer $x=0$.



Any help will greatly appreciated.







discrete-optimization binary-programming






share|cite|improve this question













share|cite|improve this question











share|cite|improve this question




share|cite|improve this question










asked Jan 25 at 2:56









MayuMayu

63




63












  • $begingroup$
    Looks like a multidimensional generalization of the partition problem (unless the restriction $|I|=|J|$ makes a big difference, not sure).
    $endgroup$
    – Rahul
    Jan 25 at 4:13










  • $begingroup$
    @Rahul Thanks for pointing this out. It is interesting enough to consider the problem without the restriction. Can the algorithm generalize to multidimensional case?
    $endgroup$
    – Mayu
    Jan 25 at 5:56


















  • $begingroup$
    Looks like a multidimensional generalization of the partition problem (unless the restriction $|I|=|J|$ makes a big difference, not sure).
    $endgroup$
    – Rahul
    Jan 25 at 4:13










  • $begingroup$
    @Rahul Thanks for pointing this out. It is interesting enough to consider the problem without the restriction. Can the algorithm generalize to multidimensional case?
    $endgroup$
    – Mayu
    Jan 25 at 5:56
















$begingroup$
Looks like a multidimensional generalization of the partition problem (unless the restriction $|I|=|J|$ makes a big difference, not sure).
$endgroup$
– Rahul
Jan 25 at 4:13




$begingroup$
Looks like a multidimensional generalization of the partition problem (unless the restriction $|I|=|J|$ makes a big difference, not sure).
$endgroup$
– Rahul
Jan 25 at 4:13












$begingroup$
@Rahul Thanks for pointing this out. It is interesting enough to consider the problem without the restriction. Can the algorithm generalize to multidimensional case?
$endgroup$
– Mayu
Jan 25 at 5:56




$begingroup$
@Rahul Thanks for pointing this out. It is interesting enough to consider the problem without the restriction. Can the algorithm generalize to multidimensional case?
$endgroup$
– Mayu
Jan 25 at 5:56










1 Answer
1






active

oldest

votes


















0












$begingroup$

What if you relax the constraint that $x in{-1, 1}^n$ into $|x|=1$? In other words, $$argmin |Ax| text{ subject to } |x|=1 text { and } langle x, underline{1}rangle = 0$$
Once you've found a solution $x^star$ to this problem, you just take the signum of its components.



I don't know how good an approximation this would provide






share|cite|improve this answer









$endgroup$













  • $begingroup$
    Thanks. I figured out this is binary quadratic programing problem. The approach you proposed is a spectral relaxation. luthuli.cs.uiuc.edu/~daf/courses/Opt-2017/Papers/0234.pdf
    $endgroup$
    – Mayu
    Jan 25 at 8:00











Your Answer





StackExchange.ifUsing("editor", function () {
return StackExchange.using("mathjaxEditing", function () {
StackExchange.MarkdownEditor.creationCallbacks.add(function (editor, postfix) {
StackExchange.mathjaxEditing.prepareWmdForMathJax(editor, postfix, [["$", "$"], ["\\(","\\)"]]);
});
});
}, "mathjax-editing");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "69"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
noCode: true, onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3086648%2fgiven-n-vectors-find-partitions-with-closest-centroids%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









0












$begingroup$

What if you relax the constraint that $x in{-1, 1}^n$ into $|x|=1$? In other words, $$argmin |Ax| text{ subject to } |x|=1 text { and } langle x, underline{1}rangle = 0$$
Once you've found a solution $x^star$ to this problem, you just take the signum of its components.



I don't know how good an approximation this would provide






share|cite|improve this answer









$endgroup$













  • $begingroup$
    Thanks. I figured out this is binary quadratic programing problem. The approach you proposed is a spectral relaxation. luthuli.cs.uiuc.edu/~daf/courses/Opt-2017/Papers/0234.pdf
    $endgroup$
    – Mayu
    Jan 25 at 8:00
















0












$begingroup$

What if you relax the constraint that $x in{-1, 1}^n$ into $|x|=1$? In other words, $$argmin |Ax| text{ subject to } |x|=1 text { and } langle x, underline{1}rangle = 0$$
Once you've found a solution $x^star$ to this problem, you just take the signum of its components.



I don't know how good an approximation this would provide






share|cite|improve this answer









$endgroup$













  • $begingroup$
    Thanks. I figured out this is binary quadratic programing problem. The approach you proposed is a spectral relaxation. luthuli.cs.uiuc.edu/~daf/courses/Opt-2017/Papers/0234.pdf
    $endgroup$
    – Mayu
    Jan 25 at 8:00














0












0








0





$begingroup$

What if you relax the constraint that $x in{-1, 1}^n$ into $|x|=1$? In other words, $$argmin |Ax| text{ subject to } |x|=1 text { and } langle x, underline{1}rangle = 0$$
Once you've found a solution $x^star$ to this problem, you just take the signum of its components.



I don't know how good an approximation this would provide






share|cite|improve this answer









$endgroup$



What if you relax the constraint that $x in{-1, 1}^n$ into $|x|=1$? In other words, $$argmin |Ax| text{ subject to } |x|=1 text { and } langle x, underline{1}rangle = 0$$
Once you've found a solution $x^star$ to this problem, you just take the signum of its components.



I don't know how good an approximation this would provide







share|cite|improve this answer












share|cite|improve this answer



share|cite|improve this answer










answered Jan 25 at 3:59









Stefan LafonStefan Lafon

2,84519




2,84519












  • $begingroup$
    Thanks. I figured out this is binary quadratic programing problem. The approach you proposed is a spectral relaxation. luthuli.cs.uiuc.edu/~daf/courses/Opt-2017/Papers/0234.pdf
    $endgroup$
    – Mayu
    Jan 25 at 8:00


















  • $begingroup$
    Thanks. I figured out this is binary quadratic programing problem. The approach you proposed is a spectral relaxation. luthuli.cs.uiuc.edu/~daf/courses/Opt-2017/Papers/0234.pdf
    $endgroup$
    – Mayu
    Jan 25 at 8:00
















$begingroup$
Thanks. I figured out this is binary quadratic programing problem. The approach you proposed is a spectral relaxation. luthuli.cs.uiuc.edu/~daf/courses/Opt-2017/Papers/0234.pdf
$endgroup$
– Mayu
Jan 25 at 8:00




$begingroup$
Thanks. I figured out this is binary quadratic programing problem. The approach you proposed is a spectral relaxation. luthuli.cs.uiuc.edu/~daf/courses/Opt-2017/Papers/0234.pdf
$endgroup$
– Mayu
Jan 25 at 8:00


















draft saved

draft discarded




















































Thanks for contributing an answer to Mathematics Stack Exchange!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


Use MathJax to format equations. MathJax reference.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3086648%2fgiven-n-vectors-find-partitions-with-closest-centroids%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Mario Kart Wii

What does “Dominus providebit” mean?

Antonio Litta Visconti Arese