Tuesday, September 26, 2006

The Man Who Saved The World


Today is the 23rd anniversay of the day Stanislav Petrov a USSR colonel averted a potential nuclear disaster by refusing to believe computer warnings that the US had launched a missile attack against the Soviet Union. His judgement to disregard the warnings as false proved sound; the warnings were in erorr. But had Petrov acted on the warnings and notified his superiors, it is not a stretch of the imagination to think that the anxious Soviet command would have launched a full "retaliatory" counterattack and ensuring MAD.

Anyway when I first heard this story, my first reaction was that it seemed that it was straight out of War Games or any other Cold War era film built around the nuclear war hype. Another more recent movie that came to mind was Denzel Washington's Crimson Tide. I was shocked. These scenarios which sound so fantastical and hilarious when you're watching a movie were appallingly real. What was most disturbing was the eery similarity between reality and fantasy. Those who have watched War Games will remember that the plot also centered around a human decision to not accept a computer warning which was later shown to be in error.

Petrov's story was only declassified eight years ago and it is now set to appear in a documentary: "The Red Button & The Man Who Saved the World". Here's to Petrov and the hope that our luck will hold out.

-- Arkajit

Friday, September 08, 2006

Thirteen Digit ISBN

The days of the 10 digit ISBN are winding down! Starting 1/1/2007, is ISBN-13. Luckily the new ISBN system has been made backwards compatible with the old one. It seems there was always a 3-digit EAN code prefix which was always 978. Now, they're just introducing another series 979. Since the last digit in the ISBN is just a check digit, that really only gives 1 billion extra ISBN numbers. Which makes me wonder, how long can the 13 digit ISBN last before it is exhausted as well? 2100? 3000? Will we still be relying on books at that time or will all our data have become digitized and books obsolete? Or will there be some new medium by then? Just some interesting questions to ponder.

On a side note, the method of computing the check digit of the ISBN is quite interesting as well. For the 10-digit ISBN, the check digit has to be chosen such that the dot product of the vector [1..10] with the 10-digit vector representation of the ISBN (including the check digit as the first entry) should be congruent to zero modulo 11! If the check digit has to be 10, the letter X is used as the digit. Now obviously the check digit is not foolproof, but since 11 is prime, it does a pretty good job. So I wonder if for ISBN-13, the check digit will be computed modulo 13+1=14 or 13, also prime. I'm inclined to suspect that it would use modulo 13.

Anyway, this leads me to my idea for an ISBN game. So one person picks a favorite book and then finds its ISBN. He gives the other person the ISBN without the check digit and he has to go and figure out what the book is. Right now the game is fairly trivial, but you can probably add some extra steps along the way to add to the challenge. Maybe the book title can be part of a clue for a larger puzzle and maybe one other digit (besides the check digit) could be hidden as well. That at least expands the number of possible matching ISBNs - there could be other hints given to narrow down the choice. I'll have to try this sometime :)

-- Arkajit