Monday, 15 October 2012

Thinking about Algorithms

Hearing Professor Heap talk about and attempt to devise algorithms at the last lecture got me thinking. Algorithms are obviously useful as an "instruction manual" that guides one through the unfamiliar process of carrying out a task or activity. For example, I'm sure someone who is new to baking cookies will appreciate an algorithm that covers everything from gathering ingredients to taking the cookies out of the oven. Similarly, someone who is new to greasing bicycle chains will find a relevant algorithm covering all the steps to be profoundly helpful.

But in real life, anything can happen. There is a famous statement called Murphy's Law which states: "Anything that can go wrong will go wrong". To me, I don't see this as a pessimistic view toward life, but rather a gentle reminder that possibilities are endless for almost every single course of action, and the margins for error is often greater than we expect. Hence, just how specific do algorithms have to be in order to be effective?

For example, the 7th step of an algorithm can instruct you to cut cucumbers in an evenly manner. But just how does one go about doing this? Reading a certain instruction hardly equips one with the necessary skill to carry out the instruction. The way I see it, there's often a gap between the algorithm and the action itself. Carrying out the algorithm effectively will often require some assumed level of competence and/or experience on the user's part.

Why is this important? Because it forces the designers to examine just how specific algorithms have to be. We already assume the target audience knows relatively little about the topic, but how little? In real world application, every user varies in knowledge, experience and savvy. Do we want to keep it relatively fresh and succinct in fear of insulting the user's intelligence? Or make it detailed enough to address so many possibilities so that even the most novice of novices can follow through adequately? Clearly, designing an algorithm requires extensive thought and seeing beyond your own perspective.

No comments:

Post a Comment