Re:Traveling Salesman: the most misunderstood problem
by konstruktor on Saturday November 10, 2012 @01:00PM
(#4767207)
No nonempty interval of real numbers can be represented in a finite number of bits.
[ Parent
| on HN ]
Re:Traveling Salesman: the most misunderstood problem
by tgflynn on Saturday November 10, 2012 @01:23PM
(#4767278)
That's exactly what floating point numbers are: representations of real number intervals as finite length bit strings. The number of bits simply determines the granularity of the representation (ie. the width of the intervals).
Re:Traveling Salesman: the most misunderstood problem
by konstruktor on Saturday November 10, 2012 @05:38PM
(#4767989)
Floating point numbers are approximations of real numbers, which isn't sufficient in this context. Solving a lossy representation of the problem isn't a reduction in the complexity theoretic sense.
Re:Traveling Salesman: the most misunderstood problem
by tgflynn on Saturday November 10, 2012 @06:31PM
(#4768138)
In the case of this problem the set of possible paths is finite so it can, in principle, be sorted in order of increasing cost. The smallest cost delta between any 2 paths in the sorted list is the lowest cost edge in the graph (this probably assumes that all edge costs are positive) so you only need to continue the binary search until intervals of this size are reached. At that point the exact solution has been found.
EDIT: There might be multiple paths with the same minimal cost but binary search will still find this value.
Re:Traveling Salesman: the most misunderstood problem
by Fargren on Saturday November 10, 2012 @01:28PM
(#4767294)
That depends on how you define your representation. It is useful for some problems to represent an interval with it's first bits, e.g. to take 0.101 as representing all numbers in the [0.101, 0.110) interval.
Re:Traveling Salesman: the most misunderstood problem
by konstruktor on Saturday November 10, 2012 @04:52PM
(#4767842)
You are correct. What I meant to say was: You cannot represent all the distinct real numbers in a nonempty interval using a finite number of bits.
Re:Traveling Salesman: the most misunderstood problem
by mikeash on Saturday November 10, 2012 @05:42PM
(#4768003)
Why is that relevant?
Re:Traveling Salesman: the most misunderstood problem
by anothermachine on Saturday November 10, 2012 @02:19PM
(#4767449)
Fortunately, non-empty intervals of real numbers do not exist in computer science.
Re:Traveling Salesman: the most misunderstood problem
by konstruktor on Saturday November 10, 2012 @04:57PM
(#4767858)
Did I get my mathematical terms wrong or are you confusing number representations on computers with computer science?