Class MinimumSpanningTreeYao

  • All Implemented Interfaces:
    MinimumSpanningTree

    public class MinimumSpanningTreeYao
    extends MinimumSpanningTreeAbstract
    Yao's buckets minimum spanning tree algorithm.

    The algorithm runs in \(O(m \log \log n + n \log n)\) and uses linear space. Its running time in practice is not the best compared to MinimumSpanningTreeKruskal and MinimumSpanningTreePrim. Note that only undirected graphs are supported.

    Based on "An 0(|E|loglog|V|) algorithm for finding minimum spanning trees" by Andrew Chi-chih Yao (1976).

    Author:
    Barak Ugav