29 ms·
For me, what killed it was the fun of making a simple change to your program and due to a single character mistake insert a bug that turns its run time from O(n
by marcosdumay 9y ago
For me, what killed it was the fun of making a simple change to your program and due to a single character mistake insert a bug that turns its run time from O(n) to O(e^e^n).
Besides, deep first recursive searches are easy to write and almost never work well in practice, so even the problems that are greatly represented in Prolog either do not get efficient binaries from the existent Prolog compilers or are easy enough to write in another language that little is lost on the transition (often both).
That said, I do think search based programming is underrated. There ought to be some representation for theorem resolvers that is good for general purpose programming. It's just that nobody found it yet.
- tom_mellior 9y ago> There ought to be some representation for theorem resolvers that is good for general purpose programming. It's just that nobody found it yet. There are some nice examples of search-based programming in Z3 (using the Python API) in https://yurichev.com/writings/SAT_SMT_draft-EN.pdf https://yurichev.com/writings/SAT_SMT_draft-EN.pdf , if that is along the lines of what you meant.
- marcosdumay 9y agoThat's cool. Although the syntax is very specialized, I never though about approaching general purpose search from a SAT solver.