In a network of LANs connected by bridges, packets are sent from one LAN
to another through intermediate bridges. Since more than one path may
exist between two LANs, packets may have to be routed through multiple
bridges.Why is the spanning tree algorithm used for bridge-routing?