Breadth First Search (BFS) Tutorial - InterviewBit

Description

Detailed Tutorial on Breadth First Search (BFS), an algorithm for traversing or searching layerwise in tree or graph data structures. Check out our curated list of practice problems and interview questions to improve your understanding of the topic.
Sonia Mathias
Slide Set by Sonia Mathias, updated more than 1 year ago
Sonia Mathias
Created by Sonia Mathias over 4 years ago
2
0
1 2 3 4 5 (0)

Resource summary

Slide 1

    Breadth First Search (BFS) is a traversing algorithm where we start at the tree root (or any arbitrary node of a graph called ‘source node’), and investigate all of the neighboring nodes (directly connected to source node) at the present level before moving on to the nodes at the next level. The process is repeated until the desired result is obtained. Check out BFS example to get a better understanding on how this algorithm works.  
    Caption: : BFS Algorithm
Show full summary Hide full summary

0 comments

There are no comments, be the first and leave one below:

Similar

French -> small but important words for GCSE
georgie_hill
The Cold War Quiz
Niat Habtemariam
Edexcel Biology chapter 1
Anna Bowring
Input Devices
Jess Peason
An Inspector Calls: Eric Birling
Rattan Bhorjee
BELIEVING IN GOD- UNIT 1, SECTION 1- RELIGIOUS STUDIES GCSE EDEXCEL
Khadijah Mohammed
CHARACTERS IN OF MICE AND MEN
jessicasusanevans
Junior Cert Physics formulas
Sarah Egan
RadioTelefonia
Adriana Forero
Specific Topic 7.2 Timber
T Andrews