[理工] 幾個資料結構小問題 DS

看板Grad-ProbAsk作者 (Mintur)時間12年前 (2014/01/24 22:28), 編輯推噓7(709)
留言16則, 7人參與, 最新討論串1/1
以下幾題可以看成是非題 1. In static hashing, when the value of loading density is equal to the value of the key density of the hashing table, then overflow will not occur. 我知道Identifier density和loading density的個別定義 還有Loading density越接近1表示越容易collision 但是和Identifier density有甚麼關係嗎? 2. Given a graph G, if there is a vertex v of G such that DFS(v) spanning tree is also the BFS(v) spanning tree of G, then G is also a tree structure. 3. The space complexity of a recursive search function for T is O(logn). 以上兩題不是很確定 還請板友指教 謝謝 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 61.227.154.182

01/24 22:34, , 1F
2.F 3.T
01/24 22:34, 1F

01/24 22:36, , 2F
3.F 費式數列就是O(n)。
01/24 22:36, 2F

01/24 22:42, , 3F
2.我覺得是 T 好像只能一條線,或是三個點的迴力標。
01/24 22:42, 3F

01/24 23:19, , 4F
F,T,F
01/24 23:19, 4F

01/24 23:22, , 5F
2.T
01/24 23:22, 5F

01/24 23:58, , 6F
感謝樓上各位!!!
01/24 23:58, 6F

01/25 16:38, , 7F
第2題是undirected還是directed?
01/25 16:38, 7F
※ 編輯: carefree1205 來自: 61.227.152.229 (01/25 20:48)

01/25 20:49, , 8F
上面已是完整題目了並沒有特別說@@
01/25 20:49, 8F

01/25 21:56, , 9F
directed 用 1->2->3->1 即非 tree
01/25 21:56, 9F

01/25 21:57, , 10F
undirected 用 三角形 也非 tree
01/25 21:57, 10F

01/25 22:00, , 11F

01/25 22:23, , 12F
對不起, 3我不確定Orz
01/25 22:23, 12F

01/25 22:59, , 13F
3 F吧
01/25 22:59, 13F

01/26 08:12, , 14F
三角形dfs bfs不一樣吧。
01/26 08:12, 14F

01/26 11:34, , 15F
對耶Orz undirected 除非 simple不燃應該是tree
01/26 11:34, 15F

01/26 11:34, , 16F
感謝
01/26 11:34, 16F
文章代碼(AID): #1IudXyZ3 (Grad-ProbAsk)