algorithm - iterative deepening depth first search higer time complexity than depth first search? -


It seems that dynamic search should have a higher asymmetric complexity compared to BFS, as the depth increases the number of times It should start searching for it from the beginning

But the wiki says, why?

If the tree is not balanced and the answer is closer to the root than the deep leaves, then the answer is deeply Will be obtained which is less than the maximum depth of the tree, whereas prior to the quest the depth of the tree can be found to the maximum depth before it gets the correct answer. Since the number of nodes in the tree can be almost faster with depth, it can be a good deal - with a maximum depth of 10, finding roughly 1024/2 = 512 nodes 1 + 2 + 4 + ... 256 = 511 nodes, therefore, is more extreme than pure profit - and this example completely searches for depths and up to 8 searches.

(And in some cases arbitrarily wrong answers can be large depth).

Comments

Popular posts from this blog

jasper reports - How to center align barcode using jasperreports and barcode4j -

Verilog Error: output or inout port "Q" must be connected to a structural net expression -

c# - ASP.NET MVC - Attaching an entity of type 'MODELNAME' failed because another entity of the same type already has the same primary key value -