What are the disadvantages of depth-first search algorithm?



What are the disadvantages of depth-first search algorithm?..

Answer / Gyanendra Prakash Chaudhary

Depth-First Search can take an excessive amount of memory in situations with many nodes connected by a small number of edges, as it explores deep into the graph before backtracking. It also doesn't guarantee finding the shortest path between two nodes.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More AI Algorithms Interview Questions

What is breath-first search algorithm?

1 Answers  


Can you pick an algorithm. Write the psuedo-code for a parallel implementation?

1 Answers  


Which algorithm in ‘unification and lifting’ takes two sentences and returns a unifier?

1 Answers  


What is the most efficient way to store 1 million phone numbers memory-wise?

1 Answers   Aspire, Infogain,


Explain the Canny's Algorithm.

1 Answers   Adobe,


What is bidirectional search algorithm?

1 Answers  


Give a general algorithm for converting a m-array tree to a 2-ary tree.

1 Answers   Tech Mahindra,


Define Routing Algorithm?

1 Answers   Maveric,


What is the depth-first search algorithm?

1 Answers  


1. Consider the following algorithm: for ( i = 1 ; i <= 1 . 5 n ; i++) cout << i ; for ( i = n ; i >= 1 ; i - - ) cout << i ; (a) What is the output when n = 2, n = 4, and n = 6? (b) What is the time complexity T(n)? You may assume that the input n is divisible by 2.

1 Answers  


What is the iterative deepening depth-first search algorithm?

1 Answers  


What is depth-first search algorithm?

1 Answers  


Categories
  • AI Algorithms Interview Questions AI Algorithms (74)
  • AI Natural Language Processing Interview Questions AI Natural Language Processing (96)
  • AI Knowledge Representation Reasoning Interview Questions AI Knowledge Representation Reasoning (12)
  • AI Robotics Interview Questions AI Robotics (183)
  • AI Computer Vision Interview Questions AI Computer Vision (13)
  • AI Neural Networks Interview Questions AI Neural Networks (66)
  • AI Fuzzy Logic Interview Questions AI Fuzzy Logic (31)
  • AI Games Interview Questions AI Games (8)
  • AI Languages Interview Questions AI Languages (141)
  • AI Tools Interview Questions AI Tools (11)
  • AI Machine Learning Interview Questions AI Machine Learning (659)
  • Data Science Interview Questions Data Science (671)
  • Data Mining Interview Questions Data Mining (120)
  • AI Deep Learning Interview Questions AI Deep Learning (111)
  • Generative AI Interview Questions Generative AI (153)
  • AI Frameworks Libraries Interview Questions AI Frameworks Libraries (197)
  • AI Ethics Safety Interview Questions AI Ethics Safety (100)
  • AI Applications Interview Questions AI Applications (427)
  • AI General Interview Questions AI General (197)
  • AI AllOther Interview Questions AI AllOther (6)