Thursday, January 24, 2013

Loop identification - XI

This task never seems to end. Another change in the loop find code.

I was trying out a method where I try to turn at every node in branch_map. However, one major flaw was that the starting point of a loop is the first non-null element in a row in branch_map. Even this will have to be changed to every non-null element in every row in branch_map. So the old code was:

The new code is:

So essentially a for loop has been placed that iterates through the entire starting row.

No comments:

Post a Comment