• <ins id="pjuwb"></ins>
    <blockquote id="pjuwb"><pre id="pjuwb"></pre></blockquote>
    <noscript id="pjuwb"></noscript>
          <sup id="pjuwb"><pre id="pjuwb"></pre></sup>
            <dd id="pjuwb"></dd>
            <abbr id="pjuwb"></abbr>

            雪之精靈

            從吐絲結繭到破繭而出

            DFS,BFS,DFS+ID

            In a Nutshell Search Time Space When to use
                DFS O(c k) O(k) Must search tree anyway, know the level the answers are on, or you aren't looking for the shallowest number.
                BFS O(c d ) O(c d ) Know answers are very near top of tree, or want shallowest answer.
                DFS+ID O(c d) O(d) Want to do BFS, don't have enough space, and can spare the time.
            d is the depth of the answer k is the depth searched d <= k Remember the ordering properties of each search. If the program needs to produce a list sorted shortest solution first (in terms of distance from the root node), use breadth first search or iterative deepening. For other orders, depth first search is the right strategy. If there isn't enough time to search the entire tree, use the algorithm that is more likely to find the answer. If the answer is expected to be in one of the rows of nodes closest to the root, use breadth first search or iterative deepening. Conversely, if the answer is expected to be in the leaves, use the simpler depth first search. Be sure to keep space constraints in mind. If memory is insufficient to maintain the queue for breadth first search but time is available, use iterative deepening.
                quote from http://ace.delos.com/usacotext2?a=y9SZdbB6WeB&S=rec

            posted on 2008-10-22 19:02 雪之精靈 閱讀(563) 評論(0)  編輯 收藏 引用 所屬分類: 算法

            久久精品国产清自在天天线| 久久综合香蕉国产蜜臀AV| 91精品久久久久久无码| 久久久精品日本一区二区三区 | 久久久久噜噜噜亚洲熟女综合| 久久91这里精品国产2020| 精品熟女少妇AV免费久久| 99久久综合狠狠综合久久| 亚洲国产精品久久电影欧美| 国产成人精品久久| 久久精品亚洲中文字幕无码麻豆| 99久久精品免费国产大片| 久久精品中文无码资源站| 少妇被又大又粗又爽毛片久久黑人| 久久久久久久99精品免费观看| 国产成人精品综合久久久| 久久精品国产亚洲Aⅴ蜜臀色欲| 亚洲狠狠婷婷综合久久久久| 欧美国产精品久久高清| 91精品免费久久久久久久久| 99久久免费国产精品热| 亚洲精品国产美女久久久| 精品国产乱码久久久久软件| 久久国产精品国语对白| 国产福利电影一区二区三区久久久久成人精品综合 | 一本大道加勒比久久综合| 精品久久久久久中文字幕人妻最新 | 久久久久亚洲av毛片大| 中文字幕亚洲综合久久2| 久久精品中文闷骚内射| 国产成人精品久久一区二区三区 | 精品久久久久久无码中文字幕| 国产一级持黄大片99久久| 国产精品久久久久9999| 91超碰碰碰碰久久久久久综合| 久久免费精品视频| 99久久www免费人成精品| 久久久99精品成人片中文字幕| 久久综合九色综合久99| 久久午夜免费视频| 久久亚洲精品国产精品|