Monthly Archives: October 2011

Algorithms Among Us

“Algorithm” is a term most often associated with software programming.  The concept, however, can be fairly universal, since it basically just describes a set of rules that, if followed, will yield a predictable outcome.  Since a cooking “recipe” also shares these features, recipes are frequently used as examples when teaching algorithm concepts to programming novices.

Naturally occurring algorithms are also found in and around us.  Our morning routine of waking, going to the washroom, and preparing breakfast, for example, is a “getting ready” algorithm for humans.  Flowers blooming in the spring is “nature’s renewal” algorithm. 

Similarly, every microprocessor includes manmade algorithms that control computer reactions to states of nature.  A modern automobile, for example, has more than five microprocessor controlling the radio, climate, engine combustion, traction, and airbags.  Algorithms can execute linearly, loop (i.e., “keep doing this until, or while…”), and, if needed, “jump” to other pieces of the code. 

A very simple algorithm politely opens the supermarket door automatically for you after stepping on sensors hidden under its black mat, or in the elevator that takes you to your floor on request.  Wal-Mart uses more sophisticated algorithms to anticipate shopper interests, such as strawberry Pop-Tarts when a hurricane is imminent, or to anticipate the devastation from Hurricane Katrina and order trucks of water be shipped to New Orleans. 

Mistakes when creating algorithms, and associated controls, can be disastrous.  For example, dozens of children were suffocated in accidents involving poorly designed automobile window switches. 

Algorithms are increasingly used to augment human decision making, especially in situations where the inputs are too great for human sense making, or where delays needed for human comprehension creates disadvantages.  As such, Wall Street’s “time is money” creed quickly became a hotbed for automated trading.   

Although carefully crafted investing algorithms can be quite lucrative, they can also lead to nonsensical outcomes.  For example, it is believed automated “program trading” (i.e., rapid computer stock trades based on inputs such as related security prices) mayhem led to the “Black Monday” market crash of October 19, 1987.  In one day the Dow Jones lost 22.6 percent of its value, its largest-ever percentage loss. 

The solution to trading computers running amuck was to create an offsetting control algorithm.  Software “circuit breakers” were developed to step in and halt all trading if signs of trouble began to emerge.  This seemed to work until the “Flash Crash” of May 6, 2010 caused the Dow Jones to drop nine percent in just a few minutes.    

Similarly, book-pricing algorithms can also run amuck.  Shipping was NOT included when Amazon’s algorithms decided to price a book on flies at $23,698,655.93.

What we are seeing is an increase in boundary-blurring between naturally occurring algorithms and those that we create.  This is the thesis of Kevin Slaven’s popular Ted Talk video (below), and his warning that algorithms need “adult supervision.”  This was suggested somewhat in the January 2007 Youtube video, “The Machine is Us/ing Us.”

There is no doubt in my mind that we are at the early stages of the intersection of nature, culture and software algorithms.  The “Wal-Mart Effect” describes the retail giant’s role as cultural gatekeeper, partly enforced by size, and partly by algorithms.   I do not think there is a need for alarm yet, only a call for vigilance. 

Growing Up Apple

Steve Jobs, co-founder of Apple, passed away Wednesday, October 5, 2011, at the young age of 56.  I have grown up with him and tracked the ebbs and flows of his career with the perspective of a fickle consumer.

To develop a credit rating, I borrowed money from a bank to purchase an Apple IIe (http://en.wikipedia.org/wiki/Apple_IIe) in 1982 immediately following college graduation.  The case included a built-in keyboard and a flat spot on top to place the amber monitor.  I immediately bought a case-less generic keyboard that included a numeric keypad and jerry-rigged it to work with the computer.  One of my first applications (i.e., in Applesoft BASIC) was a program to print W2 information for the farm clients of a friend.  Wikipedia reports that with 11 years in production, the Apple IIe is the longest-lived computer in Apple’s history–take that, Moore’s Law!  I was an immediate fan of Apple’s co-founding “Steves” (i.e., Phone Phreaker Steve Wozniak and Steve Jobs), and the culture that produced books such as “Beneath Apple DOS.” 

A few years later I decided to purchase a more portable computer to take on an overseas engineering assignment.  I really wanted to buy the popular portable PC clone by Osborne, but in the end shied away from its 64 character onscreen limitation (i.e., the Osborne had to wrap the last 16 characters of the typical 80 character line onto the next line).  Instead, I bought a “luggable” (i.e., a portable computer that is heavier than today’s desktop computers) Columbia computer that included free WordStar word processing and SuperCalc spreadsheet software.  It also included a rather horrible prequel to Quicken that actually increased the work needed to balance check writing.  This began my several decade hiatus from Apple products because, 1) I needed portability and, 2) I liked the variety of software offered in the rather “open” PC market.

Steve Jobs left Apple also.  His foray into NeXT computing became, as he said at his 2005 Stanford Commencement, the precursor to the Apple that we now know today.

My first MP3 player was actually from Sony, which continued Sony’s Walkman product line from portable cassette player to CD player, and then finally to an early digital player.  Along with others, I agree that Sony overplayed its digital rights management hand and its proprietary ATRAC format at just the right time to allow newbie portable-music player Apple to launch its history making  MP3-friendly iPod.  Of course, the iTunes store played a critical role.  Thus begins my return to my Apple roots.

It was actually students that pushed me all the way back to Apple.  Informal classroom surveys around 2005 revealed that approximately one-third of my students were using Macs.  This caused me to purchase a Mac so that I could create Mac-friendly assignments.

The transition back was rough, though.  I remember several painful weeks of regret when nothing was making sense.  Apple seemed to make things different for “no apparent reason.”  “Control-C” did nothing–instead, why did it have to be “Command-C” (i.e., “Command” is the special key with the Apple logo on it)?  I felt sure Apple did not want me.

However, I persevered and am now very happy with the simplicity, ingenuity, security and reliability of the Mac.  Purchase options were minimal.  Pricing was a bit high, but simply because the systems included premium components.  For example, Microphones and cameras were built in, and Apple Time Machine allows fantastically beautiful and simple file recovery.  I still use the PC, but am now fully “bi-cultural.”

So long, Steve, and thanks for the ride…