作者ric2k1 (Ric)
看板EE_DSnP
標題Re: [問題] 有點好奇
時間Mon May 25 15:35:26 2009
※ 引述《BBCallR (小白)》之銘言:
: 為什麼要特地分pilist跟polist?
通常 poList 可以讓你從它開始 recursively 做 DFS traversal.
而 piList is necessary for simulation functions (or something like that).
: 那這樣所有的gate是不是都要有個list?(e.g. andlist)
: 還是其他的gate都放在一個totallist裡?
This depends on your application. You can also choose NOT to store the
totalList ==> every time you need to go through all the gates, just call
the DFS traversal.
It's rare to store each type of gates in an individual list because we
rarely need to go through the gates of the same types. Anyway, if you think
it is needed, please go ahead.
: 要是都叫一個list出來存那data member不是多爆嗎?
Yes, so maybe just have the piList, poList, and totalList...
: 請教授解惑
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 140.112.21.241