Question: You are given binary tree data structure ( binary tree means each tree node have at most 2 child branches ( left & right )

You are given binary tree data structure (binary tree means each tree node have at most 2 child branches (left & right), or it can have zero branches which means we are dealing with tree leaf).
Your goal is to find route to specific node.
1) If you know that your tree is potentially infinite - which type(-s) of search you can choose? Why?
a) Depth-First
b) Breadth-First

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!