illustrate algorithm