The previous algorithm was attempting to make a deterministic sort, which is not applicable here because there is no notion of strict ordering. The new algorithm works in a way similar to a search of dependency.
The previous algorithm was attempting to make a deterministic sort, which is not applicable here because there is no notion of strict ordering. The new algorithm works in a way similar to a search of dependency.