Summary
This episode explores how honeybee foraging behavior inspired a revolutionary algorithm that solved critical internet infrastructure problems. Sunil Nakrani and Craig Tovey discovered that bees' decentralized decision-making system for allocating resources among flower patches could be mathematically modeled and applied to server allocation, making the internet 10-20% more efficient.
Insights
- Decentralized systems without central authority can achieve optimal resource allocation by responding to real-time feedback rather than predicting the future
- Nature has solved complex optimization problems through millions of years of evolution that human engineers struggle with despite advanced computing
- Simple feedback rules (bees returning quickly from patches recruit more foragers) can produce sophisticated collective intelligence without top-down management
- The honeybee algorithm demonstrates that elegance in problem-solving comes from responding to present conditions rather than forecasting future demand
- Biological research with no apparent commercial application can yield transformative solutions for entirely different industries
Trends
Bio-inspired algorithms becoming practical solutions for infrastructure and technology challengesShift from predictive/forecasting-based systems to real-time responsive systems in resource allocationDecentralized decision-making models outperforming centralized control in complex, dynamic environmentsCross-disciplinary innovation where biological research directly informs technology developmentOpen-source sharing of fundamental research accelerating adoption across multiple industriesApplication of nature-based optimization to emerging fields like electric vehicle design and medical imagingRecognition that simple, elegant solutions often outperform complex human-designed systemsGrowing interest in swarm intelligence and collective behavior as design paradigm for distributed systems
Topics
Honeybee foraging behavior and waggle dance communicationInternet server allocation and load balancingDecentralized resource allocation algorithmsCollective intelligence and swarm behaviorNetwork infrastructure optimizationBio-inspired computing and biomimicryReal-time feedback systems versus predictive systemsInternet traffic management during viral content eventsData center and server farm architectureAlgorithm design and mathematical optimizationEvolution as problem-solving mechanismDistributed systems without central authorityWebsite performance and user experienceGolden Goose Award for government-funded researchCross-industry application of biological research
Companies
IBM
Sunil Nakrani's first employer in 1989 when he began his career in technology
Tumblr
Example platform where viral content (the dress photo) caused internet traffic spikes
BBC
Website that experienced server overload when hosting viral content about the Suez Canal ship
Healthcare.gov
Example website that experienced crashes due to overwhelming user demand
People
Sunil Nakrani
PhD student in communication engineering at Oxford who developed the honeybee algorithm for internet server allocation
Craig Tovey
Systems engineer and operations research expert at Georgia Tech who connected honeybee behavior to Sunil's internet p...
Tom Seeley
Retired Cornell neurobiology professor and leading honeybee researcher who conducted foundational experiments on bee ...
Latif Nasser
Radiolab reporter who reported and narrated this episode
Quotes
"The colony is intelligent in some way that the individual bees are not."
Tom Seeley
"If one flower patch has a smaller round-trip time than the others... Send more bees there."
Craig Tovey (explaining the algorithm)
"Even without knowing the future, they were coming within like 20-15% of the optimal behavior."
Latif Nasser (describing algorithm performance)
"It's not basing its decision of where to move based on a guess about the future. It is only responding to the present."
Lulu Miller
"You have made the internet so enjoyable that you have cost me days and hours, potentially even years of my life."
Sunil Nakrani (joking about the algorithm's efficiency)
Full Transcript
Oh, wait, you're listening to Radio Lab from WNYC. Lulu. Hello. Hey, should we start? Let's do it. Okay. All right. So today we're going to start with a guy, a very sweet, very tall guy named Sunil Nakrani. Yeah. Hi, I'm Sunil Nakrani. Where did you grow up? And were you just a computer kid? Like you just love computers? Or how did that, how did this all start? So you want to start from there? Yeah, I mean, a little bit. Yeah. So I was actually born in Kenya. But he grew up between India and the UK. Right. He studies hard. Bachelor's and a master's degree in electrical engineering. And in 1989, he lands a job at IBM. Just as the world is encountering this new thing called the internet. Welcome. What about this internet thing? Do you know anything about that? There's loads of useful information in here. You can get news, recipes. So, Daniil is like, Okay, why not go and study communication engineering? He goes to Oxford to get his PhD, and one day, near the beginning of the semester, while he is on one of the desktop computers in the computer lab, his whole department, including him, gets an email from one of his professors, who's an American guy. And the email just says, hey, guys, America is under attack. Come down to the common room and then watch, right? It came out of the clear blue sky on a mild fall morning in Manhattan. Oh, it's 2001. Yes, 2001. Sunil's standing there in horror. And I mean, he has a million questions like who did this? Why? Is America at war? So he goes online. To get any sort of new information. But he just can't. A lot of the websites were just not responding. Some websites had just crashed. Others would, like, just keep loading, but then never fully load. There's one point there, you know, there was such overwhelming demand for, you know, news that they resorted to serving only text. Plain text. Because there were so many people trying to get to those websites. Because there was just so many people trying to get access. So much hunger of people trying to figure out, like, what the hell is going on here? Correct. And he's like, why is it that at the very moment when I and the world want to access something the most, that's when I can't access it? And this used to happen all the time. As millions of people flooded the system. Last week, a picture of a dress was posted on Tumblr. Some website. Healthcare.gov. Or picture. A dress that broke the internet. Or video. The dream. Would suddenly become popular. In just 15 minutes, a Pokemon Go launch. And you get this crash of people. Traffic had already passed initial predictions. This flash flood. And it breaks the internet. And this situation. A demand that is beyond what they planned for. Sunil became kind of obsessed with it. And so I ended up looking at websites, how they architect some of these infrastructures. And he's like, there's got to be a way to fix this. Yeah. Like, what can I apply to solve that problem? Meanwhile, Sunil's wife is working in Atlanta. We were doing back and forth between Oxford and Atlanta. And at a certain point, he's having kind of a hard time with this Internet problem. Because how do you design a system for the future when you don't know what the future is? And one day he just thinks to himself, Georgia Tech is down the street. Maybe someone there could help me. Point me to some direction that I could take. So he just emailed some people in the engineering school. I said, oh, I'm a PhD student looking to, you know, discuss some ideas. Can I come and see you? And that was basically it. I didn't describe the problem in my email. I didn't really expect anything substantial. Within 30 minutes, he gets a response from a guy named Craig Tovey. Saying, come by my office. And then a very tall guy knocks on my door and says, I'm looking for Craig. This, of course, is Craig Tovey. Hi, good to meet you. Craig's a systems engineer. Operations research. His job is to make huge operations run smoothly. Factories, shipping routes, that kind of thing. So anyway, I walked into his office. We sat down, we started talking, and I started describing the problem. So Sunil is like, look, I'm trying to fix the internet. I'm trying to stop it from breaking every time one of these internet flash floods happen. He didn't say a lot, actually, at the beginning. He just kept listening. and then 25, 30 minutes later, you know, suddenly Craig Tovey said, oh, oh, oh, wait. Craig stands up. And then went back to his desk and pulled out a paper. And he plops it down in front of Sunil. It is called The Pattern and Effectiveness of Forager Allocation Among Flower Patches by Honeybee Colonies. So at the time I thought, oh, why are we talking about honeybees? Yeah, why are we talking about honeybees? Well, Craig had this hunch that bees had something to teach Sunil and all of us, really, because it turns out bees are sort of a model of how to thrive in an uncertain world. Hmm. OK. So that's the story I want to talk about today. The story of how a multibillion dollar tech industry used a trick they learned from millions of years of honeybee evolution to build the Internet as we know it. Okay. Giddy up. Okay, so Craig and his bee study, it really began with his collaborator. I'd like you to refer to me as Tom. Dr. Tom Seeley. You could introduce me as doctor or professor, but let's quickly switch to Tom. He's a retired professor of neurobiology at Cornell and one of the world's top experts on honeybees. I did pretty much pioneer the study of how honeybees live in the wild on their own. And he started doing that work more than 60 years ago, when he was a kid. Yep. A swarm of bees moved into a large black walnut, not far from my parents' house. And Tom says he would watch those bees flying in and out of this knot hole in the tree. Like shooting stars. Zooming off in all directions. And he'd see them and he'd be like, where are they? Where are they going? Like, he kind of knew where they were going. There were fields of a dairy farm up on the hillside. With lots of flowers full of nectar and pollen for them to eat. They're probably going up to that. Like, I know where they're going, but how do they know where they're going? Like, what is going on here? Um, aren't they just, like, flying? And if they see some pollen or nectar, they bring it home? No, no, it's way, way harder and more complicated than that. Why? How so? There's many different reasons, and this is all stuff Tom would eventually learn in college and grad school. Okay, so like first, flower patches are not evenly or clearly distributed. They're not just everywhere. Okay, fair. They're also not all blooming at the same time. So there might be flowers that are blooming at certain times of the year or even certain times of the day. Also, you need to find the flowers in bloom that still have nectar because you're in competition with all these other pollinators. Right. And you have to do all your food gathering before winter comes. Because, you know, then all the flowers go away. And you have to get something like, guess how many flowers, if you're a bee, guess how many flowers you have to hit to get like a little bottle of honey that you would find in a grocery store? Oh, oh, okay. Like one of those bare little squeezy bottles? Yeah, one of those little bare squeezy bottles. How many flowers went into that? That's such a nice question. Uh, I don't know, like 10,000? Two million. Two million? Two million. And the hive needs like the equivalent of 200 squeezy bottles of honey to survive through the winter. Wow. All of this is an efficiency game. Like you only have so much time when the sun is shining, when these flowers are blooming, that you can hit them. Okay. Okay, so they have to do all of this. It's really hard. And they have, like, nobody, they have no boss. Nobody is in charge. Queen B isn't in charge? So that's the thing. So back in Aristotle's time, that was the idea. For many, you know, centuries, people thought the queen was a ruler. But no, that's not correct. The queen's whole job is to make babies. Yeah. She's not telling anybody else what to do. Nobody is. The colony is intelligent in some way that the individual bees are not. And when Craig found out about this. It started with NPR. From a radio story. Tom Seeley talking about honeybees. He was just like, what? I was just in awe. Because at the time, Craig was working on robots. He was trying to get a group of them to build a car. It was an unsolved problem. And he was kind of stumped. I have no idea how to get these robots to work together to be, as a group, like more intelligent than the individual stupid robots. But here were these honeybees. Doing exactly that. And I'm thinking, wow, let's understand how the bees are doing that. Now we can copy that and apply it to robots. And the first, Craig thought this would be pretty straightforward. I thought that biologists had figured out everything. But turns out they hadn't. That's right. If somebody asked me how much we know about how a honeybee colony works, I'd say 50 percent. And, you know, 50 percent's not nothing. They knew, for example, about the waggle dance, which you might have heard of. Yes I heard that bees will waggle And what is the waggle though I mean it quite sophisticated It a dance that bees do to sort of show other bees where they just came from Oh, so it's like a choreographed map. It's like a map dance. It's like a map dance. And this is like a piece of the puzzle. Oh, yeah. Von Frisch won the Nobel Prize. But what the biologists had not figured out is the bigger picture. What Tom would call the wisdom of the hive. And that is what Tom was working on when Craig called him. And Tom said, well, you know, come help me run these experiments. And the two of them would end up doing an experiment together that would give us a little peek into that wisdom of the hive and would eventually become the paper that many years later, Craig would slap down in front of Sunil in his office. It's still vivid in my memory. I mean, in fact, this is one of the best weeks of my life. It's July 1991. Okay, now this is in the Adirondacks, upstate New York. Like way upstate. Close to the Canadian border. Craig had to drive on these dark back roads. For an hour and a half, two hours. Looking for a little sign for this research station. Cranberry Biological Station. Cranberry Biological Station. Cranberry Lake, I'm sorry. Cranberry Lake. Cranberry Lake. Yeah. I'm always amazed that he pulled it off, that he found this biological station up in the middle of the woods, deep at night. And the reason Tom studies bees at this place, way out in the middle of nowhere, is because there are no naturally occurring honeybee colonies. What? Wait, why would you study bees in a place where there are no bees? Right, because the absence of bees lets you set up kind of controlled experiments without any other bees messing it up. That's right. It's a BYOB, bring your own bees, set up. So Tom brought an experiment, you know, a little colony of about 4,000 bees. Okay. And, you know, after breakfast, we go out to where the hive is that Tom has set up. A wooden box. Two feet high. Kind of like a beekeeper would have, but with one big difference. The front is all glass. Basically a transparent hive. Yeah. So you can watch the bees inside. And each bee had to be individually recognizable. How do you do that? So you put a little two-digit number on their thorax and a little daub of paint on their abdomen. Until they're painted, they're anonymous members of a colony. But once they're painted, you get to know them. Some are nervous Nellies, others come right in. Yeah. They have little personalities? Oh, definitely, definitely. Some get up in the morning and get things going. Others hang out till 11 o'clock. anyway when the sun comes out on that first morning a big wave of painted bees whooshes out except for those slackers who are sleeping in fine except for the lazy ones who sleep again but pretty quickly the ones who have gone to work they start flying out to these feeders these fake flower patches that tom has put out for them imagine a glass petri dish where we have high sugar content water it's a little buffet for them yeah that's right and so the way the experiment works is that there are two fake flower patches, but they're not equal. One is better than the other. And what they want to see is like, how do the bees suss that out? And how do they make it kind of a collective decision to send more bees to one rather than the other? Whoa. Okay. Oh, so this is it. This is where you see maybe it's not just random, like they might get to glimpse hive intelligence. Yeah, because remember, this is the whole thing, right? Like winter's coming, they're on a clock, and let's see how they prioritize how they make that decision. Huh. Wait, and then how do they make one fake flower patch better than the other? Well, there's lots of ways. You know, we can put 1.5 molar sugar. One feeder might have sweeter sugar water than the other. We can change it from one and a half to two and see how the behavior of the bees changes. Or one might be bigger and one smaller. If you had a lot of bees coming to the same feeder, some of them would have to wait. But Craig says, for the purposes of explaining this, just imagine this situation. One feeder which is close. About five minutes from the hive. And another one that's... Ten minutes to fly out to the flower patch, fill up her stomach with nectar and fly back. A little further away. Okay. So... Tom is at the hive recording each bee as it leaves the hive and each bee as it comes back. Also, have you ever, I mean, probably not, but like, have you ever been stung by a bee? Are you afraid of bees at all? I am somewhat allergic to bees. Oh, I did not know that. So I am scared of them. But ordinarily, honeybees are not all that aggressive. Anyway, right away, the guys noticed. There are a lot of bees going to this five-minute feeder. The feeder close to the hive is blowing up. And when they follow those bees back to the hive... To my eyes, it just looks like chaos. But if you're Tom Sealy, you'll spot... The waggle dance. A waggle dance. The bee effectively saying... Hey, go that way. And pretty soon, they see another bee from that close-by feeder come in and dance. Hey, go that way. And another... Hey, go that way. And another... Hey, go that way. And each time those bees dance, they're bringing more bees back to the five-minute pass. Hey, go that way. Hey, go that way. Hey, go that way. Go that way. And as all that's happening, every now and then, a bee comes in and dances for the 10-minute patch. But there will be more bees going to that 5-minute patch. And there will be fewer bees going to the 10-minute patch. Just because the bee's coming back twice as often. Hey, go that way. Oh, okay. So the closer flower patch gets more bees saying, go that way, that way, that way. And so more bees go that way instead of this way. Right. So now here comes one of the beautiful parts of it. And this is where it gets really interesting. If there are a lot of bees going to this five-minute patch... Eventually, Craig says, there will be more and more depleted flowers. This patch, it starts to run out of nectar. That means that a honeybee, she's going to take longer to fill her stomach. Hey, go that way. Right. So a five-minute patch, if it's crowded, is no longer a five-minute patch. Go that way. Right. It might become a seven-minute patch. And as the patch gets more and more picked over... Now it's an eight-minute patch. Hey, go that way. And then... A ten-minute patch. And at that point... Go this way. It's taking the bees the same amount of time... Go that way. to go to the close-by patch as it is to go to the one that's further away. Go this way. And because of the dancing, the hive is sort of evening out the number of bees it's sending to each patch. Go that way. Go this way. Go that way. Go this way. Then you're in equilibrium. Even though the bees don't have stopwatches, they equalize the round-trip time. The hive has taken into account distance and crowdedness and figured out the way to get the most nectar in the least amount of time. And in the real world, the bees may very well be going to five different patches. Or a dozen. Not just two. And dealing with actual nature, which means taking into account different types of flowers and weather and predators. But no matter how many other variables the bees have to deal with, the allocation of bees amongst the flower patches is astonishingly efficient. It looks like there's an air traffic controller or like the hive is thinking. Yeah, that's right. I think, though, when we use the words like thinking, we're thinking in human terms. But if you say thinking, it's just a matter of taking in information, processing it to make decisions. And I think that definition of thinking applies. And the way that they were processing this incredibly complex set of information was by following one simple rule. If one flower patch has a smaller round-trip time than the others... Send more bees there. Like, whichever patch bees are coming back most quickly from... Go that way. Go that way. That's where you send more bees. And that's it. It's gorgeous, isn't it? A friend of mine once said it's very zen. But it's also weirdly, it's a very bottom line. Like, it's like, I don't care where you're going. I don't care what you're, like, it's like what really matters is when you show up with the goods. Like, show up with the goods and then we'll talk. And then we'll negotiate. So this system Craig and Tom observed at Cranberry Lake, Craig wrote it up as math. He called it... The honeybee algorithm. What does it look like on paper? Equations I wouldn't want to show a fourth grader. F sub n of X sub n, F sub n of X sub n divided by X sub n is equal to F sub m. And when Craig tried to use this algorithm on his car building robot problem. It didn't apply. It was completely unhelpful. It was such a different problem Which is why it was so exciting to him when Sunil walked into his office more than a decade later with this other problem the internet problem which to Craig anyway looked basically the same as the one the bees were facing. And so after 15 minutes, I said to Sunil, let's imitate the bees. How could imitating the bees help Sunil stop the internet from breaking? I am desperate to finally understand this, but first we need to take a quick break. All right. We'll be right back. How do you state your needs in a way that doesn't sound like an attack? Or when should we all just give each other a hug and move on? It would be great to have someone kind of in the corner helping you through these situations. Therapy can be that someone. BetterHelp is the perfect place to find a therapist who can help you navigate your relationships. Just fill out a short questionnaire that helps identify your needs and preferences, and BetterHelp will match you with a therapist. If you don't like your match, you just switch to a different therapist at any time. Sign up and get 10% off at BetterHelp.com slash Radiolab and see if talking to someone about your struggles in finding that special someone and keeping them is just the thing you need. That's BetterHelp.com slash Radiolab. From viral moments to cultural revolutions, celebrity deep dives to social commentary, basement open mics to comedy legends spilling the tea, Amazon Music's got something for everyone. with millions of podcast episodes. Just download the Amazon Music app and start listening. Boo-doo-doo-doo-doo-doo-doo. Ha! Lulu. Latif. Radiolab. Back with... Beez. Bzzz. Yeah. And you were going to tell us how they're, like, in our internet or something? Yeah, basically, pretty much. But to do that, I needed an example. so I found something in my own life, which I apologize in advance for how annoying this is going to be. Okay. Do you remember the hamster dance? No, I don't think I do. Is this like a website? Yeah, yeah, yeah, yeah, yeah. Okay, I'm kind of surprised you don't remember it. It was a very early web kind of thing. But all it was, it was just a song with a web page and the web page was just a bunch of GIFs of cartoon hamsters dancing. It's the most annoying song that you will ever. Can you still sing it? I can. Would you like to hear it? Yes, please. It goes, um, Anyway, something like that. It's very, very annoying. Okay. And I remember when I was like in high school, I thought it was so funny. And one day I tried to show it to my cousin because I was like, oh, this is so funny. You have to see this. And I remember it like taking a really long time to load. And I was like, oh, because there's so many people. Who need to get their eyes on this. Right. And so what was happening behind the scenes was, well, OK, so like basic Internet 101. Yeah. Every website on the Internet, like, for example, what was at the time, hamsterdance.com, exists geographically somewhere. Like in the cloud or? No, no. Like a single earthbound computer, the owner of the website paid for it to live there. And that computer, which is called a server, is not in a house or an office. It is in a special building dedicated to servers, the server farm, right? Or a data center. Okay. So it's at a data center in like Ohio. Yeah. Wherever it is. Okay. These server farms are all over the world and connected together. They more or less make up the internet. Oh. And so. When the request comes in. When, you know, young me types in hamsterdance.com and presses enter. that server, the actual infrastructure that's holding it, who is just sitting around in Utah or whatever on the server farm, gets a little notification. Oh, someone wants to see that hamsterdance.com website. All right. Not too busy with anything else. So it does a little computation. Go ahead and get that for you. Some execution of some Java code or something. Let me see here. I think it's around here somewhere. And then push that content back to you via internet. Here you go. Where it pops up on my family's desktop computer back in 1999, and then, deedledy-deedledy, and enjoy it. Then the server just goes back to hanging out on the server farm. But then, oh, another person wants to see that website. All right, let me just go ahead and get that for you. There you go. All right, where was I? Man, I just love this country. Oh. Oh. Oh, no. And as it starts to go viral, a number of people are all bombarding with requests. Until that one server is like, oh my God, can somebody help! can no longer serve up this website in a timely manner. And so now people have to wait in a queue, right? And this would happen all the time because back then the way servers were allocated was like you'd get how many servers you paid for. Right. Like the owner of the Hamsterdance website probably would have been like, hey, I'll just pay for the one server. Because I don't expect my website to experience a lot of demand. And how wrong they were. Right. Do you remember what that was like, though? Yes, I do. The like slow loading and the like, if something took longer than five seconds, generally the human psychology was that people give up on the website. So as Sunil saw it, the problem was relatively simple. There are a bunch of servers. And sometimes they can be not very busy. Sometimes they're just sitting around doing nothing. But other times... They could be overly busy. And so how, in a system that is changing so quickly, Do you get those servers who are doing nothing to help those servers who are doing too much? Start moving these servers around where they need it. And this is the problem that Sunil brought to Craig. Yeah, hi, I'm Sunil. And I mean, heck, within 20 seconds, I saw that the problem was similar to the honeybee problem. Like immediately? Like that fast? Yeah, because to Craig, it was like he'd been holding on to this rusty old key that he was holding for more than a decade. and Sunil showed up with something that looked like it might be the exactly matching lock. Yeah, yeah. Like evolution has solved this problem in some way, right? And now you're saying, okay, can you do it in the artificial domain? And so... They got to work. Right, F sub N of X sub N... Dusted off that old math equation. Mapping the two structure of the, you know, what the bees are doing. And sitting there, they started to connect all of these dots, like... Collection of bees make up the beehive. collection of servers make up the internet server farm. Yes, exactly. And wait, so that would mean, oh my God, the stuff on the internet are... Flower patches. Oh, bingo. At that point, things got really exciting. Wait, I'm sorry. Just please stop that. Sorry. How is what the bees are doing anything like what the server's doing? Like, lay out the parallel. Okay. Why don't we... Okay, let's... Why don't we cranberry lake this thing, okay? Okay. So, instead of a meadow filled with wildflowers, okay, picture the entire internet. Got it. It's the beginning of the day. You're just signing on to your computer, and the first thing you decide to do on there... Charlie. Charlie bit me. ...is watch a video of a baby biting his older brother's finger, naturally, right? Charlie bit me. Yes, okay, how I love to start my day. That's by procrastinating, of course. Okay, so you watching this video is like a flower opening in the meadow, right? The meadow of the internet. Why is me watching analogous to a flower opening? You watching is like the flower filling up with nectar. It's your desire, which they can capitalize on, basically. Oh, me watching is money for, it's, oh, oh. It's money. It's money for them. My eyes on the video. Your eyeballs and your attention, that's like the server company's nectar. Oh, okay. I get it. I get it. We are the flowers. Yeah. And as more and more people watch and then share this video with their friends who watch it too and share it with their friends who watch it too, that's like more and more flowers opening in the flower patch. And the server hosting that video is like a single bee being like, holy motherlake, bonanza of nectar over here. I'm going to need some backup. Oh, so now it has to recruit more bees, aka more servers. Yeah. So it does like a computer version of a waggle dance, this server to server digital nudge. Okay, let's call it a ping. That means, hey, I need some help. Come get some of this stuff. Okay. And so servers buzz over to the Charlie Bit Me video and start servicing all of these flowers, right? Helping all these people to watch this video. And then it kind of keeps going, right? The video popularity grows. Flowers keep opening. more bees needed, more servers needed. And very quickly, all these servers are just servicing the Charlie Bit Me video. But then, wait a second. Now there's a ping, but it's not for the Charlie Bit Me video. A giant container ship wedged from bank to bank. Now everybody wants to see pictures of this huge boat on the BBC website. Locking one of the world's most important shipping lanes. That just got stuck in the Suez Canal. I remember that. I was a flower. Right, right. So like you all these flowers opening up all over the world all of a sudden the servers that are serving up these boat pictures now they the ones who are saying hey we need backup And again there is this server peer-to-peer, B2B, WaggleDance, recruitment ping calling out to the idle servers to come help. And those servers come, and they ping out. And those servers who are no longer needed with the Charlie Bit Me thing are now like, oh man, I gotta go help with this Suez Canal thing. Okay, got it. But then in the actual internet, This is happening times like a gazillion, right? All the time. Literally billions of people, billions of flowers. So could this algorithm, this little fix, like actually work? Well, they had to figure that out. You know, initially excitement kind of sets in, but then you go to prove what you thought would be a good solution, right? To test this idea, Sunil and Craig decided to compare it to another algorithm they invented. That algorithm, we named it Omniscient, where if it could see the future, what would it do? Like, if you knew ahead of time everything that everybody would want to see on the internet, how would you organize your servers to meet that demand? It's basically God mode. This is the best you can do. You can't do better than that. So they compared this perfect model to the way humans had been allocating servers already. Like the guessing. Right. And they compared it as well to the bees algorithm version. And what they found was that the bees... Even without knowing the future, they were coming within like 20-15% of the optimal behavior. In a bunch of their tests, the human algorithms didn't even come close. Whoa. Yeah. Turns out that... At least theoretically. It worked really well. So based off these results, they publish a little paper, And then Sunil goes back to Oxford to defend his thesis. I presented the results to the committee. He tells them about the problem he's seen with the internet and how the bees could help solve it. Talking for like 45 minutes to an hour. And when he's finally done, the first question that he gets is, have you patented this idea or not? Oh, wow. That's a good question to get. But he was like, well, I just published it. You can't patent your own thing if you published. Oh, no! And so he did not patent it. Oh, he gave it away. He gave it away for free to everybody. And over the following months and years, server farms all over the world worked this bee algorithm into the internet. Wow. You know, the honeybee algorithm made it 10, 20% more efficient. Which means we have the bees to thank for the internet being this place where... U.S. climber Alex Hunnold stunned. You can get whatever you want. Video from outside the Capitol shows the beginning of the storm. Right now. The hurricane pushed Lake Pontchartrain deep. It's peanut butter jelly time. I mean, that is just a moment for nature. That that could outperform so many thousands of human brains working on solving all kinds of problems. and just like evolution had figured this out through its own longer timeline of trial and error. Yeah. And not only that, this honeybee algorithm or variations of it have been lifted into so many other industries. I have found people researching how to use it to forecast exchange rates, design electric cars, detect defects in wood before using that wood for construction, even for sharpening MRI images to better detect breast cancer tumors. Bless that, little bumblebee. I mean, I guess what's so—I think about humans, one of our gifts and our curses is that we can jump to the future, you know, or the past. We can jump out of the present, but we can worry. And that's like entire industry's prediction, forecasting, whether it's weather or money or, you know, whatever. But we spend time worrying about the future, but it feels like what this, the elegance, it's like not only to me is it beautiful that it came from bees because I'm a nature lover and I love it when nature outsmarts us or has more elegance in its design. But it's also like one of the insights, if you wipe away all the technicalities, is like it's throwing away the future. It's not basing its decision of where to move based on a guess about the future. It is only responding to the present. Right. Right. It's like it's kind of at this very subtle like it's like right at the line between responding to the clues of the moment and predicting the future. It's on the edge of the present. It's at the edge of the present. And it's like all we got to do is like pay attention to what's happening now and then and like build it into these feedback loops so that we can. Yeah. So that we can address just the next moment. Like just the next moment. and just the next moment after that and just the next moment after that and just the next moment after that. I mean, that's, if anything, that might be a thing I like take around with me. This episode was reported by me, Latif Nasser, with reporting help from Maria Paz Gutierrez. Production by Maria Paz Gutierrez, Annie McKeown, and Pat Walters. Edited by Pat Walters. And facts checked by Diane Kelly. We also got a lot of help for this episode from Radiolab and Terrestrials resident bug correspondent, Sammy Ramsey. And we couldn't have done this one without his help. Big thank you to you, Sammy. And if you want to hear more about bees and hear Sammy talking about them, we have a terrestrials episode called The Crystal Ball. Honeybees who predict the future. You can go listen to him over there. Other major thank yous to John Bartholdi, John Vandeveit, and James Marshall. As well, we want to thank the folks at AAAS who administer the one and only Golden Goose Award. If you remember, the award goes to government-funded science that sounds kind of silly or bizarre, but then goes on to change the world. This research won a Golden Goose Award back in 2016, which is how I first heard about it. So thank you to all our friends there. Erin Heath, Gwendolyn Bogart, Valeria Sabate, Joanne Padrone Carney, and Meredith Asbury. And bees, we barely scratched the surface of how amazing they are. If you want to learn more, read any of Tom Seeley's books. His most recent one is the incredibly titled memoir, Piping Hot Bees and Boisterous Buzzrunners. I think that should be it. But if you are still here, let me leave you with this bit of tape that has been haunting me. Sunil, like, dude, over the last 20 years, I have used the internet a lot. If the internet today took the same amount of time as the internet in the 90s, like, I can easily imagine not just minutes, like, I mean, hours, full days of my life, like, you know, a second at a time that this could have saved. Yeah, you're right. But also what most internet service company wants is stickability for you to keep using the service, right? Okay. So you're saying the opposite. You have made the internet so enjoyable that you have cost me days and hours, potentially even years of my life. So I should be mad at you. Yeah. And that's it. See you next week. Hi, I'm Gabby. I'm from San Francisco, and here are the staff credits. Radiolab is hosted by Lula Miller and Latif Nasser. Soren Wheeler is our executive editor. Sarah Sandback is our executive director. Our managing editor is Pat Walters. Dylan Keefe is our director of sound design. Our staff includes Jeremy Bloom, W. Harry Fortuna, David Gable, Maria Paz Gutierrez, Sindhu Nainasambandan, Matt Keelty, Mona McGawker, Annie McEwen, Alex Niesen, Sarah Kari, Rebecca Rand, Anissa Vitsa, Arian Wack, Molly Webster, and Jessica Young. With help from Gabby Santis. Our fact checkers are Diane Kelly, Emily Krieger, Natalie Middleton, Anjali Mercado, and Sophie Semayi. Leadership support for Radiolab's science programming is provided by the Simons Foundation and the John Templeton Foundation. Foundational support for Radiolab was provided by the Alfred P. Sloan Foundation. I'm Ira Flato, host of Science Friday. For over 30 years, our team has been reporting high-quality news about science, technology, and medicine. News you won't get anywhere else. And now that political news is 24-7, our audience is turning to us to know about the really important stuff in their lives. Cancer, climate change, genetic engineering, childhood diseases. Our sponsors know the value of science and health news. For more sponsorship information, visit sponsorship.wnyc.org.