Thursday, July 23, 2009

One Good Deed Begets Another

This goes out to all you car owners in India:

How many times have you cursed the driving habits of other vehicle owners on the road, or indeed the walking habits of pedestrians?

How many times have you applauded the road sense shown by vehicle owners in developed countries when they wait a few seconds for a pedestrian to cross, or let a vehicle execute a 3-point turn?

How many times have you wished Indian drivers show such courtesy, or lamented that they don't?

How many times have you waited to let a pedestrian cross?

Well, it's time to start now. Show some courtesy on the road. Courtesy is infectious. You will be surprised how quickly it will spread!

Sunday, May 31, 2009

Reboot

How often has a piece of hardware or software stopped working correctly on your computer and after fiddling with it for a while, you've said to yourself: oh well, i'll just reboot my PC. That might fix it, and guess what, often times it does the problem.

I wish one could try this approach for human beings. Heart not functioning well? Let's try rebooting the patient!

Well, for one thing it's not possible to reboot a human being, but even if it were possible to reboot a person doing so won't fix the problem. And when I thought about why not, I realized that it's because computer malfunctions that are fixed by rebooting are software malfunctions. The current internal state of the software program that has malfunctioned is in the RAM of the computer. Something has gone wrong with this state because of which, when this program (or the piece of hardware that it controls) is fed normal inputs, it does not produce an expected output. When you reboot the computer or restart the program, its faulty state is wiped out from memory and replaced with a fresh correctly functioning state after the program restarts. So it starts functioning correctly (at lesdt until it receives some combination of inputs which it was not written to handle correctly, at which point it fails once again).

Contrast this with a heart that is not functioning properly because of a arterial block. Even if you restart such a heart, it will continue to have the block and hence the problem with this heart will not get solved by restarting. The thing to note here is that the problem with the heart - the blockage - is persistent. To compare this with our example of the malfunctioning software program, if the program were to write it's internal state to the hard disk every few seconds while it ran and each time it was restarted, if it were to initialize itself from it's saved state on the disk, then it would not be possible to fix a malfunctioning in this program by just rebooting it. This is because it would have also persisted its malfunctioned internal state to disk, and upon restarting it would read back the malfunctioned state from disk. I.e. The malfunction in this program is of a persistent nature and rebooting cannot fix such
failures.

If we assume for a second that a reboot is possible for the human body could there any kind of malfunction that can be fixed by a reboot - a malfunction that happens only in 'software' and does not have a persistent state?

I think there is at least one kind of malfunction that fits the above criteria and I think it happens when we wrap our mind up trying to solve a problem by thinking about it and get hopelessly confused at some point.

The reset or 'reboot' that can work in this case is sleeping on the problem or just doing something else for a while as a distraction.
This can have the effect of wiping off the malfunctioned state if our thought process regarding this problem. We start thinking about it fresh and sometimes succeed in solving it!

2009 Lok Sabha election: Why congress won

The Indian National Congress put on a spectacular performance in the 2009 Lok Sabha election. While in 2004 it gained around 150 seats (not a bad tally in itself, given the highly factional nature of Indian politics), in 2009, the Congress tally was an astounding 200+.

So why did Congress do so well?

People have attributed Congress's win to various reasons such as the desire to have a stable government (and Congress's demonstrating that it can run a stable government for 5 years), or security concerns (and once again, Congress's demonstrating that it was able to adequately respond to the 26/11 attack and manage the country's security thereafter). Or perhaps it was because people thought that only Congress had the right mix of ability and experience at the ministerial level to get the country out of the economic crisis.

These might all be valid reasons for Congress's increasing its vote share.

I think there are other powerful reasons at play here that contributed to the Congress's win in 2009.

Let's not forget that most of the votes in India come from rural and semi-rural areas - areas where agriculture is the dominant economic activity. Here, local issues matter acutely, much much more than in the cities where people also look at what a party is capable of achieving at a national level.
In the rural India, the global macro-economic crisis, prospects for economic revival and the condition of banks is less of a concern than crop yields, farmer debt and jobs for the young people in the village.
Also a concern are roads, electricity, warte and sanitation.

Terrorism of the type that affects India's cities is also not so much of a concern in rural areas. After all how many high profile (non-naxal) terror attacks happen in villages?

What matters is local issues and governments who can deliver solidly at the local level win.

In the last few years, the UPA did exactly that.

There were four programs undertaken by the UPA at the national level that had direct application at the rural level. The success of these programs ranged from good to phenomenal and they made a very large number of rural folk happy.

These programs were:

The National Rural Employment Garauntee Scheme (NREGS): This program provided garaunteed 100 days of non-skilled employment per year to adult members of millions of rural housholds in all districts of the country, and paid decent wages for the same.

Bharat Nirman: This scheme led to the betterment of road, water, electricity and sanitation infrastructure in thousands if villages and small towns leading to a material impact on the quality of life of every rural citizen.

National Farmer Loan Waiver Scheme: This much debated and plenty ridiculed scheme actually worked, freeing thousands of farming households from the crushing weight of debt arizing out of crop failures.

The National Rural Health Mission: This was one of the flagship programs of the UPA government that brought basic healthcare to rural India.

Ironically, many of these socialist programs were started as a consequence of the marriage of the Congress with the left parties and formed a substantial portion of the Common Minimum Program that the Congress was obligated to implement so as to get the left to look the other way while the Congress implemented its reformist agenda.

What set these programs apart was that while previous schemes of such grand nature failed or had limited success, these programs largely succeeded in their goals, owing to a combination of simplicity of design and goals, efficient administration and less corruption in implementation.


And then there was Rahul Gandhi.

This man covered an astounding 87000 kilometers during the election campaign, criss-crossing the country and visiting hundreds of electoral districts, and in the process bringing the Congress to the doorstep of millions of small towns and villages. He may not be the most experienced politicians, but he an American style full-contact campaigneering on a massive scale that actually worked!

So there you have it. These are some of the important things that worked well and endeared Congress to a large number of rural folk in a way that had not been seen in a while.

In hindsight, the formula for winning elections in the new India seems simple:
Engineer and sustain a high rate of GDP growth, which will bring in a large amount of tax money into the government's coffers. Use these monies wisely to launch, manage and efficiently administrator pan-India development schemes in infrastructure, health, education and employment that make a direct and material difference to people's quality of life.

And during election time, connect, connect, connect.

Saturday, February 14, 2009

High speed roads, low speed traffic


Cities and towns all over India are getting wider, smoother and better quality road infrastructure. However this improvement in roads isn't necessarily translating into an improvement in traffic flow or speed.


I see the following impediments to the flow and speed of traffic on Indian roads today:


There are a large number of slower moving auto-rickshaws and tempos on the roads which slow down vehicular traffic behind and around them.


There is a large density of two wheelers on the roads of some cities such Pune in Maharashtra state. The chaotic movement of these vehicles impedes the smooth flow of other traffic around them, thereby reducing the average speed of traffic on the street.


Even though a road may have been reconstructed into a wide, good quality thoroughfare, often times the left most one or two lanes are occupied by illegally or improperly parked vehicles, pedestrians walking on on the road surface or digging up of the road surface, thereby reducing the effective number of drivable lanes.


There are insufficient road markings such as lane indicators, and lanning laws are either non-existant or not enforced. The consequent lack of traffic discipline adversely affects the smooth flow of traffic and reduces the average speed of traffic.


Finally, pedestrian infrastructure such as footpaths, road-overbridges, skywalks or subways are either absent, insufficient or people are not used to using them. So people tend to, by and large walk on the road thereby obstructing the smooth flow of traffic.


Clearly it is not sufficient to simply build wider, better quality roads to decongest them, unless the above mentioned hinderances are addressed.

Sunday, January 25, 2009

Use them or loose them

My city’s municipality has built a brand new and quite beautiful footpath on a road near my house recently. They also paved the road passing next to the footpath.


For as long as I can remember this road did not have anything resembling a usable footpath and every day, hundreds of pedestrians, many of them school kids had to walk on the road dodging autorickshaws, cars, trucks and motorbikes. It was quite dangerous and so the new footpath was a very welcome addition.


But almost no one uses the new footpath!


People still prefer to walk on the street, in fact many of them walk right next to the footpath, while the footpath lies empty and unused. The street is as dangerous as ever to pedestrians, in fact even more so now that the road is newly built since vehicles go faster on the street now.


Nature of course abhors a vacuum, and hawkers, beggars and garbage sorters who have noticed that people aren’t using the footpath, have now started setting themselves up on it in various places. This has only served to de-motivate pedestrians who have wanted to use the footpath.


So let's not blame encroachments on footpaths when we do not actually wish to use the ones provided to us.


In any case I think what is really going on over here is that people in India, not used to using pedestrian infrastructure for generations, do not know how to use it, or simply cannot get themselves to using it now that it is available.


We need to implement jay walking laws in India, similar to ones existing in developed countries, that impose a fine on people who walk on streets when a usable footpath is available.


For decades, people in India have had to make do with basic, woefully inadequate and shoddy civic amenities. Now that good quality civic infrastructure is finally becoming available, there is also a need for complimentary laws that would nudge people towards the proper use of the new amenities.


And to people who think such laws are useless since they don't get implemented effectively, I would ask them to look at ones that have been implemented effectively. The two-wheeler helmet law in Mumbai is a classic example. Two wheeler riders without helmets have been fined often enough now that most two wheeler riders prefer wearing a helmet - probably more out of fear of getting fined than out of a concern for safety - which incidentally, how most of the effective laws all over the world function!

Saturday, January 10, 2009

Learning to read...one pattern at a time

My 4 year old son has started figuring out how to read. He pronounces each alphabet in a word and then asks me what is the word that he just read. But I know that he recognizes certain words by just looking at them, and I don't think he has learnt to 'read' them as a collection of alphabets because some of these words that he recognizes are quite long. What I think is really going on here is that he has learnt to recognize certain 'alpabetical patterns'. In fact this is the strongest evidence to me that our brain learns to recognize at least some words as patterns and we learn to read at least to some extent, by recognizing patterns of alphabets. Perhaps, as our learning progresses, we also learn to recognize phrases and sentence fragments as patterns of words. This makes sense to me also from a mathematical perspective since neural networks (such as the biological version in our brains) are very good at pattern recognition.