对于n个元素的关键码序列{k1,k2,…,Kn},当且仅当满足下列关系时称其为堆。 以下关键码序列中,()不是堆。
A.12, 25, 22, 53, 65, 60, 30 B.12, 25, 22, 30, 65,60, 53 C.65, 60,25, 22, 12, 53, 30 D.65,60, 25, 30, 53, 12,22正确答案C
对于n个元素的关键码序列{k1,k2,…,Kn},当且仅当满足下列关系时称其为堆。 以下关键码序列中,()不是堆。
A.12, 25, 22, 53, 65, 60, 30 B.12, 25, 22, 30, 65,60, 53 C.65, 60,25, 22, 12, 53, 30 D.65,60, 25, 30, 53, 12,22正确答案C