algorithm prescription