Mutual information based algorithm