Main

Essays Archives

January 1, 1995

Two-Way Street

As a young boy in India walking to his school, I used to wonder how drivers could tell if they were on a one-way street. It was ok for vehicles trying to enter the street from the wrong end --- A no-entry sign will prevent them from getting in. But that is not enough, of course. Vehicles coming in from the other side need to be told that they are entering a one-way street too. What if a vehicle on a one-way street suddenly wanted to turn around and go back? But in the city where I come from, the transport department must have wisely decided to save money by relying on people's observational skills. There were no signs at the entrances to one-way streets. There were only ``No-entry'' signs at their exits. I guess it makes sense because the traffic was usually so dense that you can tell one-way streets by just looking at them. There was no chance of traffic ever making it an inch ahead in the wrong direction. However, there is a fine line between impossible and illegal and that is precisely what I set out to exploit. I decided to expose the loophole in the legal system by showing that I couldn't be prosecuted by law although I had done something obviously illegal.

Continue reading "Two-Way Street" »

January 1, 1998

Is Learning Unix Worth the Time?

First appeared in High Technology Careers, Vol 15(2w), p.26

It seems Ken Thompson, one of the people who wrote Unix, was asked what he thought of the date-rollover problem in Unix (In the year 2038, the Unix date value wraps around to 0). His reply was that he didn't care as he was going to be dead by then. A speaker at the UniForum NZ 97 conference at Rotorua quoted this anecdote. When I mentioned this to a friend, he said that this speaks a great deal for Unix since the questioner implicitly assumed that Unix was still going to be around in 2038. Well is it? Is it worthwhile learning Unix skills and still be employable in the decades to come?

Continue reading "Is Learning Unix Worth the Time?" »

May 1, 1999

The Troublesome Toilet Seat - Up or Down?

Why would someone start a serious study of something so silly? That's precisely what I thought until I noticed that this seems to be a real problem in many households, at least as evidenced by popular sitcoms on TV such as ABC's ``Home improvement'' and NBC's ``3rd rock from the Sun''. This is what ultimately stimulated my interest in this seemingly trivial issue.

Click here if you just want to run the computer simulation.

1. Introduction

In spite of Faye's repeated insistence that Mike leave the toilet seat down, Mike made the unfortunate mistake of accidentally leaving it up one day, only to suffer its dire consequences. Faye threw such a fit that Mike had to sleep on the couch almost that whole week until he made it up to her.
Most of us who read the above passage are probably sympathetic toward Mike, but strangely, not as harsh in our judgment of Faye as we should be. Consider instead the following situation:
In spite of Mary's repeated insistence that Peter bring her a bunch of red roses every day on his way home from work, Peter made the unfortunate mistake of forgetting to do so one day, only to suffer its dire consequences. Mary threw such a fit that Peter had to sleep on the couch almost that whole week, until he made it up to her.

Continue reading "The Troublesome Toilet Seat - Up or Down?" »

July 7, 1999

The Clever Widows of Fornicalia and the Stobon Oracle

July 7, 1999: There is a more recent version of this document with a Prolog implementation of the proof by Ray Kemp. It is available in Postscript format (140K) and can be downloaded from here.

In a certain village on the remote plains of Fornicalia there exist some men who are having affairs with the wives of other men. Now there is a gruesome custom in this village which requires a woman to kill her husband the morning after she discovers that he is having an affair with another woman. It also happens that every woman knows whether every other man is having an affair or not except her own husband.1 So life in this village goes on peacefully since no woman can know for sure that her own husband is cheating on her. Unfortunately, an Oracle from the pure and untainted shores of distant Stobon visits the village one day and proclaims that at least one man in this village is having an affair. What happens after this?

Readers are urged to think of a solution themselves before proceeding further. We first present the solution and its proof and finally go on to discuss the information theoretic aspects of this remarkable problem.2 A similar treatment of this and some other aspects of the puzzle can also be found in Moses et al. (1986) and Halpern and Moses (1990), both of which also cite other sources where further discussion of the topic can be found.

Continue reading "The Clever Widows of Fornicalia and the Stobon Oracle" »

November 18, 2006

The CPA Nube Lube Tube

Grease to ease the transition of newbies into the fascinating world of Cost-Per-Action (CPA) advertising

First appeared in San Jose Mercury News Forums, Nov 18, 2006.

Consider the following ad, the likes of which we are all only too used to routing promptly into our spam buckets.

"The sex of your baby predicted CHEEP! Guaranteed Results. 150% REFUND for wrong predictions"

There you have it - a simple and sweet business plan if ever there was one. But people who ponder can promptly peer past its imposturous garb. This is just gambling in disguise. Suppose the service costs $1.00 and a thousand naive couples paid for it. On average, five hundred of them will receive a refund of $1.50; the rest will presumably be happy to have been told the sex of their baby. Despite the refunds, however, the service provider is $250 better off than she was before, and for no more effort than flipping a coin for each customer. Immediately, one can tell that the scheme is a rip-off, aimed at defrauding innocent parents-to-be of precious baby-dollars.

To the uninitiated, that is exactly how CPA advertising is being framed by ad-networks steeped in profiting from traditional methods: "Give us your ads. We'll show them. You only pay for ads that result in a sale, but not a cent on the rest." On the surface, yes; this does look like a scam. But fortunately, this is not what CPA is about. In fact, CPA represents the exact opposite. CPA ad-networks don't just flip a coin to show an ad. Considerable effort and investment go into determining where each ad is most likely to appeal, and, of course, web real-estate on which to show ads does not come free either. A CPA network will actually "lose" money if you don't make it and therefore it is in their best interest to make sure you are successful.

Continue reading "The CPA Nube Lube Tube" »

July 29, 2007

A Metaphorical Essay - Google News, Air, and TCP/IP

If you could see the individual molecules of air in a perfectly still room, you would see that the molecules are anything but still. They are moving in all directions, apparently randomly. Each has its own spin, and its own story to tell. Yet the room itself, made up of millions of these molecules, has the picture of perfect calmness as though nothing in it is even stirring. In the calm of this room lies buried the solution to the most pressing problem in objective journalism.

Continue reading "A Metaphorical Essay - Google News, Air, and TCP/IP" »

August 3, 2007

Communing with Carrots

Last weekend, as I was munching away on a sweet home grown carrot from our own backyard, I let my mind wander with the wind and ponder pointless profoundities. An interesting, but totally useless statistical question occurred to me.

That we are all ultimately made of dust from the distant stars is indisputable. But what, I pondered, might be the odds that an atom of carbon in my crunchy carrot was the same atom in a molecule of CO2 I had exhaled earlier?

Continue reading "Communing with Carrots" »

December 13, 2008

Cool Currency

After a long year of Sharon teaching their delightful children, the parents had decided to reward her. On Teacher Appreciation Day, following heart-felt expressions of gratitude and astonishment at what a wonderful job she had done, the head parent, who had coordinated by collecting contributions towards Sharon's gift, presented her with a brightly colored sealed envelope amidst generous applause.

Sharon opened her gift with great eagerness and found what she would never have spoiled herself with in her wildest dreams - She was now the proud owner of a certificate bestowing upon her the gratitude of a thousand children in Rwanda, who had just been donated $500 on Sharon's behalf.

Yes - The head parent, in her infinite wisdom, had decided that the best gift for Sharon would not be a couple of sessions at a posh Palo Alto Spa, or a comfy sofa to relax between classes, or even a Bloomingdale's gift card, but rather a donation to a worthy African cause in Sharon's name. "What could please Sharon more?" would likely have been the most pressing question in her mind, as she tossed around various options for a gift to proudly decide that someone who spends almost every waking hour with children could only ever be pleased by being told that she had benefited yet more children.

Continue reading "Cool Currency" »

About Essays

This page contains an archive of all entries posted to aBlog in the Essays category. They are listed from oldest to newest.

I discovered that some of my undergrad A+ essays are being peddled online by some sites selling them to plagiarizers. I don't have the time to go after them and I don't care too much. But I might as well link to them from here (as and when I export each from Word-perfect), so it's easier for instructors, with Google's help, to detect when their students cheat.

Chapters is the previous category.

Fiction is the next category.

Many more can be found on the main index page or by looking through the archives.

Powered by
Movable Type 3.35