I want to create in Prolog to find longest increasing subset of entered list. For example, you enter list of [3,1,2] and the output is [1,2],
?- subset([3,1,2],
Just out of curiosity, would it be possible in prolog to realize something like this for finding longest increasing subsequence:
If it's possible, how could I do that in Prolog?