Posts tagged ‘visualization’

July 26, 2015

Ferdowsi – The Book of Kings

by Mikael

The Book of Kings, the Shahnameh, is an iconic epic of Persian culture, written by Ferdowsi (sometimes transcribed “Firdausi”) around the turn of the previous millennium (ca AD 977-1010). It purports to detail the lineage of Persian Kings all the way from the Mythological Age, through the Age of Heroes and into the Historical Age. It also brims with the usual stuff: Heroic deeds, battles, betrayals, evil nemeses, legendary duels, black magic etc. etc. The picture below is based on an AD1909 translation by James Atkinson Esquire (of the honourable East-India Company’s Bengal Medical Service) freely available at the Project Gutenberg, and thus the somewhat antiquated transcriptions of names from Farsi into English.

[Visualization as PDF]

A striking thing about the book is the detail of family relationships that is included, and the visualization is of the family tree type (a directed acyclic graph in math speak). Royal succession, which may skip a few generations or jump completely sideways on occasion, is highlighted in gold and annotated with the length of each reign as given by Firdausi. Westerners in particular will note that the last regent included is in fact Alexander “the Great” of Macedon, who we probably know well from history books and Greek culture. The Persian take on this character is somewhat different.

Enjoy an anecdote about Ferdowsi (and much more) over at Paul Sheridan’s: Anecdotes from Antiquity.

October 21, 2013

The Forged Coupon Begets Evil

by Mikael

The Forged Coupon is a novella written by Leo Tolstoy and published (posthumously) in 1912. The story is set in 19th century Russia and has a number of interesting themes. Prominently we see how evil begets evil when the forgery of a coupon sets off a chain of ever worse events. This culminates in a series of horrible murders by a man named Stephan.

During the last of these murders, however, Stephan has a spiritual awakening which eventually causes him to reform. This sets of a chain-reaction of reformation, good deeds and proselytizing. Perhaps even the Tsar is influenced to be a better man, through an intricate series of causation. The story in its entirety is of course hillarious.

Here is my attempt at cataloguing the chain reactions:

[Visualization as PDF]

The transcription of names into English is slightly different in different translations. I use the spelling in the Penguin Classics book quoted. A couple of Important characters are:

Mitya Smokovnikov, the 15-year-old boy who with the help of his friend Makihin forges a coupon in order to repay a small debt.

Stephan Pelageyushkin, who is at the center of the whole web, first becoming a murderer and then radically reforming his sinful ways.

Maria Semyonova, an altruistic old woman whose incredible goodness inspires a wave of religious reformation.

Mitya, Makihin and Maria are to some extent sources of good and evil while Stephan is at the center of the vortex.

It is not unlikely that I have overlooked important details or gotten something wrong. In this case I would be delighted to learn about it and make the necessary corrections.

September 23, 2013

An Investigation into the Death of Ivan Ilych

by Mikael

“The Death of Ivan Ilych” is a short novel by Leo Tolstoy, one of his masterpieces. In the words of Wikipedia:

The novella tells the story of the death, at age 45, of a high-court judge in 19th-century Russia. Living what seems to be a good life, his dreadful relationship with his wife notwithstanding, Ivan Ilyich Golovin injures his side while hanging up curtains in a new apartment intended to reflect his family’s superior status in society. Within weeks, he has developed a strange taste in his mouth and a pain that will not go away. Several expensive doctors are consulted, but beyond muttering about blind gut and floating kidneys, they can neither explain nor treat his condition, and it soon becomes clear that Ivan Ilyich is dying.

Anthony Briggs in the introduction of my copy points out an interesting litterary device that Tolstoy employs: As the story progresses towards the inevitable end (already given away in the title), the chapters and paragraphs become shorter and even the sentences briefer. This seemed like something that could be systematically tested. I therefore helped myself to the text in plain form from Project Gutenberg and wrote some simple parsing code.

The numbers may seem unremarkable at first but when we take a look at the rolling averages, the trend becomes strikingly clear. The chapters, paragraphs and sentences indeed become shorter towards the end. In fact even the words Tolstoy chooses become progressively shorter on average. One must wonder to what extent this was a conscious decision.

The Results [PDF]


The alignment on the horizontal axis is by word index, i.e. Chapter II starts at about 15% since Chapter I has 3229 words out of the 21821 in the whole book. The longest words (16 letters each) are: circumstantially, lightheartedness, misunderstanding, and incomprehensible. The longest sentence with 123 words is:

Having graduated from the School of Law and qualified for the tenth rank of the civil service, and having received money from his father for his equipment, Ivan Ilych ordered himself clothes at Scharmer’s, the fashionable tailor, hung a medallion inscribed *respice finem* on his watch-chain, took leave of his professor and the prince who was patron of the school, had a farewell dinner with his comrades at Donon’s first-class restaurant, and with his new and fashionable portmanteau, linen, clothes, shaving and other toilet appliances, and a travelling rug, all purchased at the best shops, he set off for one of the provinces where through his father’s influence, he had been attached to the governor as an official for special service.

Finding the longest paragraph is left as an exercise to the reader 😉