Algorithms: Why are they useful?

TheJugad

This is such a hilarious question I just had to take a crack at it.

First, let’s get one thing out of the way: even single-line procedures are technically algorithms. Hence,

1
Jeffrey. Love me.

is an algorithm, provided by Maude to The Dude. Admittedly, however, those are not very interesting algorithms (though they can be plenty useful), so let’s focus on more elaborate ones.

Take, for example, lovemaking. You have an algorithm for that.

It has bifurcations.

1
2
3
4
If
  He moans
Then
  Move to Next Step.

It has loops.

1
2
3
4
5
6
Repeat
  Forwards.
  Delay 0.1s
  Backwards.
  Delay 0.2s
Until (something magical happens) or (you're exhausted).

It has subroutines.

1
2
3
4
Do
  That Thing That Always Sends Him To The Moon.
Do
  Cuddle.

It relies heavily on random number generators.

1 2 3…

View original post 169 more words

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s