Reputation: 10946
I've got it all sorted out except for one specific confusion regarding:
if Allocationi != 0, then Finish[i] := false; otherwise, Finish[i] := true.
Does this mean the sum of that particular row is zero or what?
Algorithm:
Data Structures:
Algorithm:
Upvotes: 1
Views: 474
Reputation: 179552
Since Allocationi is a vector, "Allocationi != 0" means to test Allocationi against the zero vector (the vector consisting of all zeros).
In other words, "Allocationi == 0" iff every entry in the vector is 0.
Upvotes: 1