Research Article

Design and Analysis of Hospital Throughput Maximization Algorithm under COVID-19 Pandemic

Algorithm 2

Modified BFS algorithm.
1:  procedure ModifiedBFS
2:   
3:   
4:   //tree from the specified root vertex
5:   
6:   
7:   
8:   
9:   while not
10:     
11:     if
12:       
13:     end if
14:     for each
15:       if
16:         
17:         
18:         
19:         
20:       end if
21:     end for
22:     
23:   end while
24:   return