Infosistema interview question

Why did you use the algorithm X in instead of algorithm Y?