What is the total number of nodes generated by Iterative Deepening depth first search and Breadth First...





.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ height:90px;width:728px;box-sizing:border-box;
}







0















What is the total number of nodes generated by Iterative Deepening depth first search and Breadth First search in terms of branching factor "b" and depth of shallowest goal "d"










share|improve this question





























    0















    What is the total number of nodes generated by Iterative Deepening depth first search and Breadth First search in terms of branching factor "b" and depth of shallowest goal "d"










    share|improve this question

























      0












      0








      0


      1






      What is the total number of nodes generated by Iterative Deepening depth first search and Breadth First search in terms of branching factor "b" and depth of shallowest goal "d"










      share|improve this question














      What is the total number of nodes generated by Iterative Deepening depth first search and Breadth First search in terms of branching factor "b" and depth of shallowest goal "d"







      algorithm breadth-first-search iterative-deepening






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Feb 22 '15 at 0:52









      AbhishekAbhishek

      277




      277
























          2 Answers
          2






          active

          oldest

          votes


















          1














          Here i found this on this website, it might help what you are looking for, the number really depends on the values for d and b :



          https://mhesham.wordpress.com/tag/depth-first-search/



          Iterative Deepening DFS worst case # of nodes:



          N(IDS) = (b)d + (d – 1)b2 + (d – 2)b3 + …. + (2)bd-1 + (1)bd = O(bd)



          BFS worst case # of nodes generated:



          N(BFS) = b + b2 + b3 + b4 + …. bd + (bd + 1 – b) = O(bd + 1)



          Example using real numbers:



          branching factor = 10 and depth of shallowest goal = 5



          N(IDS) = 50 + 400 + 3000 + 20000 + 100000 = 123450



          N(BFS) = 10 + 100 + 1000 + 10000 + 100000 + 999990 = 1111100






          share|improve this answer































            0














            As seen on Wikipedia:



            "In an iterative deepening search, the nodes at depth d are expanded once, those at depth d-1 are expanded twice, and so on up to the root of the search tree, which is expanded d+1 times.[5] So the total number of expansions in an iterative deepening search is
            IDS number of expansions



            Example:
            For b=10 and d=5
            example
            "



            Reference:
            https://en.wikipedia.org/wiki/Iterative_deepening_depth-first_search#Proof






            share|improve this answer
























              Your Answer






              StackExchange.ifUsing("editor", function () {
              StackExchange.using("externalEditor", function () {
              StackExchange.using("snippets", function () {
              StackExchange.snippets.init();
              });
              });
              }, "code-snippets");

              StackExchange.ready(function() {
              var channelOptions = {
              tags: "".split(" "),
              id: "1"
              };
              initTagRenderer("".split(" "), "".split(" "), channelOptions);

              StackExchange.using("externalEditor", function() {
              // Have to fire editor after snippets, if snippets enabled
              if (StackExchange.settings.snippets.snippetsEnabled) {
              StackExchange.using("snippets", function() {
              createEditor();
              });
              }
              else {
              createEditor();
              }
              });

              function createEditor() {
              StackExchange.prepareEditor({
              heartbeatType: 'answer',
              autoActivateHeartbeat: false,
              convertImagesToLinks: true,
              noModals: true,
              showLowRepImageUploadWarning: true,
              reputationToPostImages: 10,
              bindNavPrevention: true,
              postfix: "",
              imageUploader: {
              brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
              contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
              allowUrls: true
              },
              onDemand: true,
              discardSelector: ".discard-answer"
              ,immediatelyShowMarkdownHelp:true
              });


              }
              });














              draft saved

              draft discarded


















              StackExchange.ready(
              function () {
              StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f28653257%2fwhat-is-the-total-number-of-nodes-generated-by-iterative-deepening-depth-first-s%23new-answer', 'question_page');
              }
              );

              Post as a guest















              Required, but never shown

























              2 Answers
              2






              active

              oldest

              votes








              2 Answers
              2






              active

              oldest

              votes









              active

              oldest

              votes






              active

              oldest

              votes









              1














              Here i found this on this website, it might help what you are looking for, the number really depends on the values for d and b :



              https://mhesham.wordpress.com/tag/depth-first-search/



              Iterative Deepening DFS worst case # of nodes:



              N(IDS) = (b)d + (d – 1)b2 + (d – 2)b3 + …. + (2)bd-1 + (1)bd = O(bd)



              BFS worst case # of nodes generated:



              N(BFS) = b + b2 + b3 + b4 + …. bd + (bd + 1 – b) = O(bd + 1)



              Example using real numbers:



              branching factor = 10 and depth of shallowest goal = 5



              N(IDS) = 50 + 400 + 3000 + 20000 + 100000 = 123450



              N(BFS) = 10 + 100 + 1000 + 10000 + 100000 + 999990 = 1111100






              share|improve this answer




























                1














                Here i found this on this website, it might help what you are looking for, the number really depends on the values for d and b :



                https://mhesham.wordpress.com/tag/depth-first-search/



                Iterative Deepening DFS worst case # of nodes:



                N(IDS) = (b)d + (d – 1)b2 + (d – 2)b3 + …. + (2)bd-1 + (1)bd = O(bd)



                BFS worst case # of nodes generated:



                N(BFS) = b + b2 + b3 + b4 + …. bd + (bd + 1 – b) = O(bd + 1)



                Example using real numbers:



                branching factor = 10 and depth of shallowest goal = 5



                N(IDS) = 50 + 400 + 3000 + 20000 + 100000 = 123450



                N(BFS) = 10 + 100 + 1000 + 10000 + 100000 + 999990 = 1111100






                share|improve this answer


























                  1












                  1








                  1







                  Here i found this on this website, it might help what you are looking for, the number really depends on the values for d and b :



                  https://mhesham.wordpress.com/tag/depth-first-search/



                  Iterative Deepening DFS worst case # of nodes:



                  N(IDS) = (b)d + (d – 1)b2 + (d – 2)b3 + …. + (2)bd-1 + (1)bd = O(bd)



                  BFS worst case # of nodes generated:



                  N(BFS) = b + b2 + b3 + b4 + …. bd + (bd + 1 – b) = O(bd + 1)



                  Example using real numbers:



                  branching factor = 10 and depth of shallowest goal = 5



                  N(IDS) = 50 + 400 + 3000 + 20000 + 100000 = 123450



                  N(BFS) = 10 + 100 + 1000 + 10000 + 100000 + 999990 = 1111100






                  share|improve this answer













                  Here i found this on this website, it might help what you are looking for, the number really depends on the values for d and b :



                  https://mhesham.wordpress.com/tag/depth-first-search/



                  Iterative Deepening DFS worst case # of nodes:



                  N(IDS) = (b)d + (d – 1)b2 + (d – 2)b3 + …. + (2)bd-1 + (1)bd = O(bd)



                  BFS worst case # of nodes generated:



                  N(BFS) = b + b2 + b3 + b4 + …. bd + (bd + 1 – b) = O(bd + 1)



                  Example using real numbers:



                  branching factor = 10 and depth of shallowest goal = 5



                  N(IDS) = 50 + 400 + 3000 + 20000 + 100000 = 123450



                  N(BFS) = 10 + 100 + 1000 + 10000 + 100000 + 999990 = 1111100







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Feb 22 '15 at 1:48









                  user3690249user3690249

                  538




                  538

























                      0














                      As seen on Wikipedia:



                      "In an iterative deepening search, the nodes at depth d are expanded once, those at depth d-1 are expanded twice, and so on up to the root of the search tree, which is expanded d+1 times.[5] So the total number of expansions in an iterative deepening search is
                      IDS number of expansions



                      Example:
                      For b=10 and d=5
                      example
                      "



                      Reference:
                      https://en.wikipedia.org/wiki/Iterative_deepening_depth-first_search#Proof






                      share|improve this answer




























                        0














                        As seen on Wikipedia:



                        "In an iterative deepening search, the nodes at depth d are expanded once, those at depth d-1 are expanded twice, and so on up to the root of the search tree, which is expanded d+1 times.[5] So the total number of expansions in an iterative deepening search is
                        IDS number of expansions



                        Example:
                        For b=10 and d=5
                        example
                        "



                        Reference:
                        https://en.wikipedia.org/wiki/Iterative_deepening_depth-first_search#Proof






                        share|improve this answer


























                          0












                          0








                          0







                          As seen on Wikipedia:



                          "In an iterative deepening search, the nodes at depth d are expanded once, those at depth d-1 are expanded twice, and so on up to the root of the search tree, which is expanded d+1 times.[5] So the total number of expansions in an iterative deepening search is
                          IDS number of expansions



                          Example:
                          For b=10 and d=5
                          example
                          "



                          Reference:
                          https://en.wikipedia.org/wiki/Iterative_deepening_depth-first_search#Proof






                          share|improve this answer













                          As seen on Wikipedia:



                          "In an iterative deepening search, the nodes at depth d are expanded once, those at depth d-1 are expanded twice, and so on up to the root of the search tree, which is expanded d+1 times.[5] So the total number of expansions in an iterative deepening search is
                          IDS number of expansions



                          Example:
                          For b=10 and d=5
                          example
                          "



                          Reference:
                          https://en.wikipedia.org/wiki/Iterative_deepening_depth-first_search#Proof







                          share|improve this answer












                          share|improve this answer



                          share|improve this answer










                          answered Nov 14 '17 at 23:26









                          Antonio Alecrim JrAntonio Alecrim Jr

                          5616




                          5616






























                              draft saved

                              draft discarded




















































                              Thanks for contributing an answer to Stack Overflow!


                              • Please be sure to answer the question. Provide details and share your research!

                              But avoid



                              • Asking for help, clarification, or responding to other answers.

                              • Making statements based on opinion; back them up with references or personal experience.


                              To learn more, see our tips on writing great answers.




                              draft saved


                              draft discarded














                              StackExchange.ready(
                              function () {
                              StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f28653257%2fwhat-is-the-total-number-of-nodes-generated-by-iterative-deepening-depth-first-s%23new-answer', 'question_page');
                              }
                              );

                              Post as a guest















                              Required, but never shown





















































                              Required, but never shown














                              Required, but never shown












                              Required, but never shown







                              Required, but never shown

































                              Required, but never shown














                              Required, but never shown












                              Required, but never shown







                              Required, but never shown







                              Popular posts from this blog

                              Bressuire

                              Vorschmack

                              Quarantine