Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 3

Name Rukhsar

VU Code bc210426177
Course cs607p Assignment no 1

Solution No 1

Reason for using BFs


To find the shortest path or the nearest solution

Number of nodes in operations


The given tree contains 11 nodes
Level of tree
The tree has 3levels

Path of tree
The BFs traversal path with a height of 4 will be 1->2->7->8-
>3->9->6->4->12->15->10->11 (Targeted node)

Last node/ Targeted node


The targeted node is labeled as 11in the tree
Here is the structure

7
2

8 3
6 9

12 4 5 10

11
Solution NO 2

Undirect structure

5
1

3
7

You might also like