Design an algorithm for obtaining longest spanning trees.

Design an algorithm for obtaining longest spanning trees.

PROBLEM SET 23.3: