Min-Heap Operations for Rope Connection

This visualization demonstrates how to use a min-heap to solve the rope connection problem. The goal is to connect ropes with minimum cost, where the cost of connecting two ropes is the sum of their lengths.

Step 1: Initial heap [2, 3, 4, 6]
Total Cost: 0