Tuesday, November 24, 2009

A few quotes by Bertrand Russel

Advocates of capitalism are very apt to appeal to the sacred principles of liberty, which are embodied in one maxim: The fortunate must not be restrained in the exercise of tyranny over the unfortunate.

Boredom is... a vital problem for the moralist, since half the sins of mankind are caused by the fear of it.

Conventional people are roused to fury by departure from convention, largely because they regard such departure as a criticism of themselves.

I do not pretend to start with precise questions. I do not think you can start with anything precise. You have to achieve such precision as you can, as you go along.

If all our happiness is bound up entirely in our personal circumstances it is difficult not to demand of life more than it has to give.

Love is something far more than desire for sexual intercourse; it is the principal means of escape from the loneliness which afflicts most men and women throughout the greater part of their lives.

Many people when they fall in love look for a little haven of refuge from the world, where they can be sure of being admired when they are not admirable, and praised when they are not praiseworthy.

Marriage is for women the commonest mode of livelihood, and the total amount of undesired sex endured by women is probably greater in marriage than in prostitution.

Obscenity is whatever happens to shock some elderly and ignorant magistrate.

Of all forms of caution, caution in love is perhaps the most fatal to true happiness.

Patriots always talk of dying for their country and never of killing for their country.

Right discipline consists, not in external compulsion, but in the habits of mind which lead spontaneously to desirable rather than undesirable activities.

The trouble with the world is that the stupid are cocksure and the intelligent are full of doubt.

To fear love is to fear life, and those who fear life are already three parts dead.



Saturday, September 26, 2009

Quicksort

Quicksort is one of the most used Algorithm in computer science. It is based on the idea of recursive partitioning. The partition scheme is always linear but the expected problem sizes at each iteration can be data dependent. Hence the expected O(nlogn) time comes. However, its a very useful algorithm because the time complexity is fairly tight and that's the reason it can achieve close of nlogn speed for most of the cases.
Implentation of partition in place is not trivial and history proved that with many buggy variants of partition in 60sHowever, A functional (haskel) version of Quicksort can be wrtten in a very precise and short manner:

qsort [] = []
qsort (x:xs) = qsort less ++ [x] ++ qsort more
where less = filter () xs
more = filter (>=x) xs


Tuesday, September 22, 2009

sparse data, complex model and netflix prize

The bellcore team won the Netflix prize. They have spent about an year to work on this problem and then developed a complex model with millions of features for the Netflix data recommendation. Quite a few interesting papers are published. One million dollar is roughly equivalent to the cost of hiring 5/6 Engineers for an year. This is quite a gain for Netflix and it's a gain for research community as well. Yehuda's KDD paper got a best paper award and it is a very interesting paper. The use of temporal modeling for similar problems for web applications or predicting CTR for advertisements is not new. But, it is interesting to identify how closely we can model the intuition and mood to understand human behavior even from a sparse set of data.
This is a more than million dollar information. An open question could be however if the model necessarily need to be complex or if there is a simpler mathematics that can explain it.