N queens 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 

Using Apache Camel from Groovy

2019-10-03 | #apache #camel #groovy

Apache Camel is an open source integration framework that empowers you to quickly and easily integrate various systems consuming or producing data. Apache Groovy is a Java-syntax-compatible object-orientedprogramming language for the Java platform.

Continue reading 