Friday, July 27, 2012

Review: Ready Player One

Ernest Cline's Ready Player One (Crown Publishing, 2011) features no grand, sweeping philosophical statements, no startling revelation about human nature, no moral judgments or object lessons.  Like the game that forms the backbone of its plot, it is an adventure with a beginning, a middle, and an end, and it rests its case on that straightforward simplicity.

Wade Watts, like the protagonist of many a science fiction novel, is a high-school student-cum-computer-geek in a dystopian society, but unlike many a science fiction novel, RP1 hardly dwells a second on the dystopia part.  The world of 2044 is in ruins, due to a catastrophic shortfall in fossil fuels, but this crisis is put in primarily to motivate the near-universal emotional investment in OASIS (Ontologically Anthropocentric Sensory Immersive Simulation), a sort of virtual-reality massively multiplayer online game that serves simultaneously as school, work, and escape for most citizens, including the continually impoverished Wade.

OASIS was the brainchild of James Halliday, a reclusive, Wozniakian genius with an intense penchant for 1980s pop culture, who, with his more affable business partner, Ogden Morrow, built a multi-billion dollar computer game empire starting in the 1990s.  Over the years, they gradually drifted apart, as Morrow focused on sustaining their company after the death of his wife (his and James's childhood friend) and Halliday seemed to fall deeper into mental illness.

The events of RP1 are set in motion when Halliday dies in 2039.  His death is announced not on the obituary page, but in a video will and testament shot by Halliday himself.  Halliday had no wife, no children, no surviving relatives at all, so in his video, he explains that he will bequeath his entire estate (valued at about a quarter of a trillion dollars) to the first person to solve a series of puzzles embedded into OASIS and its millions of fictional worlds.

Wade had a boundless admiration for Halliday even before his death, so he knows all about 1980s culture, an asset that will stand him in good stead in his quest for the billions.  The problem is, so do many of the other OASIS users, including his best friend Aech (pronounced "H"), geek-girl blogger Art3mis, and the obligatory bad guys, the faceless multi-national corporation Innovative Online Industries (or IOI)—none of whom Wade has actually met face-to-face.  Throughout RP1, Wade will have to contend with each of them and his other rivals, some of who are ready and willing to commit murder and worse in their race for the prize, as well as Halliday's own devilish imagination and his obsession with the 1980s. 

RP1 is written in a quick, breezy style with pulpish overtones.  (Of course, for those who grew up with the golden age of science fiction, the pulp might be a positive.)  In developing his story, Cline feels compelled to explain a bit of Halliday's world creation, and as a result occasionally gets caught up in his own world creation.  From time to time, we are treated with technical details on how his characters connect to OASIS—details that will abruptly jar many readers from his otherwise breathlessly scripted (and somewhat thin) plot.

The 1980s pop culture references are another matter.  They are dotted liberally throughout the book, sometimes merely for flavor, other times integral to the plot.  And Cline's novel features a slightly implausible ending, albeit one that mirrors that of popular movies in its time frame.  For those of us who grew up in the 1980s, reading RP1 is a bit like watching retrospective "clip" episodes of shows like Silver Spoons and Family Ties (one of Halliday's favorites); others will just be bemused by the constant parade of cultural touchstones they have no connection with. 

To a certain extent, Cline is trying to maintain his footing on a slippery slope.  The technical and pop-culture references are consistent enough to suggest that he had more in his back pocket, details that would have appealed to a very specific audience, but which he held back in aiming for a broader audience.  On the other hand, if he had held back even more, RP1 might have been more accessible, but it would have lost much of its childlike appeal.

Ultimately, RP1 spreads it on thick with its geek and pop culture details, thick enough to turn off readers who don't sympathize with its emphasis.  One gets the distinct impression, however, that it otherwise wouldn't be substantial enough to satisfy those of us who do, and while it teeters on the precipice from time to time, RP1 just does get the job done.

Brian's 0-10 score: 6.0

Friday, July 20, 2012

Sense and Mind

One of the staples of parapsychology is extrasensory perception—ESP.  Apparently, in the early days of ESP investigations, a standard deck of cards was used, but it had some infelicities: The cards had in some cases complex designs that some claimed would interfere with the measuring of ESP ability, and the backs could be used by charlatans to identify cards by means other than honest ESP.  Thus were born the Zener cards.

Zener cards are those specially designed ESP cards that you've no doubt seen: a circle, a plus, wavy lines, a square, and a star—five of each in a 25-card deck.

OHAI BACON.
 
Not only are they simple, straightforward designs, but when placed in the foregoing order, they also embody (in some intuitive way) the numbers one, two, three, four, and five.  Nonetheless, when they were first introduced, Zener cards had many of the same problems as did the ordinary playing cards.  The first Zener cards were made of thin enough paper that it soon became evident that some purported ESPers were simply looking through the cards.  They were subsequently made with thicker paper with opaque backs.

Another problem that arose was that some of the first ESP experiments allowed the participants to see the cards as they were guessed.  In a 25-card deck, random guessing should permit you to correctly guess one-fifth of the cards, or five of them.

However, if you are permitted to see each card after guessing, you can determine which pattern is most likely to show up on the next card.  For instance, suppose you guess that the first card is a circle.  It comes up, let us say, a square.  That one is guessed wrong, but by seeing that the first card is actually a square, you gain the knowledge that the second card is slightly less likely to be a square than any of the other patterns (since there are only four squares left, but five of each of the others).  Each succeeding card gives you even more information.  By the end, with careful counting, the last card is precisely determined; it is the only one that has only shown up four times.

If you always guess optimally, you will correctly guess almost nine cards out of the 25.  That is a level of accuracy that one would otherwise obtain with a probability of only 0.05—the level at which one is provisionally determined to possess genuine ESP.  Needless to say, such experiments were quickly barred.

Suppose, though, that you did an ESP exhibition.  You are not permitted to see the cards after each guess, but you do get to hear the response of the audience to each successive guess and card.  Even without collusion, it isn't much of a stretch to imagine that you'd be able to determine whether you guessed correctly or not.  How many will you guess correctly now, on average?  It should be clear that the number should be somewhere between five and nine, since you have more information than when you didn't get any feedback, but somewhat less information than when you saw each card.

To see some of the issues in determining the expectation, consider a much shorter deck: a five-card deck, with one of each design.  If you receive no feedback at all, you should be able to guess each card correctly with probability 1/5, or an average of one correct card in all.

On the other hand, suppose you see each card after you guess it.  The first card, you guess correctly with probability 1/5.  Having seen what card it actually is, you know which four cards remain, so you guess the second card with probability 1/4.  The third card is guessed with probability 1/3, the second card with probability 1/2, and the last card with complete certainty—probability 1.  To determine the average number of correct cards, simply add up the probabilities: 1/5 + 1/4 + 1/3 + 1/2 + 1 = 137/60; a bit more than two-and-a-quarter cards.

Now, suppose you find out only if your guess was correct.  For the first card, you have no reason to expect that any pattern is more likely than any other; therefore, without loss of generality, suppose that you guess a circle.  You will be correct with probability 1/5.

Suppose you guess correctly.  You are left with a four-card deck, each card equally likely.  Again, since you have no reason to believe any pattern is more likely to be in the second position than any other, you can guess any pattern; let us suppose you guess a plus sign.  This time, you will be correct with probability 1/4.

On the other hand, suppose your guess of a circle on the first card was incorrect.  In that case, the circle must be somewhere in the four remaining cards; it is 1/4 likely to be in the second position.  The other patterns, however, could still have been in any of the five original positions, including the first one.  You know only that it was not a circle.  Therefore, you should also guess that the second card is a circle; we are once again correct with probability 1/4.

It is with the third card that matters become more interesting.  Suppose you guessed correctly on both of the first two cards: the first was a circle, and the second was a plus sign.  You can guess any of the three remaining patterns for the third card; let us suppose that you guess the wavy lines.  You will be correct with probability 1/3.

Or, if you guessed both cards wrong—neither of the first two cards was a circle—you should guess a circle once again for the third card, which will be correct with probability 1/3 again.

Or, if you guessed right on the first card but wrong on the second—that is, if the first card was a circle, but the second card was not a plus sign—you should guess a plus sign again on the third card, which will be correct with probability 1/3 yet again.

The last case is the difference.  If you guessed wrong on the first card, but right on the second, then we know only that the second card was a circle.  The other remaining cards could have been any of the four remaining patterns with equal likelihood.  You can guess any of them, but you can do no better than a probability of 1/4 of guessing correctly.

The analyses of the fourth and fifth cards are more complex.  So the question of this post is: What is a better way of approaching the problem?  What is the average number of cards you will guess correctly?

EDIT: The second question of this post is: Suppose you have k cards, all distinct.  If you always guess optimally, and find out whether each guess was correct (but not what the card actually was), then what is the expected number of correct guesses?  Does this number approach a limit as k increases without bound?  If so, what is that limit?  The answer may surprise you. 

(If you are not given any feedback on your guess, then the expected number of correct guesses is always k × 1/k = 1.  If you get to see each card after you guess it, the expected number of correct guesses is 1 + 1/2 + 1/3 + ··· + 1/k, which goes up as the natural log of k (and is therefore unbounded).  The question above has to do with the situation where you only get feedback on whether your guess was correct or not.)