Algorithm accepted