In these notes we’ll see how Prolog can be used to solve various combinatorial problems. ?- solve_triple1(A, B, C). A = 3, B = 4, C = 5 ; A = 4, B = 3, C = 5 ; A = 6, B = 8, C = 10 ; A = 8, B = 6, C = ...
In recent columns, I’ve praised the low-level pleasures of assembly language and C. My argument is that, even if you never use these languages professionally, it’s important to broaden your mind and ...