[理工] 103 清大 計科

作者: wei12f8158 (WEI)   2018-12-10 16:01:24
https://i.imgur.com/ln5CFsl.jpg
想問這兩題的解法:
第5題,因為題目說keep news records into the system,所以我的想法是用Heap操作用
Extract min 的方式排序,這樣想法ok嗎?
第6題,題目有提到Distance-based,感覺應該要用Dijkstra ??
謝謝
作者: eggy1018 (羅密歐與豬過夜)   2018-12-10 16:21:00
6. 有for customers to check, 應該是要search 再加上distance based的話,我會選擇B-Tree

Links booklink

Contact Us: admin [ a t ] ucptt.com