Loading...
You are not logged-in Login/Register





  • Posts   Search Threads
  • avparateSeptember 25, 2009 9:51 AM PDT   
    How is the performance

    How is the performance(execution time) anybody got with this problem? It looks to me parallel programming is not necessary unless worst case scenario test case is applied? Any thoughts?

    mdmaSeptember 26, 2009 7:01 AM PDT
    Rate
     
    Re: How is the performance

    Quoting - avinashparate
    How is the performance(execution time) anybody got with this problem? It looks to me parallel programming is not necessary unless worst case scenario test case is applied? Any thoughts?

    Finding the minimum number of colours is an NP-complete problem, and is has superpolynomial complexity - O(n!) if brute force is used.

    Heuristic algorithms exist that can find a colouring for a graph, that run in polynomial time  in the region O(n^2) to O(n^3), but the result is not necessarily the minimum number of colours.

    In the problem, nodes are labelled with pairs of letters, allowing a maximum of 676 nodes in the graph. This is so large that the brute force approach would take forever.

    mat.




    planetmarshallSeptember 26, 2009 7:49 AM PDT
    Rate
     
    Re: How is the performance

    Quoting - mdm100

    Heuristic algorithms exist that can find a colouring for a graph, that run in polynomial time  in the region O(n^2) to O(n^3), but the result is not necessarily the minimum number of colours.


    The problem statement specifies that the minimum number of colours necessary to colour the graph is included in the output, so a heurisitc approach alone will not be sufficient to solve this problem, but it could form part of an exact solution.

    Andrew.


    --
    Andrew Marshall
    http://www.planetmarshall.co.uk

    gk4v07September 27, 2009 3:05 AM PDT
    Rate
     
    Re: How is the performance

    Quoting - planetmarshall

    The problem statement specifies that the minimum number of colours necessary to colour the graph is included in the output, so a heurisitc approach alone will not be sufficient to solve this problem, but it could form part of an exact solution.

    Andrew.

    Technically, the statement is: "...the minimum number of colors that is sufficient to color the input graph...",
    not that it is necessary to color the graph.

    gleb


    BradleyKuszmaulSeptember 27, 2009 3:14 AM PDT
    Rate
     
    Re: How is the performance

    Quoting - gk4v07

    Technically, the statement is: "...the minimum number of colors that is sufficient to color the input graph...",
    not that it is necessary to color the graph.

    gleb
    Maybe I misunderstand you, but as I read it, we have to come up with a number (the minimum required) as well as a coloring.



    gk4v07September 27, 2009 5:04 AM PDT
    Rate
     
    Re: How is the performance

    Quoting - BradleyKuszmaul
    Maybe I misunderstand you, but as I read it, we have to come up with a number (the minimum required) as well as a coloring.

    It was my first impression too, but it looks that the question is not necessarily to find the true minimum,
    instead, the goal is to try to decrease the given (known minimum?) number K.
    It make sense for example, for some huge graphs.
    But perhaps we need more clarification on that.







    mdmaSeptember 27, 2009 5:49 AM PDT
    Rate
     
    Re: How is the performance

    I believe that absolute minimum colors needed is what's being asked for, but of course we need clarification to be absolutely sure.

    "The last line of the file should be a message declaring the minimum number of colors that is sufficient to color the input graph"

    I can see that "minimum number of colors" could be interpreted as "a smaller value of K",  implying a smaller value but not necessarily the absolute minimum, but I think that is more like wishful thinking! :-)




    planetmarshallSeptember 27, 2009 7:48 AM PDT
    Rate
     
    Re: How is the performance

    Quoting - mdm100
    I believe that absolute minimum colors needed is what's being asked for, but of course we need clarification to be absolutely sure.

    "The last line of the file should be a message declaring the minimum number of colors that is sufficient to color the input graph"

    I can see that "minimum number of colors" could be interpreted as "a smaller value of K",  implying a smaller value but not necessarily the absolute minimum, but I think that is more like wishful thinking! :-)



    Well, the difference between finding the minimum number of colours, ie the chromatic number, and just 'a' number of colours is pretty gargantuan in terms of coding the solution. The exact text is

    "...The last line of the file should be a message declaring the minimum number of colors that is sufficient to color the input graph...."

    To me, that is a pretty clear statement that it is the chromatic number, ie the minimum number of colours, that is being asked for. For example, if the chromatic number of the input is 5, and a heuristic results in a colouring using 6 colours, then 6 is not the minimim number of colours required to colour the graph, therefore the output would be incorrect.

    Andrew.


    --
    Andrew Marshall
    http://www.planetmarshall.co.uk

    mdmaSeptember 27, 2009 9:55 AM PDT
    Rate
     
    Re: How is the performance

    Quoting - planetmarshall
    Quoting - mdm100
    I believe that absolute minimum colors needed is what's being asked for, but of course we need clarification to be absolutely sure.

    "The last line of the file should be a message declaring the minimum number of colors that is sufficient to color the input graph"

    I can see that "minimum number of colors" could be interpreted as "a smaller value of K",  implying a smaller value but not necessarily the absolute minimum, but I think that is more like wishful thinking! :-)



    Well, the difference between finding the minimum number of colours, ie the chromatic number, and just 'a' number of colours is pretty gargantuan in terms of coding the solution. The exact text is

    "...The last line of the file should be a message declaring the minimum number of colors that is sufficient to color the input graph...."

    To me, that is a pretty clear statement that it is the chromatic number, ie the minimum number of colours, that is being asked for. For example, if the chromatic number of the input is 5, and a heuristic results in a colouring using 6 colours, then 6 is not the minimim number of colours required to colour the graph, therefore the output would be incorrect.

    Andrew.

    Sorry if it was not clear, but that's what I am saying. The absolute minimum, i.e. chromatic number.


    cnshiruiSeptember 29, 2009 2:44 AM PDT
    Rate
     
    Re: How is the performance

    Quoting - mdm100

    Sorry if it was not clear, but that's what I am saying. The absolute minimum, i.e. chromatic number.

    I prefer the exact minimum number of colors, which is a NP complete problem. We need to parallel algorithem to imporve the performace of solution.


    BradleyKuszmaulSeptember 29, 2009 4:27 AM PDT
    Rate
     
    Re: How is the performance

    Quoting - cnshirui

    I prefer the exact minimum number of colors, which is a NP complete problem. We need to parallel algorithem to imporve the performace of solution.
    As I understand it, computing the exact chromatic number of a graph is NP-hard.  It may not be in NP at all.



Forum jump:  

Intel Software Network Forums Statistics

16,371 users have contributed to 46,345 threads and 163,975 posts to date.

In the past 24 hours, we have 19 new thread(s) 94 new posts(s), and 64 new user(s).

In the past 3 days, the most popular thread for everyone has been Formula for the intersection of straight lines The most posts were made to Take a look at John Burkhard&# The post with the most views is \"-check none\" generates error

Please welcome our newest member theoriginalgunn


For more complete information about compiler optimizations, see our Optimization Notice.