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
763 views
1 answer
    i'm starting up learning prolog (i use SWI-prolog) and i did a simple exercise in which i have 2 lists and ... better ways to do it. Thanks See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
682 views
1 answer
    Here is the problem: $ swipl Welcome to SWI-Prolog (Multi-threaded, 64 bits, Version 7.3.6-5-g5aeabd5) ... have not managed to choke up length/2 before. Question&Answers:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
692 views
1 answer
    Pure Prolog programs that distinguish between the equality and inequality of terms in a clean manner suffer from execution ... open (at the end with []). Question&Answers:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
810 views
1 answer
    I'm trying to write a rule which decides whether an item X occurs exactly one in a list L. unique(X, [X|T]) ... beginner and I don't know what I am doing wrong. Question&Answers:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
698 views
1 answer
    Write a program that deletes vowels (String, NoVowelsString) that deletes all vowels from a given string. So far I' ... ]. Though I still haven't got anywhere. Question&Answers:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
897 views
1 answer
    In CLP(FD), we frequently need to state: "This is a list of integers and finite domain variables in ( ... respect to the usual binary CLP(FD) constraints. Question&Answers:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
836 views
1 answer
    Many predicates define some kind of an acyclic path built from edges defined via a binary relation, quite similarly to ... dif(E,X), non_member(E, Xs). Question&Answers:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
749 views
1 answer
    Many predicates essentially use some form of transitive closure, only to discover that termination has to be addressed too. Why not ... , a), dif(b, _G1921) ... Question&Answers:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
992 views
1 answer
    I'm having trouble with the following predicate: treeToList(void, []). treeToList(arbol(X, HI1, HD1) ... from:https://stackoverflow.com/questions/65844610/predicate-returning-false...
asked Oct 7, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
825 views
1 answer
    λProlog features hypothetical reasoning. By using the operator (=>)/2 we can temporarily assert some ... com/questions/65865359/%ce%bbprolog-hypothetical-reasoning-tic-tac-toe...
asked Oct 7, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
619 views
1 answer
    I want the program to represent that if person 1 uses one out of a particular list of substances ... does-this-give-a-nongroundprobabilisticclause-error-but-not-the-determinist...
asked Oct 7, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
792 views
1 answer
    I am having trouble trying to figure out in what order unification is done. I have the following query: [X, ... com/questions/65873598/order-of-unification-in-lists-when-using-pipe...
asked Oct 7, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
687 views
1 answer
    The source code of SWI-Prolog says that the unification deployed is based on some idea from Bart ... .com/questions/65884340/paterson-wegman-versus-wielemaker-demoen-unification...
asked Oct 7, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
743 views
1 answer
    This is a follow up to the question here about acyclic terms. I am now interested in cyclic ... stackoverflow.com/questions/65892060/non-linearity-of-wielemaker-demoen-unification...
asked Oct 7, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
702 views
1 answer
    Is there a way to manage Constraint stores in CHR ? What I have in mind ? Let say I do a query ... from:https://stackoverflow.com/questions/65908113/chr-managing-constraint-stores...
asked Oct 7, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
735 views
1 answer
    i have this exercise where i get a list of sublists like [[X1,Y1],[X2,Y2]...] which represent an interval ... -biggest-interval-in-a-list-of-sublists-these-sublists-have-2-elements...
asked Oct 7, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
779 views
1 answer
    link(entry, a). link(a, b). link(b, c). link(c, d). link(d, e). link(b, e). link(e, f). link(f, ... how-can-i-get-my-maze-program-to-create-and-print-two-route-lists-to-the-console...
asked Oct 7, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
999 views
1 answer
    I want to create a predicate over the alphabet {1,2,3}, f/4(N1,N2,N3,L), such that N1, N2 and N3 are a ... function-that-counts-the-number-1s-2s-and-3s-in-a-list-with-count-repr...
asked Oct 7, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
677 views
1 answer
    Consider the Prolog predicated p(integer),q(integer),r(integer) with the flow model (o) and the predicate ... stackoverflow.com/questions/65642875/cut-at-the-beginning-of-a-clause...
asked Oct 7, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
639 views
1 answer
    I'm doing a little training project in flex, a hospital booking system. I can't seem to get it to output the ... -flex-program-to-output-a-result-into-the-console-it-only-return...
asked Oct 7, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
760 views
1 answer
    I used some prolog codes for reading file numbers to list, reading is working, i cannot use list that ... ://stackoverflow.com/questions/65647331/some-problems-with-reading-file...
asked Oct 7, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
655 views
1 answer
    Trying to do sort of parsing with CHR (Constraint handling rules) I come up with this (still ... stackoverflow.com/questions/65647409/parsing-with-chr-constraint-handling-rules...
asked Oct 7, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
744 views
1 answer
    I'm a longtime python developer and recently have been introduced to Prolog. I love the concept of ... //stackoverflow.com/questions/1917607/relational-logic-programming-in-python...
asked Oct 6, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
600 views
1 answer
    Pure Prolog programs that distinguish between the equality and inequality of terms in a clean manner suffer ... .com/questions/13664870/reification-of-term-equality-inequality...
asked Oct 6, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
645 views
1 answer
    Pure Prolog programs that distinguish between the equality and inequality of terms in a clean manner suffer ... .com/questions/13664870/reification-of-term-equality-inequality...
asked Oct 6, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
667 views
1 answer
    I am using the following code to temporarily change the occurs check flag, where G is a goal that doesn' ... /66045332/how-to-safely-temporarily-change-the-occurs-check-flag...
asked Oct 6, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
664 views
1 answer
    I am using the following code to temporarily change the occurs check flag, where G is a goal that doesn' ... /66045332/how-to-safely-temporarily-change-the-occurs-check-flag...
asked Oct 6, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
706 views
1 answer
    I'm trying to convert DRS to different structure. Here is unfinished work in progress (still simple DRS): ... ://stackoverflow.com/questions/66058449/ape-converting-drs-to-struct...
asked Oct 6, 2021 in Technique[技术] by 深蓝 (71.8m points)
To see more, click for the full list of questions or popular tags.
Ask a question:
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...