You are on page 1of 3

Question 1-d

Nodes: 5,6,7,9,12,17,24,30 All of them have no output, delete them and add them to the list

List=5,6,7,9,12,17,24,30
Nodes: 8,11,13,16,18,22,23,29 All of them have no output, delete them and add them to the list
List=5,6,7,9,12,17,24,30,8,11,13,16,18,2
2,23,29

Nodes: 10,15,19,21,25,28 All of them have no output, delete them and add them to the list

List=5,6,7,9,12,17,24,30,8,11,13,16,18,22,23,29,10,15,19,21,25,28

Node: 19 Has no output, delete it and add it to the list

List=5,6,7,9,12,17,24,30,8,11,13,16,18,22,23,29,10,15,19,21,25,28,14

Lastly, Node: 20 Has no output, delete it and add it to the list

List=5,6,7,9,12,17,24,30, 8,11,13,16,18,22,23,29,10,15,19,21,25,28,14,20

No nodes Algorithm finished

You might also like