3 ms·
In case anybody's wondering what Prolog is for. There you go.
by qsort 3y ago
In case anybody's wondering what Prolog is for. There you go.
- deleted 3y ago[deleted]
- daoudc 3y agoHa, well I used to teach Prolog and yes, you could solve it using Prolog but I think it would be horribly slow without Knuth's magic algorithm.
- qsort 3y agoI think in this specific case the size is small enough that you could handle it -- 9! ~= 360,000. But yeah, your point is well taken. On the logic programming side, ASP is probably a better fit.