chunk_id
large_stringlengths
9
11
question_id
large_stringlengths
6
8
language
large_stringclasses
1 value
chunk_index
int64
0
4
chunk_text
large_stringlengths
115
2.62k
sparse_text
large_stringlengths
111
4.37k
dense_vector
listlengths
3.58k
3.58k
sparse_indices
listlengths
9
217
sparse_values
listlengths
9
217
export_source
large_stringclasses
1 value
46864214_c0
46864214
prolog
0
Title: Find the minimum number on a tuples list Problem title: Find the minimum number on a tuples list Tags: prolog, list Problem: Find the minimum number on a tuples list I have a list that is composed by tuples, being the first element of the tuple a list and the second element a number: ([List],Number)|T] How can i...
Find the minimum number on a tuples list Find the minimum number on a tuples list prolog list Find List Number Dist DistMenor Path Cost Find the minimum number on a tuples list I have a list that is composed by tuples, being the first element of the tuple a list and the second element a number: How can i find the minim...
[ 0.01300048828125, 0.0091552734375, 0.0211181640625, 0.0194091796875, -0.00299072265625, -0.004791259765625, -0.00494384765625, -0.0108642578125, 0.0032958984375, -0.035400390625, 0.004058837890625, -0.01177978515625, -0.00860595703125, 0.0162353515625, -0.006561279296875, 0.02429199218...
[ 26040, 70, 15440, 14012, 98, 10, 370, 99726, 5303, 502, 4867, 32036, 103332, 6206, 18, 29638, 748, 108421, 63099, 150350, 8035, 5117, 12830, 8705, 17932, 11249, 831, 17, 7413, 34292, 1295, 903, 4488, 5701, 90791, 23, 101935, 37842, 4420, ...
[ 0.123291015625, 0.1131591796875, 0.267578125, 0.196533203125, 0.07440185546875, 0.008636474609375, 0.1483154296875, 0.235595703125, 0.185546875, 0.114990234375, 0.18115234375, 0.1552734375, 0.1473388671875, 0.0711669921875, 0.03753662109375, 0.1136474609375, 0.07373046875, 0.121704...
embed
26583575_c0
26583575
prolog
0
Title: How prolog work as intellegent language? Problem title: How prolog work as intellegent language? Tags: machine-learning, artificial-intelligence, nlp, prolog Problem: How prolog work as intellegent language? I have written set of rules in prolog, if rule matches particular action occurs. something like: rule_sec...
How prolog work as intellegent language? How prolog work as intellegent language? machine-learning artificial-intelligence nlp prolog How rule_second_question LINK_BASE is_verb_form aggregate_all Count SUBJECT nb_linkval How prolog work as intellegent language? I have written set of rules in prolog, if rule matches par...
[ 0.01544189453125, -0.01165771484375, -0.005462646484375, 0.037109375, 0.003265380859375, 0.025634765625, -0.006866455078125, 0.017822265625, 0.007415771484375, -0.0634765625, 0.0034637451171875, -0.010009765625, -0.00958251953125, -0.016357421875, 0.01239013671875, -0.00099945068359375...
[ 11249, 502, 4867, 4488, 237, 231402, 660, 46876, 36279, 152538, 66733, 130687, 26775, 79986, 191633, 7162, 1363, 96787, 571, 76783, 83, 81465, 5037, 197564, 13, 5584, 108210, 111231, 1375, 275, 10187, 1405, 59121, 5423, 91736, 23, 2174, 14858...
[ 0.085205078125, 0.205078125, 0.309814453125, 0.16357421875, 0.09759521484375, 0.202880859375, 0.1539306640625, 0.2144775390625, 0.020050048828125, 0.10986328125, 0.075927734375, 0.0767822265625, 0.1138916015625, 0.1849365234375, 0.2059326171875, 0.1611328125, 0.08544921875, 0.18054...
embed
4392825_c0
4392825
prolog
0
Title: Prolog Code Example: Unification Problem title: Prolog Code Example: Unification Tags: unification, stack, prolog Problem: Prolog Code Example: Unification From an old final for my class: Here is some prolog code: mystery(1, 1). mystery(N, F) :- N1 is N-1, mystery(N1,F1), F is F1*N. Question 1: What value is uni...
Prolog Code Example: Unification Prolog Code Example: Unification unification stack prolog Prolog Example Unification N-1 Prolog Code Example: Unification From an old final for my class: Here is some prolog code: Question 1: What value is unified with P in Question 2: If a semicolon is pressed after Prolog produces and...
[ 0.0223388671875, 0.01165771484375, 0.0201416015625, 0.01251220703125, -0.00150299072265625, 0.003631591796875, -0.007049560546875, -0.000926971435546875, 0.01177978515625, -0.034912109375, -0.00116729736328125, -0.006744384765625, 0.031494140625, -0.01458740234375, 0.03564453125, 0.012...
[ 1250, 4867, 28864, 89536, 8705, 992, 41274, 51, 177261, 502, 541, 5759, 2704, 18507, 18151, 68185, 34292, 47314, 678, 436, 15573, 40, 46029, 4759, 30501, 7103, 27489, 35166, 236209, 29481, 155605, 13416, 12501, 14255, 1052, 13538, 111, 4000, ...
[ 0.1763916015625, 0.2471923828125, 0.18017578125, 0.1439208984375, 0.0078125, 0.1561279296875, 0.146240234375, 0.150634765625, 0.2049560546875, 0.145751953125, 0.013275146484375, 0.09942626953125, 0.1185302734375, 0.09149169921875, 0.1690673828125, 0.152099609375, 0.16064453125, 0.1...
embed
44443958_c0
44443958
prolog
0
Title: Prolog routing between 2 points and making a list of it Problem title: Prolog routing between 2 points and making a list of it Tags: prolog, point, routes, list Problem: Prolog routing between 2 points and making a list of it I need a method that returns all the roads* used in a route between two points, here's ...
Prolog routing between 2 points and making a list of it Prolog routing between 2 points and making a list of it prolog point routes list Prolog Prolog routing between 2 points and making a list of it I need a method that returns all the roads* used in a route between two points, here's the map I have: Example, to point...
[ 0.01416015625, 0.00177001953125, 0.02099609375, 0.013671875, -0.00872802734375, 0.0084228515625, -0.0296630859375, 0.00830078125, 0.007476806640625, -0.0634765625, -0.0047607421875, -0.0274658203125, -0.0208740234375, 0.01300048828125, -0.0146484375, 0.0118408203125, 0.00799560546875...
[ 1250, 4867, 22629, 1916, 17721, 116, 26847, 20662, 10, 5303, 111, 442, 502, 6275, 36439, 3871, 55300, 30646, 7, 756, 70, 33816, 11814, 23, 6626, 22288, 89536, 62, 47, 241, 1884, 44402, 16188, 21771, 36997, 68067, 14012, 3688, 18151, 2060 ...
[ 0.1663818359375, 0.26123046875, 0.15771484375, 0.0927734375, 0.1468505859375, 0.1163330078125, 0.1600341796875, 0.04876708984375, 0.0130615234375, 0.18505859375, 0.0611572265625, 0.042205810546875, 0.143798828125, 0.1517333984375, 0.1856689453125, 0.084716796875, 0.1317138671875, 0...
embed
26820054_c0
26820054
prolog
0
Title: Prolog find all subsets matching condition Problem title: Prolog find all subsets matching condition Tags: prolog Problem: Prolog find all subsets matching condition I'm trying to solve a problem in SWI-Prolog. I have a list of suitable elements (constants) obtained with. suitables(L) :- setof(X, isSuitable(X), ...
Prolog find all subsets matching condition Prolog find all subsets matching condition prolog Prolog Tot Rest Prolog find all subsets matching condition I'm trying to solve a problem in SWI-Prolog. I have a list of suitable elements (constants) obtained with. Each element from above has a score via a functor, and I need...
[ -0.00738525390625, 0.00433349609375, 0.0162353515625, -0.0002956390380859375, -0.025634765625, -0.000701904296875, -0.00115203857421875, 0.00131988525390625, 0.00156402587890625, -0.028076171875, 0.0235595703125, 0.0224609375, -0.0079345703125, -0.0115966796875, 0.003997802734375, 0.01...
[ 1250, 4867, 7413, 756, 1614, 3509, 14858, 214, 35431, 7, 502, 13715, 49756, 86869, 2967, 159, 38969, 10752, 5303, 202319, 80854, 42539, 113054, 678, 98423, 12830, 36917, 47763, 7477, 18770, 3871, 977, 4068, 3642, 2046, 10554, 36510, 70, 355...
[ 0.138671875, 0.1944580078125, 0.09405517578125, 0.1514892578125, 0.21484375, 0.23193359375, 0.2073974609375, 0.1131591796875, 0.199951171875, 0.0279693603515625, 0.1123046875, 0.1141357421875, 0.1427001953125, 0.050994873046875, 0.0574951171875, 0.022674560546875, 0.1688232421875, ...
embed
5958496_c0
5958496
prolog
0
Title: Counting in a Prolog List Problem title: Counting in a Prolog List Tags: prolog Problem: Counting in a Prolog List I'm trying to make a prolog function (I know it's not a function but I can't recall it's name) that given a list and a number N returns a list with the elements that repeat at least N times. xpto(['...
Counting in a Prolog List Counting in a Prolog List prolog Counting Prolog List Num Counting in a Prolog List I'm trying to make a prolog function (I know it's not a function but I can't recall it's name) that given a list and a number N returns a list with the elements that repeat at least N times. xpto(['a', 'a', 'a'...
[ 0.0106201171875, -0.01031494140625, 0.0081787109375, -0.007171630859375, 0.004730224609375, 0.010009765625, -0.00848388671875, -0.00823974609375, 0.0068359375, -0.036865234375, -0.01708984375, -0.0269775390625, 0.00274658203125, 0.0023040771484375, 0.007049560546875, -0.000617980957031...
[ 1311, 128396, 23, 10, 1250, 4867, 32036, 502, 52782, 31577, 32354, 34475, 5303, 14012, 541, 30646, 80854, 119140, 19713, 20028, 1022, 40934, 13538, 8439, 4958, 82424, 7440, 54529, 284, 339, 62, 7, 22027, 18, 4488, 9077, 234873, 43240, 15122...
[ 0.1417236328125, 0.1614990234375, 0.0540771484375, 0.0286407470703125, 0.1822509765625, 0.2393798828125, 0.2037353515625, 0.1463623046875, 0.1981201171875, 0.040283203125, 0.12890625, 0.03826904296875, 0.1546630859375, 0.10400390625, 0.101806640625, 0.1375732421875, 0.1298828125, 0...
embed
11750637_c0
11750637
prolog
0
Title: Why my predicate in Prolog Fib/2 always says "out of local stack"? Problem title: Why my predicate in Prolog Fib/2 always says "out of local stack"? Tags: prolog, stack, failure-slice, fibonacci Problem: Why my predicate in Prolog Fib/2 always says "out of local stack"? I wrote a predicate fi...
Why my predicate in Prolog Fib/2 always says "out of local stack"? Why my predicate in Prolog Fib/2 always says "out of local stack"? prolog stack failure-slice fibonacci Why Prolog Fib ERROR Out fib2 Why my predicate in Prolog Fib/2 always says "out of local stack"? I wrote a predicate fib/2 to cal...
[ 0.029296875, -0.00653076171875, -0.00836181640625, 0.009765625, -0.0103759765625, 0.010009765625, -0.006500244140625, 0.003570556640625, 0.0294189453125, -0.051025390625, 0.02294921875, -0.00775146484375, 0.00714111328125, 0.00021076202392578125, 0.04736328125, 0.0019378662109375, 0....
[ 44084, 759, 1653, 2063, 67, 1250, 4867, 3698, 275, 12477, 11343, 17378, 6056, 111, 4000, 177261, 41502, 502, 137578, 13348, 809, 20990, 52544, 151206, 24638, 13538, 304, 23, 54397, 74481, 101935, 43240, 18499, 33342, 35064, 93002, 15400, 3002...
[ 0.091064453125, 0.032318115234375, 0.150634765625, 0.2041015625, 0.1085205078125, 0.140869140625, 0.2169189453125, 0.13916015625, 0.141357421875, 0.165283203125, 0.10235595703125, 0.0833740234375, 0.1998291015625, 0.209716796875, 0.161865234375, 0.19921875, 0.0277862548828125, 0.08...
embed
47703388_c1
47703388
prolog
1
(T,Rest,Rem). pp([H|T],pp(prep(H),Parse),Rem):- /* PP NP */ prep(H), np(T,Parse,Rem). vp([H| []], vp(verb(H))):- /* Verb */ verb(H). vp([H|T], vp(verb(H), Rem)):- /* VP PP */ vp(H, Rem), pp(T, Rem, _). vp([H|T], vp(verb(H), Rem)):- /* Verb NP */ verb(H), np(T, Rem, _). I then want to get the output from this with somet...
(T,Rest,Rem). pp([H|T],pp(prep(H),Parse),Rem):- /* PP NP */ prep(H), np(T,Parse,Rem). vp([H| []], vp(verb(H))):- /* Verb */ verb(H). vp([H|T], vp(verb(H), Rem)):- /* VP PP */ vp(H, Rem), pp(T, Rem, _). vp([H|T], vp(verb(H), Rem)):- /* Verb NP */ verb(H), np(T, Rem, _). I then want to get the output from this with somet...
[ -0.006103515625, 0.00579833984375, -0.000919342041015625, 0.0020904541015625, -0.006805419921875, 0.0269775390625, 0.00885009765625, -0.00439453125, 0.01123046875, -0.03173828125, 0.01611328125, -0.004302978515625, -0.0201416015625, -0.01116943359375, -0.00921630859375, 0.0103759765625...
[ 618, 1052, 525, 4332, 39, 32261, 841, 58745, 6366, 4692, 254, 28636, 184, 1639, 12211, 28814, 64503, 25037, 81, 81465, 1446, 42792, 38645, 41195, 275, 3444, 2046, 140992, 1295, 903, 1884, 149357, 11, 104643, 1410, 1619, 30885, 25003, 669, ...
[ 0.087646484375, 0.11083984375, 0.168701171875, 0.08966064453125, 0.1148681640625, 0.11328125, 0.084228515625, 0.024383544921875, 0.113037109375, 0.085205078125, 0.0587158203125, 0.092041015625, 0.1180419921875, 0.001129150390625, 0.1243896484375, 0.0950927734375, 0.118408203125, 0....
embed
41413674_c1
41413674
prolog
1
?- triangle1(A, B, C), member(A, [bug, grass, rock]), member(B, [bug, rock, grass]), member(C, [bug, rock, grass]). A = bug, B = grass, C = rock ; A = grass, B = rock, C = bug ; A = rock, B = bug, C = grass ; false. That query should only return one set of [A, B, C] . I've thought about using sort/2 , but there are ca...
?- triangle1(A, B, C), member(A, [bug, grass, rock]), member(B, [bug, rock, grass]), member(C, [bug, rock, grass]). A = bug, B = grass, C = rock ; A = grass, B = rock, C = bug ; A = rock, B = bug, C = grass ; false. That query should only return one set of [A, B, C] . I've thought about using sort/2 , but there are ca...
[ 0.0260009765625, -0.00408935546875, 0.0303955078125, 0.0004291534423828125, -0.01263427734375, -0.0159912109375, -0.01470947265625, -0.005706787109375, 0.0225830078125, -0.018798828125, 0.003662109375, 0.029541015625, 0.01385498046875, -0.0098876953125, -0.001495361328125, -0.009338378...
[ 705, 9, 1927, 109217, 418, 284, 335, 313, 32786, 85779, 27689, 7, 13950, 571, 441, 62, 2203, 54608, 98320, 41, 1294, 4734, 30646, 1632, 5423, 111, 17569, 12096, 12477, 50218, 42856, 214, 65572, 91084, 35166, 241, 563, 1328, 39, 27417, 3...
[ 0.1466064453125, 0.1116943359375, 0.253173828125, 0.2587890625, 0.12890625, 0.08258056640625, 0.1412353515625, 0.1334228515625, 0.18798828125, 0.1376953125, 0.15625, 0.02508544921875, 0.1339111328125, 0.050445556640625, 0.066162109375, 0.05352783203125, 0.046966552734375, 0.1333007...
embed
65020504_c0
65020504
prolog
0
Title: nesting depth of a term Problem title: nesting depth of a term Tags: prolog Problem: nesting depth of a term I'm trying to write a predicate to find the depth of nesting in a prolog term. for example : for an atom or variable the depth is zero. for f(a,b,1,2) the depth is 1. for f(a,b(7,a),1,2) the depth is 2, e...
nesting depth of a term nesting depth of a term prolog get_depth Term non_compound all_basic Depth nesting depth of a term I'm trying to write a predicate to find the depth of nesting in a prolog term. for example : for an atom or variable the depth is zero. for f(a,b,1,2) the depth is 1. for f(a,b(7,a),1,2) the depth ...
[ 0.007171630859375, 0.02587890625, 0.006744384765625, 0.00946044921875, 0.006866455078125, 0.0093994140625, 0.0020599365234375, 0.00125885009765625, -0.0017852783203125, -0.02880859375, 0.03271484375, -0.0126953125, -0.00933837890625, 0.0240478515625, 0.0208740234375, 0.002655029296875,...
[ 4909, 1916, 168867, 111, 10, 13579, 502, 4867, 2046, 2994, 351, 771, 7030, 756, 402, 27744, 262, 254, 927, 31577, 33022, 1653, 2063, 67, 7413, 70, 23, 100, 34627, 707, 77336, 83, 45234, 1238, 11, 275, 133063, 615, 966, 116, 2060 ]
[ 0.167724609375, 0.170166015625, 0.2425537109375, 0.09454345703125, 0.0200958251953125, 0.2281494140625, 0.1591796875, 0.213623046875, 0.0797119140625, 0.1092529296875, 0.0889892578125, 0.0160369873046875, 0.03082275390625, 0.045745849609375, 0.059295654296875, 0.0665283203125, 0.1221...
embed
71761208_c0
71761208
prolog
0
Title: Prolog can't figure out how to append Problem title: Prolog can't figure out how to append Tags: prolog Problem: Prolog can't figure out how to append I have a simple problem, and I know why what I'm doing is wrong, I just dont know how to do what I want. I want to be able to find the max of list X and...
Prolog can't figure out how to append Prolog can't figure out how to append prolog Prolog Prolog can't figure out how to append I have a simple problem, and I know why what I'm doing is wrong, I just dont know how to do what I want. I want to be able to find the max of list X and then append it to the result ...
[ 0.01275634765625, 0.0201416015625, 0.0208740234375, -0.01287841796875, -0.00823974609375, 0.020263671875, 0.003662109375, 0.0011138916015625, 0.01483154296875, -0.016357421875, 0.0068359375, -0.01416015625, -0.015380859375, -0.005950927734375, 0.021728515625, -0.0177001953125, -0.014...
[ 1250, 4867, 3768, 26366, 1810, 3642, 114689, 71, 502, 831, 18, 47, 8781, 2967, 3714, 15400, 20594, 44691, 13319, 54, 3444, 19048, 7413, 18389, 111, 5303, 1193, 16750, 195625, 191975, 12096, 24189, 122799, 11522, 214, 234873, 9790, 4488, 116...
[ 0.1729736328125, 0.2342529296875, 0.042236328125, 0.1390380859375, 0.038421630859375, 0.0821533203125, 0.1966552734375, 0.1510009765625, 0.1478271484375, 0.02496337890625, 0.0178375244140625, 0.00970458984375, 0.0689697265625, 0.09368896484375, 0.07000732421875, 0.019744873046875, 0....
embed
49745481_c0
49745481
prolog
0
Title: Replacing substrings in Prolog Problem title: Replacing substrings in Prolog Tags: prolog, replace Problem: Replacing substrings in Prolog In order to replace a substring in a string, I wrote a predicate called replace_substring . It uses SWI-Prolog's append/3 predicate: :- initialization(main). :- set_prolog_fl...
Replacing substrings in Prolog Replacing substrings in Prolog prolog replace Replacing Prolog replace_substring set_prolog_flag double_quotes Result To_Replace Replace_With First Replacing substrings in Prolog In order to replace a substring in a string, I wrote a predicate called replace_substring . It uses SWI-Prolog...
[ -0.009033203125, 0.00054931640625, 0.0101318359375, 0.0169677734375, -0.0081787109375, 0.00408935546875, -0.0026092529296875, 0.007171630859375, 0.0042724609375, -0.0186767578125, 0.010986328125, 0.007568359375, -0.031494140625, -0.015625, 0.0133056640625, -0.001220703125, 0.02893066...
[ 853, 133266, 1614, 91693, 7, 1250, 4867, 502, 91995, 196842, 2852, 5423, 3454, 190872, 41929, 68726, 126684, 717, 4332, 23935, 194583, 23972, 79315, 54397, 1653, 2063, 4527, 38969, 10752, 114689, 71, 18113, 67, 2684, 93766, 3917, 23, 88303, ...
[ 0.03057861328125, 0.1240234375, 0.1982421875, 0.2393798828125, 0.039276123046875, 0.1488037109375, 0.225341796875, 0.09906005859375, 0.173583984375, 0.1370849609375, 0.1590576171875, 0.10699462890625, 0.08026123046875, 0.156005859375, 0.0567626953125, 0.1300048828125, 0.0968017578125...
embed
46553327_c0
46553327
prolog
0
Title: Out of local stack Problem title: Out of local stack Tags: prolog Problem: Out of local stack So i have these facts: border(germany, france). border(france, spain). border(spain, portugal). And a few other borders that can get me from portugal to russia (theres too many facts to post here, but it is in fact poss...
Out of local stack Out of local stack prolog Out Num Num1 ERROR Out of local stack So i have these facts: And a few other borders that can get me from portugal to russia (theres too many facts to post here, but it is in fact possible to go from portugal to russia). And i made this predicate that tells you the number of...
[ 0.0262451171875, 0.01470947265625, -0.00170135498046875, 0.01611328125, -0.006256103515625, -0.006927490234375, -0.03369140625, -0.0011444091796875, 0.00653076171875, -0.051513671875, 0.017333984375, -0.0244140625, 0.01214599609375, -0.00946044921875, 0.027587890625, -0.01470947265625,...
[ 13538, 111, 4000, 177261, 502, 4867, 52782, 418, 151206, 24638, 765, 6097, 15824, 10, 10846, 3789, 132988, 7, 831, 2046, 163, 1295, 172103, 47, 7793, 3478, 5792, 7722, 738, 7228, 903, 1653, 2063, 67, 14192, 14012, 76726, 41421, 297, 436, ...
[ 0.2127685546875, 0.258056640625, 0.2099609375, 0.25927734375, 0.1776123046875, 0.203125, 0.199462890625, 0.1153564453125, 0.1666259765625, 0.06878662109375, 0.04833984375, 0.007110595703125, 0.121826171875, 0.02435302734375, 0.02374267578125, 0.014007568359375, 0.2109375, 0.0877075...
embed
30949621_c0
30949621
prolog
0
Title: How to print all the facts? Problem title: How to print all the facts? Tags: fact, list, printing, prolog Problem: How to print all the facts? I am stuck for this problem... isAt(keys, room3). isAt(book, room3). isAt(keys, room6). isAt(keys, room4). currently, room3 have keys and book. I want to print keys and b...
How to print all the facts? How to print all the facts? fact list printing prolog How room3 room6 room4 Location You items_inroom Item Available None How to print all the facts? I am stuck for this problem... currently, room3 have keys and book. I want to print keys and book. I tried this code and apparently prints onl...
[ 0.0030670166015625, -0.0106201171875, 0.0047607421875, -0.00034332275390625, -0.0022430419921875, 0.007659912109375, 0.006561279296875, -0.01513671875, -0.005767822265625, -0.0106201171875, 0.018310546875, -0.0103759765625, 0.001983642578125, -0.0093994140625, -0.005645751953125, 0.002...
[ 11249, 47, 28412, 756, 70, 15824, 7, 5303, 2448, 1916, 502, 4867, 17155, 363, 910, 617, 90788, 2583, 55769, 73, 28905, 78426, 238204, 438, 179933, 2967, 82424, 22799, 136, 12877, 3444, 37842, 18151, 4734, 1632, 31577, 6097, 51515, 4358 ]
[ 0.1099853515625, 0.0888671875, 0.2412109375, 0.1640625, 0.12060546875, 0.2283935546875, 0.1650390625, 0.166748046875, 0.1529541015625, 0.0232696533203125, 0.07489013671875, 0.132080078125, 0.1756591796875, 0.1436767578125, 0.0712890625, 0.1026611328125, 0.140380859375, 0.0049743652...
embed
8439890_c2
8439890
prolog
2
0, 2, [clue(2, 2, 2)], 3, 3, [feld(3, 1), feld(2, 1), feld(1, 1)], [link(2, 1, 3, 1), link(1, 1, 2, 1), _G1012]) ? creep Exit: (10) stepfromclue(3, 2, 1, 1, 0, 2, [clue(2, 2, 2)], 3, 3, [feld(2, 1), feld(1, 1)], [link(1, 1, 2, 1), _G1012]) ? creep Exit: (9) checkclue(3, 2, 1, 1, 0, [clue(2, 1, 2), clue(2, 2, 2)], 3, 3,...
0, 2, [clue(2, 2, 2)], 3, 3, [feld(3, 1), feld(2, 1), feld(1, 1)], [link(2, 1, 3, 1), link(1, 1, 2, 1), _G1012]) ? creep Exit: (10) stepfromclue(3, 2, 1, 1, 0, 2, [clue(2, 2, 2)], 3, 3, [feld(2, 1), feld(1, 1)], [link(1, 1, 2, 1), _G1012]) ? creep Exit: (9) checkclue(3, 2, 1, 1, 0, [clue(2, 1, 2), clue(2, 2, 2)], 3, 3,...
[ 0.0206298828125, 0.0007781982421875, -0.003143310546875, 0.0322265625, -0.0036468505859375, 0.022705078125, -0.0042724609375, -0.0167236328125, 0.0179443359375, -0.00543212890625, -0.010009765625, 0.0250244140625, -0.006866455078125, 0.019287109375, -0.004608154296875, -0.0005874633789...
[ 757, 4, 116, 29786, 13, 54753, 4958, 138, 22341, 86827, 6, 10187, 3126, 106, 724, 35046, 705, 49512, 254, 5443, 217, 12, 17857, 29954, 161063, 11438, 12765, 10021, 86869, 963, 4235, 1197, 8696, 104192, 4034, 69236, 6791, 108421, 90173, 60...
[ 0.1688232421875, 0.022308349609375, 0.193603515625, 0.209228515625, 0.13427734375, 0.0694580078125, 0.02880859375, 0.1932373046875, 0.2237548828125, 0.134033203125, 0.000152587890625, 0.1483154296875, 0.1629638671875, 0.008026123046875, 0.053070068359375, 0.129150390625, 0.0317382812...
embed
39845312_c0
39845312
prolog
0
Title: Prolog equivalence operator Problem title: Prolog equivalence operator Tags: prolog Problem: Prolog equivalence operator I am implementing Checkers in SWI-Prolog, and created a predicate that checks if a given move is legal: check_piece_move(white, X/Y, NewX/NewY) :- AcceptedX1 is X+1, AcceptedX2 is X-1, % white...
Prolog equivalence operator Prolog equivalence operator prolog Prolog check_piece_move NewX NewY AcceptedX1 AcceptedX2 X-1 AcceptedY Prolog equivalence operator I am implementing Checkers in SWI-Prolog, and created a predicate that checks if a given move is legal: This predicate works well if I suffice all the variable...
[ 0.004150390625, -0.0030975341796875, 0.0157470703125, 0.0240478515625, -0.01544189453125, 0.0218505859375, 0.007659912109375, 0.01470947265625, 0.018798828125, 0.01031494140625, -0.00089263916015625, 0.025146484375, 0.0311279296875, -0.0225830078125, 0.00095367431640625, -0.00020503997...
[ 1250, 4867, 224743, 39933, 3956, 502, 12765, 152667, 432, 272, 2356, 1542, 1723, 111383, 297, 418, 304, 1193, 5759, 29479, 38679, 1314, 159, 38969, 10752, 75935, 1653, 2063, 67, 2174, 34475, 25813, 83, 8437, 43240, 5299, 133784, 756, 77336,...
[ 0.1795654296875, 0.244873046875, 0.193115234375, 0.2218017578125, 0.03961181640625, 0.1331787109375, 0.195556640625, 0.1590576171875, 0.1063232421875, 0.068115234375, 0.1434326171875, 0.15966796875, 0.152099609375, 0.156005859375, 0.0308837890625, 0.050384521484375, 0.094482421875, ...
embed
6215905_c0
6215905
prolog
0
Title: Getting vertical lists of lists of lists in prolog? Problem title: Getting vertical lists of lists of lists in prolog? Tags: list, prolog Problem: Getting vertical lists of lists of lists in prolog? a List of Lists like Lists=[ [1,2,3], [4,5,6], [7,8,3] ] and i want to get in this case all vertical lists like [1...
Getting vertical lists of lists of lists in prolog? Getting vertical lists of lists of lists in prolog? list prolog Getting el_at EList Llist ListVertikal NewListVertikal Getting vertical lists of lists of lists in prolog? a List of Lists like and i want to get in this case all vertical lists like how to do that? i tho...
[ 0.02490234375, -0.01373291015625, -0.004852294921875, 0.00058746337890625, -0.0235595703125, 0.007537841796875, -0.005523681640625, 0.01348876953125, 0.000820159912109375, -0.0263671875, 0.025146484375, 0.01513671875, 0.006805419921875, 0.0306396484375, -0.0169677734375, 0.006713867187...
[ 210732, 79259, 5303, 7, 111, 502, 4867, 23, 88, 257, 9780, 1419, 6562, 32036, 15896, 118, 2595, 2356, 154663, 1884, 2046, 756, 54, 116, 105416, 131519, 4488, 25842, 2472, 47, 119140, 12765, 164, 3509, 108368, 5423, 910, 83, 959 ]
[ 0.08203125, 0.288330078125, 0.2275390625, 0.06024169921875, 0.04931640625, 0.137451171875, 0.2119140625, 0.0236358642578125, 0.0474853515625, 0.04962158203125, 0.005096435546875, 0.0517578125, 0.117919921875, 0.199462890625, 0.0750732421875, 0.053466796875, 0.032989501953125, 0.006...
embed
39771970_c0
39771970
prolog
0
Title: Compilation error when mixing CLP(FD) and if-then-else construct Problem title: Compilation error when mixing CLP(FD) and if-then-else construct Tags: clpfd, prolog, swi-prolog Problem: Compilation error when mixing CLP(FD) and if-then-else construct I do not understand why the following code does not compile; i...
Compilation error when mixing CLP(FD) and if-then-else construct Compilation error when mixing CLP(FD) and if-then-else construct clpfd prolog swi-prolog Compilation CLP put_attr Uninstantiated use_module Compilation error when mixing CLP(FD) and if-then-else construct I do not understand why the following code does no...
[ -0.00135040283203125, 0.0101318359375, -0.000060558319091796875, 0.002899169921875, 0.01507568359375, 0.004547119140625, -0.00021076202392578125, 0.0147705078125, 0.0016021728515625, -0.031494140625, -0.01904296875, -0.0050048828125, 0.00958251953125, 0.025146484375, 0.0234375, 0.00364...
[ 15612, 14, 57860, 18499, 17664, 313, 37352, 98553, 2174, 92733, 5557, 64549, 214, 33139, 39557, 71, 502, 4867, 2452, 3454, 3884, 27639, 42, 143034, 4527, 83279, 28219, 25632, 18151, 14602, 959, 9969, 1340, 27489, 18113, 992, 10750, 84751, 1...
[ 0.13134765625, 0.1236572265625, 0.0513916015625, 0.173095703125, 0.1917724609375, 0.033721923828125, 0.23046875, 0.1572265625, 0.1453857421875, 0.135498046875, 0.15087890625, 0.157958984375, 0.019866943359375, 0.009307861328125, 0.010772705078125, 0.047119140625, 0.052703857421875, ...
embed
2974067_c0
2974067
prolog
0
Title: How to solve this logical description with Prolog? Problem title: How to solve this logical description with Prolog? Tags: prolog, logic-programming, linear-programming Problem: How to solve this logical description with Prolog? That's my first question so please be tolerant. I've logical problem to write in pro...
How to solve this logical description with Prolog? How to solve this logical description with Prolog? prolog logic-programming linear-programming How Prolog How to solve this logical description with Prolog? That's my first question so please be tolerant. I've logical problem to write in prolog/CLP: I solve problem on ...
[ 0.006805419921875, 0.0191650390625, 0.0029449462890625, 0.010498046875, -0.01068115234375, 0.0172119140625, 0.00531005859375, 0.009521484375, -0.0033721923828125, -0.028564453125, -0.01104736328125, 0.007476806640625, -0.01416015625, 0.0233154296875, 0.015869140625, 0.03125, 0.027954...
[ 11249, 47, 86869, 903, 62775, 289, 76811, 678, 1250, 4867, 502, 28966, 192617, 22936, 149104, 2967, 33022, 23, 37352, 15122, 29806, 8414, 4347, 14192, 85027, 3642, 442, 51139, 21373, 158839, 125253, 341, 57912, 209683, 28219, 3714, 27781, 435...
[ 0.1068115234375, 0.0330810546875, 0.19775390625, 0.111572265625, 0.1993408203125, 0.14697265625, 0.2322998046875, 0.1195068359375, 0.190185546875, 0.275634765625, 0.154296875, 0.109619140625, 0.1265869140625, 0.000640869140625, 0.0791015625, 0.136474609375, 0.1829833984375, 0.10711...
embed
4428311_c0
4428311
prolog
0
Title: Einstein's riddle Problem title: Einstein's riddle Tags: prolog, zebra-puzzle Problem: Einstein's riddle I am new to Prolog and I'm trying to model a riddle like the Einstein riddle, also known as the Zebra riddle, (but with 10 houses and 30 hints) in Prolog and I'm using this model example as a starti...
Einstein's riddle Einstein's riddle prolog zebra-puzzle Einstein Einstein's riddle I am new to Prolog and I'm trying to model a riddle like the Einstein riddle, also known as the Zebra riddle, (but with 10 houses and 30 hints) in Prolog and I'm using this model example as a starting point: http://www.baptiste...
[ 0.004913330078125, -0.004730224609375, 0.004974365234375, 0.0162353515625, -0.01116943359375, 0.0162353515625, -0.0103759765625, 0.01202392578125, 0.00750732421875, -0.035888671875, 0.007293701171875, -0.000896453857421875, -0.00830078125, -0.000530242919921875, -0.002716064453125, 0.0...
[ 119225, 54764, 3768, 74, 7, 31351, 19298, 502, 4867, 116232, 1766, 13894, 133, 25, 3525, 1250, 31577, 3299, 3786, 2844, 678, 209, 18276, 496, 5122, 23, 27781, 72134, 86918, 12651, 18055, 19040, 223, 3454, 19048, 5154, 1193, 83, 7108, 111,...
[ 0.264404296875, 0.051025390625, 0.1187744140625, 0.061187744140625, 0.057342529296875, 0.18115234375, 0.1749267578125, 0.13330078125, 0.257080078125, 0.18994140625, 0.042816162109375, 0.080322265625, 0.001983642578125, 0.0885009765625, 0.031585693359375, 0.1895751953125, 0.0035095214...
embed
52452033_c0
52452033
prolog
0
Title: Predicate arithmetic combination (only + or -) to find a result from a list of numbers Problem title: Predicate arithmetic combination (only + or -) to find a result from a list of numbers Tags: prolog Problem: Predicate arithmetic combination (only + or -) to find a result from a list of numbers I'm trying to a...
Predicate arithmetic combination (only + or -) to find a result from a list of numbers Predicate arithmetic combination (only + or -) to find a result from a list of numbers prolog a Predicate Predicate arithmetic combination (only + or -) to find a result from a list of numbers I'm trying to achieve an old exercice fr...
[ -0.01220703125, 0.00909423828125, 0.00110626220703125, 0.01611328125, 0.0036163330078125, 0.01409912109375, -0.00030517578125, 0.00970458984375, 0.01226806640625, 0.0027618408203125, -0.01031494140625, -0.004302978515625, 0.00396728515625, 0.0086669921875, -0.01275634765625, -0.0074157...
[ 7145, 2063, 67, 187, 8962, 282, 162515, 191, 538, 997, 707, 20, 47, 7413, 16750, 1295, 5303, 101935, 502, 4867, 69307, 10332, 125415, 10696, 26366, 86869, 84751, 876, 441, 18113, 134598, 11907, 66044, 1614, 2816, 41018, 50960, 10750, 14012,...
[ 0.1519775390625, 0.2025146484375, 0.08673095703125, 0.0254058837890625, 0.1263427734375, 0.06243896484375, 0.2322998046875, 0.0438232421875, 0.0072021484375, 0.16015625, 0.0999755859375, 0.1187744140625, 0.0062255859375, 0.1309814453125, 0.198486328125, 0.1163330078125, 0.14636230468...
embed
14291529_c0
14291529
prolog
0
Title: Prolog - Multiply a list with an element results with a weird tail? Problem title: Prolog - Multiply a list with an element results with a weird tail? Tags: swi-prolog, lambda, prolog Problem: Prolog - Multiply a list with an element results with a weird tail? I want to multiply two lists, where I take the left ...
Prolog - Multiply a list with an element results with a weird tail? Prolog - Multiply a list with an element results with a weird tail? swi-prolog lambda prolog Prolog Multiply Result Elem _G1840 Prolog - Multiply a list with an element results with a weird tail? I want to multiply two lists, where I take the left list...
[ 0.0201416015625, 0.022216796875, 0.0203857421875, -0.01397705078125, -0.0238037109375, 0.0283203125, -0.00640869140625, -0.01129150390625, 0.002227783203125, -0.0269775390625, 0.0185546875, -0.008544921875, -0.00701904296875, 0.00093841552734375, 0.0003185272216796875, -0.0020446777343...
[ 1250, 4867, 19335, 62479, 5303, 678, 12830, 50339, 10, 179459, 46741, 2452, 3454, 6492, 85, 502, 126684, 540, 195, 1819, 2839, 3444, 6024, 6626, 5646, 25737, 12638, 7108, 54397, 4358, 56, 1653, 2063, 51776, 118126, 11001, 146232, 42, 11675,...
[ 0.163818359375, 0.2261962890625, 0.137451171875, 0.2135009765625, 0.211181640625, 0.082763671875, 0.2017822265625, 0.1572265625, 0.031402587890625, 0.2103271484375, 0.26611328125, 0.1182861328125, 0.112548828125, 0.0946044921875, 0.026275634765625, 0.0994873046875, 0.1942138671875, ...
embed
27466467_c0
27466467
prolog
0
Title: Prolog Appending Results of Two Predicates Problem title: Prolog Appending Results of Two Predicates Tags: append, prolog Problem: Prolog Appending Results of Two Predicates :- import append/3 from basics. help1(0,L,[]). help1(_,[],[]). help1(N,[X|Xs],[X|Res]):- N2 is N - 1, help1(N2,Xs,Res). help2(0,L,L). help2...
Prolog Appending Results of Two Predicates Prolog Appending Results of Two Predicates append prolog append/3 basics Prolog Appending Results Two Predicates help1 Res help2 help3 Prolog Appending Results of Two Predicates In the following piece of code my help1 predicate will store the first N values in a list. My help2...
[ 0.010986328125, -0.01141357421875, 0.01092529296875, 0.005401611328125, -0.00494384765625, 0.020751953125, 0.005859375, 0.0157470703125, 0.0341796875, -0.03173828125, -0.000774383544921875, -0.020751953125, -0.018798828125, 0.0059814453125, 0.0205078125, -0.0014190673828125, 0.020385...
[ 1250, 4867, 5787, 96819, 146104, 32964, 7145, 2063, 114689, 502, 71, 18113, 62822, 4358, 418, 9624, 304, 363, 1636, 18151, 1653, 67, 4343, 5117, 541, 142424, 5303, 756, 7103, 32354, 31577, 50339, 2046, 136, 5442, 959, 19048, 121742, 16940 ]
[ 0.1705322265625, 0.2352294921875, 0.0830078125, 0.0965576171875, 0.207275390625, 0.126220703125, 0.198974609375, 0.2158203125, 0.1822509765625, 0.1402587890625, 0.0216064453125, 0.134765625, 0.097412109375, 0.183837890625, 0.0684814453125, 0.0704345703125, 0.11767578125, 0.14392089...
embed
47647635_c0
47647635
prolog
0
Title: Converting degrees and minutes to radians in prolog Problem title: Converting degrees and minutes to radians in prolog Tags: prolog Problem: Converting degrees and minutes to radians in prolog Assume I have facts defined as follows, airport(atl, 'Atlanta ', degmin(33,39 ), degmin(84,25 ) ). and I want to convert...
Converting degrees and minutes to radians in prolog Converting degrees and minutes to radians in prolog prolog Converting Atlanta Source LatRad LongRad X_1 Y_1 X_2 Y_2 res2 Deg Min Lat Long Converting degrees and minutes to radians in prolog Assume I have facts defined as follows, and I want to convert degmin to radian...
[ 0.0057373046875, -0.0205078125, 0.0172119140625, -0.00335693359375, -0.013427734375, -0.011474609375, -0.00167083740234375, -0.0026397705078125, 0.00567626953125, -0.0157470703125, 0.002471923828125, 0.0166015625, -0.024169921875, -0.0089111328125, 0.01312255859375, -0.01104736328125, ...
[ 1657, 814, 1916, 79385, 136, 14633, 47, 4567, 10133, 23, 502, 4867, 163816, 77641, 75346, 148545, 14407, 1193, 115187, 990, 304, 3332, 61743, 4211, 66596, 15824, 61924, 28960, 3444, 96760, 2722, 1249, 81887, 33306, 11675, 41206, 4865, 23409, ...
[ 0.0548095703125, 0.1373291015625, 0.0257568359375, 0.1785888671875, 0.0882568359375, 0.2469482421875, 0.0994873046875, 0.2200927734375, 0.1949462890625, 0.0275115966796875, 0.148193359375, 0.2113037109375, 0.189208984375, 0.1370849609375, 0.1123046875, 0.1802978515625, 0.05419921875,...
embed
7329432_c0
7329432
prolog
0
Title: Prolog: single item vs single item list Problem title: Prolog: single item vs single item list Tags: prolog Problem: Prolog: single item vs single item list While troubleshooting a larger assignment for school, I found a mistake I had made, where I was treating a single item list (a stack with one item) as if it...
Prolog: single item vs single item list Prolog: single item vs single item list prolog Prolog ERROR Type Prolog: single item vs single item list While troubleshooting a larger assignment for school, I found a mistake I had made, where I was treating a single item list (a stack with one item) as if it were a single item...
[ 0.0057373046875, -0.006317138671875, 0.01263427734375, -0.003997802734375, -0.0126953125, 0.002105712890625, 0.006622314453125, -0.01300048828125, 0.02294921875, -0.000652313232421875, 0.01025390625, -0.01092529296875, 0.000457763671875, 0.005126953125, -0.007232666015625, -0.009704589...
[ 1250, 4867, 11001, 35735, 20209, 5303, 502, 151206, 24638, 60457, 105727, 95486, 10696, 121742, 85689, 177261, 678, 1632, 237, 2174, 86869, 134234, 156672, 179459, 209683, 123166, 96276, 17368, 2203, 12, 1369, 12477, 64457, 83, 90698, 5701, 100...
[ 0.15869140625, 0.2308349609375, 0.229736328125, 0.255126953125, 0.15380859375, 0.230712890625, 0.12158203125, 0.10504150390625, 0.049957275390625, 0.1529541015625, 0.01239013671875, 0.0986328125, 0.04144287109375, 0.09307861328125, 0.05462646484375, 0.131103515625, 0.011016845703125,...
embed
65486093_c0
65486093
prolog
0
Title: How do I create a DCG rule inverse to another in Prolog? Problem title: How do I create a DCG rule inverse to another in Prolog? Tags: prolog, parsing, dcg, grammar Problem: How do I create a DCG rule inverse to another in Prolog? I am writing a Commodore BASIC interpreter in Prolog, and I am writing some DCGs t...
How do I create a DCG rule inverse to another in Prolog? How do I create a DCG rule inverse to another in Prolog? prolog parsing dcg grammar How DCG Prolog Str atom_chars Chars Call _321 _348 Fail _418 Exit How do I create a DCG rule inverse to another in Prolog? I am writing a Commodore BASIC interpreter in Prolog, an...
[ 0.013427734375, 0.00933837890625, 0.000637054443359375, 0.040283203125, 0.0025787353515625, 0.0267333984375, 0.007049560546875, -0.0086669921875, -0.005401611328125, 0.0022735595703125, -0.01336669921875, -0.0145263671875, -0.004486083984375, -0.00250244140625, 0.00897216796875, 0.0334...
[ 11249, 28282, 391, 56367, 79986, 23, 37676, 47, 15700, 1250, 4867, 10, 502, 366, 104, 238, 177, 122092, 23351, 34627, 9254, 21656, 26265, 103705, 135407, 190355, 617, 1819, 5443, 87, 32562, 3288, 74445, 107, 96971, 16259, 29481, 56, 35064, ...
[ 0.03973388671875, 0.163330078125, 0.0897216796875, 0.2105712890625, 0.181640625, 0.1021728515625, 0.23046875, 0.0948486328125, 0.0645751953125, 0.14697265625, 0.2100830078125, 0.00836181640625, 0.0743408203125, 0.0892333984375, 0.0093994140625, 0.003997802734375, 0.1138916015625, 0...
embed
49553804_c0
49553804
prolog
0
Title: Prolog : how to detirmine if there are duplicate element in a list (not consecutive) Problem title: Prolog : how to detirmine if there are duplicate element in a list (not consecutive) Tags: prolog Problem: Prolog : how to detirmine if there are duplicate element in a list (not consecutive) Im wondering how can ...
Prolog : how to detirmine if there are duplicate element in a list (not consecutive) Prolog : how to detirmine if there are duplicate element in a list (not consecutive) prolog Prolog Prolog : how to detirmine if there are duplicate element in a list (not consecutive) Im wondering how can i write a predicate /1 which d...
[ 0.0059814453125, 0.00848388671875, 0.0081787109375, 0.01025390625, -0.00811767578125, 0.02001953125, 0.0167236328125, -0.003814697265625, 0.000804901123046875, -0.021728515625, -0.0020294189453125, 0.01397705078125, 0.005950927734375, -0.0101318359375, -0.004364013671875, 0.02612304687...
[ 1250, 4867, 3642, 8, 2826, 2962, 2174, 2685, 621, 171763, 67, 12830, 5303, 10869, 148390, 47, 502, 23, 3370, 149016, 831, 17, 33022, 1653, 2063, 11583, 83324, 34475, 1556, 1636, 707, 36998, 15490, 479, 5983, 978, 24908, 759, 97249, 238, ...
[ 0.1453857421875, 0.2230224609375, 0.0621337890625, 0.151123046875, 0.18212890625, 0.25048828125, 0.100830078125, 0.0594482421875, 0.04986572265625, 0.27880859375, 0.146240234375, 0.179931640625, 0.2034912109375, 0.1331787109375, 0.183349609375, 0.0229644775390625, 0.083984375, 0.00...
embed
33683838_c0
33683838
prolog
0
Title: Prolog - check if list is empty [] Problem title: Prolog - check if list is empty [] Tags: list, prolog Problem: Prolog - check if list is empty [] I am just trying to figure out how to check if a list is empty, I put together something that checks the length of the list, and additionally should check to see if ...
Prolog - check if list is empty [] Prolog - check if list is empty [] list prolog Prolog Gives check_length Len Prolog - check if list is empty [] I am just trying to figure out how to check if a list is empty, I put together something that checks the length of the list, and additionally should check to see if the list...
[ 0.00494384765625, 0.0140380859375, 0.006072998046875, 0.022216796875, -0.0172119140625, 0.0096435546875, -0.00634765625, -0.006500244140625, 0.01318359375, 0.0096435546875, 0.0091552734375, -0.006927490234375, -0.006988525390625, -0.0011444091796875, -0.004241943359375, 0.0296630859375...
[ 1250, 4867, 12765, 2174, 5303, 83, 201505, 502, 77878, 23986, 18226, 31577, 26366, 47, 25842, 9844, 140909, 1957, 56112, 18, 9836, 20594, 44691 ]
[ 0.16845703125, 0.231201171875, 0.1861572265625, 0.1165771484375, 0.2119140625, 0.075439453125, 0.2408447265625, 0.1341552734375, 0.0438232421875, 0.083740234375, 0.1759033203125, 0.006591796875, 0.03387451171875, 0.020416259765625, 0.02545166015625, 0.00018310546875, 0.1268310546875,...
embed
60342107_c0
60342107
prolog
0
Title: Prolog - why does the following code generate the solution X=root forever? Problem title: Prolog - why does the following code generate the solution X=root forever? Tags: failure-slice, prolog Problem: Prolog - why does the following code generate the solution X=root forever? black(root). black(v1). black(v3). b...
Prolog - why does the following code generate the solution X=root forever? Prolog - why does the following code generate the solution X=root forever? failure-slice prolog Prolog Prolog - why does the following code generate the solution X=root forever? Then I type foo(X) and only get X=root . I really can't figure out ...
[ 0.0299072265625, 0.0274658203125, 0.01141357421875, 0.00146484375, 0.0026092529296875, -0.0014495849609375, -0.01336669921875, -0.0050048828125, 0.00433349609375, -0.03662109375, 0.026123046875, 0, -0.01312255859375, 0.00885009765625, 0.01300048828125, 0.000400543212890625, 0.0184326...
[ 1250, 4867, 15400, 25632, 18151, 139392, 29806, 1193, 1369, 148920, 136993, 137578, 13348, 502, 14602, 87, 10644, 5775, 31, 1542, 4734, 2046, 831, 18, 26366, 5117, 74855, 6637, 2831, 134598, 738, 17932, 172337, 7413, 121303, 22556, 30646, 295...
[ 0.1551513671875, 0.224853515625, 0.1417236328125, 0.108154296875, 0.13525390625, 0.1807861328125, 0.173828125, 0.1763916015625, 0.1041259765625, 0.269287109375, 0.1776123046875, 0.2259521484375, 0.159912109375, 0.1158447265625, 0.009033203125, 0.010040283203125, 0.14501953125, 0.13...
embed
10763203_c0
10763203
prolog
0
Title: Hanoi Towers - another output Problem title: Hanoi Towers - another output Tags: prolog, towers-of-hanoi Problem: Hanoi Towers - another output for Towers of Hanoi, the output should look like this: ?-move(3,[1,2,3],[],[],A1,B1,C). A1=[]. B1=[1,2,3] C=[]. I know how to do this: move(1,[H|T],B,C,A1,B1,C) :- A1 = ...
Hanoi Towers - another output Hanoi Towers - another output prolog towers-of-hanoi Hanoi Towers N-1 Hanoi Towers - another output for Towers of Hanoi, the output should look like this: I know how to do this: But the next question is: "rewrite the program to provide illustrations of towers after every move". Its output ...
[ 0.01214599609375, 0.01409912109375, 0.009521484375, 0.032470703125, 0.003997802734375, 0.012451171875, -0.01318359375, 0.01806640625, 0.01214599609375, -0.0052490234375, 0.006805419921875, 0.01422119140625, -0.018798828125, 0.004241943359375, 0.00750732421875, -0.017822265625, 0.0039...
[ 2548, 5380, 68718, 7, 15700, 140992, 502, 4867, 47, 42844, 4390, 1121, 541, 5759, 100, 111, 5608, 6713, 1884, 903, 3714, 3642, 54, 11737, 9655, 107, 434, 18781, 1528, 22691, 164156, 7103, 11907, 25813, 16940 ]
[ 0.176025390625, 0.2215576171875, 0.218994140625, 0.1007080078125, 0.0849609375, 0.22021484375, 0.10540771484375, 0.1849365234375, 0.1318359375, 0.1763916015625, 0.118408203125, 0.10406494140625, 0.05078125, 0.0992431640625, 0.0171661376953125, 0.13134765625, 0.026336669921875, 0.09...
embed
62327235_c0
62327235
prolog
0
Title: How can I pair all elements in a list in Prolog? Problem title: How can I pair all elements in a list in Prolog? Tags: prolog Problem: How can I pair all elements in a list in Prolog? The goal is to create pairs/triplets/quartets from short lists, since these lists occur in a list of lists that I flatten. Since ...
How can I pair all elements in a list in Prolog? How can I pair all elements in a list in Prolog? prolog How Prolog create_pair Pair NPair H-H1 How can I pair all elements in a list in Prolog? The goal is to create pairs/triplets/quartets from short lists, since these lists occur in a list of lists that I flatten. Sinc...
[ 0.007354736328125, 0.0203857421875, 0.00176239013671875, 0.01251220703125, 0.0042724609375, 0.006256103515625, -0.0284423828125, -0.006561279296875, 0.01251220703125, -0.0111083984375, 0.007537841796875, -0.007232666015625, 0.00634765625, -0.0211181640625, -0.0135498046875, -0.00720214...
[ 11249, 831, 87, 80836, 756, 80854, 23, 5303, 1250, 4867, 10, 502, 28282, 109637, 1342, 481, 28814, 7341, 572, 841, 418, 69236, 59623, 1974, 167565, 7831, 1295, 16610, 74918, 49878, 510, 3444, 24765, 162711, 3917, 94878, 55769, 876, 501, 2...
[ 0.09454345703125, 0.0986328125, 0.0469970703125, 0.2880859375, 0.181884765625, 0.2401123046875, 0.08447265625, 0.251953125, 0.1866455078125, 0.266357421875, 0.0390625, 0.1033935546875, 0.113037109375, 0.23486328125, 0.1865234375, 0.1553955078125, 0.0174102783203125, 0.2357177734375...
embed
41591498_c0
41591498
prolog
0
Title: Is it possible to write an empty list as a difference list in Prolog? Problem title: Is it possible to write an empty list as a difference list in Prolog? Tags: empty-list, list, prolog, difference-lists Problem: Is it possible to write an empty list as a difference list in Prolog? Empty lists are ... strange, t...
Is it possible to write an empty list as a difference list in Prolog? Is it possible to write an empty list as a difference list in Prolog? empty-list list prolog difference-lists Prolog T1-T2 Is it possible to write an empty list as a difference list in Prolog? Empty lists are ... strange, to a Prolog beginner like my...
[ 0.0234375, -0.01287841796875, -0.0021209716796875, 0.01275634765625, -0.015625, 0.01116943359375, -0.01171875, -0.005584716796875, 0.005096435546875, 0.0185546875, 0.005706787109375, -0.0026397705078125, 0.00189208984375, 0.0120849609375, -0.0045166015625, 0.00897216796875, 0.0125122...
[ 7722, 33022, 201505, 5303, 237, 60212, 1250, 4867, 6562, 502, 384, 20268, 618, 304, 47, 142, 10, 23, 31678, 939, 114453, 34627, 4527, 195625, 1830, 53550, 119794, 265, 10752, 27958, 38730, 80234 ]
[ 0.1512451171875, 0.18505859375, 0.26904296875, 0.2476806640625, 0.10186767578125, 0.251708984375, 0.1563720703125, 0.218994140625, 0.1881103515625, 0.0643310546875, 0.07147216796875, 0.0887451171875, 0.086669921875, 0.1143798828125, 0.008575439453125, 0.01361083984375, 0.018188476562...
embed
29287771_c0
29287771
prolog
0
Title: Rotate and delete an element from a list Problem title: Rotate and delete an element from a list Tags: element, prolog, list Problem: Rotate and delete an element from a list I would like to run through a list A and delete any element from that list that has the same Key as the pair located in the List B then cr...
Rotate and delete an element from a list Rotate and delete an element from a list element prolog list a Rotate _37227 Rotate and delete an element from a list I would like to run through a list A and delete any element from that list that has the same Key as the pair located in the List B then create a new List C out o...
[ 0.0027923583984375, 0.0181884765625, 0.02783203125, -0.00518798828125, -0.0186767578125, 0.00174713134765625, -0.005950927734375, 0.0020294189453125, 0.01300048828125, 0.0191650390625, 0.01177978515625, 0.0189208984375, 0.012939453125, -0.000797271728515625, -0.003204345703125, 0.01232...
[ 146283, 67, 136, 154109, 12830, 1295, 5303, 502, 4867, 10, 108265, 3768, 1884, 11675, 8305, 62, 2499, 1556, 5701, 26824, 80836, 105866, 32036, 335, 28282, 3525, 313, 1810, 20697, 44816, 26366, 105823, 1218, 379, 41, 1294, 140992, 2060, 2367...
[ 0.237060546875, 0.1715087890625, 0.08013916015625, 0.2469482421875, 0.1826171875, 0.143310546875, 0.20166015625, 0.1229248046875, 0.1595458984375, 0.0244293212890625, 0.0965576171875, 0.12158203125, 0.0582275390625, 0.10333251953125, 0.1063232421875, 0.05810546875, 0.003082275390625,...
embed
59240777_c0
59240777
prolog
0
Title: Comparing Nodes in Binary Tree SWI Prolog Problem title: Comparing Nodes in Binary Tree SWI Prolog Tags: prolog Problem: Comparing Nodes in Binary Tree SWI Prolog I am given a tree constructor tree(tip). tree(bin(L,_,R)) :- tree(L), tree(R). My task is to make sure that given a tree of Ints bin(L,X,R) holds true...
Comparing Nodes in Binary Tree SWI Prolog Comparing Nodes in Binary Tree SWI Prolog prolog Comparing Nodes Binary Tree SWI Prolog Comparing Nodes in Binary Tree SWI Prolog I am given a tree constructor My task is to make sure that given a tree of Ints bin(L,X,R) holds true if every node in L is <= X and every node in R...
[ 0.006927490234375, 0.00408935546875, -0.000453948974609375, -0.0179443359375, 0.02099609375, 0.0284423828125, -0.01202392578125, -0.006561279296875, -0.004058837890625, -0.0003681182861328125, 0.0059814453125, -0.0050048828125, 0.00811767578125, -0.0037994384765625, 0.0126953125, -0.00...
[ 113307, 214, 438, 988, 23, 54092, 1294, 101344, 159, 38969, 1250, 4867, 502, 34475, 53201, 64549, 748, 66211, 3249, 9077, 360, 933, 2394, 866, 1542, 1052, 16401, 29568, 11907, 110, 339, 4426, 1193, 627, 977, 29806, 44691, 28864, 27781, 83...
[ 0.19384765625, 0.024200439453125, 0.1710205078125, 0.1258544921875, 0.0120849609375, 0.1805419921875, 0.06988525390625, 0.2197265625, 0.003692626953125, 0.177001953125, 0.1014404296875, 0.1724853515625, 0.05401611328125, 0.02960205078125, 0.2039794921875, 0.1309814453125, 0.014633178...
embed
40578386_c0
40578386
prolog
0
Title: ISO error classification for multiple definition in Prolog DSL Problem title: ISO error classification for multiple definition in Prolog DSL Tags: iso-prolog, prolog Problem: ISO error classification for multiple definition in Prolog DSL I'm building a DSL that uses names for procedures (essentially) that must b...
ISO error classification for multiple definition in Prolog DSL ISO error classification for multiple definition in Prolog DSL iso-prolog prolog ISO Prolog DSL ISO error classification for multiple definition in Prolog DSL I'm building a DSL that uses names for procedures (essentially) that must be unique. It's unclear ...
[ 0.004638671875, 0.0045166015625, -0.0013427734375, 0.01171875, -0.017333984375, -0.001708984375, -0.018798828125, -0.00002276897430419922, 0.009033203125, -0.002471923828125, 0.00811767578125, -0.0072021484375, 0.00958251953125, -0.0079345703125, 0.017333984375, 0.00482177734375, -0....
[ 17408, 18499, 40865, 48716, 80934, 1250, 4867, 114479, 100, 13882, 3454, 502, 33976, 4527, 123055, 50491, 8110, 36998, 119488, 13579, 33636, 17932, 116311, 188800, 127550, 8562, 11177, 17883, 21980, 132283, 168081, 13415, 40383, 15757, 7614, 2481...
[ 0.2227783203125, 0.2578125, 0.205078125, 0.239013671875, 0.24560546875, 0.1241455078125, 0.22412109375, 0.1629638671875, 0.05255126953125, 0.1097412109375, 0.07061767578125, 0.07421875, 0.071533203125, 0.0712890625, 0.1004638671875, 0.1768798828125, 0.0209808349609375, 0.1793212890...
embed
15402350_c0
15402350
prolog
0
Title: How to code this on Prolog? Problem title: How to code this on Prolog? Tags: zebra-puzzle, prolog Problem: How to code this on Prolog? Please can you explain what will i do to code this thing up on Prolog? Mason, Alex, Steve, and Simon arc standing in a police lineup. One of them is blond, handsome, and unscarre...
How to code this on Prolog? How to code this on Prolog? zebra-puzzle prolog How Prolog How to code this on Prolog? Please can you explain what will i do to code this thing up on Prolog? Mason, Alex, Steve, and Simon arc standing in a police lineup. One of them is blond, handsome, and unscarred. Two of them who are not ...
[ 0.0185546875, 0.0057373046875, 0.00885009765625, 0.007720947265625, -0.005828857421875, 0.035888671875, 0.0013275146484375, -0.01055908203125, 0.011962890625, -0.032470703125, 0.0087890625, -0.0177001953125, 0.0067138671875, 0.00567626953125, 0.0198974609375, 0.0108642578125, 0.01458...
[ 11249, 47, 18151, 903, 98, 1250, 4867, 116232, 9, 1766, 13894, 133, 502, 73342, 13580, 1257, 3010, 191, 4, 20984, 41550, 136, 26328, 46552, 135203, 35206, 13315, 2037, 30906, 3535, 43452, 51, 39719, 959, 40101, 5609, 83, 4734, 11737, 6616...
[ 0.1015625, 0.052337646484375, 0.26708984375, 0.14404296875, 0.10760498046875, 0.1859130859375, 0.25830078125, 0.2432861328125, 0.0201873779296875, 0.1207275390625, 0.151611328125, 0.1328125, 0.1602783203125, 0.0645751953125, 0.08807373046875, 0.10107421875, 0.105712890625, 0.154907...
embed
30153135_c0
30153135
prolog
0
Title: Prolog - Puzzle 8 Problem title: Prolog - Puzzle 8 Tags: prolog, sliding-tile-puzzle, list Problem: Prolog - Puzzle 8 I have to make a prolog progam that solves the puzzle 8. It's for my programming club in school that I'm in just for fun. I'm new to Prolog - I'm having a hard time. Here's my code: puzzle([1, 2,...
Prolog - Puzzle 8 Prolog - Puzzle 8 prolog sliding-tile-puzzle list Prolog Puzzle affiche_puzzle mov_legal Prolog - Puzzle 8 I have to make a prolog progam that solves the puzzle 8. It's for my programming club in school that I'm in just for fun. I'm new to Prolog - I'm having a hard time. Here's my code: Now I have to...
[ 0.01220703125, 0.00445556640625, 0.01507568359375, 0.01312255859375, -0.01409912109375, 0.028564453125, -0.037841796875, 0.00347900390625, 0.00909423828125, -0.009033203125, -0.008056640625, -0.0016021728515625, -0.002960205078125, 0.0096435546875, -0.00897216796875, 0.0035858154296875...
[ 1250, 4867, 20, 179277, 382, 502, 132692, 214, 44555, 1766, 13894, 133, 5303, 120197, 30464, 86966, 765, 3249, 17705, 86869, 104192, 3217, 100, 56037, 11938, 10696, 39, 23, 7477, 3525, 19441, 7941, 1733, 18151, 14240, 28282, 454, 441, 418, ...
[ 0.1495361328125, 0.2474365234375, 0.010589599609375, 0.2174072265625, 0.2308349609375, 0.1240234375, 0.1561279296875, 0.0950927734375, 0.1646728515625, 0.0797119140625, 0.10015869140625, 0.0654296875, 0.1134033203125, 0.1973876953125, 0.2032470703125, 0.227294921875, 0.033203125, 0...
embed
64310401_c0
64310401
prolog
0
Title: Why does removing the cut operator in this Prolog recursion not matter? Problem title: Why does removing the cut operator in this Prolog recursion not matter? Tags: recursion, trace, prolog, algorithm Problem: Why does removing the cut operator in this Prolog recursion not matter? Regardless of whether I use cut...
Why does removing the cut operator in this Prolog recursion not matter? Why does removing the cut operator in this Prolog recursion not matter? recursion trace prolog algorithm Why Prolog Operation Why does removing the cut operator in this Prolog recursion not matter? Regardless of whether I use cut operators or not i...
[ 0.0269775390625, 0.00994873046875, 0.01953125, 0.0177001953125, 0.007720947265625, -0.00897216796875, -0.0027923583984375, 0.005401611328125, 0.02587890625, -0.0030364990234375, 0.000904083251953125, -0.0130615234375, -0.0244140625, -0.0184326171875, 0.01397705078125, -0.00830078125, ...
[ 44084, 49146, 6496, 59226, 39933, 903, 1250, 4867, 195625, 1830, 959, 26866, 23, 144851, 502, 234873, 102203, 14602, 70, 4527, 25632, 18151, 5701, 35166, 990, 2203, 787, 11675, 41, 1238, 238, 104, 98441, 87388, 711, 116, 110, 60212, 184750,...
[ 0.1004638671875, 0.114013671875, 0.0335693359375, 0.2196044921875, 0.2587890625, 0.065673828125, 0.1475830078125, 0.2320556640625, 0.170166015625, 0.06719970703125, 0.1103515625, 0.140869140625, 0.01025390625, 0.1624755859375, 0.0858154296875, 0.10552978515625, 0.1837158203125, 0.0...
embed
59695967_c2
59695967
prolog
2
(S, [X1,X2,X3,X4,X5,X6]). rotate(S, [X6,X4,X5,X2,X3,X1]) :- cube(S, [X1,X2,X3,X4,X5,X6]). rotate(S, [X6,X5,X2,X1,X3,X4]) :- cube(S, [X1,X2,X3,X4,X5,X6]). rotate(S, [X2,X5,X3,X1,X4,X6]) :- cube(S, [X1,X2,X3,X4,X5,X6]). rotate(S, [X3,X5,X4,X1,X6,X2]) :- cube(S, [X1,X2,X3,X4,X5,X6]). rotate(S, [X4,X5,X6,X1,X2,X3]) :- cube...
(S, [X1,X2,X3,X4,X5,X6]). rotate(S, [X6,X4,X5,X2,X3,X1]) :- cube(S, [X1,X2,X3,X4,X5,X6]). rotate(S, [X6,X5,X2,X1,X3,X4]) :- cube(S, [X1,X2,X3,X4,X5,X6]). rotate(S, [X2,X5,X3,X1,X4,X6]) :- cube(S, [X1,X2,X3,X4,X5,X6]). rotate(S, [X3,X5,X4,X1,X6,X2]) :- cube(S, [X1,X2,X3,X4,X5,X6]). rotate(S, [X4,X5,X6,X1,X2,X3]) :- cube...
[ 0.015380859375, 0.0172119140625, 0.0103759765625, 0.00860595703125, -0.0111083984375, -0.0145263671875, -0.0291748046875, 0.00848388671875, 0.022705078125, 0.0002040863037109375, 0.00274658203125, -0.01055908203125, 0.00885009765625, 0.0027923583984375, -0.00396728515625, 0.01507568359...
[ 15, 294, 4, 378, 1542, 418, 304, 363, 617, 758, 910, 194, 47014, 67, 132, 76172, 15772, 314, 372, 90173, 96386, 1745, 5584, 71337, 100, 5303, 12912, 152462, 866, 17727, 1238, 71, 238778, 4420, 10461 ]
[ 0.1182861328125, 0.1556396484375, 0.0460205078125, 0.031768798828125, 0.1737060546875, 0.103515625, 0.1485595703125, 0.1800537109375, 0.1751708984375, 0.1572265625, 0.1807861328125, 0.05853271484375, 0.2027587890625, 0.2210693359375, 0.0374755859375, 0.11279296875, 0.159423828125, ...
embed
46531302_c0
46531302
prolog
0
Title: Prolog - program solve issue but backwards Problem title: Prolog - program solve issue but backwards Tags: graph-theory, prolog Problem: Prolog - program solve issue but backwards edge(a,b). edge(a,c). edge(b,c). edge(c,e). edge(c,d). edge(d,e). edge(f,g). edge(g,h). allways(X,Y) :- edge(X,Z), allways(Z,Y), writ...
Prolog - program solve issue but backwards Prolog - program solve issue but backwards graph-theory prolog Prolog Prolog - program solve issue but backwards ways(a,e) is supposed to print all ways from a to e, this code solves the issue but print it out backwards.. any tips on how to make the program print the solutions...
[ 0.0166015625, 0.01953125, 0.015869140625, 0.017822265625, -0.0155029296875, 0.00830078125, -0.0223388671875, -0.003326416015625, -0.0035552978515625, -0.028564453125, 0.00897216796875, -0.008544921875, -0.00714111328125, 0.01336669921875, 0.00909423828125, 0.0030975341796875, -0.0092...
[ 1250, 4867, 1528, 86869, 31089, 1284, 4420, 19364, 41382, 2347, 30675, 502, 7, 48322, 11, 4, 13, 134598, 47, 28412, 756, 1295, 10, 28, 18151, 1810, 6305, 3642, 3249, 70, 51347, 23, 26785, 95493, 13538, 7077, 7108, 5036, 83, 172864, 272,...
[ 0.1898193359375, 0.29736328125, 0.2001953125, 0.219482421875, 0.1724853515625, 0.16259765625, 0.2047119140625, 0.2568359375, 0.1658935546875, 0.025421142578125, 0.01324462890625, 0.124755859375, 0.056610107421875, 0.2041015625, 0.0732421875, 0.008148193359375, 0.12939453125, 0.1296...
embed
27304954_c0
27304954
prolog
0
Title: Prolog - sum of numbers in a list Problem title: Prolog - sum of numbers in a list Tags: prolog, list Problem: Prolog - sum of numbers in a list I'm very new to Prolog and still struggling with the syntax of the language. I'm trying to write a functor that looks through a list and creates a new list with the hea...
Prolog - sum of numbers in a list Prolog - sum of numbers in a list prolog list Prolog Rest Prolog - sum of numbers in a list I'm very new to Prolog and still struggling with the syntax of the language. I'm trying to write a functor that looks through a list and creates a new list with the head being the sum of all the...
[ 0.0054931640625, 0.005859375, 0.0164794921875, 0.0137939453125, -0.0130615234375, 0.0244140625, -0.01025390625, 0.006256103515625, 0.0283203125, -0.02392578125, 0.00604248046875, -0.02734375, 0.000583648681640625, -0.003631591796875, 0.0130615234375, 0.007415771484375, 0.001129150390...
[ 1250, 4867, 20, 10554, 111, 101935, 23, 10, 5303, 502, 49756, 4552, 3525, 237875, 6002, 86531, 46876, 31577, 33022, 7477, 18770, 33342, 8305, 28282, 10336, 8035, 756, 46741, 89778, 37076, 509, 442, 27781, 133063, 363, 275, 238, 617, 2203, ...
[ 0.19384765625, 0.264404296875, 0.04815673828125, 0.2193603515625, 0.132568359375, 0.2071533203125, 0.1314697265625, 0.04815673828125, 0.2259521484375, 0.1551513671875, 0.1685791015625, 0.03326416015625, 0.0723876953125, 0.1046142578125, 0.0731201171875, 0.1676025390625, 0.13916015625...
embed
54161899_c1
54161899
prolog
1
verb(H),RestParsed),Rem):- verb(H), np(Rest,RestParsed). det(the). noun(cat). noun(mat). verb(sat). prep(on). adj(big). adj(fat). adj(comfy). i have read through some of the other posts on this but im still not sure where i have gone wrong. to check that np pp and vp work i am using the calls; np([the,cat,sat,on,the,ma...
verb(H),RestParsed),Rem):- verb(H), np(Rest,RestParsed). det(the). noun(cat). noun(mat). verb(sat). prep(on). adj(big). adj(fat). adj(comfy). i have read through some of the other posts on this but im still not sure where i have gone wrong. to check that np pp and vp work i am using the calls; np([the,cat,sat,on,the,ma...
[ -0.0009613037109375, -0.003448486328125, -0.00445556640625, 0.0172119140625, -0.0078125, 0.0250244140625, 0.0179443359375, -0.00885009765625, 0.0225830078125, -0.036865234375, 0.01904296875, -0.01708984375, -0.0177001953125, -0.00909423828125, -0.005279541015625, 0.0064697265625, -0....
[ 42792, 841, 1052, 525, 28636, 5281, 4332, 39, 25037, 149, 2347, 110, 309, 4460, 2227, 6489, 64503, 191, 606, 170, 32976, 7834, 277, 18929, 9077, 74955, 44691, 12765, 32261, 136, 81, 254, 4488, 17368, 11782, 670, 866, 1632, 18499, 151206, ...
[ 0.24365234375, 0.1380615234375, 0.083740234375, 0.155029296875, 0.1746826171875, 0.1373291015625, 0.1104736328125, 0.166015625, 0.1837158203125, 0.2110595703125, 0.1705322265625, 0.019195556640625, 0.076904296875, 0.16845703125, 0.1424560546875, 0.1717529296875, 0.1448974609375, 0....
embed
54392493_c0
54392493
prolog
0
Title: Number of legs and heads from Horse and Men in Prolog - RIDDLE Problem title: Number of legs and heads from Horse and Men in Prolog - RIDDLE Tags: prolog Problem: Number of legs and heads from Horse and Men in Prolog - RIDDLE I am currently trying to solve a riddle: "How many men and horses have 8 heads and 20 f...
Number of legs and heads from Horse and Men in Prolog - RIDDLE Number of legs and heads from Horse and Men in Prolog - RIDDLE prolog Horse Number Men Prolog RIDDLE Man Heads Legs Number of legs and heads from Horse and Men in Prolog - RIDDLE I am currently trying to solve a riddle: As I am trying to solve this question...
[ -0.0086669921875, 0.0027008056640625, -0.02099609375, 0.018798828125, -0.0106201171875, 0.020263671875, -0.01416015625, -0.0084228515625, 0.0016937255859375, -0.054443359375, 0.01123046875, -0.01171875, 0.00762939453125, 0.0225830078125, 0.00823974609375, 0.0264892578125, 0.027221679...
[ 103332, 6049, 7, 136, 10336, 1295, 151307, 1111, 23, 1250, 4867, 30976, 24057, 15300, 111, 502, 1572, 44816, 27357, 31577, 86869, 31351, 19298, 678, 81887, 51042, 185397, 91, 2452, 2424, 30646, 98320, 15400, 959, 20697, 237, 41206, 29806, 2...
[ 0.1275634765625, 0.251220703125, 0.1090087890625, 0.150634765625, 0.234375, 0.0831298828125, 0.2025146484375, 0.187255859375, 0.058013916015625, 0.1702880859375, 0.2415771484375, 0.1142578125, 0.1195068359375, 0.172119140625, 0.014556884765625, 0.1221923828125, 0.10675048828125, 0....
embed
1942132_c0
1942132
prolog
0
Title: Prolog: Test if an arbitrary list is symmetric Problem title: Prolog: Test if an arbitrary list is symmetric Tags: prolog, list, symmetric Problem: Prolog: Test if an arbitrary list is symmetric Is there a way to test wether an arbitrary list is symmetric? For example: ?- symmetric([a,b,b,a]). true. ?- symmetric...
Prolog: Test if an arbitrary list is symmetric Prolog: Test if an arbitrary list is symmetric prolog list symmetric Prolog Test Prolog: Test if an arbitrary list is symmetric Is there a way to test wether an arbitrary list is symmetric? For example: My attemp was to compare the first element to the last element and if ...
[ -0.004730224609375, 0.0128173828125, 0.0145263671875, 0.0029296875, -0.019287109375, 0.01251220703125, -0.00445556640625, 0.0206298828125, -0.0069580078125, -0.0234375, -0.00153350830078125, 0.0234375, 0.0021209716796875, 0.007720947265625, 0.00628662109375, 0.0064697265625, 0.011962...
[ 1250, 4867, 8647, 2174, 61799, 1294, 5303, 83, 230612, 238, 502, 3917, 47, 3034, 642, 9319, 142, 6, 34224, 69101, 5117, 12830, 4568, 105950, 87388, 172337, 35782, 103544, 329, 116, 80854, 111607, 3564, 111, 1653, 2063, 106018, 4358, 77947, ...
[ 0.1107177734375, 0.1773681640625, 0.1993408203125, 0.0465087890625, 0.16943359375, 0.127685546875, 0.219482421875, 0.099365234375, 0.258544921875, 0.1636962890625, 0.08697509765625, 0.052337646484375, 0.0587158203125, 0.2135009765625, 0.021453857421875, 0.06817626953125, 0.0208740234...
embed
55802054_c0
55802054
prolog
0
Title: Implementation of a hash table in SWI-Prolog Problem title: Implementation of a hash table in SWI-Prolog Tags: abstract-data-type, prolog, python, swi-prolog Problem: Implementation of a hash table in SWI-Prolog So I have to implement an ADT, in this case a hash table in SWI-Prolog. I need help, because I'm new ...
Implementation of a hash table in SWI-Prolog Implementation of a hash table in SWI-Prolog abstract-data-type prolog python swi-prolog Implementation SWI-Prolog Implementation of a hash table in SWI-Prolog So I have to implement an ADT, in this case a hash table in SWI-Prolog. I need help, because I'm new in this progra...
[ 0.01214599609375, 0.01324462890625, 0.00836181640625, 0.004913330078125, -0.02294921875, -0.01324462890625, 0.01019287109375, -0.00775146484375, -0.01007080078125, -0.020263671875, 0.00970458984375, 0.0142822265625, -0.0299072265625, 0.02685546875, 0.0166015625, 0.0186767578125, 0.01...
[ 153941, 1556, 127, 23180, 23, 159, 38969, 9, 10752, 4867, 10, 164789, 10135, 50986, 502, 17198, 50828, 2452, 3454, 765, 29479, 142, 62, 41072, 3871, 4358, 3525, 56037, 46876, 3714, 4034, 208124, 69829, 61924, 18507, 49814, 32354, 4488, 4028...
[ 0.197509765625, 0.224609375, 0.2042236328125, 0.26904296875, 0.01611328125, 0.09716796875, 0.24658203125, 0.0225982666015625, 0.1583251953125, 0.2144775390625, 0.0072021484375, 0.1787109375, 0.054962158203125, 0.1243896484375, 0.1346435546875, 0.057159423828125, 0.1483154296875, 0....
embed
43794866_c1
43794866
prolog
1
vieveBrand, GenevieveSize), tell(vanessa, VanessaBrand, VanessaSize), tell(shawna, ShawnaBrand, ShawnaSize), all_different([H | T]):- member(H,T),!,fail. all_different([_ | T]) :- all_different(T). all_different([_]). tell(X,Y,Z):- write(X), write(‘bought a size '), write(Y),write(Z), write('.'),nl. the operator error ...
vieveBrand, GenevieveSize), tell(vanessa, VanessaBrand, VanessaSize), tell(shawna, ShawnaBrand, ShawnaSize), all_different([H | T]):- member(H,T),!,fail. all_different([_ | T]) :- all_different(T). all_different([_]). tell(X,Y,Z):- write(X), write(‘bought a size '), write(Y),write(Z), write('.'),nl. the operator error ...
[ 0.0010223388671875, -0.00408935546875, 0.01458740234375, 0.0113525390625, -0.002899169921875, 0.005645751953125, -0.03173828125, 0.01806640625, 0.004180908203125, 0.0230712890625, 0.0169677734375, 0.006866455078125, 0.02978515625, 0.00933837890625, -0.00933837890625, 0.009033203125, ...
[ 279, 3134, 571, 37214, 46980, 686, 127167, 13, 14192, 2187, 6011, 179481, 2420, 434, 76, 150207, 756, 238778, 841, 58745, 384, 32786, 618, 38, 120540, 1542, 1723, 1511, 33022, 46526, 13267, 18781, 13169, 39933, 18499, 38162, 1295, 903, 1331...
[ 0.1484375, 0.207763671875, 0.0211029052734375, 0.2108154296875, 0.14306640625, 0.1453857421875, 0.1947021484375, 0.087646484375, 0.2486572265625, 0.0880126953125, 0.121337890625, 0.2149658203125, 0.0140380859375, 0.0177459716796875, 0.135498046875, 0.12548828125, 0.1678466796875, 0...
embed
47626674_c1
47626674
prolog
1
_), List). replaceX(A,_,0,_,A):- !. replaceX(Line,Index,NumElm,Elm,NLine) :- replace(Line,Index,Elm,BLine), Index1 is Index+1, NumElm1 is NumElm-1, replaceX(BLine,Index1,NumElm1,Elm,NLine). loopReplace(ListToReplace, NewList) :- length(ListToReplace, Len), TotalCount is Len-3, between(0, TotalCount, Iterations), betwe...
_), List). replaceX(A,_,0,_,A):- !. replaceX(Line,Index,NumElm,Elm,NLine) :- replace(Line,Index,Elm,BLine), Index1 is Index+1, NumElm1 is NumElm-1, replaceX(BLine,Index1,NumElm1,Elm,NLine). loopReplace(ListToReplace, NewList) :- length(ListToReplace, Len), TotalCount is Len-3, between(0, TotalCount, Iterations), betwe...
[ -0.007781982421875, -0.00011396408081054688, 0.000560760498046875, 0.00653076171875, -0.0106201171875, 0.01263427734375, -0.005645751953125, 0.00946044921875, 0.043701171875, 0.0142822265625, 0.005401611328125, 0.010009765625, 0.007080078125, -0.0111083984375, 0.0034942626953125, -0.00...
[ 101, 247, 32036, 194, 91995, 1542, 284, 454, 2389, 711, 93232, 4153, 39659, 316, 7623, 39, 39102, 1212, 15772, 38274, 31471, 418, 83, 21748, 52782, 5759, 40956, 4332, 23935, 154663, 7763, 2356, 140909, 18226, 33867, 108210, 8316, 17721, 87,...
[ 0.05035400390625, 0.018402099609375, 0.231201171875, 0.05743408203125, 0.28173828125, 0.243408203125, 0.13623046875, 0.007354736328125, 0.1094970703125, 0.07208251953125, 0.2249755859375, 0.05126953125, 0.2022705078125, 0.1011962890625, 0.164306640625, 0.157958984375, 0.0655517578125...
embed
42890254_c0
42890254
prolog
0
Title: How to generate a list with some numbers? Problem title: How to generate a list with some numbers? Tags: prolog Problem: How to generate a list with some numbers? I want to generate a list with all the numbers abc , where a = c and b >= a + c . I know how to generate the numbers, but I do not know how to add the...
How to generate a list with some numbers? How to generate a list with some numbers? prolog How Number How to generate a list with some numbers? I want to generate a list with all the numbers abc , where a = c and b >= a + c . I know how to generate the numbers, but I do not know how to add them to the list because I ca...
[ 0.005889892578125, 0.005035400390625, -0.00830078125, -0.0032958984375, -0.000885009765625, 0.0179443359375, -0.0198974609375, 0.00787353515625, 0.01263427734375, -0.035888671875, -0.004302978515625, -0.020263671875, -0.0179443359375, 0.00677490234375, 0.01531982421875, -0.017578125, ...
[ 11249, 47, 139392, 10, 5303, 678, 3060, 101935, 502, 4867, 103332, 87, 3444, 756, 70, 1563, 238, 7440, 2203, 501, 136, 876, 977, 997, 3714, 3642, 959, 15190, 2856, 831, 54, 339, 18444, 26278, 58745, 866, 61924, 1653, 2063, 67, 37842, ...
[ 0.153076171875, 0.09783935546875, 0.284912109375, 0.10540771484375, 0.267822265625, 0.1951904296875, 0.1163330078125, 0.258544921875, 0.120849609375, 0.1651611328125, 0.2095947265625, 0.0302581787109375, 0.1163330078125, 0.1092529296875, 0.052337646484375, 0.1199951171875, 0.09460449...
embed
50475587_c0
50475587
prolog
0
Title: Prolog what&#x27;s the difference between \+ and \= Problem title: Prolog what&#x27;s the difference between \+ and \= Tags: prolog, logical-operators Problem: Prolog what's the difference between \+ and \= What is the difference \= and \+? because ?- 15\=14. ?- \+ 15=14.<--- this gives an error while the above ...
Prolog what&#x27;s the difference between \+ and \= Prolog what&#x27;s the difference between \+ and \= prolog logical-operators Prolog Compiling Program Files Strawberry Beta Games WarCraft.pro Warning Error Instead Prolog what's the difference between \+ and \= What is the difference \= and \+? because Why?Aren't the...
[ 0.0152587890625, 0.0087890625, 0.01123046875, 0.00433349609375, -0.00726318359375, 0.00897216796875, 0.0042724609375, 0.0029144287109375, 0.004150390625, -0.0027008056640625, -0.0108642578125, -0.006378173828125, 0.0118408203125, 0.0024566650390625, 0.00897216796875, -0.0054931640625, ...
[ 1250, 4867, 2367, 3768, 7, 70, 60212, 17721, 41872, 1328, 136, 1369, 502, 62775, 206469, 15612, 49725, 7663, 42724, 7832, 434, 53623, 48941, 34242, 5550, 11431, 18, 3454, 212059, 175399, 4865, 83, 44084, 1836, 5701, 18499, 17368, 37842, 159...
[ 0.206787109375, 0.297607421875, 0.058868408203125, 0.086669921875, 0.00372314453125, 0.08575439453125, 0.227783203125, 0.099365234375, 0.1435546875, 0.267333984375, 0.079833984375, 0.2222900390625, 0.2000732421875, 0.071044921875, 0.155517578125, 0.0273590087890625, 0.004730224609375...
embed
52721480_c0
52721480
prolog
0
Title: Prolog store results of a function Problem title: Prolog store results of a function Tags: prolog Problem: Prolog store results of a function I am learning the Prolog language. I am implementing a program to transfer money between two users. I have this exchange of money: user(alice). user(bob). money(alice,10)....
Prolog store results of a function Prolog store results of a function prolog Prolog UserSend UserRec Money MoneySend TotalSend MoneyRec TotalRec Prolog store results of a function I am learning the Prolog language. I am implementing a program to transfer money between two users. I have this exchange of money: In this c...
[ 0.010498046875, -0.00384521484375, -0.00738525390625, 0.01055908203125, 0.00007963180541992188, 0.02294921875, -0.01092529296875, 0.0228271484375, 0.020263671875, -0.0264892578125, 0.0147705078125, 0.033447265625, -0.0294189453125, -0.01177978515625, 0.030029296875, 0.0140380859375, ...
[ 1250, 4867, 4343, 50339, 111, 32354, 502, 53400, 294, 3611, 4332, 238, 81669, 33867, 52080, 46876, 29479, 1528, 12302, 17265, 17721, 6626, 72095, 903, 121122, 2174, 11782, 11, 13348, 837, 275, 50258, 16750, 66083, 1556, 757, 64457, 25027, 4...
[ 0.1795654296875, 0.262939453125, 0.2313232421875, 0.2332763671875, 0.0986328125, 0.2071533203125, 0.1326904296875, 0.10247802734375, 0.02288818359375, 0.097412109375, 0.1380615234375, 0.12255859375, 0.1751708984375, 0.121826171875, 0.049713134765625, 0.12646484375, 0.06927490234375, ...
embed
20847647_c0
20847647
prolog
0
Title: Prolog: Simple date range selection rule Problem title: Prolog: Simple date range selection rule Tags: prolog Problem: Prolog: Simple date range selection rule I am a bit stuck on this question - Write a rule where given two people A and B and a date D returns the list of all dates of when A and B have exchanged...
Prolog: Simple date range selection rule Prolog: Simple date range selection rule prolog Prolog Simple Prolog: Simple date range selection rule I am a bit stuck on this question - Write a rule where given two people A and B and a date D returns the list of all dates of when A and B have exchanged messages until date D ...
[ 0.0191650390625, 0.000507354736328125, -0.0172119140625, 0.0556640625, -0.00958251953125, 0.01025390625, -0.0291748046875, 0.0213623046875, 0.01318359375, -0.02685546875, -0.0035400390625, 0.0089111328125, 0.0078125, 0.009765625, 0.01953125, 0.01446533203125, 0.021484375, 0.015625,...
[ 1250, 4867, 60552, 5622, 37457, 132216, 79986, 502, 4785, 179933, 9655, 601, 18781, 34475, 6626, 3395, 62, 136, 335, 391, 30646, 5303, 756, 112474, 111, 3229, 121122, 89914, 24189, 2060, 3714, 44691, 64557, 54529, 14012, 9325, 12638, 3445, ...
[ 0.1571044921875, 0.2330322265625, 0.1549072265625, 0.1290283203125, 0.148681640625, 0.140869140625, 0.1943359375, 0.0931396484375, 0.06390380859375, 0.1011962890625, 0.010223388671875, 0.0533447265625, 0.09429931640625, 0.09765625, 0.1434326171875, 0.126708984375, 0.0916748046875, ...
embed
3871419_c0
3871419
prolog
0
Title: &quot;Returning&quot; a list from a predicate in Prolog Problem title: &quot;Returning&quot; a list from a predicate in Prolog Tags: dcg, prolog Problem: "Returning" a list from a predicate in Prolog resolve(K, K, _) :- writeln('finished'). %goal state resolve(CurrentState, GoalState, Path) :- suc(_, CurrentStat...
&quot;Returning&quot; a list from a predicate in Prolog &quot;Returning&quot; a list from a predicate in Prolog dcg prolog a Returning Prolog CurrentState GoalState Path NextState NextPath NewPath "Returning" a list from a predicate in Prolog I currently have this algorithm, and it works as it should. I am running it l...
[ 0.0186767578125, 0.000499725341796875, -0.01556396484375, 0.00494384765625, -0.0059814453125, 0.0159912109375, -0.01312255859375, -0.00640869140625, 0.0078125, -0.04296875, 0.00128936767578125, 0.00299072265625, -0.03466796875, 0.0054931640625, -0.0089111328125, 0.0107421875, 0.00451...
[ 4332, 987, 592, 41502, 5303, 1295, 1653, 2063, 67, 1250, 4867, 104, 238, 177, 502, 173340, 214, 114063, 135206, 2016, 289, 108421, 4997, 683, 10519, 2356, 82424, 903, 234873, 43240, 237, 5608, 51042, 1884, 3714, 9077, 62163, 47, 69236, 11...
[ 0.1484375, 0.234130859375, 0.159912109375, 0.03179931640625, 0.2010498046875, 0.1534423828125, 0.1663818359375, 0.234619140625, 0.0841064453125, 0.176513671875, 0.240966796875, 0.0194244384765625, 0.0154571533203125, 0.0927734375, 0.133056640625, 0.220458984375, 0.0626220703125, 0....
embed
13245200_c0
13245200
prolog
0
Title: Relational operators use in prolog for variables Problem title: Relational operators use in prolog for variables Tags: clpfd, prolog Problem: Relational operators use in prolog for variables I am writing the following code and is giving perfect results. edge(s,a,300). edge(s,d,20). edge(a,d,400). edge(a,b,1500)....
Relational operators use in prolog for variables Relational operators use in prolog for variables clpfd prolog Relational Path Visited Relational operators use in prolog for variables I am writing the following code and is giving perfect results. Here if I query like I do get the correct response. But no I wish to get ...
[ 0.0198974609375, 0.00762939453125, 0.01708984375, 0.00738525390625, 0.024169921875, 0.0054931640625, -0.0264892578125, -0.007110595703125, 0.00080108642578125, -0.050537109375, -0.00946044921875, -0.0166015625, -0.01446533203125, 0.000576019287109375, 0.0003108978271484375, -0.00171661...
[ 116822, 289, 39933, 4527, 502, 4867, 77336, 100, 71, 108421, 98684, 32562, 25632, 18151, 15787, 50339, 41, 1294, 1884, 2046, 26785, 57553, 110, 32599, 391, 16093, 2525 ]
[ 0.1898193359375, 0.0989990234375, 0.20556640625, 0.043243408203125, 0.1019287109375, 0.1971435546875, 0.179931640625, 0.01531982421875, 0.0477294921875, 0.1307373046875, 0.117431640625, 0.0290374755859375, 0.017913818359375, 0.107177734375, 0.045013427734375, 0.1558837890625, 0.04888...
embed
4081699_c0
4081699
prolog
0
Title: prolog lists and list manipulation Problem title: prolog lists and list manipulation Tags: prolog Problem: prolog lists and list manipulation i am trying to write a binary predicate to take one list, compute mod 5 for each element and then put it in another list. so far, i have done this, mod5(X,L):- R = [], mod...
prolog lists and list manipulation prolog lists and list manipulation prolog the mod5 mod2 Get prolog lists and list manipulation i am trying to write a binary predicate to take one list, compute mod 5 for each element and then put it in another list. so far, i have done this, memb,mod2, addtolist work as expected but ...
[ 0.0045166015625, 0.014892578125, 0.022216796875, -0.0002727508544921875, -0.01361083984375, 0.03271484375, 0.0035858154296875, 0.01171875, 0.007659912109375, -0.0279541015625, 0.015380859375, -0.021484375, 0.011962890625, 0.00909423828125, -0.0072021484375, 0.00592041015625, 0.009094...
[ 502, 4867, 5303, 136, 45258, 1363, 2811, 758, 304, 20779, 31577, 33022, 2394, 6635, 1653, 2063, 67, 5646, 9969, 6743, 190, 12830, 3884, 2060, 163, 6492, 13415, 15190, 188, 6562, 4488, 84751, 20594, 44691, 73866, 56, 26366, 4358 ]
[ 0.1729736328125, 0.2396240234375, 0.203369140625, 0.064453125, 0.2064208984375, 0.046661376953125, 0.175048828125, 0.158447265625, 0.07733154296875, 0.0460205078125, 0.03863525390625, 0.0576171875, 0.09906005859375, 0.055267333984375, 0.1173095703125, 0.148193359375, 0.0584716796875,...
embed
48011232_c1
48011232
prolog
1
,gan). parent(yaara,gan). but when I run ?- num_of_childs(_x). I get: _x = [childrens(mordechai, miriam, 1)] ; _x = [childrens(salax, naima, 1)] ; _x = [childrens(eli, bella, 2)] ; _x = [childrens(eli, bella, 2)] ; _x = [childrens(zvi, tova, 1)] ; _x = [childrens(avram, yokeved, 1)] ; _x = [childrens(haim, irit, 3)] ; ...
,gan). parent(yaara,gan). but when I run ?- num_of_childs(_x). I get: _x = [childrens(mordechai, miriam, 1)] ; _x = [childrens(salax, naima, 1)] ; _x = [childrens(eli, bella, 2)] ; _x = [childrens(eli, bella, 2)] ; _x = [childrens(zvi, tova, 1)] ; _x = [childrens(avram, yokeved, 1)] ; _x = [childrens(haim, irit, 3)] ; ...
[ 0.0106201171875, 0.01177978515625, -0.0179443359375, 0.00494384765625, -0.01519775390625, 0.0322265625, 0.003936767578125, 0.00396728515625, 0.015869140625, -0.039306640625, -0.01385498046875, -0.05419921875, -0.0003147125244140625, 0.00070953369140625, 0.007110595703125, -0.0000901222...
[ 4, 1972, 194, 49129, 395, 2514, 1284, 3229, 87, 11675, 705, 13269, 4390, 1861, 80430, 454, 425, 2046, 101, 2203, 237052, 7, 132, 85862, 7101, 508, 324, 67853, 4879, 20088, 24, 1352, 6169, 36509, 686, 47, 330, 3818, 2198, 11767, 4126, ...
[ 0.035675048828125, 0.203857421875, 0.1099853515625, 0.221435546875, 0.151611328125, 0.1966552734375, 0.09906005859375, 0.0841064453125, 0.07281494140625, 0.206298828125, 0.005889892578125, 0.194580078125, 0.2083740234375, 0.2056884765625, 0.2462158203125, 0.07415771484375, 0.16687011...
embed
3647506_c0
3647506
prolog
0
Title: Compare two atoms in Prolog Problem title: Compare two atoms in Prolog Tags: prolog Problem: Compare two atoms in Prolog I have been learning prolog.. I'm using a editor named prol1.1.1 I need to write rule to compare 2 strings, when i give something like rel(a1,b1). rel(a2,b2). rel(b2,c2). associatedWith(X,Y,Z)...
Compare two atoms in Prolog Compare two atoms in Prolog prolog Compare Prolog Parser Should Compare two atoms in Prolog I have been learning prolog.. I'm using a editor named prol1.1.1 I need to write rule to compare 2 strings, when i give something like it works but when i give i get parser exception what i got from w...
[ 0.00469970703125, 0.0115966796875, 0.000102996826171875, 0.03515625, -0.0010528564453125, -0.005523681640625, 0.011962890625, 0.01165771484375, -0.0107421875, -0.01055908203125, 0.017822265625, 0.024169921875, 0.017822265625, -0.022705078125, 0.0177001953125, 0.003387451171875, 0.003...
[ 113307, 13, 6626, 34627, 7, 23, 1250, 4867, 502, 2392, 2189, 151117, 52080, 17368, 30391, 113200, 83783, 3871, 33022, 79986, 47, 69101, 116, 79315, 8337, 1884, 43240, 366, 131527, 64324, 2203, 41872, 1369, 83, 100, 54744, 142424, 35166, 373...
[ 0.2099609375, 0.07379150390625, 0.1463623046875, 0.2174072265625, 0.08184814453125, 0.0625, 0.1744384765625, 0.251953125, 0.1270751953125, 0.111083984375, 0.140869140625, 0.087158203125, 0.03436279296875, 0.010406494140625, 0.123779296875, 0.1353759765625, 0.0816650390625, 0.019393...
embed
20601964_c0
20601964
prolog
0
Title: singleton variables in prolog query Problem title: singleton variables in prolog query Tags: prolog Problem: singleton variables in prolog query I am new to Prolog and running into a problem. When I ask the query ?-grandfather(daniel,george) on the data below, I get the wrong answer. I don't understand why my qu...
singleton variables in prolog query singleton variables in prolog query prolog singleton variables in prolog query I am new to Prolog and running into a problem. When I ask the query ?-grandfather(daniel,george) on the data below, I get the wrong answer. I don't understand why my query doesn't work. I also received a w...
[ 0.03076171875, 0.0235595703125, -0.00714111328125, 0.00531005859375, -0.0218505859375, 0.0101318359375, -0.0167236328125, -0.00634765625, 0.01416015625, -0.047607421875, -0.0059814453125, -0.023681640625, 0.00225830078125, -0.00142669677734375, 0.00555419921875, -0.0096435546875, -0....
[ 11001, 1507, 77336, 502, 4867, 41, 1294, 23, 3525, 1250, 51042, 2967, 26458, 705, 79139, 1021, 9319, 36108, 141, 429, 1478, 13, 2053, 35064, 44691, 35166, 28219, 15400, 22027, 18, 4488, 1631, 592, 26008, 441, 4, 397, 621, 51713, 74918, ...
[ 0.206787109375, 0.243408203125, 0.255859375, 0.1513671875, 0.2353515625, 0.1170654296875, 0.123046875, 0.03460693359375, 0.0218353271484375, 0.1260986328125, 0.02923583984375, 0.083740234375, 0.0865478515625, 0.0675048828125, 0.13330078125, 0.14599609375, 0.110595703125, 0.09069824...
embed
8011739_c0
8011739
prolog
0
Title: Predicate to filter non constants from a list Problem title: Predicate to filter non constants from a list Tags: prolog Problem: Predicate to filter non constants from a list I'm working on a predicate only_atoms/2(List+, Result-) that I'd like to filter non atoms. For example : only_atoms([1, 2, X, h(Y), 'aba']...
Predicate to filter non constants from a list Predicate to filter non constants from a list prolog a Predicate only_atoms Result Head Tail Predicate to filter non constants from a list I'm working on a predicate only_atoms/2(List+, Result-) that I'd like to filter non atoms. For example : should return I do not care ab...
[ 0.00138092041015625, 0.023193359375, 0.0089111328125, 0.003326416015625, 0.004302978515625, 0.0126953125, 0.003204345703125, 0.011962890625, -0.01263427734375, -0.031494140625, 0.007110595703125, -0.0213623046875, 0.00506591796875, 0.013671875, -0.0029754638671875, 0.031005859375, 0....
[ 7145, 2063, 67, 47, 46312, 351, 53697, 7, 1295, 5303, 502, 4867, 4734, 257, 28016, 126684, 44816, 1218, 379, 20697, 1653, 12477, 154663, 1328, 9, 1884, 34627, 5608, 30646, 87, 54, 959, 517, 1672, 12989, 18151, 17569, 7108, 31635, 34831, ...
[ 0.1483154296875, 0.185546875, 0.07513427734375, 0.011474609375, 0.246337890625, 0.2041015625, 0.197998046875, 0.031707763671875, 0.1090087890625, 0.225830078125, 0.131591796875, 0.1817626953125, 0.1412353515625, 0.113037109375, 0.148681640625, 0.1719970703125, 0.06304931640625, 0.0...
embed
30603283_c0
30603283
prolog
0
Title: Prolog Lists - Finding items with multiple constraints Problem title: Prolog Lists - Finding items with multiple constraints Tags: constraints, list, prolog Problem: Prolog Lists - Finding items with multiple constraints I need to write a prolog program "dump." that can get data from a database with constraints:...
Prolog Lists - Finding items with multiple constraints Prolog Lists - Finding items with multiple constraints constraints list prolog Prolog Lists Finding Prolog Lists - Finding items with multiple constraints I need to write a prolog program "dump." that can get data from a database with constraints: Imagine this simp...
[ 0.00157928466796875, -0.017333984375, 0.00070953369140625, 0.0198974609375, -0.01263427734375, 0.02783203125, -0.0284423828125, -0.0024871826171875, 0.01055908203125, -0.005889892578125, -0.01300048828125, -0.01055908203125, 0.0025634765625, 0.001678466796875, -0.005462646484375, 0.009...
[ 1250, 4867, 32036, 26040, 55769, 678, 48716, 158, 2816, 4288, 5303, 502, 214, 3871, 33022, 1528, 693, 2676, 2046, 2053, 1295, 63399, 133196, 8781, 10, 4153, 18, 10625, 1484, 8337, 756, 360, 80854, 62548, 51193, 143802, 2822, 3789, 10576, ...
[ 0.1553955078125, 0.2418212890625, 0.1956787109375, 0.1097412109375, 0.15478515625, 0.0726318359375, 0.157470703125, 0.126953125, 0.2088623046875, 0.169189453125, 0.09613037109375, 0.1279296875, 0.00469970703125, 0.06890869140625, 0.125244140625, 0.166259765625, 0.1783447265625, 0.2...
embed
47732572_c0
47732572
prolog
0
Title: Last two elements of first list = first two elements of second list - Prolog Problem title: Last two elements of first list = first two elements of second list - Prolog Tags: prolog Problem: Last two elements of first list = first two elements of second list - Prolog Trying to write Prolog rules that incorporate...
Last two elements of first list = first two elements of second list - Prolog Last two elements of first list = first two elements of second list - Prolog prolog Last Prolog List1 List2 Example Last two elements of first list = first two elements of second list - Prolog Trying to write Prolog rules that incorporates the...
[ 0.01214599609375, 0.03515625, 0.004302978515625, 0.0155029296875, -0.0005035400390625, 0.00174713134765625, -0.0078125, 0.01220703125, 0.0213623046875, 0.01129150390625, 0.0279541015625, -0.0087890625, 0.0096435546875, 0.007415771484375, 0.0201416015625, -0.007293701171875, 0.0036315...
[ 21672, 6626, 80854, 5117, 5303, 2203, 17932, 1250, 4867, 502, 32036, 418, 304, 89536, 40858, 33022, 91736, 49504, 1636, 32354, 14858, 207263, 618, 3613, 154663, 10461, 151575, 29568, 4568, 5659, 3611, 39531, 184, 53418, 29479, 29806, 18781, 2...
[ 0.1846923828125, 0.1932373046875, 0.1925048828125, 0.1422119140625, 0.187255859375, 0.06378173828125, 0.13037109375, 0.126708984375, 0.19677734375, 0.0640869140625, 0.1424560546875, 0.0582275390625, 0.1256103515625, 0.078369140625, 0.001007080078125, 0.035247802734375, 0.09423828125,...
embed
18750587_c0
18750587
prolog
0
Title: What&#x27;s happening when I call `even(3)`, with `even` being a generator function? Problem title: What&#x27;s happening when I call `even(3)`, with `even` being a generator function? Tags: failure-slice, prolog Problem: What's happening when I call `even(3)`, with `even` being a generator function? I have the ...
What&#x27;s happening when I call `even(3)`, with `even` being a generator function? What&#x27;s happening when I call `even(3)`, with `even` being a generator function? failure-slice prolog What What's happening when I call `even(3)`, with `even` being a generator function? I have the following generators of odd and e...
[ 0.00885009765625, 0.0301513671875, 0.007415771484375, -0.01416015625, 0.001678466796875, 0.02587890625, 0.0228271484375, -0.012451171875, 0.0250244140625, -0.0233154296875, -0.00201416015625, 0.01519775390625, -0.027587890625, 0.0079345703125, 0.012451171875, 0.0125732421875, 0.01135...
[ 3768, 123087, 3229, 11782, 26301, 69829, 678, 8035, 145823, 32354, 4865, 137578, 13348, 502, 4867, 87, 70270, 136, 3853, 101935, 28219, 15400, 831, 18, 4527, 237, 79227, 50339, 54241, 40956, 2367, 1193, 62163, 34648, 14, 47, 138, 40858, 741...
[ 0.0206451416015625, 0.135986328125, 0.058990478515625, 0.1585693359375, 0.2325439453125, 0.237060546875, 0.042938232421875, 0.036865234375, 0.2381591796875, 0.150146484375, 0.0162506103515625, 0.1807861328125, 0.1378173828125, 0.1182861328125, 0.181884765625, 0.0295562744140625, 0.16...
embed
56938624_c0
56938624
prolog
0
Title: Using procedures module Prolog Problem title: Using procedures module Prolog Tags: prolog, module, swi-prolog, stored-procedures Problem: Using procedures module Prolog I defined a prolog increment procedure inside a module in a procs1.pl file. How can I import the procedures defined within the module and use th...
Using procedures module Prolog Using procedures module Prolog prolog module swi-prolog stored-procedures Using Prolog procs1.pl procs2.pl procs1 Using procedures module Prolog I defined a prolog increment procedure inside a module in a procs1.pl file. How can I import the procedures defined within the module and use th...
[ 0.0157470703125, 0.005035400390625, -0.00604248046875, 0.0174560546875, -0.004913330078125, 0.0123291015625, 0.006591796875, -0.00830078125, 0.002227783203125, -0.0771484375, -0.00262451171875, 0.0201416015625, -0.02197265625, -0.0037384033203125, 0.04736328125, -0.0054931640625, -0....
[ 345, 50491, 7, 88996, 1250, 4867, 502, 2452, 3454, 4343, 232578, 10402, 418, 2424, 5442, 61924, 158661, 46132, 11435, 831, 24927, 28032, 4527, 114977, 38937, 3173, 23253, 40368, 102158, 1884, 12638, 72367, 84797, 6626, 70541, 15044, 13379, 40...
[ 0.09033203125, 0.247802734375, 0.0863037109375, 0.20751953125, 0.177978515625, 0.2236328125, 0.16552734375, 0.1441650390625, 0.113037109375, 0.0958251953125, 0.208984375, 0.212646484375, 0.041748046875, 0.155517578125, 0.0667724609375, 0.1507568359375, 0.2489013671875, 0.0535583496...
embed
57336666_c1
57336666
prolog
1
pfd:fetch_propagator(_176712188) ERROR: [1,548,054] clpfd:do_queue ERROR: [1,548,052] clpfd:parse_clpfd('<garbage_collected>', _176712222) ERROR: ERROR: Use the --stack_limit=size[KMG] command line option or ERROR: ?- set_prolog_flag(stack_limit, 2_147_483_648). to double the limit. Querying ncalc(8, X, Y). immediatley...
pfd:fetch_propagator(_176712188) ERROR: [1,548,054] clpfd:do_queue ERROR: [1,548,052] clpfd:parse_clpfd('<garbage_collected>', _176712222) ERROR: ERROR: Use the --stack_limit=size[KMG] command line option or ERROR: ?- set_prolog_flag(stack_limit, 2_147_483_648). to double the limit. Querying ncalc(8, X, Y). immediatley...
[ 0.01422119140625, 0.006103515625, 0.00927734375, 0.0096435546875, -0.003509521484375, -0.01031494140625, 0.000263214111328125, -0.0211181640625, -0.0020904541015625, -0.04541015625, -0.00531005859375, -0.0184326171875, 0.0017852783203125, -0.01373291015625, 0.0120849609375, 0.007324218...
[ 39557, 71, 29362, 206, 3454, 11902, 4597, 161412, 129697, 123641, 151206, 24638, 12338, 209069, 33139, 246, 944, 13388, 174859, 8194, 2500, 34937, 1970, 402, 429, 196352, 297, 2489, 18197, 108837, 89647, 36836, 4210, 590, 2594, 93343, 62539, ...
[ 0.120361328125, 0.1383056640625, 0.159912109375, 0.0870361328125, 0.1571044921875, 0.1981201171875, 0.160400390625, 0.10052490234375, 0.06787109375, 0.11328125, 0.1881103515625, 0.01934814453125, 0.180419921875, 0.062286376953125, 0.038330078125, 0.050384521484375, 0.11474609375, 0...
embed
15002896_c0
15002896
prolog
0
Title: filter a range using a hash kind of list Problem title: filter a range using a hash kind of list Tags: prolog Problem: filter a range using a hash kind of list I am c++ guy and i am completely new to prolog. I am using sicstus prolog. i came across a need as below: lets say i have a variable A={0,1,2,3} B={-2,-1...
filter a range using a hash kind of list filter a range using a hash kind of list prolog a filter a range using a hash kind of list I am c++ guy and i am completely new to prolog. I am using sicstus prolog. i came across a need as below: lets say i have a variable and i have hash kind of thing like now i need to filter...
[ -0.01275634765625, 0.004486083984375, -0.000362396240234375, -0.0033721923828125, -0.006134033203125, -0.0162353515625, -0.0062255859375, 0.0260009765625, 0.00762939453125, 0.0107421875, 0.00604248046875, 0.038330078125, 0.020751953125, -0.007568359375, 0.0223388671875, -0.004821777343...
[ 46312, 10, 37457, 17368, 1556, 127, 8562, 5303, 502, 4867, 501, 37223, 48948, 3525, 26536, 18253, 36880, 3871, 35064, 77336, 5036, 142424, 62, 136, 335, 903, 7103, 41018, 62775, 14858, 678, 22799, 32316, 12765, 100, 34292, 47143, 154109, 33...
[ 0.261962890625, 0.000885009765625, 0.2042236328125, 0.0675048828125, 0.182373046875, 0.1361083984375, 0.123046875, 0.18505859375, 0.119140625, 0.1793212890625, 0.003753662109375, 0.1923828125, 0.0621337890625, 0.032867431640625, 0.04571533203125, 0.178466796875, 0.0048828125, 0.096...
embed
39183807_c0
39183807
prolog
0
Title: how to save to list and write variable name Problem title: how to save to list and write variable name Tags: swi-prolog, prolog Problem: how to save to list and write variable name I need to implement the predicate term_variables I need to get a term and return a list of variables (every variable only once). for...
how to save to list and write variable name how to save to list and write variable name swi-prolog prolog term_variables Term Vars how to save to list and write variable name I need to implement the predicate I need to get a term and return a list of variables (every variable only once). for every new variable i check ...
[ 0.0123291015625, 0.0167236328125, 0.008544921875, 0.00775146484375, -0.0167236328125, 0.0164794921875, -0.0220947265625, 0.02587890625, -0.00384521484375, -0.01953125, 0.0150146484375, 0.0225830078125, 0.01483154296875, 0.01953125, 0.003997802734375, 0.01531982421875, 0.0110473632812...
[ 3642, 47, 30098, 5303, 136, 33022, 77336, 9351, 91, 2452, 3454, 4867, 502, 13579, 21690, 19736, 2994, 3323, 29479, 1653, 2063, 3871, 2046, 30646, 24145, 3525, 12765, 32786, 15190, 2967, 57, 4126, 177, 172725, 237, 1193, 7, 28864 ]
[ 0.09942626953125, 0.145263671875, 0.2139892578125, 0.233642578125, 0.12255859375, 0.2060546875, 0.2890625, 0.19384765625, 0.01409912109375, 0.163818359375, 0.09130859375, 0.1678466796875, 0.0858154296875, 0.1796875, 0.1591796875, 0.0865478515625, 0.0926513671875, 0.1712646484375, ...
embed
14927283_c0
14927283
prolog
0
Title: deleting &#x27;e&#x27; when it is word final Problem title: deleting &#x27;e&#x27; when it is word final Tags: prolog Problem: deleting 'e' when it is word final can anyone help me delete the final 'e' of a list? I have a data set: lemma([c,h,a,s,e],[vb,t]). lemma([e,a,t],[vb,t]). lemma([l,i,k,e],[vb,t]). lemma(...
deleting &#x27;e&#x27; when it is word final deleting &#x27;e&#x27; when it is word final prolog Token Lemma delete_last New_Lemma Sff deleting 'e' when it is word final can anyone help me delete the final 'e' of a list? I have a data set: and my code is: My code so far deletes the the last element of a list which is f...
[ 0.01031494140625, 0.0115966796875, -0.004150390625, 0.001068115234375, 0.002655029296875, 0.005584716796875, 0.01263427734375, 0.0159912109375, 0.0137939453125, 0.01361083984375, 0.0103759765625, -0.00677490234375, 0.0087890625, 0.006439208984375, 0.00628662109375, -0.016357421875, 0...
[ 24674, 1916, 3768, 13, 3229, 442, 83, 2565, 2704, 502, 4867, 717, 1098, 636, 18023, 154109, 19777, 2356, 5267, 4902, 831, 35672, 4358, 242, 111, 5303, 2053, 5423, 18151, 2060, 8, 74635, 4568, 12830, 5885, 95, 3647, 11, 18, 1250, 28219, ...
[ 0.2073974609375, 0.1005859375, 0.038360595703125, 0.2171630859375, 0.087890625, 0.04583740234375, 0.0933837890625, 0.1651611328125, 0.24755859375, 0.14794921875, 0.2130126953125, 0.04071044921875, 0.1434326171875, 0.0440673828125, 0.209716796875, 0.2327880859375, 0.1663818359375, 0...
embed
15733735_c0
15733735
prolog
0
Title: Why prolog outputs a weird tree-like list? Problem title: Why prolog outputs a weird tree-like list? Tags: prolog, difference-lists, primes Problem: Why prolog outputs a weird tree-like list? In this Prolog code I intend to list the first N primes, (...) biggerPrime(N,P) :- isPrime(N), P is N, !. biggerPrime(N,P...
Why prolog outputs a weird tree-like list? Why prolog outputs a weird tree-like list? prolog difference-lists primes Why N-1 Why prolog outputs a weird tree-like list? In this Prolog code I intend to list the first N primes, And it works fine if I want the list ordered backwards: But if I change the last line of the co...
[ 0.012939453125, 0.0130615234375, 0.0020751953125, 0.01287841796875, 0.004180908203125, 0.0245361328125, -0.007476806640625, -0.0014495849609375, 0.00726318359375, -0.0238037109375, 0.01165771484375, -0.011474609375, 0.00074005126953125, -0.004486083984375, 0.01141357421875, 0.002792358...
[ 44084, 502, 4867, 140992, 179459, 53201, 5062, 5303, 60212, 6562, 20809, 541, 5759, 10, 1250, 18151, 150661, 5117, 7, 43240, 3444, 12989, 297, 4420, 19364, 15549, 4568, 13315, 683, 58745, 866, 4865, 444, 87, 132283, 3293, 132442, 163, 17946...
[ 0.090087890625, 0.1488037109375, 0.2220458984375, 0.1357421875, 0.169921875, 0.203369140625, 0.121337890625, 0.1864013671875, 0.1571044921875, 0.1553955078125, 0.15869140625, 0.097412109375, 0.1390380859375, 0.0006103515625, 0.135498046875, 0.115234375, 0.06048583984375, 0.04882812...
embed
29039032_c1
29039032
prolog
1
* S),R = '17 -') ; (addX( X,37,S),R = '37 +') ),X=0. d(X,S,R) :- (addX( X,50, -1 * S),R='50 -') ; (addX( X,23, -1 * S),R = '23 -') ; (addX( X,27,S),R = '27 +'). c(X,S,R) :- (addX( X,33, S),R='33 ') ; (addX( X,47, S),R = '47 ') ; (addX( X,45,S),R = '45 '). solve(Sum,Res5,Res4,Res3) :- c(Xc,Sum,Res3),d(Xd,Xc,Res4),e(Xe,...
* S),R = '17 -') ; (addX( X,37,S),R = '37 +') ),X=0. d(X,S,R) :- (addX( X,50, -1 * S),R='50 -') ; (addX( X,23, -1 * S),R = '23 -') ; (addX( X,27,S),R = '27 +'). c(X,S,R) :- (addX( X,33, S),R='33 ') ; (addX( X,47, S),R = '47 ') ; (addX( X,45,S),R = '45 '). solve(Sum,Res5,Res4,Res3) :- c(Xc,Sum,Res3),d(Xd,Xc,Res4),e(Xe,...
[ -0.00421142578125, 0.020263671875, 0.01220703125, 0.01123046875, 0.0031280517578125, 0.0172119140625, 0.000217437744140625, 0.01287841796875, 0.0201416015625, -0.0031280517578125, 0.0201416015625, -0.020263671875, -0.00848388671875, 0.020263671875, 0.006744384765625, 0.015625, -0.007...
[ 661, 159, 247, 1052, 2203, 2489, 20, 11, 4028, 1542, 1193, 10945, 294, 997, 145407, 104, 4, 15772, 2525, 68940, 3742, 3768, 132, 9185, 13330, 4633, 86869, 316, 4332, 7, 758, 617, 21320, 71, 29557, 13, 43317, 8894, 418, 304, 363, 7657,...
[ 0.07470703125, 0.1466064453125, 0.091796875, 0.173583984375, 0.08502197265625, 0.184814453125, 0.154052734375, 0.050048828125, 0.1619873046875, 0.215576171875, 0.1595458984375, 0.1571044921875, 0.1207275390625, 0.130615234375, 0.1494140625, 0.1021728515625, 0.01641845703125, 0.0418...
embed
31635851_c0
31635851
prolog
0
Title: Intersection of two lists without duplicate elements in Prolog Problem title: Intersection of two lists without duplicate elements in Prolog Tags: prolog, list, duplicates Problem: Intersection of two lists without duplicate elements in Prolog I need to write a program that finds the intersection of two lists. I...
Intersection of two lists without duplicate elements in Prolog Intersection of two lists without duplicate elements in Prolog prolog list duplicates Intersection Prolog Intersection of two lists without duplicate elements in Prolog I need to write a program that finds the intersection of two lists. I can't use cuts and...
[ -0.003143310546875, 0.018798828125, 0.017578125, 0.0035247802734375, -0.00160980224609375, 0.017333984375, -0.00775146484375, -0.0011138916015625, -0.0029296875, -0.032958984375, -0.01409912109375, 0.019287109375, -0.005889892578125, 0.004302978515625, 0.01318359375, 0.02783203125, 0...
[ 5337, 7, 58994, 6626, 5303, 15490, 171763, 67, 80854, 1250, 4867, 23, 502, 1636, 3871, 33022, 1528, 7413, 1940, 111, 314, 18, 16750, 18151, 25632, 41, 1294, 35166, 831, 54, 3444, 47, 2046, 339, 2203, 11, 238, 33720, 37076, 4358 ]
[ 0.1507568359375, 0.1802978515625, 0.18115234375, 0.1260986328125, 0.208984375, 0.1416015625, 0.258056640625, 0.05780029296875, 0.14892578125, 0.154296875, 0.227783203125, 0.01336669921875, 0.1337890625, 0.0165863037109375, 0.0391845703125, 0.043304443359375, 0.119873046875, 0.11901...
embed
49323894_c1
49323894
prolog
1
be a woman, because just one sentence would have to be false. But that is not because the child is a boy, and he certainly did not lie. In addition, the child is a man, therefore he is not a girl, and therefore both sentences are untrue. The child is certainly not a man. Let the child be a woman. Which has complicated...
be a woman, because just one sentence would have to be false. But that is not because the child is a boy, and he certainly did not lie. In addition, the child is a man, therefore he is not a girl, and therefore both sentences are untrue. The child is certainly not a man. Let the child be a woman. Which has complicated...
[ 0.009521484375, 0.01422119140625, 0.006134033203125, 0.003387451171875, -0.015625, 0.0301513671875, -0.001708984375, 0.0091552734375, 0.0107421875, 0.000023484230041503906, -0.002593994140625, -0.0152587890625, -0.005096435546875, 0.0272216796875, 0.00897216796875, 0.029541015625, 0....
[ 186, 10, 46667, 6637, 1660, 1632, 149357, 2806, 765, 98320, 4966, 959, 29041, 83, 25299, 764, 68782, 28127, 66044, 332, 23040, 15044, 621, 51, 9774, 10842, 96704, 5809, 5154, 2412, 509, 707, 4034, 170918, 787, 8110, 17378, 15546, 136, 110...
[ 0.18115234375, 0.10455322265625, 0.229248046875, 0.0279693603515625, 0.0379638671875, 0.0908203125, 0.2171630859375, 0.001373291015625, 0.01190185546875, 0.209228515625, 0.007171630859375, 0.113525390625, 0.1888427734375, 0.09466552734375, 0.14794921875, 0.0518798828125, 0.1055908203...
embed
63848570_c0
63848570
prolog
0
Title: Append to list if specific word is entered Problem title: Append to list if specific word is entered Tags: prolog, append Problem: Append to list if specific word is entered I am trying to append a list and a word together, and if the user types a specific word I want to add a certain letter to the list. For exa...
Append to list if specific word is entered Append to list if specific word is entered prolog append Append Append to list if specific word is entered I am trying to append a list and a word together, and if the user types a specific word I want to add a certain letter to the list. For example, I want to make the words ...
[ 0.00128173828125, 0.004302978515625, -0.0048828125, 0.01153564453125, 0.0045166015625, 0.028564453125, 0.004913330078125, 0.039794921875, 0.0213623046875, 0.00119781494140625, 0.007568359375, -0.02587890625, -0.022705078125, 0.0213623046875, 0.0003032684326171875, 0.015625, 0.0187988...
[ 5659, 3611, 47, 5303, 2174, 29458, 2565, 83, 30957, 502, 4867, 114689, 297, 31577, 71, 136, 25842, 38937, 52895, 3444, 15190, 24233, 31330, 3249, 34153, 23, 15549, 35509, 97160, 309, 18, 10, 96, 472, 2412, 1250, 7, 3564, 18151, 4734, 19...
[ 0.1463623046875, 0.1580810546875, 0.1207275390625, 0.19873046875, 0.1268310546875, 0.21630859375, 0.1744384765625, 0.035064697265625, 0.1759033203125, 0.1466064453125, 0.224365234375, 0.1671142578125, 0.006988525390625, 0.058349609375, 0.09796142578125, 0.013153076171875, 0.107788085...
embed
64689162_c2
64689162
prolog
2
('A690', date(31, 03, 2020), 80000, 12500, 1). monthlyIncomes('A897', date(16, 03, 2020), 40000, 17000, 2). monthlyIncomes('A897', date(31, 03, 2020), 15000, 17000, 2). monthlyIncomes('A897', date(02, 29, 2020), 50000, 17000, 1). monthlyIncomes('A566', date(30, 04, 2020), 50000, 16500, 3). monthlyIncomes('A255', date(1...
('A690', date(31, 03, 2020), 80000, 12500, 1). monthlyIncomes('A897', date(16, 03, 2020), 40000, 17000, 2). monthlyIncomes('A897', date(31, 03, 2020), 15000, 17000, 2). monthlyIncomes('A897', date(02, 29, 2020), 50000, 17000, 1). monthlyIncomes('A566', date(30, 04, 2020), 50000, 16500, 3). monthlyIncomes('A255', date(1...
[ -0.0084228515625, -0.00823974609375, -0.00262451171875, 0.0240478515625, -0.004486083984375, -0.008056640625, -0.01171875, 0.0128173828125, 0.005401611328125, 0.0142822265625, 0.0177001953125, 0.0032806396484375, -0.0078125, -0.00994873046875, 0.018310546875, 0.006439208984375, 0.012...
[ 15, 25, 284, 107791, 5622, 5016, 5098, 11075, 247, 382, 28568, 4, 427, 4283, 4879, 5, 176735, 4153, 277, 90, 1019, 14773, 132, 2485, 201, 729, 9508, 4958, 29213, 9550, 30777, 190, 186225, 1197, 5742, 611, 8439, 135455, 90980, 13821, 616...
[ 0.056671142578125, 0.06787109375, 0.20947265625, 0.36181640625, 0.1353759765625, 0.177978515625, 0.1385498046875, 0.20849609375, 0.045806884765625, 0.1075439453125, 0.201904296875, 0.020416259765625, 0.09686279296875, 0.20654296875, 0.07403564453125, 0.061737060546875, 0.21630859375,...
embed
64896562_c0
64896562
prolog
0
Title: Printing minimum answer as list? Problem title: Printing minimum answer as list? Tags: prolog Problem: Printing minimum answer as list? I have a predicate min1([4,2,3,5],L). I want it to return the minimum number for each time the list is sent back as a tail. Example: List Head|Tail Tail L [4,2,3,5] [4,2,3,5] [2...
Printing minimum answer as list? Printing minimum answer as list? prolog Printing List Head Tail Min TMin min1 Printing minimum answer as list? I have a predicate min1([4,2,3,5],L). I want it to return the minimum number for each time the list is sent back as a tail. Example: My code: The problem that I am facing is wi...
[ 0.00946044921875, -0.00069427490234375, 0.01531982421875, -0.00390625, -0.00982666015625, 0.018798828125, 0.01080322265625, -0.0157470703125, 0.0074462890625, -0.00994873046875, 0.0166015625, -0.0016326904296875, 0.0108642578125, -0.00445556640625, 0.01416015625, 0.0238037109375, 0.0...
[ 39754, 214, 15440, 35166, 237, 5303, 502, 4867, 32036, 44816, 1218, 379, 4211, 73, 881, 418, 1653, 2063, 67, 617, 304, 92714, 866, 3444, 30646, 14012, 12638, 1733, 9325, 4420, 46741, 18151, 2967, 7808, 678, 339, 959, 28412, 23937, 33022, ...
[ 0.2115478515625, 0.06884765625, 0.2568359375, 0.2353515625, 0.158447265625, 0.2110595703125, 0.0860595703125, 0.1112060546875, 0.1646728515625, 0.110107421875, 0.09112548828125, 0.06365966796875, 0.2235107421875, 0.2012939453125, 0.2293701171875, 0.057586669921875, 0.1392822265625, ...
embed
69750601_c0
69750601
prolog
0
Title: Filter the numeric elements based on target value in Prolog Problem title: Filter the numeric elements based on target value in Prolog Tags: sorting, prolog, list, filter, arrays Problem: Filter the numeric elements based on target value in Prolog public class Filter { public static List<Number> apply(List<Numbe...
Filter the numeric elements based on target value in Prolog Filter the numeric elements based on target value in Prolog sorting prolog list filter arrays Filter Prolog List Number Double lst.stream Number::doubleValue Collectors.toCollection ArrayList::new Integer System.out.println Filter.apply Arrays.asList Filter th...
[ -0.0027008056640625, -0.0015716552734375, 0.006927490234375, -0.020751953125, 0.0184326171875, 0.01080322265625, -0.0208740234375, 0.01171875, 0.01202392578125, 0.01336669921875, 0.000789642333984375, -0.0174560546875, -0.037353515625, -0.006256103515625, 0.017333984375, -0.01025390625...
[ 128896, 70, 54744, 238, 80854, 35509, 98, 30388, 34292, 23, 1250, 4867, 12096, 214, 502, 5303, 46312, 10298, 4778, 32036, 103332, 107172, 271, 86429, 21555, 2661, 856, 50770, 138521, 25251, 188, 78457, 133, 69253, 154663, 54936, 44401, 12353,...
[ 0.287353515625, 0.018951416015625, 0.2020263671875, 0.1102294921875, 0.1995849609375, 0.14208984375, 0.0970458984375, 0.260986328125, 0.224853515625, 0.0594482421875, 0.194580078125, 0.288330078125, 0.1829833984375, 0.007080078125, 0.12890625, 0.1416015625, 0.259765625, 0.124511718...
embed
23711790_c0
23711790
prolog
0
Title: Comparision of abstract machines for execution of Prolog Problem title: Comparision of abstract machines for execution of Prolog Tags: abstract-machine, prolog, warren-abstract-machine Problem: Comparision of abstract machines for execution of Prolog I'm looking for research paper or any other publication that c...
Comparision of abstract machines for execution of Prolog Comparision of abstract machines for execution of Prolog abstract-machine prolog warren-abstract-machine Comparision Prolog Comparision of abstract machines for execution of Prolog I'm looking for research paper or any other publication that compare different abs...
[ 0.0184326171875, -0.0036468505859375, 0.0091552734375, 0.017578125, -0.000492095947265625, 0.0015106201171875, -0.002044677734375, -0.00115203857421875, -0.00946044921875, -0.01123046875, 0.0091552734375, 0.004852294921875, -0.0189208984375, -0.00994873046875, 0.009033203125, -0.006774...
[ 113307, 14, 6889, 111, 164789, 116491, 100, 71924, 1250, 4867, 103149, 502, 1631, 982, 9, 2055, 2816, 15390, 16487, 25188, 15122, 104345, 69101, 12921, 17678, 1632, 678, 29481, 1314, 959, 35509, 1563, 590, 51592, 144732, 208124, 37202, 3647, ...
[ 0.1700439453125, 0.10528564453125, 0.0953369140625, 0.0257720947265625, 0.25146484375, 0.206298828125, 0.036376953125, 0.1461181640625, 0.1611328125, 0.2479248046875, 0.19091796875, 0.150634765625, 0.099609375, 0.1463623046875, 0.005584716796875, 0.0338134765625, 0.1429443359375, 0...
embed
35811283_c0
35811283
prolog
0
Title: Generate multiple answers and put in list without using findall/3 Problem title: Generate multiple answers and put in list without using findall/3 Tags: prolog Problem: Generate multiple answers and put in list without using findall/3 the below code works perfectly but i want to get the multiple answers in a lis...
Generate multiple answers and put in list without using findall/3 Generate multiple answers and put in list without using findall/3 prolog findall/3 Generate Generate multiple answers and put in list without using findall/3 the below code works perfectly but i want to get the multiple answers in a list without using th...
[ 0.001739501953125, 0.010009765625, -0.0037689208984375, -0.00634765625, -0.0098876953125, 0.010009765625, -0.0025177001953125, -0.003875732421875, 0.01708984375, -0.0341796875, -0.007171630859375, 0.0172119140625, -0.00007772445678710938, -0.0062255859375, -0.00860595703125, 0.01770019...
[ 155370, 67, 48716, 35166, 7, 3884, 23, 5303, 15490, 7413, 5584, 18113, 502, 4867, 35064, 18151, 43240, 169123, 3444, 2046, 32354, 4488, 1250, 1528, 134598 ]
[ 0.171630859375, 0.0386962890625, 0.204833984375, 0.1925048828125, 0.022430419921875, 0.06890869140625, 0.0955810546875, 0.1654052734375, 0.07916259765625, 0.1064453125, 0.152587890625, 0.22314453125, 0.06451416015625, 0.1630859375, 0.006378173828125, 0.0762939453125, 0.00387573242187...
embed
21460061_c0
21460061
prolog
0
Title: How to define subsumptions in prolog lists Problem title: How to define subsumptions in prolog lists Tags: prolog Problem: How to define subsumptions in prolog lists To do unification in Prolog, we write: match(X, Y) :- X=Y. Instead of matching (X, Y) succeeding if X = Y. I would like it to succeed if each eleme...
How to define subsumptions in prolog lists How to define subsumptions in prolog lists prolog How How to define subsumptions in prolog lists To do unification in Prolog, we write: Instead of matching (X, Y) succeeding if X = Y. I would like it to succeed if each elements of X is a subset or superset of the corresponding...
[ -0.0079345703125, 0.021728515625, 0.0250244140625, 0.003997802734375, -0.01519775390625, -0.0196533203125, -0.0028839111328125, 0.0242919921875, 0.0252685546875, -0.00823974609375, 0.014892578125, 0.01483154296875, 0.0004673004150390625, -0.031005859375, 0.0123291015625, -0.00144958496...
[ 11249, 61924, 1614, 71836, 5256, 502, 4867, 5303, 23, 51, 41274, 1250, 33022, 175399, 14858, 214, 1542, 990, 214493, 2174, 1193, 2203, 1884, 12638, 80854, 3509, 1601, 42518, 12830, 18151, 1363, 15824, 15549, 23534, 17721, 332, 136, 38043, 3...
[ 0.002777099609375, 0.1876220703125, 0.220947265625, 0.2431640625, 0.162353515625, 0.133544921875, 0.18701171875, 0.1614990234375, 0.006317138671875, 0.10675048828125, 0.133544921875, 0.1202392578125, 0.06292724609375, 0.049530029296875, 0.16943359375, 0.0234832763671875, 0.0036926269...
embed
69584238_c0
69584238
prolog
0
Title: Prolog: Redirect system output Problem title: Prolog: Redirect system output Tags: try-catch, prolog Problem: Prolog: Redirect system output There are Prolog predicates that output error messages, like load_files/1 in case the file could not be found: error(existence_error(source_sink,'/home/foo/nothinghere.txt'...
Prolog: Redirect system output Prolog: Redirect system output try-catch prolog Prolog Redirect load_files existence_error source_sink nothinghere.txt _3724 Prolog: Redirect system output There are Prolog predicates that output error messages, like load_files/1 in case the file could not be found: These error messages a...
[ 0.02392578125, 0.0263671875, -0.001007080078125, -0.00011920928955078125, -0.023681640625, -0.000042438507080078125, -0.0018768310546875, -0.00732421875, -0.0015411376953125, -0.035888671875, 0.009765625, 0.006591796875, 0.00098419189453125, -0.02099609375, 0.032470703125, 0.0108032226...
[ 1250, 4867, 853, 80581, 5426, 140992, 9790, 4460, 206, 502, 72367, 29822, 116311, 188800, 31344, 7, 14068, 33720, 35593, 124326, 10945, 2357, 1653, 2063, 18499, 89914, 11583, 7225, 11435, 5809, 959, 14037, 28412, 47, 6138, 1003, 176377, 30646...
[ 0.168701171875, 0.2432861328125, 0.11279296875, 0.265869140625, 0.09857177734375, 0.1927490234375, 0.09979248046875, 0.104736328125, 0.006195068359375, 0.135986328125, 0.1719970703125, 0.1446533203125, 0.13916015625, 0.1290283203125, 0.172607421875, 0.046905517578125, 0.1588134765625...
embed
40071513_c1
40071513
prolog
1
post. let enemyName = this.item.text let data = {"pokemon":enemyName} $.ajax({ url : END_POINT, method : 'post', contentType: 'application/json', dataType : 'json', data : JSON.stringify(data), success : function (res) { console.log(res); }, error :function (res) { console.log(res); } }) How can I solve this problem? ...
post. let enemyName = this.item.text let data = {"pokemon":enemyName} $.ajax({ url : END_POINT, method : 'post', contentType: 'application/json', dataType : 'json', data : JSON.stringify(data), success : function (res) { console.log(res); }, error :function (res) { console.log(res); } }) How can I solve this problem? ...
[ -0.00140380859375, 0.006378173828125, 0.01104736328125, -0.004486083984375, 0.00970458984375, -0.00396728515625, 0.0074462890625, 0.0186767578125, -0.0189208984375, -0.0208740234375, 0.021728515625, 0.005126953125, 0.00057220458984375, -0.00390625, 0.01263427734375, -0.0113525390625, ...
[ 1305, 2633, 22, 195, 53, 163612, 2203, 903, 217, 22829, 2053, 24468, 74768, 1151, 1176, 3650, 8949, 425, 25002, 39015, 9698, 59537, 55300, 4594, 10941, 196707, 101687, 170, 1681, 821, 58627, 91693, 40383, 10135, 36272, 32354, 2109, 130250, ...
[ 0.1978759765625, 0.1402587890625, 0.130859375, 0.221923828125, 0.1044921875, 0.1873779296875, 0.02947998046875, 0.173828125, 0.1046142578125, 0.184326171875, 0.1558837890625, 0.1197509765625, 0.1693115234375, 0.176025390625, 0.1505126953125, 0.03656005859375, 0.1937255859375, 0.120...
embed
51182769_c0
51182769
prolog
0
Title: Prolog list and filtering Problem title: Prolog list and filtering Tags: prolog, list, filtering Problem: Prolog list and filtering I have a problem with a Prolog exercise. I'm trying to study Computer Science alone at my home, and I'm doing a series of exercises I've taken from the Internet. The question is the...
Prolog list and filtering Prolog list and filtering prolog list filtering Prolog Prolog list and filtering I have a problem with a Prolog exercise. I'm trying to study Computer Science alone at my home, and I'm doing a series of exercises I've taken from the Internet. The question is the following; Example must result ...
[ 0.010009765625, 0.0283203125, 0.0017547607421875, -0.004302978515625, -0.01068115234375, 0.022216796875, -0.012939453125, -0.0037689208984375, -0.0167236328125, -0.008544921875, 0.000865936279296875, -0.000225067138671875, -0.016357421875, -0.02197265625, -0.011962890625, 0.01055908203...
[ 1250, 4867, 5303, 136, 46312, 214, 502, 765, 2967, 678, 10, 81979, 31577, 35187, 40139, 28745, 75447, 759, 5368, 20594, 7, 39958, 2665, 9655, 25632, 89536, 8705, 8110, 16750, 39, 86869, 442, 1284, 18, 35672, 26458, 52080, 16030, 33022, 47...
[ 0.18212890625, 0.2548828125, 0.2193603515625, 0.0869140625, 0.2587890625, 0.098876953125, 0.11083984375, 0.0198974609375, 0.1356201171875, 0.011077880859375, 0.015533447265625, 0.2081298828125, 0.1002197265625, 0.0745849609375, 0.09503173828125, 0.091552734375, 0.1275634765625, 0.0...
embed
59371192_c0
59371192
prolog
0
Title: Prolog constraint for cyclical ascending list Problem title: Prolog constraint for cyclical ascending list Tags: clpfd, list, prolog Problem: Prolog constraint for cyclical ascending list I want to formulate a constraint in SWI-Prolog, using CLP (FD, in particular), that a list is a cyclical ascending list. By t...
Prolog constraint for cyclical ascending list Prolog constraint for cyclical ascending list clpfd list prolog Prolog cyclical_ascending Prolog constraint for cyclical ascending list I want to formulate a constraint in SWI-Prolog, using CLP (FD, in particular), that a list is a cyclical ascending list. By that I mean a ...
[ 0.02197265625, -0.0096435546875, 0.0162353515625, 0.0244140625, 0.0137939453125, -0.011962890625, -0.01361083984375, 0.01275634765625, 0.00156402587890625, -0.0166015625, -0.000896453857421875, -0.00885009765625, -0.01043701171875, 0.0264892578125, 0.00823974609375, 0.01318359375, -0...
[ 1250, 4867, 158, 2816, 4288, 100, 187830, 6827, 82800, 214, 5303, 33139, 39557, 71, 502, 162, 329, 3444, 26168, 159, 38969, 10752, 17368, 313, 37352, 98553, 83, 10, 20324, 33636, 47014, 5701, 1632, 5256, 81113, 382, 77336, 5809, 99091, 95...
[ 0.1578369140625, 0.25048828125, 0.1036376953125, 0.2037353515625, 0.174072265625, 0.03424072265625, 0.22607421875, 0.121826171875, 0.177001953125, 0.0953369140625, 0.2064208984375, 0.016448974609375, 0.01318359375, 0.079833984375, 0.0689697265625, 0.029937744140625, 0.1085205078125, ...
embed
72009797_c0
72009797
prolog
0
Title: Find a large interval containing no numbers of a random number list Problem title: Find a large interval containing no numbers of a random number list Tags: prolog, intervals Problem: Find a large interval containing no numbers of a random number list Suppose I have a list of random integer numbers [x1,..,xn] . ...
Find a large interval containing no numbers of a random number list Find a large interval containing no numbers of a random number list prolog intervals Find a..b Find a large interval containing no numbers of a random number list Suppose I have a list of random integer numbers [x1,..,xn] . This list is not sorted, and...
[ -0.0034637451171875, -0.01531982421875, 0.0164794921875, 0.015380859375, -0.0230712890625, 0.0191650390625, 0.00762939453125, 0.001495361328125, 0.00173187255859375, 0.0189208984375, -0.00469970703125, 0.01416015625, -0.0103759765625, 0.01519775390625, 0.0191650390625, 0.00198364257812...
[ 26040, 21334, 51514, 70541, 214, 110, 101935, 111, 96759, 14012, 5303, 502, 4867, 10, 5, 275, 765, 892, 1505, 425, 418, 19, 959, 17497, 3444, 71864, 234873, 12096, 27140, 2481, 11249, 2806, 7413, 142, 678, 881, 5134, 16093, 136, 876, 24...
[ 0.1409912109375, 0.1666259765625, 0.286376953125, 0.154541015625, 0.09136962890625, 0.1805419921875, 0.1602783203125, 0.0271453857421875, 0.1517333984375, 0.131591796875, 0.1551513671875, 0.1168212890625, 0.1976318359375, 0.06298828125, 0.013671875, 0.12353515625, 0.0252532958984375,...
embed
9785205_c0
9785205
prolog
0
Title: List as graph in prolog Problem title: List as graph in prolog Tags: prolog, logic Problem: List as graph in prolog I'm trying to generate all possible 'ways' from one element in matrix to another, Main conditional says that Element in matrix can be connected with other only if elements share at least one corner...
List as graph in prolog List as graph in prolog prolog logic List row:R1 column:C1 value:V1 row:R2 column:C2 value:V2 List as graph in prolog I'm trying to generate all possible 'ways' from one element in matrix to another, Main conditional says that Element in matrix can be connected with other only if elements share ...
[ -0.01251220703125, 0.0167236328125, -0.0023651123046875, 0.006622314453125, -0.017822265625, -0.00860595703125, -0.0205078125, 0.017333984375, 0.006103515625, -0.019775390625, 0.021484375, -0.00872802734375, -0.005706787109375, 0.018310546875, 0.002471923828125, 0.02099609375, -0.000...
[ 32036, 237, 41382, 23, 502, 4867, 62775, 15555, 1052, 418, 3365, 316, 34292, 856, 304, 31577, 139392, 756, 7722, 102966, 1295, 12830, 50944, 425, 47, 15700, 12321, 35431, 289, 48325, 162711, 678, 3789, 4734, 80854, 12008, 19713, 107767, 106...
[ 0.251220703125, 0.1397705078125, 0.25830078125, 0.0157623291015625, 0.150390625, 0.2235107421875, 0.12060546875, 0.15185546875, 0.0408935546875, 0.0237884521484375, 0.064453125, 0.0780029296875, 0.1204833984375, 0.0936279296875, 0.061004638671875, 0.04150390625, 0.1456298828125, 0....
embed
21066294_c0
21066294
prolog
0
Title: knight&#x27;s tour efficient solution Problem title: knight&#x27;s tour efficient solution Tags: combinatorics, knights-tour, prolog Problem: knight's tour efficient solution I have build a code in prolog to find a series of legal moves in which the knight lands on each square of the chessboard(8x8) exactly once...
knight&#x27;s tour efficient solution knight&#x27;s tour efficient solution combinatorics knights-tour prolog C_X R_X C_Y R_Y knight's tour efficient solution I have build a code in prolog to find a series of legal moves in which the knight lands on each square of the chessboard(8x8) exactly once. I have used a logic l...
[ 0.001251220703125, 0.010498046875, 0.0296630859375, 0.00518798828125, 0.008544921875, 0.01312255859375, -0.033447265625, 0.0260009765625, 0.000720977783203125, -0.04931640625, -0.00151824951171875, -0.000858306884765625, -0.0042724609375, 0.0013885498046875, -0.019287109375, 0.01574707...
[ 472, 54350, 3768, 9742, 93766, 29806, 22321, 3826, 7, 28889, 502, 4867, 1542, 1723, 25, 45367, 18151, 7413, 36549, 8437, 25813, 33532, 12638, 108047, 290, 24351, 1019, 425, 50490, 66161, 24145, 62775, 35064, 382, 52895, 7108, 7565, 116, 257...
[ 0.09197998046875, 0.2408447265625, 0.0797119140625, 0.251220703125, 0.20458984375, 0.1500244140625, 0.0789794921875, 0.03778076171875, 0.0596923828125, 0.2308349609375, 0.141845703125, 0.2100830078125, 0.107177734375, 0.0894775390625, 0.03143310546875, 0.075439453125, 0.1741943359375...
embed
31506781_c0
31506781
prolog
0
Title: Create list of pair of values 0 to n-1 in lexicographical order Problem title: Create list of pair of values 0 to n-1 in lexicographical order Tags: list, prolog Problem: Create list of pair of values 0 to n-1 in lexicographical order I'm doing a program with Result is a pair of values [X,Y] between 0 and N-1 in...
Create list of pair of values 0 to n-1 in lexicographical order Create list of pair of values 0 to n-1 in lexicographical order list prolog Create n-1 List Create list of pair of values 0 to n-1 in lexicographical order I'm doing a program with Result is a pair of values [X,Y] between 0 and N-1 in lexicographic order I...
[ 0.0172119140625, 0.005462646484375, 0.011962890625, -0.004547119140625, 0.0004100799560546875, 0.033203125, -0.005401611328125, -0.0177001953125, 0.0032958984375, -0.00994873046875, 0.0107421875, -0.015869140625, 0.0076904296875, -0.022216796875, -0.00095367431640625, 0.01434326171875,...
[ 151313, 5303, 111, 80836, 142424, 757, 47, 653, 5759, 95, 73140, 48461, 12989, 23, 502, 4867, 32036, 20594, 1528, 126684, 83, 1542, 4, 1723, 17721, 541, 5036, 20949, 2367, 3444, 5117, 17, 720, 2320, 1284, 1250, 13695, 7730, 76199, 163, ...
[ 0.1591796875, 0.215576171875, 0.05224609375, 0.2218017578125, 0.2025146484375, 0.1737060546875, 0.115234375, 0.102294921875, 0.2296142578125, 0.0672607421875, 0.191162109375, 0.119873046875, 0.1956787109375, 0.0323486328125, 0.1236572265625, 0.257080078125, 0.2398681640625, 0.02359...
embed
19548730_c0
19548730
prolog
0
Title: Prolog XPCE how to get multiple values from text item? Problem title: Prolog XPCE how to get multiple values from text item? Tags: prolog, xpce, swi-prolog Problem: Prolog XPCE how to get multiple values from text item? I have a dialog which contains multiple text item elements and a button. How can i retrieve t...
Prolog XPCE how to get multiple values from text item? Prolog XPCE how to get multiple values from text item? prolog xpce swi-prolog text Prolog XPCE Add NameItem text_item Name InstItem Instruction IngrItem Ingredients TimeItem Time Store Rvalue Prolog XPCE how to get multiple values from text item? I have a dialog wh...
[ 0.0016937255859375, -0.012451171875, 0.001251220703125, 0.0185546875, 0.0106201171875, 0.0286865234375, 0.0142822265625, 0.0159912109375, 0.0167236328125, -0.0106201171875, 0.0220947265625, 0.00640869140625, 0.00098419189453125, 0.0019989013671875, 0.0009002685546875, -0.01531982421875...
[ 1250, 4867, 45005, 10854, 3642, 2046, 48716, 142424, 1295, 7986, 35735, 502, 1022, 254, 329, 2452, 3454, 29117, 2982, 217, 195, 72022, 242238, 19055, 14934, 27494, 26519, 80854, 77679, 831, 3996, 4527 ]
[ 0.0921630859375, 0.1702880859375, 0.10693359375, 0.1561279296875, 0.03533935546875, 0.10076904296875, 0.223876953125, 0.2005615234375, 0.05548095703125, 0.16552734375, 0.1717529296875, 0.041900634765625, 0.0321044921875, 0.01123046875, 0.0755615234375, 0.07537841796875, 0.05798339843...
embed
49274383_c0
49274383
prolog
0
Title: Prolog having trouble with recursion and LPN exercise Problem title: Prolog having trouble with recursion and LPN exercise Tags: recursion, prolog Problem: Prolog having trouble with recursion and LPN exercise I need to do LPN practical 3 of section 3.4: writing a travel/3 rule with which a route can be searched...
Prolog having trouble with recursion and LPN exercise Prolog having trouble with recursion and LPN exercise recursion prolog Prolog LPN Base Recursive Prolog having trouble with recursion and LPN exercise I need to do LPN practical 3 of section 3.4: writing a travel/3 rule with which a route can be searched for. ( link...
[ 0.0169677734375, 0.029541015625, 0.004730224609375, -0.01226806640625, 0.0086669921875, 0.00518798828125, -0.009033203125, -0.016357421875, 0.01708984375, -0.06396484375, -0.0098876953125, -0.02197265625, -0.0308837890625, 0.0166015625, 0.01190185546875, 0.0189208984375, 0.0086669921...
[ 1250, 4867, 63134, 678, 195625, 1830, 136, 339, 34440, 81979, 502, 44978, 853, 48650, 3871, 138155, 138, 104271, 32562, 26983, 18113, 79986, 36439, 831, 33938, 100, 3126, 82424, 29806, 91736, 7413, 3535, 23, 13695, 1733, 17475, 18499, 1528, ...
[ 0.151611328125, 0.241455078125, 0.141357421875, 0.035125732421875, 0.199951171875, 0.090576171875, 0.0037841796875, 0.03759765625, 0.1685791015625, 0.17724609375, 0.0889892578125, 0.12744140625, 0.000701904296875, 0.12451171875, 0.010528564453125, 0.1461181640625, 0.03338623046875, ...
embed
19478862_c0
19478862
prolog
0
Title: What&#x27;s the difference between following two Prolog lists? Problem title: What&#x27;s the difference between following two Prolog lists? Tags: prolog Problem: What's the difference between following two Prolog lists? I'm kind of confused between the difference of the two following lists: K = [1,2,3 | X]. and...
What&#x27;s the difference between following two Prolog lists? What&#x27;s the difference between following two Prolog lists? prolog What Prolog What's the difference between following two Prolog lists? I'm kind of confused between the difference of the two following lists: and The question in the book of Bratko is act...
[ 0.02490234375, 0.00186920166015625, 0.005615234375, -0.0022735595703125, 0.00037384033203125, 0.01519775390625, -0.010986328125, 0.01055908203125, 0.01470947265625, -0.006927490234375, 0.013671875, -0.0125732421875, 0.005462646484375, 0.007232666015625, 0.004913330078125, 0.01477050781...
[ 3768, 60212, 17721, 25632, 6626, 1250, 4867, 5303, 502, 7, 55681, 9655, 12877, 119794, 265, 43701, 158, 238, 61924, 339, 304, 5701, 237, 341, 41, 1294, 155761, 58745, 1542, 73342, 83, 4460, 33, 77336, 1193, 831, 152382, 23 ]
[ 0.042877197265625, 0.1962890625, 0.09002685546875, 0.185546875, 0.122314453125, 0.1705322265625, 0.248779296875, 0.2239990234375, 0.1378173828125, 0.001434326171875, 0.04364013671875, 0.0594482421875, 0.0341796875, 0.1383056640625, 0.1446533203125, 0.02667236328125, 0.150146484375, ...
embed
71531152_c0
71531152
prolog
0
Title: Prolog. How to return a list of integers between a range Problem title: Prolog. How to return a list of integers between a range Tags: range, prolog, list Problem: Prolog. How to return a list of integers between a range I want to return a list of integers given an input: rList :- (X,Y,[]) (1,4, N) returns N= [1...
Prolog. How to return a list of integers between a range Prolog. How to return a list of integers between a range range prolog list Prolog How must_be Prolog. How to return a list of integers between a range I want to return a list of integers given an input: rList :- (X,Y,[]) (1,4, N) returns N= [1,2,3,4]. This also n...
[ -0.0086669921875, -0.00628662109375, -0.0002574920654296875, 0.01031494140625, -0.0167236328125, 0.03515625, -0.01483154296875, 0.0167236328125, 0.00439453125, -0.01519775390625, 0.01470947265625, -0.004974365234375, -0.01153564453125, -0.0020294189453125, 0.01953125, 0.0107421875, 0...
[ 1250, 4867, 11249, 47, 30646, 5303, 111, 892, 26255, 17721, 37457, 502, 8110, 372, 87, 3444, 34475, 107730, 1690, 154663, 15772, 1542, 1723, 1065, 163324, 541, 1369, 133063, 82449, 27117, 4488, 40907, 3789, 9451, 5428, 617, 363, 304, 206808...
[ 0.1756591796875, 0.2498779296875, 0.07904052734375, 0.020294189453125, 0.245361328125, 0.1912841796875, 0.0227203369140625, 0.1776123046875, 0.155517578125, 0.22021484375, 0.2086181640625, 0.1488037109375, 0.07965087890625, 0.08154296875, 0.0057373046875, 0.0994873046875, 0.064941406...
embed
46746585_c0
46746585
prolog
0
Title: Calculating sums in Prolog Problem title: Calculating sums in Prolog Tags: sum, prolog Problem: Calculating sums in Prolog I'm working on an expert system assignment in Prolog, and I'm trying to improve my code. The system shows the user questions, each one has an answer between a range (always, often, rarely, n...
Calculating sums in Prolog Calculating sums in Prolog sum prolog Calculating Prolog Res Sum Sum1 Sum2 Sum3 Calculating sums in Prolog I'm working on an expert system assignment in Prolog, and I'm trying to improve my code. The system shows the user questions, each one has an answer between a range (always, often, rarel...
[ 0.0147705078125, -0.0166015625, 0.0038299560546875, -0.0028533935546875, -0.013916015625, 0.016357421875, -0.008056640625, 0.015625, 0.019775390625, -0.03515625, 0.0029144287109375, 0.00872802734375, 0.0224609375, 0.0157470703125, 0.014404296875, 0.00018596649169921875, 0.00386047363...
[ 212467, 26518, 10554, 7, 23, 1250, 4867, 502, 9624, 36335, 304, 363, 20697, 26808, 5426, 95486, 52295, 18151, 45831, 38937, 17582, 35166, 17721, 37457, 102966, 27983, 41207, 8306, 12638, 9655, 3444, 15190, 34292, 2704, 77336, 959, 2886, 4527,...
[ 0.188232421875, 0.032470703125, 0.1982421875, 0.056976318359375, 0.02490234375, 0.154296875, 0.2325439453125, 0.0989990234375, 0.0872802734375, 0.1971435546875, 0.042388916015625, 0.09942626953125, 0.01495361328125, 0.06964111328125, 0.0601806640625, 0.157470703125, 0.06158447265625,...
embed
22717438_c0
22717438
prolog
0
Title: In prolog, how can I contiune after fail in a rule? Problem title: In prolog, how can I contiune after fail in a rule? Tags: prolog Problem: In prolog, how can I contiune after fail in a rule? I have list of pairs such [[1,2], [1,3], [1,4], [2,1], [2,2], ...] function([[H1, H2| _]|Rest]):- conflicts(H1,H2), writ...
In prolog, how can I contiune after fail in a rule? In prolog, how can I contiune after fail in a rule? prolog Rest In prolog, how can I contiune after fail in a rule? I have list of pairs such [[1,2], [1,3], [1,4], [2,1], [2,2], ...] I can take "1" as H1 and "2" as H2. conflict rule makes comparison according some rul...
[ -0.007476806640625, -0.006683349609375, 0.0230712890625, 0.0185546875, -0.00244140625, -0.0113525390625, -0.001983642578125, 0.0263671875, -0.004241943359375, -0.004058837890625, 0.0052490234375, -0.0026092529296875, 0.0006561279296875, -0.0186767578125, 0.00836181640625, -0.0032806396...
[ 502, 4867, 3642, 831, 87, 158, 118, 1811, 7103, 35782, 23, 79986, 49756, 5303, 80836, 133063, 96386, 163324, 5646, 418, 237, 572, 304, 5442, 79612, 225490, 91736, 30646, 29568, 33022, 2271, 134225, 116, 720, 363, 7, 98320, 17932, 11782, 3...
[ 0.152099609375, 0.2139892578125, 0.06494140625, 0.07550048828125, 0.032562255859375, 0.10791015625, 0.1669921875, 0.239990234375, 0.1541748046875, 0.2261962890625, 0.060028076171875, 0.182861328125, 0.16845703125, 0.0906982421875, 0.181640625, 0.08587646484375, 0.0156707763671875, ...
embed
64840715_c0
64840715
prolog
0
Title: Does Prolog need GC when the occurs check is globally enabled? Problem title: Does Prolog need GC when the occurs check is globally enabled? Tags: logic-programming, warren-abstract-machine, occurs-check, prolog, swi-prolog Problem: Does Prolog need GC when the occurs check is globally enabled? As far as I can t...
Does Prolog need GC when the occurs check is globally enabled? Does Prolog need GC when the occurs check is globally enabled? logic-programming warren-abstract-machine occurs-check prolog swi-prolog Does Prolog set_prolog_flag occurs_check Does Prolog need GC when the occurs check is globally enabled? As far as I can t...
[ 0.01373291015625, 0.0164794921875, 0.0247802734375, 0.00848388671875, -0.00946044921875, 0.0009765625, -0.018798828125, 0.0081787109375, -0.01312255859375, -0.035888671875, 0.021484375, 0.017822265625, -0.01251220703125, -0.01043701171875, 0.01611328125, 0.006988525390625, 0.02624511...
[ 1250, 4867, 3871, 69657, 74918, 7, 12765, 7964, 225081, 62775, 28966, 1631, 982, 2816, 103149, 78292, 502, 2452, 3454, 5423, 190872, 6, 3229, 678, 45730, 51, 41274, 159, 30693, 158839, 5608, 959, 28282, 187830, 2053, 45646, 26785, 154453, 2...
[ 0.173583984375, 0.25, 0.1566162109375, 0.2109375, 0.190185546875, 0.0816650390625, 0.21484375, 0.137451171875, 0.1378173828125, 0.07647705078125, 0.0704345703125, 0.0164794921875, 0.094482421875, 0.07061767578125, 0.0704345703125, 0.2237548828125, 0.0914306640625, 0.1083984375, 0...
embed
29876854_c0
29876854
prolog
0
Title: Build compound predicate from list in Prolog Problem title: Build compound predicate from list in Prolog Tags: prolog Problem: Build compound predicate from list in Prolog If I have a list of predicates in Prolog like [flies, swims] , how can I build a predicate that is the conjunction of all the predicates in t...
Build compound predicate from list in Prolog Build compound predicate from list in Prolog prolog list Build Prolog Build compound predicate from list in Prolog If I have a list of predicates in Prolog like [flies, swims] , how can I build a predicate that is the conjunction of all the predicates in the list, ie fliesAn...
[ -0.01324462890625, 0.0084228515625, 0.00750732421875, 0.0166015625, -0.00738525390625, 0.041259765625, 0.0089111328125, -0.001556396484375, 0.0026092529296875, -0.025390625, -0.002105712890625, -0.003265380859375, 0.005462646484375, 0.0031280517578125, 0.0002994537353515625, 0.02380371...
[ 121137, 217773, 1653, 2063, 67, 1295, 5303, 1250, 4867, 502, 1636, 36361, 90, 186857, 3642, 831, 45367, 17043, 756, 33977, 37839, 2452, 4432, 1542, 11522, 33976, 1257, 11675, 6032, 82761, 44841, 171763, 32036, 176377, 34627, 14858, 11907, 278...
[ 0.1741943359375, 0.258544921875, 0.1907958984375, 0.226806640625, 0.1304931640625, 0.1104736328125, 0.2061767578125, 0.15771484375, 0.216796875, 0.07958984375, 0.08770751953125, 0.139892578125, 0.041290283203125, 0.1763916015625, 0.022552490234375, 0.009063720703125, 0.1995849609375,...
embed
14610921_c0
14610921
prolog
0
Title: Prolog search by same field in list Problem title: Prolog search by same field in list Tags: visual-prolog, prolog Problem: Prolog search by same field in list domains family = person*. person = person(string Name, string LastName, work, integer Age). work = work(string Corp, real Salary) How do I get the family...
Prolog search by same field in list Prolog search by same field in list visual-prolog prolog Prolog my_family FN2 Soft FN3 FN4 FN5 Name LastName Age Corp Salary length_of TailLength Child stdIO::writef Family Prolog search by same field in list I have DB with those structure How do I get the family, with children's sam...
[ 0.0096435546875, 0.0181884765625, 0.006622314453125, 0.010498046875, -0.0230712890625, 0.004974365234375, 0.00543212890625, 0.005584716796875, 0.0211181640625, -0.05322265625, 0.004669189453125, 0.0218505859375, 0.00164794921875, 0.00067901611328125, -0.0009307861328125, -0.03979492187...
[ 1250, 4867, 33938, 390, 5701, 44457, 23, 5303, 21176, 3454, 502, 759, 212122, 73213, 304, 73118, 363, 617, 758, 15757, 21672, 163612, 72944, 89499, 13294, 140909, 4390, 449, 123829, 6138, 17780, 18781, 420, 59745, 57976, 45646, 2046, 14449, ...
[ 0.1539306640625, 0.241943359375, 0.2066650390625, 0.064208984375, 0.159912109375, 0.2117919921875, 0.0281219482421875, 0.1827392578125, 0.1837158203125, 0.095947265625, 0.104736328125, 0.043975830078125, 0.2083740234375, 0.06890869140625, 0.0458984375, 0.123291015625, 0.0452880859375...
embed
47664990_c0
47664990
prolog
0
Title: Prolog: count number of unique item Problem title: Prolog: count number of unique item Tags: prolog Problem: Prolog: count number of unique item I'm learning Prolog. I'm trying to count the number of people that comment a post. I have some data like this: %comment(name, post id, message) comment(ellen, p3, 'Love...
Prolog: count number of unique item Prolog: count number of unique item prolog Prolog Love How count_comment Post Total Name Comments Names list_to_set Unique_names Prolog: count number of unique item I'm learning Prolog. I'm trying to count the number of people that comment a post. I have some data like this: I used f...
[ 0.0029754638671875, 0.004302978515625, 0.0184326171875, -0.0032196044921875, 0.004791259765625, -0.005035400390625, -0.0096435546875, 0.006622314453125, 0.017333984375, -0.068359375, -0.00738525390625, -0.0021820068359375, 0.04638671875, 0.0133056640625, -0.00677490234375, 0.0127563476...
[ 1250, 4867, 54529, 14012, 36998, 35735, 12, 111, 502, 11954, 11249, 277, 674, 2795, 33867, 15757, 11427, 5303, 188, 3509, 11789, 944, 11627, 52080, 31577, 47, 3395, 450, 6868, 1305, 2053, 11814, 7413, 5584, 831, 4734, 16750, 70541, 171763, ...
[ 0.16259765625, 0.2490234375, 0.2047119140625, 0.156005859375, 0.205078125, 0.1820068359375, 0.006134033203125, 0.0548095703125, 0.10650634765625, 0.1829833984375, 0.0203094482421875, 0.1146240234375, 0.173828125, 0.09063720703125, 0.0845947265625, 0.080810546875, 0.211181640625, 0....
embed
70816291_c0
70816291
prolog
0
Title: Prolog: Check if dictionary has special member Problem title: Prolog: Check if dictionary has special member Tags: prolog, member, dictionary Problem: Prolog: Check if dictionary has special member Based on my question here I have following prolog code: :-op(900, xfy, →). :-op(900, xfy, ⟷). find_axioms(Specific,...
Prolog: Check if dictionary has special member Prolog: Check if dictionary has special member prolog member dictionary Prolog Check find_axioms Specific BaseSet Fullfill axiom1 axiom2 Prolog: Check if dictionary has special member Based on my question here I have following prolog code: My input gives: My aim now is to ...
[ 0.0120849609375, -0.0084228515625, 0.0115966796875, -0.0228271484375, -0.0107421875, -0.004974365234375, 0.006317138671875, 0.0184326171875, 0.003570556640625, 0.000576019287109375, 0.0257568359375, 0.034912109375, 0.025390625, -0.019287109375, 0.0125732421875, 0.00482177734375, -0.0...
[ 1250, 4867, 38679, 2174, 45, 10763, 6635, 1556, 5361, 32786, 502, 7413, 91095, 28016, 209052, 44978, 294, 126, 9312, 116115, 5134, 306, 304, 18151, 107730, 76199, 464, 4537, 20650, 442, 83, 756, 10, 219, 1459, 765, 123055, 237, 22799, 280...
[ 0.1429443359375, 0.220947265625, 0.1837158203125, 0.08245849609375, 0.05804443359375, 0.1278076171875, 0.1094970703125, 0.06689453125, 0.1702880859375, 0.22265625, 0.09765625, 0.10546875, 0.09149169921875, 0.1632080078125, 0.1162109375, 0.1832275390625, 0.1683349609375, 0.175415039...
embed
73437895_c0
73437895
prolog
0
Title: How does the order of cut &#x27;!&#x27; symbol affect the backtracking in Prolog? Problem title: How does the order of cut &#x27;!&#x27; symbol affect the backtracking in Prolog? Tags: prolog, prolog-cut, instantiation-error Problem: How does the order of cut '!' symbol affect the backtracking in Prolog? how doe...
How does the order of cut &#x27;!&#x27; symbol affect the backtracking in Prolog? How does the order of cut &#x27;!&#x27; symbol affect the backtracking in Prolog? prolog prolog-cut instantiation-error How Prolog X-1 How does the order of cut '!' symbol affect the backtracking in Prolog? how does the order we put the c...
[ 0.04345703125, 0.03271484375, 0.0257568359375, 0.0216064453125, 0.009521484375, 0.01708984375, 0.013671875, -0.008056640625, 0.024169921875, -0.00909423828125, 0.0034027099609375, 0.004669189453125, -0.009521484375, -0.02734375, 0.02197265625, -0.001800537109375, -0.0078125, 0.0106...
[ 11249, 14602, 12989, 111, 59226, 3768, 74, 38, 26582, 52490, 4420, 125728, 214, 1250, 4867, 23, 502, 19774, 34648, 14, 2320, 188800, 1193, 5759, 3642, 3884, 70, 46132, 1653, 2063, 50339, 18151, 14847, 3034, 678, 41, 1884, 915, 155761, 152...
[ 0.0623779296875, 0.04571533203125, 0.2249755859375, 0.10504150390625, 0.2249755859375, 0.1334228515625, 0.001678466796875, 0.193359375, 0.261962890625, 0.1875, 0.154052734375, 0.23095703125, 0.06494140625, 0.17822265625, 0.258056640625, 0.040252685546875, 0.124267578125, 0.20385742...
embed
62677732_c0
62677732
prolog
0
Title: Pattern matching using list of characters Problem title: Pattern matching using list of characters Tags: call, evaluation, performance, prolog, predicate Problem: Pattern matching using list of characters I am having difficulty pattern matching words which are converted to lists of characters: wordworm(H1,H2,H3,...
Pattern matching using list of characters Pattern matching using list of characters call evaluation performance prolog predicate list Pattern string_length atom_chars Pattern matching using list of characters I am having difficulty pattern matching words which are converted to lists of characters: Above this section, I...
[ -0.0118408203125, 0.00592041015625, 0.00012874603271484375, 0.026611328125, 0.0033111572265625, 0.0037078857421875, -0.0030364990234375, 0.00909423828125, 0.00028228759765625, -0.0302734375, 0.02197265625, -0.000377655029296875, 0.000919342041015625, -0.004241943359375, -0.00181579589843...
[ 9876, 22766, 14858, 214, 17368, 5303, 111, 124850, 11782, 219836, 23718, 502, 4867, 1653, 2063, 79315, 23986, 34627, 9254, 19441, 34844, 103510, 34153, 117176, 92437, 272, 40059, 765, 36549, 6331, 9384, 2565, 3454, 18151, 127877, 5885, 15490, ...
[ 0.1854248046875, 0.181396484375, 0.2335205078125, 0.060028076171875, 0.04315185546875, 0.163330078125, 0.0360107421875, 0.2135009765625, 0.1312255859375, 0.125, 0.157470703125, 0.1510009765625, 0.2283935546875, 0.0667724609375, 0.0992431640625, 0.102783203125, 0.06982421875, 0.1816...
embed
70168346_c1
70168346
prolog
1
, Next). % Concatenates the list to one string for the output output(G) :- atomic_list_concat(G,'',C), writeln(C). % Here I am stuck, the recursive lookup and exchange. % How do I exchange each element with the according substitution to a new list linden([],[]). % Empty list returns empty list. linden([R],Next) :- % Li...
, Next). % Concatenates the list to one string for the output output(G) :- atomic_list_concat(G,'',C), writeln(C). % Here I am stuck, the recursive lookup and exchange. % How do I exchange each element with the according substitution to a new list linden([],[]). % Empty list returns empty list. linden([R],Next) :- % Li...
[ -0.00994873046875, 0.020263671875, 0.0018157958984375, 0.01495361328125, 0.00015354156494140625, 0.0184326171875, -0.020751953125, 0.00182342529296875, 0.006622314453125, 0.000415802001953125, 0.0107421875, 0.0020904541015625, -0.009521484375, -0.011962890625, 0.002685546875, -0.002029...
[ 4997, 1745, 1657, 33478, 76, 1636, 5303, 47, 1632, 79315, 140992, 724, 34627, 1771, 6562, 2271, 4460, 4765, 33022, 19, 11853, 444, 179933, 195625, 5844, 6713, 2037, 136, 121122, 11249, 54, 87, 12638, 12830, 678, 59499, 161740, 1830, 3525, ...
[ 0.1982421875, 0.05389404296875, 0.0897216796875, 0.2021484375, 0.11865234375, 0.0816650390625, 0.2069091796875, 0.0650634765625, 0.1064453125, 0.161376953125, 0.141845703125, 0.07855224609375, 0.171875, 0.0845947265625, 0.24169921875, 0.10382080078125, 0.2392578125, 0.0557556152343...
embed
28948607_c1
28948607
prolog
1
1 is D-1, resolve(A,C), conj_append(C,B,E), gv_node(N,(?-E),N1), (prove_d(E,Goal,N1,D1) ; gv_fail(N1)). but this prints fail at the end of every leaf even with true at the end of the leaf. I use swi-prolog. EDIT: Because this code is little longer, here is complete program. http://pastebin.com/bQKD1Cyi It works like th...
1 is D-1, resolve(A,C), conj_append(C,B,E), gv_node(N,(?-E),N1), (prove_d(E,Goal,N1,D1) ; gv_fail(N1)). but this prints fail at the end of every leaf even with true at the end of the leaf. I use swi-prolog. EDIT: Because this code is little longer, here is complete program. http://pastebin.com/bQKD1Cyi It works like th...
[ 0.0208740234375, 0.01556396484375, 0.0033111572265625, 0.018310546875, 0.00141143798828125, 0.006011962890625, -0.0252685546875, -0.0028076171875, 0.00225830078125, -0.024169921875, -0.0031280517578125, -0.00112152099609375, -0.00872802734375, -0.006195068359375, -0.0048828125, -0.0109...
[ 106, 83, 391, 5759, 103608, 158, 170, 9007, 3611, 647, 706, 334, 157, 112, 17727, 66187, 71, 17903, 289, 418, 397, 120540, 839, 1284, 903, 28412, 35782, 3564, 11907, 95, 2407, 3853, 678, 29568, 4527, 91, 2452, 9, 3454, 4867, 18151, 10...
[ 0.087646484375, 0.0596923828125, 0.12744140625, 0.15771484375, 0.17041015625, 0.0679931640625, 0.1207275390625, 0.0203704833984375, 0.104248046875, 0.000823974609375, 0.0236053466796875, 0.1456298828125, 0.1324462890625, 0.12109375, 0.056488037109375, 0.1275634765625, 0.03759765625, ...
embed