看板 Grad-ProbAsk 關於我們 聯絡資訊
(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
lightergogo:2-2 degree介於m/2(取ceiling)到m之間 02/22 11:46
lightergogo:2-3 所有外部節點皆位於同一level 02/22 11:47
syuyun:請問2-4和2-5後序及前序要如何計算呢? 2-4我算出30,不確定 03/08 16:37
syuyun:答案對不對? 03/08 16:38
kennykobe:2-5不是算結果,是要你把後序變前序 03/11 01:42