cconfdel.pl

loading
details
attribute value
description
owner Akihisa Yamada
uploaded 2020-06-20 22:51:42.0
disk size 388 Bytes
downloadable true
type
attribute value
name no_type
processor id 1
description this is the default benchmark type for rejected benchmarks and benchmarks that are not associated with a type.
owning community none
loading contents
%query: conf(i).

/* variant of example from
 * Stefaan Decorte, Danny De Schreye, Henk Vandecasteele, 1997
 * using cons and nil instead of [_|_] and []
 */

conf(X) :- del2(X,Z), del(U,Y,Z), conf(Y).
del2(X,Y) :- del(U,X,Z), del(V,Z,Y).
del(X,cons(X,T),T).
del(X,cons(H,T),cons(H,T1)) :- del(X,T,T1).
    
s2l(s(X),cons(Y,Xs)):- s2l(X,Xs).
s2l(0, nil).

goal(X) :- s2l(X,XS), conf(XS).
popout

content may be truncated. 'popout' for larger text window.

actions get anonymous link download benchmark