learning algorithm in topic