Monday, October 22, 2012

English Vinglish

Movie Review : English Vinglish
Director : Gauri Shinde
Genre : Family Drama
Starring : Sridevi, Adil Hussain, Sulabha Deshpande, Priya Anand
Released : October 2012
My Rating : 7 out of 10

I rarely write reviews of Indian movies. Firstly, I am not a professional reviewer. Mostly, I just want to note my reactions. Secondly I write a review, when I want to talk about a good movie that deserves to be watched and people around me seem to have missed it. For an Indian movie, everyone has seen it before me, because I don't go to theaters as often, and I refuse to watch pirated DVDs. So there is not much point writing the review - notable exceptions being Dharm and Khamosh Pani.

I watched "English Vinglish" becuase it seemed a rare family friendly Bollywood movie, and it is. It is a comeback movie for actress Sridevi, who ruled the Indian box office in her prime. That was a less of a reason for me, as I was one of those odd people who was totally apathetic to her star powers. I could never tolerate her dialogue delivery, and this movie reminded me that strongly. She did have the charisma and acting skills to carry an entire movie on her shoulders, and she does that with spades here.

Sridevi plays the central character of Shashi Godbole, a middle-aged housewife, with a good family - a successful and faithful husband, a typical teenaged daughter, an adorable son, and for a change, a supportive mother-in-law. Shashi is a great cook, and in spite of the daily struggles, manages to run a small operation of selling homemade sweets. It's a simple life. Simple, however does not mean, without sorrows. In spite of being totally devoted to her family, she is under-appreciated, and often a subject of mockery and put-downs. The reason - her lack of ability to fluently speak English. She has to travel to New York to help with her niece's wedding. While there, she enrolls herself in a crash course to learn English. This experience turns out to be a course in self-discovery as well.

The simplicity of this story is the strength, because it's told sincerely. This sincerity ensures that it doesn't become unrealistic. When Shashi completes her course, her English still sounds rough. She doesn't defeat anyone in the knowledge of the language - she just learns enough to get by.That same sincerity is also highlighted by a near lack of extremes. Shashi's family comes across not as some exceptional case, but one that we all can relate to. Their interactions are not contrived, but are those we all have experienced and/or seen in our lives. She is not being treated terribly by her family. She is not just being treated respectfully.

That's an important point the movie succeeds in making. As Shashi says in a scene, she doesn't need love, she has it, what she needs is respect. Hence there was never a scope for an affair or a love triangle. It's a movie whose characters are mature and composed in their behavior.

It's not a perfect movie. There were places where I cringed. The biggest problem is the constitution of the group of students. A Mexican nanny, a Pakistani cab driver in New York, a French cook, a South-Indian Software Engineer with problems with his English accent, an Asian lady who works in a hair salon ! If that's not stereotyping on steroids, then I don't know what is. Of course, the teacher is gay - filling the obligatory role of the nice person belonging to a minority group, which happens to be gays these days. Such formulaic treatment unnecessarily reduces the impact of the theme.

Fortunately, the director avoids other clichés. The difficulties faced by a visitor in a foreign land are kept realistic, and not used to create unnaturally uncomfortable scenes. And thankfully, there is no preaching. No over-the-top emotional reunions at the end. The movie makes effort at every juncture to avoid being overly sentimental. It still is predictable. In a movie like this, that's what we want. Predictable happy ending.

Sridevi is being praised for her effort here, and it's well deserved. What should also be mentioned is, acting is really good across the board. Although her character is feeling neglected in the story, the movie revolves around Sridevi and kind of neglects almost everyone else. Not a huge minus, because whatever we need to learn about other characters, the director manages to convey that in brief scenes.

I have to tip my hat to director Gauri Shinde. It's a great debut. The first couple of opening minutes were my favorite. In just a few frames, without showing anyone's face, she built the foundation of the story - in Shashi's family everyone else's needs come before hers. Brilliantly done. This is as much Gauri Shinde's movie as it is Sridevi's.

I recommend this movie to even those who haven’t watched many Bollywood movies. It's slow. It's not great but it's very good, and quite safe for kids of these days.

(Trivia: The movie being shown in the flight that Sridevi's character watches is "Sourcecode").

Saturday, October 20, 2012

Source Code

Movie Review : Source Code
Director : Duncan Jones
Genre : SciFi / Action
Starring : Jake Gyllenhaal, Michelle Monaghan, Vera Farmiga
Released : 2011
My Rating : 8 out of 10

About 20 years ago, "Groundhog Day" successfully used the idea of someone stuck in a time loop, to create a memorable movie.  As you watch "Source Code", it is impossible to not be reminded of it. The 1993 Bill Murray movie was firmly in the "Romantic Comedy" genre, and did not offer any explanations as to why the time loop happened. On the other hand, "Source Code" is an action thriller, and does offer some explanation as to why this time loop is happening.

Near Chicago, a train is making its routine journey. On board, Sean (Jake Gyllenhaal) wakes from his nap. He is sitting in front of a young woman who is acting as if she is his girlfriend. Sean doesn't recognize her. In fact he doesn't even think he is Sean. He thinks he is a soldier (Colter) and should have been in Afghanistan. As he is trying to make sense of all this, suddenly there is an explosion and Sean finds himself trapped in what seems like a remote isolated spaceship. Here on a screen a woman appears, indeed refers to him as Colter, provides little explanation and sends him back to the same point in time where he wakes up from the nap.

These first opening minutes are brilliantly done. Our curiosity is perked, we are confused a bit and desperately want to know what's going on. Next few iterations in the time loop reveal more and more details. As we get more clarity about what's going on, we start wondering why and how it's happening. That's when the movie starts feeling a bit lost in the maze.

Giving more details would reduce the impact of the style of the narrative – a style often labeled as "mind bending". We are told that past cannot be changed and the aim of the time travel is to only understand it more. That's a very reasonable premise. In any movie like this, you have to allow for certain technological feats. Sending someone's mind back in the past and superimposing it on another person's brain is the core idea here. Take it or leave it.

Since the character goes back in time to the same spot, there is a lot of repetition in subsequent events. Both director Duncan Jones and writer Ben Ripley are successful in overcoming this big challenge. Whether you like the movie or not, you will not be bored. The story moves faster than the speed of the train on which it happens. It also helps that, at just about 90 minutes, it is not over-extended. The problem is elsewhere - incomplete explanations.

Jake Gyllenhaal is the centerpiece of the movie. His personality is simple and likeable, and his acting skills are more than adequate for this role. He starts out as much confused as us, pieces together the puzzle for and with us. As both Sean and Colter, he shows the progression of his realizations as the movie goes on.

As you can imagine, there are two things we are trying to solve here as viewers. Who is the bad guy that's causing the explosion, why is he doing that and how will he be stopped. Secondly, why is Colter being forced to undergo this traumatic time travel and how will it be resolved. The first works as the action movie, second works as the SciFi movie. The action movie is very flat. The whole "save the next terrorist attack" is not gripping at all. But it's realistic - because the "Source Code" technology only allows you to go back 8 minutes or so. Why 8 minutes, who knows ! Given that constraint, our hero can do only so much.

The SciFi part is the most interesting. From "Matrix" to "Inception", a common theme is to present the mind as something far more potent than the physical existence in which it is realized. Sometimes it's done via virtual reality, sometimes via mind manipulation. Here it's slightly different. The pseudo-philosophical discussions generated by such movies irritate me. But it's also true that a lot about mind and universe is still a mystery to us. Spoiler alert : If the movie makes you want to know more about what it says in the end, you can read Hidden Reality - but after watching the movie.

I recommend this movie as a solid science fiction movie. Know in advance that some of your questions will remain unanswered.


Sunday, September 30, 2012

GaDiMa-4

One of the aspects of GaDiMa's music that has always amazed me is the sheer range of emotions expressed in his songs. Being a lyricist for movies offered him many opportunities to write about all sorts of situations. He utilized these situations to write simple, touching and amazing lyrics.

The noted Marathi poet Suresh Bhat has penned many songs that are famous for the sensuous feelings expressed in them. This song written by GaDiMa from movie "मुम्बईचा जावई" is in the same category. Now it's not my unfair intention to pigeon-hole Suresh Bhat lke that. He has written amazing GHazals in Marathi. But, it's also true that many of his sensuous songs are very well-known. I am just comparing this GaDiMa song to those.

कारे दुरावा, कारे अबोला,
अपराध माझा, असा काय झाला ?

I have a complaint against this song. This is a blatantly unrealistic मुखडा (refrain). Which wife in this world even entertains a suggestion that she is the one to be blamed ? And asks her husband why he is not talking to her ? The husbands are not asked the reason for their silence, they are supposed to stay silent. :-)

Asha sounds just wonderful here. In a song that is less about स्वर (notes) and more about भाव (emotions), she adds a nice touch of  लाडिकता when she sings

नीज येत नाही मला एकटीला,
तरी ना विचारी धरी हनुवटीला,
मान वळविसी तू वेगळ्या दिशेला ...

The tune by the great Sudhir Phadake is sublime. Just as the lyrics become more direct in the last stanza, he shifts the gears a bit.

रात जागवावी असे आज वाटे,
तृप्त झोप यावी, पहाटे पहाटे,
नको जागणे हे, नको स्वप्नमाला ...

Quite explicit for that age, but not cheap.

The movie was remade in Hindi as "Piya Ka Ghar", starring Jaya Bhaduri, Anil Dhawan with the famous Kishore song, "Ye Jeevan Hai". Still no comparison to the soundtrack of the Marathi movie. I will cover the other songs from the movie in later posts.




Previously :

Sunday, September 16, 2012

Spartacus


Review : Spartacus (A TV series)
Aired on : Starz
Released : 2010
My Rating : 5 out of 10

Starz released the first season of the Spartacus series in 2010, titled "Spartacus : Blood and Sand". The lead actor - Andy Whitfield - was diagnosed with cancer, and production of the sequel had to be stopped. While he was being treated, Starz produced a prequel instead. Sadly, Whitfield passed away in 2011 and the sequel was later produced with Liam McIntyre playing the lead role.

I have only watched the season 1 on DVD, and this review is specifically of that season.  It consists of 13 episodes, each of 1 hour.

The story is loosely based on historical facts. In ancient Roman empire, around 70 BC, there was indeed a slave gladiator called Spartacus. He was probably captured from Thrace (modern day Bulgaria) and served in a "ludas" (gladiator school) in the city of "Capua". He organized a rebellion by forming an army of fellow slaves. The Roman Army eventually crushed their rebellion in what's now known as the "2nd Serville War".

Season 1 starts with the capture of Spartacus, and ends with the successful start of his rebellion. Almost all events in between are completely fictional as historical details of Spartacus remain obscure.

When I wrote the review for "Rome", I added a strong warning that it's not fit even for teenagers. Spartacus leap frogs Rome in the aspect of being offensive, and falls woefully short in everything else. If you couldn't watch Rome because it was too explicit, you shouldn't even think about watching Spartacus. If you liked Rome (and I did), for its gripping narrative, you shouldn't expect the same from Spartacus.

The idea here is to shock the viewers. Plain and simple. The appropriate name for this series would have been "Blood and Skin", as that's all the series seems to be interested in. It's possible that for some viewers, this is a guilty pleasure. To me, it was beyond saturation. The same types of scenes are shown over and over again.

There is a small kernel of a good plot here. Although these are gladiators, they are just glorified slaves, with no rights, no freedom and just objects that can be sacrificed for the entertainment of the elites. It's impossible to not feel their plight. There are some political machinations, and they add some intrigue to the storyline. The focus of the series is elsewhere. To appeal to the base instincts, by showing beautiful women fawning over bare chested savage hunks, who are bent on killing each other in the most grotesque way. With the topic being gladiators, one might expect fight sequences that keep you on the edge of your seat. Alas, they are quite unrealistic - inspired more by the movie 300, than say Troy. (Note : Troy was NOT a good movie, but had great duels. And 300 was a visually impressive movie, but it's not famous for duels.)

The acting is a bright spot. Andy Whitfield as the lead actor is superb and convincing. A trivia : In the late 90s, there was a series with more modest aspirations, called "Xena: The Warrior Princess". It had good ratings in the demography "adult male", solely because of Lucy Lawless. She expertly plays the role of Lucretia here. The best performance though is by John Hannah who plays the role of Quintus Batiatus, owner of the ludas, which happens to be the only multidimensional character in the story.

I am not sure if I can recommend Spartacus. It's not that it fails at being good art. It's just that it has no intention of being a good art. The series is very clear about its goals. There is no point watching this series with the expectation of watching a historical fiction, and complaining that it fails to deliver. It delivers perfectly well, but something totally different - lot of sex and lot of unrealistic violence. If that's not what you want, don't watch this.

Monday, September 10, 2012

Finding Arithmetic Sequences

As a final step of solving a problem, I needed to find out arithmetic sequences within a series of numbers. I am not sure if there is a more efficient algorithm than what I wrote. This one will do the job just fine - the complexity is quite close to O(N^2), which seems fair to me.

The problem.
Given a series of integers in ascending order, we have to find all the arithmetic sequences that occur in the entire series. An arithmetic sequence is defined as a sequence of 3 or more integers in ascending order such that difference between any pair of consecutive integers is same.
For example.
In the series, 2 3 4 5 6 7 8 9, there are 5 sequences. The entire series is a sequence with difference as 1. Then there are (2 4 6 8), (3 5 7 9), (2 5 8) and (3 6 9).
A number can be part of multiple sequences, and multiple sequences can have the same difference between the consecutive integers.

This possibility of a number being in multiple sequences may make the problem seem harder. It isn't that hard.

The idea behind my solution is simple.
1. Iterate over the sorted array from the first element to the second last.
2. For each number i, iterate from the next number j to last. This gives us all the pairs [i,j].
3. For each pair, find the difference, d = j - i.
4. Keep a map with this difference d as the key, and for value - a list of all sequences that have this difference in its consecutive numbers. Note that this will be a list of sequences, as there can be more than one sequence for that difference.
5. See if the difference was already encountered, if not create a new list of sequences.
6. If there was an existing list of sequences, find the sequence in that list that has the first number i. If a sequence was found, add j to it. If not, we create a new sequence and add i and j to it. It's very important to note that for a given difference, there can be only one sequence that has the number i in it. For a sequence, we will use a set data structure.
7. At the end of all iterations, we have created an interesting data structure. At the top level is the map, that uses an the difference between consecutive integers as the key, and for value it has a list of sequences that have that difference. And each sequence is a set.
8. When using this data structure, we have to discard the sequences that have only 2 elements in it.
Let's see how this work for the sequence 2 4 5 6 8 9. The following list shows how the data structure will look after each iteration.

i = 2, j = 4. Map { 2:[(2,4)] }
i = 2, j = 5. Map { 2:[(2,4)] 3:[(2,5)] }

i = 2, j = 6. Map { 2:[(2,4)] 3:[(2,5)] 4:[(2,6)] }
...
i = 4, j = 5. Map { 1:[(4,5)] 2:[(2,4)] 3:[(2,5)] 4:[(2,6)] 6:[(2,8)] 7:[(2,9)] }

i = 4, j = 6. Map { 1:[(4,5)] 2:[(2,4,6)] 3:[(2,5)] 4:[(2,6)] 6:[(2,8)] 7:[(2,9)] }
i = 4, j = 8. Map { 1:[(4,5)] 2:[(2,4,6)] 3:[(2,5)] 4:[(2,6) (4,8)] 6:[(2,8)] 7:[(2,9)] }

Note that till these iterations, there is only one true sequence in the data structure above : 2:[(2,4,6)]. Of course more would be found in later iterations.

With this, let's look at the Java code.
/**
 *  Finds arithmetic sequences within a list of sorted numbers
 */
public static void findSequence (int[] nums)
{

    // Iterate over the array
    // Starting from first element, till second last element
    // For every element, iterate over the list again to find all pairs
    // For every pair, find the difference
    // For the difference, find the sequences
    //
    // There can be multiple arithmatic sequences for the same difference.
    // See if the lower number is already part of any sequence for that diff.
    // If yes, then add the higher number to that set.
    // Else, create a new set, add both numbers to it
    //
    // Any set that has 3 or more elements
    // is an arithmetic sequence.


    // Note the data structure.
    // Map the difference to a collection of sequences.
    // Each sequence is a SortedSet

    Map >> arith_sequences
        = new HashMap >> ();

    for (int i = 0 ; i < nums.ltheength - 1 ; i++ ) {
      for ( int j = i+1 ; j < nums.length ; j++ ) {
        // work on each pair
        long diff = nums[j] - nums[i] ;
        if ( ! arith_sequences.containsKey (diff) ) {
          // create the collection when the diff is
          // encountered for the first time
          arith_sequences.put (diff, new ArrayList>()) ;
        } //
       
        Collection> sequences_for_diff
                   = arith_sequences.get (diff) ;

        boolean found_sequence = false ;
        for (SortedSet sequence : sequences_for_diff) {
        if ( sequence.contains (nums[i]) ) {
            found_sequence = true ;
            sequence.add (nums[j]) ;
            break ;
        } //
      } //
      // if no sequence was found that contained i,
      // then create a new one
      if ( ! found_sequence ) {
        SortedSet sequence = new TreeSet () ;
        sequence.add (nums[i]) ;
        sequence.add (nums[j]) ;
        sequences_for_diff.add (sequence) ;
      } //
    } //
  } //



} //

The complexity is obviously at least O(N^2). For every pair of thse N*N pairs, we iterate to find the sequence that has the lower number in it. Intuitively, it may seem that the worst case will happen when the array contains N consecutive integers from 1 to N. Then the map will have keys for each number from 1 to N-1. But the value will have a list that contains only one sequence, and it will be found in just one iteration. For multplying the complexity, we need the list to have many sequences for the same difference. This depends on the data. Honestly, I do not know how to compute that complexity. Of course the cost of manipulating the data structure - adding a number to the sorted set should also be taken into account. Again, it's getting added only at the end - so that should be fast.

In any case, this is simple, and reasonably efficient algorithm for the job.

Friday, September 7, 2012

Work In Progress

One of the strengths of Alan Jackson's music is the lyrics. If "Remember When" was very sentimental, this "Work In Progress" is a humorous admission of every husband's incompetence, and their inability to win some approval from their better half. Let's call it Husbands Anthem.

Admittedly, this tune is not all that great. But Alan's singing makes up for it, and it is funny.
Alright, I admit it; I forgot our anniversary.
I did pick up the baby this morning at the nursery.
That ain't no big thing; It's a gold star for me.

You get tired and disgusted with me,
When I can't be just what you want me to be.
...
I even asked the Lord to try to help me:
He looked down from Heaven, said to tell you please;
Just be patient, I'm a work in progress.

My personal favorite is
I try to do that health thing like you want me to do,
That low-fat, no fat's gettin' hard to chew.
Now, I love your cookin', honey,
But sometimes, I need some real food.



Previously :
It's a little too late
Remember When

Monday, September 3, 2012

Is Everyone Hanging Out Without Me?



Book Review : Is Everyone Hanging Out Without Me?
Author : Mindy Kaling
My Rating : 3 out of 5

The complete title of the book is "Is Everyone Hanging Out Without Me? (And Other Concerns)".

Like so many other books, I came to know about this book when the author was interviewed on The Daily Show. I became interested, because I had never heard of Mindy Kaling before.

So a couple of admissions before I begin the review. I have not watched the NBC show "Office". I have heard great things about it (and the original BBC show), but never saw it. After reading the book, I definitely plan to watch it on DVD.

Secondly, I am not a fan of the genre "auto-biography" or "memoir". I think there are very few people in this world who live a truly extra-ordinary life, and should tell the details about their own lives to others.

With this bias and the complete lack of knowledge about the author, I started reading the book with some curiosity. Curious, because I was pleasantly surprised to find a lead writer of "Office" to be a child of Indian immigrants. And the title is definitely catchy.

This is a memoir sprinkled with many random observations. Some chapters are about her life as child of loving parents. Some about how she got to be where she is today. Some chapters are just randomly inserted observations.

She comes across as a very normal person. Someone who you would love to have as a friend. She doesn't shy away from bragging once in a while, but is mostly honest. The writing is smart, frank, quirky, cute and definitely funny. All this adds up to a book that can be hilarious at many places and be read quickly.

But still, all that cannot hide the flaws. One of which is, the book oozes with narcissism. I do not want to take away any of her achievements. I just don't think these are great enough to write a book about - yet. I wish her well, I hope she continues her success. But right now, there is not enough substance to be written about. Hence, lot of small chapters are added about various lists, such as what is her definition of friendship, what she looks for in a guy and all those topics that everyone thinks of themselves as an authority. Then, there are many inside jokes that I didn't really care about.

I am on the fence about recommending this book. It is funny. Maybe you can browse through some chapters (in any order, it really doesn't matter), and see if you want to read more. It's a pleasant read that will make you laugh, but I am not sure if it's worth the time to read from start to finish.

Wednesday, August 22, 2012

Alaska : Aerial Photos Of Mount McKinley

Mount McKinley is the tallest peak in North America. At just over 20,000 feet, it is not much of a competition to even the top 25 peaks in Himalaya. But it boasts a majestic view in Denali National Park. Incidentally, Denali is the native name of the mountain.

Photos of the mountain are ubiquitous in Alaska brochures, especially with its reflection in Wonder Lake. I would say that's false advertizing. Because very few people ever gets to see that ! When we visited the park, we took the only allowed mode of transportation - the shuttle bus - as far as it takes you - all the way to the wonder lake. The bus driver told us that only 10-15 % people get to see the full view of the mountain. The "Great One"  (that's what Denali means) is quite moody and makes its own weather, and likes to hide behind clouds on most days. Add to that there has to be no wind, else the lake will have ripples and reflection won't be that good.

Even with the slim chance of seeing the mountain in its full glory, the park is on the must-visit list for many other reasons. We got to see a glimpse of the peak of the mountain for just few minutes. So no photos from the ground. But we did get to see the mountain and its glaciers from the air ! The sight fills you with awe.








Saturday, August 18, 2012

Alaskan Humor

I have heard this kind of joke before, but never seen/heard anyone actually make the mistake.

Just last week in Alaska, we needed to carry food with us for the whole day. So I went to a Subway and ordered a few footlong sandwiches. I requested them to cut each in 4 pieces and wrap it as two 6 inch subs, and put a label in every bag.

When I went to pick up my order, every bag was labeled, and on the back of each label were these notes.


They were really nice people and obviously not native English speakers. So I don't want to publicly embarrass them and hence I won't reveal which town this was in. But I can answer one question right away that many of you might have. No, they were not of Indian origin.

Sunday, August 12, 2012

Alaska !

Alaska ! The great land. The last frontier.

Over last many years, I have watched numerous nature related shows on PBS/Discovery channel. Some of them multiple times, especially if they are about Alaska or Africa. The calving of tidewater glaciers making thunderous sounds. Cute Sea Otters playing on the floating broken ice. Thousands of Kittiwake living in a colony on a sheer vertical cliff. Bald Eagles smoothly gliding across the sky. Endless forests of Spruce and Birch trees. The giant Mount McKinley towering in the harsh Denali National Park. Dall Sheep standing on slopes that seem impossible to navigate. Migrating birds. The unbelievable life cycle of Salmon who come back to their birthplace to spawn and die. And of course the bears. Alaska is bear country, and I am totally fascinated by bears. I can watch them all day, especially if they are fishing.

I have watched these scenes over and over again. Dreaming, that one day I will be able to experience all this. And now I can say that I have. I watched the glaciers calving, heard the thunder. Observed the otters playing in ice cold water. Watched the Kittiwake colony in amazement. Saw the majestic Bald Eagle taking off from the peak of a tall tree. Saw the migrated Sandhill Cranes. Took aerial shots of Mount McKinley and its glaciers. Saw the Dall Sheep moving around the scary slopes. I was lucky enough to see one of those few wolves in Denali and the illusive lynx. Saw how the salmon turn crimson at the end of their life cycle.

Yes, and to top it all, I saw the bears. Saw them sprinting across the fields. Saw them digging up roots. Was thrilled by seeing a sow and her two cubs. Watched them taking their signature stroll. And I saw one fishing and eating a salmon in the Kenai river. That was a sight I will never forget.

This was a dream come true. And I still want more. I have yet to see the two largest land carnivores in the wild. The polar bear and the Kodiak bear.

I came back less than 24 hours ago. And I am already missing Alaska. At least I have the photos. Hundreds of them. I will upload them as soon as I am done sorting.

Sunday, July 22, 2012

Mendocino Flowers

During a recent camping trip, we visited Mendocino. It was a very cloudy / foggy day, so I could not take any good pictures of the coastline. So the attention turned to the flowers in the front-yards of all the shops in the downtown. They have a very nice variety of flowers there.








Monday, July 16, 2012

Grouping Permutation Strings

This is a straightforward problem.

Given N strings of equal length (K) on an alphabet, you have to partition them into sets, such that every set contains strings that are permutations of each other. Of course, a string can be added to only one set and if 2 strings get added to 2 different sets, they should not be permutations of each other.

This can be easily done in O(N*K) time by using a hashmap. Each string will be inspected once, and each character of the string will be inspected only once.

We will use a hashmap, that maps the permutation key to a set of strings. We iterate over the N strings to find the permutation key of each string. In each iteration, you need an array to keep counts of characters that appear in the string. This array size will be the same as the size of the alphabet. So it will be able to keep counts of all the characters in the alphabet, that may or may not appear in a string. Then iterate over the characters in the string. Whenever you see a character, increment the corresponding count in the array. After the string is inspected, the array of counts can be used as a key in the map. If 2 strings have the same counts for all the characters, then they are permutations of each other.

Here is the Java code.

// assume all lowercase strings
int A = 26 ; // size of alphabet is 26
int N = ... ; // number of strings
String [] allStrings = new String[N] ;

// code to populate the array with equal size strings
// ...
int K = allStrings[0].length ;
// all strings are of the same length

// we are using a map with a String as key
// and a list of String as a value
// By using a List (instead of Set)
// we preserve the original order of strings
// This may or may not be important depending on the problem
Map permutations_map = new HashMap() ;

// Now iterate over the array and find permutation key for each string
for (String s : allStrings) {
    // counting array length is same as alphabet length
    int [] char_counts = new int[A] ;
    for (int i = 0 ; i < K ; i++) {
 char c = s.charAt(i) ;
 int index = ((int) c) - ((int) 'a') ; // char math !
 char_counts[index] ++ ; // increment the count
    } // 

    // now the string representation of this array can be used as a key
    String bucket_id = Arrays.toString(char_counts) ;

    // add the string to the list in map
    // create a new list if needed
    if (! permutations_map.contains(bucket_id) ) {
     permutations_map.put (bucket_id, new ArrayList()) ;
    } // 

    List str_list = permutations_map.get (bucket_id) ;
    str_list.add (s) ;

} // 

The caveat : This is dependent on character math. It's no big deal, but if it is a problem for the alphabet, just use another map, tp map the characters into unique numbers that can be used for the array index. Simple.

NOTE : For small strings on very large alphabets, an alternative scheme will be better. But the idea given here is reasonable to find permutations within numbers, or ascii strings.

I used this to solve another problem. First I had to generate a list of primes, for which I used the "Sieve of Eratosthenes". Then, I treated each prime as a string of digits, and use the above algorithm to bucket them. That was only part of the solution. I will cover the remaining parts in later posts.

Here is the Java code for grouping the primes. Note that all the numbers are assumed to have the same number of digits. In particular, they were all 4 digit primes.

public static final long MaxNumber = 9999 ;
public static final int NumberOfDigits =
    (int) (Math.ceil(Math.log10(MaxNumber))) ;
public static final long Floor =
    (long) (Math.pow(10,NumberOfDigits-1)) ; // 1000
public static final long Ceiling =
    (long) (Math.pow(10,NumberOfDigits)) ; // 10000

public static String getBucketId (long num) {
    int digits_count [] = new int[10] ;
    int pow10 = Floor ; // start dividing by 1000
    while (pow10 != 1) {
 long digit = num / pow10 ; // left most digit
 digits_count[digit] ++ ; // increment the count
 num -= digit*pow10 ; // remove the left most digit
     pow10 /= 10 ; // for next iteration
    } // 
    digits_count[num] ++ ; // last digit remains
    return Arrays.toString(digits_count) ;
} // 

public static void insertIntoBucket
                  (String bucket_id, long num) {
    if ( ! BucketedPrimes.containsKey (bucket_id) ) {
     BucketedPrimes.put (hash_value, new ArrayList()) ;
    } // 
    List permutation_list =
                      BucketedPrimes.get (bucket_id) ;
    permutation_list.add (num) ;
} // 

public static void createBuckets
                    (int num_digits, List all_primes) {
    for (Long p : all_primes) {
 long prime = p.longValue() ;
 String hash_val = getBucketId (prime) ;
 insertIntoBucket (hash_val, prime) ;
    } // 
}
This creates the BucketedPrimaes map given a list of numbers, in this case the numbers happen to be primes. Every value in the map is a list of 1 or more numbers, that are digit permutations of each other.

Tuesday, July 10, 2012

What a week that was

The last week was very interesting for Sports and Science. Somewhat historic as well. Here is a quick recap of all the things that happened in this short time.

1. Spain's historic win at Euro 2012.
It's hard enough to win a Soccer tournament at such massively competitive world stage. Doing 2 in a row is way harder. Doing 3 in row, definitely deserves being labeled as historic. I wrote about it in my previous post.

2. Federer's win at Wimbeldon.
I don't think I have to say a lot about this, as this is obvious. Astonishing 17th grand slam title, regaining number 1 at the age of 30, what more a man can do ?

3. Anderson Silva's Win at UFC 148
Although UFC is gaining popularity, it still hasn't gone mainstream. More and more will be shown on Fox, so it just has begun its upward swing. Many think of it as too violent. I find it less violent than boxing, as often times the fights are decided by grappling skills. In any case, I enjoy watching UFC, and find Anderson Silva's 10th title defense legendary. In a field that requires insane physical fitness and a lion's heart, no one has been at the top for so long. And Silva does it convincingly. Jon Jones might surpass Silva's records, but till today, Silva has been the best pound for pound fighter in the world.

Now on to Science - where the discoveries are truly historic in nature.

4. Higgs Boson
The confirmation of this so called "God Particle" was one of the main objectives of Large Hadron Collider (LHC) at CERN. To be honest, I don't understand the theory at all. To my layman brain, Higgs Boson has always felt like the "aether" that was supposed to permeate the space. But of course, I believe the modern scientists when they tell us, that Higgs Boson is based on sound mathematics, unlike the discredited "aether". This week the CERN announced that they have indeed found evidence of Higgs Boson in LHC. This is the most important discovery in particle physics, and it confirms The Standard Model. I wish there were more accessible books that explain the Higgs Boson, and particle physics in general.

5. Dark Matter Detected
With all the celebration about the Higgs Boson in the media, one other equally important discovery did not get as much mention. For the first time the dark matter was "observed directly". Dark Matter by definition does not interact with other matter. That's why it has been hard to detect it in spite of it being 5 times as plentiful. The only way to detect it as via its gravitational effects on neighboring matter. On the same day CERN announced about Higgs Boson, Nature announced about the first detection of dark matter "filament" joining 2 clusters of galaxies. Dark Matter is even more mysterious than Higss Boson, but it's at the cosmological scale, not quantum scale. I do not know if this discovery proves the hypothesis of Dark Matter. It does seem extraordinary, confirming that although we know precious little about the universe, we are perhaps on the right track.

Sunday, July 1, 2012

The Greatest Soccer Team Ever

It's very rare to watch history in the making, and much rarer to realize that in real time. I think the time has come to declare just that.

About 6 years ago, the Spanish National Football team made a crucial decision. Having realized their inability to out-muscle their opponents, they decided to adopt a playing style that has now come to be known as "Tiki-Taka". This style was not their invention - some credit goes to the Barcelona team during the early 90s under the super-successful manager and a legendary player himself - Johan Cruyff. It has been evolving since then. The Barcelona team under Josep Guardiola (a pupil of Johan Cryuff) and the Spaniards just took it to the level of absolute perfection. There is a significant overlap between the rosters of Barcelona and the Spain National Football team, and the playing styles are nearly identical.

The Dutch made "Total Football" famous and highly effective in the seventies. In this style, the players can switch positions and reliance on specialists is reduced. Barcelona's "Tiki-Taka" takes this basic idea even further and adds more elements to it. In this system, the players can be physically small, as long as they are technically talented and exceptionally fit. They make quick passes to each other, with just one or two touches before passing. It requires exceptional team coordination, vision and space awareness. A typical pattern in this system is triangulation, where 3 players keep advancing field position while passing ball to one another. Others join in as needed to make new triangles.

But the style is just a technicality if it isn't successful. Barcelona has won 15 titles under Guardiola, and Spain just became the first country to ever win 3 consecutive titles - Euro 2008, World Cup 2010 and now Euro 2012. And of course, success of the style depends on the caliber of the players as well.

The relationship is mutual. This style has created a generation of great Spanish players and the continued success of the style depends on their greatness. Xavi, Iniesta, Villa, Fabregas, Silva, Torres, Pedro - the list is endless. In Euro 2012, they were without Puyol and David Villa - and they still won. This combination of individual talent and a great style, has been a perfect match. Hence, I have no hesitation in claiming that we are indeed watching THE greatest national soccer team ever.

Such claims are often met with skepticism. What about Brazil with Pele, or the Dutch team of 70s ? Comparing players across generations is hard, comparing teams is even harder. What is great about Spanish team today, is that it is not dependent on some key players - rather it depends on having many players that play the system exceptionally well. Surely, Xavi has been the architects on many attacks - but the success doesn't just depend on him. Messi makes Barcelona the ultimate club team ever, but he is not part of the Spanish team. That's the point. Spain doesn't need a Pele or a Maradona or a Platini or a Zidane. There is no one player without whom the whole edifice will collapse.

A key idea of the system is to keep possession at all times. In many games, Spain has possession for 70% of the time, and routinely complete 500+ passes every game (with 80%) accuracy. If your opponents do not get the ball, how will they score ?

This style of play also generates criticism. Spain's goal margin in wins is often 1-0. People find the game slow, some go as far as calling it boring. I can see why they might feel it that way. But I find their play mesmerizing. It's like watching an intricately choreographed ballet. Elegance and precision are two words often used to describe their play.

What's remarkable is this style is not a secret. Other teams have been studying them, trying to copy some of their ideas, but more importantly figuring out ways to defeat them. Neither Spain, nor Barcelona is invincible. Chelsea has had success against Barcelona. But overall, both Spain and Barcelona have maintained their position at the peak for a long time. This playing style, and the physique of current players makes the long crosses and headers a bit rare. Very few players are over 6 feet. I don't mind that.

You cannot defeat them because you cannot take away the ball from them, and if you get the ball, you cannot score a goal against them. That's true. Often during the Tiki Taka talk, what gets little mention is Spain's defense. In the entire Euro 2012, Spain played more games than everyone else except Italy, but there was just one goal scored against them. Just ONE. This was when their main defender Puyol could not play the tournament due to an injury. Think about it. Victor Valdez is considered to be the best goalkeeper Barcelona has ever had. And he is a reserve for Spanish team, because current goalkeeper and captain Iker Casillas is on track to be called one of the greatest goalkeepers ever. Spain's coach has the reverse problem - who to keep on the bench ! The talent pool is very deep.

No matter what you think of this being the greatest team ever, it's beyond doubt that Spain and Barcelona have redefined Soccer. And this happened in last 5 years. Many great teams have come and gone, many more will surely come in future. But very rarely a team is credited for starting a new School of Soccer playing. I consider myself to be absolutely lucky to have watched Spain - and in particular Barcelona play. It has been a pure joy. Thank you Spain, thank you Barcelona !

Here is a very nice video explaining this style of play - not goal scoring, just passing.

Sunday, June 17, 2012

GaDiMa-3

How good is your Marathi ? Take this test :-) What does "कार्मुक" and "सायक" mean ?

A context would certainly help.

जोड झणि कार्मुका, सोड रे सायका,
मार ही त्राटिका, रामचंद्रा !

In गीत-रामायण, महाकवी ग.दि.मा. has written songs on situations that are hardly obvious candidates for writing poetry. But write did he. And fabulous poetry on every such occasion. Here, seeing the demon Tratika, sage Vishwamitra orders Shri Raam to kill her. The entire song is just one big command and its justification.

As you can guess now, "कार्मुक" means bow, and "सायक" means arrow. Actually I am guessing too. My Marathi-English dictionary doesn't have the word "कार्मुक".

Here is another test for you. Now that kind of धृपद (refrain) forces a difficult choice for यमक (rhyme). How many words can you come up with that rhyme with "रामचंद्रा" ? Quickly :-). Anyway, this is the list of words that GaDiMa used in this song : अभद्रा, मुद्रा, तंद्रा, मानवेंद्रा, मृगेंद्रा.

More often than not, Marathi is not soft and sweet on ears. This song has particularly harsh sounding words - like the यमक. In spite of that, the लय (rhythm) is impressive. Take the following as an example.

अतुलबलगर्विता, मूर्त ही क्रूरता,
ये घृणा पाहतां, कृर मुद्रा

How many other Marathi poems/songs that you know that have words "कृर", "घृणा" and still has a beautiful lay ? Such construction is not uncommon in Sanskrit, and there is a clear Sanskrit influence here.

This may not be as famous song as others from Geet Raamayana. I like it a lot, it's a very good प्रासंगिक कविता (situational poem).

I found the following YouTube video in case you are interested. I am not impressed by the singing. When I was a kid, I have heard Sudhir Phadake singing it in a live performance. He would bring out the वीररस and रुद्रारस as GaDiMa intended. That is missing from this rendition. If you haven't heard this song in a while, it will give you the idea of the tune, that's all.


Previously :

Monday, May 21, 2012

Viral Storm



Book Review : The Viral Storm
Author : Nathan Wolfe
My Rating : 3 out of 5

The complete title of the book is "The Viral Storm: The Dawn of a New Pandemic Age".

I came to know about this book from "The Colbert Report" when the author Nathan Wolfe was interviewed. He boasts an impressive resume. He was previously a tenured professor at UCLA, now he is a professor at Stanford, has published numerous papers with many years of field research in remote parts of the world. He is more than qualified to write a book on this topic.

The world of microbes is fascinating but largely ignored by anyone who is not in medical field. There aren't as many PBS Nature shows on them as there are on other species. We talk about them only when there is an outbreak. But for Nathan Wolfe, this microscopic world has been a lifelong obsession. He started out as a researcher, and now heads the unique efforts of a not-for-profit organization called Global Viral Forecasting Initiative.

The idea behind such an organization is very interesting and is explained at the very end of the book - how to predict (and prevent) future outbreaks. Their tool-set is diverse and innovative. It even includes analyzing Google search patterns and trending topics on Twitter. But what is a pandemic ? How does it start ? How does it spread ?

Nathan Wolfe argues that understanding these questions is important because it's almost certain that there will be new pandemics and new lethal viruses. To explain that, he starts from the very beginning, at the dawn of human evolution, when our primate ancestors ventured out of the forest into the savannah. The microbes have been evolving with us, and continue to evolve like any other life form.

For any virus that wants to affect as many hosts as possible, there should be means to spread. We are not just a super connected world with fast means of mass transportation. As the author puts it, we are also an "intimately connected" world, where blood transfusion and organ implants give new avenues for the viruses to spread.

There are many such insights in the book. Now I know, this cannot be a relaxing discussion. So the author tries hard to be an optimist and not an alarmist. He obviously is passionate about the topic and is at the forefront of preventive efforts. That passion comes through.

But it's not as satisfying as I hoped it would be. Often times it feels like a book about "who's who" of the "virus hunters", and less about explaining scientific ideas to outsiders. The researchers deserve credit, but it would be nice to learn more about the topic they are researching. Hence, it feels like written by an executive and less by a scientist. I wish he had spent more of the pages on explaining more about the biology concepts related to the discussion. If advanced topics in math and physics can be explained to laymen, I am pretty sure it's possible for biology as well.

I can still recommend it, because it's a worthwhile reading about a field we rarely hear about.

Friday, May 4, 2012

Julie and Julia

Movie Review : Julie and Julia
Director : Nora Ephron
Genre : Drama
Starring : Meryl Streep, Amy Adams, Stanley Tucci, Chris Messina
Released : 2009
My Rating : 6 out of 10

Anyone who has any interest in cooking has heard of Julia Child. Her first book "Mastering The Art Of French Cooking" was released in 1961, and it created culinary revolution by making fine French cooking easily accessible to American households. Still widely available, and universally loved, it is a true classic. Subsequent TV show, "The French Chef" confirmed her as the American Cooking Icon. (To be honest, I have read those 20 pages of detailed description on how to make an omelet, and I still cannot make a good French Omelet. But that's hardly Julia's fault.)

In 2002, a Queens resident Julie Powell. decided to cook all the 524 recipes in this classic in a year, and blog her daily experiences. She needed a distraction from a stressful job and her husband suggested this idea because of her love for cooking. This blog became popular, and Julie Powell wrote a book about that one year in her life.

That book is the inspiration for "Julie and Julia". It examines the lives of both women. They never met in person, so the movie flips back and forth between the two stories from two different periods. Sometimes, these switches work, sometimes they seem forced.

There are some interesting situations and funny moments. I didn't know that Julia Child took to cooking because she didn't have much to do while her diplomat husband was stationed in Paris. She tried different classes - including bridge, but eventually joined a cooking class, because she loved French food. She wasn't readily accepted, but she persevered. Her struggles and subsequent successes give a good insight into her personality.

These occasional moments fail to cover the movie's flaws. Neither story is particularly exceptional and to stick to the theme - both are a bit bland. Not all life-stories are eventful, and in such cases, the script writers have to rise to the challenge of making them engaging. In this movie that didn't happen, hence it feels long and drawn out.

I am a fan of Meryl Streep, but her acting in this movie felt very unnatural. I know she was trying to sound like Julia Child, but it was so forced and monotonous, that it became a bit irritating. Amy Adams did her best, and she succeeds in being cute most of the time. The problem is, her character is selfish and not really that likeable.

Overall, I was not too impressed with this movie. And I love cooking. It's an above average movie, and if you don't have too high expectations, you might like it. It's correctly rated PG-13, but kids will be frankly bored.

Tuesday, May 1, 2012

Generating Prime Numbers Using Sieve of Eratosthenes

Generating a prime is occasionally needed in solving coding puzzles. It's a pretty straightforward task, whether you stick with a naive brute force solution or with "Sieve of Eratosthenes". I am going to use this one later to show a solution for a more involved problem.

The "Sieve of Eratosthenes" is a very old method of generating the primes, named after an ancient Greek Mathematician who invented it. It's intuitive to understand, and efficient.

You start with number 2, and mark all numbers up to N that are divisible by 2 as non-prime, by just hopping forward 2 places, till you reach N. Then you start with 3, and mark every third number as non-prime. Next number 4 is already marked as non-prime, so ignore it. Then start with 5, and mark every 5th number as non-prime. And so on.

A simple observation helps most algorithms related to checking/generating prime numbers.
For finding a factor of any number N, you only have to check using numbers that are less than the square root of N. Because if N = x * y, and x > sqrt(N), then it must be true that y < sqrt(N).
You can use this observations is 2 ways.
1. When you are considering the factors to cross out the composites, you need to consider factors only till sqrt(N).
2. When you start crossing out, you can start crossing out numbers from factor^2. Anything composite below that would be a smaller multiple of factor, and would have been crossed out.
Here is the Java code :

// consider all numbers as prime to begin with
// init array of N flags to false
boolean is_non_prime[] = new boolean [N+1] ;
// NOTE : first index is 0

is_non_prime [0] = is_non_prime [1] = true ;
// 0 and 1 are not considered primes

for (int factor = 2 ; factor*factor <= N ; factor ++) {
    // no need to find composites of a non-prime number
    if ( is_non_prime[factor] )
        continue ;

    for ( int composite = factor * factor ;
              composite <= N ; composite += factor ) {
        is_non_prime [composite] = true ;
    } //
} //

After this, the array is_non_prime[k] = false for any number K that is prime.

Of course, this needs memory of N bits for storing the flags, which is not an issue in most applications.

Finding the computational complexity is a bit tricky. There are 2 loops, but the complexity is not O(N^2). The outer loop is executed K times, where K=sqrt(N). The inner loop executed only for primes, which is significantly less than K for large values of K.

Note that for factor = 2, there are N/2 operations because N/2 numbers will be crossed out. Then for factor = 3, there will be N/3 operations. Then N/5 operations and so on. So
Total operations = N/2 + N/3 + N/5 + N/7 + N/11 + N/13 + ...
  = N * ( 1/2 + 1/3 + 1/5 + 1/7 + 1/11 + 1/13 + ... )
The term in the parenthesis is "prime harmonic series" . It has been shown to have the upper bound of ln ln (N). Where ln is the natural logarithm, and yes, it's a double logarithm : log of log of N.

This means the complexity of our algorithm is O (N * ln ln N ).

The double logarithm make the second term quite small than N. That makes the computation complexity of "Sieve of Eratosthenes" almost linear, which is quite a feat.

Monday, March 26, 2012

Hummingbird

This is NOT a good photo. But this is the only one I have managed to take till now.

Anyone who has the slightest interest in nature photography probably wants to take a photo of a hummingbird drinking nectar from a flower. There is something magical about that sight. How they manage to hover just on the spot with frantic flipping of their wings, and smoothly glide from one flower to another. And they are pretty.

In spite of seeing them so many times, I hadn't managed to take any photos of them doing that till now. Because they don't hang around for too long. (I did manage to take a photo of one sitting on a branch. And also of a nest with eggs.)

So when I saw a hummingbird near the peach tree in my backyard on a weekend - this is what happened.

1. Frantically ran upstairs.
2. Got the camera out of the bag.
3. Removed the prime lens.
4. Put in the big 300mm zoom.
5. Set the mode to "Tv"
6. Adjusted shutter speed to max to see their wings clearly, not just a blur. This is at 1/4000.
7. Tried to find the hummingbird again. (Why are they so tiny ?)
8, Zoomed to max.
9. Click, click, click like crazy. (Thank you digital camera, no worrying about film cost.)

This is the result. Out of all the photos that had a hummingbird in it, only one turned out to be OK.


What I didn't realize was - with the shutter speed so high, the aperture is going to be wide open (it was f/5.6), making it difficult to get the focus right. So it's not very clear. Plus the zoom magnifies any shaking. But hey, it's still a photo of a hummingbird drinking nectar from a flower ! So it's at least a partial success.

Wednesday, March 21, 2012

Gary Kasparov on Gary Kasparov

Book Review : Gary Kasparov on Gary Kasparov Part 1 1973-1985
Author : Gary Kasparov
My Rating : 5 out of 5 stars

Gary Kasparov, the 13th World Champion, is often considered the greatest player in the entire history of chess. I am in agreement. When chess was my passion, Kasparov was my hero. Later, my favorite player became Anand, whose natural talent is perhaps a notch better. But Kasparov would always command a special place in my chess brain, however small that brain might be. I used to anxiously wait for the morning newspaper to discover the result of his championship games and the list of moves. It wasn't easy to get access to latest games in those days, when there were no computers, and chess books were hard to come by in India. But whatever games I got to see, were jaw dropping. This young man was from a different planet.

So when he writes a series of books about his own life and games, do I even have a choice ? Of course I am going to buy it as a Christmas present for myself, and of course I am going to love every page of it. But for the sake of review, I will keep my adulation aside and try to be objective. No guarantees though.

In case you don't know, in last 10-12 years or so, Kasparov has been working on a massive project - "My Great Predecessors" - a series of books about the past world champions and their challengers. The aim was to cover their games, a bit of history, and also the impact on the evolution of the game itself. A far-reaching and audacious goal. These books have been a huge success. They are not perfect. Famous chess historian, Edward Winter, has noted a few historical inaccuracies. The translation, from Russian to English, has created some uncomfortable sentences. But overall, these books are simply phenomenal. There is nothing else comparable to the encyclopedic nature of the entire series. I have them all and I am totally in love with them.

Later, he wrote another series of 4 books, Modern Chess, out of which 3 are about the 5 world championship matches between Kasparov and Karpov. Yes, these matches deserve that kind of treatment. Their importance on all aspects of chess, from theory to politics, cannot be overstated.

Why am I mentioning all this ? Because his latest series, about his own games, follows the same style. Lots of games, great analysis, helpful explanations, ample diagrams and the same fantastic production quality. And punctuating the games, is gripping historical narrative. This time, since it's about his own life, the book is in no small part, also an autobiography.

A collection of games by one player is rarely meant to be instructional. True, you can learn a lot about chess by studying how the great masters played the game. Some such works, like Alekhine's or Fischer's, have been suggested for improving your own chess. But that's a side benefit. The main reason is to get great enjoyment, and know more about that player. A lot depends on the quality of the games and the annotations. Well, these are games by Kasparov. The quality is naturally high, amazingly high. Goes without saying. The annotations are superb too. For an expert, there are enough variations, and for an amateur like me, the explanations are very accessible. Kasparov often points out the non-technical aspects as well, such as time trouble, or the psychology behind many key decisions. This has been true for all his books, and that's one of the main reasons to read them.

There is a great deal of personal detail, and it's such a joy to read. Kasparov is illuminating his life to show how he became Kasparov, the living legend. How did he start, who helped him, the turning points in his life and the emotional impact of every win or loss. To those who are unfamiliar with his persona, the great thing about Kasparov is, he is very human. He is not a chess machine. His emotional reactions during the game are well known. His attitude is famous - he wants to strike fear in his opponents' heart, he wants to dominate, he wants a crushing victory. He is a fighter who makes chess a sport rather than a game.

Please don't let that give you an impression that this book is used as a platform for bragging. The opposite is true. The tone is absolutely honest and humble. All successful people need a lucky hand once in a while. Kasparov writes freely about how luck played a part here and there. At a very young age, his talents were noticed by the great teacher, an ex-champion and a legend himself - Botvinnik. This patronage was crucial to Kasparov's success. In those days, Soviet Union had more talented chess players than there are fish in the Caspian Sea. Who was going to invite a young schoolboy to master tournaments ? Botvinnik put his respect on line, when he lobbied for Kasparov's inclusion on many occasions. Of course, Kasparov proved him right by winning in a spectacular fashion. But without Botvinnik's training and help, Kasparov would have undoubtedly taken longer to reach the pinnacle. And he admits it gratefully.

And not just about Botvinnik, Kasparov also talks about the guidance and support he received from many other players. And he talks about his losses. Yes, there are games here that he lost ! He explains how the losses he suffered at the hands of ex-champions, Spassky and Petrosian, helped him grow as a player. This is a rarity, and transcends the book into more than just "My Best Games" type of books.

We also get to glimpse how life was behind the iron curtain. Kasparov is Jewish, and had to change his last name to have a shot at success. Chess was more than a game to Soviet Union. There was always politics and intrigue. Ever since Kasparov was a teenager, he was on Karpov's radar. Karpov actively avoided playing him, but his assistants were always present at Kasparov's tournaments, studying him, assessing his strengths and weaknesses. Incredible ! There are many juicy tidbits - again like his other books - that make this series such an interesting read.

I highly recommend this book. Perhaps his best so far. Now I am waiting for the next two parts. And I hope, Kasparov will eventually write about his successors - Anand, Kramnik, Topalov and so on. If you have any interest in chess, get this book. Now.
Related Posts Plugin for WordPress, Blogger...