Slashdot Mirror


Optical Solution For an NP-Complete Problem?

6 writes to let us know that two optical researchers have proposed, as a thought experiment, a novel idea for solving the traveling salesman problem. From the abstract: We introduce an optical method based on white light interferometry in order to solve the well-known NP-complete traveling salesman problem. To our knowledge it is the first time that a method for the reduction of non-polynomial time to quadratic time has been proposed. We will show that this achievement is limited by the number of available photons for solving the problem. It will turn out that this number of photons is proportional to NN for a traveling salesman problem with N cities and that for large numbers of cities the method in practice therefore is limited by the signal-to-noise ratio. The proposed method is meant purely as a gedankenexperiment."

55 of 232 comments (clear)

  1. Better solution... by Anonymous Coward · · Score: 5, Funny

    I think a couple of gaurd dogs and a shotgun are a good enough method to solve the travelling salesman problem.

    1. Re:Better solution... by spun · · Score: 2, Funny

      You don't even need to go that far. In fact, if you don't have an attractive teenage daughter you should be all right. If you do, you simply do not let the traveling salesman sleep anywhere on your property. Or so I've heard.

      --
      - None can love freedom heartily, but good men; the rest love not freedom, but license. -- John Milton
    2. Re:Better solution... by AndersOSU · · Score: 2, Funny

      If you have a hot daughter odds are you already had a traveling salesman problem, you just didn't know about it.

  2. Article is also NP-Complete Problem by LiquidCoooled · · Score: 4, Funny

    In order that you can solve the article and produce feasible text in quadratic time you have to use a novel technique of installing a PDF reader.

    --
    liqbase :: faster than paper
  3. Obligatory by Tackhead · · Score: 4, Funny
    "Nothing to see here. Please move along, but no, no, no, not over that bridge, you idiot! That's another one of those fucking pathological edge cases that invalidates what would have been an otherwise great TSP equivalence proof, and now I have to start all over again! Curse you, Konigsberg, why didn't the Brits and the Russians and the Germans finish you off when you were fair game!"

    (Did I mention how much I hated my Computability and Complexity courses when I was in college?)

  4. Parallel computing by iamacat · · Score: 4, Insightful

    So effectively each photon is a CPU core and the running time is reduced by massive parallel computing rather than inherent reduction in complexity, which is (N^N)*(N^2).

    1. Re:Parallel computing by bateleur · · Score: 4, Insightful

      The ironic thing being that this is precisely why we care about whether NP=P or not. Because without a polynomial time algorithm, large problems remain intractable even after you massively parallelize them!

    2. Re:Parallel computing by CaptainPatent · · Score: 4, Informative

      So effectively each photon is a CPU core and the running time is reduced by massive parallel computing rather than inherent reduction in complexity, which is (N^N)*(N^2). No. While the language of the paper is indeed rather thick, it seems they are using interference to get individual photons of light to traverse every pathway simultaneously. Even if I am only partially correct there, the photons in the experiment are only detected and are never being used as an instrument for computation.
      --
      Well, back to rejecting software patent applications.
    3. Re:Parallel computing by camperdave · · Score: 4, Funny

      ...and Heisenberg says you never will.

      He may have said it, but he wasn't certain about it.

      --
      When our name is on the back of your car, we're behind you all the way!
    4. Re:Parallel computing by kripkenstein · · Score: 2, Insightful

      it seems they are using interference to get individual photons of light to traverse every pathway simultaneously. Even if I am only partially correct there, the photons in the experiment are only detected and are never being used as an instrument for computation.
      I guess it depends what you mean by 'computation'. As the article itself says,

      So in total we will need [about] (5/64)*N^N photons.
      Unsurprisingly, they need an exponential amount of photons (and even N^N, whereas we know the problem is solvable using 2^N or so). In effect, each photon is used to perform one 'calculation', in some sense. Or at least that is what I understand from TFA, IANA Physicist.
    5. Re:Parallel computing by camperdave · · Score: 2, Funny

      Schrödinger's cat wasn't going to commit to one side or the other until he saw it in action.

      --
      When our name is on the back of your car, we're behind you all the way!
  5. Some Reference info by Fox_1 · · Score: 4, Informative

    Heh, to give you a better idea of what the abstract is talking about:
    The Travelling Salesman Problem
    and this doozy of a word : gedankenexperiment

    --
    The rock, the vulture, and the chain
    1. Re:Some Reference info by ZOMFF · · Score: 5, Funny
      --
      Launch every sig.
    2. Re:Some Reference info by morgan_greywolf · · Score: 2, Insightful

      Well, even if you knew what the TSP is, it might be, depending on your chosen profession, that you may not recall of the specifics regarding the TSP, such as the formulae used, what sorts of algorithms may be used to solve the problem, etc. Not all of us have jobs where we use our math/computational science/computer science skills on a day-to-day basis.

    3. Re:Some Reference info by reverseengineer · · Score: 2, Interesting
      On the subject of Wikipedia, the authors of this paper actually use Wikipedia on page 9 of their paper to provide a definition of a quantum computer. (They don't bother with a full citation like they use for their other sources though.)

      While this is just a thought experiment, I think their use of interferometry to solve problems is pretty interesting, since it really is in some respects quantum computing. While, as they note, it isn't a quantum computer in the usual sense with entanglement and qubits, their method does, after all, depend on light following Fermat's Principle of Least Time, which in turn can be considered a consequence of quantum electrodynamics. It makes me wonder what other sorts of computational problems can be solved using invariant properties of the physical world.

      --
      "FDA staff reviewers expressed concern about the number of patients who were left out of the study because they died."
    4. Re:Some Reference info by faragon · · Score: 2, Informative

      Babbage was mechanical, while the proposed in the article seems more like a classic analog computer but using photons instead electrons.

    5. Re:Some Reference info by MikeTheMan · · Score: 2, Interesting
  6. So (a real comment)... by LiquidCoooled · · Score: 5, Funny

    So, to find out the shortest path for a travelling salesman you have to have a travelling Fibre fitter installing cables between all the cities?

    What is the optimum path the fibre fitter must take to lay all the cables and reduce his mileage?

    --
    liqbase :: faster than paper
    1. Re:So (a real comment)... by LiquidCoooled · · Score: 2, Funny

      You just don't get it...
      The travelling fibre layer must visit every city from every other city making his journey MUCH longer than the original salesman.
      Might be easier just giving the fibre fitter a second moonlighting job as a salesman.

      --
      liqbase :: faster than paper
    2. Re:So (a real comment)... by evanbd · · Score: 2, Informative

      So, on a serious note, the fiber installer (who has to traverse each edge) is different from the salesman (who has to visit each node). The problem of the installer is the Chinese Postman Problem , and is actually *not* NP-complete. In fact, the current best approximate solutions to the TSP involve transforming it to the CPP, solving that, and then transforming it back. (Sorry, I'm not clear on the details.)

  7. Not the first time this has been proposed by jfengel · · Score: 4, Interesting

    This solves a nondeterministic-polynomial algorithm by using a very large number of parallel computations to simulate nondeterminism.

    This was proposed some years ago for DNA computers as well, until somebody figured out that it would take a mass of DNA the size of the earth to figure out a non-trivial problem. So this is NOT the first time somebody has proposed a method for reducing NP problems to polynomial time, though this mechanism is novel as far as I know.

    Photons are a lot smaller than DNA. N^N photons seems much more feasible. But even so... once N=100, 100^100 photons is way more than we can handle.

    1. Re:Not the first time this has been proposed by PhysicsPhil · · Score: 4, Interesting

      This solves a nondeterministic-polynomial algorithm by using a very large number of parallel computations to simulate nondeterminism.

      This was proposed some years ago for DNA computers as well, until somebody figured out that it would take a mass of DNA the size of the earth to figure out a non-trivial problem. So this is NOT the first time somebody has proposed a method for reducing NP problems to polynomial time, though this mechanism is novel as far as I know.

      I'm not sure this comparison is correct. The use of DNA just increased the computational power available to the problem, but didn't change the fundamental methods of calculation (i.e. one step at a time). The DNA computer didn't make the NP problem go away, it just threw more power at it.

      This uses the interference of the light within an optical network to perform the calculation. The "operation", such as it is, relates to physically constructing the network rather than the number of photons required. In a very tenuous way, this is similar to a quantum computer, where multiple calculations are performed simultaneously. Of course it's not a quantum computer, but it does appear to be a polynomial algorithm.

    2. Re:Not the first time this has been proposed by mdmkolbe · · Score: 4, Insightful

      From the last line of the abstract, "The proposed method is meant purely as a gedankenexperiment."

      Translation, "We know this wont ever work; we just think it's cool."

      Even better is in section five where they cite Wikipedia for the definition of a quantum computer.

    3. Re:Not the first time this has been proposed by SeanMon · · Score: 5, Interesting

      A CO2 laser at 500 kW generating a beam of 10 micrometer wavelength produces about about 2.52 x 10^25 photons per second. It will only take 1.25 x 10^167 years to generate 100^100 photons.
      Just a bit more than we can handle.

      --
      "Scud Storm!" -- Jeremy of PurePwnage.com
    4. Re:Not the first time this has been proposed by Climate+Shill · · Score: 2, Funny

      Or to put it a little more excitingly, solving a 26 step problem with 12um photons will take somewhere in the region of 25 megatons.

      Which means you would probably have to be pretty desperate for sales.

  8. First Thoughts by TheRequiem13 · · Score: 5, Funny

    ...gedankenexperiment...
    Gasundheit!
    --
    What?
    1. Re:First Thoughts by codeButcher · · Score: 4, Informative

      Yes, I believe it should have been Gedankeneksperiment, with a capital G.

      Freundliche Grüße,

      Your friendly neighbourbood grammar Nazi

      --
      Free, as in your money being freed from the confines of your account.
  9. GRB explanation by a.d.venturer · · Score: 4, Funny

    As pointed out here "Apparently the method is polynomial in time, but exponential in energy ..."

    to which Charles Stross replies "Ah, so that's what the short duration GRBs are!"

    Fnord.

  10. Turing Machine vs Laws of Physics by TheEmptySet · · Score: 2, Insightful

    We do not apriori know that the laws of physics cannot be (ab)used to cause a computation to happen in a way which is strictly better than the way a Turing machine (read 'pretty much any computer you can think of') works. Though this apparatus requires a large number of photons it is an exciting result towards what could be a real paradigm shift in computing. For similar reasons quantum computing is interesting to us, but it too has its drawbacks. Alternatively one could hope for an (IMHO unlikely) proof of P=NP, which would say that a Turing maching can after all achieve similar efficiency.

  11. A general summary of the article by PhysicsPhil · · Score: 5, Informative

    I browsed through the article, and here is my understanding of what they are doing.

    The experimenters are constructing the map of the various cities using optical fibres. Each city represents a junction in the optical fibre network, and each fibre has a length proportional to the weight of the edge joining two cities in the abstract problem.

    Once the fibre network is constructed, they shine a white light source into the network. As the light propagates through the system, it splits at each junction (i.e. city). As a consequence, the optical signal is able to sample all possible paths through the network simultaneously. The entire optical network is put on one arm of an interferometer, and the length of the other arm (the reference arm) is adjusted. Starting from a known lower bound on the city length, the length of the reference arm is increased until the reference signal interferes with the output signal from the optical network. At that point, they have the length of the shortest path, and apparently can do some kind of reconstruction to get the actual path from there (didn't quite follow how that happened).

    The claimed reduction of an NP problem to quadratic comes from the setup of the experimental apparatus. An "operation" consists of connecting one of the N cities to another of the N cities. For an average collection of cities, there will be a number of roads/connections proportional to N^2. Of course the operation is awfully slow, but it's a thought experiment more than anything.

    1. Re:A general summary of the article by Bender0x7D1 · · Score: 5, Interesting

      One important part of any solution is the amount of time/cycles it takes to encode the problem for use in your algorithm.

      For example, I can't claim that my algorithm can factor a number in O(1) if I require that the input for the algorithm is a vector of the prime factors for the desired number. Yes, my part of the algorithm is O(1), but to take a number and convert it to the format for my algorithm is not O(1), meaning the overall performance can't be considered O(1).

      In summary, the time/cycles to set up the problem counts.

      --
      Reading code is like reading the dictionary - you have to read half of it before you can go back and understand it.
  12. NP != "Non-polynomial" by imasu · · Score: 5, Informative

    First off, NP does not mean "non-polynomial", it means "nondeterministically polynomial". Which means, the set of problems that can be solved in polynomial time on a nondeterministic turing machine. They are not reducing an NP problem to P here, which would require that their algorithm be executable on a deterministic turing machine in polynomial time. Rather, they are saying that if they effectively simulate a limited nondeterministic turing machine by increasing the number of compute units (in this case, photons) to effectively infinite numbers, then there is a polynomial solution. Which, since the travelling salesman problem is known to be in NP, is not surprising. Or am I misreading this? What IS cool is that they have found a way to actually effectively simulate a subset of a nondeterministic turing machine.

    1. Re:NP != "Non-polynomial" by The+Night+Watchman · · Score: 5, Informative

      Rather, they are saying that if they effectively simulate a limited nondeterministic turing machine by increasing the number of compute units (in this case, photons) to effectively infinite numbers, then there is a polynomial solution. Which, since the travelling salesman problem is known to be in NP, is not surprising. Or am I misreading this? That sounds right to me. I don't like how they're claiming that "the complexity of the traveling salesman problem can be dramatically reduced from N! to N^2 by optical means." They're not reducing the complexity of the problem at all. What they're doing is designing a parallel processing system that can approximate a nondeterministic Turing machine, thereby allowing the problem to be solved in polynomial time. This does nothing to indicate that P=NP. While they do make that point clear, I still take issue with their claim that they're doing anything at all to the complexity of the original problem.
      --
      "Every jumbled pile of person has a thinking part that wonders what the part that isn't thinking isn't thinking of"-TMBG
    2. Re:NP != "Non-polynomial" by teknopurge · · Score: 5, Informative

      Please mod parent and GP up. My thesis was on NP-Complete problems and combinatorial optimization and as soon as I saw "photons" I knew this was bunk. It does not matter what instrument you use: CPU core, Network Node, DNA, Molecule, Q-bit, electron-spin, etc. They are all constructs to illustrate problems. The entire point of NP-complete problems is that they cannot be solved and verified in reasonable time using anything that has a physical limitation: a clock speed, a limited number-of-sides, a finite number of nodes in a graph, finite degrees of spin, etc.

      IMO, the only way to reduce NP-Complete problems is using something like quantum entanglement or another similar characteristic that is not bounded by classical physics.

    3. Re:NP != "Non-polynomial" by asuffield · · Score: 2, Interesting

      IMO, the only way to reduce NP-Complete problems is using something like quantum entanglement or another similar characteristic that is not bounded by classical physics.


      Photons are not bounded by classical physics, and their behaviour can only be explained by quantum physics. Whether or not this behaviour can be exploited to perform computation more efficiently than a Turing machine is unknown (and will likely remain that way until we untangle the problem of how quantum physics really works). We still do not have a complete understanding of how they behave, and much of what we think we know is unproven. This idea's pretty far out on the edge of plausibility, but even if this particular method turns out to be flawed, we don't know enough to be sure that no other similar methods could work. (We also don't know whether quantum computing can do it, which is one of the big open questions in that field)

      The entire point of NP-complete problems is that they cannot be solved and verified in reasonable time using anything that has a physical limitation: a clock speed, a limited number-of-sides, a finite number of nodes in a graph, finite degrees of spin, etc.


      That statement is true only under the assumption that the model of computation is a form of Turing machine. The essential property of a Turing machine is that they can compute any effectively computable function. There is no particular reason to believe that they also have the property of describing the limits of what the physical universe can compute in a given space of time, and in fact they don't for some simple problems, although we haven't found any machines that can tackle NP problems yet. Even under "classical" physics, we're uncertain whether such a machine could exist; nothing in classical physics says that they can't, so far as we know.

      This question is right up there alongside "P=NP?", and has similar properties: we suspect and usually assume that such machines don't exist, but don't have anything resembling a good reason to believe this, other than "we haven't found one yet". It's not as interesting as "P=NP?" because in most cases, there is no way to prove something to be physically impossible (since you can never be sure that you have found the most fundamental laws of physics), so the question may remain unresolved forever.
    4. Re:NP != "Non-polynomial" by cpeikert · · Score: 2, Informative

      Shor's Algorithm, which solves an NP-whatever problem in (log n)^3 time, works because it draws computational power from another universe.

      Whoah, whoah. Shor's Algorithm solves the factoring problem, which is almost certainly NOT NP-complete. (If it were, then NP would equal coNP, which would be almost as surprising as if NP equalled P.)

  13. Still an exponential algorithm by n01 · · Score: 4, Insightful

    The paper says that the path the photons have to travel for a TSP with N cities is
    N*d + a*(2^N+1)
    Since the speed of light is finite, the algorithm still takes O(2^N) i.e. exponential time to complete.

  14. exponential photons == not practical by frankie · · Score: 4, Insightful

    To solve a 50-point traveling salesman using their algorithm would require on the order of 50^50 photons (about 10^85). For comparison, the Sun emits roughly 10^45 photons per second. Somehow I don't think their system is going to scale very well.

    1. Re:exponential photons == not practical by Cyclon · · Score: 2, Insightful

      The proposed method is meant purely as a gedankenexperiment.

      Guess you missed this part.

    2. Re:exponential photons == not practical by RealAlaskan · · Score: 4, Funny
      ... their algorithm would require on the order of 50^50 photons (about 10^85). For comparison, the Sun emits roughly 10^45 photons per second.

      So, are you saying that this is a pretty bright idea? Or that it's not so bright?

  15. You've exceeded Slashdot's DMR by spun · · Score: 3, Funny

    That joke has too high of a Dennis Miller ratio even for Slashdot.

    --
    - None can love freedom heartily, but good men; the rest love not freedom, but license. -- John Milton
  16. The run time is wrong by gr8_phk · · Score: 2, Insightful

    They claim n^2 time complexity. Then they point out the number of photons needed is n^n. There are physical limits to photon production rates. I would say they're still looking at an n^n problem unless they can produce an infinite number of photons instantly, and that would damage the equipment. It's an interesting method, but it doesn't actually improve the time complexity of the problem as they claim.

    1. Re:The run time is wrong by SamP2 · · Score: 3, Funny

      >I would say they're still looking at an n^n problem unless they can produce an infinite number of photons instantly, and that would damage the equipment

      If you can produce an infinite number of photons instantly than I don't think you'd be worried about any kind of equipment.

      For starters, try producing an infinite number of photons non-instantly (in a finite period of time), OR try to produce a finite number of photons instantly. Equipment will be the least of your problems.

  17. Exponential in computational resources by Geoffrey.landis · · Score: 2, Insightful

    It's an analog computer solution to the problem; note that analog computers are not subject to limits based on theorems relating to Turing machines (and related algorithmic computational devices). However, the resources required still scale exponentially; the computation (if you want to call it that) is done by photons, and the number of photons required scales as N^N. Essentially, they are trading time for computational resources, where in this case the computational resource is "photons".

    --
    http://www.geoffreylandis.com
  18. P= NP by naoursla · · Score: 2, Funny

    P is equal to NP because processing speed is increasing expoentially. Each year, the amount of processing you can do doubles.

    The researchers are just using an expoential number of photons to aid in the processing.

  19. My quack-o-meter is beeping by p3d0 · · Score: 5, Informative

    To our knowledge it is the first time that a method for the reduction of non-polynomial time to quadratic time has been proposed. This is far from the first time that someone has claimed to solve an NP-complete problem in P time by limiting the size of the problem. It's not that hard to design a circuit that solves TSP in polynomial time if you get to put a limit on the number of edges.

    Also, "NP" doesn't stand for "non-polynomial". There is no such thing as "non-polynomial time". It's Nondeterministic Polynomial time.

    These guys may know their optics, but they're amateurs in complexity theory. This is most painfully obvious in their concluding sentence:

    Since for practical (non-pathological) problems by purely electronic means very good solutions to even large size problems can be found, our proposed method is not meant to solve real-world traveling salesman problems but rather as a gedankenexperiment to show how photons and the laws of physics can considerably reduce the computational complexity of difficult mathematical problems. It does no such thing. All it does is parallelize the computation.
    --
    Patrick Doyle
    I mod down every jackass who puts his moderation policy in his sig. Oh, wait a sec....
    1. Re:My quack-o-meter is beeping by p3d0 · · Score: 2, Informative

      I agree with everything you have to say, with one nitpicking exception: non-polynomial time seems a reasonable term to use. An algorithm that is O(N^N) takes time that is not polynomial in N, hence it is non-polynomial time. I disagree. They're not talking about an algorithm here; they're talking about the Traveling Salesman Problem. They called the TSP "non-polynomial", and that is by no means certain. If you could prove that the TSP has no polynomial-time solution, you'd get the Turing award.
      --
      Patrick Doyle
      I mod down every jackass who puts his moderation policy in his sig. Oh, wait a sec....
  20. Josie Bauer addressed Travelling Salesman problem by karlandtanya · · Score: 3, Funny
    Some time ago.


    Solution involved a Farmer's daughter, which she apparently was.

    --
    "Reality is that which, when you stop believing in it, it doesn't go away." - Philip K. Dick
  21. Increasing Orders by Doc+Ruby · · Score: 2, Interesting

    "N+X" is called "addition": additive increase. "N+N" is called multiplication (2N): geometric increase, as is "N*X". "N*N" is called exponential (NX). What is "NN" called? And is there a higher order of increase?

    And what are all those kinds of operations called?

    --

    --
    make install -not war

  22. Poor choice of domain name by Anonymous Coward · · Score: 2, Insightful

    opticsexpress.com
    I guess they were going for "optics express"
    I of course read it as "optic sex press"
    and there's no way you're getting me to click that link at work!

  23. Mad moderation. by serviscope_minor · · Score: 2, Funny

    The parent post is woefully incorrect (just read a wikipedia article on NP completeness). But it is not a troll.

    Please, mods use some sense in moderating.

    --
    SJW n. One who posts facts.
  24. The given algorithm is $O(2^N)$ by natoochtoniket · · Score: 2, Insightful

    Actually, the running time is not reduced by the algorithm disclosed in the article. The disclosed algorithm has running time at least $O(2^N)$. The algorithm uses photons as parallel processors, but the shortest running time for any of those photons is $O(2^N)$. This is because the algorithm uses a time delay in the apparatus representing city $I$ equal to $\alpha 2^I$, where $\alpha$ is strictly longer than the longest city-to-city delay in the problem. In city $N$, the time delay is $\alpha 2^N$. The algorithm uses these time delays to differentiate between valid solutions and erroneous solutions to the TSP problem. For every valid solution, the photon representing that solution must pass through each city $i$, and must incur the corresponding delay. Hence, every valid solution is found only after time at least $\sum_{i=1}^N \alpha 2^i)$ or $O(2^N)$.

    The article approaches a problem that Optics Express readers might not normally consider. And, it may represent a new application of optics technology (that is out of my field). But, the use of physical models to approach $NP$ problems is not new. And, the algorithm is not faster than other known algorithms for the same problem.

  25. More precisely, wouldn't you be a German Nazi? by JimTheta · · Score: 3, Funny

    Your friendly neighbourbood grammar Nazi

    If I had a hard-ass Spanish teacher correcting my Spanish, then I'd call him/her a "Spanish Nazi". So, you know, if you were correcting my German, it stands to follow...

    I'm just sayin'.

  26. Re:Parent post is not correct. by asuffield · · Score: 2, Informative

    You are confused about the definition of a Turing machine. A Turing machine says nothing about computational efficiency.


    And yet, P and NP are defined in terms of a Turing machine. Herein lies the GPs point: it is taken as a given that the Turing machine is capable of computing any effectively computable function, but it is an open question as to whether we can build a different kind of machine which would be able to solve NP problems in polynomial time. By definition, the non-deterministic Turing machine solves NP problems in polynomial time, but we don't currently know how to build one.

    Quantum computers may or may not be such a machine - we're really not sure yet (possible proofs have been advanced for both answers; the prevailing opinion is that none of them are likely to be correct and quantum computers are something entirely new that we don't understand). Other methods of computation also may exist. Our understanding of the fundamental laws of physics is grossly incomplete, so we can't tell. However, it seems unlikely that the computational capacity of the universe is adequately modelled by a Turing machine.

    This relates to the question of "P=NP?" as follows: if such a machine can be built, then *some* machines can solve these problems in polynomial time. If P=NP, then *all* machines can solve these problems in polynomial time.
  27. However, it uses exponential resources by Michael+Woodhams · · Score: 2, Insightful

    In their setup, each city has a delay line (i.e. optical fibre.) Each new city you add has to have a delay line twice as long as the previous one you added. The required amount of fibre grows exponentially with the number of cities.

    --
    Quattuor res in hoc mundo sanctae sunt: libri, liberi, libertas et liberalitas.