Why Your Antipathy Toward Algorithms Does Not Compute
OK, I鈥檓 biased, given the countless hours I have spent over the past three decades creating algorithms, implementing them on computers, and then writing about them in academic papers that few people read. But if nothing else, all those nights and weekends of writing computer code have given me an appreciation of the power of procedure, not only in programming but also in so much else. Algorithms don鈥檛 always involve complicated feats of programming; at heart, they are sequences of steps to move toward a goal鈥攁nd they are so fundamental that we can easily forget what our world would be like without them.
Thinking about making a nice home-cooked meal? That鈥檚 off the table without the algorithms that guide food preparation, more commonly called recipes. Trying to figure out which of multiple possible routes to take on your commute to work or school? Without algorithms, you鈥檇 be unable to make that decision yourself, and Waze wouldn鈥檛 be able to do it for you. Without algorithms, people couldn鈥檛 build houses, birds couldn鈥檛 build nests, and spiders couldn鈥檛 weave webs.
Recognized or not, algorithms underlie our approach to tasks from the momentous to the mundane鈥攆rom choosing a college or a home to knowing that when getting dressed we need to put our socks on before our shoes and not the other way around. When performing a task we know well, such as tying shoelaces, we don鈥檛 even give a moment鈥檚 thought to the role of order, to the way completion of one step sets the stage for the next. But when confronted with a less familiar task, like assembling a newly purchased piece of furniture that arrives as a mystifying collection of bolts, brackets, and pieces of wood, we immediately realize that the algorithmic guidance of even a poorly written instruction booklet is infinitely better than none at all.
Algorithms are so fundamental that we can easily forget what our world would be like without them.
Algorithms go back to the earliest written history and far before that as well. Take boustrophedon, which describes a method of writing, sometimes used by the ancient Greeks and Etruscans, in which alternating lines are written in alternating directions, just as you would plow a field or mow a lawn. The word boustrophedon combines the Greek terms for ox and turn, an echo of the back-and-forth plowing algorithm that was undoubtedly reinvented thousands of times as agriculture overspread much of the world. The word algorithm itself has a , with roots in Middle English, Greek, Latin, and the name of one of history鈥檚 greatest mathematicians, the ninth-century algebra pioneer .
Today, of course, we can use computers to perform algorithms. In fact, it is no exaggeration to say that computation itself is inseparable from the algorithms that enable it and therefore that computers would serve no purpose at all without the algorithms that run on them. When you send a text message, do an Internet search, or stream a movie to a laptop computer, you are benefiting from a nested set of interdependent algorithms鈥攕ome that perform basic mathematical functions such as addition, others that build on addition to perform multiplication, and still others that build on those functions to turn images, video, audio, or text into packets of binary data and route them to their destinations.
While our electronic devices have dramatically quickened the speed of computation, the algorithms they run remain fundamentally human endeavors, designed with creativity and often ingenuity, both building on and contributing to a mathematical heritage that dates back millennia. Take Internet search, an action that has become so commonplace that we forget how incomprehensible it would have been just a few generations ago. A growing fraction of the entire corpus of human knowledge resides on the Internet, accessible in under a second to much of the world鈥檚 population. That this can happen at all is a testament to many things, not the least of which is the suite of algorithms created by Google and its predecessors to efficiently index a mind-boggling amount of data and, even more impressive, call it up in an instant in response to a few keywords.
Algorithms reflect the people who create them and the organizations that use them.
Algorithms also save lives. They underpin , or CT, and magnetic resonance imaging, or MRI, scans, help physicians , and drive the weather forecasting models that . In the future, increasingly sophisticated collision avoidance technologies will lead to an enormous reduction in the number of people killed and injured in motor vehicle accidents each year.
And algorithms can cause a lot of trouble. They have been blamed for contributing to, for of thousands of low-income senior citizens in California, and for as an airport security risk.
In short, algorithms reflect the people who create them and the organizations that use them: mostly (but not always) good and well-intentioned but also imperfect and sometimes caught up in unintended consequences. That鈥檚 not a reason to throw all algorithms out the window, but it is certainly a reason to ensure that they are analyzed not only through traditional technical measures such as the 鈥渇alse positive rate鈥 but also in terms of the social impacts arising from their use. And while we should absolutely address those instances when algorithms are used in ways that result in social harms, we shouldn鈥檛 forget that algorithms also help manage the supply chain that brings food to grocery stores, gas to gas stations, and electricity to homes and offices. Without them, big data would be incomprehensible data, clouds wouldn鈥檛 compute, and tablets would still all be made of stone.