Pregunta de entrevista de BB&T

What is the algorithm used for Spanning Tree Protocol?