Q.

Which search method takes less memory?

A. depth-first search
B. breadth-first search
C. linear search
D. optimal search
Answer» A. depth-first search
Explanation: depth-first search takes less memory since only the nodes on the current path are stored, but in breadth first search, all of the tree that has generated must be stored.
1.6k
0
Do you find this helpful?
8

Discussion

No comments yet