I did TopSort algorithm base on decreasing in-degree of vertices. But my result for prereq.dat is (110 140 210 240 310 450 650) because 110 and 140 have 0 in-degree at the first time. so when I put all 0 in-degree into queue, and doing decreasing in-degree, it will take the first in for out process. I am confusing with the algorithm. Did I miss something
________________________________________
From:
cs31...@googlegroups.com [
cs31...@googlegroups.com] on behalf of Betty O'Neil [
eon...@cs.umb.edu]
Sent: Monday, April 30, 2012 12:57 PM
To: Vy Nguyen
Cc:
cs31...@googlegroups.comSubject: Re: What's the meaning of the third column in test.dat
That's for the weight (i.e. cost) of the edge.
On Sun, 29 Apr 2012, Vy Nguyen wrote:
>
> Hi professor,
> What's the meaning of the third column in test.dat?
> So A B
> means there's an edge from A to B, right? That's intuitive. I just don't understand why there's a need for a number next to [A B]Is that supposed to be the number of edges?
>
> Thank you,
> Vy
>