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
63926265_c0
63926265
prolog
0
Title: Counting how many elements in a list of lists satisfy a predicate Problem title: Counting how many elements in a list of lists satisfy a predicate Tags: list, prolog Problem: Counting how many elements in a list of lists satisfy a predicate Given a list of lists of integers, e.g. [[3,10],[3,10,2],[5],[5,2],[5,3]...
Counting how many elements in a list of lists satisfy a predicate Counting how many elements in a list of lists satisfy a predicate list prolog Counting aggregate_all sum_list Combinations Value Counting how many elements in a list of lists satisfy a predicate Given a list of lists of integers, e.g. [[3,10],[3,10,2],[5...
[ -0.007293701171875, -0.01025390625, 0.00244140625, 0.00078582763671875, -0.0150146484375, 0.0125732421875, 0.00604248046875, 0.005523681640625, 0.006622314453125, -0.0196533203125, -0.00811767578125, -0.0223388671875, 0.025146484375, 0.0189208984375, -0.00119781494140625, -0.0003681182...
[ 1311, 128396, 3642, 5941, 80854, 23, 5303, 111, 7, 40407, 53, 1653, 2063, 67, 502, 4867, 197564, 13, 5584, 10554, 6562, 106935, 19, 190060, 892, 26255, 363, 963, 758, 96386, 645, 12638, 1614, 54529, 2856, 47, 6281, 106, 122101, 90173, 1...
[ 0.13720703125, 0.140869140625, 0.0653076171875, 0.1376953125, 0.224853515625, 0.0672607421875, 0.2364501953125, 0.057952880859375, 0.06402587890625, 0.2176513671875, 0.09014892578125, 0.177978515625, 0.2052001953125, 0.0736083984375, 0.111328125, 0.119140625, 0.18212890625, 0.01399...
embed
21511083_c0
21511083
prolog
0
Title: reading files in Prolog Problem title: reading files in Prolog Tags: prolog Problem: reading files in Prolog I am trying to read the file 'nouns.csv' which looks like this in notepad: femin,femin,1,f,woman,women. aqu,aqu,1,f,water,waters. I have tried using this in SWI-Prolog: 18 ?- read(X). X = end_of_file. 19 ...
reading files in Prolog reading files in Prolog prolog Prolog end_of_file nouns.csv Input Adjust reading files in Prolog I am trying to read the file 'nouns.csv' which looks like this in notepad: I have tried using this in SWI-Prolog: I have absolutely no experience with Input and Output (in any language) and I am conf...
[ -0.00144195556640625, -0.006500244140625, 0.006927490234375, 0.01611328125, 0.008056640625, 0.019775390625, 0.022705078125, 0.00390625, -0.00970458984375, -0.047607421875, 0.006988525390625, -0.0247802734375, -0.0230712890625, -0.010986328125, 0.0257568359375, -0.0020751953125, 0.006...
[ 16454, 102158, 1250, 4867, 23, 502, 3564, 4390, 29822, 3603, 1779, 4439, 334, 20314, 12301, 11435, 3165, 33342, 1884, 20537, 4299, 37842, 17368, 38969, 10752, 110, 16981, 360, 7077, 136, 13538, 46876, 55681, 132, 1542, 30646, 28271, 237, 79...
[ 0.1602783203125, 0.170166015625, 0.1243896484375, 0.221435546875, 0.03631591796875, 0.06787109375, 0.0692138671875, 0.0679931640625, 0.1241455078125, 0.154541015625, 0.160888671875, 0.09503173828125, 0.19384765625, 0.1021728515625, 0.185302734375, 0.162841796875, 0.132568359375, 0....
embed
23279902_c0
23279902
prolog
0
Title: PROLOG: Trying to get around predsort deleting duplicate objects Problem title: PROLOG: Trying to get around predsort deleting duplicate objects Tags: prolog, sorting Problem: PROLOG: Trying to get around predsort deleting duplicate objects I'm trying to make it so predsort wont delete any duplicate objects that...
PROLOG: Trying to get around predsort deleting duplicate objects PROLOG: Trying to get around predsort deleting duplicate objects prolog sorting PROLOG Trying show_records PROLOG: Trying to get around predsort deleting duplicate objects I'm trying to make it so predsort wont delete any duplicate objects that I have, an...
[ -0.00146484375, 0.006561279296875, 0.021484375, -0.0137939453125, -0.020751953125, 0.0089111328125, 0.000896453857421875, -0.00138092041015625, 0.01495361328125, -0.0286865234375, -0.00762939453125, 0.02685546875, 0.00567626953125, -0.01080322265625, -0.0166015625, 0.00860595703125, ...
[ 10514, 47510, 40858, 10932, 1653, 62351, 24674, 171763, 67, 36746, 502, 4867, 12096, 214, 7639, 32271, 2046, 31577, 23742, 18, 154109, 765, 3714, 62775, 48903, 4488, 11782, 96362, 2063, 390, 35735, 14037, 18499, 9790, 123996, 138, 5117, 34292...
[ 0.1265869140625, 0.1707763671875, 0.0650634765625, 0.1568603515625, 0.2144775390625, 0.2486572265625, 0.134765625, 0.19775390625, 0.09808349609375, 0.1539306640625, 0.1253662109375, 0.1907958984375, 0.2236328125, 0.000732421875, 0.071533203125, 0.1500244140625, 0.0183563232421875, ...
embed
67955236_c0
67955236
prolog
0
Title: Prolog: How can I set "gtrace" correctly in Visual Studio Code? Problem title: Prolog: How can I set "gtrace" correctly in Visual Studio Code? Tags: prolog, visual-studio-code Problem: Prolog: How can I set "gtrace" correctly in Visual Studio Code? I have SWI-Prolog 8.2.4 installed, and I was...
Prolog: How can I set "gtrace" correctly in Visual Studio Code? Prolog: How can I set "gtrace" correctly in Visual Studio Code? prolog visual-studio-code Prolog How Visual Studio Prolog: How can I set "gtrace" correctly in Visual Studio Code? I have SWI-Prolog 8.2.4 installed, and I was trying to ge...
[ 0.0186767578125, 0.008544921875, 0.00909423828125, -0.0091552734375, 0.001190185546875, 0.01092529296875, 0.0021820068359375, 0.00994873046875, -0.00701904296875, -0.0220947265625, 0.01019287109375, 0.0235595703125, -0.01373291015625, -0.014404296875, 0.0107421875, 0.00872802734375, ...
[ 1250, 4867, 11249, 831, 5423, 5386, 99407, 26785, 73372, 22968, 28864, 23, 502, 21176, 52629, 40899, 159, 38969, 10752, 3217, 116591, 20600, 4488, 111938, 310, 14495, 79281, 11061, 11675, 1528, 26818, 43240, 53418, 4527, 706, 39989, 13, 55516...
[ 0.163818359375, 0.240234375, 0.04925537109375, 0.0419921875, 0.172119140625, 0.130615234375, 0.27587890625, 0.137451171875, 0.178466796875, 0.1834716796875, 0.200439453125, 0.0482177734375, 0.1170654296875, 0.1243896484375, 0.1343994140625, 0.1385498046875, 0.01318359375, 0.1762695...
embed
7301440_c0
7301440
prolog
0
Title: Convert C# to Prolog code: recursive while loop Problem title: Convert C# to Prolog code: recursive while loop Tags: c%23, prolog, recursion Problem: Convert C# to Prolog code: recursive while loop Good evening at all, after solving my previous problem explained here , I've a few last problem with the Prolog ver...
Convert C# to Prolog code: recursive while loop Convert C# to Prolog code: recursive while loop c%23 prolog recursion Convert Prolog myObject1.Index myObject1.getChar myObject2.getChar Equals myObject1.getCharAt myObject1.Counter Closing compare_rule Obj1 Obj2 Char2 Char1 Recursive Convert C# to Prolog code: recursive ...
[ 0.01251220703125, 0.00518798828125, -0.004119873046875, 0.030029296875, 0.00970458984375, 0.00732421875, -0.0027313232421875, 0.0234375, 0.0201416015625, -0.01263427734375, -0.00060272216796875, 0.00153350830078125, -0.00555419921875, 0.0177001953125, 0.037353515625, -0.0245361328125, ...
[ 1657, 11549, 313, 4904, 47, 1250, 4867, 18151, 195625, 5844, 12960, 40956, 3742, 502, 759, 46471, 75161, 39659, 84068, 5442, 71723, 28848, 108210, 51053, 69101, 882, 3545, 170, 418, 304, 21656, 48650, 105216, 3115, 2967, 10846, 4568, 11389, ...
[ 0.03558349609375, 0.1453857421875, 0.0267181396484375, 0.202880859375, 0.0780029296875, 0.1654052734375, 0.225341796875, 0.149169921875, 0.2080078125, 0.129638671875, 0.1683349609375, 0.174072265625, 0.1148681640625, 0.145263671875, 0.0166778564453125, 0.03887939453125, 0.0927734375,...
embed
8766605_c0
8766605
prolog
0
Title: Prolog get string input from users and avoiding program termination in case of faulty input Problem title: Prolog get string input from users and avoiding program termination in case of faulty input Tags: shell, prolog, input, exception, dcg Problem: Prolog get string input from users and avoiding program termin...
Prolog get string input from users and avoiding program termination in case of faulty input Prolog get string input from users and avoiding program termination in case of faulty input shell prolog input exception dcg users Prolog Prolog get string input from users and avoiding program termination in case of faulty inpu...
[ -0.000732421875, 0.019775390625, -0.006866455078125, 0.0157470703125, -0.01055908203125, 0.0205078125, 0.0152587890625, -0.0086669921875, -0.01226806640625, -0.04052734375, 0.012939453125, -0.0020904541015625, -0.03369140625, 0.000042438507080078125, 0.01092529296875, 0.000701904296875...
[ 1250, 4867, 2046, 79315, 107730, 1295, 72095, 71864, 1528, 29527, 7225, 193857, 53, 128019, 502, 131527, 104, 238, 177, 31577, 33022, 8781, 23, 82424, 41, 1294, 38937, 12301, 11583, 6626, 37348, 1884, 103608, 831, 4734, 30957, 69407, 144570, ...
[ 0.18603515625, 0.262939453125, 0.075927734375, 0.2332763671875, 0.2283935546875, 0.12353515625, 0.19384765625, 0.1304931640625, 0.1302490234375, 0.14892578125, 0.0902099609375, 0.1551513671875, 0.044464111328125, 0.2197265625, 0.160888671875, 0.1766357421875, 0.007476806640625, 0.0...
embed
61145893_c0
61145893
prolog
0
Title: calculate the s-number for a natural number using Prolog Problem title: calculate the s-number for a natural number using Prolog Tags: prolog, successor-arithmetics Problem: calculate the s-number for a natural number using Prolog I am a total novice to Prolog and still am getting used to its logic. I have a tas...
calculate the s-number for a natural number using Prolog calculate the s-number for a natural number using Prolog prolog successor-arithmetics Prolog s2nat Number NewNumber calculate the s-number for a natural number using Prolog I am a total novice to Prolog and still am getting used to its logic. I have a task to cre...
[ 0.00823974609375, 0.0111083984375, -0.0047607421875, -0.003936767578125, -0.006805419921875, 0.003204345703125, 0.0086669921875, 0.008056640625, 0.0185546875, -0.01373291015625, 0.0162353515625, -0.006988525390625, -0.0185546875, 0.007659912109375, 0.02978515625, 0.0150146484375, 0.0...
[ 74481, 91, 9, 2606, 1297, 100, 6083, 14012, 17368, 1250, 4867, 502, 39457, 42, 8962, 304, 7695, 103332, 2356, 18444, 26278, 67, 3622, 95968, 62775, 66211, 28282, 32354, 15504, 294, 22925, 105274, 757, 2806, 106, 177609, 116, 7, 90791, 10,...
[ 0.1710205078125, 0.1881103515625, 0.084716796875, 0.2037353515625, 0.1568603515625, 0.0570068359375, 0.1968994140625, 0.1964111328125, 0.030487060546875, 0.1553955078125, 0.2213134765625, 0.106201171875, 0.0887451171875, 0.013092041015625, 0.03497314453125, 0.1317138671875, 0.2139892...
embed
60958995_c0
60958995
prolog
0
Title: What does this predicate do? Problem title: What does this predicate do? Tags: prolog Problem: What does this predicate do? This Prolog predicate, I believe, is meant to take a string, which is expressed as a list, a translate it into the accepting language of an fsm. This comes from my AI course, which does eve...
What does this predicate do? What does this predicate do? prolog What str2fsm Trans Last More LastSoFar TransSoFar What does this predicate do? This Prolog predicate, I believe, is meant to take a string, which is expressed as a list, a translate it into the accepting language of an fsm. This comes from my AI course, w...
[ 0.0206298828125, -0.009521484375, 0.00439453125, 0.0162353515625, 0.00970458984375, 0.0286865234375, -0.010986328125, -0.00933837890625, 0.01275634765625, -0.0028228759765625, 0.033935546875, -0.01220703125, -0.00653076171875, -0.005126953125, -0.0093994140625, -0.003021240234375, 0....
[ 4865, 14602, 903, 1653, 2063, 67, 54, 502, 4867, 7704, 304, 17447, 39, 11062, 21672, 5455, 8912, 80908, 3293, 1250, 18822, 131148, 47, 5646, 79315, 36510, 237, 5303, 3900, 19309, 26946, 46876, 1238, 7, 38730, 15411, 26818, 122446, 18151, ...
[ 0.1129150390625, 0.09527587890625, 0.143798828125, 0.19873046875, 0.2196044921875, 0.1180419921875, 0.1424560546875, 0.123291015625, 0.2464599609375, 0.1500244140625, 0.1387939453125, 0.0989990234375, 0.1519775390625, 0.2088623046875, 0.17041015625, 0.132080078125, 0.06695556640625, ...
embed
65922194_c0
65922194
prolog
0
Title: find biggest interval in a list of sublists (these sublists have 2 elements) Problem title: find biggest interval in a list of sublists (these sublists have 2 elements) Tags: prolog Problem: find biggest interval in a list of sublists (these sublists have 2 elements) i have this exercise where i get a list of su...
find biggest interval in a list of sublists (these sublists have 2 elements) find biggest interval in a list of sublists (these sublists have 2 elements) prolog biggest_interval Answer Biggest Y-X find biggest interval in a list of sublists (these sublists have 2 elements) i have this exercise where i get a list of sub...
[ -0.006927490234375, -0.0059814453125, 0.028076171875, 0.01904296875, -0.0152587890625, 0.0113525390625, 0.00982666015625, -0.005706787109375, 0.01141357421875, 0.002288818359375, 0.02099609375, 0.004608154296875, -0.01324462890625, -0.00665283203125, 0.015625, 0.007171630859375, 0.00...
[ 7413, 129058, 51514, 23, 5303, 1614, 6562, 7, 116, 80854, 502, 4867, 10433, 1405, 130373, 175737, 525, 990, 9, 1542, 184, 765, 81979, 418, 1723, 76172, 304, 90173, 33636, 14, 3444, 30646, 1632, 566, 20594, 44691, 9790, 11675, 133063, 1354...
[ 0.1390380859375, 0.2457275390625, 0.3193359375, 0.0643310546875, 0.170166015625, 0.2159423828125, 0.2347412109375, 0.007049560546875, 0.154052734375, 0.19287109375, 0.1114501953125, 0.169189453125, 0.19091796875, 0.19482421875, 0.029937744140625, 0.160400390625, 0.09912109375, 0.15...
embed
27246250_c0
27246250
prolog
0
Title: Why does this Prolog code not run? Problem title: Why does this Prolog code not run? Tags: prolog, recursion Problem: Why does this Prolog code not run? I have written the following code to replace all occurrences of a given element in a list, with another specified value. Here's my code: substitute(X, Y, [], []...
Why does this Prolog code not run? Why does this Prolog code not run? prolog recursion Why Prolog Why does this Prolog code not run? I have written the following code to replace all occurrences of a given element in a list, with another specified value. Here's my code: I am trying to call it like this in GNU Prolog: wh...
[ -0.00531005859375, 0.01904296875, 0.02734375, 0.005645751953125, 0.00543212890625, 0.01513671875, -0.0264892578125, 0.00150299072265625, 0.0031585693359375, 0.03125, 0.00799560546875, -0.007293701171875, -0.0244140625, -0.0142822265625, 0.027099609375, -0.00014495849609375, 0.0334472...
[ 44084, 14602, 903, 1250, 4867, 18151, 959, 11675, 502, 195625, 1830, 59121, 25632, 91995, 756, 74918, 42, 69098, 34475, 12830, 5303, 678, 15700, 58735, 34292, 31577, 11782, 165132, 44691, 3688, 1957, 37397, 10336, 14858, 1193, 140992, 990, 46...
[ 0.1337890625, 0.10491943359375, 0.115234375, 0.2110595703125, 0.250244140625, 0.2125244140625, 0.1856689453125, 0.1871337890625, 0.1734619140625, 0.2314453125, 0.1004638671875, 0.0146026611328125, 0.04443359375, 0.1793212890625, 0.10748291015625, 0.1151123046875, 0.1005859375, 0.09...
embed
50276580_c0
50276580
prolog
0
Title: knowledge base transitivity rule Problem title: knowledge base transitivity rule Tags: prolog Problem: knowledge base transitivity rule I have this knowledge base: implements(expression, funcall). implements(expression, identifier). implements(specialForm, conditional). implements(literal, boole). extends(expres...
knowledge base transitivity rule knowledge base transitivity rule prolog knowledge base transitivity rule I have this knowledge base: the deps method just check if the 2 values extends, implements, or has one another. The depends method is to check for dependencies where there is more than 1 link required. For example,...
[ 0.002685546875, -0.0223388671875, 0.0118408203125, 0.0218505859375, 0.0031280517578125, 0.01177978515625, -0.0281982421875, 0.00133514404296875, 0.006683349609375, -0.032470703125, 0.0260009765625, 0.0125732421875, -0.003631591796875, 0.02685546875, 0.00592041015625, 0.01025390625, 0...
[ 51359, 3647, 62621, 54613, 79986, 502, 4867, 8, 6423, 55300, 12765, 2174, 116, 142424, 65042, 29479, 1556, 15700, 56566, 7, 83, 42548, 117538, 1286, 106, 3126, 56065, 337, 16836, 5608, 108750, 125195, 1284, 11782, 32354, 142484, 13, 204629, ...
[ 0.1502685546875, 0.1895751953125, 0.2001953125, 0.1165771484375, 0.1461181640625, 0.10406494140625, 0.1524658203125, 0.2191162109375, 0.2393798828125, 0.157958984375, 0.1572265625, 0.0252227783203125, 0.080810546875, 0.1402587890625, 0.132080078125, 0.126708984375, 0.0209503173828125...
embed
60817726_c0
60817726
prolog
0
Title: Prolog office puzzle Problem title: Prolog office puzzle Tags: zebra-puzzle, typeerror, prolog, clpfd Problem: Prolog office puzzle I'm attempting to do a Prolog assignment for school, and basically it's trying to find out who has what office. The question is: Hunter, Laura, Jim, Sally, and Jack work in the same...
Prolog office puzzle Prolog office puzzle zebra-puzzle typeerror prolog clpfd Prolog type_error fd_evaluable Laura Sally Hunter Jim Jack Jim-Jack Jim-Laura Prolog office puzzle I'm attempting to do a Prolog assignment for school, and basically it's trying to find out who has what office. The question is: Hunter, Laura,...
[ 0.0034942626953125, -0.00081634521484375, -0.00970458984375, 0.01031494140625, -0.016357421875, 0.00775146484375, -0.0189208984375, 0.00799560546875, 0.0084228515625, -0.0247802734375, -0.00225830078125, -0.0145263671875, 0.02978515625, -0.00714111328125, 0.016357421875, 0.015869140625...
[ 1250, 4867, 23179, 104192, 116232, 1766, 13894, 133, 10644, 188800, 502, 39557, 71, 159258, 2661, 41193, 6565, 538, 134327, 41994, 21763, 9, 176769, 2729, 3168, 81887, 95486, 100, 10696, 4, 198343, 7, 31577, 47, 7413, 1810, 2750, 1556, 2367...
[ 0.1844482421875, 0.269775390625, 0.3046875, 0.21044921875, 0.169189453125, 0.09661865234375, 0.126708984375, 0.0660400390625, 0.150634765625, 0.1951904296875, 0.14404296875, 0.0177459716796875, 0.08184814453125, 0.10748291015625, 0.0499267578125, 0.253662109375, 0.1873779296875, 0....
embed
12733874_c0
12733874
prolog
0
Title: Read input in prolog and print result Problem title: Read input in prolog and print result Tags: prolog, dcg Problem: Read input in prolog and print result I am learning Prolog ideas and here is what I want to practice: I want to write a Prolog program that can work like this: ?- input([apple,is,fruit]). ?- inpu...
Read input in prolog and print result Read input in prolog and print result prolog dcg Read Yes Apple Read input in prolog and print result I am learning Prolog ideas and here is what I want to practice: I want to write a Prolog program that can work like this: And when I was trying to implement this program, I got som...
[ -0.001953125, 0.00150299072265625, 0.0033111572265625, 0.0198974609375, -0.0012054443359375, 0.0289306640625, 0.005218505859375, -0.006622314453125, -0.0004329681396484375, -0.043212890625, -0.0030059814453125, -0.004486083984375, -0.042724609375, -0.00738525390625, 0.0220947265625, 0....
[ 4764, 107730, 23, 502, 4867, 136, 28412, 16750, 104, 238, 177, 32635, 4129, 52080, 1250, 25647, 41361, 3444, 33022, 1528, 4488, 1884, 903, 29479, 2967, 11814, 18151, 12301, 157167, 17721, 17582, 16865, 35782, 55681, 46312, 80234, 4677, 1810, ...
[ 0.212890625, 0.250732421875, 0.07861328125, 0.1658935546875, 0.2222900390625, 0.06964111328125, 0.1939697265625, 0.1859130859375, 0.014404296875, 0.02691650390625, 0.0526123046875, 0.1468505859375, 0.2138671875, 0.03277587890625, 0.1439208984375, 0.054962158203125, 0.08349609375, 0...
embed
41565179_c0
41565179
prolog
0
Title: Correct way of writing recursive functions in CLP(R) with Prolog Problem title: Correct way of writing recursive functions in CLP(R) with Prolog Tags: prolog, clp, clpr, recursion Problem: Correct way of writing recursive functions in CLP(R) with Prolog I am very confused in how CLP works in Prolog. Not only do ...
Correct way of writing recursive functions in CLP(R) with Prolog Correct way of writing recursive functions in CLP(R) with Prolog prolog clp clpr recursion Correct CLP Prolog PrevN NewF Correct way of writing recursive functions in CLP(R) with Prolog I am very confused in how CLP works in Prolog. Not only do I find it ...
[ -0.003082275390625, 0.002349853515625, 0.01397705078125, 0.0015869140625, 0.01361083984375, 0.00726318359375, 0.01239013671875, -0.01324462890625, -0.00087738037109375, -0.041015625, 0.00579833984375, 0, -0.017578125, 0.00439453125, 0.03076171875, 0.006072998046875, -0.002685546875, ...
[ 46348, 15390, 3917, 32562, 195625, 5844, 32354, 313, 37352, 1052, 678, 1250, 4867, 23, 502, 33139, 254, 10287, 74717, 839, 2356, 919, 55681, 3642, 43240, 1957, 72382, 26785, 33022, 1653, 2063, 67, 25632, 3173, 5608, 18151, 50782, 158, 2816,...
[ 0.14892578125, 0.02349853515625, 0.1082763671875, 0.202392578125, 0.2491455078125, 0.1715087890625, 0.2015380859375, 0.07843017578125, 0.252685546875, 0.1326904296875, 0.080322265625, 0.170166015625, 0.2318115234375, 0.02069091796875, 0.1212158203125, 0.06494140625, 0.090087890625, ...
embed
30190855_c2
30190855
prolog
2
,R) :- R = [X,Y], succ(N1, N), between(0, N1, X), between(0, N1, Y). isMem(U, Dir, C, R) :- not(member(U,Dir)), R is C + 0. isMem(U, Dir, C, R) :- member(U,Dir), R is C + 1. stats(U,D,L,R) :- U is 0, D is 0, L is 0, R is 0, maze(Len,_,_,_,_), genXY(Len,Out), [H,T|_] = Out, cell(H,T,Dir,_), isMem(u, Dir, U, U1), %from h...
,R) :- R = [X,Y], succ(N1, N), between(0, N1, X), between(0, N1, Y). isMem(U, Dir, C, R) :- not(member(U,Dir)), R is C + 0. isMem(U, Dir, C, R) :- member(U,Dir), R is C + 1. stats(U,D,L,R) :- U is 0, D is 0, L is 0, R is 0, maze(Len,_,_,_,_), genXY(Len,Out), [H,T|_] = Out, cell(H,T,Dir,_), isMem(u, Dir, U, U1), %from h...
[ -0.0027008056640625, 0.0169677734375, 0.01495361328125, 0.01422119140625, -0.0135498046875, 0.01239013671875, 0.00982666015625, 0.01092529296875, 0.00628662109375, -0.023193359375, -0.0023345947265625, 0.01263427734375, 0.00982666015625, 0.003875732421875, 0.01434326171875, -0.00524902...
[ 4, 1052, 15772, 627, 2203, 1542, 1723, 166, 10060, 839, 418, 541, 17721, 2389, 1193, 990, 83, 594, 195, 1062, 19946, 313, 959, 27417, 397, 481, 997, 757, 32786, 615, 63841, 866, 345, 391, 339, 291, 731, 33, 9226, 143907, 79858, 841, ...
[ 0.05572509765625, 0.1939697265625, 0.0931396484375, 0.2261962890625, 0.07635498046875, 0.0687255859375, 0.1263427734375, 0.1168212890625, 0.1695556640625, 0.034271240234375, 0.0902099609375, 0.0338134765625, 0.1678466796875, 0.094970703125, 0.0391845703125, 0.0682373046875, 0.1788330...
embed
74896642_c0
74896642
prolog
0
Title: Splitting a list into two sublists with one having a predefined length Problem title: Splitting a list into two sublists with one having a predefined length Tags: list, prolog Problem: Splitting a list into two sublists with one having a predefined length I'm new to Prolog and I have this code. I would like it t...
Splitting a list into two sublists with one having a predefined length Splitting a list into two sublists with one having a predefined length list prolog Splitting list_length Splitting a list into two sublists with one having a predefined length I'm new to Prolog and I have this code. I would like it to split a list i...
[ -0.006591796875, 0.025390625, 0.0194091796875, 0.013671875, -0.01165771484375, 0.0020751953125, -0.00726318359375, 0.014404296875, 0.03125, -0.037841796875, 0.0103759765625, -0.007537841796875, -0.00494384765625, 0.02001953125, 0.024658203125, -0.002655029296875, 0.036865234375, 0....
[ 46474, 1916, 5303, 3934, 6626, 1614, 6562, 678, 19441, 1653, 13, 5983, 140909, 1632, 502, 4867, 23986, 3525, 1250, 18151, 1884, 65450, 5117, 111, 70541, 10588, 80854, 11675, 36917, 30646, 18499, 151206, 24638, 992, 69723, 50491, 30618, 17357,...
[ 0.21044921875, 0.06243896484375, 0.2098388671875, 0.132568359375, 0.1710205078125, 0.209716796875, 0.2296142578125, 0.006805419921875, 0.0352783203125, 0.1253662109375, 0.07269287109375, 0.1654052734375, 0.1636962890625, 0.032257080078125, 0.0977783203125, 0.1904296875, 0.09692382812...
embed
16306255_c1
16306255
prolog
1
Put the couple (nil,0) in the L1 head so I have that A=(nil,0) that represents an empty AVL tree: */ L1=[nil/0 |_], /* Call addavl passing as parameter the tree in the L1 head, the value to insert in the List Head and the head of L2 as the current new Tree- When the variable Tree is reached it represents the final AVL...
Put the couple (nil,0) in the L1 head so I have that A=(nil,0) that represents an empty AVL tree: */ L1=[nil/0 |_], /* Call addavl passing as parameter the tree in the L1 head, the value to insert in the List Head and the head of L2 as the current new Tree- When the variable Tree is reached it represents the final AVL...
[ -0.006622314453125, -0.0108642578125, -0.015869140625, -0.004241943359375, 0.000762939453125, 0.020263671875, -0.01080322265625, -0.004364013671875, 0.01422119140625, -0.0274658203125, 0.040771484375, 0.00099945068359375, 0.023193359375, 0.016845703125, 0.0029754638671875, -0.016967773...
[ 19577, 24941, 17324, 77495, 339, 418, 10336, 62, 33636, 201505, 92414, 53201, 107838, 26265, 11262, 50132, 171859, 34292, 183540, 32036, 44816, 304, 43581, 3525, 101344, 77336, 157578, 2704, 22288, 6562, 206019, 64194, 1653, 2063, 23972, 541, 7...
[ 0.0579833984375, 0.1890869140625, 0.1552734375, 0.133056640625, 0.0823974609375, 0.123046875, 0.18310546875, 0.1123046875, 0.189208984375, 0.1849365234375, 0.2232666015625, 0.1971435546875, 0.05584716796875, 0.14306640625, 0.038330078125, 0.1522216796875, 0.1334228515625, 0.1016845...
embed
46994024_c0
46994024
prolog
0
Title: Swi Prolog script not execute correctly Problem title: Swi Prolog script not execute correctly Tags: prolog, file Problem: Swi Prolog script not execute correctly I want to read a file and then write another according to the results of the first, but once I read the first file, the program terminates immediately...
Swi Prolog script not execute correctly Swi Prolog script not execute correctly prolog file Swi Prolog current_prolog_flag Argv result.txt Stream leer.pl menciones.txt InStream at_end_of_stream Swi Prolog script not execute correctly I want to read a file and then write another according to the results of the first, bu...
[ 0.0098876953125, -0.0017547607421875, -0.017822265625, 0.0072021484375, -0.01190185546875, 0.0030517578125, 0.016845703125, -0.006988525390625, -0.002349853515625, -0.037109375, 0.017578125, 0.0201416015625, -0.01373291015625, 0.0020294189453125, 0.0185546875, -0.00836181640625, 0.02...
[ 105432, 1250, 4867, 26499, 959, 71924, 13, 26785, 502, 11435, 43581, 3454, 190872, 1172, 334, 16750, 124326, 115061, 15361, 2424, 453, 3825, 360, 99, 3611, 4390, 86429, 3444, 12301, 33022, 15700, 59499, 50339, 24145, 5117, 1528, 121011, 90, ...
[ 0.2388916015625, 0.207763671875, 0.23583984375, 0.233642578125, 0.06146240234375, 0.1693115234375, 0.037628173828125, 0.15673828125, 0.1705322265625, 0.163818359375, 0.1290283203125, 0.16064453125, 0.152099609375, 0.05908203125, 0.118408203125, 0.1566162109375, 0.15478515625, 0.197...
embed
23856389_c0
23856389
prolog
0
Title: How to pattern match wrapped variables in PROLOG without the cut? Problem title: How to pattern match wrapped variables in PROLOG without the cut? Tags: pattern-matching, prolog-cut, prolog, wrapper, design-patterns Problem: How to pattern match wrapped variables in PROLOG without the cut? I have a very simple q...
How to pattern match wrapped variables in PROLOG without the cut? How to pattern match wrapped variables in PROLOG without the cut? pattern-matching prolog-cut prolog wrapper design-patterns How PROLOG Ident How to pattern match wrapped variables in PROLOG without the cut? I have a very simple question for Prolog progr...
[ -0.0032806396484375, 0.0118408203125, -0.00946044921875, -0.0029449462890625, 0.000522613525390625, -0.00653076171875, -0.024658203125, 0.001617431640625, 0.01312255859375, -0.0185546875, 0.00640869140625, 0.01263427734375, -0.0238037109375, -0.039794921875, 0.0164794921875, -0.0121459...
[ 11249, 103510, 14858, 137565, 20051, 77336, 23, 10514, 47510, 15490, 59226, 98753, 502, 4867, 19774, 1264, 4331, 4453, 22766, 71257, 7, 8781, 9655, 1250, 77848, 23468, 16981, 46876, 4358, 29481, 56037, 6626, 52895, 10298, 32354, 74481, 34292, ...
[ 0.04913330078125, 0.233642578125, 0.23876953125, 0.1971435546875, 0.1092529296875, 0.2420654296875, 0.036285400390625, 0.1571044921875, 0.242431640625, 0.1279296875, 0.1580810546875, 0.2039794921875, 0.1146240234375, 0.2239990234375, 0.09765625, 0.068115234375, 0.0906982421875, 0.0...
embed
16212047_c1
16212047
prolog
1
99) ? creep Call: (8) swap([3, 2, 1], _G478) ? creep Call: (9) 3@>2 ? creep Exit: (9) 3@>2 ? creep Exit: (8) swap([3, 2, 1], [2, 3, 1]) ? creep Call: (8) bubbleSort([2, 3, 1], _G399) ? creep Here call the first version of bubbleSort/2 on the original list. To be TRUE call the first version of swap/2 predicate that chec...
99) ? creep Call: (8) swap([3, 2, 1], _G478) ? creep Call: (9) 3@>2 ? creep Exit: (9) 3@>2 ? creep Exit: (8) swap([3, 2, 1], [2, 3, 1]) ? creep Call: (8) bubbleSort([2, 3, 1], _G399) ? creep Here call the first version of bubbleSort/2 on the original list. To be TRUE call the first version of swap/2 predicate that chec...
[ 0.0067138671875, 0.021240234375, -0.0018463134765625, 0.01544189453125, -0.01324462890625, 0.018310546875, -0.00775146484375, -0.0177001953125, -0.0001926422119140625, 0.03857421875, 0.005218505859375, 0.025390625, -0.01953125, -0.01220703125, 0.01373291015625, -0.00714111328125, 0.0...
[ 6, 101655, 705, 49512, 254, 26265, 10021, 202317, 132, 363, 116, 106, 4, 101, 724, 157376, 11438, 138, 981, 2740, 304, 5443, 217, 373, 73163, 158240, 11853, 11782, 70, 5117, 11389, 18, 12477, 7311, 5303, 717, 186, 149842, 647, 1653, 206...
[ 0.00653076171875, 0.301025390625, 0.09014892578125, 0.197509765625, 0.1619873046875, 0.17919921875, 0.16455078125, 0.2244873046875, 0.00146484375, 0.1065673828125, 0.04644775390625, 0.04193115234375, 0.0084228515625, 0.0204925537109375, 0.03680419921875, 0.2271728515625, 0.1495361328...
embed
55481112_c0
55481112
prolog
0
Title: How to find specific values in database using arithmetic operators Problem title: How to find specific values in database using arithmetic operators Tags: prolog Problem: How to find specific values in database using arithmetic operators I am having some problems with this base. I have no idea how to force answe...
How to find specific values in database using arithmetic operators How to find specific values in database using arithmetic operators prolog arithmetic How use_module How to find specific values in database using arithmetic operators I am having some problems with this base. I have no idea how to force answers other th...
[ 0.004486083984375, -0.00830078125, 0.002288818359375, 0.00457763671875, 0.0067138671875, 0.0196533203125, 0.0093994140625, 0.00299072265625, 0.00848388671875, -0.0281982421875, -0.0101318359375, -0.00408935546875, -0.0106201171875, -0.013427734375, -0.00799560546875, 0.01239013671875, ...
[ 11249, 7413, 29458, 142424, 23, 63399, 17368, 187, 8962, 282, 9523, 39933, 502, 4867, 4527, 83279, 47, 7, 44402, 3647, 6528, 37772, 35166, 9774, 8710, 68772, 9655, 705, 2258, 1542, 1723, 16093, 13821, 77495, 765, 2809, 22648, 100, 40715, ...
[ 0.046051025390625, 0.17431640625, 0.2296142578125, 0.21435546875, 0.0882568359375, 0.23291015625, 0.08953857421875, 0.045684814453125, 0.162353515625, 0.1168212890625, 0.10260009765625, 0.230712890625, 0.1405029296875, 0.2166748046875, 0.10504150390625, 0.1658935546875, 0.02189636230...
embed
6610343_c0
6610343
prolog
0
Title: Meta-interpreter for calculating max recursion depth Problem title: Meta-interpreter for calculating max recursion depth Tags: recursion, prolog, metaprogramming, prolog-metainterpreter Problem: Meta-interpreter for calculating max recursion depth I'm trying to write a meta-interpreter in prolog for prolog, whic...
Meta-interpreter for calculating max recursion depth Meta-interpreter for calculating max recursion depth recursion prolog metaprogramming prolog-metainterpreter Meta-interpreter Goal1 Goal2 Goal Body Meta-interpreter for calculating max recursion depth I'm trying to write a meta-interpreter in prolog for prolog, which...
[ 0.007110595703125, 0.0023345947265625, 0.020263671875, 0.019287109375, 0.002685546875, -0.00677490234375, -0.005035400390625, 0.005401611328125, 0.0022735595703125, -0.06298828125, 0.001922607421875, -0.0198974609375, -0.0234375, 0.00156402587890625, 0.037109375, -0.00921630859375, 0...
[ 36939, 158288, 56, 74481, 18389, 195625, 1830, 168867, 502, 4867, 23550, 28966, 35273, 2016, 289, 418, 304, 43960, 31577, 33022, 9, 30646, 111340, 157578, 1528, 18151, 20653, 54529, 14012, 756, 5844, 11782, 13695, 28560, 12638, 11651, 60875, ...
[ 0.2379150390625, 0.264892578125, 0.162109375, 0.1727294921875, 0.2047119140625, 0.2291259765625, 0.086669921875, 0.2437744140625, 0.1492919921875, 0.2037353515625, 0.2335205078125, 0.132568359375, 0.1448974609375, 0.1298828125, 0.04656982421875, 0.043853759765625, 0.07415771484375, ...
embed
23678104_c0
23678104
prolog
0
Title: Prolog - showBoard of a game Problem title: Prolog - showBoard of a game Tags: prolog Problem: Prolog - showBoard of a game I am trying to get a grid to show in prolog, rather than getting the listing of it. Here is what I have so far sB:- showBoard. showBoard(Row) :- setof([Row,Col,Object,Visible],square(Row,Co...
Prolog - showBoard of a game Prolog - showBoard of a game prolog Prolog Row Col Object Visible RList NextRow Prolog - showBoard of a game I am trying to get a grid to show in prolog, rather than getting the listing of it. Here is what I have so far This is something new that I am trying to test out to see if I can get ...
[ 0.0125732421875, 0.007659912109375, 0.01531982421875, 0.025146484375, -0.0045166015625, -0.021728515625, 0.0038604736328125, 0.0087890625, 0.00299072265625, -0.00872802734375, -0.0084228515625, 0.0130615234375, -0.01220703125, -0.012939453125, -0.0191650390625, -0.006500244140625, -0...
[ 1250, 4867, 7639, 12647, 5861, 111, 6712, 502, 96190, 11554, 134549, 582, 55356, 627, 154663, 4997, 12724, 434, 31577, 2046, 120067, 47, 23, 43257, 20949, 5303, 214, 2367, 765, 2060, 3034, 28560, 66211, 139392, 8305, 18151, 17368, 108047, 1...
[ 0.1790771484375, 0.267578125, 0.1864013671875, 0.1683349609375, 0.2100830078125, 0.1273193359375, 0.1126708984375, 0.158203125, 0.1827392578125, 0.0887451171875, 0.1583251953125, 0.161865234375, 0.1571044921875, 0.00848388671875, 0.1463623046875, 0.053009033203125, 0.080810546875, ...
embed
25309436_c0
25309436
prolog
0
Title: How to make an executable file in Prolog Problem title: How to make an executable file in Prolog Tags: prolog, swi-prolog, windows Problem: How to make an executable file in Prolog As the question suggest how i can make executable file from Prolog code. I am new to Prolog and learning myself about this programmi...
How to make an executable file in Prolog How to make an executable file in Prolog prolog swi-prolog windows How Prolog bigger.pl myapp.exe How to make an executable file in Prolog As the question suggest how i can make executable file from Prolog code. I am new to Prolog and learning myself about this programming. I ha...
[ 0.0240478515625, -0.000060558319091796875, 0.0013275146484375, 0.03662109375, -0.0289306640625, 0.0157470703125, -0.003265380859375, -0.0283203125, 0.00616455078125, -0.04638671875, 0.0025482177734375, 0.00106048583984375, 0.002105712890625, -0.0014495849609375, 0.01324462890625, 0.007...
[ 11249, 47, 3249, 142, 71924, 2886, 11435, 23, 1250, 4867, 502, 2452, 3454, 54825, 167785, 2424, 759, 9007, 46480, 42459, 3642, 17, 831, 1295, 18151, 3525, 56037, 8781, 57, 442, 237, 5, 74855, 22648, 391, 12, 5974, 65771, 14037, 183540, ...
[ 0.0576171875, 0.0382080078125, 0.146728515625, 0.0364990234375, 0.2286376953125, 0.18408203125, 0.192138671875, 0.1019287109375, 0.2052001953125, 0.279296875, 0.1640625, 0.14111328125, 0.143310546875, 0.09014892578125, 0.2685546875, 0.1837158203125, 0.09814453125, 0.18603515625, ...
embed
10057760_c0
10057760
prolog
0
Title: Prolog - recursive list building Problem title: Prolog - recursive list building Tags: prolog Problem: Prolog - recursive list building for a program I'm writing I need to make a list of lists, with pairs of numbers representing a product and sum of 2 given numbers. For now I have a function which I can specify ...
Prolog - recursive list building Prolog - recursive list building prolog Prolog Prolog - recursive list building for a program I'm writing I need to make a list of lists, with pairs of numbers representing a product and sum of 2 given numbers. For now I have a function which I can specify how many times I want to add a...
[ -0.0014190673828125, 0.038818359375, 0.00506591796875, 0.0089111328125, -0.01806640625, 0.0186767578125, -0.0242919921875, 0.01263427734375, 0.00836181640625, -0.0225830078125, 0.0247802734375, -0.01275634765625, -0.016845703125, -0.01202392578125, 0.016357421875, 0.000797271728515625,...
[ 1250, 4867, 195625, 5844, 5303, 33976, 502, 100, 1528, 32562, 3871, 3249, 80836, 101935, 33636, 12996, 10554, 116, 34475, 5036, 32354, 40140, 3642, 5941, 20028, 3444, 47, 15190, 71062, 123309, 765, 33306, 3229, 11675, 91, 418, 54753, 1542, ...
[ 0.1826171875, 0.2939453125, 0.2352294921875, 0.169921875, 0.23828125, 0.2139892578125, 0.1298828125, 0.045654296875, 0.1365966796875, 0.1468505859375, 0.08447265625, 0.06103515625, 0.1590576171875, 0.131103515625, 0.1522216796875, 0.1650390625, 0.1160888671875, 0.1173095703125, 0...
embed
27783125_c0
27783125
prolog
0
Title: Comparing PROLOG input to facts Problem title: Comparing PROLOG input to facts Tags: prolog Problem: Comparing PROLOG input to facts Say I have a list of PROLOG facts, which are Blog Post titles, the author, and the year they were written: blogpost('Title 1', 'author1' 2012). blogpost('Title 2', 'author1', 2011)...
Comparing PROLOG input to facts Comparing PROLOG input to facts prolog Comparing PROLOG Title author1 author2 Comparing PROLOG input to facts Say I have a list of PROLOG facts, which are Blog Post titles, the author, and the year they were written: I want to write a rule which has two parameters/inputs, the author, and...
[ 0.00138092041015625, 0.00077056884765625, 0.0174560546875, 0.0220947265625, -0.0087890625, 0.01153564453125, 0.00897216796875, 0.0003147125244140625, 0.0118408203125, -0.0032958984375, 0.004302978515625, 0.012451171875, -0.0166015625, -0.012939453125, 0.0036773681640625, 0.001686096191...
[ 113307, 214, 10514, 47510, 107730, 47, 15824, 502, 4867, 48962, 42179, 418, 304, 5303, 5061, 2795, 44759, 6602, 59121, 3444, 33022, 79986, 6626, 171859, 73, 7077, 30957, 5582, 7103, 58735, 30646, 29568, 37842, 41, 46572, 297, 46327, 1003, 5...
[ 0.1986083984375, 0.010833740234375, 0.1953125, 0.26318359375, 0.2225341796875, 0.110595703125, 0.21240234375, 0.146240234375, 0.1978759765625, 0.132568359375, 0.15771484375, 0.06591796875, 0.1126708984375, 0.058929443359375, 0.0848388671875, 0.0256500244140625, 0.0799560546875, 0.1...
embed
31021035_c0
31021035
prolog
0
Title: Prolog Does the order of recursion matter? Problem title: Prolog Does the order of recursion matter? Tags: memory-management, recursion, prolog, optimization Problem: Prolog Does the order of recursion matter? I have a question about the difference between two solutions to a problem. The problem asks to transfor...
Prolog Does the order of recursion matter? Prolog Does the order of recursion matter? memory-management recursion prolog optimization Prolog Does List Result Prolog Does the order of recursion matter? I have a question about the difference between two solutions to a problem. The problem asks to transform a list to a tr...
[ -0.00390625, 0.0036773681640625, 0.00726318359375, 0.0311279296875, -0.0198974609375, -0.0054931640625, -0.0233154296875, -0.0029144287109375, 0.0230712890625, -0.004058837890625, 0.0185546875, 0.00421142578125, -0.01092529296875, -0.0111083984375, 0.022216796875, 0.006622314453125, ...
[ 1250, 4867, 101790, 70, 12989, 111, 195625, 1830, 26866, 98323, 87140, 502, 87235, 32036, 126684, 9655, 60212, 17721, 6626, 51347, 47, 2967, 27198, 5303, 14617, 16336, 29806, 27117, 4173, 29954, 39531, 5908, 17932, 959, 64209, 184, 12477, 177...
[ 0.1676025390625, 0.252197265625, 0.062744140625, 0.004241943359375, 0.240234375, 0.092041015625, 0.244873046875, 0.1629638671875, 0.1907958984375, 0.119873046875, 0.10748291015625, 0.1102294921875, 0.169189453125, 0.1619873046875, 0.1805419921875, 0.00006103515625, 0.1080322265625, ...
embed
70130203_c0
70130203
prolog
0
Title: Evaluating a polynomial in prolog Problem title: Evaluating a polynomial in prolog Tags: prolog Problem: Evaluating a polynomial in prolog I am currently trying to get better using recursion in prolog. Im not sure why its a bit more difficult for me to grasp than other programming languages. To begin id like to ...
Evaluating a polynomial in prolog Evaluating a polynomial in prolog prolog Evaluating eval_term eval_poly Evaluating a polynomial in prolog I am currently trying to get better using recursion in prolog. Im not sure why its a bit more difficult for me to grasp than other programming languages. To begin id like to show m...
[ 0.004669189453125, 0.0191650390625, 0.0050048828125, 0.00689697265625, -0.011962890625, 0.0172119140625, 0.010986328125, -0.00457763671875, 0.01446533203125, -0.01806640625, 0.0291748046875, -0.00701904296875, -0.0032501220703125, -0.00225830078125, -0.00970458984375, 0.003814697265625...
[ 151228, 1916, 35874, 1687, 15403, 23, 502, 4867, 28, 1405, 32166, 135545, 11522, 195625, 1830, 1286, 34844, 56037, 46876, 18151, 50339, 2060, 165523, 720, 3647, 7225, 201505, 5303, 54744, 34292, 91995, 77336, 1542, 179140, 140992, 1723, 45646, ...
[ 0.1839599609375, 0.0237274169921875, 0.1650390625, 0.143798828125, 0.1317138671875, 0.01934814453125, 0.138916015625, 0.2265625, 0.052825927734375, 0.21484375, 0.154541015625, 0.2264404296875, 0.0413818359375, 0.144775390625, 0.08819580078125, 0.011993408203125, 0.0419921875, 0.031...
embed
34335880_c0
34335880
prolog
0
Title: How to create lists in prolog with size set by the user Problem title: How to create lists in prolog with size set by the user Tags: list, prolog Problem: How to create lists in prolog with size set by the user I am writing a game in Prolog. The game has a "board" of the form shown below and it has two lists of ...
How to create lists in prolog with size set by the user How to create lists in prolog with size set by the user list prolog How Initial black_army white_army Board How to create lists in prolog with size set by the user I am writing a game in Prolog. The game has a "board" of the form shown below and it has two lists o...
[ 0.0186767578125, -0.00982666015625, 0.02294921875, 0.0184326171875, -0.013671875, -0.0111083984375, 0.00970458984375, 0.0142822265625, 0.0184326171875, -0.0093994140625, 0.0017547607421875, 0.00096893310546875, 0.0002803802490234375, -0.00469970703125, 0.021484375, -0.000885009765625, ...
[ 11249, 28282, 5303, 7, 23, 502, 4867, 678, 13267, 5423, 390, 38937, 360, 1890, 22556, 147, 1176, 35011, 62554, 32562, 6712, 1250, 24351, 3173, 6626, 763, 7710, 45443, 188347, 611, 19069, 3444, 3249, 242554, 3229, 4034, 61924, 2967, 3917, ...
[ 0.0787353515625, 0.181396484375, 0.26220703125, 0.121337890625, 0.05419921875, 0.1593017578125, 0.2410888671875, 0.07958984375, 0.1900634765625, 0.146728515625, 0.067138671875, 0.166015625, 0.004852294921875, 0.08172607421875, 0.1171875, 0.11376953125, 0.0777587890625, 0.1412353515...
embed
7066634_c0
7066634
prolog
0
Title: Tell prolog to stop and start search with other possibilities Problem title: Tell prolog to stop and start search with other possibilities Tags: rubiks-cube, prolog Problem: Tell prolog to stop and start search with other possibilities I'm trying to solve the Rubik's cube with prolog, I've tried this: cubo_resue...
Tell prolog to stop and start search with other possibilities Tell prolog to stop and start search with other possibilities rubiks-cube prolog Tell cubo_resuelto OldState NewState move_list Move Tell prolog to stop and start search with other possibilities I'm trying to solve the Rubik's cube with prolog, I've tried th...
[ -0.00213623046875, -0.0036773681640625, 0.0072021484375, 0.017822265625, -0.01611328125, 0.004425048828125, -0.0079345703125, 0.00848388671875, 0.02099609375, -0.046630859375, 0.0023956298828125, 0.021728515625, 0.006256103515625, 0.01239013671875, 0.00958251953125, -0.004669189453125,...
[ 59488, 502, 4867, 7279, 4034, 33938, 678, 3789, 97370, 21922, 18070, 1010, 372, 314, 837, 20129, 188, 25074, 135206, 2356, 25813, 6562, 135828, 86869, 123099, 92, 37842, 35166, 9790, 1250, 997, 420, 112664, 14192, 7103, 201, 6713, 99, 18389...
[ 0.1551513671875, 0.1494140625, 0.2374267578125, 0.145751953125, 0.089111328125, 0.1885986328125, 0.0655517578125, 0.07958984375, 0.162353515625, 0.0526123046875, 0.111083984375, 0.114990234375, 0.1162109375, 0.1478271484375, 0.1119384765625, 0.10009765625, 0.02520751953125, 0.06225...
embed
71410425_c1
71410425
prolog
1
contraints are even and the equation simply works. But im facing cases where Teachers can not match the subject constraints. So if that happens, the code simply doesnt work. soln(X) :- X = [T1M, T1E, T1H, T2M, T2E, T2H, T3M, T3E, T3H], fd_domain(X, 0, 10), %% subject constraints T1M + T2M + T3M #= 6, T1E + T2E + T3E #...
contraints are even and the equation simply works. But im facing cases where Teachers can not match the subject constraints. So if that happens, the code simply doesnt work. soln(X) :- X = [T1M, T1E, T1H, T2M, T2E, T2H, T3M, T3E, T3H], fd_domain(X, 0, 10), %% subject constraints T1M + T2M + T3M #= 6, T1E + T2E + T3E #...
[ 0.001617431640625, 0.0032196044921875, -0.007659912109375, 0.0069580078125, -0.0036163330078125, -0.00066375732421875, -0.005401611328125, 0.00156402587890625, 0.005126953125, -0.03662109375, -0.01025390625, -0.0159912109375, 0.0137939453125, 0.0021209716796875, 0.00604248046875, 0.003...
[ 2304, 4288, 7, 621, 3853, 28, 5490, 2320, 42856, 43240, 4966, 566, 7808, 50218, 165136, 831, 959, 14858, 28368, 158, 2816, 2174, 96276, 18151, 22027, 18, 4488, 3115, 19, 1542, 15772, 1193, 418, 594, 647, 841, 304, 363, 56206, 757, 209, ...
[ 0.204833984375, 0.1710205078125, 0.049774169921875, 0.031341552734375, 0.1815185546875, 0.02508544921875, 0.2105712890625, 0.06195068359375, 0.113037109375, 0.135009765625, 0.05242919921875, 0.0187835693359375, 0.052337646484375, 0.060546875, 0.2286376953125, 0.0645751953125, 0.10778...
embed
52015019_c0
52015019
prolog
0
Title: ERROR: HRESULT: 0x8007007E System.IO.FileNotFoundException on Prolog and C# integration Problem title: ERROR: HRESULT: 0x8007007E System.IO.FileNotFoundException on Prolog and C# integration Tags: c%23, ffi, prolog, swi-prolog Problem: ERROR: HRESULT: 0x8007007E System.IO.FileNotFoundException on Prolog and C# i...
ERROR: HRESULT: 0x8007007E System.IO.FileNotFoundException on Prolog and C# integration ERROR: HRESULT: 0x8007007E System.IO.FileNotFoundException on Prolog and C# integration c%23 ffi prolog swi-prolog System.IO.FileNotFoundException Marshal.GetHRForLastWin32Error HRESULT uwe ERROR Prolog Exception LoadUnmanagedLibrar...
[ 0.0198974609375, 0.02099609375, -0.004486083984375, 0.006195068359375, -0.0299072265625, 0.0047607421875, 0.007232666015625, -0.0238037109375, 0.004486083984375, -0.054931640625, 0.0017852783203125, 0.0032958984375, -0.00182342529296875, 0.00830078125, 0.0203857421875, -0.0148315429687...
[ 151206, 24638, 34465, 82643, 757, 425, 10253, 15128, 966, 647, 12353, 17780, 174350, 122116, 27591, 7030, 19279, 63928, 1250, 4867, 136, 4904, 157353, 3742, 24500, 502, 91, 2452, 3454, 23342, 4200, 29562, 18537, 2729, 92049, 6460, 18468, 3664...
[ 0.125244140625, 0.033843994140625, 0.0601806640625, 0.0850830078125, 0.06988525390625, 0.02374267578125, 0.20703125, 0.1278076171875, 0.1170654296875, 0.1334228515625, 0.1231689453125, 0.17724609375, 0.1873779296875, 0.0882568359375, 0.087158203125, 0.04046630859375, 0.05874633789062...
embed
33259691_c0
33259691
prolog
0
Title: Remove both the value and all duplicates of that value in a list in prolog Problem title: Remove both the value and all duplicates of that value in a list in prolog Tags: prolog, prolog-dif, list Problem: Remove both the value and all duplicates of that value in a list in prolog I'm having some trouble removing ...
Remove both the value and all duplicates of that value in a list in prolog Remove both the value and all duplicates of that value in a list in prolog prolog prolog-dif list Remove Head Tail Out Remove both the value and all duplicates of that value in a list in prolog I'm having some trouble removing values from a list...
[ 0.0028533935546875, 0.01300048828125, 0.00701904296875, 0.00579833984375, -0.0283203125, 0.012451171875, -0.000637054443359375, 0.0111083984375, 0.01171875, -0.00469970703125, -0.00677490234375, 0.03564453125, 0.0184326171875, -0.0004520416259765625, -0.00183868408203125, 0.02770996093...
[ 181139, 15044, 34292, 136, 756, 171763, 1636, 23, 5303, 502, 4867, 450, 428, 420, 44816, 1218, 379, 13538, 63134, 49146, 6496, 142424, 1295, 104988, 3444, 15190, 13695, 110, 87388, 10588, 7398, 8705, 135179, 186351, 47, 111, 2856, 176377, 8...
[ 0.169921875, 0.1322021484375, 0.204345703125, 0.0699462890625, 0.0858154296875, 0.232666015625, 0.136962890625, 0.04986572265625, 0.20556640625, 0.16015625, 0.2320556640625, 0.0149993896484375, 0.05133056640625, 0.10015869140625, 0.1473388671875, 0.1033935546875, 0.1185302734375, 0...
embed
64934418_c0
64934418
prolog
0
Title: Prolog: Can assign a valiable on a value based on this matching condition (ANAGRAM) Problem title: Prolog: Can assign a valiable on a value based on this matching condition (ANAGRAM) Tags: prolog Problem: Prolog: Can assign a valiable on a value based on this matching condition (ANAGRAM) Here is a prolog program...
Prolog: Can assign a valiable on a value based on this matching condition (ANAGRAM) Prolog: Can assign a valiable on a value based on this matching condition (ANAGRAM) prolog Prolog Can ANAGRAM atom_chars assign_map Prolog: Can assign a valiable on a value based on this matching condition (ANAGRAM) Here is a prolog pro...
[ -0.006988525390625, -0.0027313232421875, -0.0089111328125, 0.006622314453125, -0.0283203125, 0.01019287109375, 0.007049560546875, 0.0255126953125, 0.01141357421875, -0.00122833251953125, 0.01544189453125, 0.012939453125, 0.010498046875, 0.0240478515625, -0.00335693359375, 0.00236511230...
[ 1250, 4867, 4171, 95486, 17128, 2886, 98, 34292, 35509, 903, 14858, 214, 35431, 12048, 724, 35812, 502, 14368, 23613, 34627, 9254, 62346, 11853, 1528, 831, 3126, 14012, 1632, 5303, 31330, 15700, 19441, 19069, 107013, 27781, 2565, 63844, 2789,...
[ 0.1884765625, 0.271484375, 0.1099853515625, 0.2369384765625, 0.1827392578125, 0.18798828125, 0.09173583984375, 0.1839599609375, 0.1248779296875, 0.07220458984375, 0.1734619140625, 0.0765380859375, 0.1812744140625, 0.1220703125, 0.0819091796875, 0.2266845703125, 0.1632080078125, 0.1...
embed
72275137_c0
72275137
prolog
0
Title: Can't figure out how to get logical answer I'm looking for in Prolog Problem title: Can't figure out how to get logical answer I'm looking for in Prolog Tags: prolog, zebra-puzzle Problem: Can't figure out how to get logical answer I'm looking for in Prolog I'm trying to learn swi-prolog and ...
Can't figure out how to get logical answer I'm looking for in Prolog Can't figure out how to get logical answer I'm looking for in Prolog prolog zebra-puzzle Can Prolog Can't figure out how to get logical answer I'm looking for in Prolog I'm trying to learn swi-prolog and I'm struggling with the fol...
[ 0.0106201171875, 0.033935546875, -0.00112152099609375, 0.0240478515625, -0.01434326171875, 0.00811767578125, -0.0244140625, 0.00982666015625, 0.0032958984375, -0.02978515625, 0.00537109375, -0.0033416748046875, -0.0017852783203125, -0.0086669921875, -0.0024566650390625, 0.0185546875, ...
[ 4171, 3768, 18, 26366, 1810, 3642, 2046, 62775, 289, 35166, 16487, 100, 23, 1250, 4867, 502, 116232, 1766, 13894, 133, 91, 2452, 3454, 237875, 9655, 179481, 4, 23213, 136, 4267, 299, 35187, 290, 6133, 333, 25443, 48909, 76726, 84740, 1560...
[ 0.07757568359375, 0.06805419921875, 0.054931640625, 0.13037109375, 0.09735107421875, 0.05023193359375, 0.1226806640625, 0.2137451171875, 0.1785888671875, 0.2303466796875, 0.08245849609375, 0.09112548828125, 0.0677490234375, 0.1646728515625, 0.234619140625, 0.1400146484375, 0.18920898...
embed
22525332_c0
22525332
prolog
0
Title: Prolog divide a list of numbers into two equal parts Problem title: Prolog divide a list of numbers into two equal parts Tags: list, partition, sum, prolog Problem: Prolog divide a list of numbers into two equal parts Hi I want to write a function called perfect_part that takes a list of integers as input and if...
Prolog divide a list of numbers into two equal parts Prolog divide a list of numbers into two equal parts list partition sum prolog Prolog perfect_part Total Sum1 Nums Left Right Prolog divide a list of numbers into two equal parts Hi I want to write a function called perfect_part that takes a list of integers as input...
[ -0.004913330078125, 0.01318359375, 0.0247802734375, 0.0004730224609375, -0.005584716796875, 0.0179443359375, -0.007354736328125, 0.00885009765625, 0.01513671875, 0.0028076171875, 0.01190185546875, 0.0115966796875, 0.006500244140625, 0.006011962890625, 0.0137939453125, -0.0067138671875,...
[ 1250, 4867, 101637, 5303, 101935, 3934, 6626, 105950, 63920, 2878, 10554, 502, 15787, 17365, 33867, 36335, 418, 52782, 636, 2480, 90911, 2673, 3444, 33022, 32354, 454, 51776, 892, 26255, 237, 107730, 7722, 30646, 1614, 6562, 124901, 66161, 23...
[ 0.1759033203125, 0.2431640625, 0.1708984375, 0.1593017578125, 0.1461181640625, 0.1514892578125, 0.1610107421875, 0.1583251953125, 0.182861328125, 0.1295166015625, 0.1951904296875, 0.1397705078125, 0.2032470703125, 0.249755859375, 0.10345458984375, 0.1968994140625, 0.012939453125, 0...
embed
67091708_c0
67091708
prolog
0
Title: is there a more succint way to evaluate something explicitly in prolog? Problem title: is there a more succint way to evaluate something explicitly in prolog? Tags: prolog Problem: is there a more succint way to evaluate something explicitly in prolog? I'm trying to learn prolog and as an exercise I tried implem...
is there a more succint way to evaluate something explicitly in prolog? is there a more succint way to evaluate something explicitly in prolog? prolog e_gcd LX-Q LY-Q is there a more succint way to evaluate something explicitly in prolog? I'm trying to learn prolog and as an exercise I tried implementing the Extended e...
[ -0.00174713134765625, 0.0302734375, 0.0299072265625, -0.0201416015625, -0.00133514404296875, -0.007232666015625, -0.0118408203125, -0.005584716796875, 0.017333984375, -0.01507568359375, 0.017822265625, 0.0038604736328125, 0.013427734375, -0.03515625, 0.003570556640625, -0.0026550292968...
[ 1286, 91, 45740, 660, 3917, 151575, 13, 143726, 538, 502, 4867, 9844, 23, 28, 71574, 103911, 2737, 19917, 29479, 5443, 35548, 34937, 130265, 109847, 2783, 18337, 6002, 86531, 18151, 276, 83, 62, 2811, 335, 571, 76175, 1723, 45234, 91853, ...
[ 0.1026611328125, 0.042144775390625, 0.1553955078125, 0.1368408203125, 0.06719970703125, 0.195068359375, 0.0787353515625, 0.1571044921875, 0.010986328125, 0.152099609375, 0.222412109375, 0.052978515625, 0.0299530029296875, 0.040771484375, 0.13525390625, 0.101318359375, 0.117431640625,...
embed
74320950_c0
74320950
prolog
0
Title: Remove duplicates in a list without using built-in predicates and maintaining order Problem title: Remove duplicates in a list without using built-in predicates and maintaining order Tags: prolog Problem: Remove duplicates in a list without using built-in predicates and maintaining order I am new to prolog and w...
Remove duplicates in a list without using built-in predicates and maintaining order Remove duplicates in a list without using built-in predicates and maintaining order prolog built-in Remove is_member remove_duplicates List Set help_remove_duplicate Acc Remove duplicates in a list without using built-in predicates and ...
[ 0.00640869140625, 0.0211181640625, 0.02294921875, 0.0064697265625, -0.0164794921875, 0.016845703125, -0.004638671875, 0.015869140625, -0.00982666015625, -0.0224609375, 0.00927734375, 0.0123291015625, 0.007537841796875, 0.006103515625, -0.00677490234375, 0.015380859375, 0.0087890625, ...
[ 181139, 171763, 1636, 23, 5303, 15490, 17368, 88303, 73, 1653, 2063, 76104, 12989, 502, 4867, 83, 39, 27417, 87388, 693, 52721, 32036, 19943, 4358, 26973, 272, 29899, 136, 3444, 62775, 35971, 61998, 44816, 58745, 9874, 379, 183278, 1290, 31...
[ 0.187255859375, 0.282470703125, 0.17236328125, 0.099365234375, 0.21923828125, 0.09814453125, 0.06365966796875, 0.1234130859375, 0.0799560546875, 0.144775390625, 0.1656494140625, 0.144775390625, 0.1817626953125, 0.12158203125, 0.1922607421875, 0.081787109375, 0.028839111328125, 0.17...
embed
40524058_c1
40524058
prolog
1
conservative, 4 liberal % golf ranking is a range 1 .. 4, 1 for the best rank, 4 for the worst % solutions(L) :- L = [ [brown, _, _, _, _, _], [clark, _, _, _, _, _], [jones, _, _, _, _, _], [smith, _, _, _, _, _] ], clue1(L), clue2(L), clue3(L), clue4(L), constrained_profession(L), constrained_age(L), constrained_inc...
conservative, 4 liberal % golf ranking is a range 1 .. 4, 1 for the best rank, 4 for the worst % solutions(L) :- L = [ [brown, _, _, _, _, _], [clark, _, _, _, _, _], [jones, _, _, _, _, _], [smith, _, _, _, _, _] ], clue1(L), clue2(L), clue3(L), clue4(L), constrained_profession(L), constrained_age(L), constrained_inc...
[ -0.00093841552734375, 0.00193023681640625, -0.00396728515625, 0.0216064453125, -0.01434326171875, 0.005279541015625, -0.037109375, -0.0050048828125, 0.0108642578125, -0.01116943359375, 0.0021820068359375, 0.0194091796875, 0.0306396484375, 0.004669189453125, 0.0081787109375, 0.006988525...
[ 17467, 4935, 4, 201, 26697, 1745, 19657, 77918, 83, 10, 37457, 106, 1468, 100, 2965, 30648, 70, 130481, 51347, 866, 15772, 339, 2203, 140773, 19, 18347, 7190, 4348, 90, 153144, 29786, 418, 6, 617, 158, 9297, 141532, 45738, 170272, 120291,...
[ 0.232421875, 0.1475830078125, 0.001190185546875, 0.1865234375, 0.296630859375, 0.1524658203125, 0.260986328125, 0.279296875, 0.058258056640625, 0.005126953125, 0.1781005859375, 0.04254150390625, 0.02996826171875, 0.0283355712890625, 0.1138916015625, 0.21044921875, 0.012237548828125, ...
embed
28155107_c0
28155107
prolog
0
Title: How to check if a list is a non-empty sublist of another list in Prolog Problem title: How to check if a list is a non-empty sublist of another list in Prolog Tags: sublist, prolog Problem: How to check if a list is a non-empty sublist of another list in Prolog I am trying to create an included_list(X,Y) term th...
How to check if a list is a non-empty sublist of another list in Prolog How to check if a list is a non-empty sublist of another list in Prolog sublist prolog How Prolog included_list check_x Tail Head HeadX TailX sublist1 XSS How to check if a list is a non-empty sublist of another list in Prolog I am trying to create...
[ -0.000568389892578125, 0.0027923583984375, 0.01495361328125, 0.0103759765625, -0.00982666015625, 0.01422119140625, -0.017578125, 0.000759124755859375, 0.014892578125, 0.01348876953125, 0.03271484375, 0.00860595703125, -0.0203857421875, 0.007476806640625, 0.008544921875, 0.0142822265625...
[ 12765, 2174, 5303, 83, 351, 33548, 939, 1614, 6562, 111, 15700, 1250, 4867, 502, 99201, 425, 1218, 44816, 1542, 379, 15268, 28282, 1723, 13579, 1193, 990, 175199, 80854, 32316, 114689, 201505, 3611, 39563, 15044, 29568, 82449 ]
[ 0.1805419921875, 0.064453125, 0.188720703125, 0.03704833984375, 0.1309814453125, 0.132080078125, 0.081787109375, 0.179443359375, 0.1900634765625, 0.02288818359375, 0.07464599609375, 0.1143798828125, 0.1839599609375, 0.052764892578125, 0.1224365234375, 0.02716064453125, 0.025146484375...
embed
17722071_c0
17722071
prolog
0
Title: output routes and avoid the routes which user input in prolog Problem title: output routes and avoid the routes which user input in prolog Tags: path, prolog Problem: output routes and avoid the routes which user input in prolog output prolog list path and avoid certain routes which user input in prolog. hi ,I'm...
output routes and avoid the routes which user input in prolog output routes and avoid the routes which user input in prolog path prolog z11 z12 z22 exit3 z21 exit2 exit1 output routes and avoid the routes which user input in prolog output prolog list path and avoid certain routes which user input in prolog. hi ,I'm wor...
[ -0.009765625, -0.01531982421875, 0.0047607421875, 0.020751953125, -0.018310546875, -0.0048828125, -0.004364013671875, 0.01336669921875, 0.0029449462890625, -0.037841796875, 0.0164794921875, 0.00836181640625, -0.000225067138671875, 0.0179443359375, 0.00714111328125, -0.003143310546875, ...
[ 140992, 36439, 7, 136, 71864, 38937, 107730, 502, 4867, 60875, 97, 1662, 1530, 4015, 82230, 363, 3117, 5303, 1274, 20697, 13452, 33976, 70541, 75778, 12638, 20288, 3444, 166499, 67, 3395, 8305, 47, 2347, 6626, 171859, 204228, 297, 83, 18979...
[ 0.2440185546875, 0.23779296875, 0.030120849609375, 0.02099609375, 0.2247314453125, 0.1427001953125, 0.1968994140625, 0.161376953125, 0.202392578125, 0.1417236328125, 0.09619140625, 0.154052734375, 0.1650390625, 0.149658203125, 0.190185546875, 0.0723876953125, 0.125244140625, 0.1002...
embed
74468172_c0
74468172
prolog
0
Title: Determine if the string contains numeric characters. If there are, then display them on the screen Problem title: Determine if the string contains numeric characters. If there are, then display them on the screen Tags: prolog Problem: Determine if the string contains numeric characters. If there are, then displa...
Determine if the string contains numeric characters. If there are, then display them on the screen Determine if the string contains numeric characters. If there are, then display them on the screen prolog Determine word_digits present_digits Enter Digits Determine if the string contains numeric characters. If there are...
[ -0.00360107421875, -0.01141357421875, 0.00182342529296875, 0.02490234375, -0.0245361328125, 0.043212890625, 0.0001964569091796875, -0.0081787109375, 0.00640869140625, -0.0012969970703125, -0.00823974609375, -0.00189208984375, -0.02587890625, -0.010498046875, 0.00872802734375, 0.0137329...
[ 262, 30524, 13, 2174, 79315, 70541, 7, 54744, 238, 124850, 4263, 2685, 621, 44116, 49119, 502, 4867, 2565, 4803, 14481, 13379, 60816, 51174, 933, 2856, 98, 18, 28219, 15400, 442, 22027, 4488, 3871, 12301, 70, 38937, 136, 12765, 101935, 28...
[ 0.0966796875, 0.1629638671875, 0.08538818359375, 0.115234375, 0.2410888671875, 0.1431884765625, 0.041259765625, 0.1702880859375, 0.10107421875, 0.192138671875, 0.027679443359375, 0.1038818359375, 0.03192138671875, 0.1329345703125, 0.1220703125, 0.111328125, 0.1453857421875, 0.09704...
embed
29380105_c0
29380105
prolog
0
Title: Prolog - Binary addition? Problem title: Prolog - Binary addition? Tags: addition, binary, prolog Problem: Prolog - Binary addition? I need to write a Prolog predicate which calculate the sum of 2 binary numbers represented in list. The lists are already reversed, for example ([0,1] base 2) = (2 base 10). It sho...
Prolog - Binary addition? Prolog - Binary addition? addition binary prolog Prolog Binary binary_plus is_binary Prolog - Binary addition? I need to write a Prolog predicate which calculate the sum of 2 binary numbers represented in list. The lists are already reversed, for example ([0,1] base 2) = (2 base 10). It should...
[ -0.0142822265625, 0.0185546875, 0.0167236328125, 0.0123291015625, -0.0244140625, 0.0225830078125, -0.0179443359375, -0.005096435546875, 0.0211181640625, -0.026123046875, 0.00201416015625, -0.007293701171875, -0.0072021484375, 0.0341796875, -0.004791259765625, 0.007293701171875, 0.020...
[ 1250, 4867, 54092, 1294, 66044, 2394, 6635, 502, 32108, 83, 19155, 3871, 33022, 1653, 2063, 67, 74481, 10554, 116, 101935, 33636, 5303, 21771, 39531, 2389, 76172, 3647, 4958, 4700, 209, 4488, 13736, 1328, 9, 102817, 959, 107003, 17368, 5922...
[ 0.185546875, 0.244384765625, 0.22216796875, 0.1512451171875, 0.2120361328125, 0.1815185546875, 0.1290283203125, 0.1395263671875, 0.2225341796875, 0.0762939453125, 0.2056884765625, 0.0775146484375, 0.091796875, 0.1292724609375, 0.1671142578125, 0.099853515625, 0.14208984375, 0.17028...
embed
51303305_c0
51303305
prolog
0
Title: How to encode causal relations in Prolog (as a linear function) Problem title: How to encode causal relations in Prolog (as a linear function) Tags: ontology, prolog Problem: How to encode causal relations in Prolog (as a linear function) Suppose that two variables X and Y are causally and linearly related, so t...
How to encode causal relations in Prolog (as a linear function) How to encode causal relations in Prolog (as a linear function) ontology prolog How Prolog How to encode causal relations in Prolog (as a linear function) Suppose that two variables X and Y are causally and linearly related, so that an increase in X produc...
[ 0.0341796875, -0.01123046875, 0.00946044921875, 0.006683349609375, -0.006103515625, -0.00013637542724609375, 0.01043701171875, 0.00372314453125, -0.00836181640625, -0.046630859375, -0.02099609375, -0.0036468505859375, -0.02392578125, -0.013671875, 0.0150146484375, -0.000233650207519531...
[ 11249, 22, 40899, 7278, 141, 91582, 1250, 4867, 162, 192617, 32354, 23, 3283, 25443, 502, 47, 6626, 77336, 1193, 136, 990, 12097, 62548, 51312, 27489, 26983, 62488, 2258, 160692, 18588, 22834, 541, 150556, 11651, 27781, 3917, 33636, 41911, ...
[ 0.07232666015625, 0.138671875, 0.245849609375, 0.250244140625, 0.1575927734375, 0.2320556640625, 0.18212890625, 0.2451171875, 0.077392578125, 0.1854248046875, 0.1346435546875, 0.05511474609375, 0.077392578125, 0.033782958984375, 0.1220703125, 0.007537841796875, 0.0380859375, 0.1672...
embed
40705515_c0
40705515
prolog
0
Title: Prolog arguments are not sufficiently instantiated (function which calculates list length) Problem title: Prolog arguments are not sufficiently instantiated (function which calculates list length) Tags: prolog, instantiation-error Problem: Prolog arguments are not sufficiently instantiated (function which calcul...
Prolog arguments are not sufficiently instantiated (function which calculates list length) Prolog arguments are not sufficiently instantiated (function which calculates list length) prolog instantiation-error Prolog LIST LENGTH ADD Arguments Prolog arguments are not sufficiently instantiated (function which calculates ...
[ 0.0076904296875, 0.033203125, 0.00628662109375, 0.020751953125, -0.0098876953125, 0.0004711151123046875, -0.000743865966796875, -0.000865936279296875, 0.0169677734375, 0.00909423828125, 0.002410888671875, -0.0235595703125, -0.006103515625, 0.020751953125, 0.0291748046875, 0.00756835937...
[ 1250, 4867, 10750, 7, 959, 129980, 538, 34648, 14, 27686, 137175, 74481, 5303, 140909, 502, 188800, 195977, 339, 48262, 24057, 112140, 32354, 18151, 11675, 107730, 29481, 56, 18499, 26008, 86869, 12477, 73197, 5701, 11343, 757, 59121, 23415, ...
[ 0.16455078125, 0.2352294921875, 0.2496337890625, 0.032470703125, 0.1024169921875, 0.1868896484375, 0.05767822265625, 0.141357421875, 0.130615234375, 0.0875244140625, 0.141357421875, 0.1607666015625, 0.1741943359375, 0.158203125, 0.1171875, 0.1541748046875, 0.1573486328125, 0.029495...
embed
17088672_c1
17088672
prolog
1
so far are that I might need to create compound terms within the rules to group things together i.e. to reduce the number of variables in the rules but that would maybe restrict the "freedom" of a future query? I am no Prolog expert; I've played with it for quite a few hours and and dying to find a real world use in m...
so far are that I might need to create compound terms within the rules to group things together i.e. to reduce the number of variables in the rules but that would maybe restrict the "freedom" of a future query? I am no Prolog expert; I've played with it for quite a few hours and and dying to find a real world use in m...
[ 0.01275634765625, 0.00823974609375, -0.02099609375, 0.0013885498046875, -0.014892578125, 0.020263671875, 0.005096435546875, -0.006103515625, 0.007354736328125, -0.04345703125, 0, 0.0028228759765625, -0.01251220703125, -0.019775390625, -0.0206298828125, -0.0029296875, 0.00909423828125...
[ 2060, 28282, 217773, 69407, 28032, 91736, 21115, 8966, 25842, 34390, 14012, 77336, 173072, 32087, 3815, 22690, 41, 1294, 1250, 4867, 26808, 112730, 32233, 21974, 2160, 2773, 8999, 4527, 10002, 5155, 12447, 142477, 1528, 18151, 139392, 26223, 61...
[ 0.09307861328125, 0.10760498046875, 0.1907958984375, 0.1927490234375, 0.0677490234375, 0.211181640625, 0.15234375, 0.08154296875, 0.13037109375, 0.1187744140625, 0.00164794921875, 0.1739501953125, 0.08819580078125, 0.047882080078125, 0.08685302734375, 0.046539306640625, 0.08062744140...
embed
40312584_c0
40312584
prolog
0
Title: Defining operators including vertical bars(|) in SWI-prolog Problem title: Defining operators including vertical bars(|) in SWI-prolog Tags: operators, swi-prolog, prolog Problem: Defining operators including vertical bars(|) in SWI-prolog I am trying to encode basic logical inferences in Prolog, and I want to d...
Defining operators including vertical bars(|) in SWI-prolog Defining operators including vertical bars(|) in SWI-prolog operators swi-prolog prolog Defining SWI-prolog Gamma ERROR Undefined Defining operators including vertical bars(|) in SWI-prolog I am trying to encode basic logical inferences in Prolog, and I want t...
[ 0.0303955078125, 0.0218505859375, 0.0205078125, 0.003936767578125, -0.00555419921875, -0.022216796875, -0.0174560546875, 0.035888671875, -0.0047607421875, -0.0272216796875, 0.00007867813110351562, -0.0130615234375, 0.0030670166015625, -0.0087890625, 0.0021514892578125, -0.0033111572265...
[ 88606, 39933, 26719, 79259, 1909, 7, 58745, 159, 38969, 3454, 4867, 23, 2452, 502, 21413, 192, 151206, 24638, 79912, 5983, 40899, 62822, 62775, 53498, 1250, 61924, 114122, 75973, 110, 10644, 9, 100, 37842, 9790, 41, 87506, 707, 11, 1542, ...
[ 0.1622314453125, 0.2392578125, 0.0682373046875, 0.255126953125, 0.213623046875, 0.050994873046875, 0.1622314453125, 0.0740966796875, 0.213134765625, 0.124755859375, 0.20947265625, 0.01666259765625, 0.156494140625, 0.07763671875, 0.1221923828125, 0.105712890625, 0.13525390625, 0.006...
embed
30438723_c0
30438723
prolog
0
Title: How do recursive functions work in Prolog? Problem title: How do recursive functions work in Prolog? Tags: prolog Problem: How do recursive functions work in Prolog? I was reading a recursive function in prolog that returns the Sum of all the elements in a list as below : sum([ ], 0). sum( [Elem | Tail], S):- su...
How do recursive functions work in Prolog? How do recursive functions work in Prolog? prolog How Prolog Elem Tail How do recursive functions work in Prolog? I was reading a recursive function in prolog that returns the Sum of all the elements in a list as below : I can't understand two issues: 1: In the left side of ":...
[ 0.0247802734375, 0.01171875, 0.0191650390625, 0.0206298828125, -0.02001953125, 0.009521484375, -0.00153350830078125, -0.0022430419921875, 0.01177978515625, -0.023193359375, 0.024658203125, -0.034423828125, -0.01483154296875, 0.002197265625, 0.0203857421875, 0.00982666015625, 0.027221...
[ 11249, 54, 195625, 5844, 32354, 7, 4488, 23, 1250, 4867, 502, 540, 195, 1218, 379, 16454, 30646, 36335, 111, 756, 70, 80854, 5303, 35064, 831, 18, 28219, 6626, 37348, 25737, 5609, 12, 9, 765, 2016, 289, 26950, 74481, 7108, 4527, 237, ...
[ 0.08282470703125, 0.03948974609375, 0.2431640625, 0.210205078125, 0.21826171875, 0.0784912109375, 0.1695556640625, 0.0723876953125, 0.179931640625, 0.27001953125, 0.126953125, 0.07000732421875, 0.1524658203125, 0.1668701171875, 0.1614990234375, 0.03271484375, 0.1087646484375, 0.149...
embed
61580017_c0
61580017
prolog
0
Title: Replace a clause in Prolog Problem title: Replace a clause in Prolog Tags: prolog Problem: Replace a clause in Prolog I have this code clause2( monopati1(X,X,Monopati,Monopati), true). clause2( monopati1(X,Z,Monopati,Teliko_monopati), ( akme(X,Y), \+(member(Y,Monopati)), append(Monopati,[Y],Neo_monopati), monopa...
Replace a clause in Prolog Replace a clause in Prolog prolog Replace Prolog clause2 monopati1 Monopati Teliko_monopati Neo_monopati Give Old_clause New_clause Replace a clause in Prolog I have this code and i need to replace the sentence with: "monopati1 (X, X, Monopati, Monopati)." With the equivalent sentence "monopa...
[ -0.0167236328125, 0.01556396484375, -0.001556396484375, 0.021728515625, -0.007568359375, 0.0103759765625, -0.005950927734375, -0.01025390625, 0.01495361328125, -0.0162353515625, 0.011474609375, 0.010009765625, -0.0185546875, -0.0322265625, 0.03173828125, 0.0020599365234375, 0.0019989...
[ 853, 23935, 10, 70731, 13, 23, 1250, 4867, 502, 304, 22460, 10974, 418, 77879, 9344, 5696, 64176, 54311, 77878, 25074, 18347, 4032, 2356, 18151, 91995, 149357, 678, 1542, 1193, 183234, 12301, 149186, 2046, 31351, 4173, 49129, 160291, 24209, ...
[ 0.06048583984375, 0.1845703125, 0.043487548828125, 0.2232666015625, 0.1298828125, 0.024169921875, 0.1614990234375, 0.225830078125, 0.1158447265625, 0.1258544921875, 0.100830078125, 0.183837890625, 0.0831298828125, 0.1480712890625, 0.080322265625, 0.159912109375, 0.1358642578125, 0....
embed
65508981_c0
65508981
prolog
0
Title: Grounding in Prolog given a predicate and a list Problem title: Grounding in Prolog given a predicate and a list Tags: prolog Problem: Grounding in Prolog given a predicate and a list Given a predicate and a list I want a list of all the possible ways of grounding. For example: gounding(predicate(X), [a,b,c], Gr...
Grounding in Prolog given a predicate and a list Grounding in Prolog given a predicate and a list prolog Grounding Prolog Grounded Predicate Arity Grounding in Prolog given a predicate and a list Given a predicate and a list I want a list of all the possible ways of grounding. For example: Should return And I would als...
[ 0.006103515625, 0.00072479248046875, -0.006927490234375, -0.01513671875, -0.0098876953125, 0.039794921875, 0.0064697265625, -0.0029449462890625, -0.0048828125, -0.0361328125, 0.016845703125, -0.0172119140625, -0.00140380859375, -0.024169921875, -0.007049560546875, 0.0164794921875, 0....
[ 205540, 214, 23, 1250, 4867, 34475, 1653, 2063, 67, 136, 5303, 502, 297, 7145, 1172, 2481, 3444, 7722, 48322, 61585, 151117, 30646, 1884, 4488, 678, 1286, 3501, 1632, 77336, 2967, 11343, 5701, 27117, 115081, 23009, 37842, 17368, 34627, 2271...
[ 0.234130859375, 0.1280517578125, 0.04901123046875, 0.1439208984375, 0.23095703125, 0.07318115234375, 0.155517578125, 0.198486328125, 0.1005859375, 0.0164337158203125, 0.1842041015625, 0.08935546875, 0.062255859375, 0.135498046875, 0.097900390625, 0.1455078125, 0.0802001953125, 0.11...
embed
37239369_c0
37239369
prolog
0
Title: Prolog - Using Bagof Problem title: Prolog - Using Bagof Tags: prolog, prolog-setof Problem: Prolog - Using Bagof I've been stuck on a past paper question while studying for my exams. The question is: https://gyazo.com/ee2fcd88d67068e8cf7d478a98f486a0 I figured I've got to use findall/bagof/setof because I need ...
Prolog - Using Bagof Prolog - Using Bagof prolog prolog-setof Prolog Using Bagof List Team Wins Draws Prolog - Using Bagof I've been stuck on a past paper question while studying for my exams. The question is: https://gyazo.com/ee2fcd88d67068e8cf7d478a98f486a0 I figured I've got to use findall/bagof/setof because I nee...
[ 0.0142822265625, 0.0047607421875, -0.0014801025390625, 0.01220703125, -0.00860595703125, 0.013671875, -0.0272216796875, -0.013427734375, 0.0032806396484375, -0.0145263671875, 0.00023174285888671875, 0.01544189453125, -0.0128173828125, -0.011962890625, -0.0096435546875, 0.01806640625, ...
[ 1250, 4867, 345, 6953, 19413, 4390, 502, 3509, 32036, 11399, 17686, 7, 18186, 19725, 179933, 11015, 15122, 9655, 35187, 42276, 42280, 4527, 7413, 5584, 120968, 420, 43799, 5423, 51347, 95307, 5303, 27117, 8121, 60887, 12989, 29806, 2967, 18, ...
[ 0.166748046875, 0.2347412109375, 0.106201171875, 0.048370361328125, 0.198486328125, 0.2449951171875, 0.1187744140625, 0.1395263671875, 0.2198486328125, 0.199951171875, 0.206787109375, 0.004364013671875, 0.1207275390625, 0.0977783203125, 0.0792236328125, 0.055389404296875, 0.123168945...
embed
64242062_c0
64242062
prolog
0
Title: Write a predicate that works for cyclic graph to check if there exists a path between two nodes using prolog Problem title: Write a predicate that works for cyclic graph to check if there exists a path between two nodes using prolog Tags: cyclic-graph, predicate, prolog Problem: Write a predicate that works for ...
Write a predicate that works for cyclic graph to check if there exists a path between two nodes using prolog Write a predicate that works for cyclic graph to check if there exists a path between two nodes using prolog cyclic-graph predicate prolog prolog Write edge2 Write a predicate that works for cyclic graph to chec...
[ 0.0052490234375, 0.00262451171875, -0.00067138671875, 0.0279541015625, -0.024658203125, 0.00640869140625, -0.0174560546875, 0.0002765655517578125, 0.005218505859375, -0.023193359375, 0.00933837890625, -0.002105712890625, -0.00677490234375, -0.00665283203125, 0.01171875, 0.017333984375,...
[ 601, 18781, 1653, 2063, 67, 43240, 100, 187830, 238, 41382, 12765, 2174, 2685, 32316, 60875, 17721, 6626, 110, 988, 502, 4867, 121303, 304, 54397, 83, 7514, 284, 335, 4488, 84751, 184345, 2046, 116, 959, 26458, 11, 1238, 41206, 35166, 722...
[ 0.000885009765625, 0.064697265625, 0.15576171875, 0.1943359375, 0.1025390625, 0.0882568359375, 0.0308837890625, 0.173095703125, 0.039093017578125, 0.1607666015625, 0.164306640625, 0.07659912109375, 0.03021240234375, 0.1417236328125, 0.1973876953125, 0.1337890625, 0.0684814453125, 0...
embed
26700262_c0
26700262
prolog
0
Title: Trouble getting a list of trip paths in Prolog Problem title: Trouble getting a list of trip paths in Prolog Tags: recursion, prolog, list, transitive-closure Problem: Trouble getting a list of trip paths in Prolog I am having trouble with the following problem in Prolog, I have several facts in a knowledge base...
Trouble getting a list of trip paths in Prolog Trouble getting a list of trip paths in Prolog recursion prolog list transitive-closure Trouble Prolog flight_route Trouble getting a list of trip paths in Prolog I am having trouble with the following problem in Prolog, I have several facts in a knowledge base for example...
[ 0.018798828125, 0.0145263671875, 0.0294189453125, 0.00439453125, -0.00982666015625, -0.00182342529296875, 0.0025787353515625, -0.00994873046875, 0.011962890625, -0.035400390625, -0.0093994140625, 0.00072479248046875, -0.01116943359375, 0.025146484375, 0.00787353515625, -0.0012664794921...
[ 119671, 2661, 20949, 5303, 111, 24745, 60875, 7, 1250, 4867, 195625, 502, 62621, 5844, 170224, 113014, 133261, 63134, 2967, 15824, 51359, 3647, 60892, 756, 7722, 36439, 1295, 47, 990, 28219, 8110, 4527, 79986, 15190, 44677, 36997, 7279, 10582...
[ 0.09283447265625, 0.029510498046875, 0.0791015625, 0.1824951171875, 0.01629638671875, 0.1951904296875, 0.2235107421875, 0.07666015625, 0.1561279296875, 0.2420654296875, 0.14794921875, 0.0833740234375, 0.1141357421875, 0.0877685546875, 0.146240234375, 0.12890625, 0.1396484375, 0.112...
embed
20444908_c0
20444908
prolog
0
Title: Sequence Generator for Context-free Grammar (CFG) in Prolog possibly using DCG Problem title: Sequence Generator for Context-free Grammar (CFG) in Prolog possibly using DCG Tags: sequence, dcg, prolog, parsing, grammar Problem: Sequence Generator for Context-free Grammar (CFG) in Prolog possibly using DCG I want...
Sequence Generator for Context-free Grammar (CFG) in Prolog possibly using DCG Sequence Generator for Context-free Grammar (CFG) in Prolog possibly using DCG sequence dcg prolog parsing grammar DCG Sequence Generator Context-free Grammar CFG Prolog Sequence Generator for Context-free Grammar (CFG) in Prolog possibly us...
[ 0.026123046875, 0.01953125, -0.01318359375, 0.0223388671875, 0.007354736328125, 0.00005984306335449219, -0.0230712890625, -0.017333984375, -0.017578125, -0.048583984375, -0.0223388671875, 0.03125, -0.0216064453125, 0.004119873046875, 0.0079345703125, -0.00341796875, -0.025390625, 0...
[ 503, 944, 3956, 222518, 22829, 32087, 48078, 1727, 123254, 1250, 4867, 144681, 17368, 391, 56367, 177, 502, 366, 122092, 3444, 33022, 9226, 724, 4, 294, 23, 139392, 35604, 40, 159, 100, 34475, 147, 527, 9384, 6562, 351, 30524, 16765, 3394...
[ 0.07305908203125, 0.169189453125, 0.10546875, 0.2431640625, 0.1102294921875, 0.1107177734375, 0.1146240234375, 0.0831298828125, 0.1876220703125, 0.1529541015625, 0.222900390625, 0.016143798828125, 0.04595947265625, 0.05401611328125, 0.1864013671875, 0.07025146484375, 0.0775146484375,...
embed
11883842_c1
11883842
prolog
1
,clubs),(four,clubs), (five,clubs),(six,clubs),(seven,clubs),(eight,clubs), (nine,clubs),(ten,clubs),(jack,clubs),(queen,clubs), (king,clubs), (ace,diamonds),(deuce,diamonds),(three,diamonds),(four,diamonds), (five,diamonds),(six,diamonds),(seven,diamonds),(eight,diamonds), (nine,diamonds),(ten,diamonds),(jack,diamonds...
,clubs),(four,clubs), (five,clubs),(six,clubs),(seven,clubs),(eight,clubs), (nine,clubs),(ten,clubs),(jack,clubs),(queen,clubs), (king,clubs), (ace,diamonds),(deuce,diamonds),(three,diamonds),(four,diamonds), (five,diamonds),(six,diamonds),(seven,diamonds),(eight,diamonds), (nine,diamonds),(ten,diamonds),(jack,diamonds...
[ -0.00152587890625, 0.009033203125, 0.01318359375, -0.0078125, 0.005157470703125, 0.00506591796875, -0.017333984375, -0.006439208984375, 0.0277099609375, 0.00028228759765625, -0.002288818359375, 0.020751953125, -0.007171630859375, 0.0113525390625, -0.00457763671875, -0.0238037109375, ...
[ 6, 4, 41152, 7, 247, 160018, 1029, 272, 4084, 26301, 22553, 85963, 510, 135758, 944, 33, 6048, 8509, 3390, 15882, 112, 49036, 107, 35166, 12, 35142, 132, 1065, 194, 441, 418, 304, 363, 617, 156119, 841, 76172, 96386, 15772, 29557, 39555...
[ 0.01019287109375, 0.0197296142578125, 0.22705078125, 0.0919189453125, 0.062255859375, 0.1656494140625, 0.0623779296875, 0.0721435546875, 0.073486328125, 0.047882080078125, 0.126708984375, 0.100830078125, 0.1143798828125, 0.09912109375, 0.055877685546875, 0.08099365234375, 0.094299316...
embed
4559486_c0
4559486
prolog
0
Title: Value of String in Prolog Problem title: Value of String in Prolog Tags: prolog Problem: Value of String in Prolog i am making a program that reads words from an external file and then translate them to the corresponding number and then calculate the value .. words calculator !! i managed to read the words .. co...
Value of String in Prolog Value of String in Prolog prolog Value Prolog Word Rest word_to_number Symbol NewX Result Value of String in Prolog i am making a program that reads words from an external file and then translate them to the corresponding number and then calculate the value .. words calculator !! i managed to ...
[ 0.0169677734375, -0.017333984375, -0.017333984375, 0.01806640625, -0.0184326171875, 0.0157470703125, 0.020751953125, -0.00396728515625, 0.02392578125, -0.028564453125, -0.02685546875, -0.006072998046875, 0.00299072265625, -0.0218505859375, 0.004547119140625, -0.01318359375, 0.0014419...
[ 190060, 111, 23351, 214, 23, 1250, 4867, 502, 22543, 49756, 2565, 188, 2606, 131899, 2356, 1542, 126684, 1528, 12301, 34153, 1295, 173591, 11435, 3900, 19309, 14012, 74481, 34292, 154993, 6506, 145755, 96760, 120820, 2577, 6626, 44402, 54397, ...
[ 0.2406005859375, 0.1556396484375, 0.2264404296875, 0.1378173828125, 0.0909423828125, 0.17724609375, 0.2489013671875, 0.138916015625, 0.138427734375, 0.228759765625, 0.11083984375, 0.1356201171875, 0.1146240234375, 0.1641845703125, 0.10699462890625, 0.14892578125, 0.17529296875, 0.1...
embed
26380341_c0
26380341
prolog
0
Title: Prolog weighted undirected graph Problem title: Prolog weighted undirected graph Tags: prolog Problem: Prolog weighted undirected graph Ik keep struggling with making a weighted undirected graph in Prolog. The graph is represented by a x-number of predicates like: % connection(+Source, +Destination, +Weight). co...
Prolog weighted undirected graph Prolog weighted undirected graph prolog Prolog Source Destination Weight Path Node Start Finish Visited Prolog weighted undirected graph Ik keep struggling with making a weighted undirected graph in Prolog. The graph is represented by a x-number of predicates like: What i want to achiev...
[ 0.00457763671875, 0.02685546875, -0.00148773193359375, 0.005096435546875, -0.0164794921875, 0.0230712890625, -0.020751953125, -0.0185546875, 0.000507354736328125, -0.06884765625, -0.002044677734375, -0.0247802734375, -0.0174560546875, 0.00958251953125, -0.00518798828125, 0.024658203125...
[ 1250, 4867, 57888, 297, 51, 80581, 41382, 502, 77641, 145778, 150533, 108421, 438, 112, 13794, 13316, 98684, 3256, 237875, 20662, 33636, 1022, 2606, 1653, 2063, 3444, 69307, 3249, 76199, 36439, 17721, 6626, 34475, 26847, 6275, 62, 136, 527, ...
[ 0.15234375, 0.255859375, 0.233154296875, 0.06915283203125, 0.0809326171875, 0.1798095703125, 0.229248046875, 0.1007080078125, 0.135986328125, 0.1512451171875, 0.211669921875, 0.1490478515625, 0.043731689453125, 0.0015869140625, 0.05401611328125, 0.07012939453125, 0.0994873046875, 0...
embed
55434786_c0
55434786
prolog
0
Title: Apply map and filter simultaneously in SWI prolog? Problem title: Apply map and filter simultaneously in SWI prolog? Tags: filter, dictionary, prolog Problem: Apply map and filter simultaneously in SWI prolog? I have the following predicate: checkMachinePenaltiesRange(MachinePenaltiesArray):- maplist(atom_chars ...
Apply map and filter simultaneously in SWI prolog? Apply map and filter simultaneously in SWI prolog? filter dictionary prolog Apply SWI MachinePenaltiesArray atom_chars ListOfLists NoSpacesArray ListOfLists1 Helper Apply map and filter simultaneously in SWI prolog? I have the following predicate: And I apply it in the...
[ -0.0003204345703125, -0.00616455078125, -0.0184326171875, 0.006988525390625, -0.0242919921875, 0.00537109375, 0.026611328125, 0.00958251953125, -0.002899169921875, -0.00982666015625, 0.0167236328125, 0.0260009765625, -0.004669189453125, -0.0206298828125, -0.0003108978271484375, 0.00299...
[ 5659, 538, 22288, 136, 46312, 134477, 79850, 23, 159, 38969, 502, 4867, 10763, 68311, 76114, 289, 2449, 7092, 34627, 9254, 32036, 132887, 154663, 438, 141012, 418, 39527, 25632, 1653, 2063, 67, 59911, 5117, 903, 5303, 47, 4390, 1884, 221, ...
[ 0.141845703125, 0.06280517578125, 0.2015380859375, 0.1424560546875, 0.287841796875, 0.158447265625, 0.055694580078125, 0.02130126953125, 0.087158203125, 0.236572265625, 0.1524658203125, 0.18505859375, 0.037353515625, 0.0657958984375, 0.0791015625, 0.1302490234375, 0.033447265625, 0...
embed
40701624_c1
40701624
prolog
1
2) veiculos_troncos(_G6719) ? creep Exit: (22) veiculos_troncos((-6, 6)) ? creep Redo: (22) veiculos_troncos(_G6719) ? creep Exit: (22) veiculos_troncos((-4, 4)) ? creep Redo: (22) veiculos_troncos(_G6719) ? creep Exit: (22) veiculos_troncos((1, 4)) ? creep Redo: (22) veiculos_troncos(_G6719) ? creep Exit: (22) veiculo...
6022412, user:member([_G16022412|_G16022413], [[ (-8, 3, 19, [...|...], 1), (-8, 2, 18, ..., ...)], [ (-8, 3, 19, ..., ...), (-8, 2, ..., ...)], [ (-8, 3, ..., ...), (-8, ..., ...)], [ (-8, ..., ...), (..., ...)], [ (..., ...)|...], [...|...]|...]), _G16022446) ?
[ -0.0101318359375, -0.01904296875, 0.01043701171875, 0.0220947265625, 0.01385498046875, 0.003814697265625, -0.018798828125, -0.007080078125, 0.0211181640625, -0.0255126953125, 0.007598876953125, 0.0087890625, 0.01416015625, -0.026123046875, 0.032958984375, 0.01129150390625, 0.00354003...
[ 1496, 304, 2357, 1530, 38937, 12, 39, 27417, 724, 37321, 4015, 8894, 96386, 110558, 15, 17376, 4, 138, 17846, 27, 75606, 4879, 116, 543, 153, 16, 268, 378, 247, 101, 180730, 705 ]
[ 0.2166748046875, 0.1644287109375, 0.1842041015625, 0.182861328125, 0.251220703125, 0.0706787109375, 0.1229248046875, 0.2734375, 0.1614990234375, 0.208740234375, 0.1510009765625, 0.09771728515625, 0.1177978515625, 0.1136474609375, 0.0628662109375, 0.2215576171875, 0.0721435546875, 0...
embed
26678484_c0
26678484
prolog
0
Title: How to draw a diagram for running trace of quicksort in Prolog Problem title: How to draw a diagram for running trace of quicksort in Prolog Tags: prolog, search-tree, sorting, trace, quicksort Problem: How to draw a diagram for running trace of quicksort in Prolog I have a code for quicksort in prolog: gt(X,Y):...
How to draw a diagram for running trace of quicksort in Prolog How to draw a diagram for running trace of quicksort in Prolog prolog search-tree sorting trace quicksort How Prolog List Head Tail List1 List2 Sorted Small Big SortedSmall SortedBig How to draw a diagram for running trace of quicksort in Prolog I have a co...
[ 0.006378173828125, 0.01190185546875, 0.00537109375, -0.01190185546875, -0.01556396484375, 0.012939453125, -0.0032501220703125, -0.0045166015625, 0.004364013671875, 0.01507568359375, 0.0087890625, 0.01483154296875, -0.007049560546875, -0.02197265625, 0.01513671875, -0.01165771484375, ...
[ 11249, 79442, 10, 117233, 100, 51042, 144851, 111, 63773, 62351, 1250, 4867, 502, 33938, 62600, 12096, 32036, 44816, 1218, 379, 53666, 105508, 297, 69070, 129933, 23, 18151, 27781, 617, 57626, 39555, 7413, 5303, 14012, 4358, 28219, 1528, 7794...
[ 0.055938720703125, 0.1785888671875, 0.01470947265625, 0.22509765625, 0.03448486328125, 0.141357421875, 0.2247314453125, 0.0195159912109375, 0.185546875, 0.25439453125, 0.14404296875, 0.216064453125, 0.1014404296875, 0.089111328125, 0.11865234375, 0.1796875, 0.1102294921875, 0.10205...
embed
28910767_c0
28910767
prolog
0
Title: Prolog Numbers to Words Problem title: Prolog Numbers to Words Tags: prolog, integer, recursion, string, words Problem: Prolog Numbers to Words I am working with the following predicates to convert numbers to words: word(0) :- write('zero'). word(1) :- write('one'). word(2) :- write('two'). word(3) :- write('thr...
Prolog Numbers to Words Prolog Numbers to Words prolog integer recursion string words Prolog Numbers Words num_words Nums NMod NDiv Prolog Numbers to Words I am working with the following predicates to convert numbers to words: Desired Output: Current Output: Looking at my output, it looks like my logic is almost corre...
[ -0.00872802734375, 0.00148773193359375, -0.019775390625, 0.0022430419921875, -0.00897216796875, 0.0390625, -0.00958251953125, 0.0017852783203125, 0.0113525390625, -0.022705078125, -0.018310546875, -0.027587890625, -0.00982666015625, 0.0013275146484375, 0.01202392578125, 0.0001983642578...
[ 1250, 4867, 103332, 47, 22543, 502, 892, 195625, 1830, 79315, 34153, 13269, 47416, 52782, 541, 91616, 192576, 20697, 25632, 1653, 2063, 96760, 101935, 56656, 2822, 13538, 7077, 114063, 140992, 33342, 62775, 39555, 26785, 35782, 27689, 3642, 155...
[ 0.175537109375, 0.2442626953125, 0.18798828125, 0.154541015625, 0.2227783203125, 0.1605224609375, 0.114501953125, 0.212890625, 0.10400390625, 0.13037109375, 0.20166015625, 0.15283203125, 0.17333984375, 0.160888671875, 0.02899169921875, 0.1715087890625, 0.1895751953125, 0.0834960937...
embed
61947755_c0
61947755
prolog
0
Title: How to avoid auxiliary predicates? Problem title: How to avoid auxiliary predicates? Tags: refactoring, higher-order-functions, prolog Problem: How to avoid auxiliary predicates? I wrote the following code for transposing (finite) lists of (finite) lists (leveraging enough laziness in Prolog for infinite cases e...
How to avoid auxiliary predicates? How to avoid auxiliary predicates? refactoring higher-order-functions prolog How transpose_opt list_to_set How to avoid auxiliary predicates? I wrote the following code for transposing (finite) lists of (finite) lists (leveraging enough laziness in Prolog for infinite cases eludes me ...
[ -0.004058837890625, 0.00360107421875, 0.0174560546875, 0.00051116943359375, -0.0302734375, -0.02099609375, 0.015380859375, -0.0157470703125, 0.0072021484375, -0.0390625, 0.0303955078125, 0.032958984375, -0.01092529296875, 0.00799560546875, -0.000919342041015625, 0.0216064453125, 0.01...
[ 11249, 71864, 119591, 53, 1653, 2063, 1636, 47, 144810, 77546, 80596, 137175, 502, 4867, 3900, 78381, 2146, 18, 5303, 188, 3509, 18151, 7522, 48310, 67, 27571, 21, 708, 1250, 54241, 50218, 43240, 738, 29954, 23, 2256, 3642, 37842, 226534, ...
[ 0.056976318359375, 0.2261962890625, 0.2122802734375, 0.079345703125, 0.17724609375, 0.2098388671875, 0.08935546875, 0.0162811279296875, 0.10498046875, 0.0146636962890625, 0.1207275390625, 0.09710693359375, 0.08209228515625, 0.2095947265625, 0.14208984375, 0.149169921875, 0.1182861328...
embed
5362267_c1
5362267
prolog
1
1) ) leads to knows(n_c,1) % the 1 is an artifact which may or may not be needed; tells the depth of the knowledge knows(k_c,1) knows(sign([c,k_c],k_c-1),1) EDIT: I removed the long part about extracting Data from encrypted and/or signed data. Basically after collecting the default messages and asserting the initial kn...
1) ) leads to knows(n_c,1) % the 1 is an artifact which may or may not be needed; tells the depth of the knowledge knows(k_c,1) knows(sign([c,k_c],k_c-1),1) EDIT: I removed the long part about extracting Data from encrypted and/or signed data. Basically after collecting the default messages and asserting the initial kn...
[ 0.0294189453125, 0.019287109375, -0.002166748046875, 0.0235595703125, 0.00689697265625, -0.01904296875, 0.001434326171875, 0.0014495849609375, 0.006683349609375, -0.032470703125, 0.00848388671875, -0.0380859375, -0.0159912109375, 0.0498046875, 0.006927490234375, -0.003082275390625, 0...
[ 4879, 1388, 37105, 7, 93002, 19, 454, 238, 17727, 1745, 70, 106, 83, 142, 17662, 114700, 1543, 707, 959, 44841, 14192, 168867, 111, 51359, 92, 31304, 110218, 184750, 125663, 11809, 1295, 22, 136791, 181141, 2053, 43799, 114977, 89914, 16865...
[ 0.123291015625, 0.0345458984375, 0.17333984375, 0.0030517578125, 0.267578125, 0.055511474609375, 0.04425048828125, 0.097412109375, 0.11572265625, 0.21142578125, 0.0819091796875, 0.162109375, 0.06951904296875, 0.0149993896484375, 0.1490478515625, 0.220703125, 0.113525390625, 0.02449...
embed
37389949_c1
37389949
prolog
1
to the predicate. I need 4 parameters. Ignore search/6 and write an own labelling method. That's how I have it right now, see the code below. It takes the board (the NxN array containing all decision variables), both lists of hints and returns a list containing all variables, now sorted according to their row + column...
to the predicate. I need 4 parameters. Ignore search/6 and write an own labelling method. That's how I have it right now, see the code below. It takes the board (the NxN array containing all decision variables), both lists of hints and returns a list containing all variables, now sorted according to their row + column...
[ -0.005828857421875, -0.01226806640625, 0.000881195068359375, 0.01055908203125, -0.0284423828125, -0.003509521484375, 0.01446533203125, 0.0098876953125, 0.023681640625, -0.033203125, -0.016357421875, 0.00098419189453125, 0.015380859375, 0.006011962890625, 0.00286865234375, -0.0121459960...
[ 47, 1653, 2063, 67, 3871, 201, 171859, 7, 11137, 33938, 20155, 33022, 10002, 67967, 2069, 55300, 18151, 51776, 45443, 425, 839, 10298, 70541, 756, 51957, 77336, 5303, 5122, 933, 30646, 17497, 59499, 15555, 3365, 316, 10554, 19048, 12096, 24...
[ 0.1358642578125, 0.1390380859375, 0.202392578125, 0.0948486328125, 0.115478515625, 0.10986328125, 0.2454833984375, 0.049163818359375, 0.0372314453125, 0.1553955078125, 0.1063232421875, 0.03350830078125, 0.043701171875, 0.239501953125, 0.179443359375, 0.14013671875, 0.040679931640625,...
embed
6329256_c0
6329256
prolog
0
Title: Prolog grade counter and eulerpath Problem title: Prolog grade counter and eulerpath Tags: euler-path, prolog, graph-theory, path Problem: Prolog grade counter and eulerpath this week I got this homework to do: count the grade of nodes in a undirected graph and test if there is a euler path in it. the function s...
Prolog grade counter and eulerpath Prolog grade counter and eulerpath euler-path prolog graph-theory path Prolog Prolog grade counter and eulerpath this week I got this homework to do: count the grade of nodes in a undirected graph and test if there is a euler path in it. the function should work like following: my fir...
[ 0.00384521484375, 0.0098876953125, -0.01055908203125, 0.0106201171875, -0.00946044921875, 0.0167236328125, -0.0283203125, -0.00946044921875, 0.006500244140625, -0.018798828125, -0.0107421875, -0.029052734375, 0.0084228515625, 0.0184326171875, -0.0126953125, -0.0027923583984375, -0.00...
[ 1250, 4867, 44000, 105416, 136, 1175, 603, 128405, 502, 41382, 2347, 60875, 5895, 4163, 903, 5368, 18244, 54529, 111, 110, 988, 23, 51, 80581, 3034, 2174, 32354, 5608, 4488, 1884, 25632, 5117, 6528, 6671, 12897, 1991, 429, 139392, 5303, 4...
[ 0.161865234375, 0.2286376953125, 0.2330322265625, 0.2283935546875, 0.054168701171875, 0.1458740234375, 0.1961669921875, 0.19384765625, 0.1221923828125, 0.1611328125, 0.027496337890625, 0.1900634765625, 0.031890869140625, 0.012969970703125, 0.0174102783203125, 0.0928955078125, 0.13391...
embed
21403933_c1
21403933
prolog
1
note that I've got to avoid any kind of system predicate! %% we get the size of a list size([], 0):-!. size([H|T], R):- size(T,R1), R is R1+1. %% we get the sublist of the given size subList(_, 0, []):-!. %% if size is 0, we return an empty list subList([], _, []):-!. %% if the list is empty, we're done subList([H|T],...
note that I've got to avoid any kind of system predicate! %% we get the size of a list size([], 0):-!. size([H|T], R):- size(T,R1), R is R1+1. %% we get the sublist of the given size subList(_, 0, []):-!. %% if size is 0, we return an empty list subList([], _, []):-!. %% if the list is empty, we're done subList([H|T],...
[ 0.00592041015625, -0.02001953125, 0.005401611328125, -0.00061798095703125, -0.00110626220703125, -0.0003643035888671875, -0.0155029296875, 0.00170135498046875, 0.0247802734375, -0.017822265625, 0.005401611328125, 0.00299072265625, 0.00860595703125, 0.0087890625, 0.00958251953125, 0.001...
[ 71864, 5426, 1653, 2063, 2046, 13267, 5303, 757, 9, 38, 841, 58745, 618, 627, 1052, 17727, 418, 21748, 1614, 6562, 154663, 30646, 201505, 80378, 5759, 5454, 54529, 5941, 20028, 339, 304, 96472, 866, 159, 10461, 5442, 16610, 8273, 5, 15364...
[ 0.035980224609375, 0.088623046875, 0.09649658203125, 0.1209716796875, 0.0191802978515625, 0.17626953125, 0.196533203125, 0.102294921875, 0.012847900390625, 0.02978515625, 0.05828857421875, 0.08349609375, 0.0653076171875, 0.095947265625, 0.05120849609375, 0.04949951171875, 0.053100585...
embed
72228574_c0
72228574
prolog
0
Title: Reverse the output of the Depth-First-Search Algorithm Problem title: Reverse the output of the Depth-First-Search Algorithm Tags: reverse, prolog Problem: Reverse the output of the Depth-First-Search Algorithm I want to reverse the output of the code. goal(hall). move(gateA,gateB). move(gateA,gateG). move(gateB...
Reverse the output of the Depth-First-Search Algorithm Reverse the output of the Depth-First-Search Algorithm reverse prolog Reverse Depth-First-Search Algorithm Start Goal Path Hall Node1 But Reverse the output of the Depth-First-Search Algorithm I want to reverse the output of the code. The output is :
[ 0.0228271484375, 0.0250244140625, 0.00701904296875, 0.0224609375, -0.0027618408203125, 0.0174560546875, 0.005126953125, 0.01275634765625, -0.0059814453125, -0.02685546875, 0.000392913818359375, -0.00244140625, -0.001861572265625, 0.01458740234375, 0.0218505859375, 0.0054931640625, -0...
[ 853, 37676, 140992, 262, 254, 927, 207263, 221175, 109847, 2783, 18337, 39531, 184, 502, 4867, 13794, 2016, 289, 108421, 19449, 438, 112, 418, 4966, 3444, 47, 70, 111, 18151, 83 ]
[ 0.133544921875, 0.28759765625, 0.223388671875, 0.07501220703125, 0.135009765625, 0.05718994140625, 0.14794921875, 0.2174072265625, 0.122802734375, 0.099609375, 0.112060546875, 0.2154541015625, 0.1875, 0.11669921875, 0.1982421875, 0.111572265625, 0.0919189453125, 0.050384521484375, ...
embed
16553186_c0
16553186
prolog
0
Title: Prolog: How to find a specific element in a list? Problem title: Prolog: How to find a specific element in a list? Tags: prolog, list, element Problem: Prolog: How to find a specific element in a list? I have to implement this predicate: predicate(+connections, +[index,position], -leftConnections); The connectio...
Prolog: How to find a specific element in a list? Prolog: How to find a specific element in a list? prolog list element Prolog How symbol1 element11 element21 symbol2 element12 element22 new_pos new_position new_symbol Prolog: How to find a specific element in a list? I have to implement this predicate: The connections...
[ -0.01263427734375, 0.00341796875, 0.0169677734375, 0.018310546875, -0.0260009765625, 0.0244140625, -0.015380859375, 0.00640869140625, 0.015380859375, -0.038330078125, 0.01263427734375, -0.0201416015625, 0.000911712646484375, -0.01483154296875, 0.002410888671875, -0.0025787353515625, ...
[ 1250, 4867, 11249, 47, 7413, 29458, 12830, 23, 5303, 502, 26582, 418, 1662, 3117, 304, 1530, 4015, 3525, 7522, 40322, 176726, 10, 29479, 1653, 2063, 94878, 7, 77336, 33342, 1884, 903, 105950, 63262, 493, 6626, 88, 195, 19069, 112033, 8738...
[ 0.1434326171875, 0.2099609375, 0.0933837890625, 0.0767822265625, 0.2052001953125, 0.240966796875, 0.2431640625, 0.1087646484375, 0.2232666015625, 0.1160888671875, 0.2249755859375, 0.0225677490234375, 0.0623779296875, 0.0870361328125, 0.033966064453125, 0.0960693359375, 0.125122070312...
embed
34428516_c0
34428516
prolog
0
Title: Results are not compareing with given facts Problem title: Results are not compareing with given facts Tags: prolog, transitive-closure Problem: Results are not compareing with given facts Using prolog make a code to get some compared outputs but some outputs not working properly. seems those are not comparing w...
Results are not compareing with given facts Results are not compareing with given facts prolog transitive-closure Results Fact Rel Arg1 Arg2 SuperArg SuperFact speacial_organ lay_eggs special_organ not_lay_eggs Results are not compareing with given facts Using prolog make a code to get some compared outputs but some ou...
[ 0.017822265625, -0.0103759765625, 0.02001953125, 0.0263671875, 0.005889892578125, -0.024658203125, 0.0098876953125, 0.0006103515625, 0.00185394287109375, 0.0036468505859375, -0.006622314453125, 0.017333984375, -0.01708984375, 0.0093994140625, -0.002197265625, -0.01141357421875, 0.012...
[ 146104, 621, 959, 69101, 214, 678, 34475, 15824, 502, 4867, 62621, 5844, 170224, 132640, 853, 141, 1172, 177, 418, 304, 4265, 7614, 135518, 13986, 26136, 43425, 21, 53, 2507, 9405, 5361, 5259, 18151, 2046, 154186, 140992, 20697, 155965, 373...
[ 0.193603515625, 0.01019287109375, 0.155517578125, 0.1826171875, 0.10711669921875, 0.1331787109375, 0.1251220703125, 0.152099609375, 0.131591796875, 0.207275390625, 0.12744140625, 0.09716796875, 0.1875, 0.1571044921875, 0.03985595703125, 0.09283447265625, 0.06591796875, 0.0325012207...
embed
47275817_c0
47275817
prolog
0
Title: Prolog - Counting the amount of times a number appears in a list Problem title: Prolog - Counting the amount of times a number appears in a list Tags: prolog Problem: Prolog - Counting the amount of times a number appears in a list So I am pretty much new to Prolog. I need to write a code segment that will count...
Prolog - Counting the amount of times a number appears in a list Prolog - Counting the amount of times a number appears in a list prolog Prolog Counting Prolog - Counting the amount of times a number appears in a list So I am pretty much new to Prolog. I need to write a code segment that will count all the times any nu...
[ 0.0123291015625, -0.010986328125, 0.01287841796875, 0.005340576171875, 0.0125732421875, 0.0172119140625, -0.0101318359375, -0.000705718994140625, 0.00927734375, -0.03466796875, -0.00885009765625, -0.044189453125, 0.013916015625, 0.017578125, 0.0186767578125, 0.003509521484375, 0.0050...
[ 1250, 4867, 1311, 128396, 41170, 20028, 14012, 135179, 23, 5303, 502, 3525, 3871, 33022, 18151, 33180, 1221, 54529, 756, 70, 2499, 26866, 53894, 8512, 839, 10321, 418, 116, 122101, 876, 201, 758, 501, 305, 541, 5608, 30646, 2203, 4488, 16...
[ 0.1685791015625, 0.2239990234375, 0.14697265625, 0.172119140625, 0.1304931640625, 0.2198486328125, 0.2069091796875, 0.184326171875, 0.058990478515625, 0.2147216796875, 0.117431640625, 0.06561279296875, 0.046844482421875, 0.06610107421875, 0.159912109375, 0.1302490234375, 0.0270843505...
embed
40494477_c0
40494477
prolog
0
Title: Prolog - Does path exist from X to Y in graph Problem title: Prolog - Does path exist from X to Y in graph Tags: prolog Problem: Prolog - Does path exist from X to Y in graph Its just been two hours i have written my first Prolog hello world program. I saw this tutorial which i am trying to refer : Objective : I...
Prolog - Does path exist from X to Y in graph Prolog - Does path exist from X to Y in graph prolog X Prolog Does check_for_node check_reverse_path Prolog - Does path exist from X to Y in graph Its just been two hours i have written my first Prolog hello world program. I saw this tutorial which i am trying to refer : Ob...
[ 0.008056640625, 0.0147705078125, 0.01214599609375, 0.02734375, -0.0255126953125, 0.034912109375, 0.002105712890625, -0.0028839111328125, 0.005279541015625, -0.03564453125, -0.00086212158203125, -0.015625, -0.00958251953125, 0.006011962890625, 0.0009613037109375, -0.01336669921875, 0....
[ 1250, 4867, 101790, 60875, 32316, 1295, 1193, 47, 990, 23, 41382, 502, 12765, 2472, 157, 112, 107, 37676, 128405, 21974, 59121, 5117, 33600, 31, 8999, 1528, 24124, 57143, 15005, 134549, 5844, 110, 1022, 113, 4527, 195625, 1830, 3647, 7225, ...
[ 0.1495361328125, 0.2391357421875, 0.0823974609375, 0.2252197265625, 0.2052001953125, 0.1553955078125, 0.1202392578125, 0.1790771484375, 0.159912109375, 0.069091796875, 0.1656494140625, 0.117919921875, 0.1820068359375, 0.1378173828125, 0.1436767578125, 0.1431884765625, 0.095458984375,...
embed
34278241_c1
34278241
prolog
1
"\\\"". stringChar(0'\") --> "\\\\". stringChar(C) --> [C]. The main rule for my tokenizer is this: token(X) --> whites, (keyword(X) ; operator(X) ; id(X) ; int(X) ; string(X)). It's not perfect; I will see int get parsed into in,id(t) because keyword(X) comes before id(X) . So I guess that's the first question. The b...
"\\\"". stringChar(0'\") --> "\\\\". stringChar(C) --> [C]. The main rule for my tokenizer is this: token(X) --> whites, (keyword(X) ; operator(X) ; id(X) ; int(X) ; string(X)). It's not perfect; I will see int get parsed into in,id(t) because keyword(X) comes before id(X) . So I guess that's the first question. The b...
[ 0.033447265625, 0.01470947265625, -0.0047607421875, 0.0302734375, -0.020751953125, 0.007476806640625, 0.00872802734375, -0.003265380859375, 0.00579833984375, -0.033447265625, 0.00168609619140625, 0.0084228515625, -0.0196533203125, 0.000095367431640625, 0.0002899169921875, 0.0322265625,...
[ 77352, 79315, 84068, 2389, 25, 129908, 111847, 441, 5201, 79986, 759, 47, 1098, 52825, 903, 1542, 35011, 7, 19770, 47416, 39933, 3447, 23, 18, 15787, 366, 3934, 532, 166117, 32497, 8108, 167785, 9655, 765, 1957, 155965, 78779, 13, 24626, ...
[ 0.078857421875, 0.174560546875, 0.1572265625, 0.1051025390625, 0.0426025390625, 0.039764404296875, 0.080810546875, 0.00665283203125, 0.095703125, 0.1844482421875, 0.001434326171875, 0.142822265625, 0.1854248046875, 0.19677734375, 0.02191162109375, 0.095458984375, 0.20068359375, 0.0...
embed
35164306_c1
35164306
prolog
1
work at the same time. rule1:-of(drink(milk),3),perm(drink(milk),3). rule2:-of(dept(relations),1),perm(dept(relations),1). rule3:-of(dept(relations),1),of(color(blue),2),perm(dept(relations),1),perm(color(blue),2). rule3:-of(dept(relations),2),of(color(blue),3),perm(dept(relations),2),perm(color(blue),3). rule3:-of(de...
work at the same time. rule1:-of(drink(milk),3),perm(drink(milk),3). rule2:-of(dept(relations),1),perm(dept(relations),1). rule3:-of(dept(relations),1),of(color(blue),2),perm(dept(relations),1),perm(color(blue),2). rule3:-of(dept(relations),2),of(color(blue),3),perm(dept(relations),2),perm(color(blue),3). rule3:-of(de...
[ -0.01470947265625, 0.0123291015625, 0.0033721923828125, 0.0166015625, 0.009765625, -0.006561279296875, -0.05078125, 0.0068359375, 0.01068115234375, -0.0277099609375, -0.001556396484375, 0.01531982421875, 0.0301513671875, 0.0078125, -0.0079345703125, 0.005096435546875, 0.0003242492675...
[ 4488, 99, 70, 5701, 1733, 5, 79986, 82825, 4390, 71, 35838, 132, 12397, 92, 247, 21320, 1264, 39, 304, 12, 9, 112, 6328, 25653, 5256, 17727, 4, 363, 46133, 143802, 10461, 29557, 43317, 617, 5128, 99433, 758, 16670, 13, 28864, 26073, 7...
[ 0.242919921875, 0.123046875, 0.00262451171875, 0.1573486328125, 0.177734375, 0.0714111328125, 0.253662109375, 0.1429443359375, 0.24169921875, 0.049072265625, 0.2041015625, 0.013519287109375, 0.1826171875, 0.113525390625, 0.004058837890625, 0.170654296875, 0.135986328125, 0.16137695...
embed
48673413_c0
48673413
prolog
0
Title: Prolog : Evaluating logical expression w/o backtracking with AND/OR op/2? Problem title: Prolog : Evaluating logical expression w/o backtracking with AND/OR op/2? Tags: prolog, logical-operators, eval Problem: Prolog : Evaluating logical expression w/o backtracking with AND/OR op/2? I'm trying to implement logic...
Prolog : Evaluating logical expression w/o backtracking with AND/OR op/2? Prolog : Evaluating logical expression w/o backtracking with AND/OR op/2? prolog logical-operators eval Prolog Evaluating Cond Conds Prolog : Evaluating logical expression w/o backtracking with AND/OR op/2? I'm trying to implement logical express...
[ 0.025146484375, 0.0218505859375, 0.00830078125, 0.00909423828125, -0.01251220703125, 0.024169921875, -0.004638671875, 0.0031280517578125, 0.015380859375, -0.02001953125, -0.01202392578125, 0.002960205078125, 0.003662109375, -0.015380859375, 0.0205078125, -0.002197265625, 0.0212402343...
[ 1250, 4867, 151228, 1916, 62775, 289, 125195, 64, 31, 4420, 125728, 214, 678, 48762, 24638, 233, 12477, 502, 206469, 28, 1405, 1657, 71, 6468, 31577, 29479, 219836, 123166, 28007, 20697, 18151, 43240, 9655, 15400, 3871, 6626, 314, 933, 38, ...
[ 0.183349609375, 0.236328125, 0.2020263671875, 0.0340576171875, 0.1658935546875, 0.10107421875, 0.2288818359375, 0.0950927734375, 0.0667724609375, 0.138916015625, 0.2130126953125, 0.0849609375, 0.03143310546875, 0.1300048828125, 0.198486328125, 0.135986328125, 0.19189453125, 0.14318...
embed
51495916_c0
51495916
prolog
0
Title: Replacing substring in second occurrence in prolog Problem title: Replacing substring in second occurrence in prolog Tags: string, replace, recursion, prolog Problem: Replacing substring in second occurrence in prolog First of all, this is not a homework. I'm studying Computer Sciences in my home, to learn a lit...
Replacing substring in second occurrence in prolog Replacing substring in second occurrence in prolog string replace recursion prolog Replacing i.e Replacing substring in second occurrence in prolog First of all, this is not a homework. I'm studying Computer Sciences in my home, to learn a little more alone. I'm doing ...
[ -0.01336669921875, 0.01239013671875, 0.006317138671875, 0.031494140625, 0.00787353515625, -0.00116729736328125, -0.021484375, 0.0255126953125, -0.01507568359375, 0.01171875, 0.01513671875, 0.0179443359375, -0.0213623046875, -0.0205078125, 0.002655029296875, -0.0035552978515625, 0.031...
[ 853, 133266, 1614, 91693, 17932, 74918, 42, 502, 4867, 79315, 91995, 195625, 1830, 18244, 35187, 214, 40139, 28745, 75447, 3443, 5117, 51515, 31577, 45367, 5303, 678, 11907, 756, 88303, 903, 18151, 30646, 98320, 81887, 25647 ]
[ 0.04754638671875, 0.148681640625, 0.199951171875, 0.257568359375, 0.188720703125, 0.1383056640625, 0.118896484375, 0.1387939453125, 0.2156982421875, 0.2144775390625, 0.1697998046875, 0.160400390625, 0.04559326171875, 0.0195465087890625, 0.003692626953125, 0.01068115234375, 0.00692749...
embed
53848111_c0
53848111
prolog
0
Title: Save object to file in Logtalk Problem title: Save object to file in Logtalk Tags: serialization, prolog, save, logtalk, object Problem: Save object to file in Logtalk I've written a prolog project and now I have to change it to Logtalk file. In the code I can assert new facts to another prolog file with the cod...
Save object to file in Logtalk Save object to file in Logtalk serialization prolog save logtalk object Save Logtalk use_module db_attach student_database.pl add_student Name Surname Mark Studies with_mutex student_db assert_student create_object end_protocol Save object to file in Logtalk I've written a prolog project ...
[ 0.03857421875, 0.0228271484375, 0.0235595703125, 0.00811767578125, -0.0111083984375, 0.00154876708984375, -0.0164794921875, 0.00897216796875, 0.003570556640625, -0.0634765625, 0.01123046875, 0.0189208984375, -0.006439208984375, -0.00030517578125, 0.0203857421875, -0.01806640625, -0.0...
[ 64944, 36746, 47, 11435, 23, 13146, 139109, 35686, 502, 4867, 30098, 12684, 83279, 40041, 52438, 9836, 37382, 2424, 15190, 96610, 15757, 8018, 7880, 132268, 24371, 48073, 33657, 28282, 187694, 3564, 18606, 31, 59121, 13452, 15549, 18151, 237, ...
[ 0.163818359375, 0.2144775390625, 0.0689697265625, 0.1903076171875, 0.02105712890625, 0.1448974609375, 0.278564453125, 0.0980224609375, 0.125244140625, 0.19580078125, 0.1533203125, 0.09771728515625, 0.032928466796875, 0.001556396484375, 0.099853515625, 0.1280517578125, 0.114013671875,...
embed
66388778_c1
66388778
prolog
1
on this or for any feedback at all. Here is the code: https://pastebin.com/sc4gLdQe alphabeta(Player,MaxiPlayer,Alpha,Beta,Board,NextMove,Eval,Depth) :- Depth<2, NewDepth is Depth+1, findall( (Player,Figur,VonL,VonR,NachL,NachR,Gegner,Board), zugbewegung(Player,Figur,VonL,VonR,NachL,NachR,Gegner,Board), Moves ), write...
on this or for any feedback at all. Here is the code: https://pastebin.com/sc4gLdQe alphabeta(Player,MaxiPlayer,Alpha,Beta,Board,NextMove,Eval,Depth) :- Depth<2, NewDepth is Depth+1, findall( (Player,Figur,VonL,VonR,NachL,NachR,Gegner,Board), zugbewegung(Player,Figur,VonL,VonR,NachL,NachR,Gegner,Board), Moves ), write...
[ 0.0034637451171875, 0.0101318359375, 0.0400390625, 0.0267333984375, 0.004119873046875, 0.0107421875, 0.01361083984375, -0.0050048828125, 0.018798828125, -0.004241943359375, -0.0233154296875, 0.010986328125, 0.0157470703125, 0.00157928466796875, 0.006256103515625, -0.017333984375, -0....
[ 98, 903, 58269, 756, 5, 11853, 83, 70, 18151, 12, 134665, 7568, 13, 6, 229231, 11, 142581, 71346, 14, 6210, 14612, 6766, 102, 12647, 5861, 81280, 9083, 272, 647, 1405, 4657, 254, 927, 15772, 262, 16093, 304, 2356, 21748, 7413, 5584, 6...
[ 0.002105712890625, 0.07696533203125, 0.1536865234375, 0.001129150390625, 0.054962158203125, 0.04803466796875, 0.045562744140625, 0.09765625, 0.2607421875, 0.032196044921875, 0.035736083984375, 0.08056640625, 0.060546875, 0.033294677734375, 0.2320556640625, 0.1558837890625, 0.23596191...
embed
16820606_c1
16820606
prolog
1
840 bytes % library(gensym) compiled into gensym 0.00 sec, 4,792 bytes % rdf_triple compiled into rdf_triple 0.00 sec, 39,672 bytes % library(rdf) compiled into rdf 0.01 sec, 244,240 bytes % library(semweb/sparql_client) compiled into sparql_client 0.04 sec, 707,080 bytes true. I have this query that, as you can see, s...
840 bytes % library(gensym) compiled into gensym 0.00 sec, 4,792 bytes % rdf_triple compiled into rdf_triple 0.00 sec, 39,672 bytes % library(rdf) compiled into rdf 0.01 sec, 244,240 bytes % library(semweb/sparql_client) compiled into sparql_client 0.04 sec, 707,080 bytes true. I have this query that, as you can see, s...
[ -0.006378173828125, 0.00836181640625, -0.0108642578125, 0.01434326171875, -0.003509521484375, -0.00799560546875, -0.0002880096435546875, -0.000732421875, 0.013916015625, -0.07470703125, 0.004119873046875, -0.0208740234375, -0.0023345947265625, -0.004974365234375, 0.00604248046875, 0.00...
[ 382, 2839, 390, 1636, 1745, 35773, 1294, 20583, 4650, 375, 5974, 3934, 29038, 37509, 19216, 186796, 4216, 420, 59623, 133, 5606, 198493, 182149, 744, 617, 62635, 5765, 14051, 26404, 99247, 222978, 27148, 89678, 158367, 2389, 4836, 29568, 765,...
[ 0.05523681640625, 0.1630859375, 0.151611328125, 0.006622314453125, 0.0926513671875, 0.212158203125, 0.1705322265625, 0.1593017578125, 0.2342529296875, 0.01446533203125, 0.1763916015625, 0.035675048828125, 0.1575927734375, 0.1231689453125, 0.12109375, 0.038909912109375, 0.09375, 0.1...
embed
47344861_c0
47344861
prolog
0
Title: How to change the order in which variables are printed in prolog? Problem title: How to change the order in which variables are printed in prolog? Tags: prolog-toplevel, prolog Problem: How to change the order in which variables are printed in prolog? This is a homework problem, but I just need a simple question...
How to change the order in which variables are printed in prolog? How to change the order in which variables are printed in prolog? prolog-toplevel prolog How Col Row How to change the order in which variables are printed in prolog? This is a homework problem, but I just need a simple question answered. I am supposed t...
[ 0.0159912109375, 0.00579833984375, 0.0027923583984375, 0.001983642578125, 0.01300048828125, 0.00811767578125, -0.0206298828125, -0.006317138671875, -0.006378173828125, 0.00152587890625, -0.00109100341796875, -0.0296630859375, -0.0028839111328125, 0.004608154296875, -0.00799560546875, -...
[ 11249, 47, 15549, 12989, 23, 77336, 28412, 297, 502, 4867, 3129, 7, 13784, 67919, 11554, 96190, 70, 18244, 2967, 8781, 194663, 134598, 756, 7722, 48322, 472, 54350, 831, 88203, 98, 290, 45443, 1295, 19069, 20949, 26785, 101935, 48903, 14099...
[ 0.0859375, 0.04718017578125, 0.1915283203125, 0.185302734375, 0.05426025390625, 0.222900390625, 0.171142578125, 0.0634765625, 0.1395263671875, 0.240234375, 0.03985595703125, 0.045684814453125, 0.025177001953125, 0.1162109375, 0.1015625, 0.175537109375, 0.0062255859375, 0.0675048828...
embed
15993878_c0
15993878
prolog
0
Title: Prolog importing facts from a formatted text file Problem title: Prolog importing facts from a formatted text file Tags: io, prolog Problem: Prolog importing facts from a formatted text file I have the following input in a text file input.txt atom1,atom2,atom3 relation(atom1 ,[10,5,2]) relation(atom2 ,[3,10,2]) ...
Prolog importing facts from a formatted text file Prolog importing facts from a formatted text file io prolog a Prolog atom1 atom2 atom3 Prolog importing facts from a formatted text file I have the following input in a text file input.txt First line includes the list of atoms used in relation predicates in the file and...
[ 0.01416015625, -0.01055908203125, 0.00958251953125, 0.02978515625, -0.0023193359375, 0.0157470703125, 0.00020122528076171875, 0.004791259765625, -0.0069580078125, -0.03173828125, -0.007598876953125, 0.00099945068359375, -0.03515625, -0.02880859375, 0.0145263671875, 0.003570556640625, ...
[ 1250, 4867, 24927, 214, 15824, 7, 1295, 9384, 3674, 7986, 11435, 22995, 502, 34627, 418, 304, 363, 25632, 107730, 124326, 23972, 13315, 96853, 5303, 11814, 41911, 1653, 2063, 12638, 47143, 33636, 12989, 5117, 107, 57860, 5928, 53, 169, 2695...
[ 0.183349609375, 0.254638671875, 0.246826171875, 0.005584716796875, 0.201171875, 0.0814208984375, 0.11962890625, 0.16064453125, 0.078857421875, 0.1279296875, 0.1624755859375, 0.170166015625, 0.1441650390625, 0.203857421875, 0.04638671875, 0.02801513671875, 0.0914306640625, 0.0253753...
embed
71846360_c0
71846360
prolog
0
Title: Prolog: succ(X,Y) evade arguments are not sufficiently instantiated error? Problem title: Prolog: succ(X,Y) evade arguments are not sufficiently instantiated error? Tags: prolog Problem: Prolog: succ(X,Y) evade arguments are not sufficiently instantiated error? I have a program looking like this minimal example:...
Prolog: succ(X,Y) evade arguments are not sufficiently instantiated error? Prolog: succ(X,Y) evade arguments are not sufficiently instantiated error? prolog Prolog Prolog: succ(X,Y) evade arguments are not sufficiently instantiated error? I have a program looking like this minimal example: My aim now is to calculate th...
[ -0.003204345703125, 0.00872802734375, 0.0087890625, -0.0000934600830078125, 0.005523681640625, 0.0126953125, 0.01300048828125, 0.008544921875, 0.00665283203125, -0.020263671875, 0.01116943359375, -0.009765625, -0.01953125, -0.00732421875, 0.032958984375, 0.003082275390625, 0.00732421...
[ 1250, 4867, 166, 10060, 1542, 1723, 70890, 112, 10750, 959, 129980, 538, 34648, 14, 27686, 18499, 4, 502, 7, 1528, 16487, 1884, 20187, 27781, 464, 74481, 67, 77336, 276, 11782, 12, 30482, 10422, 43701, 5809, 72546, 91995, 390, 86869, 2967...
[ 0.1395263671875, 0.1998291015625, 0.2049560546875, 0.2486572265625, 0.1048583984375, 0.1661376953125, 0.2291259765625, 0.1510009765625, 0.2171630859375, 0.08642578125, 0.1689453125, 0.005096435546875, 0.1204833984375, 0.1180419921875, 0.017974853515625, 0.1788330078125, 0.04537963867...
embed
41620317_c0
41620317
prolog
0
Title: SWIProlog conditional sum inside list and rebuild Problem title: SWIProlog conditional sum inside list and rebuild Tags: prolog, list Problem: SWIProlog conditional sum inside list and rebuild one of my predicates gives me a list like this as output: [m(1,2,[v(1,y),v(1,y)]),m(1,6,[v(1,y),v(5,x)]),m(1,4,[v(3,x),v...
SWIProlog conditional sum inside list and rebuild SWIProlog conditional sum inside list and rebuild prolog list SWIProlog Power1 Power2 TotalPower SWIProlog conditional sum inside list and rebuild one of my predicates gives me a list like this as output: When the symbols inside the sublist with v elements are equal (li...
[ -0.00007963180541992188, 0.003753662109375, 0.01141357421875, 0.0155029296875, -0.005706787109375, 0.00732421875, 0.003936767578125, 0.019775390625, 0.021240234375, 0.008056640625, 0.0283203125, -0.006317138671875, 0.0242919921875, -0.01556396484375, -0.004669189453125, 0.0299072265625...
[ 159, 38969, 10752, 4867, 35431, 289, 10554, 46132, 5303, 456, 177149, 502, 17170, 418, 304, 33867, 105022, 1653, 2063, 1884, 140992, 14847, 26582, 1614, 6562, 678, 81, 80854, 105950, 5062, 113, 3688, 707, 1022, 101935, 25737, 21373, 67, 432...
[ 0.046539306640625, 0.198974609375, 0.1463623046875, 0.1884765625, 0.1776123046875, 0.053619384765625, 0.2052001953125, 0.1510009765625, 0.1937255859375, 0.0950927734375, 0.1822509765625, 0.08843994140625, 0.111572265625, 0.019500732421875, 0.038482666015625, 0.08154296875, 0.15234375...
embed
40885787_c1
40885787
prolog
1
not actually run Prolog. Basically, we need a full on implementation of SWI Prolog or GNU Prolog running below our Python script, and to be able to pipe user inputs into the current running instance of Prolog (without creating new instances) Thus far, we have experimented with the Python subprocess library and came up...
not actually run Prolog. Basically, we need a full on implementation of SWI Prolog or GNU Prolog running below our Python script, and to be able to pipe user inputs into the current running instance of Prolog (without creating new instances) Thus far, we have experimented with the Python subprocess library and came up...
[ 0.027099609375, -0.0026397705078125, 0.0098876953125, -0.0028533935546875, -0.01422119140625, 0.00927734375, 0.006744384765625, -0.0228271484375, 0.003692626953125, -0.044677734375, 0.0087890625, 0.038818359375, -0.0181884765625, 0.00038909912109375, 0.0162353515625, -0.01287841796875,...
[ 959, 20653, 11675, 1250, 4867, 12506, 3871, 4393, 98, 208124, 159, 38969, 707, 165132, 51042, 35064, 145581, 26499, 19048, 137158, 38937, 107730, 3934, 43581, 110527, 6056, 105233, 3525, 28007, 1614, 63923, 35773, 1295, 24927, 11584, 33, 25645,...
[ 0.13330078125, 0.1026611328125, 0.154541015625, 0.2340087890625, 0.287353515625, 0.000579833984375, 0.118408203125, 0.052215576171875, 0.043792724609375, 0.1536865234375, 0.0780029296875, 0.217529296875, 0.000396728515625, 0.189697265625, 0.1287841796875, 0.18017578125, 0.23815917968...
embed
28675542_c0
28675542
prolog
0
Title: Java-Prolog: How to pass arguments to arity 2 query? Problem title: Java-Prolog: How to pass arguments to arity 2 query? Tags: swi-prolog, prolog, java, ffi Problem: Java-Prolog: How to pass arguments to arity 2 query? I am a beginner level on both Prolog and Java. I am trying to link my Prolog program with Java...
Java-Prolog: How to pass arguments to arity 2 query? Java-Prolog: How to pass arguments to arity 2 query? swi-prolog prolog java ffi Java-Prolog How Jack John Jill Query Term Atom System.out.println q1.hasSolution Compound Variable q2.hasMoreSolutions System.out.print q2.nextSolution Java-Prolog: How to pass arguments ...
[ 0.020263671875, 0.01708984375, -0.009521484375, 0.00653076171875, 0.00145721435546875, 0.0244140625, -0.002410888671875, -0.00128936767578125, -0.00787353515625, -0.031005859375, 0.0169677734375, -0.01544189453125, -0.022705078125, 0.01397705078125, -0.0098876953125, -0.004425048828125...
[ 41925, 10752, 4867, 11249, 47, 27875, 10750, 7, 187, 2481, 116, 41, 1294, 91, 2452, 3454, 502, 79, 330, 24500, 21763, 4939, 3291, 1181, 58836, 53, 2994, 69728, 12353, 6056, 35662, 8096, 418, 10557, 102588, 15612, 31, 84572, 5442, 122880, ...
[ 0.1982421875, 0.1494140625, 0.2098388671875, 0.095947265625, 0.1207275390625, 0.1817626953125, 0.27587890625, 0.1290283203125, 0.1605224609375, 0.17919921875, 0.2001953125, 0.14794921875, 0.1480712890625, 0.003570556640625, 0.134033203125, 0.11572265625, 0.10614013671875, 0.0770874...
embed
47364739_c0
47364739
prolog
0
Title: How do I return a list based on an argument to a function in Prolog? Problem title: How do I return a list based on an argument to a function in Prolog? Tags: prolog Problem: How do I return a list based on an argument to a function in Prolog? Basically, I want to pass an argument to a function and depending on ...
How do I return a list based on an argument to a function in Prolog? How do I return a list based on an argument to a function in Prolog? prolog How Prolog Arpit Mechanical Suits Manoj Computer_Science Black_Mirror Dhruv Civil House_of_Cards Srishti Electronics Mr_Robot How do I return a list based on an argument to a ...
[ 0.00811767578125, -0.00124359130859375, 0.0019073486328125, 0.0040283203125, -0.0169677734375, -0.007171630859375, -0.00022983551025390625, -0.011962890625, -0.0079345703125, -0.0067138671875, 0.00518798828125, -0.00811767578125, -0.00823974609375, 0.015625, 0.01104736328125, 0.0040893...
[ 11249, 30646, 5303, 35509, 98, 10750, 47, 32354, 23, 1250, 4867, 10, 502, 1172, 6295, 230166, 1832, 14481, 1572, 897, 40139, 218054, 10074, 124693, 31611, 149696, 18543, 13038, 4390, 156119, 9292, 90441, 87673, 12724, 9190, 54, 142, 27875, ...
[ 0.06036376953125, 0.26123046875, 0.252197265625, 0.160888671875, 0.076416015625, 0.265625, 0.1500244140625, 0.2076416015625, 0.06585693359375, 0.184814453125, 0.26904296875, 0.02105712890625, 0.09503173828125, 0.0780029296875, 0.22021484375, 0.053436279296875, 0.060791015625, 0.016...
embed
28727415_c0
28727415
prolog
0
Title: Symbolic &amp; Numeric Calculation Problem title: Symbolic &amp; Numeric Calculation Tags: logic, prolog Problem: Symbolic & Numeric Calculation I'm a Computer Science student, on last semester we learned to program in Prolog. Now I'm trying to have fun with it. I'm trying to build a program that given a symboli...
Symbolic &amp; Numeric Calculation Symbolic &amp; Numeric Calculation logic prolog Symbolic Numeric Calculation Symbolic & Numeric Calculation I'm a Computer Science student, on last semester we learned to program in Prolog. Now I'm trying to have fun with it. I'm trying to build a program that given a symbolic/mathema...
[ -0.000896453857421875, 0.0169677734375, 0.003936767578125, 0.0286865234375, -0.006439208984375, 0.02197265625, -0.00701904296875, -0.00110626220703125, 0.0130615234375, -0.031982421875, -0.00150299072265625, 0.00153350830078125, 0.00160980224609375, 0.003814697265625, -0.006683349609375,...
[ 131899, 1771, 619, 25133, 93511, 212467, 2320, 62775, 502, 4867, 10, 40139, 28745, 9836, 4568, 49345, 97384, 1528, 23, 1250, 14240, 31577, 765, 7477, 678, 45367, 34475, 128201, 140363, 107730, 30646, 16750, 27781, 3293, 83, 93, 58134, 2472, ...
[ 0.2359619140625, 0.1297607421875, 0.038665771484375, 0.08953857421875, 0.163818359375, 0.1943359375, 0.072021484375, 0.14208984375, 0.114501953125, 0.2293701171875, 0.01617431640625, 0.04754638671875, 0.07147216796875, 0.1300048828125, 0.029388427734375, 0.0643310546875, 0.0533752441...
embed
33965378_c1
33965378
prolog
1
, length(H, Dim), init_zeroes_start(H, Fill), NewFill is Fill + 1, init_sublists_below_center(T, 0, Dim, NewFill). init_sublists_below_center([_|T], ToSkip, Dim, Fill) :- NewToSkip is ToSkip - 1, init_sublists_below_center(T, NewToSkip, Dim, Fill). init_center(_, ToSkip, _) :- ToSkip == -1. init_center([H|_], ToSkip, D...
, length(H, Dim), init_zeroes_start(H, Fill), NewFill is Fill + 1, init_sublists_below_center(T, 0, Dim, NewFill). init_sublists_below_center([_|T], ToSkip, Dim, Fill) :- NewToSkip is ToSkip - 1, init_sublists_below_center(T, NewToSkip, Dim, Fill). init_center(_, ToSkip, _) :- ToSkip == -1. init_center([H|_], ToSkip, D...
[ 0.002716064453125, 0.00958251953125, 0.0038909912109375, 0.01275634765625, -0.011962890625, 0.0179443359375, 0.000675201416015625, -0.0162353515625, 0.013427734375, 0.0101318359375, -0.0022125244140625, -0.00543212890625, 0.01611328125, 0.0311279296875, -0.007171630859375, -0.004425048...
[ 6, 4, 140909, 841, 45247, 247, 23, 217, 80510, 90, 17137, 140423, 2356, 919, 5713, 83, 997, 106, 22144, 6562, 17336, 30090, 618, 757, 194, 717, 294, 301, 254, 15772, 7763, 69112, 68940, 572, 28864, 26073, 12, 112140, 4527, 83279, 91958,...
[ 0.0248260498046875, 0.056976318359375, 0.2181396484375, 0.13134765625, 0.1812744140625, 0.014923095703125, 0.0836181640625, 0.14501953125, 0.1461181640625, 0.06298828125, 0.134521484375, 0.247802734375, 0.1712646484375, 0.15625, 0.2490234375, 0.0682373046875, 0.120849609375, 0.0843...
embed
22068723_c0
22068723
prolog
0
Title: SWI Prolog scalar multiplying with accumulators Problem title: SWI Prolog scalar multiplying with accumulators Tags: prolog, list, accumulator, reverse Problem: SWI Prolog scalar multiplying with accumulators so I've been working on the following question: Write a 3-place predicate scalarMult whose first argumen...
SWI Prolog scalar multiplying with accumulators SWI Prolog scalar multiplying with accumulators prolog list accumulator reverse SWI Prolog Result List1 List2 scalarMult1 SWI Prolog scalar multiplying with accumulators so I've been working on the following question: This is what I have done: The only trouble with this i...
[ -0.00125885009765625, 0.033935546875, 0.01611328125, 0.016357421875, -0.0179443359375, 0.01416015625, -0.0028228759765625, 0.00994873046875, 0.01409912109375, -0.0224609375, 0.0184326171875, 0.02392578125, -0.0252685546875, -0.007354736328125, 0.004913330078125, -0.01055908203125, 0....
[ 159, 38969, 1250, 4867, 146232, 42, 6024, 62479, 678, 183278, 22230, 502, 5303, 1290, 39531, 184, 126684, 32036, 304, 50657, 418, 20697, 4734, 63134, 118620, 3525, 80854, 10336, 3564, 5281, 27781, 2046, 2203, 1530, 163090, 4488, 10932, 18151,...
[ 0.06793212890625, 0.2208251953125, 0.1239013671875, 0.1982421875, 0.1396484375, 0.041107177734375, 0.0662841796875, 0.09765625, 0.05487060546875, 0.2158203125, 0.1412353515625, 0.093994140625, 0.181640625, 0.169677734375, 0.19189453125, 0.134765625, 0.2196044921875, 0.128173828125,...
embed
25782170_c0
25782170
prolog
0
Title: Prolog, getting right answer in terminal, but wrong answer when running a program Problem title: Prolog, getting right answer in terminal, but wrong answer when running a program Tags: prolog, prolog-toplevel, iso-prolog Problem: Prolog, getting right answer in terminal, but wrong answer when running a program T...
Prolog, getting right answer in terminal, but wrong answer when running a program Prolog, getting right answer in terminal, but wrong answer when running a program prolog prolog-toplevel iso-prolog Prolog GNU Daniel Diaz Copyright test2 test.pl test.pl:1 Prolog, getting right answer in terminal, but wrong answer when r...
[ 0.0224609375, 0.005462646484375, 0.01904296875, 0.01324462890625, -0.024658203125, 0.00579833984375, 0.0145263671875, 0.0198974609375, -0.003387451171875, -0.03515625, 0.002410888671875, 0.022705078125, -0.0184326171875, 0.01531982421875, 0.0198974609375, -0.009033203125, 0.000534057...
[ 1250, 4867, 20949, 7108, 35166, 33949, 1284, 44691, 51042, 1528, 23, 502, 13784, 67919, 13882, 3454, 165132, 11555, 4512, 4189, 3034, 2424, 3229, 33417, 62163, 20779, 24234, 30957, 14847, 33022, 11435, 58055, 903, 2046, 151117, 660, 3688, 186...
[ 0.16552734375, 0.25, 0.0501708984375, 0.1253662109375, 0.2042236328125, 0.239501953125, 0.053924560546875, 0.175048828125, 0.12939453125, 0.1302490234375, 0.06072998046875, 0.1424560546875, 0.0189666748046875, 0.08197021484375, 0.027740478515625, 0.1475830078125, 0.07861328125, 0.0...
embed
10756397_c0
10756397
prolog
0
Title: Native Prolog Shell Problem title: Native Prolog Shell Tags: expert-system, prolog Problem: Native Prolog Shell Recently I tried the book "Building Expert Systems in Prolog" which is freely available at http://www.amzi.com/ExpertSystemsInProlog . There is a code called native shell at the appendix along with a b...
Native Prolog Shell Native Prolog Shell expert-system prolog Native Prolog Shell Goal Rest Hist Body Native Prolog Shell Recently I tried the book "Building Expert Systems in Prolog" which is freely available at http://www.amzi.com/ExpertSystemsInProlog . There is a code called native shell at the appendix along with a...
[ 0.016845703125, 0.018798828125, -0.0020904541015625, 0.03955078125, -0.018310546875, 0.01904296875, -0.0245361328125, -0.0011444091796875, -0.00555419921875, -0.05419921875, 0.0081787109375, 0.004608154296875, -0.007659912109375, 0.00360107421875, 0.041015625, -0.0022735595703125, 0....
[ 353, 4935, 1250, 4867, 108362, 26808, 16751, 502, 2016, 289, 49756, 18763, 43960, 37842, 12877, 70523, 84837, 19882, 708, 219413, 84293, 10752, 18151, 24, 128019, 114689, 428, 425, 263, 71, 221160, 63399, 2967, 7103, 75463, 51042, 5201, 5, ...
[ 0.1602783203125, 0.2120361328125, 0.146240234375, 0.27001953125, 0.2413330078125, 0.17236328125, 0.1370849609375, 0.1165771484375, 0.09027099609375, 0.0274505615234375, 0.1591796875, 0.0760498046875, 0.0985107421875, 0.022247314453125, 0.0985107421875, 0.133056640625, 0.1201171875, ...
embed
43476971_c1
43476971
prolog
1
19, 43, 707, -99, 20, 32|_G3208], _G3247) ? creep Exception: (15) bubblesort([79, -67, 45, 54, 19, 43, 707, -99|...], _G3238) ? creep Exception: (14) bubblesort([55, -32, 79, -67, 45, 54, 19, 43|...], _G3232) ? creep Exception: (13) bubblesort([10101, -98, 55, -32, 79, -67, 45, 54|...], _G3226) ? creep Exception: (10) ...
19, 43, 707, -99, 20, 32|_G3208], _G3247) ? creep Exception: (15) bubblesort([79, -67, 45, 54, 19, 43, 707, -99|...], _G3238) ? creep Exception: (14) bubblesort([55, -32, 79, -67, 45, 54, 19, 43|...], _G3232) ? creep Exception: (13) bubblesort([10101, -98, 55, -32, 79, -67, 45, 54|...], _G3226) ? creep Exception: (10) ...
[ 0.00885009765625, 0.0167236328125, 0.01190185546875, -0.00274658203125, -0.007568359375, 0.02392578125, -0.0118408203125, -0.0146484375, -0.01806640625, 0.03466796875, 0.0238037109375, 0.015380859375, -0.005035400390625, -0.0164794921875, -0.00154876708984375, -0.017822265625, 0.0289...
[ 17846, 6260, 4, 158367, 20, 5046, 387, 2789, 724, 6460, 8318, 74329, 705, 49512, 254, 5443, 63928, 31592, 373, 73163, 62351, 22377, 18197, 2678, 8983, 75606, 131290, 31203, 11663, 17446, 91887, 28261, 963, 35046, 16665, 4859, 85416, 17857, ...
[ 0.1673583984375, 0.2100830078125, 0.044647216796875, 0.2119140625, 0.04638671875, 0.236572265625, 0.141357421875, 0.19482421875, 0.0555419921875, 0.183837890625, 0.18115234375, 0.1397705078125, 0.07281494140625, 0.2120361328125, 0.1805419921875, 0.00677490234375, 0.177734375, 0.145...
embed
33316832_c1
33316832
prolog
1
2: _G481 [c|_G368] [b,c,d] This will again call the recursion(code line 2) with the following value: cons(L1, [c|After], [b,c,d]). (L1 is unknown still now) And, prints - Line2: _G494 [c|_G368] [c,d] Now the next call will be : cons(L1, [c|After], [c,d]). But , I can see while printing the customized comments in the co...
2: _G481 [c|_G368] [b,c,d] This will again call the recursion(code line 2) with the following value: cons(L1, [c|After], [b,c,d]). (L1 is unknown still now) And, prints - Line2: _G494 [c|_G368] [c,d] Now the next call will be : cons(L1, [c|After], [c,d]). But , I can see while printing the customized comments in the co...
[ -0.008056640625, 0.007781982421875, 0.00077056884765625, 0.0250244140625, 0, 0.01165771484375, -0.00396728515625, 0.0019073486328125, 0.010009765625, -0.007171630859375, -0.006805419921875, -0.0186767578125, 0.0022430419921875, -0.0181884765625, 0.0164794921875, 0.02197265625, 0.0231...
[ 15573, 724, 185689, 126701, 71, 1221, 13438, 11782, 195625, 1830, 40899, 13315, 4958, 34292, 158, 7, 866, 418, 46327, 51, 69723, 7464, 5036, 28412, 16777, 304, 162823, 11737, 1957, 2448, 178036, 24626, 23, 18151, 6226, 60899, 47, 468, 2256,...
[ 0.11962890625, 0.052520751953125, 0.29052734375, 0.198486328125, 0.10125732421875, 0.0037841796875, 0.08612060546875, 0.18017578125, 0.18798828125, 0.0999755859375, 0.1326904296875, 0.0682373046875, 0.1177978515625, 0.1300048828125, 0.1956787109375, 0.116455078125, 0.0528564453125, ...
embed
49060740_c0
49060740
prolog
0
Title: PROLOG - conditional function Problem title: PROLOG - conditional function Tags: prolog Problem: PROLOG - conditional function How can I list list the names of courses having both male and female students registered for them. CODE: /*student(name,studnumb,age,sex)*/ student(braum,1234,22,male). student(lux,7839,...
PROLOG - conditional function PROLOG - conditional function prolog PROLOG GENDER PROLOG - conditional function How can I list list the names of courses having both male and female students registered for them. CODE: Unfortunately, I can not achieve the right query or conditional to print the list the names of courses h...
[ 0.02294921875, 0.0067138671875, 0.013916015625, 0.0101318359375, -0.019775390625, 0.016845703125, -0.0242919921875, -0.00787353515625, -0.00469970703125, -0.0125732421875, 0.01043701171875, -0.0123291015625, -0.0101318359375, -0.0205078125, 0.00775146484375, 0.033935546875, 0.0068969...
[ 10514, 47510, 35431, 289, 32354, 502, 4867, 527, 182065, 831, 87, 5303, 70, 123055, 111, 132073, 19441, 15044, 11280, 136, 117776, 25921, 189893, 100, 2856, 8244, 8399, 185397, 959, 69307, 7108, 41, 1294, 28412 ]
[ 0.14599609375, 0.21533203125, 0.1915283203125, 0.1064453125, 0.147705078125, 0.097900390625, 0.1800537109375, 0.0836181640625, 0.1654052734375, 0.057342529296875, 0.0287322998046875, 0.1695556640625, 0.01108551025390625, 0.1400146484375, 0.020416259765625, 0.1929931640625, 0.08422851...
embed
19618462_c0
19618462
prolog
0
Title: How to calculate intersection of Lists using recursion? Problem title: How to calculate intersection of Lists using recursion? Tags: prolog Problem: How to calculate intersection of Lists using recursion? The code successfully finds right intersection (runtime/debug, gtrace ) but after there is no common element...
How to calculate intersection of Lists using recursion? How to calculate intersection of Lists using recursion? prolog recursion How Lists List List1 El1 l_inclusion List2 Result NewList1 NewList2 How to calculate intersection of Lists using recursion? The code successfully finds right intersection (runtime/debug, gtra...
[ -0.0037078857421875, 0.011474609375, 0.00634765625, 0.00897216796875, -0.018310546875, 0.004913330078125, -0.01361083984375, -0.01226806640625, 0.0037078857421875, -0.0206298828125, 0.01611328125, 0.0205078125, -0.0035552978515625, 0.0106201171875, 0.03515625, 0.0076904296875, 0.0286...
[ 11249, 74481, 67, 1940, 7, 58994, 111, 32036, 17368, 195625, 1830, 502, 4867, 418, 540, 96, 67158, 304, 126684, 2356, 154663, 18151, 65771, 7413, 7108, 16428, 6032, 112, 85779, 39989, 7103, 110, 39210, 80854, 10433, 40101, 5303, 14602, 4188...
[ 0.0258636474609375, 0.200439453125, 0.041259765625, 0.1868896484375, 0.1787109375, 0.1903076171875, 0.0626220703125, 0.2271728515625, 0.055328369140625, 0.239501953125, 0.1551513671875, 0.09661865234375, 0.1612548828125, 0.0243682861328125, 0.0804443359375, 0.002685546875, 0.08551025...
embed
49980198_c0
49980198
prolog
0
Title: Another issue with prolog Problem title: Another issue with prolog Tags: prolog Problem: Another issue with prolog Im not sure why my husband function is giving me a false, the logic should be right. It gives a correct answer when I remove male(X) and female(Y). Everything else returns the proper answer. I am fa...
Another issue with prolog Another issue with prolog prolog Another Another issue with prolog Im not sure why my husband function is giving me a false, the logic should be right. It gives a correct answer when I remove male(X) and female(Y). Everything else returns the proper answer. I am fairly new with this language. ...
[ 0.0206298828125, 0.00799560546875, 0.01324462890625, -0.00787353515625, -0.035888671875, 0.0028533935546875, -0.0162353515625, -0.00958251953125, -0.0028076171875, -0.04638671875, 0.00201416015625, -0.0179443359375, -0.0076904296875, -0.0034942626953125, 0.0181884765625, 0.009765625, ...
[ 116267, 31089, 502, 4867, 678, 9077, 15400, 759, 71390, 32354, 68772, 163, 10, 98320, 62775, 5608, 7108, 76199, 26785, 35166, 87388, 11280, 1542, 136, 117776, 1723, 30646, 27798, 46876, 18151 ]
[ 0.087158203125, 0.126708984375, 0.17578125, 0.27197265625, 0.0318603515625, 0.0714111328125, 0.057586669921875, 0.064697265625, 0.21826171875, 0.196044921875, 0.0780029296875, 0.058380126953125, 0.00820159912109375, 0.252197265625, 0.1895751953125, 0.06805419921875, 0.1041259765625, ...
embed
51902113_c0
51902113
prolog
0
Title: how to pass parameters to a predicate in command prompt using swi prolog Problem title: how to pass parameters to a predicate in command prompt using swi prolog Tags: prolog, swi-prolog Problem: how to pass parameters to a predicate in command prompt using swi prolog i'm new to swi prolog and i'd like to pass th...
how to pass parameters to a predicate in command prompt using swi prolog how to pass parameters to a predicate in command prompt using swi prolog prolog swi-prolog swi use_module clp_distinct Grid Vars vars_in all_distinct Val mult3 how to pass parameters to a predicate in command prompt using swi prolog i'm new to swi...
[ -0.012939453125, 0.0096435546875, -0.00531005859375, 0.00543212890625, -0.0189208984375, 0.01239013671875, 0.007476806640625, 0.0002918243408203125, -0.01043701171875, -0.042724609375, 0.005828857421875, -0.01611328125, -0.00058746337890625, -0.004425048828125, -0.01141357421875, 0.019...
[ 3642, 47, 27875, 171859, 7, 1653, 2063, 67, 23, 75101, 105876, 17368, 2452, 502, 4867, 3454, 4527, 83279, 33139, 254, 46295, 38893, 31945, 3323, 285, 756, 4769, 3869, 363, 91, 1884, 10750, 13315, 54397, 1528, 86869, 8932, 38067, 759, 5094...
[ 0.0889892578125, 0.1019287109375, 0.17138671875, 0.279052734375, 0.0880126953125, 0.1651611328125, 0.226806640625, 0.1326904296875, 0.013092041015625, 0.16455078125, 0.2271728515625, 0.013153076171875, 0.181884765625, 0.1414794921875, 0.1978759765625, 0.1243896484375, 0.0652465820312...
embed
43051486_c0
43051486
prolog
0
Title: How can I catch a syntax error in Prolog? Problem title: How can I catch a syntax error in Prolog? Tags: prolog Problem: How can I catch a syntax error in Prolog? I have defined an operator # : :- op(500, yfx, #). I have written the following rules to check if a term is well-formed: valid(X):- integer(X). valid(...
How can I catch a syntax error in Prolog? How can I catch a syntax error in Prolog? prolog How Prolog Exp syntax_error ERROR Thread pdt_console_client_0_Default Process Syntax Operator SWI-Prolog amd64 How can I catch a syntax error in Prolog? I have defined an operator # : I have written the following rules to check i...
[ -0.002288818359375, 0.01141357421875, 0.01165771484375, 0.007415771484375, -0.006072998046875, 0.002655029296875, -0.0152587890625, 0.0089111328125, 0.00469970703125, -0.031982421875, 0.0018768310546875, -0.0076904296875, 0.00016021728515625, -0.007354736328125, 0.02294921875, 0.007751...
[ 11249, 831, 105556, 6002, 86531, 18499, 1250, 4867, 10, 23, 502, 60075, 188800, 151206, 136719, 13384, 40777, 222978, 2389, 187423, 11, 123996, 19010, 150922, 38969, 10752, 444, 13307, 87, 61924, 39933, 468, 91736, 12765, 2174, 13579, 5299, 5...
[ 0.018218994140625, 0.0631103515625, 0.2003173828125, 0.1644287109375, 0.2281494140625, 0.1966552734375, 0.1700439453125, 0.23681640625, 0.0335693359375, 0.052215576171875, 0.08038330078125, 0.19091796875, 0.1807861328125, 0.12353515625, 0.0172119140625, 0.05084228515625, 0.0362243652...
embed
64090698_c1
64090698
prolog
1
software(sfname(Mozilla Firefox),typeofsf(Web Application software),Accesstosrc(Yes-its open-source Software),licensefee(free-easily downloadable from the internet)). % hardware(hdname(H),typeofhd(D),hdtype(P)) :: H is the name of the hardware used in the computers where D is deteremined as which type of hardware and ...
software(sfname(Mozilla Firefox),typeofsf(Web Application software),Accesstosrc(Yes-its open-source Software),licensefee(free-easily downloadable from the internet)). % hardware(hdname(H),typeofhd(D),hdtype(P)) :: H is the name of the hardware used in the computers where D is deteremined as which type of hardware and ...
[ 0.004058837890625, -0.005157470703125, 0.013427734375, 0.021728515625, 0.00616455078125, 0.0062255859375, -0.0206298828125, -0.00433349609375, -0.00823974609375, -0.0107421875, -0.005126953125, -0.032470703125, 0.003143310546875, -0.0076904296875, -0.00121307373046875, -0.01513671875, ...
[ 10975, 7, 420, 11627, 9083, 169, 2298, 43568, 50986, 4390, 30474, 104921, 39450, 26531, 1952, 19437, 91480, 14481, 9803, 60427, 23752, 147881, 2242, 13, 32087, 1544, 7026, 1820, 1745, 76407, 20257, 841, 397, 683, 1984, 572, 83, 9351, 11814,...
[ 0.272216796875, 0.005828857421875, 0.16845703125, 0.1717529296875, 0.03533935546875, 0.0855712890625, 0.168701171875, 0.2413330078125, 0.25439453125, 0.1146240234375, 0.07568359375, 0.1466064453125, 0.051300048828125, 0.1578369140625, 0.1220703125, 0.1746826171875, 0.11572265625, 0...
embed
20105021_c0
20105021
prolog
0
Title: Confused on how Prolog assigns values. Why doesn&#x27;t Prolog bind X when there isn&#x27;t any parenthesis? Problem title: Confused on how Prolog assigns values. Why doesn&#x27;t Prolog bind X when there isn&#x27;t any parenthesis? Tags: prolog, operator-precedence, variables Problem: Confused on how Prolog ass...
Confused on how Prolog assigns values. Why doesn&#x27;t Prolog bind X when there isn&#x27;t any parenthesis? Confused on how Prolog assigns values. Why doesn&#x27;t Prolog bind X when there isn&#x27;t any parenthesis? prolog operator-precedence variables Confused Prolog Why Start Dest Confused on how Prolog assigns val...
[ 0.023193359375, 0.0133056640625, 0.00762939453125, 0.01611328125, -0.010986328125, 0.0272216796875, 0.0341796875, -0.0181884765625, 0.017822265625, -0.01171875, 0.00848388671875, 0.0030059814453125, -0.015380859375, 0.00860595703125, 0.00091552734375, 0.0028076171875, 0.0088500976562...
[ 106161, 33740, 3642, 1250, 4867, 95486, 142424, 44084, 22027, 3768, 18, 68557, 1193, 3229, 2685, 56112, 2499, 49129, 160291, 502, 39933, 4692, 37534, 6620, 77336, 13794, 262, 271, 17368, 159, 38969, 3773, 81979, 134031, 14240, 18151, 831, 583...
[ 0.107421875, 0.0843505859375, 0.04071044921875, 0.205322265625, 0.267822265625, 0.183349609375, 0.174560546875, 0.13720703125, 0.10498046875, 0.037109375, 0.1141357421875, 0.208251953125, 0.2161865234375, 0.04541015625, 0.01043701171875, 0.05657958984375, 0.1036376953125, 0.1826171...
embed
54833568_c0
54833568
prolog
0
Title: How to convert a list of numbers to a list of words in Prolog? Problem title: How to convert a list of numbers to a list of words in Prolog? Tags: gnu-prolog, prolog Problem: How to convert a list of numbers to a list of words in Prolog? I am trying to write a Prolog program such that given a list of numbers lik...
How to convert a list of numbers to a list of words in Prolog? How to convert a list of numbers to a list of words in Prolog? gnu-prolog prolog How Prolog Head Rest TranslatedHead TranslatedRest existence_error How to convert a list of numbers to a list of words in Prolog? I am trying to write a Prolog program such tha...
[ 0.0166015625, -0.0159912109375, 0.007110595703125, 0.007049560546875, 0.000713348388671875, 0.0184326171875, -0.00677490234375, 0.0019989013671875, 0.003753662109375, -0.0240478515625, -0.00103759765625, -0.0101318359375, -0.00909423828125, 0.001220703125, 0.0157470703125, -0.011352539...
[ 11249, 47, 96760, 5303, 101935, 111, 34153, 23, 1250, 4867, 10, 104155, 3454, 502, 44816, 49756, 11062, 143, 13025, 712, 1052, 525, 116311, 188800, 31577, 33022, 1528, 34475, 116, 138, 3934, 33636, 3630, 55547, 107, 18151, 72367, 706, 75463...
[ 0.04791259765625, 0.1026611328125, 0.18017578125, 0.1929931640625, 0.2091064453125, 0.05511474609375, 0.1981201171875, 0.05755615234375, 0.185546875, 0.2335205078125, 0.004150390625, 0.1239013671875, 0.1397705078125, 0.10137939453125, 0.1304931640625, 0.1395263671875, 0.02880859375, ...
embed