[理工] [計概]-中興97-網媒所

看板Grad-ProbAsk作者 (lovefo)時間16年前 (2010/02/22 08:50), 編輯推噓3(302)
留言5則, 3人參與, 最新討論串2/2 (看更多)
(1)Give a set of 1024 distinct key,what is the worst case number of comparisons required by the most efficient algorithn to search some specific key if these key are stored in a linked list with key sorted from the smallest to the largest? What id the worst case number of comparisons if we have three additional pointers pointing to the 256^th,the 512^th and the 768^th key? (2)A B-tree of order m is an m-way search tree that either is empty or satisfies the following three properties: (1)The root node has at least two children (2)All nodes other than the root node and external nodes have a property. What is the property? (3)All external nodes have a property.What is the property? 這兩題可以請大大幫我解一下嗎 我連題目都看不太懂 糟糕 -- 一切.... 似乎不再那麼重要.... -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 114.46.160.125

02/22 11:46, , 1F
2-2 degree介於m/2(取ceiling)到m之間
02/22 11:46, 1F

02/22 11:47, , 2F
2-3 所有外部節點皆位於同一level
02/22 11:47, 2F

03/08 16:37, , 3F
請問2-4和2-5後序及前序要如何計算呢? 2-4我算出30,不確定
03/08 16:37, 3F

03/08 16:38, , 4F
答案對不對?
03/08 16:38, 4F

03/11 01:42, , 5F
2-5不是算結果,是要你把後序變前序
03/11 01:42, 5F
文章代碼(AID): #1BWTJRw5 (Grad-ProbAsk)
文章代碼(AID): #1BWTJRw5 (Grad-ProbAsk)