作者cmh317 (Rain Man)
看板EE_DSnP
标题[请益] uniquify
时间Sat Jan 2 20:35:25 2010
想请问一下
在BddMgr::uniquify() 前 老师所给的说明
// Check if triplet (l, r, i) is in _uniqueTable,
// If not, create a new node;
// else, return the hashed one
check应该是使用uniqueTable.check()吧
如果找不到 而我们create a new node後
这个new出来的node
是不是应该要先在uniquify()内insert到uniqueTable之中
然後再return回去呢?
因为找不到还有哪里可以使用uniqueTable.insert()......orz
谢谢!
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 140.112.4.186
※ 编辑: cmh317 来自: 140.112.4.186 (01/02 20:37)
1F:推 ric2k1:嗯, 在 uniquify() return 之前要将 new node insert到hash 01/02 21:38