A note on algorithms