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

            国内精品久久久久久久久 | 亚洲国产精品无码久久九九| 久久国产成人午夜AV影院| 久久99精品九九九久久婷婷| 性做久久久久久久| 久久九九免费高清视频| 久久久噜噜噜久久中文福利| 久久AⅤ人妻少妇嫩草影院| 97精品依人久久久大香线蕉97| 久久精品国产99国产精品澳门| 亚洲Av无码国产情品久久| 久久99国产精品一区二区| 97精品伊人久久久大香线蕉| 久久精品国产精品亚洲人人 | 伊人久久综合精品无码AV专区| 久久99久久99小草精品免视看| 亚洲午夜久久久| 国产伊人久久| 欧美一区二区精品久久| 久久偷看各类wc女厕嘘嘘| 久久久亚洲裙底偷窥综合| 久久性精品| 久久久久亚洲av成人无码电影 | 人妻无码αv中文字幕久久琪琪布| 狠狠色综合网站久久久久久久 | 久久久久久青草大香综合精品| 精品无码久久久久久午夜| 久久精品国产男包| 99久久精品免费看国产一区二区三区| 久久久久久青草大香综合精品| 99久久综合国产精品二区| 久久精品9988| 国产精品日韩欧美久久综合| 久久精品国产亚洲av瑜伽| 久久久久综合中文字幕| 久久天天躁狠狠躁夜夜不卡| 久久久99精品一区二区| 蜜桃麻豆www久久国产精品| 欧美激情精品久久久久久久九九九| 久久久无码精品午夜| 偷偷做久久久久网站|