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