Category Archives: Algorithms

Mathematicians and Computer Scientists

It’s the holiday time of year: so a slightly lazy post for August.  Adapted from a letter published in this month’s edition of Mathematics Today

For anyone who’s worked in the ‘Twilight Zone’ between mathematics and computer science for any time, June’s Mathematics Today article, Urban Maths: A Roundabout Journey [on rounding issues in computer calculations], would have struck a distinct chord.  They will have often come across situations in which mathematicians and computer scientists don’t quite see eye to eye.  The following, fairly well-known, combinatorial exercise is another good example.

How many ordered ways are there of summing contributions of 1 and 2 to a given integer, n?  So, for example, 1+1+2+1+1 and 2+2+2 are two of the 13 different ways of making 6.  Call this number f(n) so that, in this example, f(6) = 13.

The standard combinatorial approach is to consider the first term.  The only two options, 1 (leaving n-1 to make) and 2 (leaving n-2) lead readily to the recurrence relation f(n) = f(n-1) + f(n-2).  Easy enough, yes, but the interesting question now is what to do with it?

Continue reading


Santa in the Continuum

This year’s festive offering considers countable and non-countable infinities and follows (very) loosely from last year’s discussion of deterministic and non-determininstic optimisation

[Specially for Alex Irvine, who is either having trouble getting his head around infinite sets or still believes in Santa Claus: we’re not allowed to say which]

Father Christmas has a problem. The Intergalactic Department of Work and Pensions (IDWP) has threatened to cut his tax credits because he apparently only works one day a year. He’s tried to point out that he’s the head of a vast multinational organisation of elves and reindeer, who themselves work all year round, but that doesn’t wash with the IDWP boss, Ian ‘Dunkin’ Smiff, because his dad didn’t go to public school.

Planets

So, he’s been given extra work to do: a lot of extra work to do …

Continue reading


Drop the Dead Donkey! (Is that really ‘News’?)

Most of us, watching TV from time-to-time, find ourselves saying, “Why’s that made the news? Surely there are more important stories?”  That may well be true so is there a logical way to approach the issue?

Let’s start with a couple of extreme examples, to try to get a feel for this:

  • On May 7th this year, the UK went to the polls to elect a new government.  Just about every news programme on radio and TV, as well as the whole Press, led with variants on the ‘story’ “Voters start voting in the General Election”.  But was this actually ‘news’?
  • At the other end of the scale, what about the dog that can play the piano? (Or any similar ‘and finally’ space-filler.) Is it worth the space?

Continue reading


A Real “Marauder’s Map”?

This follows on from last month’s post, in which we discussed the possibility of a future Shazam for People service and extends it to the concept of a ‘universal tracking system’ or real-world Marauder’s Map

MMOut

So, just how feasible is it?

Continue reading