The question goes as follows:
After doing Kruskal for finding minimum spanning tree using the Union-find,
We are given an array of disjoint sets of 10 vertices.
Can you restore the MST's that Kruskal's found only using the given array:
Note: If the following example is unclear, It means the parent of node 1 is 7, etc..
If I reconstruct the given array it looks like this:
Note: I understand that with path compression it is impossible, But let's say that the Union-Find didn't use path compression, Is It still impossible?