Vidyalelo
Data Structure · Q456

Miscellaneous on Data Structures

Programming · Data Structure · question 456

Q456

Given below is the pseudocode of the flooding algorithm. Node and message are denoted by n and m respectively. Which of the following best suits the blank? if m.id was seen before, discard else, add m.id to list of seen messages and ______

A.
discard the message
B.
forward the message in the direction from where it came.
C.
forward the message to all neighbors of n
Answer
D.
forward the message to the left neighbor of n

Answer: Option C

Solution

Answer: Option C
No explanation is given for this question Let's Discuss on Board