Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Written by Prashant Basnet
š Welcome, Youāve Landed on My Signature Page.
Iām a Software Development Engineer passionate about building scalable systems and solving problems.
Beyond engineering, I enjoy sharing ideas and documenting lessons so others can learn and build on them.This space is my digital notebook, a place where I reflect on what Iām learning and creating.
š§ Why Are You Learning This?
The minimum-weight arborescence (MWA) problem is a fundamental problem in graph theory with applications in:
It generalizes the minimum spanning tree (MST) problem for directed graphs, where we need a rooted tree that connects all nodes with minimum total weight.
What is Spanning Tree?
A spanning tree is a sub-graph of an undirected connected graph:
image source
2. Minimum Spanning Tree (MST)
A minimum spanning tree is a spanning tree where the sum of edge weights is the smallest possible.
Key Points:
Analogy of Minimum Spanning Tree (MST)
A minimum spanning tree is a way to connect all cities using the cheapest possible roads, with no loops (you donāt want redundant roads).
Key Properties of MST (Undirected Graphs)
ā Connects all cities (no isolated cities).
ā No cycles (no loops in the road network).
ā Minimum total cost (cheapest way to build roads).
š³ What is an Arborescence?
Why is this an Arborescence?
ā One root city (no incoming roads).
ā Every other city has exactly one incoming road (only one way to reach it).
ā No cycles (no loops in the road directions).
š Analogy
Imagine you're the president of a student organization (root), and everyone else in the club has exactly one person they report to (in a one-directional, non-looping way). The structure forms a directed tree. thatās an arborescence.
š From Arborescence to Minimum-Weight Arborescence
In real-world scenarios like
cost matters. So instead of any valid arborescence, we want the cheapest one.
The Minimum-Weight Arborescence does just that
Properties of Minimum Weight Arborescence:
An arborescence is like a tree in a directed graph. Specifically:
Finding the Minimum Weight Arborescence:
Key Differences from MST
š§® How Is It Found?
Full code is found here:
prashantbasnet94