Hacker News new | past | comments | ask | show | jobs | submit login

From a more algorithmic point of view, this is exactly the task of topological sorting [1].

And it runs linearly in the number of edges!

I expect Prolog to be slower for large and hard inputs. But Makefiles solve exactly that!

[1]: https://en.m.wikipedia.org/wiki/Topological_sorting




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: