Consider the program:
:- table cost(+, min).
cost(1, 0).
cost(1, 1).
cost(2, 1).
I expected that result to cost(I, C).
would be I = 1, C = 0; I = 2, C = 1 - all possible input arguments with corresponding minimum results.
But I get only one:
cost(I, C).
I = 1
C = 0 ?;
no
But if I explicitly point to all possibilities for the input argument, I get what I want:
( I = 1 ; I = 2 ), cost(I, C).
I = 1
C = 0 ?;
I = 2
C = 1 ?;
no
Is it possible to get all combinations of input arguments with corresponding minimum results without explicitly enumerating all possible inputs?