25-08-2017, 09:32 PM
1454652129-ADSLABMANUAL.docx (Size: 366.33 KB / Downloads: 5)
AIM:
To wrie a program in Java to implement the breadth first search algorithms.
ALGORITHM:
STEP 1: Start the program execution.
STEP 2: Get the input values of the graph nodes as A,B,C,D,E.
STEP 3: Implement graph search using breadth first search.
STEP 4: The nodes of the graph are visited breadth wise.
STEP 5: The nodes that were visited are displayed after the search.
STEP 6: Stop the execution of the program.