Visits and Algorithm