Graph parameter corresponding to a linear integer program












1












$begingroup$


Please look at my approach to the following problem



enter image description here



$y_{jk}$ could be seen as entries in a 0/1 n$times$n matrix, in which, by the first constraint, there is exactly 1 entry of value "1" in each row, and, by the second constraint, no columns has 2 such entries. But then there two constraints imply that the matrix has 1 "1" in each row and column, and zero everywhere else. This in turn implies that all the $x_i$'s must be 1, in order to satisfies the third constraint. So I don't see how this is a linear program and how it's corresponding to some parameter of a graph.



=================================================================



Edit: an answer below by Kuifje (https://math.stackexchange.com/a/3072279/120141) points out that the program actually looks for the chromatic number of the graph G. I'd like to ask for some more clarification and answers to some further questions below:



The graph G is obviously properly colored if each vertex has a different color, i.e. we use $n$ colors in total. So we can think of $y_{jk}$ as the choice of color for vertex $j$, amongst the $n$ possible colors. This makes sense of the first and second constraints.



However I still have some questions:



(1) How should I interpret the third constraint?



(2) How should I interpret the variables $x_i$'s?



(3) Could it be that the number $sum x_i$ is also the list-chromatic number of G?



(4) If we follow my original analysis, since all $x_i$'s are always 1, $min sum x_i$ would always be $n$. I still don't see where I went wrong with this argument.










share|cite|improve this question











$endgroup$

















    1












    $begingroup$


    Please look at my approach to the following problem



    enter image description here



    $y_{jk}$ could be seen as entries in a 0/1 n$times$n matrix, in which, by the first constraint, there is exactly 1 entry of value "1" in each row, and, by the second constraint, no columns has 2 such entries. But then there two constraints imply that the matrix has 1 "1" in each row and column, and zero everywhere else. This in turn implies that all the $x_i$'s must be 1, in order to satisfies the third constraint. So I don't see how this is a linear program and how it's corresponding to some parameter of a graph.



    =================================================================



    Edit: an answer below by Kuifje (https://math.stackexchange.com/a/3072279/120141) points out that the program actually looks for the chromatic number of the graph G. I'd like to ask for some more clarification and answers to some further questions below:



    The graph G is obviously properly colored if each vertex has a different color, i.e. we use $n$ colors in total. So we can think of $y_{jk}$ as the choice of color for vertex $j$, amongst the $n$ possible colors. This makes sense of the first and second constraints.



    However I still have some questions:



    (1) How should I interpret the third constraint?



    (2) How should I interpret the variables $x_i$'s?



    (3) Could it be that the number $sum x_i$ is also the list-chromatic number of G?



    (4) If we follow my original analysis, since all $x_i$'s are always 1, $min sum x_i$ would always be $n$. I still don't see where I went wrong with this argument.










    share|cite|improve this question











    $endgroup$















      1












      1








      1





      $begingroup$


      Please look at my approach to the following problem



      enter image description here



      $y_{jk}$ could be seen as entries in a 0/1 n$times$n matrix, in which, by the first constraint, there is exactly 1 entry of value "1" in each row, and, by the second constraint, no columns has 2 such entries. But then there two constraints imply that the matrix has 1 "1" in each row and column, and zero everywhere else. This in turn implies that all the $x_i$'s must be 1, in order to satisfies the third constraint. So I don't see how this is a linear program and how it's corresponding to some parameter of a graph.



      =================================================================



      Edit: an answer below by Kuifje (https://math.stackexchange.com/a/3072279/120141) points out that the program actually looks for the chromatic number of the graph G. I'd like to ask for some more clarification and answers to some further questions below:



      The graph G is obviously properly colored if each vertex has a different color, i.e. we use $n$ colors in total. So we can think of $y_{jk}$ as the choice of color for vertex $j$, amongst the $n$ possible colors. This makes sense of the first and second constraints.



      However I still have some questions:



      (1) How should I interpret the third constraint?



      (2) How should I interpret the variables $x_i$'s?



      (3) Could it be that the number $sum x_i$ is also the list-chromatic number of G?



      (4) If we follow my original analysis, since all $x_i$'s are always 1, $min sum x_i$ would always be $n$. I still don't see where I went wrong with this argument.










      share|cite|improve this question











      $endgroup$




      Please look at my approach to the following problem



      enter image description here



      $y_{jk}$ could be seen as entries in a 0/1 n$times$n matrix, in which, by the first constraint, there is exactly 1 entry of value "1" in each row, and, by the second constraint, no columns has 2 such entries. But then there two constraints imply that the matrix has 1 "1" in each row and column, and zero everywhere else. This in turn implies that all the $x_i$'s must be 1, in order to satisfies the third constraint. So I don't see how this is a linear program and how it's corresponding to some parameter of a graph.



      =================================================================



      Edit: an answer below by Kuifje (https://math.stackexchange.com/a/3072279/120141) points out that the program actually looks for the chromatic number of the graph G. I'd like to ask for some more clarification and answers to some further questions below:



      The graph G is obviously properly colored if each vertex has a different color, i.e. we use $n$ colors in total. So we can think of $y_{jk}$ as the choice of color for vertex $j$, amongst the $n$ possible colors. This makes sense of the first and second constraints.



      However I still have some questions:



      (1) How should I interpret the third constraint?



      (2) How should I interpret the variables $x_i$'s?



      (3) Could it be that the number $sum x_i$ is also the list-chromatic number of G?



      (4) If we follow my original analysis, since all $x_i$'s are always 1, $min sum x_i$ would always be $n$. I still don't see where I went wrong with this argument.







      proof-verification graph-theory linear-programming






      share|cite|improve this question















      share|cite|improve this question













      share|cite|improve this question




      share|cite|improve this question








      edited Jan 13 at 20:12







      ensbana

















      asked Jan 13 at 16:51









      ensbanaensbana

      256213




      256213






















          1 Answer
          1






          active

          oldest

          votes


















          1












          $begingroup$

          The linear program gives you the chromatic number of the graph (the minimum number of colors needed to color every node such that no two adjacent nodes share the same color).



          The first constraint forces each node to have a color.



          The second one makes sur two adjacent nodes have different colors.



          The third one activates a binary variable that counts if color $k$ is used.



          The objective function minimizes these variables, that is, the number of total colors used.





          EDIT : Follow up on the extra questions :



          1) Interpretation of the third constraint ($ y_{jk} le x_k $) : when color $k$ is given to node $j$, $y_{jk}$ takes value $1$, which requires $x_k$ to also take value $1$ : in other words $x_k$ is a counter that is activated when color $k$ is used.



          2) $x_k$ is a counter that is activated when color $k$ is used.



          3) I don't think so : here, it is assumed that a node can receive any given color among ${1,...,n}$



          4) All $x_i$s are not always $1$. For example, if the graphe is a path with $3$ nodes, the first and last can take color $1$, the second can take color $2$, and color $3$ is never used (so $x_3=0$).






          share|cite|improve this answer











          $endgroup$













          • $begingroup$
            Where did my analysis go wrong? Following that line of reason, since all $x_i$'s are always 1's, min $sum x_i$ would always be $n$.
            $endgroup$
            – ensbana
            Jan 13 at 17:43










          • $begingroup$
            I think I might have an inkling of how to interpret your answer: the graph G is obviously properly colored if each vertex has a different color, i.e. we use $n$ colors in total. So we can think of $y_{jk}$ as the choice of color for vertex $j$, amongst the $n$ possible colors. This makes sense of the first and second constraints.
            $endgroup$
            – ensbana
            Jan 13 at 20:05










          • $begingroup$
            I still have some questions nonetheless: (1) how should I interpret the third constraint?, (2) how should I interpret the variables $x_i$?, (3) could it be that the number $sum x_i$ is also the list-chromatic number of G?, (4) i still don't see how my analysis as mentioned above is wrong?
            $endgroup$
            – ensbana
            Jan 13 at 20:05






          • 1




            $begingroup$
            I have edited my answer to take into account your extra questions.
            $endgroup$
            – Kuifje
            Jan 14 at 8:57










          • $begingroup$
            Thanks! I think i found where it went wrong! In setting up the n$times$n matrix, i forgot that not all vertices are adjacent to all other vertices, so if i want to go that way i’d need more specifications for the matrix. Or, to look at it another way, that matrix would be valid for the trivial case of the complete graph $K_n$.
            $endgroup$
            – ensbana
            Jan 15 at 12:49













          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%2f3072225%2fgraph-parameter-corresponding-to-a-linear-integer-program%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









          1












          $begingroup$

          The linear program gives you the chromatic number of the graph (the minimum number of colors needed to color every node such that no two adjacent nodes share the same color).



          The first constraint forces each node to have a color.



          The second one makes sur two adjacent nodes have different colors.



          The third one activates a binary variable that counts if color $k$ is used.



          The objective function minimizes these variables, that is, the number of total colors used.





          EDIT : Follow up on the extra questions :



          1) Interpretation of the third constraint ($ y_{jk} le x_k $) : when color $k$ is given to node $j$, $y_{jk}$ takes value $1$, which requires $x_k$ to also take value $1$ : in other words $x_k$ is a counter that is activated when color $k$ is used.



          2) $x_k$ is a counter that is activated when color $k$ is used.



          3) I don't think so : here, it is assumed that a node can receive any given color among ${1,...,n}$



          4) All $x_i$s are not always $1$. For example, if the graphe is a path with $3$ nodes, the first and last can take color $1$, the second can take color $2$, and color $3$ is never used (so $x_3=0$).






          share|cite|improve this answer











          $endgroup$













          • $begingroup$
            Where did my analysis go wrong? Following that line of reason, since all $x_i$'s are always 1's, min $sum x_i$ would always be $n$.
            $endgroup$
            – ensbana
            Jan 13 at 17:43










          • $begingroup$
            I think I might have an inkling of how to interpret your answer: the graph G is obviously properly colored if each vertex has a different color, i.e. we use $n$ colors in total. So we can think of $y_{jk}$ as the choice of color for vertex $j$, amongst the $n$ possible colors. This makes sense of the first and second constraints.
            $endgroup$
            – ensbana
            Jan 13 at 20:05










          • $begingroup$
            I still have some questions nonetheless: (1) how should I interpret the third constraint?, (2) how should I interpret the variables $x_i$?, (3) could it be that the number $sum x_i$ is also the list-chromatic number of G?, (4) i still don't see how my analysis as mentioned above is wrong?
            $endgroup$
            – ensbana
            Jan 13 at 20:05






          • 1




            $begingroup$
            I have edited my answer to take into account your extra questions.
            $endgroup$
            – Kuifje
            Jan 14 at 8:57










          • $begingroup$
            Thanks! I think i found where it went wrong! In setting up the n$times$n matrix, i forgot that not all vertices are adjacent to all other vertices, so if i want to go that way i’d need more specifications for the matrix. Or, to look at it another way, that matrix would be valid for the trivial case of the complete graph $K_n$.
            $endgroup$
            – ensbana
            Jan 15 at 12:49


















          1












          $begingroup$

          The linear program gives you the chromatic number of the graph (the minimum number of colors needed to color every node such that no two adjacent nodes share the same color).



          The first constraint forces each node to have a color.



          The second one makes sur two adjacent nodes have different colors.



          The third one activates a binary variable that counts if color $k$ is used.



          The objective function minimizes these variables, that is, the number of total colors used.





          EDIT : Follow up on the extra questions :



          1) Interpretation of the third constraint ($ y_{jk} le x_k $) : when color $k$ is given to node $j$, $y_{jk}$ takes value $1$, which requires $x_k$ to also take value $1$ : in other words $x_k$ is a counter that is activated when color $k$ is used.



          2) $x_k$ is a counter that is activated when color $k$ is used.



          3) I don't think so : here, it is assumed that a node can receive any given color among ${1,...,n}$



          4) All $x_i$s are not always $1$. For example, if the graphe is a path with $3$ nodes, the first and last can take color $1$, the second can take color $2$, and color $3$ is never used (so $x_3=0$).






          share|cite|improve this answer











          $endgroup$













          • $begingroup$
            Where did my analysis go wrong? Following that line of reason, since all $x_i$'s are always 1's, min $sum x_i$ would always be $n$.
            $endgroup$
            – ensbana
            Jan 13 at 17:43










          • $begingroup$
            I think I might have an inkling of how to interpret your answer: the graph G is obviously properly colored if each vertex has a different color, i.e. we use $n$ colors in total. So we can think of $y_{jk}$ as the choice of color for vertex $j$, amongst the $n$ possible colors. This makes sense of the first and second constraints.
            $endgroup$
            – ensbana
            Jan 13 at 20:05










          • $begingroup$
            I still have some questions nonetheless: (1) how should I interpret the third constraint?, (2) how should I interpret the variables $x_i$?, (3) could it be that the number $sum x_i$ is also the list-chromatic number of G?, (4) i still don't see how my analysis as mentioned above is wrong?
            $endgroup$
            – ensbana
            Jan 13 at 20:05






          • 1




            $begingroup$
            I have edited my answer to take into account your extra questions.
            $endgroup$
            – Kuifje
            Jan 14 at 8:57










          • $begingroup$
            Thanks! I think i found where it went wrong! In setting up the n$times$n matrix, i forgot that not all vertices are adjacent to all other vertices, so if i want to go that way i’d need more specifications for the matrix. Or, to look at it another way, that matrix would be valid for the trivial case of the complete graph $K_n$.
            $endgroup$
            – ensbana
            Jan 15 at 12:49
















          1












          1








          1





          $begingroup$

          The linear program gives you the chromatic number of the graph (the minimum number of colors needed to color every node such that no two adjacent nodes share the same color).



          The first constraint forces each node to have a color.



          The second one makes sur two adjacent nodes have different colors.



          The third one activates a binary variable that counts if color $k$ is used.



          The objective function minimizes these variables, that is, the number of total colors used.





          EDIT : Follow up on the extra questions :



          1) Interpretation of the third constraint ($ y_{jk} le x_k $) : when color $k$ is given to node $j$, $y_{jk}$ takes value $1$, which requires $x_k$ to also take value $1$ : in other words $x_k$ is a counter that is activated when color $k$ is used.



          2) $x_k$ is a counter that is activated when color $k$ is used.



          3) I don't think so : here, it is assumed that a node can receive any given color among ${1,...,n}$



          4) All $x_i$s are not always $1$. For example, if the graphe is a path with $3$ nodes, the first and last can take color $1$, the second can take color $2$, and color $3$ is never used (so $x_3=0$).






          share|cite|improve this answer











          $endgroup$



          The linear program gives you the chromatic number of the graph (the minimum number of colors needed to color every node such that no two adjacent nodes share the same color).



          The first constraint forces each node to have a color.



          The second one makes sur two adjacent nodes have different colors.



          The third one activates a binary variable that counts if color $k$ is used.



          The objective function minimizes these variables, that is, the number of total colors used.





          EDIT : Follow up on the extra questions :



          1) Interpretation of the third constraint ($ y_{jk} le x_k $) : when color $k$ is given to node $j$, $y_{jk}$ takes value $1$, which requires $x_k$ to also take value $1$ : in other words $x_k$ is a counter that is activated when color $k$ is used.



          2) $x_k$ is a counter that is activated when color $k$ is used.



          3) I don't think so : here, it is assumed that a node can receive any given color among ${1,...,n}$



          4) All $x_i$s are not always $1$. For example, if the graphe is a path with $3$ nodes, the first and last can take color $1$, the second can take color $2$, and color $3$ is never used (so $x_3=0$).







          share|cite|improve this answer














          share|cite|improve this answer



          share|cite|improve this answer








          edited Jan 14 at 8:57

























          answered Jan 13 at 17:28









          KuifjeKuifje

          7,2302726




          7,2302726












          • $begingroup$
            Where did my analysis go wrong? Following that line of reason, since all $x_i$'s are always 1's, min $sum x_i$ would always be $n$.
            $endgroup$
            – ensbana
            Jan 13 at 17:43










          • $begingroup$
            I think I might have an inkling of how to interpret your answer: the graph G is obviously properly colored if each vertex has a different color, i.e. we use $n$ colors in total. So we can think of $y_{jk}$ as the choice of color for vertex $j$, amongst the $n$ possible colors. This makes sense of the first and second constraints.
            $endgroup$
            – ensbana
            Jan 13 at 20:05










          • $begingroup$
            I still have some questions nonetheless: (1) how should I interpret the third constraint?, (2) how should I interpret the variables $x_i$?, (3) could it be that the number $sum x_i$ is also the list-chromatic number of G?, (4) i still don't see how my analysis as mentioned above is wrong?
            $endgroup$
            – ensbana
            Jan 13 at 20:05






          • 1




            $begingroup$
            I have edited my answer to take into account your extra questions.
            $endgroup$
            – Kuifje
            Jan 14 at 8:57










          • $begingroup$
            Thanks! I think i found where it went wrong! In setting up the n$times$n matrix, i forgot that not all vertices are adjacent to all other vertices, so if i want to go that way i’d need more specifications for the matrix. Or, to look at it another way, that matrix would be valid for the trivial case of the complete graph $K_n$.
            $endgroup$
            – ensbana
            Jan 15 at 12:49




















          • $begingroup$
            Where did my analysis go wrong? Following that line of reason, since all $x_i$'s are always 1's, min $sum x_i$ would always be $n$.
            $endgroup$
            – ensbana
            Jan 13 at 17:43










          • $begingroup$
            I think I might have an inkling of how to interpret your answer: the graph G is obviously properly colored if each vertex has a different color, i.e. we use $n$ colors in total. So we can think of $y_{jk}$ as the choice of color for vertex $j$, amongst the $n$ possible colors. This makes sense of the first and second constraints.
            $endgroup$
            – ensbana
            Jan 13 at 20:05










          • $begingroup$
            I still have some questions nonetheless: (1) how should I interpret the third constraint?, (2) how should I interpret the variables $x_i$?, (3) could it be that the number $sum x_i$ is also the list-chromatic number of G?, (4) i still don't see how my analysis as mentioned above is wrong?
            $endgroup$
            – ensbana
            Jan 13 at 20:05






          • 1




            $begingroup$
            I have edited my answer to take into account your extra questions.
            $endgroup$
            – Kuifje
            Jan 14 at 8:57










          • $begingroup$
            Thanks! I think i found where it went wrong! In setting up the n$times$n matrix, i forgot that not all vertices are adjacent to all other vertices, so if i want to go that way i’d need more specifications for the matrix. Or, to look at it another way, that matrix would be valid for the trivial case of the complete graph $K_n$.
            $endgroup$
            – ensbana
            Jan 15 at 12:49


















          $begingroup$
          Where did my analysis go wrong? Following that line of reason, since all $x_i$'s are always 1's, min $sum x_i$ would always be $n$.
          $endgroup$
          – ensbana
          Jan 13 at 17:43




          $begingroup$
          Where did my analysis go wrong? Following that line of reason, since all $x_i$'s are always 1's, min $sum x_i$ would always be $n$.
          $endgroup$
          – ensbana
          Jan 13 at 17:43












          $begingroup$
          I think I might have an inkling of how to interpret your answer: the graph G is obviously properly colored if each vertex has a different color, i.e. we use $n$ colors in total. So we can think of $y_{jk}$ as the choice of color for vertex $j$, amongst the $n$ possible colors. This makes sense of the first and second constraints.
          $endgroup$
          – ensbana
          Jan 13 at 20:05




          $begingroup$
          I think I might have an inkling of how to interpret your answer: the graph G is obviously properly colored if each vertex has a different color, i.e. we use $n$ colors in total. So we can think of $y_{jk}$ as the choice of color for vertex $j$, amongst the $n$ possible colors. This makes sense of the first and second constraints.
          $endgroup$
          – ensbana
          Jan 13 at 20:05












          $begingroup$
          I still have some questions nonetheless: (1) how should I interpret the third constraint?, (2) how should I interpret the variables $x_i$?, (3) could it be that the number $sum x_i$ is also the list-chromatic number of G?, (4) i still don't see how my analysis as mentioned above is wrong?
          $endgroup$
          – ensbana
          Jan 13 at 20:05




          $begingroup$
          I still have some questions nonetheless: (1) how should I interpret the third constraint?, (2) how should I interpret the variables $x_i$?, (3) could it be that the number $sum x_i$ is also the list-chromatic number of G?, (4) i still don't see how my analysis as mentioned above is wrong?
          $endgroup$
          – ensbana
          Jan 13 at 20:05




          1




          1




          $begingroup$
          I have edited my answer to take into account your extra questions.
          $endgroup$
          – Kuifje
          Jan 14 at 8:57




          $begingroup$
          I have edited my answer to take into account your extra questions.
          $endgroup$
          – Kuifje
          Jan 14 at 8:57












          $begingroup$
          Thanks! I think i found where it went wrong! In setting up the n$times$n matrix, i forgot that not all vertices are adjacent to all other vertices, so if i want to go that way i’d need more specifications for the matrix. Or, to look at it another way, that matrix would be valid for the trivial case of the complete graph $K_n$.
          $endgroup$
          – ensbana
          Jan 15 at 12:49






          $begingroup$
          Thanks! I think i found where it went wrong! In setting up the n$times$n matrix, i forgot that not all vertices are adjacent to all other vertices, so if i want to go that way i’d need more specifications for the matrix. Or, to look at it another way, that matrix would be valid for the trivial case of the complete graph $K_n$.
          $endgroup$
          – ensbana
          Jan 15 at 12:49




















          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%2f3072225%2fgraph-parameter-corresponding-to-a-linear-integer-program%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

          MongoDB - Not Authorized To Execute Command

          in spring boot 2.1 many test slices are not allowed anymore due to multiple @BootstrapWith

          Npm cannot find a required file even through it is in the searched directory