classified the algorithms