BB&T Interview Question

What is the algorithm used for Spanning Tree Protocol?