Unlocking Near-Constant Time: Union-Find with Path Compression and Union by Rank | SWE180 Engineering Articles | SWE180