Journal of algorithms