• <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 雪之精靈 閱讀(564) 評論(0)  編輯 收藏 引用 所屬分類: 算法

            久久99精品久久久久久久不卡| 一本色道久久综合狠狠躁篇| 精品九九久久国内精品| 久久国产乱子伦精品免费午夜| 精品久久久一二三区| 久久人人爽爽爽人久久久| AAA级久久久精品无码区| 亚洲精品乱码久久久久久自慰| 国产69精品久久久久99尤物| 欧美精品国产综合久久| 久久精品国产清自在天天线| 色欲av伊人久久大香线蕉影院| 精品久久人人做人人爽综合| 久久久精品国产sm调教网站 | 激情五月综合综合久久69| 久久久久久久97| 久久综合给合综合久久| 狠狠色丁香婷婷综合久久来 | 囯产精品久久久久久久久蜜桃| 精品久久久久中文字| 精品少妇人妻av无码久久| 99精品久久久久久久婷婷| 久久久久国产精品麻豆AR影院 | 伊人久久免费视频| 九九精品99久久久香蕉| 国产亚洲精品美女久久久| 亚洲va久久久噜噜噜久久男同| 伊人久久大香线蕉无码麻豆| 欧美久久天天综合香蕉伊| 久久精品国产黑森林| 久久久久人妻一区精品果冻| 久久人妻少妇嫩草AV蜜桃| 久久精品国产一区二区三区不卡| 一本色道久久88加勒比—综合| 国产亚洲精品美女久久久| 女人香蕉久久**毛片精品| 成人国内精品久久久久影院VR| 久久99精品久久久久久9蜜桃| 精品久久久久久无码中文字幕| 欧美激情精品久久久久久久| 亚洲国产成人久久一区久久|