单选题:The array representation of the disjoint sets is given by { 4, 1
The array representation of the disjoint sets is given by { 4, 1, 2, -5, 1, -3, 9, -1, 6 }. Keep in mind that the elements are numbered from 1 to 9. After invoking Union(Find(3), Find(7)) with union-by-size, which elements will be changed in the resulting array? @[B](2)
A. elements of index 3 and 7
B. elements of index 4 and 6
C. elements of index 2 and 9
D. elements of index 4 and 8
A.elements of index 3 and 7
B.elements of index 4 and 6
C.elements of index 2 and 9
D.elements of index 4 and 8
答案:B
A. elements of index 3 and 7
B. elements of index 4 and 6
C. elements of index 2 and 9
D. elements of index 4 and 8
A.elements of index 3 and 7
B.elements of index 4 and 6
C.elements of index 2 and 9
D.elements of index 4 and 8
答案:B