Doctor Planning resolved with #Prolog

2020-04-22 | #programming #prolog

Below my #prolog solution for “Doctor Planning” proposed by dmcommunity.org challenge April 2020 There should be more constraints like a limit of shifts a week for each doctor… In any case after few seconds I get the first result [[2,3,4],[2,3,4],[2,3,4],[2,3,4],[1,2,3],[1,2,4],[1,2,4]]

Continue reading 


My Networking Survival Kit

2020-03-15 | #Me

In this small tutorial I’ll speak about tunneling, ssh port forwarding, socks, pac files, Sshuttle I’ve been using Linux since 1995 but I have never been interested a lot in networking.

Continue reading 


N queens problem in Prolog

2020-01-10 | #Constraint programming #prolog

Below the N Queens problem solved in Prolog and Constraint Logic Programming over Finite Domains library :- use_module(library(clpfd)). n_queens(N, Queens) :- length(Queens, N), Queens ins 1..N, all_different(Queens), %% the queens must be in different columns different_diagonals(Queens).

Continue reading 