permutation.pl

loading
details
attribute value
description
owner Johannes Waldmann
uploaded 2017-08-17 03:45:07.0
disk size 297 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: perm(i,o).

% mode: app1[o,o,i]
app1([X0|X],Y,[X0|Z]) :- app1(X,Y,Z).
app1([],Y,Y).

% mode: app2[i,i,o]
app2([X0|X],Y,[X0|Z]) :- app2(X,Y,Z).
app2([],Y,Y).

% mode: perm[i,o]
perm(X,[X0|Y]) :- app1(X1,[X0|X2],X),
                  app2(X1,X2,Z),
                  perm(Z,Y).
perm([],[]).
popout

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

actions get anonymous link download benchmark