Slashdot Mirror


Bees Beat Machines At 'Traveling Salesman' Problem

eldavojohn writes "Recent research on bumble bees has proven that the tiny bee is better than computers at the traveling salesman problem. As bees visit flowers to collect nectar and pollen they discover other flowers en route in the wrong order. But they still manage to quickly learn and fly the optimally shortest path between flowers. Such a problem is NP-Hard and keeps our best machines thinking for days searching for a solution but researchers are quite interested how such a tiny insect can figure it out on the fly — especially given how important this problem is to networks and transportation. A testament to the power of even the smallest batch of neurons or simply evidence our algorithms need work?"

36 of 394 comments (clear)

  1. great... by MagicMerlin · · Score: 5, Funny

    now you get a faster computer that makes honey!

    1. Re:great... by Anonymous Coward · · Score: 5, Funny

      No, you get a beeowulf cluster.

    2. Re:great... by idontgno · · Score: 4, Funny

      Alas, it doesn't run Linux.

      It run BEE-Os.

      --
      Welcome to the Panopticon. Used to be a prison, now it's your home.
    3. Re:great... by Toze · · Score: 5, Informative

      "Beowulf" is a kenning, a poetic analogy in Old English. It already means bee-wolf, a sort of pun for bear, which is what the name translates to in modern English.

      --
      No OS on the planet can protect itself from a user with the admin password. - Yvan256
    4. Re:great... by RDW · · Score: 4, Funny

      Strangely enough, we also had a problem with a travelling salesman in my community, and we successfully used bees to deal with it:

      http://www.youtube.com/watch?v=-1GadTfGFvU

  2. In Other ( Two ) Words: ( +1, Helpful ) by Anonymous Coward · · Score: 5, Interesting

    Simulated annealing.

    Yours In Akademgorodok,
    Kilgore Trout.

  3. Heuristic by Sonny+Yatsen · · Score: 4, Insightful

    Is it possible that the honey bees aren't really solving the Traveling Salesmen problem at all, but rather employ some sort of unknown heuristic that leads to solutions that's close enough to optimal for it to look like that they've solved it? Maybe that's what we should be looking at rather than pondering if bees somehow have some sort of superior calculating ability over a supercomputer.

    After all, when we're playing a game of baseball (right, right, I know, this is slashdot), and a ball is coming towards us, we aren't calculating in our heads the velocity, air resistance and other variables involved in catching the ball. We just reach out our arms and our brain makes its best guess based on some sort of heuristic or something to make the catch.

    --
    My postings are informational and does not constitute legal advice. Act on it at your risk.
    1. Re:Heuristic by Dutch+Gun · · Score: 4, Interesting

      After all, when we're playing a game of baseball (right, right, I know, this is slashdot), and a ball is coming towards us, we aren't calculating in our heads the velocity, air resistance and other variables involved in catching the ball. We just reach out our arms and our brain makes its best guess based on some sort of heuristic or something to make the catch.

      You should read "On Intelligence" if you're at all interested in that subject. Jeff Hawkins (Palm inventor) proposes a fascinating theory of the inner workings of the brain.

      --
      Irony: Agile development has too much intertia to be abandoned now.
    2. Re:Heuristic by ubersoldat2k7 · · Score: 5, Funny

      It's called Ruby, and it's not a problem, it's a feature, a trendy one.

  4. The answer is obvious by eln · · Score: 4, Funny

    We need to expend more effort to recruit bees into computer science. Too many bees are wasting their lives solving these problems on the fly for a little nectar when they could be solving these problems in exchange for tenure at our nation's finest universities.

  5. Shortcuts by Imagix · · Score: 4, Interesting

    Was the Travelling Salesman presented with the completely connected graph the way the bees were? The bee isn't constrained to fly along predefined paths between nodes, the travelling salesman is.

    1. Re:Shortcuts by MozeeToby · · Score: 5, Insightful

      Which makes the problem more difficult, not less. The way it is usually presented in CS the distance between the nodes is the minimum cost path, the bees would also have to 'calculate' that in addition to solving for the correct order. Think about it this way, imagine trying to solve the traveling salesman path between 100 cities, but you can take any route you want between cities. You could take all the back roads, the freeway, you could hop on a train or an airplane, you could kayak down the river between two cities. It doesn't make the problem any easier, in fact it adds a ton more variables to the mix, effectively increasing the number of routes that would need to be checked using a brute force solution.

    2. Re:Shortcuts by T+Murphy · · Score: 4, Funny

      Well duh that makes the problem harder. It would take years just to train the bees how to kayak, not to mention refitting airport body scanners- in 100 cities even! Can't we just simplify things and teach these bees how to send viagra spam so they don't have to travel to play salesman?

    3. Re:Shortcuts by MaskedSlacker · · Score: 5, Funny

      I dunno. If only we had a word for this....something like the line that a bee would travel...

  6. Re:I doubt it by wed128 · · Score: 4, Insightful

    I think you mean genetic algorithms. Genetic engineering is...something else.

  7. Well... by Kufat · · Score: 5, Funny

    Does this mean that B >= NP?

  8. Entomoengineering? by schmidt349 · · Score: 4, Interesting

    We have a lot yet to learn from our six-legged colleagues, from the sound of it. Recently some work was done on optimizing machine vision using an algorithm derived from the way the house fly's vision works. The termite's wood-digesting gut is a prime object of study for those seeking to manufacture fuel from biomass efficiently and cleanly. An insect virus (the baculovirus) is the new hotness for gene transduction in mammalian cells because it can't actually cause disease.

    I think this might be the next step in bioengineering. We've been grabbing genes out of various organisms and sticking them in bacteria to produce useful biomolecules like insulin and factor VIII. Maybe the insect is our next stop.

    1. Re:Entomoengineering? by $RANDOMLUSER · · Score: 5, Funny

      Many researchers are worried that the baculovirus isn't as benign as first thought. Some even claim it killed the Star Trek franchise.

      --
      No folly is more costly than the folly of intolerant idealism. - Winston Churchill
  9. Re:Evidence by tverbeek · · Score: 5, Funny

    It's an abbreviation for Good Old Darwinism.

    --
    http://alternatives.rzero.com/
  10. Different Spaces by eldavojohn · · Score: 4, Insightful

    After all, when we're playing a game of baseball (right, right, I know, this is slashdot), and a ball is coming towards us, we aren't calculating in our heads the velocity, air resistance and other variables involved in catching the ball. We just reach out our arms and our brain makes its best guess based on some sort of heuristic or something to make the catch.

    I think the problem with your analogy that there are an unlimited number of dimensions and responses where you could put your arm out to make the catch (well, not unlimited if you consider Planck distances to be the smallest possible distance). But when we are talking about computerized flowers with nectar, you pretty much can only go to one of the flowers next. I think they used RFID to track the bees (or at least this researcher has written about doing that before)? So we can sit there and do a star search on all paths of the 50 flowers and find the shortest one to connect all of them in three dimensions in a particular order (we assume the flight paths are straight lines). The difference is not that we have so many fewer things to search than in the ball catching example but that you take a very finite deterministic path (i.e. 2, 34, 23, 6, 18, etc) and the bees seem to be able to find and learn this very quickly. According to the researcher:

    "In nature, bees have to link hundreds of flowers in a way that minimises travel distance, and then reliably find their way home - not a trivial feat if you have a brain the size of a pinhead! Indeed such travelling salesmen problems keep supercomputers busy for days. Studying how bee brains solve such challenging tasks might allow us to identify the minimal neural circuitry required for complex problem solving."

    If this holds true for hundreds of flowers, I think we're talking about a serious search space with a definite path that is far more specific than the heuristics of moving your arm and hand around dynamically in space to collide with a ball. You could have tons of error when trying to catch a ball and still catch it. You (frequently) only have one optimal path in shortest distance problems. It's probably true these traveling salesman problems look obvious to a bee like catching a ball does to us but something particularly interesting is going on there if it is.

    Let's say it is an unknown heuristic. I'd wager the network folks would kill to know how that heuristic is so cheaply computed.

    --
    My work here is dung.
  11. Re:I doubt it by Anonymous Coward · · Score: 5, Funny

    Hulk smash traveling salesman!

    (I assuming we can engineer Hulks.)

  12. Not the TSP by sco08y · · Score: 5, Interesting

    Is it possible that the honey bees aren't really solving the Traveling Salesmen problem at all, but rather employ some sort of unknown heuristic that leads to solutions that's close enough to optimal for it to look like that they've solved it?

    This article is fundamentally misstating the TSP. If it were the TSP, the bees wouldn't get to choose their route.

    As other bees come in and report their route taken and pollen collected, another bee will put bits of those routes together. (Which would be the surprisingly difficult part to me, since the bees are doing some pretty complicated vector algebra.) But a bee is going to have a budget of so much daylight and will attempt to maximize the amount of nectar it collects in that time, given the bits of routes collected by other bees and its own scouting. But it's not given a list of points it has to hit, it picks its list from a larger list of points. That's fundamentally different from the TSP, even solving it by heuristic.

  13. Grass seed? You mean CORN? by SmallFurryCreature · · Score: 4, Funny

    Gosh, that is one hell of a bee if it has the brain of a piece of corn... or is corn not a grass anymore? At least when you take some idiotic comparison, take one that has a non-changing size. Penny is okay because all pennies at least within a country tend to stay the same. But grass seeds?

    Next up is "brain the size of a pinhead". Oh okay, so there are many sizes of pin but at least we can assume some kind of standard. And that is FAR smaller then most grasses I know and see seeds of in Holland.

    Otherwise intresting stuff but I loathe this "make it easier" by obuscating the facts.

    Number of neurons in honey bee brain = 950,000 (from Menzel, R. and Giurfa, M., Cognitive architecture of a mini-brain: the honeybee, Trd. Cog. Sci., 5:62-71, 2001.)

    Now THAT is a fact. We? We got 100 billion. So, while a bee has a tiny brain compared to ours, it is HARDLY simple. And because it is far smaller and far more primitive it doesn't need as as much intelligence to deal with things it doesn't need to. Listening and producing speech is complex, but bees don't bother with that. Living for half a century and remembring everything is complex. But bees don't do that.

    This why computers can do math so fast despite being so stupid, because they only do math.

    How can the bee do route calculation with close to a million neurons? I have no idea but didn't research show that far fewer rat neurons could fly a plane? I think some people fastly underestimate the complexity of the brain even small ones. We already know that a neuron is far more then a simple transistor so 1 million super transistors would make for a hell of a complex computer. Suddenly it doesn't seem to odd that a bee can do computations far more complex because THAT is what it is designed to do. You could just as easily marvle at the fact that the bee with its tiny brain can fly, while I with my large brain can't. And no I don't just mean I don't have wings, I mean that if you put me in a helicopter you would have a horrible crash in seconds and that is in the passenger seat.

    Marvle at nature, learn from it but don't belittle it. It takes us year to program a robot to walk very very slowly. A deer learns it in minutes and this includes learning to control legs locked up in a womb for months. We can either accept that nature is amazing or we are very very poor programmers... as a developer, I choose to believe that nature is amazing.

    --

    MMO Quests are like orgasms:

    You may solo them, I prefer them in a group.

  14. Re:Wait, whut? by fractoid · · Score: 5, Funny

    Oh, beehave.

    --
    Rampant carbon sequestration destroyed the Dinosaurs' tropical paradise. I'm here to help repair the damage.
  15. Re:Evidence by Anonymous Coward · · Score: 4, Funny

    Thereby substituting one guy with a beard who must be worshipped for another.

  16. Re:Oh, really? by gumbi+west · · Score: 5, Insightful

    100 flowers=100! possibilities. Using brute force on a 1 GHz processor and computing one solution per cycle (quite optimistic), it would take you 3 times 10 to the 141 years to complete. Even if your cellphone had a helaflop processor, it would still take longer than the age of the universe to compute this way.

  17. Solving a different problem by goombah99 · · Score: 5, Informative

    The canonical traveling salesman problem usually is states that all cities must be visited. The bee is not under this constraint. This changes the problem from a do-or-fail NP hard problem to a more simple approximate optimization problem. The latter have many many many many many good solution paths in computers. Perhaps the newest and best approach that resembles the bee's agent based learning approach is called Probability Collectives (google it). You'll want to learn it since it works well on parallel computers, distributed computing, and most of all on systems composed on many dumb subunits on a sparsely connected network with no central command and control (think mobile devices).

    --
    Some drink at the fountain of knowledge. Others just gargle.
    1. Re:Solving a different problem by timeOday · · Score: 4, Insightful
      Exactly! The take-home lesson from nature is that worst-case analysis of exact algorithms (i.e. most of what we traditionally studied in CS) is pretty useless. Nature doesn't optimize, it satisfices.

      I suppose the exception is when competing against an intelligent adversary, who constantly strives to give you worst-case problems and where a small margin of victory is a victory nonetheless.

  18. Slime molds do something similar by smellsofbikes · · Score: 5, Interesting

    If you build a maze that has multiple routes through it, and two pieces of food in it, and drop a bunch of slime molds into the maze in various places, they will fairly rapidly coalesce into a single slime mold that extends through the maze on the shortest route between the two bits of food. Now, that's no traveling salesman problem -- but slime molds are single-celled animals, so they don't have *any* brains to do the calculations. They just rely on minimizing surface area and maximizing access to food. (And being able to stop being multiple organisms and start being a single organism, but that's an aside.)

    --
    Nostalgia's not what it used to be.
  19. Re:Evidence by RollingThunder · · Score: 4, Insightful

    You mean millions of iterations of random chance have selected the most efficient pollen-gatherers.

  20. Re:Evidence by Rakshasa+Taisab · · Score: 4, Insightful

    Anyone who thinks the bees solved NP-hard problem here does not know what they're talking about...

    Those bees did not do an exhaustive search for the optimal path, only one that is 'good enough'. Computers can do the same with any decent algorithm. Only difference here i assume is that the bees have hardware that has gone through natural selection to produce a pretty good 'best effort' algorithm.

    If those bees can produce the optimal path for all corner-case setups then I'll be rather impressed.

    --
    - These characters were randomly selected.
  21. Re:Bees have a guide by cindyann · · Score: 5, Informative

    What amazes me though is how they look at another bee and visualize it traveling to a set patch of flowers, by looking at its dance.

    Are we discussing bumble bees or honey bees? The summary says bumble bees.

    http://www.earthlife.net/insects/socbees.html states that bumble bees "...have not evolved any means of communicating information reguarding utilisable resources."

  22. Bogus claim by Animats · · Score: 4, Informative

    Oh, this one again. I've seen this claim made for neural nets back in the 1980s, and for DNA computers in the 2000s. It's bogus.

    The guaranteed-optimum solution to the TSP is NP-hard. The "gets to the optimum 99% of the time and close to it all the time" solution is easy. It was developed at Bell Labs in the 1960s. Here it is:

    1. Link all the nodes in some arbitrary path.
    2. Pick two random links, and cut the path into three pieces by cutting those links.
    3. Try reassembling the three paths in all possible ways (there are 3*2*2*2*2/2 = 24 different paths) and measure the length of each. Pick the shortest.
    4. If the path length hasn't improved in some reasonable number of iterations, stop. Otherwise go back to step 2.

    This is a particularly efficient way to do it. I once coded this for a PC/AT, and it took less than a second for N=50. Almost any scheme which randomly breaks links and tries to improve the path will eventually converge on a near-optimum solution.

  23. Re:Evidence by operagost · · Score: 4, Funny

    I think Slashdot needs a "+1, Atheist" now.

    --

    Gamingmuseum.com: Give your 3D accelerator a rest.
  24. Re:Evidence by Jedi+Alec · · Score: 5, Insightful

    Question is...did the bees evolve to find the corner cases, or did the plants evolve so the damn bees could find them in the first place? After all, plants that are stupid enough to hide from bees while simultaneously needing them to reproduce would stand a good chance of not making it to the next generation ;-)

    --

    People replying to my sig annoy me. That's why I change it all the time.
  25. Re:The computer isnt going to die by Bob-taro · · Score: 4, Funny

    The computer isn't going to die if it doesn't get the right path, the bee might. Death is a remarkably strong motivator to be efficient.

    Don't tell my boss.

    --
    Prov 9:8 Do not rebuke mockers or they will hate you; rebuke the wise and they will love you.