devquora

Posted On: Feb 22, 2018

Breath-First search involves traversing a binary search tree one level at a time. Starting with the root node, proceeding through neighboring nodes moving towards the next level of nodes. As this process can be performed utilizing FIFO (First in First Out) data structure. This strategy gives the shortest path to the solution. BFS assigns two values to each node: distance and predecessor.

- A distance is calculated by giving the minimum number of edges in any path from the source node to node “v”.
- The predecessor node of “v” along with some shortest path from the source node. The source node's predecessor is some special value, such as null, indicating that it has no predecessor.

If there is no path from the source node to node “v”, then v's distance is infinite, and it is assumed that predecessor has the same special value as the source's predecessor.

Never Miss an Articles from us.

- Common Interview Questions
- Python Flask Interview Questions
- NoSQL interview questions
- JQuery Interview Questions
- C programming interview questions
- AngularJS Interview Questions
- Node JS Interview Questions with Express
- JavaScript Interview Questions
- Core Java interview questions
- HTML Interview Questions
- Laravel Interview Questions
- Wordpress Interview Questions
- PHP Interview Questions

Basically, machine learning is pattern recognition. Like Youtube’s video recommendations, Facebook’s News Feeds, etc...

Observe and learn from the set of instances and then draw conclusion..

Classification is used when the output variable is a category such as “red” or “blue”, “spam” or “not spam”...