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

Name: Muskan Waheed.

ID:Bc200409334.
Assignment: No 1
Question no 1:
-:Solution:-

Sr Q- Visited list
No List
1 1 1
2 2,3 1,2,3
3 4,5,3 1,2,3,4,5
4 5,3 1,2,3,4,5
5 7,8,3 1,2,3,4,5,7
6 8,3 1,2,3,4,5,7

Q no 2:
-:Solution:-
Given data:-
Branching factor = 4
Depth = 12
Each node storage= 16 bytes
So, maximum number of nodes in the queue = 412 =16, 777,216.
Memory required=16×Maximum Number of nodes in the queue.
Memory required= 16 × 16,777,216 = 268,435,456=268Mb
= 268MB Answer.

You might also like