-->
当前位置:首页 > 题库 > 正文内容

单选题:The array representation of the disjoint sets is given by S = {

Luz3年前 (2022-11-16)题库444
The array representation of the disjoint sets is given by S = { 4, 1, 1, -4, 9, 10, -1, 9, -5, 8 }. Keep in mind that the elements are numbered from 1 to 10. After invoking Union(Find(2), Find(10)) with union-by-size and path compression, which of the following statements is FALSE?



A.S[1] = 9
B.S[2] = 4
C.S[10] = 9
D.S[6] = 10


答案:A

发表评论

访客

◎欢迎参与讨论,请在这里发表您的看法和观点。