多項(xiàng)選擇題
A.先序遍歷B.中序遍歷C.后序遍歷D.以上三種都可以
單項(xiàng)選擇題
A.先序遍歷B.中序遍歷C.后序遍歷D.層次遍歷
某圖的鄰接表存儲(chǔ)結(jié)構(gòu)如下圖所示,則從6號(hào)點(diǎn)出發(fā),深度優(yōu)先遍歷的序列是()
A.6-5-2-1-4-3B.6-5-1-2-4-3C.6-5-1-4-3-2D.6-5-2-1-3-4
A.(1,2,3,4,5,6,7)B.(4,3,1,7,6,5,2)C.(4,2,1,9,6,7,5)D.(5,2,1,8,6,7,4)
A.{15,21,25,84,47}B.{25,47,84,15,21}C.{21,47,25,15,84}D.{25,15,21,47,84}
A.(2,5,12,16)28(60,32,72)B.(5,16,2,12)28(60,32,72)C.(2,16,12,5)28(60,32,72)D.(5,16,2,12)28(32,60,72)
A.平均查找長(zhǎng)度B.比較次數(shù)C.WPLD.ASL
A.504B.508C.516D.528
A.p=NULLB.p->next=NULLC.p->next=PD.p->next!=NULL
A.L->nextB.(L->next)->dataC.L->data
A.順序存儲(chǔ)B.非順序存儲(chǔ)C.圖結(jié)構(gòu)D.樹結(jié)構(gòu)