Follow Slashdot blog updates by subscribing to our blog RSS feed

 



Forgot your password?
typodupeerror
×
Education Programming

Bees Beat Machines At 'Traveling Salesman' Problem 394

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?"
This discussion has been archived. No new comments can be posted.

Bees Beat Machines At 'Traveling Salesman' Problem

Comments Filter:
  • Bees have a guide (Score:2, Interesting)

    by Anonymous Coward on Monday October 25, 2010 @11:38AM (#34012950)

    After the genetic vector is put in, all the bees have to do is keep track of the sun. 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.

  • by Anonymous Coward on Monday October 25, 2010 @11:40AM (#34012974)

    Simulated annealing [wikipedia.org].

    Yours In Akademgorodok,
    Kilgore Trout.

  • Shortcuts (Score:5, Interesting)

    by Imagix ( 695350 ) on Monday October 25, 2010 @11:42AM (#34013026)
    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.
  • Entomoengineering? (Score:5, Interesting)

    by schmidt349 ( 690948 ) on Monday October 25, 2010 @11:45AM (#34013082)

    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. [uwyo.edu] 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.

  • Oh, really? (Score:4, Interesting)

    by SoapBox17 ( 1020345 ) on Monday October 25, 2010 @11:47AM (#34013124) Homepage
    First TFS and TFA both make reference to problems which "keep super computers busy for days." That's pretty misleading since the bees are only dealing with "a few hundred" flowers. At brute force that would take your cell phone maybe a couple minutes to solve.

    But really no details are given. Do the bees still travel to all of the flowers? I'd imagine they might just decide to skip one or two if they don't fall close enough to the path to be worth it. They don't say what they did (probably nothing) to validate that the bees actually found the shortest path. Did the "graph" that they gave the bees include a section where a greedy algorithm would fail? What is more likely is the bees haven't solved it, but found a decent approximation.

    I think this is what you get when you let bee researchers write math/computer science articles.
  • Re:Heuristic (Score:3, Interesting)

    by Liquidrage ( 640463 ) on Monday October 25, 2010 @11:51AM (#34013196)
    That was pretty much my thought. Do the bees ever get it wrong or at least not perfect? Seems obvious they world. I'd imagine the power lies in "good enough" thinking vs "perfect" thinking. Kinda an analog vs digital approach. If bees are able to map out where they are and which flower is closest to them at the time and head to that one next, they won't always get the perfect route, but it'll be close enough and sometimes be the best route based on a few variables in the layout.
  • Re:Heuristic (Score:3, Interesting)

    by Anonymous Coward on Monday October 25, 2010 @11:59AM (#34013376)

    Nope. You've solved one small set of problems, which is related to the bigger problem. Does your method work for just balls? What about anvils? Churches? Very small rocks? How about when thrown through water, or over a hill? Can it be applied to every situation where Newtonian physics works?

    The travelling salesman problem is a very specific definition of a problem. Solving it for one specific set (a given graph, size, or even geometry) does not solve the whole problem. Similarly, I know of no non-euclidean bees, so this research still doesn't solve the traveling salesman problem. As the grandparent said, the bees are likely employing some new rule we haven't thought of yet. The research might lead to new insight, though, and for that it's valuable.

  • Not the TSP (Score:5, Interesting)

    by sco08y ( 615665 ) on Monday October 25, 2010 @11:59AM (#34013382)

    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.

  • Re:Heuristic (Score:5, Interesting)

    by Dutch Gun ( 899105 ) on Monday October 25, 2010 @12:07PM (#34013480)

    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.

  • Re:Wild Guess (Score:4, Interesting)

    by smoothnorman ( 1670542 ) on Monday October 25, 2010 @12:16PM (#34013640)
    ...or even simpler, the scent of the flowers themselves. those antennae on the bees' heads aren't just for a sense of fashion. so to all you NP-mathematicians out there: suppose our traveling salesman had a means to follow a concentration gradient to the nearest sales point?
  • Kinda reminds me (Score:1, Interesting)

    by Anonymous Coward on Monday October 25, 2010 @12:17PM (#34013662)

    Kinda reminds me of the Geek shopping team [xkcd.com]. If you want perfect you'll never get close enough to pull the trigger but shoot for close enough and you're off to the races.

  • by smellsofbikes ( 890263 ) on Monday October 25, 2010 @12:29PM (#34013888) Journal
    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 [abc.net.au]. 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.)
  • by grikdog ( 697841 ) on Monday October 25, 2010 @12:29PM (#34013896) Homepage
    Also, why assume that ganglia are the progenitors of such an unexpected result? In insects, as in shrimps and crabs, those densely packed ommatidia provide a ready made neural net suitable for extraordinary in-flight calculations, such as reaction times 10x greater then human reflexes in hunting dragonflies. Just because they're called "compound eyes" doesn't mean they function ONLY as "eyes."
  • by avandesande ( 143899 ) on Monday October 25, 2010 @01:12PM (#34014580) Journal

    Yes, it's easy to solve outside of a computer- tie a bunch of strings together representing your routes.
    Any two points are easily resolved by picking holding the points in each hand and pulling it taught.
    The taught strings are your route.

  • Re:Evidence (Score:4, Interesting)

    by BobMcD ( 601576 ) on Monday October 25, 2010 @01:37PM (#34014926)

    Those bees did not do an exhaustive search for the optimal path, only one that is 'good enough'.

    How do you know this? I'm not seeing that stated in the article. In fact,

    Scientists at Queen Mary, University of London and Royal Holloway, University of London have discovered that bees learn to fly the shortest possible route between flowers even if they discover the flowers in a different order.

    This seems to directly contradict what you're saying, so I'll assume you have access to more information and will be linking likewise shortly...

  • by Java Pimp ( 98454 ) on Monday October 25, 2010 @01:49PM (#34015116) Homepage

    I believe the bee's have an advantage over the typical traveling salesman problem in that the bee's are finding the shortest path on a fully connected or complete graph. The traveling salesman problem is hard because the graph is not necessarily fully connected so all paths have to be examined individually. The bee presumably also has a predetermined starting node, the one closes to where it is released.

    I believe the shortest path on a fully connected graph is found by always choosing the closest non-visited neighbor from the current node. The difference in calculation is O(n!) vs. O(n^2).

  • by sneakyimp ( 1161443 ) on Monday October 25, 2010 @01:58PM (#34015260)

    I'd be willing to bet it has something to do with the fact that you have an entire hive of bees each attempting to find the shortest path and then sharing their experience via that 'bee dance' thing (http://www.youtube.com/watch?v=-7ijI-g4jHg). Each bee is a thread with its own particular solution to the problem. Each bee's behavior contributes random heuristic alterations to the nectar-gathering path based on bee instincts evolved over millions of years. The bees periodically exchange solutions via the bee dance. It's a classic Genetic Algorithm.

  • Re:Oh, really? (Score:2, Interesting)

    by TheAlgebraist ( 1900322 ) on Monday October 25, 2010 @04:23PM (#34017078)
    According to the abstract there were 4 flower patches incrementally revealed to the bees so that the order they discover them makes for a long suboptimal route. The bit about bees picking an minimal route through hundreds of flowers does not appear to be substantiated by the paper, unless they wrote their abstract so as to seriously understate their results. The abstract does not indicate they tracked bee paths by flower, only by flower patch. Not beeing idiots, with only 24 possible routes, the bees usually follow the optimal route. They follow the optimal route more frequently with experience, occasionally taking a novel route. From the abstract, the article appears to discuss why the bees sometimes take a suboptimal route. There is one mention of the travelling salesman problem in the abstract at the very end and it feels like they threw it in there as a buzzword to get more funding/attention. This research may lead to something interesting if they do track flower to flower movement, but as of now there is nothing to see. If anyone has access to the actual article maybe they can provide some more info.
  • Re:Different Spaces (Score:3, Interesting)

    by Americano ( 920576 ) on Monday October 25, 2010 @06:05PM (#34018480)

    Since a bee is flying, a simple change in wind direction would have a large impact on finding the best route and locations to stop at.

    That's true, although you could still reduce it back to the TSP easily enough - optimize for 'minimal energy expenditure' instead of 'minimal distance,' since distance traveled factors into the energy expended. Of course, even that still varies in 'real world' conditions - breezes come and go and change direction, birds come by looking for a snack, a lawnmower destroys a dozen of the flowers you were 'planning' to visit; turns out that what looked like an optimal route 20 minutes ago may put you facing a hurricane-force headwind on the return trip, with half the flowers you planned to visit initially destroyed and no longer options for stopping.

    If they're somehow choosing each leg in an attempt to visit a consistent set of nodes every time, in the same order, then I'd say there's some basis to say they're 'solving' this problem; if they're not doing that, it would be more like telling the Traveling Salesmen, "visit some cities until you get tired, and skip some if you just don't feel like going to them, or if a nuclear attack destroys them while you're en route."

    My initial impulse is to say that it sounds like researchers are angling for a little crossover press & grant money by using a buzzword like "biomimetics." Doesn't mean there's nothing to the story, but I'm skeptical that it maps as well to the problem domain as TFS & TFA suggest.

Arithmetic is being able to count up to twenty without taking off your shoes. -- Mickey Mouse

Working...