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?"

83 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 interkin3tic · · Score: 2, Funny

      Either way, this problem sounds like it will keep computers buzzy.

    5. Re:great... by somersault · · Score: 2, Funny

      Just imagine what we could have accomplished in computing if we'd stuck with B instead of moving on to C!

      --
      which is totally what she said
    6. Re:great... by MrEricSir · · Score: 3, Funny

      I always knew BeOS was underrated.

      --
      There's no -1 for "I don't get it."
    7. 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

    8. Re:great... by mewyn · · Score: 2, Funny

      http://imgur.com/xhAvC - yeah, systems programming at 6AM can get kinda whacky.

    9. Re:great... by Chris+Burke · · Score: 2, Funny

      Huh, I didn't know that.

      So if a "bee-wolf" upgrades the wolf to a bear, would a "bee-bear" (beobeowulf I guess?) turn it into a Tyranosaurus? Or a raptor with an RPG riding a shark?

      --

      The enemies of Democracy are
  2. Bees have a guide by Anonymous Coward · · Score: 2, Interesting

    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.

    1. Re:Bees have a guide by NatasRevol · · Score: 2, Insightful

      So, you're arguing it's the algorithm that's wrong and not a better set of neurons.

      --
      There are two types of people in the world: Those who crave closure
    2. 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."

  3. Wait, whut? by MyLongNickName · · Score: 3, Funny

    quite interested how such a tiny insect can figure it out on the fly

    I thought we were talking about bees? I am so confused...

    --
    See my journal for slashdot ID's by year. Mine created in 2005. http://slashdot.org/journal/289875/slashdot-ids-by-year
    1. 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.
    2. Re:Wait, whut? by Monkeedude1212 · · Score: 2, Funny

      Looks like bees are the new buzzword.

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

    Simulated annealing.

    Yours In Akademgorodok,
    Kilgore Trout.

  5. 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 Anonymous Coward · · Score: 2, Insightful

      your just playing word games... if i've developed a method of figuring out how to catch a ball without using newtonian physics, I've still solved the problem.

    2. Re:Heuristic by Liquidrage · · Score: 2, Interesting

      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.

    3. Re:Heuristic by Anonymous Coward · · Score: 3, Interesting

      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.

    4. Re:Heuristic by gumbi+west · · Score: 2, Insightful

      I beg to differ. If it takes a supercomputer 4 days to solve it for 5 flowers... we have huge problems.

    5. 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.
    6. Re:Heuristic by IICV · · Score: 3, Informative

      That's pretty much what I was going to post. The bees almost certainly aren't solving the Traveling Salesman problem, they're getting good enough approximations of a solution. Our computers don't chug for days trying to figure out the answer to TSPs, they chug for a couple of seconds and produce a close-to-optimal solution.

      And the thing is, not all instances of the TSP are necessarily NP-Hard (for instance: if there was only one road between each city + 1 extra road between the first and last cities, the optimal solution is obvious), and the cases of it found in practical applications are generally far easier to handle than the cases found in more esoteric theoretical constructs (for instance: if you move east, you move closer to all the flowers in the east; this is not necessarily true in the general TSP). Most real instances of the TSP can be handled well enough with simple, quick greedy algorithms; they won't necessarily give you the best answer, but it'll be pretty close.

    7. Re:Heuristic by ubersoldat2k7 · · Score: 5, Funny

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

    8. Re:Heuristic by Syberz · · Score: 2, Funny

      [...] our brain makes its best guess based on some sort of heuristic or something to make the catch.

      Maybe your brain, but not mine. Mine generally makes me miss the ball by 3 feet or get hit in the nads. Maybe my brain works like old Intel processors?

      --
      ~Syberz
    9. Re:Heuristic by dzfoo · · Score: 2, Funny

      Did you mean making the would a better place?

      --
      Carol vs. Ghost
      ...Can you save Christmas?
  6. Re:Evidence by pitdingo · · Score: 3, Insightful

    who/what is god?

  7. I doubt it by MozeeToby · · Score: 2, Insightful

    First and foremost, how many nodes are we talking about here? I highly doubt that the bees are keeping track of hundreds of feeding spots from one trip out to the next but the article doesn't say.

    The second problem is this "Computers solve it by comparing the length of all possible routes and choosing the shortest." Who on earth would try to solve the traveling salesman this way? Yeah, a brute force solution will get you the guaranteed best path, but the performance is horrible. There's lots and lots of shortcuts that can save a huge amount of time, things as simple as eliminating crossed paths can make a big difference. You can even use techniques like genetic engineering successfully on such a problem (though you might not reach the absolute best path that way).

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

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

    2. Re:I doubt it by Anonymous Coward · · Score: 5, Funny

      Hulk smash traveling salesman!

      (I assuming we can engineer Hulks.)

  8. 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.

  9. 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...

    4. Re:Shortcuts by boojum.cat · · Score: 2, Informative

      A "bee-odesic"?

      --
      Lost: one sig, witty, 120 chars, sentimental value. Reward offered.
  10. Well... by Kufat · · Score: 5, Funny

    Does this mean that B >= NP?

  11. 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
    2. Re:Entomoengineering? by kvezach · · Score: 3, Funny

      You must have it confused with the Bermagavirus.

  12. Oh, really? by SoapBox17 · · Score: 3, Interesting

    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.

    1. 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.

    2. Re:Oh, really? by TheAlgebraist · · Score: 2, Interesting

      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.

  13. hierarchical models by allawalla · · Score: 2, Informative

    I imagine that the hierarchical models proposed by Scott Graham would be a pretty good candidate. If you break the TSP problem into a series of sub-problems of increasing complexity you get pretty good accuracy with reduced computations. Basically instead of trying to figure out how to move through all the towns in the US you first plan a route through all the states. You could probably derive a few simple heuristics that would give you that sort of behavior from a swarm...

  14. Re:Evidence by tverbeek · · Score: 5, Funny

    It's an abbreviation for Good Old Darwinism.

    --
    http://alternatives.rzero.com/
  15. 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.
    1. Re:Different Spaces by Americano · · Score: 2, Insightful

      I'd be interested to read the full paper... looks like it won't be published until this week.

      I have to wonder if it's simply local optimization that the bees are using - i.e., "Fly to a close flower not yet visited" - that starts looking like they're solving a much more complex problem? Are they visiting *every* flower on the "map"? Are they ever skipping some? Do they visit the flowers in exactly the same order, or is there variance from bee to bee (or between two trips from the same bee?)

      It seems to me that a few simple rules ("visit closest flower from current flower that you haven't visited yet") might approximate the correct TS solution for small maps & limited nodes, but that it would become quite a bit harder to generalize that solution to larger sets of nodes & longer distances.

    2. Re:Different Spaces by Americano · · Score: 2, Interesting

      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.

  16. 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.

    1. Re:Not the TSP by brownerthanu · · Score: 2, Insightful

      Daylight is not what a bee is trying to conserve, it's flight distance. Bees minimize the distance flown to minimize the amount of energy they expend. The ratio they try to minimize is (energy expended)/(pollen collected). Pollen is turned into energy. When bees leave the hive they have a certain amount of energy they can expend. If a bee gets blown too far off track, or expends to much energy in some other way, it will run out of gas and die. But, it's better to see the problem from the perspective of the hive. The hive wants to gain as much energy as possible, while expending as little as possible.

      So, actually the problem is fundamentally the same as TSP. It's a distance minimization problem. And just because they use a 'heuristic' doesn't mean that they don't have a solution to the TSP problem. An biologically-based genetic algorithm is no less valid than a computer algorithm.

    2. Re:Not the TSP by medlefsen · · Score: 2, Insightful

      In fact it's much closer to one of the other classic NP-Complete problems
      http://en.wikipedia.org/wiki/Knapsack_problem

    3. Re:Not the TSP by Americano · · Score: 3, Insightful

      The questions this raises are:

      1) Do bees always visit every flower (node) on the map?

      2) Once they've calculated their "optimal" route, do they ever vary it?

      3) If it's a heuristic - does it scale? Will it work for more than 100 flowers spread across something the size of my backyard? Or is the heuristic going to break down or become completely unworkable once the number of nodes reaches a certain point?

      What we can say so far is that they "appear" to be solving the problem, for some limited subset of the problem space. In actuality, they may be using some very simple rules that approximate the solution for small numbers of nodes and distances, but which would result in inefficient or sub-optimal solutions on a larger scale.

      In other words - I can catch a pop-fly to right field. Does that mean I can also use the same heuristics I'd use to catch a small object at low speeds over small distances to accurately launch a Patriot Missile to intercept an ICBM? The physics are the same, but a little jitter of a couple millimeters in my calculations when applied to a distance of several hundreds or thousands of kilometers will result in a pretty big miss.

  17. 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.

  18. The computer isnt going to die by 192939495969798999 · · Score: 2, Insightful

    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.

    --
    stuff |
    1. 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.
  19. Re:Evidence by Anonymous Coward · · Score: 4, Funny

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

  20. Re:Traveling Salesman?? by Dachannien · · Score: 2, Funny

    So what is the solution? Do you sleep with the farmer's daughter or sleep in the barn?

    Why choose? Haven't you heard of a "roll in the hay" before?

  21. Re:Wild Guess by smoothnorman · · Score: 3, Interesting

    ...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?

  22. 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.

    2. Re:Solving a different problem by Java+Pimp · · Score: 3, Interesting

      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).

      --
      Ascalante: Your bride is over 3,000 years old.
      Kull: She told me she was 19!
    3. Re:Solving a different problem by Garridan · · Score: 2, Insightful

      Epic NP fail. You just described the classical greedy algorithm. Try that on the following:

      A-B: 1
      A-C: 2
      A-D: 3
      B-C: 10000000000000
      B-D: 5
      C-D: 5

      Pinch at A. The vertices will hang in the order ABCD. Your algorithm gives an "optimal" route of weight 10000000000006. A drunken bee with a single wing would beat you there, choosing the path ABDC of weight 11.

  23. No I for one? by Stargoat · · Score: 2, Funny

    No "I for one welcome our new insect overlords"? Who are you and what have you done with Slashdot?

    --
    Hoist Number One and Number Six.
  24. 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.
  25. Re:165 million years of evolution, anyone? by grikdog · · Score: 2, Interesting

    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."

    --
    ``Tension, apprehension & dissension have begun!'' - Duffy Wyg&, in Alfred Bester's _The Demolished Man_
  26. How are they at Ticket to Ride? by JackPDiddly · · Score: 2, Funny

    A bee will never beat me at Ticket to Ride, the ultimate traveling salesman problem game.

  27. Re:Evidence by RollingThunder · · Score: 4, Insightful

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

  28. 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.
  29. Bullshit by nedlohs · · Score: 2, Insightful

    So they have proof that these bees solve the travelling salesman problem? Not just get a good approximation? Not just solve a slightly constrained version? Not just solve a slightly different problem? You know all the things that computers do just fine thank you very much, and aren't NP-hard.

    I notice the journal is a Naturalist one and the researchers aren't are bioligists and chemists not computer scientists.

    I have no difficulty believing bees have evolved (or been designed with if you must for those I don't feel like arguing with) a very efficient way of collecting pollen - it is after all fundamnental to their survival and reproduction. But that they happened to solve an NP-Hard problem that they have no need of solving (does an individual bee really visit *every* location on one trip? surely some imperfection would help in discovering new plants by having bees follow different paths?) - that seems a bit of a stretch.

  30. 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.

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

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

    --

    Gamingmuseum.com: Give your 3D accelerator a rest.
  32. 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.
  33. Re:It don't matter what you call it by gnasher719 · · Score: 2, Insightful

    The travelling salesman problem is the problem of finding the shortest route between a set of points. It doesn't matter HOW you solve it. You could time all possible journey's, you could do a sorting routine or god knows what. But if you solve it, you solved it.

    That is what the bee does. And maybe if we can learn HOW the bee does that, we might learn something from it. It might be a smarter way of solving things. Or maybe Bees have an additional variable from an unknown input that helps solve it.

    That's not what the bee does. That is what someone _claims_ the bee does. Big, big difference. I imagine they found that the bees visit flowers faster than in random order, or faster than the order in which they were told about the flowers. I think a simple algorithm like "always visit the nearest flower that wasn't visited yet" would probably impress these "scientists" no end.

    BTW. Bees shouldn't even try to solve the travelling salesman problem. Assume a single flower very far away - the best solution may not be to figure out the quickest path to visit is, but to ignore it.

    As a programming exercise: The "Realtime Travelling Salesman" problem: Give the computer a list of places to visit, with a list of travelling times from each place to each other place. Then the computer starts calculating. As soon as it tells you the first destination, you go to that destination. The computer can continue calculating while you travel, but if it doesn't give the next destination when you arrived at the first destination, you have to wait. Obviously the total time from the start of the calculation until all places are visited needs to be optimised. That means optimising the calculation time as well, and picking a goal when further calculations likely waste more time than they could save.

  34. Probability Collectives by Anonymous Coward · · Score: 3, Informative

    Probability Collectives are interesting because they are one of very few optimization alogorithms born from first principles considerations. For example, Simmulated annealing comes from Metropolis/hastings search and that was a brilliant breakthrough that allowed rapid exploration in a way that guarentees detailed balance. Parallel Tempering is the parallel extension of that first-principles argument. Most other search and optimization algorithms are born from either heurisitics expected to align with a search domain or considerations based on efficient algorithmic implementation (such as genetic algorithms). While one can go back and try to develop rigorous theories around expedients and heuristics, and there's a whole industry of that, in the end it's better I think to start from first principles.

    Probability collectives starts with the assumption that that a team of agents will be making decision independently that affect the search path and that each agent is bounded rational. That is, each agent not only can't know everything, but can't be relied on to make optimal choices every time. You then discover what game theory says is the best way to search in this situation. You might visualize a set of airliners trying to negotiate landing times under conditions were some of them have been delayed and you have to reprogram flights in real time with incomplete knowledge.

    As the algorithm searches the bound on the rationallity is annealed towards perfect rationality since more information is learned.

    The algorithm tends to very efficiently use past information (compared to a GA or simulated annealing) but the per-interation computation effort is higher. Thus it is best applied in cases where agents are distributed (no centralized optimizer) or where the cost of gathering data is high or where the agents have available computing time between samples. One example of it's use in dumb-ditributed systems was the control of wing flaps on UAVs. Many micro flaps were agents which, without a central processor, solve the problem of prevent turbulence instability. presently it has achieved the highest wing speed without turbulence of any method, even ones that try to solve detailed physics equations in a central flight computer.

    Most research on this approach is still in academics of the basic theory. very little attention has been placed on efficient coding of the methods. There are no libraries for it available. This would make a great CS master's thesis project for someone or indeed many people since the theory at this point is large.

  35. Re:Evidence by BobMcD · · Score: 3, Interesting

    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...

  36. Re:Evidence by blair1q · · Score: 3, Insightful

    That's a simple way of saying that evolution created a program in their brains that solves the TSP fairly efficiently under certain constraints.

  37. Massively Multithreaded Genetic Algorithm by sneakyimp · · Score: 2, Interesting

    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.

  38. Re:Evidence by Unequivocal · · Score: 2, Insightful

    Thanks - this is what I was thinking too. It seems like the hard part of TSP is to *prove* that the shortest solution is in fact shortest. I think it's relatively trivial to find a very short solution to the problem (even by hand for a reasonable # of nodes). Demonstrating that the proposed path is in fact the absolute best is where the headaches (NP time) come in?

  39. Re:Evidence by m2shariy · · Score: 2, Funny

    Game Over, Dude!

  40. Re:Evidence by agbinfo · · Score: 2, Funny

    Is that similar to an aGNUstic?

  41. Re:Evidence by drinkypoo · · Score: 2, Insightful

    What Slashdot needs is a write-in moderation option so you can moderate (-1, Wrong) or (+1, Fucking Awesome).

    --
    "You're right," Fisheye says. "I should have set it on 'whip' or 'chop.'"
  42. Re:Evidence by Creedo · · Score: 2, Insightful

    Sure, chemistry no one has been able to reproduce in the lab under any circumstances.

    No, it's based on basic biochemical reactions which are demonstrated on a daily basis in any number of labs. Are you completely ignorant of that field, and simply repeating dogmatic statements with no correlation to reality?

    --
    All that is necessary for the triumph of good is that evil men do nothing.