Example to study algorithms.