denis alfa algorithm