資料結構/費式搜尋比較次數問題 - 考試
By Caroline
at 2013-01-10T21:12
at 2013-01-10T21:12
Table of Contents
假設今天有如下數列
1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16
如果用費式搜尋搜尋以下鍵值 2,10,15
各需要幾次比較次數呢~?
我的答案是
2:5次 15:4次 10:4次
因為跟書上的答案不一樣,算的不知道對不對
煩請各位版友指正
--
1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16
如果用費式搜尋搜尋以下鍵值 2,10,15
各需要幾次比較次數呢~?
我的答案是
2:5次 15:4次 10:4次
因為跟書上的答案不一樣,算的不知道對不對
煩請各位版友指正
--
Tags:
考試
All Comments
By Rae
at 2013-01-11T18:05
at 2013-01-11T18:05
By Oliver
at 2013-01-14T13:15
at 2013-01-14T13:15
By Olga
at 2013-01-15T03:08
at 2013-01-15T03:08
Related Posts
初等會計如何準備?
By Candice
at 2013-01-10T17:27
at 2013-01-10T17:27
機械-黃鈺材料力學
By Zenobia
at 2013-01-10T17:14
at 2013-01-10T17:14
金永勝老師公報教學?
By Necoo
at 2013-01-10T16:45
at 2013-01-10T16:45
財管上課的一些瓶頸……
By Hardy
at 2013-01-10T16:30
at 2013-01-10T16:30
司五師資
By David
at 2013-01-10T15:23
at 2013-01-10T15:23