Pregunta de entrevista de rebuy

how do you decide which algorithm to use?