10.09.2013 Views

1. Advanced Data Structure using C++

1. Advanced Data Structure using C++

1. Advanced Data Structure using C++

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

LECTURE NOTES OF ADVANCED DATA STRUCTURE (MT-CSE 110)<br />

BFS (Breadth first search)<br />

In graph theory, breadth‐first search (BFS) is a graph search<br />

algorithm that begins at the root node and explores all the neighboring<br />

nodes. Then for each of those nearest nodes, it explores their unexplored<br />

neighbor nodes, and so on, until it finds the goal.<br />

Breadth‐first search<br />

Order in which the nodes are expanded<br />

Working Of BFS:‐<br />

BFS is an uninformed search method that aims to expand and<br />

examine all nodes of a graph or combination of sequences by<br />

systematically searching through every solution. In other words, it<br />

exhaustively searches the entire graph or sequence without considering<br />

the goal until it finds it. It does not use a heuristic algorithm.<br />

Prepared By :­<br />

Er. Harvinder Singh<br />

Assist Prof., CSE, H.C.T.M (Kaithal) Page ‐ 88 ‐

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!