Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

Recent questions tagged prolog

0 votes
421 views
1 answer
    Look at the following goals (I am using swi-prolog with clpfd from Markus Triska): result(Input,Result) ... consider an order within predicates? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
437 views
1 answer
    different(Xs, Ys) :- member(X, Xs), non_member(X, Ys). different(Xs, Ys) :- member(Y, Ys), non_member(Y ... for both is fine (maybe even finer). See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
359 views
1 answer
    (Let me sneak that in within the wave of midterm questions.) A common definition for the sum of two natural ... award a 200 bounty on this) See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
735 views
1 answer
    Trying to write a procedure that given a value and a list, it deletes all the occurence of that value in the list ... Y). but it does not work. See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
481 views
1 answer
    I was wondering if anyone could help me with this problem: I have to order a list using Prolog with ... any of the constraints? Thanks! See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
454 views
1 answer
    Given the following facts in a database: foo(a, 3). foo(b, 2). foo(c, 4). foo(d, 3). foo(e, 2). foo(f, 6). foo ... As). Min = 2, As = [b, e, h]. See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
489 views
1 answer
    is it possible to get all elements from list of lists in Prolog? Something like: We have getElements([[[a,b,[c]],d ... i,j] ... Thanks for help. See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
788 views
1 answer
    List is the list of values in leaf nodes of a binary tree and I am trying to figure out how to output just that. ... [d, e,g] Is it possible. See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
700 views
1 answer
    What is the best way to convert binary bits (it might be a list of 0/1, for example) into numbers in ... is there better solution ? Best regards See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
Ask a question:
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...