Question: visited [ 1 - - n ] = 0 ; finished [ 1 - n ] = 0 ; out 1 - - n ;
visited ; finished ; out ; stage ;
for to
for to
if
out out ;
for to
if out then @
visited i;for to
if
out out;
for to
if
if visited
if finished
end; cycle;
else go
stage stage
finished
this pseudo code for the topological sort algorithm i need to compute it as a simple C code using the exact functions in the code above And i need the explanation of it line by line please i need a full code that works
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
