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
9627463_c0
9627463
prolog
0
Title: Prolog iteration off by 1 Problem title: Prolog iteration off by 1 Tags: iteration, list, prolog Problem: Prolog iteration off by 1 I have an iterator called myfor such that when I call myfor(3,7,X). I want it to return X = [3, 4, 5, 6, 7] . However, this code only returns X = [4, 5, 6, 7] . It skips out on the ...
Prolog iteration off by 1 Prolog iteration off by 1 iteration list prolog Prolog Start End NewValue Prolog iteration off by 1 I have an iterator called myfor such that when I call myfor(3,7,X). I want it to return X = [3, 4, 5, 6, 7] . However, this code only returns X = [4, 5, 6, 7] . It skips out on the first. Can an...
[ 0.007568359375, -0.00128173828125, 0.010498046875, -0.008056640625, -0.0189208984375, 0.022216796875, 0.0032958984375, 0.01043701171875, 0.017578125, -0.0322265625, 0.02392578125, 0.01348876953125, 0.004974365234375, 0.007293701171875, 0.013427734375, -0.02294921875, 0.01165771484375...
[ 1250, 4867, 17, 720, 2320, 5773, 390, 106, 5303, 502, 13794, 18878, 2356, 856, 50770, 4597, 35839, 759, 2472, 6044, 11782, 86827, 966, 1542, 3444, 30646, 1193, 2203, 122101, 201, 4, 190, 305, 361, 33306, 903, 18151, 4734, 617, 6, 21658,...
[ 0.1995849609375, 0.275390625, 0.102294921875, 0.2685546875, 0.07244873046875, 0.250732421875, 0.1829833984375, 0.1337890625, 0.1624755859375, 0.14794921875, 0.08868408203125, 0.141357421875, 0.1300048828125, 0.1737060546875, 0.15380859375, 0.203369140625, 0.033538818359375, 0.15942...
embed
10082092_c0
10082092
prolog
0
Title: Reverse list of lists Problem title: Reverse list of lists Tags: prolog, reverse, list Problem: Reverse list of lists I have a problem with my prolog code. I need to reverse all atomic elements of list. Example: [1,2,[3,4]] -> [[4,3],2,1] My solution: myReverse([], []). myReverse([H|T], X) :- myReverse(T, RT), m...
Reverse list of lists Reverse list of lists prolog reverse list Reverse Reverse list of lists I have a problem with my prolog code. I need to reverse all atomic elements of list. Example: [1,2,[3,4]] -> [[4,3],2,1] My solution: But it only gives me: [[3,4],2,1] I think, I need to use is_list function and recursive call...
[ -0.01263427734375, 0.01495361328125, 0.0128173828125, 0.01171875, -0.01953125, 0.0196533203125, 0.0245361328125, 0.01123046875, 0.01263427734375, -0.016357421875, 0.00058746337890625, 0.0155029296875, 0.005615234375, 0.0225830078125, 0.01336669921875, 0.000392913818359375, 0.02868652...
[ 853, 37676, 5303, 111, 502, 4867, 39531, 184, 7, 2967, 18151, 3871, 47, 756, 34627, 1771, 80854, 89536, 133063, 82449, 33079, 617, 96386, 304, 76172, 29806, 4734, 76199, 163, 5351, 4527, 83, 6562, 32354, 195625, 5844, 11782, 2174, 959, 17...
[ 0.1103515625, 0.275146484375, 0.208740234375, 0.0819091796875, 0.1502685546875, 0.2103271484375, 0.2298583984375, 0.1995849609375, 0.04510498046875, 0.08099365234375, 0.1513671875, 0.08349609375, 0.0306396484375, 0.07537841796875, 0.141845703125, 0.0804443359375, 0.144287109375, 0....
embed
11173352_c0
11173352
prolog
0
Title: separate number into digit into prolog Problem title: separate number into digit into prolog Tags: visual-prolog, prolog, parsing Problem: separate number into digit into prolog I want to separate number into list digits using prolog like : if number is "345" separate to [3, 4, 5] How can i do that ? stringToken...
separate number into digit into prolog separate number into digit into prolog visual-prolog prolog parsing Sen Token Remd separate number into digit into prolog I want to separate number into list digits using prolog How can i do that ? I am using this predicate to convert string into list of strings
[ 0.02392578125, 0.0037689208984375, -0.007080078125, 0.026123046875, -0.0260009765625, 0.0126953125, 0.002960205078125, 0.01312255859375, -0.0048828125, -0.0211181640625, 0.00171661376953125, 0.001800537109375, -0.015380859375, -0.00110626220703125, -0.005615234375, -0.015869140625, 0...
[ 84797, 14012, 3934, 153939, 502, 4867, 21176, 3454, 366, 4311, 717, 1098, 38645, 71, 3444, 5303, 7, 17368, 831, 54, 1653, 2063, 96760, 79315, 111 ]
[ 0.2197265625, 0.1953125, 0.1259765625, 0.2003173828125, 0.1376953125, 0.218017578125, 0.1798095703125, 0.09527587890625, 0.0711669921875, 0.1419677734375, 0.02001953125, 0.1307373046875, 0.111572265625, 0.115478515625, 0.06634521484375, 0.1666259765625, 0.0384521484375, 0.023223876...
embed
40826559_c0
40826559
prolog
0
Title: Index of Substring Prolog Problem title: Index of Substring Prolog Tags: prolog, swi-prolog, substring Problem: Index of Substring Prolog I am using the sub_string function. Since I do not know how many characters before or after, is there any way from running this line of code (or some other method) of finding ...
Index of Substring Prolog Index of Substring Prolog prolog swi-prolog substring Index Substring Prolog sub_string Length Word Index of Substring Prolog I am using the sub_string function. Since I do not know how many characters before or after, is there any way from running this line of code (or some other method) of f...
[ 0.00193023681640625, 0.0024566650390625, 0.004791259765625, 0.01275634765625, -0.0400390625, 0.0093994140625, 0.0177001953125, 0.00150299072265625, 0.0142822265625, -0.04150390625, -0.00823974609375, -0.01226806640625, -0.01953125, 0.0147705078125, 0.014404296875, -0.0157470703125, 0...
[ 31471, 111, 8273, 91693, 1250, 4867, 502, 2452, 3454, 1614, 77554, 22543, 17368, 454, 32354, 959, 3714, 5941, 124850, 8108, 7103, 51042, 13315, 18151, 55300, 90791, 79315, 17463, 170, 3609, 8080, 334, 63262, 246, 4034, 99, 3115, 2565, 33938...
[ 0.2225341796875, 0.05657958984375, 0.1719970703125, 0.2015380859375, 0.11328125, 0.1927490234375, 0.0894775390625, 0.1129150390625, 0.0927734375, 0.167236328125, 0.047393798828125, 0.1302490234375, 0.023162841796875, 0.002777099609375, 0.10198974609375, 0.01190185546875, 0.0444946289...
embed
15127907_c0
15127907
prolog
0
Title: select from a list in prolog Problem title: select from a list in prolog Tags: prolog, list Problem: select from a list in prolog I'm trying to fill up a list with structures I have in another list, but filtering the selection using one of the arguments(introduced by user, Type) of the structure and I can't seem...
select from a list in prolog select from a list in prolog prolog list a Type select from a list in prolog I'm trying to fill up a list with structures I have in another list, but filtering the selection using one of the arguments(introduced by user, Type) of the structure and I can't seem to get the recursion right,hel...
[ 0.004547119140625, 0.00238037109375, 0.00250244140625, 0.00946044921875, -0.023193359375, -0.007049560546875, -0.0059814453125, 0.0208740234375, 0.0218505859375, 0.00592041015625, 0.0081787109375, -0.020263671875, -0.01416015625, -0.0130615234375, 0.00701904296875, -0.013427734375, 0...
[ 36849, 1295, 5303, 23, 502, 4867, 60457, 31577, 26292, 45646, 46312, 132216, 10750, 143669, 106357, 38937, 195625, 1830, 7108, 73866, 77947 ]
[ 0.200439453125, 0.1514892578125, 0.1710205078125, 0.04840087890625, 0.12158203125, 0.2030029296875, 0.1922607421875, 0.03790283203125, 0.06707763671875, 0.145751953125, 0.1513671875, 0.1566162109375, 0.14794921875, 0.020233154296875, 0.009307861328125, 0.09832763671875, 0.12292480468...
embed
47810339_c0
47810339
prolog
0
Title: Replace portions of a list with another in Prolog Problem title: Replace portions of a list with another in Prolog Tags: prolog, substitution, replace Problem: Replace portions of a list with another in Prolog I want to replace b,c with x,y,z in a list in Prolog. I have a list [a,b,c,d,e,f] and result will be [a...
Replace portions of a list with another in Prolog Replace portions of a list with another in Prolog prolog substitution replace Replace Prolog Replace portions of a list with another in Prolog I want to replace b,c with x,y,z in a list in Prolog. I have a list [a,b,c,d,e,f] and result will be [a,x,y,z,d,e,f] . How can ...
[ -0.00665283203125, 0.00982666015625, 0.01080322265625, 0.01324462890625, -0.01519775390625, -0.0037384033203125, -0.0419921875, 0.014892578125, 0.00836181640625, 0.033203125, 0.000522613525390625, 0.0179443359375, 0.00139617919921875, -0.00238037109375, 0.0145263671875, -0.000354766845...
[ 853, 23935, 126826, 7, 5303, 678, 15700, 23, 1250, 4867, 502, 161740, 1830, 91995, 3444, 47, 876, 238, 1022, 53, 169, 11, 71, 420, 16750, 425, 33022, 903 ]
[ 0.0762939453125, 0.201171875, 0.156982421875, 0.0284881591796875, 0.1846923828125, 0.1109619140625, 0.0584716796875, 0.0533447265625, 0.1663818359375, 0.237060546875, 0.11865234375, 0.154052734375, 0.00518798828125, 0.222900390625, 0.075439453125, 0.037994384765625, 0.08245849609375,...
embed
64846371_c0
64846371
prolog
0
Title: Subtract 1 from number (recursion in Prolog) Problem title: Subtract 1 from number (recursion in Prolog) Tags: recursion, prolog Problem: Subtract 1 from number (recursion in Prolog) I'm trying to understand how to write recursive functions in Prolog. I've come with a the following code: reduceBy1(Input,Output) ...
Subtract 1 from number (recursion in Prolog) Subtract 1 from number (recursion in Prolog) recursion prolog number Subtract Prolog reduceBy1 Input Output Subtract 1 from number (recursion in Prolog) I'm trying to understand how to write recursive functions in Prolog. I've come with a the following code: calling reduceBy...
[ 0.006011962890625, 0.01495361328125, -0.005523681640625, 0.0291748046875, -0.005157470703125, -0.00604248046875, -0.0107421875, 0.005645751953125, 0.000278472900390625, -0.03857421875, 0.0037994384765625, -0.0037689208984375, -0.006103515625, 0.00860595703125, 0.02294921875, -0.0093994...
[ 8273, 39989, 106, 1295, 14012, 107, 48650, 1830, 1250, 4867, 18, 195625, 502, 34390, 75358, 418, 360, 13538, 33022, 5844, 32354, 18151, 159029, 90980, 79858, 7077, 50339, 3569, 2060, 4127, 3642, 27875, 4420, 3934, 74906, 53, 41872, 304 ]
[ 0.100341796875, 0.1522216796875, 0.1185302734375, 0.1014404296875, 0.1376953125, 0.03302001953125, 0.1878662109375, 0.06109619140625, 0.1405029296875, 0.2149658203125, 0.0435791015625, 0.1884765625, 0.126220703125, 0.18701171875, 0.14453125, 0.06610107421875, 0.028076171875, 0.1298...
embed
53936340_c1
53936340
prolog
1
107, 195, 402, 194, 160, 32, 66, 105, 97, 110, 99, 111, 32, 32, 40, 69, 116, 110, 97, 41], [73, 116, 97, 108, 121], [87, 104, 105, 116, 101, 32, 66, 108, 101, 110, 100], [49, 52], [75, 101, 114, 105, 110, 32, 79, 195, 162, 226, 8218, 172, 226, 8222, 162, 75, 101, 101, 102, 101], [56, 55]). table([49], [81, 117, 105, 11...
107, 195, 402, 194, 160, 32, 66, 105, 97, 110, 99, 111, 32, 32, 40, 69, 116, 110, 97, 41], [73, 116, 97, 108, 121], [87, 104, 105, 116, 101, 32, 66, 108, 101, 110, 100], [49, 52], [75, 101, 114, 105, 110, 32, 79, 195, 162, 226, 8218, 172, 226, 8222, 162, 75, 101, 101, 102, 101], [56, 55]). table([49], [81, 117, 105, 11...
[ 0.006317138671875, -0.00555419921875, -0.004425048828125, 0.019287109375, -0.0186767578125, 0.003082275390625, 0.00933837890625, -0.00145721435546875, -0.000583648681640625, 0.00970458984375, -0.0042724609375, 0.0036468505859375, -0.0191650390625, 0.01397705078125, -0.03564453125, -0.0...
[ 36225, 4, 91809, 1112, 304, 131192, 13442, 2789, 11251, 21213, 14819, 12062, 10078, 36682, 11937, 45773, 6478, 268, 378, 13574, 28292, 58865, 19308, 30994, 21027, 805, 12977, 7221, 6873, 44909, 17446, 78369, 130724, 15751, 1819, 92111, 382, 1...
[ 0.307861328125, 0.186279296875, 0.29638671875, 0.213623046875, 0.178955078125, 0.277099609375, 0.23681640625, 0.2177734375, 0.233642578125, 0.263427734375, 0.229736328125, 0.2373046875, 0.2147216796875, 0.179931640625, 0.1859130859375, 0.255126953125, 0.174560546875, 0.048431396484...
embed
21054471_c1
21054471
prolog
1
: using (PlQuery q = new PlQuery("mais_curto(" + iduser1 + "," + iduser2 + ",C).")) I dont' understand why... Can someone help? Code signals: System.AccessViolationException, SWIProlog, List, iduser1, iduser2, PlQuery, mais_curto, PlTermV, q.Solutions.First, IReadOnlyCollection, PlTerm, ToList, Convert.ToInt32, row.ToS...
: using (PlQuery q = new PlQuery("mais_curto(" + iduser1 + "," + iduser2 + ",C).")) I dont' understand why... Can someone help? Code signals: System.AccessViolationException, SWIProlog, List, iduser1, iduser2, PlQuery, mais_curto, PlTermV, q.Solutions.First, IReadOnlyCollection, PlTerm, ToList, Convert.ToInt32, row.ToS...
[ 0.005645751953125, 0.03759765625, 0.01263427734375, 0.01416015625, -0.00885009765625, 0.01287841796875, -0.00665283203125, -0.0096435546875, 0.0185546875, -0.049560546875, 0.0181884765625, 0.005767822265625, -0.005218505859375, -0.0091552734375, -0.00469970703125, -0.008544921875, 0....
[ 152, 17368, 15, 683, 141, 41732, 1294, 8096, 2203, 3525, 29016, 15713, 16820, 188, 997, 3447, 65918, 418, 304, 441, 87, 13319, 28219, 15400, 27, 4171, 22008, 4358, 28864, 26073, 12353, 39450, 26531, 6609, 31, 57860, 63928, 159, 38969, 107...
[ 0.083984375, 0.220458984375, 0.05645751953125, 0.0858154296875, 0.20361328125, 0.251953125, 0.177001953125, 0.258056640625, 0.0928955078125, 0.09149169921875, 0.22265625, 0.2049560546875, 0.1712646484375, 0.2054443359375, 0.06756591796875, 0.104248046875, 0.2259521484375, 0.0467834...
embed
4165685_c0
4165685
prolog
0
Title: how to create Meta-rules and/or meta-interpreter for an Expert System with Swi-Prolog Problem title: how to create Meta-rules and/or meta-interpreter for an Expert System with Swi-Prolog Tags: prolog, prolog-metainterpreter Problem: how to create Meta-rules and/or meta-interpreter for an Expert System with Swi-P...
how to create Meta-rules and/or meta-interpreter for an Expert System with Swi-Prolog how to create Meta-rules and/or meta-interpreter for an Expert System with Swi-Prolog prolog prolog-metainterpreter Meta-rules Expert System Swi-Prolog how to create Meta-rules and/or meta-interpreter for an Expert System with Swi-Pro...
[ 0.0299072265625, 0.00750732421875, 0.003692626953125, 0.019287109375, -0.0042724609375, 0.007171630859375, 0.00616455078125, 0.029541015625, -0.0147705078125, -0.0341796875, 0.01385498046875, -0.00135040283203125, 0.00433349609375, -0.00830078125, 0.01397705078125, -0.00029754638671875...
[ 3642, 28282, 36939, 9, 13500, 23550, 158288, 56, 70523, 12353, 678, 105432, 10752, 4867, 47, 64, 748, 502, 35273, 100, 6165, 26808, 5426, 159, 38969, 2965, 99156, 3249, 442, 50491 ]
[ 0.0677490234375, 0.1650390625, 0.220703125, 0.02838134765625, 0.1536865234375, 0.204345703125, 0.232666015625, 0.1474609375, 0.2086181640625, 0.1915283203125, 0.056610107421875, 0.21728515625, 0.122314453125, 0.1751708984375, 0.00787353515625, 0.00079345703125, 0.03192138671875, 0....
embed
16180312_c0
16180312
prolog
0
Title: How do I transform a file of integers in a list of lists Problem title: How do I transform a file of integers in a list of lists Tags: swi-prolog, prolog Problem: How do I transform a file of integers in a list of lists I have a file as follows (numbers separate by space and rows end with a dot): 4554 3332 3 23 ...
How do I transform a file of integers in a list of lists How do I transform a file of integers in a list of lists swi-prolog prolog How How do I transform a file of integers in a list of lists I have a file as follows (numbers separate by space and rows end with a dot): and I would like to create a list of lists, one l...
[ 0.0128173828125, 0.006561279296875, 0.011962890625, 0.01025390625, -0.0213623046875, -0.0069580078125, 0.00045013427734375, 0.0164794921875, -0.0038909912109375, -0.024658203125, -0.01177978515625, 0.006103515625, -0.0296630859375, 0.0021514892578125, -0.007568359375, -0.00430297851562...
[ 11249, 54, 87, 27198, 11435, 111, 892, 26255, 23, 10, 5303, 7, 91, 2452, 3454, 4867, 502, 765, 28960, 2606, 1297, 84797, 32628, 15555, 3564, 678, 20633, 1884, 28282, 1632, 12638, 903, 3642, 831, 51544 ]
[ 0.065673828125, 0.057403564453125, 0.0631103515625, 0.21923828125, 0.2200927734375, 0.1234130859375, 0.185546875, 0.1861572265625, 0.0936279296875, 0.047454833984375, 0.25634765625, 0.08172607421875, 0.030914306640625, 0.1932373046875, 0.1177978515625, 0.1749267578125, 0.104736328125...
embed
27354107_c0
27354107
prolog
0
Title: Prolog: Variable with multiple values Problem title: Prolog: Variable with multiple values Tags: recursion, prolog Problem: Prolog: Variable with multiple values I'm trying to implement a program that takes a variable with multiple values and evaluates all the values. For instance: foo(X,R) :- X > 2, Z is R + 1,...
Prolog: Variable with multiple values Prolog: Variable with multiple values recursion prolog Prolog Variable Prolog: Variable with multiple values I'm trying to implement a program that takes a variable with multiple values and evaluates all the values. For instance: This program might not be valid, but it will help me...
[ 0.0068359375, 0.0003147125244140625, -0.01190185546875, 0.0230712890625, 0.0078125, 0.0228271484375, 0.017333984375, -0.0025482177734375, 0.0263671875, -0.00138092041015625, -0.009033203125, -0.0031585693359375, 0.0196533203125, 0.01434326171875, 0.01708984375, 0.0101318359375, 0.008...
[ 1250, 4867, 84572, 2886, 678, 48716, 142424, 12, 195625, 1830, 502, 31577, 29479, 1528, 51776, 77336, 151575, 756, 13648, 35604, 4358, 26458, 9655, 211460, 4263, 1193, 1556, 3642, 2806, 87, 158661, 105416, 100, 12638, 34292, 977, 116 ]
[ 0.19189453125, 0.265625, 0.2099609375, 0.183349609375, 0.123291015625, 0.24755859375, 0.2271728515625, 0.028656005859375, 0.189453125, 0.04730224609375, 0.134521484375, 0.0767822265625, 0.1312255859375, 0.1380615234375, 0.05242919921875, 0.2281494140625, 0.115478515625, 0.034149169...
embed
27435746_c0
27435746
prolog
0
Title: Prolog: for what terms t does the evaluation of the goal p(t) terminate and which does it not? Problem title: Prolog: for what terms t does the evaluation of the goal p(t) terminate and which does it not? Tags: prolog, failure-slice Problem: Prolog: for what terms t does the evaluation of the goal p(t) terminate...
Prolog: for what terms t does the evaluation of the goal p(t) terminate and which does it not? Prolog: for what terms t does the evaluation of the goal p(t) terminate and which does it not? prolog failure-slice Prolog Prolog: for what terms t does the evaluation of the goal p(t) terminate and which does it not? Conside...
[ 0.0272216796875, 0.032470703125, 0.01336669921875, 0.0057373046875, -0.01434326171875, 0.00032806396484375, 0.00311279296875, 0.0025177001953125, -0.0030364990234375, 0.0035247802734375, 0.0181884765625, -0.009033203125, -0.01171875, -0.01300048828125, -0.010009765625, 0.02587890625, ...
[ 1250, 4867, 100, 69407, 808, 219836, 69236, 915, 18, 121011, 13, 14602, 959, 70, 111, 502, 137578, 13348, 2367, 136, 137399, 62775, 1528, 1326 ]
[ 0.189697265625, 0.279296875, 0.0496826171875, 0.161865234375, 0.115966796875, 0.2037353515625, 0.2225341796875, 0.09295654296875, 0.108154296875, 0.1668701171875, 0.1263427734375, 0.052947998046875, 0.123291015625, 0.009002685546875, 0.014068603515625, 0.13623046875, 0.18115234375, ...
embed
28243170_c0
28243170
prolog
0
Title: Prolog | Unification Problem title: Prolog | Unification Tags: prolog, unification Problem: Prolog | Unification I have the follow terms : 3 p(X) 3 p(x, X) 3 p(x,_) My question is regarding unification. For example: would "3" unify with "p(X)" [Some p, doesn't matter atm] Now, my gut feeling is this : First term...
Prolog | Unification Prolog | Unification prolog unification Prolog Unification Prolog | Unification I have the follow terms : My question is regarding unification. For example: would "3" unify with "p(X)" [Some p, doesn't matter atm] Now, my gut feeling is this : First term will unify (X = 3) Second term will unify ( ...
[ 0.0167236328125, 0.0281982421875, 0.0167236328125, -0.00341796875, -0.01239013671875, -0.001495361328125, -0.0047607421875, 0.0029449462890625, 0.0159912109375, -0.004425048828125, -0.000957489013671875, -0.00823974609375, 0.0155029296875, -0.0050048828125, -0.01300048828125, 0.0149536...
[ 1250, 4867, 992, 41274, 502, 51, 765, 28960, 69407, 9655, 118861, 2806, 363, 40383, 678, 254, 1542, 282, 915, 22027, 18, 26866, 39, 5768, 34698, 23972, 13579, 1221, 8439, 77648, 1193, 138, 198387, 9077, 5351, 5792, 19659, 2203, 3630, 6717...
[ 0.15576171875, 0.2342529296875, 0.1708984375, 0.2060546875, 0.1131591796875, 0.187255859375, 0.00445556640625, 0.067138671875, 0.1859130859375, 0.06689453125, 0.01263427734375, 0.08941650390625, 0.2052001953125, 0.201171875, 0.09814453125, 0.099609375, 0.12548828125, 0.036926269531...
embed
32790999_c0
32790999
prolog
0
Title: How I can extract a subterm from a term in Prolog? Problem title: How I can extract a subterm from a term in Prolog? Tags: prolog, tree, extract Problem: How I can extract a subterm from a term in Prolog? How I can extract a subterm from a term in Prolog? An example, I am trying to extract a predicate called r w...
How I can extract a subterm from a term in Prolog? How I can extract a subterm from a term in Prolog? prolog tree extract a How Prolog How I can extract a subterm from a term in Prolog? How I can extract a subterm from a term in Prolog? An example, I am trying to extract a predicate called r wherever it is but I do kno...
[ 0.0205078125, 0.019287109375, 0.015869140625, 0.00787353515625, -0.00732421875, -0.0003223419189453125, -0.005645751953125, 0.0128173828125, -0.006072998046875, -0.013671875, 0.01214599609375, 0.000499725341796875, -0.0146484375, 0.00836181640625, 0.0146484375, 0.015869140625, 0.0078...
[ 11249, 87, 831, 125663, 153224, 39, 1295, 13579, 1250, 4867, 23, 502, 53201, 10, 27781, 31577, 1653, 2063, 1690, 7440, 3714, 3642, 4358, 112779, 425, 5256, 91, 82449, 42, 617, 91616, 35484, 1517, 28960, 16269, 47314, 31501, 89829, 29557 ]
[ 0.1055908203125, 0.016632080078125, 0.04376220703125, 0.2373046875, 0.2115478515625, 0.195068359375, 0.06488037109375, 0.236572265625, 0.150634765625, 0.2431640625, 0.030853271484375, 0.0894775390625, 0.166748046875, 0.0189666748046875, 0.05108642578125, 0.046142578125, 0.10241699218...
embed
50417683_c0
50417683
prolog
0
Title: Prolog, issues with base case failing Problem title: Prolog, issues with base case failing Tags: search, recursion, prolog Problem: Prolog, issues with base case failing I'm currently writing a prolog A* search function, and ran into an issue with one of my queries. So I decided to manually test the base case, a...
Prolog, issues with base case failing Prolog, issues with base case failing search recursion prolog Prolog Child Prolog, issues with base case failing I'm currently writing a prolog A* search function, and ran into an issue with one of my queries. So I decided to manually test the base case, as that's where the trace w...
[ 0.01025390625, 0.00176239013671875, 0.00726318359375, 0.0064697265625, -0.01080322265625, 0.00225830078125, -0.0032958984375, -0.01141357421875, 0.01470947265625, -0.0050048828125, 0.0289306640625, -0.0089111328125, -0.0279541015625, 0.017333984375, 0.016357421875, -0.03466796875, 0....
[ 1250, 4867, 37348, 678, 3647, 7225, 35782, 214, 33938, 195625, 1830, 502, 123829, 32562, 62, 1639, 32354, 13028, 3934, 31089, 41, 23009, 3034, 144851, 7, 4358, 2806, 77947 ]
[ 0.16357421875, 0.2381591796875, 0.1259765625, 0.03436279296875, 0.212646484375, 0.21630859375, 0.176025390625, 0.06439208984375, 0.1507568359375, 0.145263671875, 0.01788330078125, 0.124267578125, 0.150634765625, 0.068115234375, 0.048095703125, 0.045989990234375, 0.078857421875, 0.0...
embed
54374105_c0
54374105
prolog
0
Title: I can't get my Prolog DCG working with atom concat Problem title: I can't get my Prolog DCG working with atom concat Tags: prolog, dcg Problem: I can't get my Prolog DCG working with atom concat I can't get this Prolog DCG code working: String1=" ",string_codes(String1,Codes),phrase(spaces(Output),Code...
I can't get my Prolog DCG working with atom concat I can't get my Prolog DCG working with atom concat prolog dcg Prolog DCG String1 string_codes Codes Output XXs char_code atom_concat Space I can't get my Prolog DCG working with atom concat I can't get this Prolog DCG code working:
[ 0.0263671875, -0.01409912109375, 0.00799560546875, 0.0303955078125, -0.0037689208984375, 0.016845703125, 0.01953125, -0.0166015625, 0.00775146484375, -0.02880859375, 0.004425048828125, -0.007354736328125, -0.0031280517578125, -0.01043701171875, 0.00090789794921875, 0.00567626953125, ...
[ 831, 3768, 18, 2046, 1250, 4867, 391, 56367, 20697, 678, 34627, 158, 4460, 502, 104, 238, 177, 23351, 418, 79315, 40899, 28864, 13538, 14214, 21441, 2271, 43045, 903, 18151 ]
[ 0.05328369140625, 0.05194091796875, 0.039031982421875, 0.0245208740234375, 0.1285400390625, 0.210205078125, 0.07830810546875, 0.2261962890625, 0.1138916015625, 0.10400390625, 0.18408203125, 0.1171875, 0.2213134765625, 0.0635986328125, 0.00311279296875, 0.01080322265625, 0.02421569824...
embed
40339255_c0
40339255
prolog
0
Title: Expressing an equation in prolog Problem title: Expressing an equation in prolog Tags: prolog, equation, logic Problem: Expressing an equation in prolog Conjunction and negation tables are given in facts. Write a predicate: "solution to AX^2 + BX + C = 0 is X". All the values are boolean, 1 - true, 0 - false. Fa...
Expressing an equation in prolog Expressing an equation in prolog prolog equation logic Expressing Expressing an equation in prolog Conjunction and negation tables are given in facts. Write a predicate: "solution to AX^2 + BX + C = 0 is X". All the values are boolean, 1 - true, 0 - false. Fact tables are like this: I h...
[ 0.025390625, 0.003204345703125, -0.00872802734375, 0.0174560546875, -0.0126953125, 0.0196533203125, 0.02197265625, 0.01953125, 0.020751953125, 0.00122833251953125, -0.0159912109375, 0.0045166015625, -0.016357421875, -0.01434326171875, -0.00116729736328125, 0.0059814453125, -0.0108642...
[ 25129, 28, 5490, 2320, 502, 4867, 214, 142, 23, 62775, 17043, 136, 108, 125682, 23180, 34475, 15824, 601, 18781, 1653, 2063, 67, 166589, 47, 62, 1542, 8353, 304, 997, 335, 313, 2203, 757, 83, 1193, 3164, 142424, 337, 31, 34677, 106, 2...
[ 0.1883544921875, 0.045379638671875, 0.224365234375, 0.05975341796875, 0.1575927734375, 0.2315673828125, 0.0218353271484375, 0.0225982666015625, 0.0361328125, 0.1453857421875, 0.130615234375, 0.02691650390625, 0.160400390625, 0.166748046875, 0.2005615234375, 0.06280517578125, 0.142211...
embed
41228834_c0
41228834
prolog
0
Title: Prolog sum list elements at even positions Problem title: Prolog sum list elements at even positions Tags: sum, recursion, prolog, list Problem: Prolog sum list elements at even positions I stucked at this point. Can't find out how to sum elements at even positions. domains slist=integer* pos,sum=integer predica...
Prolog sum list elements at even positions Prolog sum list elements at even positions sum recursion prolog list Prolog even_summ Prolog sum list elements at even positions I stucked at this point. Can't find out how to sum elements at even positions.
[ -0.01446533203125, 0.0133056640625, 0.01953125, -0.0022430419921875, -0.0189208984375, 0.032470703125, 0.0020904541015625, 0.0184326171875, 0.01361083984375, -0.02294921875, 0.0035400390625, -0.018310546875, -0.01409912109375, -0.00183868408203125, 0.01422119140625, 0.0211181640625, ...
[ 1250, 4867, 10554, 5303, 80854, 99, 3853, 19069, 195625, 1830, 502, 11832, 179933, 6275, 7413, 3642, 47 ]
[ 0.1531982421875, 0.2344970703125, 0.24658203125, 0.133544921875, 0.2091064453125, 0.10064697265625, 0.186279296875, 0.20654296875, 0.1517333984375, 0.0013761520385742188, 0.09783935546875, 0.185546875, 0.07879638671875, 0.010162353515625, 0.0257415771484375, 0.048095703125, 0.0538635...
embed
17403257_c0
17403257
prolog
0
Title: White spaces in an atomic_list_concat/3 Problem title: White spaces in an atomic_list_concat/3 Tags: prolog Problem: White spaces in an atomic_list_concat/3 I have this atom for example: "The pen is on the table" If i use atomic_list_concat(L, ' ', S) , i obtain: L =[The, pen , is, on , the, Table] and not: L =[...
White spaces in an atomic_list_concat/3 White spaces in an atomic_list_concat/3 prolog White atomic_list_concat Table Separator White spaces in an atomic_list_concat/3 I have this atom for example: If i use atomic_list_concat(L, ' ', S) , i obtain: and not: Why? How can I do to obtain the second solution? EDIT: is it p...
[ 0.01513671875, -0.004302978515625, -0.0137939453125, 0.035400390625, -0.0198974609375, 0.0211181640625, 0.0174560546875, 0.0004367828369140625, -0.0029754638671875, -0.020751953125, 0.00087738037109375, 0.01904296875, -0.02001953125, 0.00665283203125, -0.00933837890625, 0.0081176757812...
[ 22392, 32628, 34627, 6562, 2271, 4460, 18113, 23, 502, 4867, 112997, 503, 6276, 1290, 1771, 765, 27781, 4527, 866, 242, 159, 113054, 12, 136, 959, 44084, 17932, 29806, 14575, 6626, 38310, 748 ]
[ 0.17236328125, 0.2266845703125, 0.17041015625, 0.1959228515625, 0.0819091796875, 0.2064208984375, 0.1688232421875, 0.017913818359375, 0.063232421875, 0.12939453125, 0.140869140625, 0.033538818359375, 0.1473388671875, 0.1256103515625, 0.030303955078125, 0.0239715576171875, 0.023315429...
embed
29187560_c0
29187560
prolog
0
Title: getting prolog not to repeat answers Problem title: getting prolog not to repeat answers Tags: prolog Problem: getting prolog not to repeat answers bigger(whale,shark). bigger(shark,tiger). bigger(tiger,dog). bigger(dog,rat). bigger(rat,ant). bigger(rat,mouse). bigger(cat,rat). bigger(dog,cat). smaller(X,Y) :- b...
getting prolog not to repeat answers getting prolog not to repeat answers prolog getting prolog not to repeat answers When I ask prolog smaller(X,whale) it spits out all the correct animals but repeats several of them. can anyone tell me why and if there's a way to stop it repeating?
[ -0.000675201416015625, -0.005950927734375, 0.01123046875, 0.00872802734375, -0.00872802734375, 0.0020904541015625, -0.0025634765625, -0.00096893310546875, 0.0150146484375, -0.01251220703125, -0.0037841796875, 0.0069580078125, -0.004486083984375, -0.02294921875, 0.029052734375, 0.026855...
[ 20949, 502, 4867, 959, 47, 119140, 35166, 26458, 164917, 1542, 434, 50742, 16195, 933, 1810, 756, 26785, 85825, 1284, 7, 40368, 14192, 15400, 7279, 214 ]
[ 0.11480712890625, 0.1561279296875, 0.261962890625, 0.16748046875, 0.0889892578125, 0.278076171875, 0.1815185546875, 0.159912109375, 0.1888427734375, 0.09075927734375, 0.0262298583984375, 0.1949462890625, 0.182861328125, 0.0556640625, 0.0877685546875, 0.0364990234375, 0.1036376953125,...
embed
16575473_c0
16575473
prolog
0
Title: Finding query for which a prolog program gives incorrect result Problem title: Finding query for which a prolog program gives incorrect result Tags: max, prolog, prolog-cut Problem: Finding query for which a prolog program gives incorrect result This Prolog program defines the third argument to be the maximum va...
Finding query for which a prolog program gives incorrect result Finding query for which a prolog program gives incorrect result max prolog prolog-cut Finding Finding query for which a prolog program gives incorrect result This Prolog program defines the third argument to be the maximum value of the first two numeric ar...
[ 0.0174560546875, 0.0108642578125, 0.01043701171875, 0.006134033203125, -0.00762939453125, 0.0260009765625, -0.0164794921875, -0.0035247802734375, 0.01324462890625, -0.005035400390625, 0.01348876953125, -0.0142822265625, -0.01531982421875, -0.003143310546875, 0.0289306640625, -0.0003833...
[ 26040, 41, 1294, 502, 4867, 1528, 76199, 214552, 16750, 18389, 19774, 214, 3129, 1250, 61924, 50960, 10750, 38132, 34292, 5117, 6626, 54744, 87, 5351, 43240, 1660, 5885, 30745, 831, 8337, 14192, 3229, 15400 ]
[ 0.093505859375, 0.161376953125, 0.0986328125, 0.1431884765625, 0.229248046875, 0.1629638671875, 0.0694580078125, 0.217041015625, 0.146484375, 0.1551513671875, 0.1552734375, 0.00640869140625, 0.013336181640625, 0.1446533203125, 0.1156005859375, 0.201416015625, 0.23046875, 0.18481445...
embed
42611110_c0
42611110
prolog
0
Title: How to define simple rule in prolog Problem title: How to define simple rule in prolog Tags: prolog Problem: How to define simple rule in prolog I want to define the following rule in prolog: when X is thirsty, X should go to the bar. after, I would ask prolog thirsty(X) and prolog should give back go(bar) I hav...
How to define simple rule in prolog How to define simple rule in prolog prolog How How to define simple rule in prolog I want to define the following rule in prolog: when X is thirsty, X should go to the bar. after, I would ask prolog thirsty(X) and prolog should give back go(bar) I have tried it on the following way: ...
[ 0.0301513671875, 0.016845703125, -0.009521484375, 0.01324462890625, 0.01141357421875, 0.01068115234375, -0.00970458984375, 0.016357421875, 0.01190185546875, -0.04052734375, 0.031005859375, -0.0302734375, -0.0218505859375, 0.01025390625, 0.01220703125, 0.0040283203125, 0.0063171386718...
[ 11249, 61924, 8781, 79986, 23, 502, 4867, 47, 3444, 3229, 1193, 83, 95037, 8946, 5608, 738, 70, 1909, 7103, 26458, 1542, 8337, 4420, 1299, 3034, 16750, 29568, 15549 ]
[ 0.030426025390625, 0.201416015625, 0.2362060546875, 0.2310791015625, 0.0631103515625, 0.14794921875, 0.2379150390625, 0.1376953125, 0.00640869140625, 0.0682373046875, 0.037811279296875, 0.047332763671875, 0.1881103515625, 0.1849365234375, 0.055755615234375, 0.10986328125, 0.021636962...
embed
25224045_c0
25224045
prolog
0
Title: Prolog Program output Problem title: Prolog Program output Tags: prolog Problem: Prolog Program output I am a newbie in programming and I came across a program, which I tried to execute on SWI_PROLOG and couldn't understand how the output was generated. If someone could help me walk through the steps of how c(X,...
Prolog Program output Prolog Program output prolog Prolog Program Prolog Program output I am a newbie in programming and I came across a program, which I tried to execute on SWI_PROLOG and couldn't understand how the output was generated. If someone could help me walk through the steps of how c(X,Y,Z). is evaluated it ...
[ 0.0223388671875, 0.0157470703125, -0.000591278076171875, 0.03271484375, -0.005523681640625, 0.00421142578125, -0.005828857421875, 0.0019378662109375, 0.00885009765625, -0.007659912109375, -0.006011962890625, 0.0005950927734375, -0.00933837890625, -0.011474609375, 0.004241943359375, -0....
[ 1250, 4867, 7663, 140992, 502, 444, 3525, 9014, 56037, 449, 21449, 36880, 1528, 37842, 71924, 159, 38969, 47970, 47510, 69427, 18, 28219, 3642, 139392, 22008, 4358, 35691, 8305, 98441, 501, 1542, 1723, 1511, 83, 151575, 297, 52001, 124599, ...
[ 0.1851806640625, 0.2548828125, 0.2158203125, 0.2313232421875, 0.1463623046875, 0.00640869140625, 0.018707275390625, 0.092529296875, 0.08709716796875, 0.034942626953125, 0.005828857421875, 0.0810546875, 0.199951171875, 0.050079345703125, 0.121337890625, 0.03814697265625, 0.20495605468...
embed
38265695_c1
38265695
prolog
1
7' (an integer) Actually, each number should be a list: 75 ?- maplist(string_codes, L, [[97], [98],[99]]). L = ["a", "b", "c"]. How can I convert a list of numbers into a list of lists? I am trying: tolistlist([H|T],[[H]|Outl]):- writeln([[H]]), tolistlist(T,Outl). tolistlist([],[]). It does produce list of numbers in ...
7' (an integer) Actually, each number should be a list: 75 ?- maplist(string_codes, L, [[97], [98],[99]]). L = ["a", "b", "c"]. How can I convert a list of numbers into a list of lists? I am trying: tolistlist([H|T],[[H]|Outl]):- writeln([[H]]), tolistlist(T,Outl). tolistlist([],[]). It does produce list of numbers in ...
[ -0.000492095947265625, -0.02783203125, 0.009765625, 0.01263427734375, -0.020751953125, 0.0164794921875, 0.0228271484375, 0.0072021484375, -0.00531005859375, -0.007080078125, 0.0005950927734375, -0.006744384765625, 0.0079345703125, 0.0361328125, -0.011474609375, -0.0076904296875, 0.02...
[ 361, 25, 66, 892, 1505, 192728, 12638, 14012, 5608, 186, 10, 5303, 4948, 705, 9, 22288, 6562, 91693, 40899, 339, 14773, 16665, 5046, 2203, 11, 275, 238, 11249, 831, 87, 96760, 111, 101935, 3934, 31577, 47, 841, 58745, 618, 79858, 141, ...
[ 0.19384765625, 0.1737060546875, 0.045989990234375, 0.130126953125, 0.1314697265625, 0.10015869140625, 0.119384765625, 0.1865234375, 0.1141357421875, 0.06646728515625, 0.0670166015625, 0.266845703125, 0.228759765625, 0.09326171875, 0.03460693359375, 0.12109375, 0.2235107421875, 0.16...
embed
22350403_c0
22350403
prolog
0
Title: Simple Prolog while loop always returns false? Problem title: Simple Prolog while loop always returns false? Tags: while-loop, prolog Problem: Simple Prolog while loop always returns false? I have a simple Prolog program that prints all the values from X to 10. print_(X) :- X <= 10, X1 is X + 1, write(X), print_...
Simple Prolog while loop always returns false? Simple Prolog while loop always returns false? while-loop prolog Simple Prolog print_ Simple Prolog while loop always returns false? I have a simple Prolog program that prints all the values from X to 10. So for example print_(5) would return: 5 6 7 8 9 10 False. However I...
[ 0.0185546875, 0.00604248046875, -0.00101470947265625, 0.00390625, -0.0020599365234375, 0.0247802734375, -0.000278472900390625, -0.0159912109375, 0.003326416015625, -0.018798828125, 0.0228271484375, 0.0181884765625, -0.025146484375, 0.013427734375, 0.00823974609375, 0.0133056640625, 0...
[ 60552, 1250, 4867, 12960, 40956, 11343, 30646, 7, 98320, 28354, 502, 28412, 8781, 1528, 756, 142424, 1295, 1193, 47, 4068, 124534, 190, 305, 361, 382, 483, 209, 22225, 184, 1884, 87599, 3564, 37842 ]
[ 0.180908203125, 0.1552734375, 0.2254638671875, 0.174560546875, 0.2095947265625, 0.1375732421875, 0.2000732421875, 0.031982421875, 0.2452392578125, 0.154052734375, 0.119140625, 0.161376953125, 0.06640625, 0.10736083984375, 0.01141357421875, 0.10986328125, 0.005096435546875, 0.017852...
embed
41432399_c0
41432399
prolog
0
Title: Prolog infinity loop Problem title: Prolog infinity loop Tags: prolog, clpfd Problem: Prolog infinity loop my code is the following,this code is a code for Sudoku solving but just for the row and column the first run of div2 check if the raw are all different then after transposing the second run of div2 should ...
Prolog infinity loop Prolog infinity loop prolog clpfd Prolog use_module div2 all_distinct Prolog infinity loop my code is the following,this code is a code for Sudoku solving but just for the row and column the first run of div2 check if the raw are all different then after transposing the second run of div2 should ch...
[ -0.00177764892578125, -0.01214599609375, 0.02490234375, 0.0302734375, -0.006011962890625, -0.0087890625, -0.004058837890625, 0.0093994140625, 0.030517578125, -0.051513671875, 0.01263427734375, -0.00787353515625, 0.0279541015625, 0.00897216796875, -0.0072021484375, 0.026123046875, 0.0...
[ 1250, 4867, 54241, 53, 40956, 502, 39557, 71, 4527, 83279, 18221, 304, 756, 46295, 38893, 18151, 25632, 15334, 38067, 3115, 6496, 15555, 136, 3365, 316, 5117, 11675, 12765, 2174, 49649, 12921, 3900, 7522, 17932, 5608, 15400, 14602, 179933, ...
[ 0.16357421875, 0.2578125, 0.1424560546875, 0.08740234375, 0.23291015625, 0.1024169921875, 0.00640869140625, 0.0268402099609375, 0.044830322265625, 0.08026123046875, 0.1337890625, 0.146728515625, 0.03900146484375, 0.016998291015625, 0.0927734375, 0.1505126953125, 0.008880615234375, ...
embed
66474126_c0
66474126
prolog
0
Title: Optimising a Prolog Rule Problem title: Optimising a Prolog Rule Tags: prolog Problem: Optimising a Prolog Rule I have the following Prolog Rule: p(X,Y):- q(Y,X), r(Y), s(Y), t(X). It is known that r(Y) and s(Y) have only one solution, while q(X,Y) and p(X,Y) have several solutions. The task is to optimise the R...
Optimising a Prolog Rule Optimising a Prolog Rule prolog Optimising Prolog Rule Optimising a Prolog Rule I have the following Prolog Rule: It is known that r(Y) and s(Y) have only one solution, while q(X,Y) and p(X,Y) have several solutions. The task is to optimise the Rule with an auxillary predicate. My guess is to p...
[ 0.033447265625, 0.0216064453125, 0.005950927734375, 0.00909423828125, -0.006744384765625, 0.00098419189453125, -0.0036468505859375, -0.0191650390625, 0.0091552734375, -0.036865234375, 0.0142822265625, 0.00982666015625, -0.0045166015625, -0.01904296875, 0.01116943359375, 0.0211181640625...
[ 43938, 72219, 1250, 4867, 139118, 502, 765, 25632, 51529, 1690, 1723, 136, 91, 4734, 1632, 29806, 12960, 8096, 1542, 915, 40368, 51347, 66211, 15572, 3075, 678, 2970, 2298, 1294, 1653, 2063, 57767, 3884, 3003, 18, 17721, 808, 56282, 4527, ...
[ 0.18896484375, 0.0743408203125, 0.1749267578125, 0.232177734375, 0.2108154296875, 0.115966796875, 0.06060791015625, 0.061920166015625, 0.1004638671875, 0.1041259765625, 0.141845703125, 0.072509765625, 0.133056640625, 0.0987548828125, 0.1456298828125, 0.1956787109375, 0.0113525390625,...
embed
37691739_c1
37691739
prolog
1
Haegenauchschwein_food]), Landrasse = [danemark,Landrasse_food], pig([japan, vegeables], All), pig([australia, !(eggs)], All), Schwarzfussschwein = [Schwarzfussschwein_land, chestnuts], Kunekune = [!(france), grass]. uncaught exception: error(existence_error(procedure,pig/2),all_pigs/2) Code signals: Prolog, all_pigs,...
Haegenauchschwein_food]), Landrasse = [danemark,Landrasse_food], pig([japan, vegeables], All), pig([australia, !(eggs)], All), Schwarzfussschwein = [Schwarzfussschwein_land, chestnuts], Kunekune = [!(france), grass]. uncaught exception: error(existence_error(procedure,pig/2),all_pigs/2) Code signals: Prolog, all_pigs,...
[ 0.0206298828125, 0.0233154296875, 0.00141143798828125, 0.0216064453125, -0.022216796875, 0.022705078125, -0.015380859375, -0.000881195068359375, 0.00005435943603515625, -0.01263427734375, 0.005615234375, 0.006134033203125, -0.006561279296875, -0.00115966796875, 0.0120849609375, -0.0096...
[ 1391, 13, 1409, 11, 12665, 127081, 73, 49558, 247, 6557, 2701, 184, 2203, 95860, 10015, 94646, 53408, 145, 3180, 173, 429, 19736, 3164, 2816, 7884, 711, 2507, 9405, 89383, 74563, 4205, 7, 1760, 290, 271, 3609, 5900, 343, 1811, 95022, 27...
[ 0.1009521484375, 0.039215087890625, 0.1092529296875, 0.033050537109375, 0.12841796875, 0.17822265625, 0.1326904296875, 0.234130859375, 0.0460205078125, 0.084228515625, 0.1925048828125, 0.1441650390625, 0.115966796875, 0.043212890625, 0.1236572265625, 0.0220184326171875, 0.21447753906...
embed
20169917_c0
20169917
prolog
0
Title: Creating a list from user input using stop chars Problem title: Creating a list from user input using stop chars Tags: prolog Problem: Creating a list from user input using stop chars How can I create a list of words from the user input? Example: ?- readInput(L). |: this is an input. this will not be considered ...
Creating a list from user input using stop chars Creating a list from user input using stop chars prolog user stop Creating Creating a list from user input using stop chars How can I create a list of words from the user input? Example: I want the character . or ? to be the end of the sentence, so everything after it wi...
[ 0.0012969970703125, -0.001434326171875, 0.001129150390625, 0.006317138671875, -0.0091552734375, 0.00933837890625, 0.015869140625, 0.0140380859375, -0.0009307861328125, -0.0537109375, 0.01171875, 0.0030364990234375, -0.016357421875, -0.00933837890625, 0.0103759765625, 0.009765625, 0.0...
[ 56781, 5303, 1295, 38937, 107730, 17368, 7279, 21441, 7, 1916, 10, 502, 4867, 831, 28282, 111, 34153, 70, 89536, 3444, 62816, 5, 707, 705, 186, 3564, 149357, 26818, 7103, 959, 15044, 8110, 46132 ]
[ 0.1640625, 0.23193359375, 0.1451416015625, 0.162841796875, 0.22900390625, 0.07269287109375, 0.22021484375, 0.216552734375, 0.08154296875, 0.007171630859375, 0.02020263671875, 0.10052490234375, 0.1707763671875, 0.033111572265625, 0.1748046875, 0.06158447265625, 0.2078857421875, 0.00...
embed
27118031_c0
27118031
prolog
0
Title: Add elements in a list in Prolog Problem title: Add elements in a list in Prolog Tags: prolog Problem: Add elements in a list in Prolog I want to extract elements from a list and add them into another new list.How can I do this- L=[['abc',18],['bcd',19],['def',20]], nth1(Count,L,List1), nth1(2,List1,Value), **NO...
Add elements in a list in Prolog Add elements in a list in Prolog prolog Add Prolog nth1 Count List1 Value NOW WANT PUT Valie list.So Add elements in a list in Prolog I want to extract elements from a list and add them into another new list.How can I do this- How can I keep adding elements in a new list??
[ -0.00023746490478515625, 0.002960205078125, 0.003082275390625, 0.00518798828125, -0.018310546875, 0.0089111328125, -0.009765625, 0.0059814453125, 0.01324462890625, -0.0277099609375, 0.02392578125, -0.033935546875, -0.00054931640625, 0.00860595703125, -0.009765625, -0.01092529296875, ...
[ 29117, 80854, 23, 5303, 1250, 4867, 502, 927, 108210, 32036, 190060, 110753, 33996, 124599, 25447, 13, 3444, 125663, 1295, 15190, 3934, 15700, 3525, 13695, 154107 ]
[ 0.1396484375, 0.1895751953125, 0.052459716796875, 0.1876220703125, 0.1436767578125, 0.2198486328125, 0.10546875, 0.1044921875, 0.1021728515625, 0.114990234375, 0.1231689453125, 0.00128173828125, 0.0364990234375, 0.062744140625, 0.10162353515625, 0.06109619140625, 0.051849365234375, ...
embed
26450138_c0
26450138
prolog
0
Title: Prolog: How to tell if a predicate is deterministic or not Problem title: Prolog: How to tell if a predicate is deterministic or not Tags: prolog, deterministic, predicate Problem: Prolog: How to tell if a predicate is deterministic or not So from what I understand about deterministic predicates: Deterministic p...
Prolog: How to tell if a predicate is deterministic or not Prolog: How to tell if a predicate is deterministic or not prolog deterministic predicate Prolog How Prolog: How to tell if a predicate is deterministic or not So from what I understand about deterministic predicates: Deterministic predicate = 1 solution Non-de...
[ 0.03271484375, 0.000484466552734375, 0.01300048828125, 0.0244140625, -0.01019287109375, 0.0174560546875, 0.0111083984375, -0.01611328125, -0.0078125, -0.0361328125, 0.00970458984375, -0.0289306640625, -0.00640869140625, -0.010986328125, 0.005950927734375, 0.020751953125, -0.000200271...
[ 1250, 4867, 11249, 47, 14192, 2174, 1653, 2063, 67, 83, 72694, 48242, 707, 959, 502, 10, 28219, 1636, 262, 30524, 2203, 106, 29806, 3775, 112, 48716, 51347, 10644, 91736, 831, 96391, 1632, 3789, 16487, 33938, 53201 ]
[ 0.134033203125, 0.1868896484375, 0.04736328125, 0.037750244140625, 0.1839599609375, 0.08709716796875, 0.1956787109375, 0.2342529296875, 0.1563720703125, 0.05780029296875, 0.2291259765625, 0.1910400390625, 0.051788330078125, 0.1441650390625, 0.1002197265625, 0.00225830078125, 0.050903...
embed
47738182_c0
47738182
prolog
0
Title: Need code of Half and Full adder using Visual Prolog using basis 2-AND-NOT Problem title: Need code of Half and Full adder using Visual Prolog using basis 2-AND-NOT Tags: prolog Problem: Need code of Half and Full adder using Visual Prolog using basis 2-AND-NOT I`m writing code on visual prolog 8, I have to writ...
Need code of Half and Full adder using Visual Prolog using basis 2-AND-NOT Need code of Half and Full adder using Visual Prolog using basis 2-AND-NOT prolog Visual basis Need Half Full Prolog AND-NOT Need code of Half and Full adder using Visual Prolog using basis 2-AND-NOT I`m writing code on visual prolog 8, I have t...
[ 0.012451171875, 0.016357421875, -0.00157928466796875, 0.0152587890625, -0.020751953125, 0.0128173828125, -0.004302978515625, -0.0301513671875, 0.00543212890625, -0.00927734375, -0.00958251953125, -0.0166015625, -0.01177978515625, 0.01708984375, 0.0059814453125, -0.027099609375, 0.009...
[ 52889, 18151, 151500, 136, 9312, 606, 820, 17368, 73372, 1250, 4867, 18231, 4720, 45029, 8575, 502, 48762, 111, 32562, 21176, 382, 765, 33022, 29117, 56, 23552, 23180, 85027, 34702, 4393, 25647 ]
[ 0.07916259765625, 0.2049560546875, 0.1998291015625, 0.1219482421875, 0.16650390625, 0.126708984375, 0.2073974609375, 0.008056640625, 0.163818359375, 0.1165771484375, 0.2037353515625, 0.170166015625, 0.0804443359375, 0.16064453125, 0.10125732421875, 0.0765380859375, 0.08526611328125, ...
embed
66319033_c0
66319033
prolog
0
Title: prolog program for sum of all even fibonacci numbers below 4000000 Problem title: prolog program for sum of all even fibonacci numbers below 4000000 Tags: fibonacci, prolog Problem: prolog program for sum of all even fibonacci numbers below 4000000 I need a solution in prolog. I am trying but did not get the cor...
prolog program for sum of all even fibonacci numbers below 4000000 prolog program for sum of all even fibonacci numbers below 4000000 fibonacci prolog Value prolog program for sum of all even fibonacci numbers below 4000000 I need a solution in prolog. I am trying but did not get the correct answer. Kindly solve my pro...
[ 0.0107421875, -0.0031890869140625, 0.0106201171875, 0.0030975341796875, -0.0157470703125, 0.02978515625, -0.004852294921875, 0.018798828125, 0.0107421875, -0.00970458984375, 0.0150146484375, -0.0089111328125, -0.0098876953125, -0.0169677734375, 0.024169921875, 0.0142822265625, 0.0189...
[ 502, 4867, 1528, 100, 10554, 111, 756, 3853, 809, 20990, 52544, 101935, 35064, 201, 197094, 190060, 3871, 29806, 23, 31577, 26785, 35166, 27435, 86869, 2967, 18151 ]
[ 0.1669921875, 0.2396240234375, 0.2056884765625, 0.048980712890625, 0.2174072265625, 0.0548095703125, 0.11468505859375, 0.1890869140625, 0.11932373046875, 0.134033203125, 0.1492919921875, 0.1580810546875, 0.1990966796875, 0.11334228515625, 0.180908203125, 0.2176513671875, 0.0537719726...
embed
78027113_c0
78027113
prolog
0
Title: Prolog max length of a list in a list of lists Problem title: Prolog max length of a list in a list of lists Tags: prolog Problem: Prolog max length of a list in a list of lists My goal is to return the longest list in a list of lists. For example: [[1,2,3],[1,2]]-> [1,2,3]. I wrote this list_max_len([L],L). lis...
Prolog max length of a list in a list of lists Prolog max length of a list in a list of lists prolog Prolog list_max_len Prolog max length of a list in a list of lists My goal is to return the longest list in a list of lists. For example: [[1,2,3],[1,2]]-> [1,2,3]. I wrote this But i got this error: can someone explain...
[ 0.010986328125, 0.0260009765625, 0.0174560546875, 0.0255126953125, -0.01025390625, -0.005279541015625, -0.00506591796875, 0.0196533203125, 0.0174560546875, -0.0269775390625, -0.0023193359375, -0.01318359375, 0.01104736328125, 0.00439453125, 0.0255126953125, -0.0052490234375, 0.002212...
[ 1250, 4867, 18389, 140909, 111, 5303, 23, 502, 24084, 1977, 69236, 47, 30646, 4989, 525, 27781, 133063, 96386, 103607, 155761, 903, 18499, 831, 73342, 2367, 83 ]
[ 0.1363525390625, 0.2122802734375, 0.1873779296875, 0.2061767578125, 0.03631591796875, 0.217041015625, 0.04534912109375, 0.10076904296875, 0.1734619140625, 0.1875, 0.1148681640625, 0.01483154296875, 0.112060546875, 0.1544189453125, 0.114013671875, 0.0023193359375, 0.084228515625, 0....
embed
28266701_c0
28266701
prolog
0
Title: Logic Dots Problems with SWI-prolog Problem title: Logic Dots Problems with SWI-prolog Tags: prolog, logic Problem: Logic Dots Problems with SWI-prolog I am currently working with Logic Dots Game Solver with SWI-prolog. The Logic Dots is kind of like Kakuro. There are numbers surrounding grid and the sum of each...
Logic Dots Problems with SWI-prolog Logic Dots Problems with SWI-prolog prolog logic Logic Dots Problems SWI-prolog Logic Dots Problems with SWI-prolog I am currently working with Logic Dots Game Solver with SWI-prolog. The Logic Dots is kind of like Kakuro. There are numbers surrounding grid and the sum of each Row an...
[ 0.0091552734375, 0.037841796875, -0.0032806396484375, 0.006866455078125, -0.03466796875, -0.0107421875, 0.0032196044921875, -0.0052490234375, -0.007049560546875, -0.031982421875, -0.00118255615234375, 0.0022125244140625, -0.0186767578125, -0.0107421875, -0.000904083251953125, -0.008483...
[ 50592, 238, 84929, 7, 15649, 678, 159, 38969, 3454, 4867, 502, 62775, 20697, 13547, 6678, 814, 8562, 1884, 40497, 11951, 101935, 206990, 120067, 10554, 12638, 96190, 136, 233987, 8110, 105950, 450, 42518, 14012, 33938, 26484, 959, 97264, 2967...
[ 0.2115478515625, 0.1517333984375, 0.255126953125, 0.1044921875, 0.1693115234375, 0.107421875, 0.07464599609375, 0.21484375, 0.13427734375, 0.1864013671875, 0.1181640625, 0.1719970703125, 0.07781982421875, 0.1068115234375, 0.129638671875, 0.1278076171875, 0.049774169921875, 0.103149...
embed
61893689_c0
61893689
prolog
0
Title: How to parse natural language question for geoquery program? Problem title: How to parse natural language question for geoquery program? Tags: nlp, text-parsing, prolog Problem: How to parse natural language question for geoquery program? I found the geoquery program that can answer some simple questions, but I ...
How to parse natural language question for geoquery program? How to parse natural language question for geoquery program? nlp text-parsing prolog How How to parse natural language question for geoquery program? I found the geoquery program that can answer some simple questions, but I can't find any demo or instructions...
[ 0.01025390625, 0.02197265625, 0.002288818359375, 0.0245361328125, -0.01068115234375, 0.043701171875, 0.0052490234375, 0.014404296875, -0.01324462890625, -0.036376953125, 0.005401611328125, 0.00011539459228515625, -0.031494140625, -0.0147705078125, -0.01318359375, 0.021240234375, -0.0...
[ 11249, 47, 366, 184, 6083, 46876, 9655, 100, 20787, 944, 1294, 1528, 26775, 7986, 2500, 6953, 502, 4867, 35166, 8781, 17582, 53397, 167934, 3642, 9433, 2046, 903, 3934, 16940 ]
[ 0.061126708984375, 0.03753662109375, 0.1614990234375, 0.1453857421875, 0.1578369140625, 0.185791015625, 0.191650390625, 0.041717529296875, 0.1514892578125, 0.159423828125, 0.146484375, 0.117919921875, 0.1341552734375, 0.0723876953125, 0.1397705078125, 0.0227508544921875, 0.0504760742...
embed
19278163_c0
19278163
prolog
0
Title: I am wondering about prolog lists Problem title: I am wondering about prolog lists Tags: list, prolog Problem: I am wondering about prolog lists I'm wondering if there's a way to "shortcut" a list declaration in prolog. Instead of [1,2,3]. I'd like to myList = [1,2,3]. so that way I can try to use myList (such a...
I am wondering about prolog lists I am wondering about prolog lists list prolog I am wondering about prolog lists I'm wondering if there's a way to "shortcut" a list declaration in prolog. Instead of [1,2,3]. I'd like to myList = [1,2,3]. so that way I can try to use myList (such as member(X, myList) instead of having ...
[ 0.00213623046875, 0.00927734375, 0.020263671875, -0.0135498046875, -0.0159912109375, -0.005584716796875, 0.0002899169921875, 0.00372314453125, 0.006683349609375, -0.03857421875, 0.0164794921875, 0.00567626953125, 0.00089263916015625, -0.000850677490234375, 0.01220703125, 0.017578125, ...
[ 444, 149016, 1672, 502, 4867, 5303, 7, 10, 3917, 186500, 19774, 58, 21635, 1363, 23, 175399, 68252, 155761, 71, 1884, 47, 759, 154663, 2203, 268, 9790, 4527, 32786, 1542, 64457, 119140, 8561, 645, 11907, 3687, 3871, 442, 2071, 903, 7722, ...
[ 0.013153076171875, 0.11279296875, 0.00164794921875, 0.2017822265625, 0.26318359375, 0.2152099609375, 0.0151214599609375, 0.039398193359375, 0.08544921875, 0.1907958984375, 0.2025146484375, 0.044158935546875, 0.2132568359375, 0.044189453125, 0.014251708984375, 0.09552001953125, 0.0420...
embed
12638347_c0
12638347
prolog
0
Title: Replace atom with variable Problem title: Replace atom with variable Tags: prolog Problem: Replace atom with variable I have a term which may or may not contain the atom 'this'. The term may also contain variables. I need to replace 'this' with a variable I. How can I do this? I tried to do something like this: ...
Replace atom with variable Replace atom with variable prolog Replace term_to_atom tokenize_atom Replace atom with variable I have a term which may or may not contain the atom 'this'. The term may also contain variables. I need to replace 'this' with a variable I. How can I do this? I tried to do something like this: It...
[ -0.005950927734375, 0.0185546875, -0.006744384765625, 0.02587890625, -0.0155029296875, 0.0019378662109375, -0.00653076171875, 0.019287109375, -0.0174560546875, -0.044189453125, 0.0218505859375, 0.0191650390625, -0.0098876953125, 0.0023956298828125, 0.017578125, 0.01556396484375, 0.01...
[ 853, 23935, 34627, 678, 77336, 502, 4867, 13579, 188, 11, 5928, 47, 1098, 20650, 87, 765, 1543, 959, 70541, 100231, 3871, 91995, 11249, 831, 54, 903, 37842, 115058, 4488, 2967, 738, 4420, 7311, 18 ]
[ 0.097412109375, 0.1810302734375, 0.252197265625, 0.1329345703125, 0.31201171875, 0.1263427734375, 0.2034912109375, 0.1993408203125, 0.1348876953125, 0.0191802978515625, 0.1912841796875, 0.091552734375, 0.1129150390625, 0.13720703125, 0.15869140625, 0.037078857421875, 0.09637451171875...
embed
20165720_c0
20165720
prolog
0
Title: How to simulate atom_to_term(+Atom, -Term, -Bindings) of SWI-Prolog in SICStus Prolog? Problem title: How to simulate atom_to_term(+Atom, -Term, -Bindings) of SWI-Prolog in SICStus Prolog? Tags: sicstus-prolog, prolog Problem: How to simulate atom_to_term(+Atom, -Term, -Bindings) of SWI-Prolog in SICStus Prolog?...
How to simulate atom_to_term(+Atom, -Term, -Bindings) of SWI-Prolog in SICStus Prolog? How to simulate atom_to_term(+Atom, -Term, -Bindings) of SWI-Prolog in SICStus Prolog? sicstus-prolog prolog How atom_to_term Atom Term Bindings SWI-Prolog SICStus Prolog How to simulate atom_to_term(+Atom, -Term, -Bindings) of SWI-P...
[ 0.002960205078125, 0.033935546875, -0.00811767578125, 0.0159912109375, -0.015625, 0.01043701171875, 0.023681640625, 0.0036468505859375, -0.03173828125, -0.03955078125, 0.00074005126953125, 0.006805419921875, -0.020751953125, 0.002838134765625, 0.0164794921875, 0.000240325927734375, 0...
[ 11249, 47, 40226, 67, 34627, 188, 32166, 1328, 12078, 35484, 39, 16882, 33770, 159, 38969, 10752, 4867, 102198, 2143, 1250, 26536, 18253, 3454, 502, 69728, 2994, 1843, 9, 17368, 33022, 68679, 23882, 3871, 96760, 13579, 831, 18, 4527, 88303,...
[ 0.0831298828125, 0.10443115234375, 0.2481689453125, 0.0875244140625, 0.2113037109375, 0.17578125, 0.2354736328125, 0.0799560546875, 0.1839599609375, 0.17431640625, 0.0853271484375, 0.068603515625, 0.16845703125, 0.0672607421875, 0.202392578125, 0.11572265625, 0.1871337890625, 0.043...
embed
47667057_c0
47667057
prolog
0
Title: How to check whether some variable returns something in predicate Problem title: How to check whether some variable returns something in predicate Tags: prolog Problem: How to check whether some variable returns something in predicate Lets assume I have facts as follows: airport(nyc,'newyork'). I want want to di...
How to check whether some variable returns something in predicate How to check whether some variable returns something in predicate prolog How Air Airport How to check whether some variable returns something in predicate Lets assume I have facts as follows: I want want to display a message if the user inputs an airport...
[ -0.0018310546875, 0.0024566650390625, -0.0009918212890625, 0.0024261474609375, 0.004974365234375, 0.0255126953125, 0.0208740234375, -0.00396728515625, -0.00567626953125, 0.002166748046875, 0.025634765625, 0.019287109375, -0.009765625, -0.004150390625, 0.0157470703125, -0.00007629394531...
[ 11249, 47, 12765, 36766, 77336, 30646, 7, 9844, 23, 1653, 2063, 67, 502, 4867, 5345, 48938, 41591, 15824, 3444, 44116, 26008, 2174, 38937, 107730, 146619, 22027, 18, 32316, 34224, 48903, 4488 ]
[ 0.10693359375, 0.0064697265625, 0.1968994140625, 0.1385498046875, 0.2333984375, 0.2034912109375, 0.07830810546875, 0.0657958984375, 0.090087890625, 0.124267578125, 0.1690673828125, 0.06402587890625, 0.118896484375, 0.1807861328125, 0.1651611328125, 0.226806640625, 0.0250701904296875,...
embed
43744805_c0
43744805
prolog
0
Title: Swi-Prolog gives error on Yosemite 10.10.5 Problem title: Swi-Prolog gives error on Yosemite 10.10.5 Tags: prolog, swi-prolog Problem: Swi-Prolog gives error on Yosemite 10.10.5 I downloaded prolog on this website http://www.swi-prolog.org/download/stable version 7.4.2 for Yosemite 10.10.5, after that when openi...
Swi-Prolog gives error on Yosemite 10.10.5 Swi-Prolog gives error on Yosemite 10.10.5 prolog swi-prolog Swi-Prolog Yosemite Swi-Prolog gives error on Yosemite 10.10.5 I downloaded prolog on this website http://www.swi-prolog.org/download/stable version 7.4.2 for Yosemite 10.10.5, after that when opening .pl extension f...
[ 0.027099609375, 0.01007080078125, -0.0032196044921875, 0.007537841796875, -0.027099609375, 0.00494384765625, 0.004974365234375, 0.000415802001953125, -0.03271484375, -0.0108642578125, 0.006683349609375, -0.007720947265625, -0.00714111328125, -0.0069580078125, 0.0240478515625, 0.0005798...
[ 105432, 9, 10752, 4867, 76199, 18499, 98, 6949, 184, 35093, 147546, 93645, 502, 91, 2452, 3454, 7026, 903, 4165, 7, 61754, 22819, 11389, 2861, 117904, 73432, 2424, 111938, 102158, 4092, 13105, 34754, 148462, 15549 ]
[ 0.2685546875, 0.0469970703125, 0.159423828125, 0.2349853515625, 0.049957275390625, 0.187744140625, 0.10498046875, 0.146728515625, 0.1197509765625, 0.1644287109375, 0.1376953125, 0.2200927734375, 0.1375732421875, 0.06536865234375, 0.23779296875, 0.146728515625, 0.0794677734375, 0.01...
embed
59111166_c0
59111166
prolog
0
Title: how do we do a cycle in prolog? Problem title: how do we do a cycle in prolog? Tags: prolog Problem: how do we do a cycle in prolog? I'm new to prolog language recently started teaching my self this language I came across an interesting question which says to Write a database for a predicate cycle/1 such that qu...
how do we do a cycle in prolog? how do we do a cycle in prolog? prolog how do we do a cycle in prolog? I'm new to prolog language recently started teaching my self this language I came across an interesting question which says to Write a database for a predicate cycle/1 such that query How do we do that can someone hel...
[ 0.0198974609375, 0.00970458984375, -0.0106201171875, 0.020263671875, -0.001739501953125, 0.0216064453125, 0.0064697265625, -0.006500244140625, 0.0185546875, -0.052001953125, 0.00140380859375, 0.005889892578125, -0.029541015625, 0.0101318359375, 0.023681640625, 0.0220947265625, -0.008...
[ 3642, 54, 642, 10, 105823, 23, 502, 4867, 3525, 46876, 128169, 15970, 49041, 601, 18781, 63399, 100, 1653, 2063, 11583, 6044, 41, 1294, 11249, 4358, 31577, 23996, 16087, 127427 ]
[ 0.103759765625, 0.126708984375, 0.0992431640625, 0.1053466796875, 0.283203125, 0.1104736328125, 0.1678466796875, 0.259521484375, 0.00634765625, 0.1031494140625, 0.0216217041015625, 0.05877685546875, 0.008941650390625, 0.03662109375, 0.117431640625, 0.2171630859375, 0.0225982666015625...
embed
8247032_c0
8247032
prolog
0
Title: Predsort/3 like msort/2 Problem title: Predsort/3 like msort/2 Tags: prolog, swi-prolog Problem: Predsort/3 like msort/2 I would like to know is it possible to use predsort/3 without losing duplicate values? If not, that how should I sort this list of terms? Current sort function: compareSecond(Delta, n(_, A, _)...
Predsort/3 like msort/2 Predsort/3 like msort/2 prolog swi-prolog Predsort Delta Predsort/3 like msort/2 I would like to know is it possible to use predsort/3 without losing duplicate values? If not, that how should I sort this list of terms? Current sort function: Result: You see, that term n(8,0,9) is gone and that's...
[ 0.006866455078125, 0.00506591796875, 0.017578125, 0.0005950927734375, -0.00933837890625, 0.0164794921875, 0.0169677734375, 0.0014495849609375, -0.01336669921875, -0.02880859375, 0.006866455078125, 0.0361328125, 0.0120849609375, -0.0269775390625, -0.00299072265625, 0.0023345947265625, ...
[ 7145, 62351, 18113, 1884, 347, 12477, 502, 4867, 2452, 3454, 56588, 2806, 3714, 7722, 4527, 1653, 15490, 388, 171763, 67, 142424, 3642, 5608, 12096, 5303, 69407, 114063, 32354, 126684, 1957, 13579, 653, 209069, 1126, 74955, 450, 959, 2367, ...
[ 0.2171630859375, 0.301025390625, 0.2509765625, 0.0810546875, 0.074462890625, 0.14794921875, 0.0880126953125, 0.157470703125, 0.1412353515625, 0.0863037109375, 0.1864013671875, 0.00262451171875, 0.023284912109375, 0.107421875, 0.10150146484375, 0.2239990234375, 0.07373046875, 0.0933...
embed
64959919_c0
64959919
prolog
0
Title: ZDD with Quantification in Prolog Problem title: ZDD with Quantification in Prolog Tags: prolog, sat Problem: ZDD with Quantification in Prolog What would be the ZDD approach in Prolog that also provides quantifiers. Notation for existential quantifier would be as follows: X^F where X is the bound variable and F...
ZDD with Quantification in Prolog ZDD with Quantification in Prolog prolog sat ZDD Quantification Prolog ZDD with Quantification in Prolog What would be the ZDD approach in Prolog that also provides quantifiers. Notation for existential quantifier would be as follows: where X is the bound variable and F is the formula....
[ 0.014892578125, 0.00064849853515625, -0.00787353515625, -0.01251220703125, -0.009765625, 0.003997802734375, 0.0025177001953125, 0.000782012939453125, 0.006072998046875, -0.0130615234375, 0.01300048828125, -0.004364013671875, -0.0203857421875, -0.0003185272216796875, 0, 0.00454711914062...
[ 567, 24057, 678, 75344, 41274, 23, 1250, 4867, 502, 11736, 2806, 51515, 2843, 87344, 55230, 85789, 438, 22062, 99707, 15403, 1193, 99091, 77336, 563, 26168, 42518, 25632, 11249, 1672, 33022, 124374, 51776, 100, 136, 27489, 8353, 919 ]
[ 0.1492919921875, 0.2587890625, 0.108642578125, 0.1622314453125, 0.1077880859375, 0.0187225341796875, 0.1595458984375, 0.219482421875, 0.1170654296875, 0.09576416015625, 0.05645751953125, 0.1409912109375, 0.0242156982421875, 0.1107177734375, 0.1749267578125, 0.1845703125, 0.1284179687...
embed
33189741_c0
33189741
prolog
0
Title: How to give a list an id in Prolog? Problem title: How to give a list an id in Prolog? Tags: prolog Problem: How to give a list an id in Prolog? Hi, I'm new to Prolog programming. My questions is : Let's say I have this list of elements [a,e,u,o,y,i] and I want to give it an identifier, for example vowels . Why ...
How to give a list an id in Prolog? How to give a list an id in Prolog? prolog How Prolog How to give a list an id in Prolog? Hi, I'm new to Prolog programming. My questions is : Let's say I have this list of elements [a,e,u,o,y,i] and I want to give it an identifier, for example vowels . Why ? Let's say we have a defi...
[ 0.00616455078125, -0.00098419189453125, 0.0194091796875, 0.01287841796875, -0.00408935546875, 0.0257568359375, 0.0107421875, 0.02294921875, -0.005767822265625, -0.0361328125, 0.01287841796875, -0.00066375732421875, -0.006317138671875, -0.004638671875, 0.01336669921875, -0.0101928710937...
[ 11249, 47, 8337, 10, 5303, 142, 3447, 23, 1250, 4867, 502, 3525, 56037, 80854, 11, 13, 34, 31, 53, 14, 3444, 42485, 56, 27781, 2244, 8420, 44084, 61924, 1653, 2063, 67, 32786, 12477, 12765, 195625, 5844, 2174, 12830, 32316, 41, 10484, ...
[ 0.087158203125, 0.0278472900390625, 0.1915283203125, 0.01751708984375, 0.26025390625, 0.1282958984375, 0.2469482421875, 0.08917236328125, 0.1815185546875, 0.255859375, 0.0921630859375, 0.005096435546875, 0.0819091796875, 0.167236328125, 0.012908935546875, 0.047271728515625, 0.0494689...
embed
70512746_c0
70512746
prolog
0
Title: All initial segments of a list in Prolog Problem title: All initial segments of a list in Prolog Tags: prolog Problem: All initial segments of a list in Prolog Q)Find all initial segments of the given list [1, 3, 6 ,9, 8]. i.e. [], [1], [1,3],[1,3,6] I'm stuck on how to construct the recursive call to segments,I...
All initial segments of a list in Prolog All initial segments of a list in Prolog prolog All Prolog All initial segments of a list in Prolog Q)Find all initial segments of the given list [1, 3, 6 ,9, 8]. i.e. [], [1], [1,3],[1,3,6] I'm stuck on how to construct the recursive call to segments,I know I have to use an app...
[ 0.00634765625, 0.0146484375, 0.01806640625, 0.01031494140625, -0.0142822265625, -0.00020694732666015625, -0.000682830810546875, 0.005157470703125, 0.01190185546875, -0.0208740234375, 0.014404296875, -0.006622314453125, -0.00811767578125, 0.03857421875, 0.021240234375, -0.00160217285156...
[ 3164, 61475, 33180, 7, 111, 5303, 23, 1250, 4867, 502, 2396, 16, 204582, 756, 34475, 68252, 138, 305, 1126, 382, 17550, 96386, 363, 910, 179933, 64549, 195625, 5844, 11782, 47, 114689, 71, 32354, 9077, 19095, 25842, 25632, 18151 ]
[ 0.1524658203125, 0.22021484375, 0.3095703125, 0.1177978515625, 0.0406494140625, 0.1929931640625, 0.08587646484375, 0.18896484375, 0.258056640625, 0.1513671875, 0.082763671875, 0.000701904296875, 0.1697998046875, 0.1572265625, 0.05718994140625, 0.048797607421875, 0.135009765625, 0.0...
embed
14359502_c0
14359502
prolog
0
Title: count the atomic elements in a deep list in prolog Problem title: count the atomic elements in a deep list in prolog Tags: prolog Problem: count the atomic elements in a deep list in prolog elem([],0). elem([H|T],R):-atomic(H),elem(T,R1),R1 is R+1. elem([H|T],R):-elem(H,R1),elem(T,R2),R is R1+R2. This is my code...
count the atomic elements in a deep list in prolog count the atomic elements in a deep list in prolog prolog ERROR Arguments count the atomic elements in a deep list in prolog This is my code and after I searched the answer to my problem on this site, I didn't find a good one. The error is : ?- elem([1,[2],3,4],R) . bu...
[ 0.0294189453125, 0.0126953125, -0.00653076171875, 0.0272216796875, 0.0029144287109375, 0.029541015625, 0.006561279296875, -0.00823974609375, -0.0020751953125, -0.031494140625, 0.0078125, -0.036376953125, 0.01507568359375, 0.031494140625, 0.033203125, -0.0235595703125, 0.0216064453125...
[ 54529, 70, 34627, 1771, 80854, 23, 53894, 5303, 502, 4867, 151206, 24638, 112140, 18151, 35166, 2967, 4127, 18499, 705, 9, 88, 195, 418, 39556, 82449, 1052, 1284, 5608, 627, 2203, 138 ]
[ 0.2139892578125, 0.00054931640625, 0.1793212890625, 0.1246337890625, 0.2412109375, 0.06146240234375, 0.1956787109375, 0.1981201171875, 0.150146484375, 0.2259521484375, 0.133544921875, 0.08917236328125, 0.21337890625, 0.10345458984375, 0.002960205078125, 0.036956787109375, 0.012207031...
embed
47774313_c0
47774313
prolog
0
Title: Display list of list prolog Problem title: Display list of list prolog Tags: prolog Problem: Display list of list prolog I can't display list of list in prolog please help me for example : I have this list : [[1,2,3][4,5][6,8,7][6,9]] I want to delete this [ [] [] [] [] ] and just display content: 1 2 3 4 5 6 8 ...
Display list of list prolog Display list of list prolog prolog Display WriteListe write_liste Display list of list prolog I can't display list of list in prolog please help me for example : I have this list : [[1,2,3][4,5][6,8,7][6,9]] I want to delete this [ [] [] [] [] ] and just display content: 1 2 3 4 5 6 8 7 6 9 ...
[ 0.01025390625, 0.0159912109375, -0.01190185546875, -0.0004253387451171875, -0.010009765625, 0.004180908203125, -0.00830078125, 0.0025177001953125, 0.006500244140625, 0.0002384185791015625, 0.007232666015625, 0.0019073486328125, -0.007568359375, 0.010498046875, 0.005523681640625, 0.0208...
[ 90045, 5303, 111, 502, 4867, 601, 18781, 154663, 33022, 12897, 831, 18, 44116, 23, 22936, 4358, 27781, 765, 903, 133063, 363, 80389, 151664, 966, 171379, 3444, 47, 154109, 10941, 106, 116, 138, 201, 190, 382, 361, 305, 483, 37842, 11782, ...
[ 0.1851806640625, 0.224609375, 0.12158203125, 0.1866455078125, 0.259765625, 0.06317138671875, 0.136474609375, 0.24365234375, 0.14404296875, 0.224853515625, 0.083251953125, 0.0557861328125, 0.204833984375, 0.06439208984375, 0.003387451171875, 0.06414794921875, 0.04364013671875, 0.018...
embed
56356677_c0
56356677
prolog
0
Title: How are variables transmitted in Prolog? Problem title: How are variables transmitted in Prolog? Tags: prolog Problem: How are variables transmitted in Prolog? I have a function square which I would like to display a matrix like this: XXX (newline) XXX (newline) XXX My result is false after first line is printed...
How are variables transmitted in Prolog? How are variables transmitted in Prolog? prolog How Prolog XXX Rez Rez-1 N-1 How are variables transmitted in Prolog? I have a function square which I would like to display a matrix like this: My result is false after first line is printed. Why? How are variables transmitted in ...
[ 0.01373291015625, 0.00677490234375, -0.001495361328125, 0.0081787109375, -0.005584716796875, 0.006683349609375, -0.005157470703125, 0.01348876953125, 0.00124359130859375, 0.0079345703125, 0.00848388671875, 0.002960205078125, -0.002166748046875, -0.005615234375, -0.009521484375, 0.00408...
[ 11249, 77336, 7, 71872, 3674, 23, 1250, 4867, 502, 44585, 75646, 5759, 621, 32354, 108047, 1884, 44116, 50944, 425, 16750, 83, 98320, 7103, 5117, 13315, 28412, 44084, 3642, 124519, 71924, 80596 ]
[ 0.08551025390625, 0.27734375, 0.1197509765625, 0.1893310546875, 0.08251953125, 0.05999755859375, 0.1673583984375, 0.259033203125, 0.0965576171875, 0.1146240234375, 0.093505859375, 0.07928466796875, 0.024658203125, 0.09912109375, 0.173583984375, 0.000091552734375, 0.09490966796875, ...
embed
41067556_c0
41067556
prolog
0
Title: Prolog Find the sum of integers between two integers Problem title: Prolog Find the sum of integers between two integers Tags: prolog Problem: Prolog Find the sum of integers between two integers I am using GNU-Prolog trying to write a program that accepts N and M positive integers and sums all numbers between N...
Prolog Find the sum of integers between two integers Prolog Find the sum of integers between two integers prolog Prolog Find Res Prolog Find the sum of integers between two integers I am using GNU-Prolog trying to write a program that accepts N and M positive integers and sums all numbers between N and M , including N ...
[ -0.01385498046875, 0.0137939453125, 0.017822265625, 0.01123046875, 0.0074462890625, 0.0361328125, -0.00732421875, 0.02685546875, 0.005340576171875, -0.03076171875, 0.004150390625, -0.0103759765625, -0.011962890625, 0.0029754638671875, 0.029541015625, 0.005767822265625, 0.023681640625...
[ 1250, 4867, 26040, 10554, 111, 892, 26255, 17721, 6626, 502, 9624, 70, 165132, 10752, 31577, 33022, 1528, 26946, 541, 136, 276, 24491, 756, 101935, 18151, 6, 211603, 1830, 4734, 30646, 157, 678, 110, 35166, 6528, 2967 ]
[ 0.15576171875, 0.2354736328125, 0.1400146484375, 0.2109375, 0.06298828125, 0.146728515625, 0.10546875, 0.1968994140625, 0.117919921875, 0.1060791015625, 0.1807861328125, 0.00018310546875, 0.1251220703125, 0.114013671875, 0.042510986328125, 0.040130615234375, 0.0911865234375, 0.0900...
embed
4258425_c0
4258425
prolog
0
Title: Prolog unify Lists inside a list Problem title: Prolog unify Lists inside a list Tags: prolog Problem: Prolog unify Lists inside a list I'm trying to define a relation over lists... ?- matrix_items([[a,b],[c,d],[e,f]],Rs). Rs = [a,b,c,d,e,f]. % expected result So far, I was able to do something like this; unfort...
Prolog unify Lists inside a list Prolog unify Lists inside a list prolog Prolog Lists matrix_items Result Prolog unify Lists inside a list I'm trying to define a relation over lists... So far, I was able to do something like this; unfortunately it doesn't add up all the elements: Hope hear from you soon.
[ 0.00982666015625, 0.0230712890625, 0.01513671875, 0.0030059814453125, 0.00408935546875, -0.003570556640625, -0.0191650390625, 0.00836181640625, 0.0164794921875, -0.0145263671875, 0.00787353515625, -0.01348876953125, 0.00341796875, -0.002227783203125, -0.003570556640625, -0.007873535156...
[ 1250, 4867, 51, 40383, 32036, 46132, 5303, 502, 50944, 1486, 126684, 31577, 61924, 41911, 645, 7, 2060, 19048, 104272, 15190, 1257, 80854, 75359, 36802 ]
[ 0.142578125, 0.2249755859375, 0.14892578125, 0.137451171875, 0.2388916015625, 0.162841796875, 0.21533203125, 0.08197021484375, 0.1483154296875, 0.1043701171875, 0.0977783203125, 0.05322265625, 0.143798828125, 0.1923828125, 0.13818359375, 0.03240966796875, 0.029998779296875, 0.02954...
embed
64905433_c0
64905433
prolog
0
Title: Rerun prolog application automatically Problem title: Rerun prolog application automatically Tags: prolog Problem: Rerun prolog application automatically I am designing a prolog game where i have to guess what sport the user is thinking. I have created a start game rule and a display result (triggered after the ...
Rerun prolog application automatically Rerun prolog application automatically prolog Rerun Rerun prolog application automatically I am designing a prolog game where i have to guess what sport the user is thinking. I have created a start game rule and a display result (triggered after the start game). I want the start_ ...
[ 0.0201416015625, 0.0089111328125, 0.005096435546875, 0.0098876953125, -0.0023345947265625, 0.022705078125, 0.01263427734375, 0.0079345703125, 0.0128173828125, -0.0120849609375, 0.01446533203125, 0.0147705078125, -0.0341796875, 0.0194091796875, 0.0137939453125, -0.0086669921875, 0.036...
[ 853, 16428, 502, 4867, 38415, 191082, 4331, 6712, 57767, 2896, 38937, 47644, 75935, 4034, 79986, 44116, 16750, 3996, 21407, 7103, 3444, 35839, 13438, 5303, 139124, 34735, 8108, 185553, 454 ]
[ 0.1156005859375, 0.2225341796875, 0.1563720703125, 0.240478515625, 0.170654296875, 0.205078125, 0.1239013671875, 0.1219482421875, 0.14990234375, 0.1417236328125, 0.0826416015625, 0.130615234375, 0.0738525390625, 0.1312255859375, 0.13525390625, 0.150390625, 0.119384765625, 0.0377807...
embed
59346407_c0
59346407
prolog
0
Title: Copy all the elements of one list N times in a new list Prolog Problem title: Copy all the elements of one list N times in a new list Prolog Tags: prolog Problem: Copy all the elements of one list N times in a new list Prolog How can I copy all the elements of one list N times in a new list with simple commands ...
Copy all the elements of one list N times in a new list Prolog Copy all the elements of one list N times in a new list Prolog prolog Copy Prolog copy_list List Copy all the elements of one list N times in a new list Prolog How can I copy all the elements of one list N times in a new list with simple commands of Prolog ...
[ -0.0022430419921875, -0.00201416015625, -0.005615234375, 0.0279541015625, -0.0029449462890625, 0.004791259765625, -0.00604248046875, 0.00634765625, 0.009521484375, -0.0283203125, -0.00015926361083984375, -0.02734375, -0.003997802734375, 0.03271484375, -0.01104736328125, 0.01171875, 0...
[ 146930, 756, 80854, 1632, 5303, 541, 20028, 23, 3525, 1250, 4867, 111, 502, 43658, 6562, 32036, 831, 8781, 75101, 15490, 42719, 111607, 5584, 35773, 41, 1294, 35166, 1884 ]
[ 0.2066650390625, 0.09454345703125, 0.1719970703125, 0.06524658203125, 0.1806640625, 0.1783447265625, 0.2061767578125, 0.04937744140625, 0.099609375, 0.1602783203125, 0.23046875, 0.00091552734375, 0.0916748046875, 0.228759765625, 0.177978515625, 0.1551513671875, 0.029937744140625, 0...
embed
16353000_c0
16353000
prolog
0
Title: Reading a user-input string in prolog Problem title: Reading a user-input string in prolog Tags: prolog Problem: Reading a user-input string in prolog I am beginner in Prolog. I am using swi prolog(just started using it) and I need to split a user input string into a list. I tried the following code, but I get a...
Reading a user-input string in prolog Reading a user-input string in prolog prolog Reading Enter Reading a user-input string in prolog I am beginner in Prolog. I am using swi prolog(just started using it) and I need to split a user input string into a list. I tried the following code, but I get an error stating that 'F...
[ -0.009765625, 0.000888824462890625, -0.007659912109375, 0.018310546875, -0.0302734375, 0.0155029296875, 0.004730224609375, -0.005035400390625, -0.02734375, -0.036376953125, 0.0250244140625, -0.00830078125, -0.0306396484375, -0.00933837890625, 0.004058837890625, -0.01055908203125, 0.0...
[ 104951, 38937, 73, 7077, 79315, 23, 502, 4867, 60816, 1679, 1250, 2452, 3871, 65450, 107730, 3934, 5303, 37842, 25632, 18151, 18499, 121962, 7279, 70731, 13, 37873, 10869, 15265, 64552, 12477, 4358, 6456 ]
[ 0.1898193359375, 0.153564453125, 0.07818603515625, 0.1270751953125, 0.2099609375, 0.046539306640625, 0.140625, 0.235107421875, 0.1419677734375, 0.046783447265625, 0.122314453125, 0.1517333984375, 0.001312255859375, 0.1610107421875, 0.1722412109375, 0.041656494140625, 0.1307373046875,...
embed
46262259_c0
46262259
prolog
0
Title: Solving Quadratic Equation Prolog Problem title: Solving Quadratic Equation Prolog Tags: prolog Problem: Solving Quadratic Equation Prolog I'm doing some exercises to learn Prolog programming. However, I can't figure out how to do this: I need to solve this equation with a prolog program (click here). The code I...
Solving Quadratic Equation Prolog Solving Quadratic Equation Prolog prolog Solving Quadratic Equation Prolog Result Solving Quadratic Equation Prolog I'm doing some exercises to learn Prolog programming. However, I can't figure out how to do this: I need to solve this equation with a prolog program (click here). The co...
[ 0.0150146484375, 0.003326416015625, 0.007110595703125, 0.014892578125, -0.0159912109375, 0.0238037109375, 0.00009870529174804688, 0.0096435546875, -0.0018157958984375, -0.0033721923828125, -0.01165771484375, -0.0220947265625, -0.0218505859375, -0.002471923828125, -0.00885009765625, -0....
[ 6678, 6496, 83227, 219, 9523, 241, 5490, 2320, 1250, 4867, 502, 126684, 81979, 30698, 56037, 831, 26366, 3642, 54, 903, 3871, 86869, 28, 678, 1528, 123278, 3688, 18151, 21771, 54397, 31583, 11, 3041, 275, 238, 15772, 4332, 7, 7136, 1556, ...
[ 0.109619140625, 0.09136962890625, 0.1832275390625, 0.123779296875, 0.219970703125, 0.02606201171875, 0.200439453125, 0.038970947265625, 0.1866455078125, 0.25634765625, 0.130615234375, 0.238525390625, 0.0257568359375, 0.001129150390625, 0.058441162109375, 0.010284423828125, 0.05166625...
embed
64623927_c0
64623927
prolog
0
Title: Reading a csv file of city distance in prolog? Problem title: Reading a csv file of city distance in prolog? Tags: prolog Problem: Reading a csv file of city distance in prolog? I have a file like this as csv Now i want this file to create facts such as this in prolog as distance(A,E,3) distance(A,G,5) and so on...
Reading a csv file of city distance in prolog? Reading a csv file of city distance in prolog? prolog Reading Reading a csv file of city distance in prolog? I have a file like this as csv Now i want this file to create facts such as this in prolog as As per the other answers I have tried csv_read_file("test.csv", Rows, ...
[ 0.00592041015625, -0.0140380859375, 0.002349853515625, 0.01434326171875, 0.00439453125, -0.00872802734375, -0.0025787353515625, 0.0166015625, -0.000823974609375, -0.04296875, -0.0157470703125, -0.0208740234375, -0.0247802734375, -0.01165771484375, 0.0026702880859375, 0.0128173828125, ...
[ 104951, 20763, 334, 11435, 111, 26349, 62488, 23, 502, 4867, 1884, 903, 3444, 28282, 15824, 37842, 39116, 29822, 6954, 4439, 96190, 16498, 18770, 60089, 46295, 187, 2481, 124534, 22288, 6562, 33657, 28412, 12724, 19725, 30646, 15555, 90825, 2...
[ 0.1796875, 0.129150390625, 0.24609375, 0.1878662109375, 0.0413818359375, 0.1163330078125, 0.223388671875, 0.03912353515625, 0.1199951171875, 0.1893310546875, 0.0249481201171875, 0.0231170654296875, 0.046661376953125, 0.10565185546875, 0.136474609375, 0.00048828125, 0.16064453125, 0...
embed
1918649_c0
1918649
prolog
0
Title: Reversing Part of a List in Prolog Problem title: Reversing Part of a List in Prolog Tags: algorithm, prolog Problem: Reversing Part of a List in Prolog My goal for this Prolog function is as follows: Given two lists, x and y, return true if y can be formed from x by reversing a contiguous part of list x. For ex...
Reversing Part of a List in Prolog Reversing Part of a List in Prolog algorithm prolog Reversing Part List Prolog Reversing Part of a List in Prolog My goal for this Prolog function is as follows: Given two lists, x and y, return true if y can be formed from x by reversing a contiguous part of list x. For example, if t...
[ -0.00885009765625, 0.0118408203125, 0.01446533203125, 0.0194091796875, -0.0157470703125, 0.02294921875, -0.00579833984375, 0.0098876953125, 0.004791259765625, 0.033935546875, 0.0038909912109375, 0.03857421875, -0.016357421875, 0.01190185546875, 0.01507568359375, -0.00555419921875, 0....
[ 853, 7864, 214, 16995, 111, 32036, 23, 1250, 4867, 234873, 502, 69236, 32354, 77878, 6626, 5303, 1022, 136, 113, 30646, 29568, 2174, 831, 100, 4806, 1295, 39531, 6953, 22832, 12282, 2831, 107730, 83, 138, 116, 201, 16750, 5608, 9774, 13, ...
[ 0.1253662109375, 0.252685546875, 0.0697021484375, 0.201904296875, 0.040130615234375, 0.22412109375, 0.030303955078125, 0.16845703125, 0.242919921875, 0.1832275390625, 0.1099853515625, 0.141357421875, 0.1334228515625, 0.015228271484375, 0.119384765625, 0.202392578125, 0.0506591796875,...
embed
74241455_c0
74241455
prolog
0
Title: What answers will I get when asking this questions Problem title: What answers will I get when asking this questions Tags: prolog Problem: What answers will I get when asking this questions I started to learn Prolog and want to solve this task. But I am not quite shure whether I am right or not. Pls, help me pil...
What answers will I get when asking this questions What answers will I get when asking this questions prolog What What answers will I get when asking this questions I started to learn Prolog and want to solve this task. But I am not quite shure whether I am right or not. Pls, help me pilots(A,london) = pilots(london, p...
[ 0.00811767578125, -0.00811767578125, 0.01019287109375, 0.0218505859375, -0.00714111328125, 0.009033203125, -0.00738525390625, -0.0037078857421875, 0.004608154296875, -0.009521484375, -0.0123291015625, -0.016845703125, -0.0074462890625, 0.0211181640625, -0.01129150390625, 0.009643554687...
[ 4865, 35166, 7, 1221, 87, 2046, 3229, 113292, 903, 17582, 502, 4867, 26859, 30698, 1250, 86869, 66211, 7108, 29016, 4358, 163, 20279, 284, 4759, 4445, 2203, 366, 164, 6275, 1542, 1723, 1511, 418, 4, 17727, 31330, 441, 2565, 63049, 110, ...
[ 0.040557861328125, 0.1939697265625, 0.1435546875, 0.1324462890625, 0.06793212890625, 0.1307373046875, 0.123291015625, 0.1751708984375, 0.152587890625, 0.1488037109375, 0.1551513671875, 0.252197265625, 0.007049560546875, 0.06982421875, 0.146484375, 0.0767822265625, 0.06982421875, 0....
embed
54972086_c0
54972086
prolog
0
Title: How to instantiate a variable in prolog predicate Problem title: How to instantiate a variable in prolog predicate Tags: prolog, predicate Problem: How to instantiate a variable in prolog predicate list([]) :- !. list([A|B], X) :- X = X + 1, list(B, X). I have the following predicate and I wish to determine the ...
How to instantiate a variable in prolog predicate How to instantiate a variable in prolog predicate prolog predicate How How to instantiate a variable in prolog predicate I have the following predicate and I wish to determine the size of a list. In the second predicate, when I initially run into the predicate, X is not...
[ 0.0230712890625, 0.00946044921875, 0.004608154296875, 0.0054931640625, -0.00024318695068359375, 0.0113525390625, 0.0135498046875, -0.0002269744873046875, 0.01556396484375, -0.01446533203125, 0.020263671875, -0.0052490234375, -0.00811767578125, -0.014404296875, 0.0111083984375, 0.018920...
[ 11249, 47, 34648, 101426, 77336, 23, 502, 4867, 1653, 2063, 67, 10, 25632, 32599, 83324, 13267, 5303, 17932, 61475, 11675, 3934, 1193, 959, 29367, 12765, 2174, 1556, 34292, 8108, 158661, 30646, 361 ]
[ 0.0728759765625, 0.0279998779296875, 0.2188720703125, 0.240966796875, 0.289306640625, 0.061187744140625, 0.161865234375, 0.2181396484375, 0.16943359375, 0.185302734375, 0.04949951171875, 0.0174407958984375, 0.0196075439453125, 0.005035400390625, 0.1275634765625, 0.1009521484375, 0.16...
embed
42469578_c0
42469578
prolog
0
Title: prolog factorial recursion giving expression as output Problem title: prolog factorial recursion giving expression as output Tags: prolog, recursion, factorial Problem: prolog factorial recursion giving expression as output I've written a prlog recursive factorial clause which is: factorial(X,Y):- (X>1) -> facto...
prolog factorial recursion giving expression as output prolog factorial recursion giving expression as output prolog recursion factorial X-1 prolog factorial recursion giving expression as output I've written a prlog recursive factorial clause which is: The problem is, for any valid call[for example, factorial(5,1). ],...
[ 0.01519775390625, 0.0086669921875, -0.00384521484375, 0.01031494140625, 0.007476806640625, 0.00360107421875, 0.005218505859375, 0.006927490234375, -0.01007080078125, 0.002471923828125, 0.006317138671875, -0.007354736328125, -0.0225830078125, -0.01275634765625, 0.0218505859375, 0.003204...
[ 502, 4867, 31461, 15403, 195625, 1830, 68772, 125195, 237, 140992, 1193, 5759, 59121, 4083, 5844, 70731, 13, 2967, 2499, 35604, 11782, 27781, 104116, 17727, 43257, 3501, 34292, 115727, 110218, 140960, 11516, 1639, 418, 11249, 831, 87, 2046, 1...
[ 0.1317138671875, 0.2216796875, 0.183837890625, 0.2032470703125, 0.1962890625, 0.004638671875, 0.131591796875, 0.25390625, 0.06597900390625, 0.2047119140625, 0.077880859375, 0.1063232421875, 0.06744384765625, 0.067626953125, 0.05987548828125, 0.1546630859375, 0.0628662109375, 0.1425...
embed
47961215_c0
47961215
prolog
0
Title: Make a list of consecutive pairs in prolog Problem title: Make a list of consecutive pairs in prolog Tags: list, prolog Problem: Make a list of consecutive pairs in prolog I want to make a list of consecutive pairs from a given list, e.g. given [1,2,3] it returns X=[[1,2],[2,3]] I'm a bit confused with the recur...
Make a list of consecutive pairs in prolog Make a list of consecutive pairs in prolog list prolog Make pair_list Tail Make a list of consecutive pairs in prolog I want to make a list of consecutive pairs from a given list, e.g. given [1,2,3] it returns X=[[1,2],[2,3]] I'm a bit confused with the recursions. I tried wit...
[ 0.004730224609375, 0.0247802734375, 0.011474609375, 0.00396728515625, 0.0027923583984375, 0.0242919921875, -0.032958984375, 0.003082275390625, 0.0079345703125, -0.03125, 0.0196533203125, -0.0107421875, 0.00177764892578125, -0.01470947265625, 0.004913330078125, 0.0164794921875, 0.0225...
[ 26176, 5303, 111, 148390, 13, 80836, 7, 502, 4867, 23, 6562, 1218, 379, 3444, 3249, 1295, 34475, 155761, 30646, 1193, 1369, 133063, 195625, 17514, 37842, 18151, 3630, 1733, 114689, 71, 18, 4488 ]
[ 0.06610107421875, 0.1956787109375, 0.0419921875, 0.2127685546875, 0.0850830078125, 0.2646484375, 0.0927734375, 0.1495361328125, 0.217041015625, 0.044097900390625, 0.213623046875, 0.13330078125, 0.1451416015625, 0.02716064453125, 0.06781005859375, 0.04400634765625, 0.036346435546875, ...
embed
40272699_c1
40272699
prolog
1
). citypath(OldX,OldY,X,Y,Maze,Path) :- findadjacentsquare(OldX,OldY,X1,Y1,Maze), citypath(X1,Y1,X,Y,Maze,[w(X1,Y1)|Path]). So when calling it here is what I'm doing: maze(M1), citypath(1,1,2,2,M1,Path) Now I don't have any of the logic in here to save the path yet, but that isn't the issue. My issue is when I run this...
). citypath(OldX,OldY,X,Y,Maze,Path) :- findadjacentsquare(OldX,OldY,X1,Y1,Maze), citypath(X1,Y1,X,Y,Maze,[w(X1,Y1)|Path]). So when calling it here is what I'm doing: maze(M1), citypath(1,1,2,2,M1,Path) Now I don't have any of the logic in here to save the path yet, but that isn't the issue. My issue is when I run this...
[ 0.00543212890625, 0.011474609375, 0.005157470703125, 0.02099609375, 0.0089111328125, 0.0223388671875, -0.002166748046875, 0.003662109375, 0.0074462890625, -0.037353515625, 0.0032501220703125, 0.0213623046875, 0.002899169921875, -0.0126953125, 0.00433349609375, 0.01806640625, -0.03271...
[ 194, 26349, 128405, 53774, 71, 1542, 1723, 4613, 731, 683, 10519, 15772, 7413, 712, 145, 16797, 108047, 418, 434, 17727, 159029, 442, 3688, 83, 20594, 291, 594, 133063, 304, 62775, 30098, 70, 60875, 31089, 11675, 903, 20949, 1810, 4000, 1...
[ 0.060821533203125, 0.12353515625, 0.24951171875, 0.1484375, 0.0936279296875, 0.177490234375, 0.1397705078125, 0.0692138671875, 0.199951171875, 0.0780029296875, 0.1517333984375, 0.006622314453125, 0.1492919921875, 0.047088623046875, 0.159912109375, 0.1405029296875, 0.17041015625, 0....
embed
43985438_c0
43985438
prolog
0
Title: Prolog nth1 anonymous variables Problem title: Prolog nth1 anonymous variables Tags: prolog-toplevel, prolog Problem: Prolog nth1 anonymous variables I have a List with Integers and anonymous variables and I try to find the index of a special values. Problem is as soon I'm using nth1/3 to find the indices Prolog...
Prolog nth1 anonymous variables Prolog nth1 anonymous variables prolog-toplevel prolog Prolog nth1 List Prolog nth1 anonymous variables I have a List with Integers and anonymous variables and I try to find the index of a special values. Problem is as soon I'm using nth1/3 to find the indices Prolog assigns values to th...
[ -0.0003814697265625, -0.002105712890625, 0.0191650390625, -0.0126953125, 0.0108642578125, -0.01080322265625, 0.02392578125, 0.0169677734375, 0.006103515625, -0.02587890625, 0.00787353515625, -0.0169677734375, -0.004669189453125, 0.0174560546875, 0.01312255859375, -0.01312255859375, 0...
[ 1250, 4867, 653, 927, 418, 52184, 77336, 10821, 502, 13784, 67919, 32036, 44401, 9790, 7413, 63262, 5361, 142424, 15649, 33662, 17368, 131530, 136044, 95486, 3917, 5792, 89536, 76172, 3444, 16750, 1193, 106, 138, 1295, 1542, 154663, 17727, 12...
[ 0.1558837890625, 0.2193603515625, 0.04766845703125, 0.17626953125, 0.09521484375, 0.212890625, 0.2406005859375, 0.000335693359375, 0.10205078125, 0.0443115234375, 0.1005859375, 0.1806640625, 0.15673828125, 0.0340576171875, 0.096435546875, 0.17724609375, 0.138671875, 0.1610107421875...
embed
22969810_c0
22969810
prolog
0
Title: Are cuts that bad in programming? Problem title: Are cuts that bad in programming? Tags: prolog, prolog-cut, logical-purity, purity Problem: Are cuts that bad in programming? I am taking an AI course this semester in which we are learning Prolog. Our lecturer has told us to try and avoid using cuts in our assign...
Are cuts that bad in programming? Are cuts that bad in programming? prolog prolog-cut logical-purity purity Are cuts that bad in programming? I am taking an AI course this semester in which we are learning Prolog. Our lecturer has told us to try and avoid using cuts in our assignment, however, for a couple of the quest...
[ 0.035400390625, 0.00628662109375, 0.0196533203125, 0.01708984375, -0.01275634765625, 0.0216064453125, -0.0201416015625, -0.00897216796875, 0.005157470703125, -0.03173828125, -0.00518798828125, -0.0030364990234375, -0.011962890625, -0.01202392578125, 0.009765625, -0.007049560546875, -...
[ 15901, 314, 933, 450, 6494, 23, 56037, 449, 502, 4867, 19774, 62775, 4717, 2481, 7398, 38730, 15411, 49345, 52080, 1250, 59619, 9790, 71864, 17368, 95486, 24941, 17582, 831, 2856, 193844, 15400, 621, 90698, 10, 880, 8996, 87643, 34153, 2821...
[ 0.066162109375, 0.2283935546875, 0.2042236328125, 0.130126953125, 0.191162109375, 0.0833740234375, 0.1888427734375, 0.114990234375, 0.1007080078125, 0.1827392578125, 0.2342529296875, 0.12060546875, 0.107666015625, 0.04229736328125, 0.1182861328125, 0.13134765625, 0.036468505859375, ...
embed
12397769_c0
12397769
prolog
0
Title: algebraic simplification in prolog Problem title: algebraic simplification in prolog Tags: prolog Problem: algebraic simplification in prolog I'm reading up on prolog simplifcation of algebraic expressions and there are some parts I dont understand. So these are the basic simplications x+0, x-0, 0+x, 0-x --> x. ...
algebraic simplification in prolog algebraic simplification in prolog prolog x-0 algebraic simplification in prolog I'm reading up on prolog simplifcation of algebraic expressions and there are some parts I dont understand. So these are the basic simplications so given an expression how do I make the derivation ? I don...
[ 0.033447265625, 0.02099609375, 0.0020599365234375, 0.0277099609375, -0.007781982421875, -0.0032196044921875, 0.019287109375, 0.00994873046875, 0.0169677734375, 0.01239013671875, -0.0079345703125, 0.0026092529296875, -0.00238037109375, 0.005126953125, 0.00138092041015625, -0.01226806640...
[ 144, 429, 2844, 1771, 162365, 2320, 23, 502, 4867, 1022, 23320, 112892, 420, 120639, 125195, 13319, 28219, 62822, 10777, 182867, 34475, 3642, 54, 87, 3249, 70, 30057, 1363, 21449, 1672, 39527 ]
[ 0.042694091796875, 0.037811279296875, 0.1129150390625, 0.06976318359375, 0.2220458984375, 0.06671142578125, 0.0292510986328125, 0.1376953125, 0.2215576171875, 0.05938720703125, 0.173828125, 0.1644287109375, 0.08203125, 0.0552978515625, 0.2015380859375, 0.02947998046875, 0.07495117187...
embed
27306496_c0
27306496
prolog
0
Title: Reversing a simple list in prolog Problem title: Reversing a simple list in prolog Tags: prolog Problem: Reversing a simple list in prolog The following code will perform reverse on a list in prolog: rev([], []). rev([X|Xs], Ys) :- rev(Xs, Zs), append(Zs, [X], Ys). I have no idea why it works, although the follo...
Reversing a simple list in prolog Reversing a simple list in prolog prolog Reversing Reversing a simple list in prolog The following code will perform reverse on a list in prolog: I have no idea why it works, although the following is what I understand but I would appreciate further clarification. The base case states ...
[ -0.01043701171875, 0.01483154296875, 0.0111083984375, 0.00482177734375, -0.0025482177734375, -0.005828857421875, 0.0030670166015625, 0.0142822265625, 0.01611328125, -0.0152587890625, 0.01123046875, -0.00360107421875, -0.0244140625, 0.005218505859375, 0.0027923583984375, 0.0152587890625...
[ 853, 7864, 214, 8781, 5303, 502, 4867, 25632, 18151, 1221, 51339, 39531, 184, 98, 23, 15400, 43240, 3647, 7225, 201505, 16750, 7103, 44084, 159029, 114689, 71, 32354 ]
[ 0.1026611328125, 0.233154296875, 0.0220489501953125, 0.13818359375, 0.2010498046875, 0.132080078125, 0.216064453125, 0.02801513671875, 0.1229248046875, 0.01263427734375, 0.10211181640625, 0.2298583984375, 0.185302734375, 0.057281494140625, 0.0204315185546875, 0.0245513916015625, 0.07...
embed
33901654_c0
33901654
prolog
0
Title: reverse an incomplete list in prolog Problem title: reverse an incomplete list in prolog Tags: prolog Problem: reverse an incomplete list in prolog I was searching but I found nothing about how to reverse an incomplete list in prolog. Here is what I did: incomplete_reverse([L|T],Res):-nonvar(L),!,incomplete_reve...
reverse an incomplete list in prolog reverse an incomplete list in prolog prolog incomplete_reverse Res Res1 reverse an incomplete list in prolog I was searching but I found nothing about how to reverse an incomplete list in prolog. Here is what I did: This just reverses the list, but I need it to be deterministic and ...
[ -0.00885009765625, 0.0267333984375, 0.006805419921875, 0.009521484375, -0.0189208984375, 0.01220703125, 0.002349853515625, 0.00836181640625, 0.01348876953125, -0.032958984375, 0.0093994140625, 0.0091552734375, 0.01422119140625, 0.022705078125, 0.032958984375, 0.01068115234375, 0.0334...
[ 39531, 184, 142, 82940, 46485, 5303, 23, 502, 4867, 107, 37676, 9624, 418, 3642, 47, 5908, 3871, 72694, 48242, 5281, 8110, 54 ]
[ 0.2147216796875, 0.1663818359375, 0.030914306640625, 0.150634765625, 0.1815185546875, 0.2022705078125, 0.056304931640625, 0.1522216796875, 0.218505859375, 0.043060302734375, 0.2159423828125, 0.1107177734375, 0.0047607421875, 0.03875732421875, 0.011627197265625, 0.097900390625, 0.0552...
embed
53814478_c2
53814478
prolog
2
], T2, T3)) :- valid(T1, A). changeState(s(T1, T2, [A|T3]), s(T1, [A|T2], T3)) :- valid(T2, A). changeState(s(T1, T2, [A|T3]), s([A|T1], T2, T3)) :- valid(T1, A). traverse(StartNode,Sol,_) :- goal(StartNode), Sol = [StartNode]. traverse(StartNode,Sol,Visit) :- changeState(StartNode, NextNode), not(member(NextNode, Visi...
], T2, T3)) :- valid(T1, A). changeState(s(T1, T2, [A|T3]), s(T1, [A|T2], T3)) :- valid(T2, A). changeState(s(T1, T2, [A|T3]), s([A|T1], T2, T3)) :- valid(T1, A). traverse(StartNode,Sol,_) :- goal(StartNode), Sol = [StartNode]. traverse(StartNode,Sol,Visit) :- changeState(StartNode, NextNode), not(member(NextNode, Visi...
[ -0.01019287109375, 0.0155029296875, 0.0184326171875, 0.0218505859375, -0.005767822265625, 0.00194549560546875, -0.046630859375, -0.0211181640625, 0.007232666015625, -0.0262451171875, 0.0152587890625, 0.03564453125, -0.006134033203125, 0.0255126953125, -0.012451171875, -0.0079345703125,...
[ 10114, 384, 304, 21320, 15772, 35604, 618, 418, 62, 194, 15549, 135206, 13, 7, 284, 96386, 91, 90173, 76172, 37317, 126597, 5021, 102588, 69236, 112, 6678, 2203, 65331, 217, 4997, 959, 27417, 81280, 98684, 9148, 289, 14847, 87, 11675, 903...
[ 0.08428955078125, 0.1217041015625, 0.138671875, 0.1793212890625, 0.11376953125, 0.2125244140625, 0.087158203125, 0.047332763671875, 0.09893798828125, 0.0310516357421875, 0.214111328125, 0.1650390625, 0.1636962890625, 0.043060302734375, 0.04351806640625, 0.1068115234375, 0.09814453125...
embed
47501053_c0
47501053
prolog
0
Title: In Prolog, predicate Problem title: In Prolog, predicate Tags: prolog, functor Problem: In Prolog, predicate Is the following Prolog goal satisfactory? croire(X, aime(lila, pizza)) = croire(ali, aime(Y, pizza))? I have found a Prolog document asking that question and the answer was: " No, this goal is syntactica...
In Prolog, predicate In Prolog, predicate prolog functor Prolog In Prolog, predicate Is the following Prolog goal satisfactory? I have found a Prolog document asking that question and the answer was: " No, this goal is syntactically incorrect" but when I tried it in SWI-Prolog, it didn't show any error and it gave me t...
[ 0.0216064453125, 0.0150146484375, -0.015380859375, 0.0120849609375, -0.01531982421875, 0.021484375, -0.0010833740234375, -0.011474609375, -0.011962890625, -0.0235595703125, 0.005401611328125, -0.004730224609375, -0.03564453125, -0.0106201171875, 0.00433349609375, 0.00927734375, -0.00...
[ 360, 1250, 4867, 1653, 2063, 67, 502, 7477, 18770, 2071, 70, 25632, 69236, 64561, 31667, 12937, 35166, 438, 903, 83, 6002, 18, 47013, 214552, 37842, 159, 38969, 10752, 18499, 7413, 62775, 289, 156304, 44691 ]
[ 0.050262451171875, 0.1878662109375, 0.269287109375, 0.1363525390625, 0.1778564453125, 0.025146484375, 0.1473388671875, 0.14501953125, 0.1331787109375, 0.047027587890625, 0.00341796875, 0.134521484375, 0.255615234375, 0.1802978515625, 0.1556396484375, 0.0880126953125, 0.05059814453125...
embed
40961304_c2
40961304
prolog
2
Sorted],N,L). fill_list([Amount_of_Head|Amount_of_Tail],Sorted,N,L):-%Filling ARG2 based on values in ARG1,with ARG3 values on ARG4 position. Amount_of_Head>0- >decrement_nth_in_list([Amount_of_Head|Amount_of_Tail],NewAmount,0),L1 is L- Code signals: 0, ARG1, Prolog, ARG2, ARG3, build_list, sum_list, Sum, Rest, ARG4, I...
Sorted],N,L). fill_list([Amount_of_Head|Amount_of_Tail],Sorted,N,L):-%Filling ARG2 based on values in ARG1,with ARG3 values on ARG4 position. Amount_of_Head>0- >decrement_nth_in_list([Amount_of_Head|Amount_of_Tail],NewAmount,0),L1 is L- Code signals: 0, ARG1, Prolog, ARG2, ARG3, build_list, sum_list, Sum, Rest, ARG4, I...
[ -0.00836181640625, 0.00018405914306640625, -0.002777099609375, -0.0126953125, -0.02294921875, 0.010498046875, -0.01953125, 0.00506591796875, 0.0283203125, 0.0322265625, 0.01165771484375, -0.003082275390625, -0.00142669677734375, 0.0205078125, 0.0006256103515625, -0.00836181640625, 0....
[ 53666, 297, 839, 866, 194, 26292, 6562, 121147, 4390, 13025, 712, 9874, 379, 158240, 3674, 3949, 6159, 30319, 62, 48802, 304, 35509, 142424, 418, 363, 617, 19069, 5, 2389, 112, 7612, 927, 46568, 77495, 83, 339, 9, 28864, 26073, 12, 757,...
[ 0.2080078125, 0.1514892578125, 0.08404541015625, 0.112060546875, 0.029449462890625, 0.197998046875, 0.21142578125, 0.1759033203125, 0.1278076171875, 0.1317138671875, 0.1304931640625, 0.0830078125, 0.0721435546875, 0.1492919921875, 0.1314697265625, 0.032470703125, 0.1575927734375, 0...
embed
25954838_c0
25954838
prolog
0
Title: Count elements in a Dynamic database in Prolog Problem title: Count elements in a Dynamic database in Prolog Tags: prolog, dynamic Problem: Count elements in a Dynamic database in Prolog Well, I have something like this: :- dynamic boxes/2. boxes([],0). boxes([2,3,5],5). boxes([1,4,6],2). And within my process I...
Count elements in a Dynamic database in Prolog Count elements in a Dynamic database in Prolog prolog dynamic Count Dynamic Prolog Count elements in a Dynamic database in Prolog Well, I have something like this: And within my process I use assert and retract based on my needs, however at the end of the whole process I n...
[ 0.019775390625, 0.0108642578125, 0.00225830078125, 0.0029449462890625, -0.007293701171875, 0.015869140625, -0.0283203125, 0.0177001953125, 0.004974365234375, -0.05126953125, -0.010009765625, -0.0181884765625, 0.0037078857421875, -0.0108642578125, 0.0255126953125, 0.00176239013671875, ...
[ 108210, 80854, 73327, 21068, 63399, 1250, 4867, 23, 502, 84079, 28032, 9433, 237, 33657, 136, 41499, 15390, 35509, 27117, 3564, 3871, 3714, 5941, 16530, 765, 69307, 69236, 77947, 4358, 20903, 67229 ]
[ 0.194580078125, 0.2138671875, 0.1298828125, 0.0845947265625, 0.195556640625, 0.146728515625, 0.2098388671875, 0.001190185546875, 0.0887451171875, 0.1778564453125, 0.002349853515625, 0.01788330078125, 0.05108642578125, 0.1920166015625, 0.0035400390625, 0.131103515625, 0.0889892578125,...
embed
56432761_c0
56432761
prolog
0
Title: Why do I get a Infinite Loop (Prolog) Problem title: Why do I get a Infinite Loop (Prolog) Tags: prolog, infinite-loop Problem: Why do I get a Infinite Loop (Prolog) I am just starting to learn Prolog and I played around with it. Now I got to a point where I´m stuck. The program i wrote gets into an infinite loo...
Why do I get a Infinite Loop (Prolog) Why do I get a Infinite Loop (Prolog) prolog infinite-loop Why Infinite Loop Prolog Why do I get a Infinite Loop (Prolog) I am just starting to learn Prolog and I played around with it. Now I got to a point where I´m stuck. The program i wrote gets into an infinite loop when I ask ...
[ 0.021728515625, -0.009521484375, 0.007568359375, 0.0167236328125, -0.00872802734375, -0.005096435546875, 0.00970458984375, 0.002471923828125, 0.00164794921875, -0.03466796875, 0.0245361328125, 0.01239013671875, -0.010498046875, -0.00909423828125, 0.0198974609375, 0.000690460205078125, ...
[ 44084, 54, 87, 2046, 10, 134322, 13, 199694, 10752, 4867, 502, 54241, 28354, 1250, 30698, 112730, 179933, 1528, 17, 54397, 62163, 3934, 142, 40956, 3229, 26458, 100, 18, 28219, 15400, 14602, 26267, 73342 ]
[ 0.1656494140625, 0.0352783203125, 0.054901123046875, 0.093017578125, 0.07366943359375, 0.1778564453125, 0.1131591796875, 0.2423095703125, 0.151123046875, 0.218017578125, 0.158935546875, 0.1588134765625, 0.2296142578125, 0.1785888671875, 0.060516357421875, 0.015625, 0.0841064453125, ...
embed
29860016_c0
29860016
prolog
0
Title: Prolog: Find out if sum of all list elements equals N Problem title: Prolog: Find out if sum of all list elements equals N Tags: prolog, list Problem: Prolog: Find out if sum of all list elements equals N I want to check if all values in a list add up to some value. So far, I have written the following: list_sum...
Prolog: Find out if sum of all list elements equals N Prolog: Find out if sum of all list elements equals N prolog list Prolog Find list_sum Head Tail Sum Sum1 Prolog: Find out if sum of all list elements equals N I want to check if all values in a list add up to some value. So far, I have written the following: Howeve...
[ -0.003448486328125, 0.00616455078125, 0.0166015625, 0.00897216796875, -0.0218505859375, 0.0107421875, -0.0106201171875, 0.0079345703125, 0.0089111328125, -0.0009765625, 0.01458740234375, -0.0111083984375, 0.01025390625, 0.01611328125, 0.0031585693359375, 0.0067138671875, 0.0281982421...
[ 1250, 4867, 26040, 1810, 2174, 10554, 111, 756, 5303, 80854, 105950, 541, 7, 502, 11832, 44816, 1218, 379, 36335, 418, 3444, 47, 12765, 142424, 23, 15190, 1257, 3060, 34292, 2060, 59121, 25632, 3229, 9790, 132, 133063, 82449, 209, 30646, ...
[ 0.1634521484375, 0.2178955078125, 0.1033935546875, 0.088134765625, 0.085205078125, 0.21044921875, 0.065185546875, 0.10699462890625, 0.2000732421875, 0.1890869140625, 0.17041015625, 0.1644287109375, 0.058990478515625, 0.1029052734375, 0.2222900390625, 0.1142578125, 0.0841064453125, ...
embed
55553931_c0
55553931
prolog
0
Title: How to accept one of two configurations of predicate arguments Problem title: How to accept one of two configurations of predicate arguments Tags: prolog Problem: How to accept one of two configurations of predicate arguments Say i have two variables A and B, and two predicates firstPred() and secondPred() I'm t...
How to accept one of two configurations of predicate arguments How to accept one of two configurations of predicate arguments prolog How How to accept one of two configurations of predicate arguments Say i have two variables A and B, and two predicates firstPred() and secondPred() I'm trying to express something along ...
[ 0.00182342529296875, -0.00341796875, -0.0026092529296875, 0.015380859375, -0.0157470703125, 0.0086669921875, 0.002960205078125, 0.0029449462890625, -0.003387451171875, -0.0264892578125, 0.0093994140625, 0.01019287109375, -0.01080322265625, 0.005645751953125, 0.00860595703125, 0.0151367...
[ 11249, 47, 26946, 1632, 111, 6626, 180346, 1653, 2063, 67, 10750, 502, 4867, 765, 77336, 7, 62, 136, 335, 1636, 5117, 19273, 71, 132, 17932, 31577, 36510, 124519, 87, 82424, 1284, 903, 4734, 29256, 7225, 15190, 8060 ]
[ 0.0821533203125, 0.0294189453125, 0.2396240234375, 0.1048583984375, 0.08636474609375, 0.185546875, 0.2325439453125, 0.1845703125, 0.2235107421875, 0.105712890625, 0.22216796875, 0.1448974609375, 0.1995849609375, 0.1373291015625, 0.2159423828125, 0.0357666015625, 0.080322265625, 0.0...
embed
67581709_c0
67581709
prolog
0
Title: Comparing elements from two lists of different sizes Problem title: Comparing elements from two lists of different sizes Tags: prolog Problem: Comparing elements from two lists of different sizes Im learning Prolog and im trying to write a clause that check if one list (L1) is de result of duplicate other List(L...
Comparing elements from two lists of different sizes Comparing elements from two lists of different sizes prolog two Comparing Comparing elements from two lists of different sizes Im learning Prolog and im trying to write a clause that check if one list (L1) is de result of duplicate other List(L2) N times,and return N...
[ -0.00087738037109375, 0.01043701171875, -0.0225830078125, 0.0147705078125, -0.000476837158203125, 0.0098876953125, 0.009765625, 0.00051116943359375, 0.026611328125, -0.003814697265625, -0.000347137451171875, -0.006622314453125, 0.01446533203125, 0.01068115234375, -0.00811767578125, -0....
[ 113307, 214, 80854, 1295, 6626, 5303, 12921, 13267, 502, 4867, 111, 52080, 1250, 33022, 70731, 13, 12765, 866, 17727, 8, 16750, 171763, 67, 32036, 10461, 541, 20028, 30646, 175199, 5941, 339, 304, 3674, 418, 13319, 3714, 3642, 69101, 54529,...
[ 0.1976318359375, 0.0241546630859375, 0.18798828125, 0.068603515625, 0.1407470703125, 0.1795654296875, 0.1163330078125, 0.1546630859375, 0.1080322265625, 0.17919921875, 0.017181396484375, 0.048370361328125, 0.0980224609375, 0.032562255859375, 0.05303955078125, 0.028594970703125, 0.125...
embed
67376886_c0
67376886
prolog
0
Title: prolog - counting node in a binary tree Problem title: prolog - counting node in a binary tree Tags: prolog Problem: prolog - counting node in a binary tree I have a different request than what I saw on stackoverflow. Say my binary tree is of the form tree(Node, Leafs) . There is no left or right leafs, only the...
prolog - counting node in a binary tree prolog - counting node in a binary tree prolog Node Leafs node1 node2 node3 node4 node6 prolog - counting node in a binary tree I have a different request than what I saw on stackoverflow. Say my binary tree is of the form tree(Node, Leafs) . There is no left or right leafs, only...
[ 0.02880859375, 0.00107574462890625, -0.0260009765625, -0.00994873046875, 0.0179443359375, 0.0106201171875, -0.025634765625, -0.01214599609375, 0.00115203857421875, -0.072265625, -0.013671875, -0.04150390625, 0.01336669921875, 0.018798828125, 0.0267333984375, -0.02734375, 0.0167236328...
[ 502, 4867, 54529, 214, 110, 112, 23, 2394, 6635, 53201, 438, 636, 2407, 418, 363, 617, 910, 12921, 50336, 24124, 177261, 118664, 25916, 759, 111, 3173, 5021, 25737, 7108, 4734, 150380, 95, 1672, 27781, 5809 ]
[ 0.1505126953125, 0.2138671875, 0.19677734375, 0.07666015625, 0.1815185546875, 0.183349609375, 0.071533203125, 0.1888427734375, 0.148681640625, 0.2340087890625, 0.1324462890625, 0.0579833984375, 0.18115234375, 0.01214599609375, 0.013580322265625, 0.0501708984375, 0.097900390625, 0.0...
embed
10211976_c1
10211976
prolog
1
row1 into K sublists, and then appending row2's K sublists to the end of row1's sublists until I reach row(K*K). Unfortunately, I'm really not sure how to go about making this happen? Is there a BIP I can use that will do something along the lines of taking a list and breaking it into X lists each of length Y? Otherwi...
row1 into K sublists, and then appending row2's K sublists to the end of row1's sublists until I reach row(K*K). Unfortunately, I'm really not sure how to go about making this happen? Is there a BIP I can use that will do something along the lines of taking a list and breaking it into X lists each of length Y? Otherwi...
[ 0.017578125, 0.007080078125, 0.00457763671875, 0.0010223388671875, -0.01068115234375, 0.0006256103515625, 0.007080078125, -0.0064697265625, 0.02978515625, -0.004486083984375, 0.01611328125, 0.0194091796875, -0.000949859619140625, 0.0166015625, -0.0206298828125, -0.000690460205078125, ...
[ 15555, 418, 3934, 341, 1614, 6562, 7, 1747, 96819, 304, 3564, 24189, 58359, 605, 1639, 185397, 6183, 9077, 3642, 1672, 20662, 903, 53383, 335, 10931, 4527, 54, 124519, 35971, 5303, 116987, 1193, 12638, 140909, 990, 25647, 3714, 57278, 20461...
[ 0.219970703125, 0.09521484375, 0.1600341796875, 0.18798828125, 0.1842041015625, 0.25, 0.052398681640625, 0.10052490234375, 0.0987548828125, 0.086181640625, 0.0980224609375, 0.05828857421875, 0.1539306640625, 0.1678466796875, 0.0732421875, 0.019927978515625, 0.00347900390625, 0.0426...
embed
36641297_c2
36641297
prolog
2
, kb_da, patient3, DataCom, PersData, Symptoms, FullBloodTest, SpecBloodTest, ElectricalHb, Body, UserId, check_WBC_PLT, check_RTC, rtcUp2, check_HBS, Spherocytcocis, Drepanocytocis, Spherocytocis, rtcLess2, check_MCV, Thalassemia, High, check_HCT_Hb_FE, Deficiency, Minor, check_B12_RBC, b12Low, B12, Anemia, check_Foli...
, kb_da, patient3, DataCom, PersData, Symptoms, FullBloodTest, SpecBloodTest, ElectricalHb, Body, UserId, check_WBC_PLT, check_RTC, rtcUp2, check_HBS, Spherocytcocis, Drepanocytocis, Spherocytocis, rtcLess2, check_MCV, Thalassemia, High, check_HCT_Hb_FE, Deficiency, Minor, check_B12_RBC, b12Low, B12, Anemia, check_Foli...
[ 0.01904296875, 0.000041961669921875, -0.0115966796875, -0.0230712890625, -0.006378173828125, 0.00726318359375, -0.00043487548828125, 0.004486083984375, 0.019775390625, -0.008544921875, 0.00299072265625, 0.015869140625, 0.01904296875, -0.0025482177734375, -0.00933837890625, -0.018554687...
[ 6, 4, 51882, 454, 85, 37896, 363, 11809, 10770, 908, 7, 137989, 149450, 9312, 571, 91841, 111337, 24990, 89917, 289, 841, 275, 43960, 53400, 568, 71, 12765, 1456, 24318, 21130, 618, 20503, 441, 3198, 238, 53234, 304, 20429, 8019, 90865, ...
[ 0.12060546875, 0.0750732421875, 0.12890625, 0.070068359375, 0.1280517578125, 0.201904296875, 0.1431884765625, 0.168701171875, 0.213623046875, 0.16552734375, 0.07525634765625, 0.2373046875, 0.2442626953125, 0.132080078125, 0.038299560546875, 0.1480712890625, 0.2421875, 0.14233398437...
embed
20777400_c0
20777400
prolog
0
Title: Prolog predicate with variable number of arguments Problem title: Prolog predicate with variable number of arguments Tags: predicate, prolog, variadic-functions Problem: Prolog predicate with variable number of arguments I am writing a Sudoku-Solver with PROLOG. I want the solver to work with all possible sizes ...
Prolog predicate with variable number of arguments Prolog predicate with variable number of arguments predicate prolog variadic-functions Prolog Prolog predicate with variable number of arguments I am writing a Sudoku-Solver with PROLOG. I want the solver to work with all possible sizes of Sudokus, so naturally I need ...
[ 0.0130615234375, 0.002838134765625, 0.00286865234375, -0.0157470703125, -0.00072479248046875, 0.0244140625, -0.0059814453125, 0.007049560546875, -0.015380859375, -0.018798828125, 0.00183868408203125, -0.033203125, -0.0145263671875, -0.01239013671875, -0.00028228759765625, 0.01892089843...
[ 1250, 4867, 1653, 2063, 67, 678, 77336, 14012, 10750, 502, 16757, 18403, 137175, 32562, 15334, 38067, 102588, 814, 10514, 47510, 3444, 3115, 4488, 7722, 13267, 685, 223, 3871, 64549, 1636, 5646, 81409, 11249, 831, 40226, 7 ]
[ 0.1561279296875, 0.2313232421875, 0.1881103515625, 0.2296142578125, 0.059661865234375, 0.07183837890625, 0.2178955078125, 0.1094970703125, 0.2509765625, 0.12353515625, 0.1859130859375, 0.060791015625, 0.1561279296875, 0.0657958984375, 0.107666015625, 0.17822265625, 0.085693359375, ...
embed
65224514_c0
65224514
prolog
0
Title: SICStus Prolog sat_count/2 replacement? Problem title: SICStus Prolog sat_count/2 replacement? Tags: clpb, prolog, sat Problem: SICStus Prolog sat_count/2 replacement? SWI-Prolog CLP(B) has a sat_count/2 predicate. What would be the replacement for this in SICStus Prolog CLP(B)? So far I went with: sat_count(+[1...
SICStus Prolog sat_count/2 replacement? SICStus Prolog sat_count/2 replacement? clpb prolog sat SICStus Prolog sat_count aggregate_all SICStus Prolog sat_count/2 replacement? SWI-Prolog CLP(B) has a sat_count/2 predicate. What would be the replacement for this in SICStus Prolog CLP(B)? So far I went with: But the above...
[ 0.0023345947265625, -0.0093994140625, -0.0052490234375, -0.0087890625, -0.01495361328125, -0.0220947265625, -0.01251220703125, -0.00726318359375, 0.009521484375, -0.05908203125, -0.0074462890625, -0.027099609375, 0.007781982421875, 0.0213623046875, 0.02978515625, -0.0233154296875, -0...
[ 159, 102198, 2143, 1250, 4867, 11736, 454, 71013, 12477, 91995, 674, 33139, 254, 275, 502, 197564, 5584, 38969, 10752, 313, 37352, 571, 1653, 2063, 903, 67967, 55042, 37772, 54497, 29806, 11522 ]
[ 0.07391357421875, 0.06463623046875, 0.1751708984375, 0.120361328125, 0.205322265625, 0.172119140625, 0.026702880859375, 0.2020263671875, 0.2237548828125, 0.1259765625, 0.042572021484375, 0.0142822265625, 0.040771484375, 0.078369140625, 0.0955810546875, 0.1171875, 0.0723876953125, 0...
embed
30719116_c0
30719116
prolog
0
Title: prolog-false is returned instead of a number Problem title: prolog-false is returned instead of a number Tags: prolog Problem: prolog-false is returned instead of a number I am trying to write a predicate that returns the minimum and maximum between two numbers. The min and max predicates work fine, however when...
prolog-false is returned instead of a number prolog-false is returned instead of a number prolog min_max MIN MAX prolog-false is returned instead of a number I am trying to write a predicate that returns the minimum and maximum between two numbers. The min and max predicates work fine, however when I try the min_max fu...
[ 0.015380859375, -0.00347900390625, 0.0286865234375, 0.000919342041015625, -0.005615234375, 0.025146484375, 0.00360107421875, 0.0028076171875, 0.00005745887756347656, 0.022705078125, 0.00016021728515625, -0.0048828125, 0.0003948211669921875, -0.00141143798828125, 0.0341796875, 0.0038146...
[ 502, 4867, 8710, 184, 83, 176377, 64457, 111, 14012, 881, 454, 24084, 69048, 85378, 31577, 33022, 1653, 2063, 67, 30646, 15440, 136, 38132, 17721, 6626, 101935, 18389, 1636, 4488, 5885, 49903, 9790, 32354, 71928, 1542, 1723, 2046, 98320, 43...
[ 0.189697265625, 0.25927734375, 0.1767578125, 0.160400390625, 0.032196044921875, 0.18896484375, 0.1431884765625, 0.05126953125, 0.1390380859375, 0.231689453125, 0.0467529296875, 0.1875, 0.2220458984375, 0.199462890625, 0.0550537109375, 0.08984375, 0.152587890625, 0.1724853515625, ...
embed
50543473_c0
50543473
prolog
0
Title: Return elements list of list prologs Problem title: Return elements list of list prologs Tags: head, list, prolog Problem: Return elements list of list prologs How to return all the elements of a list of lists in Prolog: That's my code: treturn_list_members([[Head|_]|Lists], Head). treturn_list_members([[_|T]|Li...
Return elements list of list prologs Return elements list of list prologs head list prolog treturn_list_members Head Lists return_list_members Return elements list of list prologs How to return all the elements of a list of lists in Prolog: That's my code: When I execute, it only return the elem of the first list.
[ 0.0126953125, -0.006011962890625, -0.00061798095703125, 0.0194091796875, -0.0208740234375, 0.008544921875, 0.000759124755859375, -0.0140380859375, 0.00909423828125, -0.046630859375, 0.025390625, 0.004302978515625, -0.00116729736328125, 0.0286865234375, 0.00860595703125, -0.000556945800...
[ 173340, 80854, 5303, 111, 502, 4867, 10336, 1360, 987, 19, 6562, 39, 27417, 44816, 32036, 30646, 47, 756, 70, 7, 23, 1250, 18151, 71924, 4734, 88, 195, 5117 ]
[ 0.193359375, 0.2154541015625, 0.1929931640625, 0.03643798828125, 0.143798828125, 0.251953125, 0.08428955078125, 0.0213470458984375, 0.1104736328125, 0.03558349609375, 0.16796875, 0.041595458984375, 0.1534423828125, 0.10479736328125, 0.143310546875, 0.23193359375, 0.03131103515625, ...
embed
62595624_c0
62595624
prolog
0
Title: How to parse the first part of a Text in Prolog? Problem title: How to parse the first part of a Text in Prolog? Tags: prolog Problem: How to parse the first part of a Text in Prolog? Given a database like this birthday(daniel,2018-11-22). birthday(paul,2000-01-30). I need to find all persons that have a birthda...
How to parse the first part of a Text in Prolog? How to parse the first part of a Text in Prolog? prolog How Text Prolog How to parse the first part of a Text in Prolog? Given a database like this I need to find all persons that have a birthday in the year 2018. I have no idea how to do that. I'm thinking about somethi...
[ 0.021240234375, -0.01263427734375, 0.0123291015625, 0.041259765625, -0.0245361328125, 0.0185546875, -0.00787353515625, 0.015869140625, -0.0013580322265625, -0.0257568359375, -0.0023651123046875, 0.0277099609375, -0.01904296875, -0.0184326171875, 0.0196533203125, -0.00421142578125, -0...
[ 11249, 47, 366, 184, 5117, 2831, 111, 24129, 23, 1250, 4867, 502, 70, 10, 63399, 3871, 7413, 756, 3445, 450, 765, 101207, 6602, 4152, 6528, 3642, 54, 47644, 20324, 125195, 79315, 150624, 56037, 46876, 4034, 7, 76228, 1742, 36099, 4015, ...
[ 0.07757568359375, 0.04473876953125, 0.1978759765625, 0.1658935546875, 0.1864013671875, 0.1968994140625, 0.047088623046875, 0.2464599609375, 0.078857421875, 0.2000732421875, 0.2509765625, 0.138427734375, 0.045989990234375, 0.09185791015625, 0.1221923828125, 0.003509521484375, 0.119384...
embed
57210776_c0
57210776
prolog
0
Title: In Prolog, how do I turn all answers to a query into a list? Problem title: In Prolog, how do I turn all answers to a query into a list? Tags: prolog, swi-prolog Problem: In Prolog, how do I turn all answers to a query into a list? I'm just starting with Prolog. And with using web-server functionality. I want to...
In Prolog, how do I turn all answers to a query into a list? In Prolog, how do I turn all answers to a query into a list? prolog swi-prolog Prolog In Prolog, how do I turn all answers to a query into a list? I'm just starting with Prolog. And with using web-server functionality. I want to have a page which is a list of...
[ 0.033935546875, -0.0014495849609375, 0.017822265625, -0.0084228515625, -0.006988525390625, 0.0233154296875, -0.007110595703125, -0.003387451171875, -0.00072479248046875, -0.05908203125, -0.00689697265625, -0.018798828125, -0.0067138671875, -0.00830078125, -0.0022430419921875, 0.0179443...
[ 360, 1250, 4867, 3642, 15504, 756, 35166, 7, 47, 41, 1294, 3934, 5303, 10, 502, 2452, 3454, 54, 87, 72134, 1467, 39642, 123309, 3444, 9191, 8966, 40041, 23356, 1653, 2063, 11249, 111, 67, 77064, 54241, 50339, 183234, 78219, 653 ]
[ 0.03955078125, 0.1751708984375, 0.262451171875, 0.060211181640625, 0.1402587890625, 0.1209716796875, 0.213134765625, 0.0445556640625, 0.0885009765625, 0.166259765625, 0.17431640625, 0.10260009765625, 0.21826171875, 0.0655517578125, 0.0853271484375, 0.08441162109375, 0.08746337890625,...
embed
15709808_c0
15709808
prolog
0
Title: Features of good Prolog code? Problem title: Features of good Prolog code? Tags: prolog, logical-purity, failure-slice Problem: Features of good Prolog code? What are the design heuristics one has to master to write good Prolog? I've heard it takes an experienced programmer about two years to become proficient i...
Features of good Prolog code? Features of good Prolog code? prolog logical-purity failure-slice Features Prolog Features of good Prolog code? What are the design heuristics one has to master to write good Prolog? I've heard it takes an experienced programmer about two years to become proficient in Prolog. Using recursi...
[ 0.014404296875, 0.01953125, 0.0087890625, -0.004150390625, 0.011474609375, 0.01275634765625, -0.002471923828125, -0.00049591064453125, 0.00933837890625, -0.00150299072265625, 0.003082275390625, -0.004608154296875, -0.01263427734375, 0.004302978515625, 0.01263427734375, 0.00579833984375...
[ 106594, 7, 111, 4127, 1250, 4867, 18151, 502, 62775, 289, 4717, 2481, 137578, 13348, 4331, 764, 62210, 41637, 1556, 31347, 33022, 51776, 122446, 77848, 1672, 6626, 5369, 24209, 46902, 45964, 23, 345, 195625, 1830, 191984, 3587, 19298, 76199, ...
[ 0.1630859375, 0.00091552734375, 0.049041748046875, 0.1328125, 0.20361328125, 0.279296875, 0.2265625, 0.151611328125, 0.0877685546875, 0.010955810546875, 0.0809326171875, 0.016448974609375, 0.1485595703125, 0.09716796875, 0.1904296875, 0.034423828125, 0.1505126953125, 0.094848632812...
embed
5860483_c0
5860483
prolog
0
Title: Are there any projects that started out as a Prolog prototype Problem title: Are there any projects that started out as a Prolog prototype Tags: prolog Problem: Are there any projects that started out as a Prolog prototype PyPy's JIT started out as a Prolog prototype: http://morepypy.blogspot.com/2008/06/hi-all-...
Are there any projects that started out as a Prolog prototype Are there any projects that started out as a Prolog prototype prolog Prolog Are there any projects that started out as a Prolog prototype PyPy's JIT started out as a Prolog prototype: http://morepypy.blogspot.com/2008/06/hi-all-some-news-from-jit-front.html ...
[ 0.024169921875, 0.0030364990234375, 0.031982421875, 0.0196533203125, -0.0052490234375, 0.0003261566162109375, 0.017333984375, -0.01068115234375, -0.005767822265625, -0.00616455078125, -0.00157928466796875, -0.00946044921875, -0.0263671875, 0.00421142578125, 0.018798828125, 0.0049438476...
[ 2685, 2499, 77635, 26859, 1810, 237, 1250, 4867, 160469, 13, 450, 502, 27512, 683, 53, 821, 6371, 10, 6493, 29676, 20549, 21413, 3137, 34702, 282, 1004, 3066, 29479, 23, 135818, 456, 197648, 1286, 154909, 46876 ]
[ 0.022674560546875, 0.050048828125, 0.1868896484375, 0.0987548828125, 0.1280517578125, 0.06817626953125, 0.1798095703125, 0.279541015625, 0.26806640625, 0.11669921875, 0.0189361572265625, 0.1529541015625, 0.107421875, 0.1063232421875, 0.1788330078125, 0.15771484375, 0.2296142578125, ...
embed
8405359_c0
8405359
prolog
0
Title: inference engine based chatbot in java Problem title: inference engine based chatbot in java Tags: prolog, java, chatbot Problem: inference engine based chatbot in java I want to build a chatbot which can parse through given knowledge to add facts to its knowledge base and use these facts and an inference engine...
inference engine based chatbot in java inference engine based chatbot in java prolog java chatbot inference engine based chatbot in java I want to build a chatbot which can parse through given knowledge to add facts to its knowledge base and use these facts and an inference engine to answer questions. What existing sol...
[ 0.033203125, 0.004241943359375, 0.00457763671875, 0.02978515625, 0.0029754638671875, 0.017578125, -0.0107421875, -0.003021240234375, -0.00164031982421875, -0.058349609375, 0.0184326171875, 0.0093994140625, -0.021240234375, -0.00390625, 0.01385498046875, 0.01507568359375, 0.0059814453...
[ 53498, 6620, 87907, 35509, 3245, 9190, 23, 79, 330, 502, 4867, 3444, 45367, 831, 366, 184, 8305, 34475, 51359, 15190, 15824, 3647, 4527, 35166, 17582, 144573, 51347, 903, 43542, 7228, 1884, 170846, 25842, 69307, 2806, 12601, 46876, 68403 ]
[ 0.2020263671875, 0.125, 0.193115234375, 0.080810546875, 0.1715087890625, 0.2279052734375, 0.056793212890625, 0.15625, 0.2001953125, 0.060211181640625, 0.147216796875, 0.0950927734375, 0.1329345703125, 0.07745361328125, 0.1181640625, 0.1314697265625, 0.0914306640625, 0.0640869140625...
embed
10336685_c0
10336685
prolog
0
Title: Prolog predicate to generate integers above X on backtrack Problem title: Prolog predicate to generate integers above X on backtrack Tags: prolog Problem: Prolog predicate to generate integers above X on backtrack Write a predicate above(L, N) that will generate (on backtracking) each of the integers larger than...
Prolog predicate to generate integers above X on backtrack Prolog predicate to generate integers above X on backtrack prolog Prolog Prolog predicate to generate integers above X on backtrack As above. A general strategy for "generating solutions on backtrack" would be great too.
[ 0.005828857421875, 0.0157470703125, 0.00518798828125, -0.0048828125, -0.0164794921875, 0.0255126953125, 0.0181884765625, -0.00433349609375, 0.00811767578125, -0.032470703125, -0.006439208984375, -0.01220703125, -0.00848388671875, 0.00323486328125, 0.022705078125, 0.00002419948577880859...
[ 1250, 4867, 1653, 2063, 67, 47, 139392, 892, 26255, 36917, 1193, 98, 4420, 125728, 502, 1301, 4537, 113857, 48281, 1916, 51347, 2806, 6782 ]
[ 0.1695556640625, 0.24951171875, 0.1746826171875, 0.216796875, 0.06329345703125, 0.06451416015625, 0.2373046875, 0.1873779296875, 0.1083984375, 0.19775390625, 0.177001953125, 0.1263427734375, 0.1680908203125, 0.259521484375, 0.12200927734375, 0.044342041015625, 0.054595947265625, 0....
embed
9030462_c2
9030462
prolog
2
(State),nl. init(S1,S2,S3,S4,S5):-assert(cur_state(State):-State = state(S1,S2,S3,S4,S5)),write('Arxikh:'), write(state(S1,S2,S3,S4,S5)),retractall(init(S1,S2,S3,S4,S5)),nl. final(S1,S2,S3,S4,S5):-assert(end_state(State):-State = state(S1,S2,S3,S4,S5)),write('Telikh:'), write(state(S1,S2,S3,S4,S5)),retractall(final(S1,...
(State),nl. init(S1,S2,S3,S4,S5):-assert(cur_state(State):-State = state(S1,S2,S3,S4,S5)),write('Arxikh:'), write(state(S1,S2,S3,S4,S5)),retractall(init(S1,S2,S3,S4,S5)),nl. final(S1,S2,S3,S4,S5):-assert(end_state(State):-State = state(S1,S2,S3,S4,S5)),write('Telikh:'), write(state(S1,S2,S3,S4,S5)),retractall(final(S1,...
[ 0.0002918243408203125, 0.011962890625, 0.00689697265625, 0.0205078125, -0.00689697265625, 0.00022411346435546875, -0.0111083984375, 0.01446533203125, 0.0106201171875, -0.01019287109375, 0.0216064453125, 0.019287109375, 0.01806640625, 0.01123046875, -0.0028533935546875, -0.0065002441406...
[ 15, 135206, 13, 247, 13169, 5, 23, 217, 132, 294, 418, 4, 304, 363, 617, 43317, 12, 162, 33657, 16820, 454, 61340, 2077, 2203, 11341, 434, 18781, 7614, 425, 41336, 33022, 107, 39989, 91569, 2704, 3611, 10476, 597, 127, 33870, 738, 908...
[ 0.040740966796875, 0.2286376953125, 0.161865234375, 0.07672119140625, 0.138916015625, 0.06494140625, 0.08221435546875, 0.14794921875, 0.025726318359375, 0.1417236328125, 0.0989990234375, 0.0171051025390625, 0.152587890625, 0.1680908203125, 0.1873779296875, 0.197265625, 0.0654296875, ...
embed
43851105_c0
43851105
prolog
0
Title: Prolog - Find a non-single list in a list of lists Problem title: Prolog - Find a non-single list in a list of lists Tags: list, prolog Problem: Prolog - Find a non-single list in a list of lists I have a 9x9 puzzle (list of lists). Each of his 9 lines has 9 lists with numbers. My goal is to find a non-single li...
Prolog - Find a non-single list in a list of lists Prolog - Find a non-single list in a list of lists list prolog Prolog Find Pos Prolog - Find a non-single list in a list of lists I have a 9x9 puzzle (list of lists). Each of his 9 lines has 9 lists with numbers. My goal is to find a non-single list on the puzzle. Alth...
[ -0.01470947265625, 0.0028076171875, -0.00174713134765625, 0.0244140625, -0.0286865234375, 0.026611328125, -0.00970458984375, 0.006256103515625, 0.00897216796875, -0.007476806640625, 0.009765625, 0.0002651214599609375, 0.006072998046875, -0.00183868408203125, -0.00634765625, 0.013122558...
[ 1250, 4867, 26040, 10, 351, 6953, 133, 5303, 23, 111, 20, 9, 502, 13498, 765, 483, 425, 1126, 104192, 6562, 98423, 1919, 124519, 1556, 678, 101935, 69236, 7413, 98, 903, 18151, 959, 17311, 4127, 64747, 5608, 20697, 3714, 11522, 86869, 1...
[ 0.1654052734375, 0.229736328125, 0.1485595703125, 0.0238800048828125, 0.1990966796875, 0.156005859375, 0.11962890625, 0.229736328125, 0.07470703125, 0.0579833984375, 0.003753662109375, 0.052642822265625, 0.1055908203125, 0.17236328125, 0.0215911865234375, 0.145751953125, 0.0720214843...
embed
33709133_c0
33709133
prolog
0
Title: Mac Prolog Console Text with black highlight Problem title: Mac Prolog Console Text with black highlight Tags: macos, console, prolog, swi-prolog, user-interface Problem: Mac Prolog Console Text with black highlight How can I change the colour in the console? It was working absolutely fine yesterday, but when I ...
Mac Prolog Console Text with black highlight Mac Prolog Console Text with black highlight macos console prolog swi-prolog user-interface Mac Prolog Console Text Mac Prolog Console Text with black highlight How can I change the colour in the console? It was working absolutely fine yesterday, but when I run prolog today,...
[ 0.017822265625, -0.01092529296875, 0.007354736328125, 0.0341796875, 0.0030517578125, -0.00927734375, 0.024658203125, 0.000736236572265625, -0.01806640625, 0.035888671875, -0.00127410888671875, 0.0272216796875, -0.00897216796875, -0.01434326171875, 0.03662109375, -0.00057220458984375, ...
[ 4727, 1250, 4867, 1657, 40777, 24129, 678, 22556, 127308, 291, 7840, 130250, 502, 91, 2452, 3454, 38937, 10433, 831, 15549, 134855, 23, 20697, 115839, 5885, 131101, 1284, 3229, 11675, 18925, 7986, 24209, 46389, 37842, 959, 68772, 163, 65572, ...
[ 0.1529541015625, 0.1688232421875, 0.254638671875, 0.0799560546875, 0.2005615234375, 0.207275390625, 0.087890625, 0.2164306640625, 0.248291015625, 0.0272979736328125, 0.08502197265625, 0.245361328125, 0.155029296875, 0.0160064697265625, 0.1463623046875, 0.11962890625, 0.03897094726562...
embed
79404579_c2
79404579
prolog
2
2, student3, student4, student5, student6, slot1, slot2, slot3, constraint1, _Slot2, _Slot3, student1-_, constraint2, student2-_, student3-_, constraint3, student4-_, constraint4, student6-_, meetings_one_two_three, Generate, Slot, select_two_students, S1_1, S1_2, _Remaining1, S1_1-S1_2, S1_2-S1_1, Assign, S2_1, S2_2, ...
2, student3, student4, student5, student6, slot1, slot2, slot3, constraint1, _Slot2, _Slot3, student1-_, constraint2, student2-_, student3-_, constraint3, student4-_, constraint4, student6-_, meetings_one_two_three, Generate, Slot, select_two_students, S1_1, S1_2, _Remaining1, S1_1-S1_2, S1_2-S1_1, Assign, S2_1, S2_2, ...
[ -0.0205078125, 0.0040283203125, 0.01422119140625, 0.0216064453125, -0.01055908203125, -0.01068115234375, -0.023681640625, -0.0201416015625, 0.015380859375, 0.0216064453125, -0.017578125, 0.0296630859375, 0.0035247802734375, 0.01495361328125, -0.006072998046875, 0.00019073486328125, 0...
[ 116, 4, 9836, 363, 617, 758, 910, 24897, 418, 304, 158, 2816, 4288, 101, 12631, 20268, 18504, 27495, 35748, 9, 454, 41714, 3630, 55547, 107, 155370, 67, 69623, 36849, 96610, 159, 115187, 4332, 192, 14653, 294, 1301, 31304, 756, 238778, ...
[ 0.184326171875, 0.093505859375, 0.271728515625, 0.1666259765625, 0.1556396484375, 0.1463623046875, 0.173828125, 0.2587890625, 0.11328125, 0.106201171875, 0.111083984375, 0.202880859375, 0.149169921875, 0.027740478515625, 0.2197265625, 0.1024169921875, 0.054962158203125, 0.041229248...
embed
19257287_c0
19257287
prolog
0
Title: My Prolog version doesn&#x27;t seem to know member Problem title: My Prolog version doesn&#x27;t seem to know member Tags: amzi-prolog, prolog Problem: My Prolog version doesn't seem to know member I'm trying out next example in Amzi! Prolog: member(apple, [apple, broccoli, crackers]). And the answer is no. ?- m...
My Prolog version doesn&#x27;t seem to know member My Prolog version doesn&#x27;t seem to know member amzi-prolog prolog Prolog My Prolog version doesn't seem to know member I'm trying out next example in Amzi! Prolog: And the answer is no. Is there a problem with my version? If I try the same in swipl, then it does wo...
[ 0.0126953125, 0.0103759765625, 0.0233154296875, 0.0211181640625, -0.0211181640625, 0.0263671875, 0.0135498046875, 0.015625, -0.005157470703125, -0.033203125, 0.00885009765625, -0.0025482177734375, 0.0033111572265625, 0.005096435546875, 0.0286865234375, -0.019287109375, -0.01202392578...
[ 2646, 1250, 4867, 11389, 3768, 18, 48903, 3714, 32786, 444, 708, 3454, 502, 31577, 11737, 27781, 2022, 38, 35166, 110, 2967, 759, 9790, 2452, 2424, 4488, 4527, 10002, 208124 ]
[ 0.053558349609375, 0.205810546875, 0.2493896484375, 0.1541748046875, 0.0478515625, 0.056304931640625, 0.0758056640625, 0.1533203125, 0.262939453125, 0.09228515625, 0.1876220703125, 0.10723876953125, 0.1202392578125, 0.03643798828125, 0.01129150390625, 0.0904541015625, 0.1173095703125...
embed
6721139_c0
6721139
prolog
0
Title: Cycle detection in a graph Problem title: Cycle detection in a graph Tags: prolog, directed-graph Problem: Cycle detection in a graph We are given a graph with the following facts: edge(a,b) edge(a,c) edge(b,a) edge(c,d) edge(d,d) edge(d,e) edge(e,f) edge(f,g) edge(g,e) And we are asked to define a rule, cycle(X...
Cycle detection in a graph Cycle detection in a graph prolog directed-graph Cycle Cycle detection in a graph We are given a graph with the following facts: And we are asked to define a rule, cycle(X) , that determines if there is a cycle starting from the node X . I am really lost on how to do this, I tried attempting ...
[ 0.01513671875, 0.011474609375, 0.0027618408203125, 0.0286865234375, 0.01025390625, -0.005859375, -0.0133056640625, 0.000614166259765625, 0.013916015625, -0.0277099609375, -0.01080322265625, -0.00091552734375, -0.037841796875, 0.02294921875, 0.02294921875, 0.0230712890625, -0.01965332...
[ 151612, 13, 149, 58994, 41382, 502, 4867, 8951, 297, 23, 34475, 15824, 37170, 61924, 79986, 105823, 132, 1542, 83324, 2174, 2685, 83, 10, 72134, 1295, 110, 112, 1193, 6183, 72856, 54, 81887, 37317, 988, 175199, 11737, 13438, 53418, 48903, ...
[ 0.2467041015625, 0.11474609375, 0.172607421875, 0.113037109375, 0.201904296875, 0.0927734375, 0.16650390625, 0.1103515625, 0.001068115234375, 0.002166748046875, 0.01226806640625, 0.0343017578125, 0.037994384765625, 0.1246337890625, 0.1790771484375, 0.291748046875, 0.011871337890625, ...
embed
35214826_c1
35214826
prolog
1
, 4, 12, 2, 10, 6, 14, 1, 9], Ans)). % 53,397 inferences, 0.088 CPU in 0.088 seconds (100% CPU, 609577 Lips) Ans = [0, 2, 6, 9]. %% With database ?- time(optimum_solution([0, 8, 4, 12, 2, 10, 6, 14, 1, 9], Ans)). % 4,097 inferences, 0.002 CPU in 0.002 seconds (100% CPU, 2322004 Lips) Ans = [0, 2, 6, 9]. %% Without data...
, 4, 12, 2, 10, 6, 14, 1, 9], Ans)). % 53,397 inferences, 0.088 CPU in 0.088 seconds (100% CPU, 609577 Lips) Ans = [0, 2, 6, 9]. %% With database ?- time(optimum_solution([0, 8, 4, 12, 2, 10, 6, 14, 1, 9], Ans)). % 4,097 inferences, 0.002 CPU in 0.002 seconds (100% CPU, 2322004 Lips) Ans = [0, 2, 6, 9]. %% Without data...
[ 0.0091552734375, 0.01043701171875, 0.0196533203125, -0.0019683837890625, -0.0147705078125, -0.0032501220703125, -0.01708984375, -0.0040283203125, 0.0133056640625, -0.048583984375, -0.0166015625, -0.00035858154296875, 0.0115966796875, 0.0047607421875, 0.01220703125, -0.01251220703125, ...
[ 6, 201, 4, 427, 116, 209, 305, 616, 106, 483, 268, 893, 7, 16, 194, 1745, 8934, 149729, 53498, 69098, 89678, 12772, 86039, 23, 94131, 43659, 186198, 165467, 156903, 2203, 2389, 17106, 63399, 1733, 100433, 316, 166589, 382, 6463, 966, 95...
[ 0.0052490234375, 0.1666259765625, 0.03411865234375, 0.1326904296875, 0.0948486328125, 0.116455078125, 0.1185302734375, 0.163818359375, 0.026611328125, 0.148193359375, 0.00006103515625, 0.1778564453125, 0.1287841796875, 0.0599365234375, 0.055389404296875, 0.0994873046875, 0.1218261718...
embed
16262678_c0
16262678
prolog
0
Title: Diagnostics messages for pascal parser Problem title: Diagnostics messages for pascal parser Tags: prolog, dcg Problem: Diagnostics messages for pascal parser I'm writing a simple pascal parser and have specified some grammar rules like program_header --> program, id, leftparenthesis ... etc program --> [500] id...
Diagnostics messages for pascal parser Diagnostics messages for pascal parser prolog dcg Diagnostics program_header Diagnostics messages for pascal parser I'm writing a simple pascal parser and have specified some grammar rules like etc How would I go about if I wanted to display diagnostic messages to the user? Like i...
[ 0.023193359375, 0.0281982421875, -0.0068359375, 0.031005859375, -0.005218505859375, 0.012939453125, -0.0194091796875, 0.01202392578125, 0.00201416015625, -0.0137939453125, 0.01312255859375, -0.004302978515625, -0.0004138946533203125, -0.0074462890625, 0.031982421875, 0.0233154296875, ...
[ 128198, 41637, 89914, 100, 452, 6827, 366, 2189, 502, 4867, 238, 177, 1528, 31251, 32562, 8781, 58735, 122092, 147, 91736, 36663, 47, 44116, 52070, 38937, 25737, 1810, 532, 11737, 84751, 1098, 2480, 99547, 160291, 64457 ]
[ 0.1873779296875, 0.1202392578125, 0.197021484375, 0.047119140625, 0.087890625, 0.10546875, 0.115966796875, 0.1514892578125, 0.0792236328125, 0.1348876953125, 0.0248870849609375, 0.06207275390625, 0.0750732421875, 0.0745849609375, 0.052032470703125, 0.06878662109375, 0.05938720703125,...
embed
78555847_c0
78555847
prolog
0
Title: Prolog predicate using lists Problem title: Prolog predicate using lists Tags: prolog Problem: Prolog predicate using lists I have to make this programming exercise in Prolog. Consider the following predicates: race(name). victory(pilot_name, race_name, date). pilot(name). Define the following Prolog predicate: ...
Prolog predicate using lists Prolog predicate using lists prolog lists Prolog Prolog predicate using lists I have to make this programming exercise in Prolog. Consider the following predicates: race(name). victory(pilot_name, race_name, date). pilot(name). Define the following Prolog predicate: most_consistent(pilot_na...
[ -0.0068359375, 0.0020294189453125, -0.002410888671875, 0.0081787109375, 0.005096435546875, 0.01385498046875, -0.00909423828125, -0.0089111328125, -0.003326416015625, -0.03271484375, 0.00933837890625, -0.034423828125, 0.00567626953125, -0.00604248046875, 0.00653076171875, 0.0029296875, ...
[ 1250, 4867, 1653, 2063, 67, 17368, 5303, 502, 7, 56037, 81979, 23, 137399, 1636, 45712, 11627, 91375, 105962, 5622, 20279, 262, 64552, 70, 2684, 25553, 6892, 173340, 29568, 2174, 1556, 23742, 167375, 14012, 5351, 8781, 29806, 86869, 903, 43...
[ 0.19384765625, 0.2420654296875, 0.20849609375, 0.2347412109375, 0.1181640625, 0.0950927734375, 0.2247314453125, 0.1424560546875, 0.0190277099609375, 0.0948486328125, 0.07220458984375, 0.0149078369140625, 0.0189056396484375, 0.023468017578125, 0.16357421875, 0.13671875, 0.15869140625,...
embed
70764117_c0
70764117
prolog
0
Title: Merging 2 lists into a third but in pairs Problem title: Merging 2 lists into a third but in pairs Tags: prolog Problem: Merging 2 lists into a third but in pairs I want, given 2 lists, to merge them into a third one but each element of the third list is a list of the first and second list's elements. E.g. given...
Merging 2 lists into a third but in pairs Merging 2 lists into a third but in pairs prolog Merging Merging 2 lists into a third but in pairs I want, given 2 lists, to merge them into a third one but each element of the third list is a list of the first and second list's elements. E.g. given the list1 [1,2,3] and list2 ...
[ 0.005279541015625, 0.0296630859375, 0.004974365234375, 0.005828857421875, 0.0002269744873046875, 0.034912109375, -0.029541015625, 0.006591796875, 0.0250244140625, 0.00186920166015625, 0.0098876953125, -0.005340576171875, 0.002532958984375, 0.0068359375, -0.0035400390625, -0.00002849102...
[ 6035, 9966, 116, 5303, 7, 3934, 50960, 1284, 23, 80836, 502, 4867, 10, 3444, 34475, 42564, 1632, 12638, 12830, 83, 17932, 80854, 155761, 304, 2704, 186, 363, 96386, 22225, 184, 16750, 18, 20697 ]
[ 0.170166015625, 0.0955810546875, 0.1600341796875, 0.236572265625, 0.032745361328125, 0.113037109375, 0.2802734375, 0.08892822265625, 0.0950927734375, 0.2298583984375, 0.115234375, 0.1446533203125, 0.011260986328125, 0.07098388671875, 0.04034423828125, 0.2325439453125, 0.0405883789062...
embed
42126317_c0
42126317
prolog
0
Title: Retracting only a Rule and not Facts of the same predicate in Prolog Problem title: Retracting only a Rule and not Facts of the same predicate in Prolog Tags: prolog Problem: Retracting only a Rule and not Facts of the same predicate in Prolog I have a set of Rules and a set of Facts with the same predicate p(1)...
Retracting only a Rule and not Facts of the same predicate in Prolog Retracting only a Rule and not Facts of the same predicate in Prolog prolog Retracting Rule Facts Prolog Retracting only a Rule and not Facts of the same predicate in Prolog I have a set of Rules and a set of Facts with the same predicate I would like...
[ 0.0211181640625, 0.0135498046875, 0.0142822265625, 0.01129150390625, -0.007080078125, 0.01068115234375, 0.013916015625, -0.01177978515625, 0.003021240234375, -0.02734375, 0.01611328125, -0.019287109375, -0.004608154296875, -0.01239013671875, 0.013427734375, 0.00787353515625, 0.012634...
[ 853, 39989, 1916, 4734, 139118, 959, 132640, 5701, 1653, 2063, 67, 23, 1250, 4867, 502, 10, 136, 5423, 678, 1884, 54, 41499, 238, 91569, 5062, 87388, 91736, 15824, 11249, 2806, 903 ]
[ 0.1083984375, 0.1962890625, 0.08380126953125, 0.13037109375, 0.1932373046875, 0.102783203125, 0.1763916015625, 0.094970703125, 0.1336669921875, 0.197021484375, 0.033447265625, 0.043914794921875, 0.1649169921875, 0.2347412109375, 0.09381103515625, 0.0030517578125, 0.01568603515625, ...
embed