912 views
1 votes
1 votes

How to solve these kind of questions?

1 Answer

0 votes
0 votes
By applying BFS algorithm

first we enter P in Queue and process it now we add neighbors of P that  are Q and R in any order, since all the options have Q as 2nd element first we enqueue Q then R

Queue have |R|Q|

now we process Q and add its neighbors

Queue have |T|R|

process R

queue have |S|M|T|

process T

Queue have |U|N|S|M|

now no new vertex will be added

so PQRTMSNU

Related questions

2 votes
2 votes
0 answers
1
gari asked Jan 11, 2018
633 views
what is the question asking exactly?
0 votes
0 votes
0 answers
3
Tuhin Dutta asked Dec 12, 2017
370 views
Starting vertex is : $V_1$Find the BFS traversal sequence
0 votes
0 votes
1 answer
4
Parshu gate asked Nov 5, 2017
443 views