Algorithm for Scientist