O
Owen Jacobson
Once again, this would be more appropriate to comp.programming,
sci.logic, or any newsgroup dedicated to computing and algorithms.
comp.lang.java.programmer is primarily devoted to implementation
details as they apply to Java. Followup-To once again set
appropriately.
Making use of additional information not present in the problem's
definition imposes constraints on your solution. Specifically, it
implies that your solution only applies to a subset of the cases
admitted by the problem. For example, your solution, assuming for the
moment it works[0], only applies to complete graphs whose nodes are
members of a metric space. The problem space includes /all/ complete
graphs.
Solving[0] a subset of the problem in polynomial time[0] is useful,
but nowhere near as useful as a polynomial-time general-purpose
solution would be[1]. A general solution cannot "creatively" take
into account information that's not part of the problem definition
without first formally proving that the additional information is
logically implied by information in the problem definition.
Finally, you may have been mislead by the name of the problem: while
informal discussions of the "travelling salesman" problem are framed
in terms of flights or trains, cities, and travel time, this doesn't
mean you can drag in aspects of the real world in your solution. A
formal treatment of the travelling salesman problem will frame it only
in terms of nodes, edges, and edge weights, with the goal of
minimizing the sum of edge weights along a path with particular
properties.
-o
[0] ...which you haven't formally proven...
[1] In particular, your solution[0] does not imply or prove anything
in either direction about P = NP.
sci.logic, or any newsgroup dedicated to computing and algorithms.
comp.lang.java.programmer is primarily devoted to implementation
details as they apply to Java. Followup-To once again set
appropriately.
I see a lot of objections in this thread from guys distressed about
the original problem not using the distance between the cities which
is where creativity is hard!!!
Making use of additional information not present in the problem's
definition imposes constraints on your solution. Specifically, it
implies that your solution only applies to a subset of the cases
admitted by the problem. For example, your solution, assuming for the
moment it works[0], only applies to complete graphs whose nodes are
members of a metric space. The problem space includes /all/ complete
graphs.
Solving[0] a subset of the problem in polynomial time[0] is useful,
but nowhere near as useful as a polynomial-time general-purpose
solution would be[1]. A general solution cannot "creatively" take
into account information that's not part of the problem definition
without first formally proving that the additional information is
logically implied by information in the problem definition.
Finally, you may have been mislead by the name of the problem: while
informal discussions of the "travelling salesman" problem are framed
in terms of flights or trains, cities, and travel time, this doesn't
mean you can drag in aspects of the real world in your solution. A
formal treatment of the travelling salesman problem will frame it only
in terms of nodes, edges, and edge weights, with the goal of
minimizing the sum of edge weights along a path with particular
properties.
-o
[0] ...which you haven't formally proven...
[1] In particular, your solution[0] does not imply or prove anything
in either direction about P = NP.