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;
}
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
add a comment |
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
add a comment |
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
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
algorithm breadth-first-search iterative-deepening
asked Feb 22 '15 at 0:52
AbhishekAbhishek
277
277
add a comment |
add a comment |
2 Answers
2
active
oldest
votes
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
add a comment |
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
add a comment |
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
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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
add a comment |
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
add a comment |
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
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
answered Feb 22 '15 at 1:48
user3690249user3690249
538
538
add a comment |
add a comment |
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
add a comment |
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
add a comment |
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
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
answered Nov 14 '17 at 23:26
Antonio Alecrim JrAntonio Alecrim Jr
5616
5616
add a comment |
add a comment |
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.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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