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
14227033_c0
14227033
prolog
0
Title: False value returned in Prolog? Problem title: False value returned in Prolog? Tags: prolog Problem: False value returned in Prolog? sitting(mary, james). sitting(rosie, andrew). sitting(kiera, tom). issitting(X, Y) :- sitting(X, Y). Hey guys, I basically want to check who the true or false values of who is sitt...
False value returned in Prolog? False value returned in Prolog? prolog Prolog False value returned in Prolog? Hey guys, I basically want to check who the true or false values of who is sitting next to who, When I type in the compiler A true value is returned, however, when I type A false value is returned (Which should...
[ 0.01214599609375, 0.01043701171875, 0.00250244140625, 0.0007171630859375, -0.0169677734375, 0.0081787109375, -0.00933837890625, -0.00183868408203125, -0.0081787109375, 0.00173187255859375, 0.005035400390625, -0.007171630859375, -0.0059814453125, 0.005401611328125, 0.011474609375, -0.00...
[ 22225, 184, 34292, 176377, 23, 1250, 4867, 502, 51484, 3444, 12765, 2750, 29568, 707, 98320, 142424, 83, 129842, 11737, 47, 10644, 9969, 34759, 3789, 17262, 124519, 18151, 38937, 12638, 7722, 162515, 37264, 79986, 28219, 101089, 123055, 10932, ...
[ 0.227294921875, 0.162109375, 0.2646484375, 0.2239990234375, 0.0843505859375, 0.193115234375, 0.253173828125, 0.1153564453125, 0.018524169921875, 0.050811767578125, 0.1483154296875, 0.0677490234375, 0.174072265625, 0.0158843994140625, 0.2489013671875, 0.16357421875, 0.0572509765625, ...
embed
51643790_c0
51643790
prolog
0
Title: swi prolog: conjunction and cut Problem title: swi prolog: conjunction and cut Tags: prolog, prolog-cut Problem: swi prolog: conjunction and cut I am trying to implement a prolog interpreter in java. I am trying to figure out how the ',' operator should work. I tried to implement an equivalent rule like this: an...
swi prolog: conjunction and cut swi prolog: conjunction and cut prolog prolog-cut swi prolog: conjunction and cut I am trying to implement a prolog interpreter in java. I am trying to figure out how the ',' operator should work. I tried to implement an equivalent rule like this: I am testing my implementation based on ...
[ 0.03369140625, 0.016845703125, 0.01287841796875, 0.0162353515625, -0.003662109375, 0.00836181640625, -0.00775146484375, 0.01202392578125, 0.01904296875, -0.0177001953125, -0.01373291015625, -0.006622314453125, -0.004241943359375, -0.0223388671875, 0.020263671875, -0.000762939453125, ...
[ 91, 2452, 502, 4867, 158, 17043, 10763, 136, 59226, 19774, 31577, 29479, 29481, 56, 23, 79, 330, 26366, 242, 4, 39933, 5608, 4488, 37842, 183234, 79986, 134234, 208124, 62775, 3647, 35064, 3034, 50218, 418, 304, 363, 140992, 8710, 156672, ...
[ 0.0675048828125, 0.235595703125, 0.158447265625, 0.23095703125, 0.03411865234375, 0.1326904296875, 0.0408935546875, 0.0789794921875, 0.1707763671875, 0.1612548828125, 0.013458251953125, 0.08624267578125, 0.1715087890625, 0.10284423828125, 0.009033203125, 0.1292724609375, 0.1818847656...
embed
66942109_c0
66942109
prolog
0
Title: Beginner Prolog question - comparison always returns false Problem title: Beginner Prolog question - comparison always returns false Tags: prolog Problem: Beginner Prolog question - comparison always returns false I have a very simple Prolog function but Prolog always returns false from the comparison and I can'...
Beginner Prolog question - comparison always returns false Beginner Prolog question - comparison always returns false prolog Beginner Prolog Length Acc NewList Nodes Beginner Prolog question - comparison always returns false I have a very simple Prolog function but Prolog always returns false from the comparison and I ...
[ 0.02587890625, 0.011474609375, 0.0017852783203125, 0.0186767578125, 0.0108642578125, -0.0030517578125, 0.004486083984375, 0.0091552734375, 0.0238037109375, 0.006622314453125, 0.03564453125, -0.021728515625, 0.0157470703125, -0.00872802734375, 0.00555419921875, -0.00885009765625, 0.01...
[ 67053, 56, 1250, 4867, 9655, 225490, 11343, 30646, 7, 98320, 502, 77554, 29899, 2356, 154663, 438, 988, 8781, 32354, 15400, 3444, 5646, 541, 120820, 229231, 3884, 5303, 11782, 910, 397, 647, 919, 44691, 38969, 21130, 16093, 927, 28282, 1381...
[ 0.1146240234375, 0.07574462890625, 0.1552734375, 0.2288818359375, 0.1474609375, 0.24853515625, 0.109619140625, 0.1541748046875, 0.009552001953125, 0.2296142578125, 0.1214599609375, 0.030181884765625, 0.101318359375, 0.046875, 0.147216796875, 0.06671142578125, 0.0125732421875, 0.030...
embed
23119995_c0
23119995
prolog
0
Title: Why won't my Prolog distance function work? Problem title: Why won't my Prolog distance function work? Tags: prolog Problem: Why won't my Prolog distance function work? This is what I have. distance([],[],0). distance([V1|T1],[V2|T2], sqrt((V1-V2)^2 + D2)):- distance([T1],[T2],D2). It gives the out of ...
Why won't my Prolog distance function work? Why won't my Prolog distance function work? prolog Why Prolog V1-V2 X1-Y1 Why won't my Prolog distance function work? This is what I have. It gives the out of global stack error. I also tried: and it says that arguments are not sufficiently instantiated. I'm trying ...
[ 0.0191650390625, 0.003662109375, -0.0042724609375, -0.006683349609375, 0.0035400390625, -0.0076904296875, -0.02392578125, 0.0003681182861328125, 0.00439453125, -0.042724609375, 0.01092529296875, -0.00830078125, -0.021240234375, -0.032958984375, -0.00762939453125, 0.00799560546875, 0....
[ 44084, 23742, 3768, 18, 759, 1250, 4867, 62488, 32354, 4488, 502, 310, 20268, 856, 304, 1193, 1723, 418, 765, 1810, 111, 7964, 177261, 18499, 37842, 442, 10750, 959, 129980, 34648, 31577, 74481, 91, 864, 3198, 425, 53, 17727, 8353, 997, ...
[ 0.085693359375, 0.11328125, 0.05902099609375, 0.0992431640625, 0.01226806640625, 0.1829833984375, 0.2607421875, 0.239990234375, 0.1903076171875, 0.14111328125, 0.123046875, 0.093017578125, 0.12841796875, 0.082275390625, 0.123046875, 0.0653076171875, 0.0897216796875, 0.068603515625,...
embed
78238850_c0
78238850
prolog
0
Title: check if object is a binary tree in prolog Problem title: check if object is a binary tree in prolog Tags: prolog, binary-tree Problem: check if object is a binary tree in prolog There is a task for prolog that sounds like this: write an istree predicate that returns true only if its argument is a binary tree. E...
check if object is a binary tree in prolog check if object is a binary tree in prolog prolog binary-tree Left Right Test_Goal Type Wrong check if object is a binary tree in prolog There is a task for prolog that sounds like this: write an istree predicate that returns true only if its argument is a binary tree. Example...
[ 0.029052734375, 0.0031280517578125, 0.01312255859375, -0.00142669677734375, -0.0034637451171875, 0.017333984375, -0.017822265625, 0.007415771484375, -0.01165771484375, -0.037841796875, -0.0086669921875, -0.0115966796875, -0.01361083984375, -0.009765625, 0.0050048828125, 0.01708984375, ...
[ 12765, 2174, 36746, 83, 10, 2394, 6635, 53201, 23, 502, 4867, 62600, 2480, 90911, 8647, 17903, 289, 60457, 35133, 66211, 102678, 33022, 1653, 2063, 67, 30646, 29568, 4734, 10750, 89536, 705, 18, 275, 17324, 173340, 72272, 110, 10002, 18151,...
[ 0.1431884765625, 0.113037109375, 0.239013671875, 0.0941162109375, 0.055084228515625, 0.21435546875, 0.173095703125, 0.267578125, 0.0285186767578125, 0.1695556640625, 0.219482421875, 0.25732421875, 0.016387939453125, 0.06256103515625, 0.1148681640625, 0.1358642578125, 0.0882568359375,...
embed
70901260_c0
70901260
prolog
0
Title: How can I implement the below problem in prolog? Problem title: How can I implement the below problem in prolog? Tags: prolog Problem: How can I implement the below problem in prolog? % Problem 1: implement get_age(Name, Age). This predicate % returns in Age the age in 2022 of the student with the given Name. % ...
How can I implement the below problem in prolog? How can I implement the below problem in prolog? prolog How Problem get_age Name Age Year NOT USE ASSERT Note Prolog How can I implement the below problem in prolog?
[ 0.003875732421875, 0.02001953125, 0.0211181640625, 0.0198974609375, -0.0291748046875, 0.035400390625, -0.010986328125, 0.005279541015625, 0, -0.01025390625, 0.027587890625, 0.0057373046875, -0.0216064453125, -0.007568359375, 0.0006103515625, -0.005584716796875, 0.002288818359375, -...
[ 11249, 831, 29479, 35064, 2967, 23, 502, 4867, 87, 15649, 2046, 4588, 15757, 72944, 42552, 86725, 78441, 70877, 56263, 18622, 1250 ]
[ 0.044036865234375, 0.0784912109375, 0.2080078125, 0.150634765625, 0.15234375, 0.0699462890625, 0.1602783203125, 0.234130859375, 0.00307464599609375, 0.1741943359375, 0.1060791015625, 0.19189453125, 0.1417236328125, 0.1793212890625, 0.17431640625, 0.08563232421875, 0.1187744140625, ...
embed
38481265_c0
38481265
prolog
0
Title: Prolog program to get an (integer) number as the sum of two integer squares, why does it not work? Problem title: Prolog program to get an (integer) number as the sum of two integer squares, why does it not work? Tags: prolog, number-theory, logical-purity, numbers, clpfd Problem: Prolog program to get an (integ...
Prolog program to get an (integer) number as the sum of two integer squares, why does it not work? Prolog program to get an (integer) number as the sum of two integer squares, why does it not work? prolog number-theory logical-purity numbers clpfd Prolog Prolog program to get an (integer) number as the sum of two integ...
[ 0.0047607421875, 0.0079345703125, 0.01708984375, 0.0260009765625, -0.0191650390625, 0.0184326171875, -0.0140380859375, 0.005615234375, 0.005615234375, -0.02490234375, 0.00811767578125, 0.00019359588623046875, -0.018310546875, -0.00096893310546875, 0.00885009765625, -0.004241943359375, ...
[ 1250, 4867, 1528, 47, 2046, 6191, 1505, 14012, 237, 10554, 111, 6626, 892, 108047, 15400, 14602, 442, 959, 4488, 502, 62775, 4717, 101935, 39557, 71, 72134, 52080, 3444, 34475, 436, 76199, 26255, 136, 335, 62, 304, 997, 4263, 18, 142424, ...
[ 0.1727294921875, 0.253173828125, 0.1907958984375, 0.05963134765625, 0.1143798828125, 0.1693115234375, 0.10430908203125, 0.1619873046875, 0.0980224609375, 0.1851806640625, 0.03350830078125, 0.1395263671875, 0.1312255859375, 0.1610107421875, 0.1329345703125, 0.08538818359375, 0.0286712...
embed
64777980_c0
64777980
prolog
0
Title: Prolog: Implement Rule with Optional Facts Problem title: Prolog: Implement Rule with Optional Facts Tags: prolog Problem: Prolog: Implement Rule with Optional Facts If I have a disease disease1 which has five symptoms; symptom1 , symptom2 , symptom3 , symptom4 and symptom5 but symptom5 is optional. Would this b...
Prolog: Implement Rule with Optional Facts Prolog: Implement Rule with Optional Facts prolog Prolog Implement Rule Optional Facts disease1 symptom1 symptom2 symptom3 symptom4 symptom5 John has_disease1 Person Prolog: Implement Rule with Optional Facts If I have a disease disease1 which has five symptoms; symptom1 , sym...
[ 0.035888671875, -0.0003719329833984375, 0.00604248046875, 0.0341796875, -0.0103759765625, 0.017822265625, -0.0047607421875, -0.0028076171875, -0.002197265625, -0.0220947265625, 0.004791259765625, -0.00341796875, -0.009033203125, 0.0001735687255859375, 0.0014801025390625, 0.015869140625...
[ 1250, 4867, 12, 153941, 139118, 678, 86769, 289, 132640, 502, 7, 70997, 418, 128668, 304, 363, 617, 758, 4939, 1556, 3827, 13, 6991, 15270, 4263, 87, 765, 10, 3129, 43606, 153698, 136, 1284, 83, 35829, 5, 154559, 903, 2965, 3917, 47, ...
[ 0.1505126953125, 0.2235107421875, 0.02276611328125, 0.232666015625, 0.2230224609375, 0.1202392578125, 0.2264404296875, 0.1893310546875, 0.203857421875, 0.10107421875, 0.001251220703125, 0.185546875, 0.05072021484375, 0.2340087890625, 0.037841796875, 0.06890869140625, 0.09228515625, ...
embed
22855251_c0
22855251
prolog
0
Title: Prolog Zip Function Problem title: Prolog Zip Function Tags: prolog Problem: Prolog Zip Function Im in rew to Prolog. I'm trying to write a zip function. The question goes like this. zip(L1, L2, X) : The list X is formed by “zipping” the first 2 arguments. the result should be like this: ?- zip([a, b, c], [x, y,...
Prolog Zip Function Prolog Zip Function prolog Prolog Zip Prolog Zip Function Im in rew to Prolog. I'm trying to write a zip function. The question goes like this. zip(L1, L2, X) : The list X is formed by “zipping” the first 2 arguments. the result should be like this: I have done this so far. I can get the result for ...
[ 0.01190185546875, 0.01177978515625, 0.00189208984375, 0.0120849609375, -0.015869140625, 0.019287109375, -0.033447265625, 0.004791259765625, 0.016845703125, 0.0106201171875, 0.005523681640625, 0.00726318359375, -0.01513671875, 0.0198974609375, -0.00775146484375, 0.0390625, 0.013793945...
[ 1250, 4867, 162150, 28670, 10763, 502, 3370, 434, 47, 31577, 33022, 68330, 32354, 9655, 132, 866, 418, 339, 304, 1193, 5303, 100, 4806, 390, 708, 26783, 5117, 116, 10750, 16750, 1884, 2060, 2046, 138, 4216, 2208, 1632, 4358, 3115, 6496, ...
[ 0.1376953125, 0.2274169921875, 0.251708984375, 0.1539306640625, 0.051910400390625, 0.0919189453125, 0.0188140869140625, 0.04168701171875, 0.0123291015625, 0.0249176025390625, 0.08251953125, 0.252685546875, 0.174072265625, 0.012176513671875, 0.031494140625, 0.1317138671875, 0.07385253...
embed
63876079_c0
63876079
prolog
0
Title: Are there formal systems that allow you to make human-like higher-order statements? Problem title: Are there formal systems that allow you to make human-like higher-order statements? Tags: logic-programming, artificial-intelligence, logic, prolog Problem: Are there formal systems that allow you to make human-lik...
Are there formal systems that allow you to make human-like higher-order statements? Are there formal systems that allow you to make human-like higher-order statements? logic-programming artificial-intelligence logic prolog Prolog Are there formal systems that allow you to make human-like higher-order statements? For hu...
[ 0.031494140625, 0.007232666015625, 0.0005035400390625, -0.0030364990234375, 0.01324462890625, -0.00119781494140625, 0.001861572265625, -0.0177001953125, -0.0033721923828125, -0.039306640625, 0.00775146484375, -0.00177001953125, -0.036865234375, -0.029052734375, 0.0174560546875, -0.0121...
[ 2685, 23113, 76519, 63769, 3249, 14135, 5062, 77546, 80596, 63805, 7, 62775, 28966, 66733, 130687, 502, 4867, 1250, 450, 398, 1326, 118103, 4552, 6083, 47, 9, 5809, 11341, 76228, 74189, 6002, 86531, 1061, 187906, 83, 18775, 4939, 10, 332, ...
[ 0.0693359375, 0.2449951171875, 0.2125244140625, 0.1397705078125, 0.1207275390625, 0.2047119140625, 0.2261962890625, 0.181884765625, 0.2432861328125, 0.255615234375, 0.1580810546875, 0.1162109375, 0.121337890625, 0.0819091796875, 0.08331298828125, 0.10406494140625, 0.25390625, 0.164...
embed
78765403_c0
78765403
prolog
0
Title: How does Prolog "redo" search when backtracking Problem title: How does Prolog "redo" search when backtracking Tags: prolog, depth-first-search, backtracking Problem: How does Prolog "redo" search when backtracking I think that I understand how Prolog uses unification and backtracking to find...
How does Prolog "redo" search when backtracking How does Prolog "redo" search when backtracking prolog depth-first-search backtracking How Prolog How does Prolog "redo" search when backtracking I think that I understand how Prolog uses unification and backtracking to find the first match. However I'...
[ 0.01129150390625, 0.02587890625, 0.0289306640625, 0.02978515625, -0.0142822265625, -0.01129150390625, -0.00537109375, 0.000690460205078125, 0.007171630859375, -0.01287841796875, 0.0166015625, -0.0272216796875, 0.018310546875, 0.0003185272216796875, 0.01251220703125, -0.0048828125, 0....
[ 11249, 14602, 1250, 4867, 56693, 33938, 3229, 4420, 125728, 214, 502, 168867, 13448, 271, 86250, 28219, 4527, 51, 41274, 136, 7413, 5117, 14858, 7941, 2367, 442, 54, 37170, 17368, 2819, 9069, 21130, 5584, 3642, 83, 29479, 35107, 7279, 88832...
[ 0.095947265625, 0.0311431884765625, 0.188232421875, 0.25634765625, 0.27099609375, 0.253662109375, 0.07177734375, 0.1885986328125, 0.263427734375, 0.10687255859375, 0.1273193359375, 0.1260986328125, 0.05523681640625, 0.006988525390625, 0.193115234375, 0.07733154296875, 0.0626831054687...
embed
26635134_c0
26635134
prolog
0
Title: check/3 predicate to get alternate elements from a list Problem title: check/3 predicate to get alternate elements from a list Tags: prolog Problem: check/3 predicate to get alternate elements from a list I have a predicate check/3 used as, e.g., check(A,B,C) . All three arguments are lists: C is the master list...
check/3 predicate to get alternate elements from a list check/3 predicate to get alternate elements from a list prolog a check/3 predicate to get alternate elements from a list I have a predicate check/3 used as, e.g., check(A,B,C) . All three arguments are lists: C is the master list A contains items which have an odd...
[ 0.003082275390625, 0.0257568359375, 0.01104736328125, -0.0059814453125, -0.01080322265625, 0.021240234375, -0.023681640625, 0.0103759765625, 0.0177001953125, -0.000682830810546875, 0.0133056640625, 0.01025390625, -0.0101318359375, -0.0026092529296875, -0.0031585693359375, 0.01116943359...
[ 12765, 18113, 1653, 2063, 67, 2046, 75939, 13, 80854, 1295, 5303, 502, 4867, 11814, 284, 571, 441, 17262, 10750, 313, 31347, 62, 70541, 55769, 70270, 63262, 3853, 31577, 28282, 6626, 366, 2481, 1528, 54397, 86869, 442, 49146, 50960, 22466, ...
[ 0.216064453125, 0.266357421875, 0.143310546875, 0.16796875, 0.06719970703125, 0.1116943359375, 0.200927734375, 0.0924072265625, 0.1937255859375, 0.1107177734375, 0.18603515625, 0.120849609375, 0.1502685546875, 0.03399658203125, 0.031890869140625, 0.04974365234375, 0.045745849609375, ...
embed
53902095_c0
53902095
prolog
0
Title: Prolog Output Gives False After True Problem title: Prolog Output Gives False After True Tags: prolog-toplevel, prolog Problem: Prolog Output Gives False After True I have a prolog program to represent the flights between two states with their costs. My program is this: flight(newyork,washington,7). %its mean th...
Prolog Output Gives False After True Prolog Output Gives False After True prolog-toplevel prolog Prolog Output Gives After Prolog Output Gives False After True I have a prolog program to represent the flights between two states with their costs. My program is this: Now, When I write a query like this: its give me true ...
[ 0.043212890625, 0.0126953125, 0.017822265625, 0.0279541015625, -0.012451171875, 0.00286865234375, 0.00001811981201171875, 0.01611328125, -0.00909423828125, -0.0034942626953125, -0.002044677734375, 0.000820159912109375, -0.0054931640625, 0.0037384033203125, 0.005828857421875, -0.0005455...
[ 1250, 4867, 13538, 7077, 77878, 7, 22225, 184, 24372, 87599, 502, 13784, 67919, 1528, 33636, 113014, 17721, 6626, 117249, 84458, 903, 14847, 33022, 41, 1884, 6863, 8337, 163, 29568, 1294, 43240, 4127, 76199, 33671, 538, 136, 7103, 98320, 23...
[ 0.180419921875, 0.2430419921875, 0.1824951171875, 0.1295166015625, 0.1580810546875, 0.0723876953125, 0.2022705078125, 0.1549072265625, 0.1707763671875, 0.257080078125, 0.128173828125, 0.03582763671875, 0.0889892578125, 0.13330078125, 0.100830078125, 0.1385498046875, 0.0433349609375, ...
embed
55483479_c1
55483479
prolog
1
: main1:-explain1(_, happy(john), _), fail. main2:-explain2(_, happy(john), _, T), writeln(T), fail. explain1(C, E, P):- C = ['True'], p(C, E, P), write('Explaining '), write(E), write('. An explanation is: '), write(C), write(' with probability '), write(P), nl. explain1(C, E, P):- p(C, E, P), not(C = ['True']), write...
: main1:-explain1(_, happy(john), _), fail. main2:-explain2(_, happy(john), _, T), writeln(T), fail. explain1(C, E, P):- C = ['True'], p(C, E, P), write('Explaining '), write(E), write('. An explanation is: '), write(C), write(' with probability '), write(P), nl. explain1(C, E, P):- p(C, E, P), not(C = ['True']), write...
[ 0.0091552734375, 0.0159912109375, 0.0179443359375, 0.036865234375, -0.00927734375, -0.004058837890625, 0.004302978515625, -0.007049560546875, 0.0108642578125, -0.0185546875, 0.001007080078125, 0.018798828125, -0.0103759765625, -0.0026092529296875, 0.021728515625, 0.015625, 0.02600097...
[ 152, 5201, 82825, 9, 83613, 16442, 418, 132, 454, 17723, 66159, 19, 247, 101, 35782, 5, 304, 12, 384, 33022, 618, 73342, 441, 241, 4, 436, 313, 2203, 882, 915, 19279, 7290, 14653, 647, 893, 187136, 678, 37242, 2481, 683, 13169, 959, ...
[ 0.1036376953125, 0.1812744140625, 0.1473388671875, 0.029205322265625, 0.2100830078125, 0.281494140625, 0.09991455078125, 0.030487060546875, 0.0384521484375, 0.1998291015625, 0.1329345703125, 0.09893798828125, 0.052825927734375, 0.0245361328125, 0.217529296875, 0.06610107421875, 0.141...
embed
67747443_c1
67747443
prolog
1
les,X) . here's my go functors: go(X). go(X,Y). Here's my travel/2 predicate: travel(X,Y) :- byCar(X,Y). travel(X,Y) :- byCar(X,Z), travel(Z,Y). travel(X,Y) :- byTrain(X,Y). travel(X,Y) :- byTrain(X,Z), travel(Z,Y). travel(X,Y) :- byPlane(X,Y). travel(X,Y) :- byPlane(X,Z), travel(Z,Y). However, I'm having trouble with ...
les,X) . here's my go functors: go(X). go(X,Y). Here's my travel/2 predicate: travel(X,Y) :- byCar(X,Y). travel(X,Y) :- byCar(X,Z), travel(Z,Y). travel(X,Y) :- byTrain(X,Y). travel(X,Y) :- byTrain(X,Z), travel(Z,Y). travel(X,Y) :- byPlane(X,Y). travel(X,Y) :- byPlane(X,Z), travel(Z,Y). However, I'm having trouble with ...
[ 0.0194091796875, 0.01324462890625, -0.000774383544921875, -0.01177978515625, 0.0184326171875, 0.0284423828125, -0.007171630859375, -0.0244140625, 0.00194549560546875, -0.0498046875, 0.00262451171875, -0.002197265625, -0.0322265625, 0.00110626220703125, -0.0234375, 0.007354736328125, ...
[ 199, 1542, 5, 3688, 759, 738, 7477, 18770, 7, 12, 194, 1723, 11853, 26983, 12477, 1653, 2063, 67, 15772, 390, 21851, 1511, 28542, 78680, 33306, 19441, 63134, 18113, 724, 527, 2203, 990, 11675, 9655, 2046, 705, 132, 1405, 15477, 2400, 15...
[ 0.1973876953125, 0.154052734375, 0.009368896484375, 0.0484619140625, 0.083740234375, 0.1669921875, 0.157470703125, 0.145751953125, 0.004791259765625, 0.003021240234375, 0.035400390625, 0.14990234375, 0.00396728515625, 0.277099609375, 0.1839599609375, 0.207763671875, 0.221435546875, ...
embed
39645187_c0
39645187
prolog
0
Title: replacing elements between two lists using prolog Problem title: replacing elements between two lists using prolog Tags: prolog, list Problem: replacing elements between two lists using prolog My task is to make myReplace(E1,L1,E2,L2) such that the very first occurrence of E1 in L1 gets replaced by E2 and is ret...
replacing elements between two lists using prolog replacing elements between two lists using prolog prolog list prolog replacing elements between two lists using prolog My task is to make myReplace(E1,L1,E2,L2) such that the very first occurrence of E1 in L1 gets replaced by E2 and is returned in L2 . I have written th...
[ 0.0068359375, 0.0135498046875, -0.006256103515625, 0.00110626220703125, 0.001983642578125, 0.01287841796875, -0.0225830078125, 0.00994873046875, 0.009765625, 0.00146484375, 0.0283203125, 0.007080078125, 0.004119873046875, -0.006683349609375, 0.0220947265625, 0.004730224609375, 0.0170...
[ 456, 133266, 214, 80854, 17721, 6626, 5303, 17368, 502, 4867, 7, 66211, 3249, 759, 4332, 23935, 647, 418, 866, 304, 10461, 6044, 4552, 5117, 74918, 42, 241, 23, 339, 91995, 136, 176377, 59121, 35064, 151552, 18151, 20697, 155965, 33306, 5...
[ 0.1104736328125, 0.1800537109375, 0.027679443359375, 0.2139892578125, 0.212890625, 0.154541015625, 0.2281494140625, 0.072509765625, 0.1903076171875, 0.255859375, 0.001373291015625, 0.12451171875, 0.03125, 0.1898193359375, 0.16357421875, 0.26025390625, 0.1119384765625, 0.10864257812...
embed
23176263_c0
23176263
prolog
0
Title: Appending lists in Prolog with functor Problem title: Appending lists in Prolog with functor Tags: prolog, functor, append Problem: Appending lists in Prolog with functor I am trying to use Prolog's append and length predicates for the first time in order to split a list, and I believe it requires a recursive so...
Appending lists in Prolog with functor Appending lists in Prolog with functor prolog functor append Appending Prolog Appending lists in Prolog with functor I am trying to use Prolog's append and length predicates for the first time in order to split a list, and I believe it requires a recursive solution. I am new to Pr...
[ 0.00885009765625, 0.032958984375, 0.0147705078125, 0.0111083984375, -0.00775146484375, 0.016845703125, 0.005157470703125, 0.00170135498046875, 0.005859375, -0.0260009765625, 0.00823974609375, -0.00592041015625, -0.0155029296875, 0.007415771484375, 0.0177001953125, 0.0030670166015625, ...
[ 5787, 96819, 5303, 23, 1250, 4867, 678, 7477, 18770, 502, 114689, 71, 31577, 4527, 136, 140909, 1653, 2063, 5117, 1733, 65450, 18822, 144570, 195625, 5844, 29806, 4358, 44177, 2967, 84751, 18151, 140992, 51776, 442, 14602, 105233, 45646, 248,...
[ 0.115478515625, 0.15771484375, 0.2139892578125, 0.046112060546875, 0.16162109375, 0.2373046875, 0.09796142578125, 0.1746826171875, 0.1712646484375, 0.1241455078125, 0.239990234375, 0.1986083984375, 0.0140380859375, 0.01806640625, 0.0322265625, 0.14306640625, 0.13330078125, 0.129028...
embed
12884876_c0
12884876
prolog
0
Title: Prolog simple program Problem title: Prolog simple program Tags: prolog, dcg Problem: Prolog simple program I am writing a little Prolog program, which is expected to do something as following: ?-input([allan,is,a,name]). true. ?-input([Is,allan,a,name]). true. and here is my code: % Simple answering agent input...
Prolog simple program Prolog simple program prolog dcg Prolog Simple Text Statement Thing Category Query Prolog simple program I am writing a little Prolog program, which is expected to do something as following: and here is my code: the input([allan,is,a,name]). part seems working fine, but there is a trouble with the...
[ 0.00921630859375, -0.0021514892578125, -0.00732421875, 0.0206298828125, -0.003082275390625, 0.003448486328125, 0.002960205078125, -0.006744384765625, 0.01153564453125, -0.05078125, 0.00958251953125, -0.0024261474609375, -0.041748046875, 0.01068115234375, -0.0009002685546875, 0.01635742...
[ 1250, 4867, 8781, 1528, 502, 104, 238, 177, 60552, 24129, 22836, 6003, 49057, 58836, 32562, 10176, 84751, 25632, 3688, 18151, 107730, 5952, 19, 164, 11, 11627, 2831, 37202, 20697, 5885, 1284, 63134, 41, 1294, 100, 2174, 10644, 23, 29598, ...
[ 0.1923828125, 0.276123046875, 0.193359375, 0.1800537109375, 0.169921875, 0.0050048828125, 0.01629638671875, 0.08148193359375, 0.149169921875, 0.1312255859375, 0.1470947265625, 0.05682373046875, 0.1712646484375, 0.1409912109375, 0.115478515625, 0.095947265625, 0.1148681640625, 0.053...
embed
4951760_c1
4951760
prolog
1
8) or(true, true, true) ? creep Exit: (7) start_solve_clause([true, true, true]) ? creep Call: (7) sat([[true, true]]) ? Prolog Source % Knowledge base or(true, true, true). or(false, false, false). or(true, false, true). or(false, true, true). or(not(true), true, true). or(not(false), false, true). or(not(true), false...
8) or(true, true, true) ? creep Exit: (7) start_solve_clause([true, true, true]) ? creep Call: (7) sat([[true, true]]) ? Prolog Source % Knowledge base or(true, true, true). or(false, false, false). or(true, false, true). or(false, true, true). or(not(true), true, true). or(not(false), false, true). or(not(true), false...
[ 0.0306396484375, 0.0198974609375, 0.005523681640625, 0.01422119140625, -0.027099609375, 0.0234375, -0.01092529296875, -0.0115966796875, -0.00244140625, -0.0064697265625, -0.010498046875, 0.02001953125, -0.0252685546875, 0.02978515625, 0.00823974609375, -0.0069580078125, 0.01287841796...
[ 65034, 707, 9774, 13, 4, 29568, 705, 49512, 254, 5443, 217, 8696, 4034, 86918, 18347, 4032, 26265, 11736, 1250, 4867, 77641, 1745, 191428, 3647, 8710, 98320, 10869, 75210, 3115, 814, 26253, 58745, 1218, 379, 15772, 9874, 100700, 81827, 3323...
[ 0.23779296875, 0.21826171875, 0.1932373046875, 0.053314208984375, 0.0552978515625, 0.2244873046875, 0.02984619140625, 0.1783447265625, 0.1298828125, 0.1427001953125, 0.1180419921875, 0.099853515625, 0.0975341796875, 0.1580810546875, 0.0771484375, 0.1146240234375, 0.19482421875, 0.1...
embed
49906591_c0
49906591
prolog
0
Title: Prolog - Recursive with facts Problem title: Prolog - Recursive with facts Tags: prolog Problem: Prolog - Recursive with facts Firstly, I want to mention that this question was asked in a previous exam but I don't quite understand the answer. I just need someone to shed some light. The code is decribed as follow...
Prolog - Recursive with facts Prolog - Recursive with facts prolog Prolog Recursive find_ Prolog - Recursive with facts Firstly, I want to mention that this question was asked in a previous exam but I don't quite understand the answer. I just need someone to shed some light. The code is decribed as follow : Let's say w...
[ 0.00927734375, -0.0062255859375, 0.0024566650390625, 0.00897216796875, -0.0128173828125, 0.0078125, -0.0230712890625, 0.021240234375, 0.007659912109375, -0.0247802734375, 0.0111083984375, -0.01708984375, -0.01434326171875, -0.0079345703125, 0.015869140625, -0.0052490234375, 0.0208740...
[ 1250, 4867, 853, 48650, 5844, 678, 15824, 502, 7413, 42276, 28219, 35166, 67175, 22729, 18151, 8, 33692, 11782, 454, 41600, 567, 77816, 186, 2203, 420, 31, 42, 18, 117371, 195625, 7730, 51, 40383, 756, 7722, 34292, 990, 304, 15400, 959, ...
[ 0.146240234375, 0.2318115234375, 0.055450439453125, 0.2122802734375, 0.1669921875, 0.11083984375, 0.155029296875, 0.0931396484375, 0.19580078125, 0.071533203125, 0.05194091796875, 0.1500244140625, 0.00250244140625, 0.001556396484375, 0.166748046875, 0.047210693359375, 0.0367126464843...
embed
20150832_c0
20150832
prolog
0
Title: prolog input unknown variable in read command Problem title: prolog input unknown variable in read command Tags: prolog Problem: prolog input unknown variable in read command I have: byCar(auckland,hamilton). byCar(hamilton,raglan). travelSimple2:- write('Travel'),nl, write('From where '),read(From), write('To w...
prolog input unknown variable in read command prolog input unknown variable in read command prolog travelSimple2 Travel Using Transport Step prolog input unknown variable in read command I have: First I ask a query: Prolog then answer but when I ask it answered so my question is how to make the prolog answer (X=car) li...
[ 0.01513671875, 0.00799560546875, -0.01300048828125, 0.00830078125, 0.0167236328125, 0.01806640625, 0.01226806640625, -0.0029449462890625, 0.000274658203125, -0.0576171875, 0.00390625, -0.006683349609375, -0.0185546875, 0.009521484375, 0.00897216796875, -0.0225830078125, 0.00390625, ...
[ 502, 4867, 107730, 51, 69723, 77336, 12301, 75101, 26983, 33209, 304, 30720, 20913, 50478, 23972, 26458, 41, 1294, 1250, 35166, 194663, 3642, 3249, 1542, 1369, 3284, 1884, 5117, 64457, 72272, 7722, 21373, 12921 ]
[ 0.16455078125, 0.270263671875, 0.1441650390625, 0.0517578125, 0.1728515625, 0.1966552734375, 0.1746826171875, 0.1798095703125, 0.1375732421875, 0.09033203125, 0.09051513671875, 0.153076171875, 0.1197509765625, 0.10272216796875, 0.021148681640625, 0.0958251953125, 0.08416748046875, ...
embed
52906252_c0
52906252
prolog
0
Title: Get member of json term Problem title: Get member of json term Tags: prolog, swi-prolog, json Problem: Get member of json term I have an API endpoint which returns an array of items. I want to get every name from the array of items. The array of items is: [ { id: 30, name: "B", created_at: "2018-10-15 14:26:23",...
Get member of json term Get member of json term prolog swi-prolog json Get created_at updated_at Object HREF http_get Get member of json term I have an API endpoint which returns an array of items. I want to get every name from the array of items. The array of items is: I currently retrieve it like this: Then I have a ...
[ 0.0140380859375, 0.00396728515625, 0.01904296875, 0.002227783203125, -0.01458740234375, 0.00506591796875, -0.00274658203125, 0.0257568359375, -0.00133514404296875, -0.040283203125, 0.0218505859375, 0.0250244140625, -0.01385498046875, -0.01519775390625, 0.0033111572265625, 0.00233459472...
[ 20779, 32786, 111, 1647, 1681, 13579, 502, 4867, 91, 2452, 3454, 75935, 257, 150011, 134549, 22439, 28482, 1621, 3794, 61687, 3564, 38496, 30646, 10298, 53, 55769, 3444, 2046, 11907, 9351, 1295, 82424, 3996, 3134, 1884, 903, 32354, 28412, 3...
[ 0.0958251953125, 0.2783203125, 0.142822265625, 0.1202392578125, 0.22802734375, 0.259033203125, 0.1082763671875, 0.2210693359375, 0.00714111328125, 0.154296875, 0.10205078125, 0.1312255859375, 0.03289794921875, 0.171875, 0.2176513671875, 0.0892333984375, 0.197021484375, 0.0615234375...
embed
69804912_c0
69804912
prolog
0
Title: finding the number of solutions in a list on prolog Problem title: finding the number of solutions in a list on prolog Tags: list, prolog, prolog-findall Problem: finding the number of solutions in a list on prolog I am trying to find how to find the number of solutions in a script. my current script is: ksol(K,...
finding the number of solutions in a list on prolog finding the number of solutions in a list on prolog list prolog prolog-findall Kset Rest K-N N-1 Queens finding the number of solutions in a list on prolog I am trying to find how to find the number of solutions in a script. my current script is: more specifically, wi...
[ 0.01312255859375, 0.017333984375, 0.00921630859375, 0.00469970703125, -0.00543212890625, -0.02001953125, -0.004669189453125, -0.003509521484375, 0.01068115234375, -0.041259765625, -0.01318359375, -0.01507568359375, 0.0021514892578125, 0.0167236328125, 0.007171630859375, 0.0043640136718...
[ 90791, 14012, 111, 51347, 23, 5303, 98, 502, 4867, 70, 111607, 5584, 341, 3509, 49756, 839, 541, 5759, 44109, 7, 31577, 7413, 26499, 43581, 183037, 28032, 1957, 3642, 5941, 139392, 100, 382, 41, 1755, 19048, 4358 ]
[ 0.083740234375, 0.1446533203125, 0.05743408203125, 0.21923828125, 0.07513427734375, 0.1678466796875, 0.0753173828125, 0.119873046875, 0.2034912109375, 0.003021240234375, 0.0689697265625, 0.1287841796875, 0.05255126953125, 0.1500244140625, 0.134521484375, 0.06732177734375, 0.021286010...
embed
61080917_c0
61080917
prolog
0
Title: Is there a difference between `nonvar(X)` and `\+var(X)`? Problem title: Is there a difference between `nonvar(X)` and `\+var(X)`? Tags: prolog Problem: Is there a difference between `nonvar(X)` and `\+var(X)`? Prolog has the following to check current state of computation: var/1 : var(@Term) : "True if Term cur...
Is there a difference between `nonvar(X)` and `\+var(X)`? Is there a difference between `nonvar(X)` and `\+var(X)`? prolog Is there a difference between `nonvar(X)` and `\+var(X)`? Prolog has the following to check current state of computation: var/1 : var(@Term) : "True if Term currently is a free variable." nonvar/1 ...
[ -0.0031585693359375, 0.0009002685546875, 0.0230712890625, -0.00933837890625, -0.005889892578125, 0.01953125, 0.0028076171875, 0.005767822265625, -0.00029754638671875, -0.0054931640625, 0.0181884765625, 0.0262451171875, 0.01953125, 0.0108642578125, -0.00579833984375, 0.01409912109375, ...
[ 2071, 2685, 10, 60212, 17721, 6431, 1961, 132, 1542, 136, 41872, 1328, 502, 4867, 1250, 1556, 25632, 47, 12765, 43581, 11341, 111, 181135, 285, 11583, 981, 35484, 882, 2174, 2994, 39, 82424, 83, 4092, 77336, 351, 152, 959, 3060, 17105, ...
[ 0.0277557373046875, 0.0972900390625, 0.1109619140625, 0.258544921875, 0.158935546875, 0.2264404296875, 0.313720703125, 0.0908203125, 0.228271484375, 0.108642578125, 0.0794677734375, 0.231201171875, 0.0963134765625, 0.2529296875, 0.1597900390625, 0.0101318359375, 0.04962158203125, 0...
embed
15482674_c1
15482674
prolog
1
), Go2) :- goByTrain(A, B, Go2). mergeGo(goByAirplane(A, B), Go2) :- goByAirplane(A, B, Go2). tickets(A, B, Go) :- ticketsDir(A, B, Go). tickets(A, B, swapGo(Go)) :- ticketsDir(B, A, Go). tickets(A, B, mergeGo(Go1, Go2)) :- ticketsDir(A, Z, Go1), tickets(Z, B, Go2). tickets(A, B, mergeGo(Go1, Go2)) :- ticketsDir(Z, A, ...
), Go2) :- goByTrain(A, B, Go2). mergeGo(goByAirplane(A, B), Go2) :- goByAirplane(A, B, Go2). tickets(A, B, Go) :- ticketsDir(A, B, Go). tickets(A, B, swapGo(Go)) :- ticketsDir(B, A, Go). tickets(A, B, mergeGo(Go1, Go2)) :- ticketsDir(A, Z, Go1), tickets(Z, B, Go2). tickets(A, B, mergeGo(Go1, Go2)) :- ticketsDir(Z, A, ...
[ 0.0205078125, 0.0235595703125, 0.0067138671875, 0.0042724609375, -0.010009765625, 0.0024871826171875, -0.0169677734375, -0.0167236328125, 0.002838134765625, 0.00042724609375, 0.0118408203125, 0.007598876953125, -0.002166748046875, 0.01031494140625, 0.0015411376953125, 0.002838134765625...
[ 247, 2016, 10461, 15772, 738, 75358, 28542, 73, 284, 335, 42564, 17903, 519, 60044, 5868, 137384, 481, 202317, 567, 1511, 418, 33306, 41, 1294, 30646, 16750, 1193, 2203, 21851, 1405, 15477, 57, 147, 11911, 11960, 433, 88490, 11443, 56975, ...
[ 0.06353759765625, 0.182373046875, 0.2222900390625, 0.10479736328125, 0.1319580078125, 0.1771240234375, 0.1888427734375, 0.1038818359375, 0.05889892578125, 0.119384765625, 0.254150390625, 0.2462158203125, 0.10394287109375, 0.010986328125, 0.114990234375, 0.2120361328125, 0.05966186523...
embed
38215563_c0
38215563
prolog
0
Title: Structured Prolog code not running Problem title: Structured Prolog code not running Tags: prolog Problem: Structured Prolog code not running I am trying to run following structured code from http://www.dailyfreecode.com/code/prolog-find-factorial-given-number-3072.aspx in SWI-Prolog: predicates start find_facto...
Structured Prolog code not running Structured Prolog code not running prolog Structured Prolog find_factorial Enter Num Result NewResult NewNum Factorial ERROR Undefined DWIM Structured Prolog code not running I am trying to run following structured code from http://www.dailyfreecode.com/code/prolog-find-factorial-give...
[ 0.01251220703125, 0.00341796875, 0.0084228515625, 0.006744384765625, -0.003173828125, 0.014404296875, 0.009521484375, -0.01129150390625, -0.007293701171875, -0.0233154296875, 0.00775146484375, -0.0011444091796875, -0.015380859375, -0.0201416015625, 0.0299072265625, -0.006866455078125, ...
[ 63667, 41039, 2822, 1250, 4867, 18151, 959, 51042, 502, 7413, 144810, 15403, 60816, 52782, 126684, 2356, 7, 7136, 316, 117969, 151206, 79912, 5983, 30439, 17199, 31577, 11675, 25632, 45646, 71, 132338, 32087, 40899, 3454, 111607, 107409, 2606, ...
[ 0.1724853515625, 0.19580078125, 0.1156005859375, 0.163818359375, 0.2379150390625, 0.191650390625, 0.11181640625, 0.1658935546875, 0.1497802734375, 0.1236572265625, 0.1890869140625, 0.1522216796875, 0.14794921875, 0.129150390625, 0.1474609375, 0.042388916015625, 0.031097412109375, 0...
embed
21161624_c0
21161624
prolog
0
Title: Define graph in Prolog: edge and path, finding if there is a path between two vertices Problem title: Define graph in Prolog: edge and path, finding if there is a path between two vertices Tags: prolog, graph-theory, transitive-closure Problem: Define graph in Prolog: edge and path, finding if there is a path be...
Define graph in Prolog: edge and path, finding if there is a path between two vertices Define graph in Prolog: edge and path, finding if there is a path between two vertices prolog graph-theory transitive-closure Define Prolog graph.pl Define graph in Prolog: edge and path, finding if there is a path between two vertic...
[ 0.01226806640625, 0.012939453125, 0.00848388671875, 0.0111083984375, -0.00153350830078125, 0.00093841552734375, -0.03076171875, 0.00836181640625, 0.00726318359375, -0.034912109375, 0.0035247802734375, 0.003997802734375, -0.0167236328125, 0.02490234375, 0.0225830078125, 0.0166015625, ...
[ 262, 64552, 41382, 23, 1250, 4867, 121303, 136, 60875, 90791, 2174, 17721, 6626, 95378, 2685, 10, 5170, 502, 2347, 62621, 5844, 170224, 2424, 3525, 61924, 25632, 18151, 28219, 83, 493, 24371, 1193, 990, 4734, 567, 48762, 195625, 1830, 450, ...
[ 0.08160400390625, 0.15576171875, 0.235107421875, 0.0284423828125, 0.1624755859375, 0.244384765625, 0.2012939453125, 0.140380859375, 0.2481689453125, 0.1077880859375, 0.06494140625, 0.195556640625, 0.08795166015625, 0.1524658203125, 0.045989990234375, 0.036956787109375, 0.060485839843...
embed
33852800_c0
33852800
prolog
0
Title: How to run plunit tests in prolog Problem title: How to run plunit tests in prolog Tags: prolog, plunit Problem: How to run plunit tests in prolog I'm having difficulty getting plunit to execute tests in seeemingly the most trivial case. Here's my setup: foo.pl x(5) :- !. not(x(6)). foo.plt :- begin_tests(foo). ...
How to run plunit tests in prolog How to run plunit tests in prolog prolog plunit How begin_tests test_something test_seomthing_else end_tests load_test_files foo.plt run_tests PL-Unit test_something_else How to run plunit tests in prolog I'm having difficulty getting plunit to execute tests in seeemingly the most triv...
[ 0.0159912109375, 0.0042724609375, 0.00023365020751953125, -0.0062255859375, -0.0185546875, 0.0034027099609375, -0.004058837890625, -0.0179443359375, 0.0068359375, -0.009765625, -0.0142822265625, 0.0361328125, -0.022216796875, 0.00860595703125, 0.0026702880859375, 0.002227783203125, 0...
[ 11249, 11675, 12266, 6773, 109921, 23, 502, 4867, 47, 9842, 6954, 3034, 64113, 5557, 3564, 72367, 29822, 5775, 31, 2424, 18, 33106, 85600, 34844, 71924, 7225, 169581, 43240, 2452, 11435, 35782, 58437, 123019, 107838, 15876 ]
[ 0.034149169921875, 0.177490234375, 0.2047119140625, 0.2431640625, 0.258056640625, 0.0762939453125, 0.1611328125, 0.241455078125, 0.03240966796875, 0.066162109375, 0.2059326171875, 0.1961669921875, 0.0836181640625, 0.10430908203125, 0.043792724609375, 0.05633544921875, 0.0629272460937...
embed
16560058_c0
16560058
prolog
0
Title: Difference between X\=Y and dif(X,Y) Problem title: Difference between X\=Y and dif(X,Y) Tags: prolog, prolog-dif Problem: Difference between X\=Y and dif(X,Y) What is the difference between this: X \= Y and this piece of code: dif(X, Y) I thought that they should behave the same, but they do not. Here's the exa...
Difference between X\=Y and dif(X,Y) Difference between X\=Y and dif(X,Y) prolog prolog-dif Difference n_puta Difference between X\=Y and dif(X,Y) What is the difference between this: and this piece of code: I thought that they should behave the same, but they do not. Here's the example: And here are some calls: X shou...
[ 0.011962890625, 0.0018310546875, 0.02783203125, 0.01251220703125, -0.00799560546875, -0.0003185272216796875, -0.005584716796875, 0.00592041015625, 0.0179443359375, -0.0303955078125, -0.0079345703125, 0.003082275390625, 0.007110595703125, -0.002685546875, 0.0019378662109375, 0.008300781...
[ 803, 18234, 6620, 17721, 1193, 41872, 1369, 1723, 136, 45755, 132, 1542, 4, 502, 4867, 428, 420, 653, 54892, 4865, 70, 60212, 903, 63847, 18151, 17569, 1836, 5608, 186, 68991, 5701, 1284, 54, 959, 27781, 11782, 34627, 450, 74918, 66161, ...
[ 0.117431640625, 0.20947265625, 0.1134033203125, 0.1224365234375, 0.2015380859375, 0.1146240234375, 0.1417236328125, 0.2423095703125, 0.10296630859375, 0.294921875, 0.03619384765625, 0.1998291015625, 0.1116943359375, 0.1336669921875, 0.1875, 0.114013671875, 0.19384765625, 0.04431152...
embed
36115257_c0
36115257
prolog
0
Title: Recursion Append: One list decreases by one member each time and returns many list of integers that we want to merge Problem title: Recursion Append: One list decreases by one member each time and returns many list of integers that we want to merge Tags: recursion, prolog, append, list Problem: Recursion Append:...
Recursion Append: One list decreases by one member each time and returns many list of integers that we want to merge Recursion Append: One list decreases by one member each time and returns many list of integers that we want to merge recursion prolog append list Recursion Append One But Merge DOES NOT WORK Tail Recursi...
[ 0.0027618408203125, 0.032958984375, 0.03515625, 0.0159912109375, -0.009521484375, -0.0023651123046875, -0.025390625, 0.01239013671875, 0.030029296875, 0.00604248046875, 0.00138092041015625, 0.007598876953125, 0.01123046875, 0.017578125, 0.014892578125, 0.00372314453125, 0.01989746093...
[ 165428, 42, 6889, 5659, 3611, 6561, 5303, 227204, 1632, 32786, 12638, 1733, 30646, 5941, 892, 26255, 3444, 42564, 195625, 1830, 502, 4867, 114689, 71, 4966, 6035, 429, 6197, 6706, 86725, 231355, 1218, 379, 6713, 100, 16750, 63527, 124940, 1...
[ 0.1470947265625, 0.158203125, 0.1243896484375, 0.1502685546875, 0.207275390625, 0.13916015625, 0.1947021484375, 0.21826171875, 0.07220458984375, 0.1546630859375, 0.058563232421875, 0.11669921875, 0.1285400390625, 0.07501220703125, 0.119384765625, 0.04388427734375, 0.09674072265625, ...
embed
74695635_c0
74695635
prolog
0
Title: Finding the minimum value out of all the outcomes of a predicate Problem title: Finding the minimum value out of all the outcomes of a predicate Tags: minimum, prolog Problem: Finding the minimum value out of all the outcomes of a predicate I have the following predicates: slow(a , 10 , b). slow(b , 17 , c). slo...
Finding the minimum value out of all the outcomes of a predicate Finding the minimum value out of all the outcomes of a predicate minimum prolog Finding Finding the minimum value out of all the outcomes of a predicate I have the following predicates: I now need to create a new predicate of 2arity to find the minimum va...
[ -0.006927490234375, -0.01361083984375, 0.0169677734375, -0.01495361328125, -0.007568359375, 0.01226806640625, 0.0091552734375, -0.00909423828125, 0.01055908203125, -0.044189453125, -0.01202392578125, -0.00927734375, -0.00579833984375, -0.0250244140625, 0.01458740234375, 0.029541015625,...
[ 26040, 214, 15440, 34292, 1810, 111, 756, 184345, 7, 1653, 2063, 67, 502, 4867, 25632, 1636, 5036, 3871, 28282, 3525, 116, 147, 2481, 7413, 541, 61924, 120696, 2060, 37842, 4527, 5584, 18113, 136, 41780, 420, 3249, 5303, 34627, 9077, 2856...
[ 0.1221923828125, 0.0176239013671875, 0.2646484375, 0.2083740234375, 0.0863037109375, 0.037261962890625, 0.05828857421875, 0.2064208984375, 0.0254364013671875, 0.1610107421875, 0.203857421875, 0.0875244140625, 0.13623046875, 0.1878662109375, 0.0145111083984375, 0.056121826171875, 0.00...
embed
40710932_c0
40710932
prolog
0
Title: Count number of great-grandparent in family relationship using Prolog Problem title: Count number of great-grandparent in family relationship using Prolog Tags: prolog Problem: Count number of great-grandparent in family relationship using Prolog I have to create a "greatcount" relation in Prolog that counts the...
Count number of great-grandparent in family relationship using Prolog Count number of great-grandparent in family relationship using Prolog prolog Prolog Count Count number of great-grandparent in family relationship using Prolog I have to create a "greatcount" relation in Prolog that counts the degree of great-grandpa...
[ 0.0174560546875, 0.004974365234375, -0.007171630859375, -0.00860595703125, 0.005584716796875, -0.00775146484375, -0.01153564453125, 0.0035858154296875, 0.005767822265625, -0.045166015625, -0.0186767578125, -0.036376953125, -0.0186767578125, 0.00970458984375, 0.0269775390625, -0.0129394...
[ 108210, 14012, 111, 6782, 9, 79139, 99547, 14449, 76755, 17368, 1250, 4867, 23, 502, 28282, 7134, 257, 71013, 41911, 54529, 79385, 17721, 6626, 3395, 30646, 116, 83, 4734, 49129, 15824, 990, 49814, 1723, 1653, 2063, 7413, 1810, 29479, 1636,...
[ 0.16845703125, 0.11669921875, 0.0223388671875, 0.1240234375, 0.0477294921875, 0.1234130859375, 0.2091064453125, 0.08538818359375, 0.1318359375, 0.01214599609375, 0.1290283203125, 0.194580078125, 0.0188140869140625, 0.0860595703125, 0.0233306884765625, 0.042205810546875, 0.02957153320...
embed
15385150_c0
15385150
prolog
0
Title: Confused about querying and backtracking Problem title: Confused about querying and backtracking Tags: prolog Problem: Confused about querying and backtracking I am a little confused about what happens during a query with some rules. Here is a sample code from my notes. link(fortran, algol60). link(algol60,cpl)....
Confused about querying and backtracking Confused about querying and backtracking prolog Confused algol60 simula67 smalltalk80 Confused about querying and backtracking I am a little confused about what happens during a query with some rules. Here is a sample code from my notes. When we query this, we will call the firs...
[ 0.02978515625, 0.0260009765625, 0.002838134765625, 0.0252685546875, -0.01153564453125, 0.00384521484375, 0.0034332275390625, 0.00714111328125, 0.005767822265625, -0.0556640625, -0.01416015625, -0.00384521484375, -0.01312255859375, 0.0155029296875, 0.0025634765625, 0.006134033203125, ...
[ 106161, 33740, 41, 1294, 214, 136, 4420, 125728, 1672, 502, 4867, 5745, 141, 4598, 40226, 18197, 139109, 4836, 10176, 55681, 5281, 96276, 20271, 678, 91736, 121413, 18151, 73048, 14847, 11782, 5117, 60875, 1193, 1221, 173969, 47, 2424, 3126, ...
[ 0.10675048828125, 0.09356689453125, 0.145751953125, 0.185546875, 0.059112548828125, 0.10498046875, 0.1837158203125, 0.25634765625, 0.000274658203125, 0.1041259765625, 0.14013671875, 0.0797119140625, 0.00274658203125, 0.11083984375, 0.1251220703125, 0.039642333984375, 0.10467529296875...
embed
19757362_c0
19757362
prolog
0
Title: built-in predicate statistics in a Bratko example doesn't behave as expected Problem title: built-in predicate statistics in a Bratko example doesn't behave as expected Tags: amzi-prolog, prolog Problem: built-in predicate statistics in a Bratko example doesn't behave as expected I'm trying out exercis...
built-in predicate statistics in a Bratko example doesn't behave as expected built-in predicate statistics in a Bratko example doesn't behave as expected amzi-prolog prolog Bratko Start End Schedule built-in predicate statistics in a Bratko example doesn't behave as expected I'm trying out exercise 4.3 of Bra...
[ 0.000568389892578125, 0.006439208984375, 0.0014190673828125, 0.000530242919921875, -0.033203125, 0.01129150390625, 0.0201416015625, -0.005157470703125, 0.0196533203125, -0.049560546875, -0.0024871826171875, 0.017333984375, -0.0037841796875, -0.0023193359375, 0.0126953125, -0.0060119628...
[ 88303, 73, 1653, 2063, 67, 80835, 7, 119794, 265, 27781, 22027, 18, 68991, 237, 84751, 186, 444, 708, 3454, 4867, 502, 13794, 18878, 230074, 31577, 81979, 80196, 66044, 3095, 15190, 157, 35166, 1250, 3564, 9393, 40956, 17582, 34735, 4966, ...
[ 0.141357421875, 0.08642578125, 0.1240234375, 0.183349609375, 0.0443115234375, 0.2340087890625, 0.06024169921875, 0.1666259765625, 0.202880859375, 0.1512451171875, 0.010528564453125, 0.022705078125, 0.12158203125, 0.02801513671875, 0.06170654296875, 0.006866455078125, 0.04800415039062...
embed
61162791_c0
61162791
prolog
0
Title: How to delete a specified amount of elements in a list without libraries Prolog Problem title: How to delete a specified amount of elements in a list without libraries Prolog Tags: list, prolog Problem: How to delete a specified amount of elements in a list without libraries Prolog How would I go about deleting ...
How to delete a specified amount of elements in a list without libraries Prolog How to delete a specified amount of elements in a list without libraries Prolog list prolog How Prolog Element Tail Tail1 NumToDelete NewNumDelete NumToDelete-1 How to delete a specified amount of elements in a list without libraries Prolog...
[ 0.0103759765625, 0.0191650390625, -0.015625, 0.01458740234375, -0.03125, 0.005218505859375, -0.005615234375, -0.00034332275390625, 0.01507568359375, 0.006378173828125, 0.0191650390625, -0.0281982421875, -0.00994873046875, -0.013916015625, 0.026123046875, 0.002410888671875, 0.01818847...
[ 11249, 47, 154109, 58735, 297, 41170, 80854, 23, 5303, 15490, 35773, 10484, 1250, 4867, 502, 48325, 1218, 379, 418, 52782, 7763, 4657, 46485, 2356, 316, 5759, 2806, 738, 1672, 24674, 1916, 29458, 1295, 43581, 18151, 18, 30646, 452, 87388, ...
[ 0.060455322265625, 0.045684814453125, 0.2421875, 0.1986083984375, 0.028167724609375, 0.1690673828125, 0.193603515625, 0.00152587890625, 0.202392578125, 0.1248779296875, 0.155029296875, 0.03826904296875, 0.135498046875, 0.197265625, 0.080078125, 0.1470947265625, 0.0902099609375, 0.0...
embed
27159524_c0
27159524
prolog
0
Title: error in Prolog code - undefined procedure: unique/1 Problem title: error in Prolog code - undefined procedure: unique/1 Tags: zebra-puzzle, prolog Problem: error in Prolog code - undefined procedure: unique/1 %three variants of actions. I have 3 animals and it can drive on plane, car or miss the %step. I know, ...
error in Prolog code - undefined procedure: unique/1 error in Prolog code - undefined procedure: unique/1 zebra-puzzle prolog Prolog error in Prolog code - undefined procedure: unique/1 %three variants of actions. I have 3 animals and it can drive on plane, car or miss the %step. I know, that on the first step monkey r...
[ 0.00007200241088867188, 0.01544189453125, 0.00823974609375, -0.0079345703125, -0.01123046875, 0.0166015625, -0.01263427734375, 0.00616455078125, -0.00061798095703125, -0.0322265625, -0.0257568359375, 0.00958251953125, -0.002899169921875, 0.0037384033203125, 0.0260009765625, 0.020629882...
[ 18499, 23, 1250, 4867, 18151, 9232, 5983, 297, 50491, 36998, 11583, 116232, 1766, 13894, 133, 502, 1745, 107, 13, 20117, 111, 61972, 765, 138, 85825, 831, 22648, 47880, 2258, 18025, 95528, 3714, 5117, 29954, 2667, 19770, 51894, 13924, 420, ...
[ 0.181396484375, 0.045806884765625, 0.168212890625, 0.2467041015625, 0.1966552734375, 0.1375732421875, 0.1939697265625, 0.004058837890625, 0.1905517578125, 0.2340087890625, 0.1785888671875, 0.2142333984375, 0.09649658203125, 0.1158447265625, 0.110107421875, 0.1219482421875, 0.01373291...
embed
29212141_c0
29212141
prolog
0
Title: Prolog dict predicate matching Problem title: Prolog dict predicate matching Tags: predicates, prolog Problem: Prolog dict predicate matching Given this program, why am I forced to define every atom in the predicate, even if they're anonymous. Why is it that undefined variables in a dict predicate aren't thought...
Prolog dict predicate matching Prolog dict predicate matching predicates prolog Prolog funt2 x:5 y:6 x:_ GoodBye Prolog dict predicate matching Given this program, why am I forced to define every atom in the predicate, even if they're anonymous. Why is it that undefined variables in a dict predicate aren't thought of a...
[ 0.0166015625, -0.00016307830810546875, -0.002960205078125, 0.002288818359375, 0.00457763671875, -0.01116943359375, 0.01080322265625, 0.0089111328125, 0.003814697265625, -0.0027313232421875, 0.0140380859375, -0.0115966796875, -0.0172119140625, -0.034912109375, 0.01202392578125, 0.020141...
[ 1250, 4867, 61669, 1653, 2063, 67, 14858, 214, 502, 7477, 18, 304, 1022, 12, 758, 113, 910, 18621, 571, 1033, 1528, 15400, 168861, 47, 61924, 11907, 34627, 52184, 44084, 9232, 5983, 77336, 17569, 10821, 5154, 13331, 86673, 3917, 4527, 456...
[ 0.1754150390625, 0.242919921875, 0.216552734375, 0.1715087890625, 0.21923828125, 0.0887451171875, 0.22314453125, 0.035247802734375, 0.13720703125, 0.1241455078125, 0.0771484375, 0.097900390625, 0.07305908203125, 0.00909423828125, 0.1185302734375, 0.047454833984375, 0.12451171875, 0...
embed
17535193_c0
17535193
prolog
0
Title: Evaluating three-variable expression in Prolog Problem title: Evaluating three-variable expression in Prolog Tags: prolog Problem: Evaluating three-variable expression in Prolog Follow the Four-Step Abstract design process to define recursive rules to compute mathematical functions. You must indicate (use commen...
Evaluating three-variable expression in Prolog Evaluating three-variable expression in Prolog prolog Evaluating Prolog Evaluating three-variable expression in Prolog Follow the Four-Step Abstract design process to define recursive rules to compute mathematical functions. You must indicate (use comments to code) which s...
[ 0.0272216796875, 0.003509521484375, -0.005523681640625, 0.006805419921875, 0.02099609375, 0.014892578125, 0.01385498046875, 0.0194091796875, 0.0042724609375, -0.01251220703125, 0.00848388671875, -0.002532958984375, -0.002471923828125, -0.005615234375, 0.00384521484375, 0.00126647949218...
[ 151228, 17262, 21690, 2886, 125195, 1250, 4867, 502, 77168, 65056, 191644, 233973, 4331, 9433, 61924, 195625, 5844, 91736, 9969, 6743, 140363, 32354, 117414, 24626, 18151, 29954, 11814, 79986, 959, 30646, 34292, 4527, 171859, 16401, 86725, 78643,...
[ 0.19921875, 0.2115478515625, 0.1663818359375, 0.0428466796875, 0.260986328125, 0.1904296875, 0.2607421875, 0.1453857421875, 0.00018310546875, 0.076416015625, 0.120361328125, 0.1590576171875, 0.1458740234375, 0.012847900390625, 0.0914306640625, 0.1710205078125, 0.1015625, 0.16918945...
embed
64984383_c0
64984383
prolog
0
Title: How to return in prolog all elements from right to left greater than an integer in one predicate? Problem title: How to return in prolog all elements from right to left greater than an integer in one predicate? Tags: prolog, recursion Problem: How to return in prolog all elements from right to left greater than ...
How to return in prolog all elements from right to left greater than an integer in one predicate? How to return in prolog all elements from right to left greater than an integer in one predicate? prolog recursion right How greater_list How to return in prolog all elements from right to left greater than an integer in o...
[ -0.0091552734375, 0.0034332275390625, 0.0169677734375, 0.00055694580078125, -0.0093994140625, 0.031494140625, 0.000797271728515625, 0.01019287109375, 0.0220947265625, -0.031005859375, 0.00096893310546875, -0.021728515625, -0.0296630859375, -0.0020599365234375, 0.0260009765625, -0.00113...
[ 11249, 47, 30646, 23, 502, 4867, 756, 80854, 1295, 7108, 25737, 117396, 3501, 892, 1505, 1632, 1653, 2063, 67, 195625, 1830, 6562, 33022, 18151, 34475, 5303, 81113, 53418, 4527, 32354, 88303, 73, 114689, 18113, 12477, 32786, 36849, 39531, 7...
[ 0.0738525390625, 0.1224365234375, 0.2412109375, 0.08135986328125, 0.1956787109375, 0.2529296875, 0.138916015625, 0.20947265625, 0.09954833984375, 0.1572265625, 0.1541748046875, 0.17822265625, 0.1016845703125, 0.1312255859375, 0.09600830078125, 0.047210693359375, 0.1439208984375, 0....
embed
71328945_c0
71328945
prolog
0
Title: Find set of solutions and terminate in SWI-Prolog? Problem title: Find set of solutions and terminate in SWI-Prolog? Tags: prolog Problem: Find set of solutions and terminate in SWI-Prolog? Here is my program: reachable(X) :- start(X). reachable(X) :- link(Y, X), reachable(Y). start(london). link(london, paris)....
Find set of solutions and terminate in SWI-Prolog? Find set of solutions and terminate in SWI-Prolog? prolog Find SWI-Prolog amd64 Find set of solutions and terminate in SWI-Prolog? Here is my program: Now if I query it, I get solutions: Why does SWI-Prolog keep finding the same solutions? How can I fix my program to r...
[ 0.0084228515625, 0.019287109375, 0.02783203125, 0.0191650390625, -0.0172119140625, -0.00762939453125, -0.0084228515625, 0.0025177001953125, 0.00225830078125, -0.061279296875, -0.010009765625, 0.0086669921875, 0.00110626220703125, -0.00185394287109375, 0.01153564453125, 0.01104736328125...
[ 26040, 5423, 111, 51347, 136, 121011, 13, 23, 159, 38969, 9, 10752, 4867, 502, 444, 71, 13307, 11853, 1528, 14240, 2174, 41, 1294, 87, 2046, 44084, 14602, 13695, 90791, 5701, 30022, 30646, 7068, 58810, 16487, 100 ]
[ 0.125732421875, 0.1802978515625, 0.115234375, 0.2459716796875, 0.0560302734375, 0.1732177734375, 0.08734130859375, 0.068603515625, 0.0899658203125, 0.2376708984375, 0.042724609375, 0.1602783203125, 0.2122802734375, 0.112548828125, 0.09326171875, 0.025115966796875, 0.1708984375, 0.0...
embed
36220213_c0
36220213
prolog
0
Title: Error: `compute/4' is not a function Problem title: Error: `compute/4' is not a function Tags: prolog Problem: Error: `compute/4' is not a function I am trying to evaluate an arithmetic binary tree. tree_calc(tree(L, Root, R), Eval) :- compute(Root, L, R, Eval). compute(Root, 'empty', 'empty', Root). c...
Error: `compute/4' is not a function Error: `compute/4' is not a function prolog Error tree_calc Root Eval LRoot RRoot LEval REval Arithmetic Error: `compute/4' is not a function I am trying to evaluate an arithmetic binary tree. When I run the program with input: I am getting the error: I can't seem to work ...
[ 0.01446533203125, 0.00616455078125, 0.0014801025390625, 0.006683349609375, 0.01220703125, 0.0198974609375, -0.0211181640625, -0.0196533203125, 0.00830078125, -0.0439453125, -0.0159912109375, -0.0196533203125, 0.004974365234375, -0.00738525390625, 0.02734375, -0.00836181640625, -0.012...
[ 212059, 58875, 6743, 17357, 3768, 83, 959, 10, 32354, 502, 4867, 53201, 6827, 238, 150948, 241, 1405, 31, 818, 12724, 17428, 9069, 8962, 282, 31577, 151575, 2394, 6635, 11675, 1528, 107730, 444, 20949, 18499, 48903, 4488, 1810, 15400, 903, ...
[ 0.17626953125, 0.1153564453125, 0.178466796875, 0.27099609375, 0.1669921875, 0.1331787109375, 0.205810546875, 0.1090087890625, 0.2032470703125, 0.11376953125, 0.1798095703125, 0.18017578125, 0.0926513671875, 0.0184326171875, 0.18212890625, 0.03509521484375, 0.1669921875, 0.01065063...
embed
52529245_c1
52529245
prolog
1
useful for other things) if there were a way to restrict the scope of new variables. Suppose, for instance, you could define a block within the foreach , where the variables visible from the outside were marked, and any other variables in the block were considered new for that execution of the block. (I realize my ter...
useful for other things) if there were a way to restrict the scope of new variables. Suppose, for instance, you could define a block within the foreach , where the variables visible from the outside were marked, and any other variables in the block were considered new for that execution of the block. (I realize my ter...
[ 0.004180908203125, 0.021728515625, 0.000873565673828125, -0.006866455078125, 0.005035400390625, 0.011474609375, 0.016357421875, 0.00274658203125, 0.0194091796875, -0.029541015625, 0.0081787109375, 0.0113525390625, -0.00457763671875, -0.03271484375, 0.005401611328125, 0.017578125, 0.0...
[ 80234, 8966, 2174, 3542, 3917, 173072, 70820, 3525, 77336, 7, 121691, 5809, 61924, 46389, 28032, 100, 41581, 75693, 1295, 50782, 94419, 90698, 71924, 214552, 195, 132, 17721, 963, 1542, 126684, 1193, 88225, 1723, 83, 997, 990, 3060, 19273, ...
[ 0.152587890625, 0.01123046875, 0.0133056640625, 0.004486083984375, 0.090576171875, 0.2447509765625, 0.212646484375, 0.1605224609375, 0.257080078125, 0.006622314453125, 0.0062255859375, 0.00567626953125, 0.156494140625, 0.1768798828125, 0.142822265625, 0.0987548828125, 0.25244140625, ...
embed
58959457_c0
58959457
prolog
0
Title: Calling predicates from another predicate Problem title: Calling predicates from another predicate Tags: function, list, prolog Problem: Calling predicates from another predicate list([1,2,3,4]). len([],0). len([_|T],X):- len(T,X1), X is X1+1. sum([],0). sum([H|T],X):- sum(T,X1), X is X1+H. max_element([X],X). m...
Calling predicates from another predicate Calling predicates from another predicate function list prolog another Calling max_element Max min_element Min Calling predicates from another predicate Hello, I'm completely new to Prolog and I'm supposed to make a predicate start/1 which loads a list of integers and calls pre...
[ -0.015625, 0.0135498046875, 0.00701904296875, 0.035400390625, -0.01611328125, 0.037109375, 0.0244140625, 0.007415771484375, 0.0164794921875, -0.055908203125, 0.006134033203125, -0.004608154296875, -0.0159912109375, -0.00213623046875, 0.01806640625, 0.0017242431640625, 0.0191650390625...
[ 26265, 214, 1653, 2063, 1636, 1295, 15700, 32354, 5303, 502, 4867, 18389, 62766, 9920, 881, 4211, 35378, 64557, 3525, 1250, 134598, 3249, 67, 4034, 11583, 72367, 892, 26255, 136, 11782, 36917, 30646, 142424, 84797, 678, 13315, 124850, 59090, ...
[ 0.1470947265625, 0.05291748046875, 0.1805419921875, 0.212890625, 0.08740234375, 0.139404296875, 0.1083984375, 0.1241455078125, 0.1309814453125, 0.1224365234375, 0.2017822265625, 0.088134765625, 0.1285400390625, 0.07269287109375, 0.1270751953125, 0.15234375, 0.00823974609375, 0.0020...
embed
33352136_c0
33352136
prolog
0
Title: I need help, Im trying to count the amount of elements in a list? Problem title: I need help, Im trying to count the amount of elements in a list? Tags: prolog Problem: I need help, Im trying to count the amount of elements in a list? Help I am trying to write a function in Prolog that will show the number of ca...
I need help, Im trying to count the amount of elements in a list? I need help, Im trying to count the amount of elements in a list? prolog Johnsten Arizona Arkansas California Georgia Idaho Kentucky Mississippi York Ohio Utah Canada Local Jones I need help, Im trying to count the amount of elements in a list? Help I am...
[ 0.0177001953125, 0.0081787109375, 0.014892578125, 0.0244140625, 0.00469970703125, 0.02880859375, -0.01025390625, 0.0062255859375, 0.0206298828125, -0.0361328125, -0.005859375, -0.0272216796875, -0.00994873046875, 0.0179443359375, 0.0196533203125, -0.026123046875, 0.0213623046875, 0...
[ 87, 3871, 4358, 3370, 31577, 47, 54529, 70, 41170, 111, 80854, 23, 5303, 32, 10, 502, 4867, 4939, 2581, 157487, 94992, 9339, 7, 39897, 69919, 38220, 497, 229879, 225260, 5753, 157997, 15581, 25730, 24172, 29304, 39527, 33022, 32354, 1250, ...
[ 0.019073486328125, 0.12060546875, 0.1531982421875, 0.1243896484375, 0.1396484375, 0.09014892578125, 0.211669921875, 0.06793212890625, 0.1683349609375, 0.05206298828125, 0.234375, 0.086669921875, 0.212890625, 0.015411376953125, 0.03173828125, 0.1614990234375, 0.26318359375, 0.121093...
embed
13757983_c0
13757983
prolog
0
Title: SWI Prolog Array Retrive [Index and Element] Problem title: SWI Prolog Array Retrive [Index and Element] Tags: arrays, element, indexing, prolog Problem: SWI Prolog Array Retrive [Index and Element] I'm trying to program an array retrieval in swi-prolog. With the current code printed below I can retrieve the ele...
SWI Prolog Array Retrive [Index and Element] SWI Prolog Array Retrive [Index and Element] arrays element indexing prolog SWI Prolog Array Retrive Index Element Y-1 SWI Prolog Array Retrive [Index and Element] I'm trying to program an array retrieval in swi-prolog. With the current code printed below I can retrieve the ...
[ 0.0010833740234375, 0.001251220703125, -0.000885009765625, 0.0033416748046875, -0.0186767578125, -0.00732421875, -0.0011138916015625, 0.02685546875, 0.0169677734375, -0.0078125, 0.0140380859375, 0.0113525390625, -0.048828125, -0.0130615234375, 0.01202392578125, -0.033447265625, 0.021...
[ 159, 38969, 1250, 4867, 69253, 53, 853, 3996, 272, 4153, 39659, 136, 48325, 10298, 4778, 12830, 63262, 502, 31471, 990, 5759, 31577, 1528, 456, 97351, 1405, 91, 2452, 3454, 43581, 18151, 28412, 35064, 831, 34475, 3444, 19048, 90, 89536, 3...
[ 0.06207275390625, 0.258544921875, 0.1728515625, 0.204833984375, 0.1583251953125, 0.09197998046875, 0.092529296875, 0.18212890625, 0.1278076171875, 0.03271484375, 0.1925048828125, 0.07421875, 0.1783447265625, 0.12744140625, 0.005218505859375, 0.159423828125, 0.1986083984375, 0.11901...
embed
19427022_c0
19427022
prolog
0
Title: Does any version of Prolog support higher order abstraction of accumulators? Problem title: Does any version of Prolog support higher order abstraction of accumulators? Tags: mercury, prolog Problem: Does any version of Prolog support higher order abstraction of accumulators? I was wondering about a Prolog that ...
Does any version of Prolog support higher order abstraction of accumulators? Does any version of Prolog support higher order abstraction of accumulators? mercury prolog Does Prolog Calculates Backtracks Accumulator Val List Does any version of Prolog support higher order abstraction of accumulators? I was wondering abo...
[ 0.0281982421875, 0.0159912109375, 0.005615234375, 0.0067138671875, -0.0101318359375, 0.02294921875, -0.003936767578125, 0.00933837890625, 0.0172119140625, -0.051025390625, 0.0208740234375, 0.01055908203125, -0.00946044921875, -0.0213623046875, 0.0164794921875, -0.01214599609375, -0.0...
[ 2499, 11389, 1250, 4867, 8060, 77546, 12989, 164789, 1830, 183278, 22230, 1143, 16820, 53, 502, 101790, 212467, 63614, 26828, 125728, 29899, 316, 129073, 4769, 32036, 149016, 5809, 26698, 88303, 73, 11782, 1884, 903, 47, 10554, 5303, 15490, 1...
[ 0.03765869140625, 0.135009765625, 0.1759033203125, 0.260986328125, 0.1473388671875, 0.095947265625, 0.14794921875, 0.187744140625, 0.06585693359375, 0.1937255859375, 0.140869140625, 0.035675048828125, 0.13232421875, 0.10125732421875, 0.1484375, 0.00897216796875, 0.1556396484375, 0....
embed
20030634_c0
20030634
prolog
0
Title: Prolog print value as result instead of true Problem title: Prolog print value as result instead of true Tags: printing, prolog Problem: Prolog print value as result instead of true I need to write a program, which returns a new list from a given list with following criteria. If list member is negative or 0 it s...
Prolog print value as result instead of true Prolog print value as result instead of true printing prolog Prolog some_values Tail Prolog print value as result instead of true I need to write a program, which returns a new list from a given list with following criteria. If list member is negative or 0 it should and that...
[ 0.0113525390625, -0.00433349609375, 0.009521484375, -0.00159454345703125, -0.01251220703125, 0.025146484375, 0.009521484375, 0.00982666015625, 0.00189208984375, -0.006805419921875, 0.018310546875, -0.0098876953125, 0.000553131103515625, 0.0016937255859375, 0.00762939453125, -0.00292968...
[ 1250, 4867, 28412, 34292, 237, 16750, 64457, 111, 29568, 2448, 502, 3060, 27494, 1218, 379, 3871, 33022, 1528, 30646, 3525, 5303, 55738, 32786, 40907, 757, 5608, 138, 20028, 47, 24491, 15190, 116, 59121, 25632, 18151, 43240, 5885, 627, 4345...
[ 0.1807861328125, 0.258056640625, 0.2261962890625, 0.2440185546875, 0.059722900390625, 0.22802734375, 0.1871337890625, 0.06268310546875, 0.243408203125, 0.1595458984375, 0.1436767578125, 0.0273284912109375, 0.1925048828125, 0.072509765625, 0.0919189453125, 0.0216064453125, 0.078308105...
embed
71720952_c0
71720952
prolog
0
Title: How to get all elements in a nested list where the first element of each list is a particular number? Problem title: How to get all elements in a nested list where the first element of each list is a particular number? Tags: list, prolog, recursion Problem: How to get all elements in a nested list where the firs...
How to get all elements in a nested list where the first element of each list is a particular number? How to get all elements in a nested list where the first element of each list is a particular number? list prolog recursion How Number List Elem PointsH PointsT CommonPoints nth0 CurrElem NewCommonPoints How to get all...
[ -0.0255126953125, -0.0016632080078125, 0.00604248046875, -0.00390625, -0.0003261566162109375, 0.01434326171875, 0.0029144287109375, -0.00360107421875, 0.0242919921875, -0.0281982421875, 0.01806640625, -0.006988525390625, -0.02001953125, -0.00634765625, -0.00921630859375, -0.00686645507...
[ 11249, 47, 2046, 756, 80854, 23, 8512, 71, 5303, 7440, 5117, 12830, 12638, 83, 17311, 14012, 502, 4867, 195625, 1830, 103332, 32036, 540, 195, 41097, 841, 618, 151301, 147534, 927, 2389, 7623, 2356, 10770, 3796, 10, 3525, 1250, 63134, 344...
[ 0.07464599609375, 0.0662841796875, 0.14599609375, 0.1717529296875, 0.2166748046875, 0.04931640625, 0.252197265625, 0.1600341796875, 0.2142333984375, 0.032684326171875, 0.153564453125, 0.155517578125, 0.0811767578125, 0.0672607421875, 0.156005859375, 0.188232421875, 0.10137939453125, ...
embed
22642239_c0
22642239
prolog
0
Title: Formulating quadratic equations in clpfd Problem title: Formulating quadratic equations in clpfd Tags: prolog, clpfd, quadratic Problem: Formulating quadratic equations in clpfd CLPFD-systems are not primarily targeted to handle quadratic equations efficiently, nevertheless, are there better ways to formulate pr...
Formulating quadratic equations in clpfd Formulating quadratic equations in clpfd prolog clpfd quadratic Formulating CPU Lips ERROR Out T_ms Formulating quadratic equations in clpfd CLPFD-systems are not primarily targeted to handle quadratic equations efficiently, nevertheless, are there better ways to formulate probl...
[ 0.0155029296875, 0.0120849609375, -0.00946044921875, -0.0027618408203125, 0.0015411376953125, -0.017822265625, -0.00457763671875, -0.00799560546875, 0.005126953125, -0.0400390625, 0.00160980224609375, -0.007354736328125, -0.00750732421875, 0.0140380859375, 0.00927734375, 0.003936767578...
[ 72791, 1916, 68587, 9523, 28, 13722, 5256, 33139, 39557, 71, 502, 4867, 86039, 156903, 151206, 13538, 384, 4432, 23, 46323, 41265, 397, 16751, 959, 102917, 30388, 34831, 93766, 11522, 48322, 26168, 67, 44402, 25632, 2967, 7870, 7565, 159, 3...
[ 0.167724609375, 0.016754150390625, 0.1910400390625, 0.13232421875, 0.0361328125, 0.1956787109375, 0.0068359375, 0.07574462890625, 0.10546875, 0.1119384765625, 0.0645751953125, 0.14453125, 0.1781005859375, 0.1832275390625, 0.1224365234375, 0.1151123046875, 0.0418701171875, 0.0759887...
embed
47477045_c0
47477045
prolog
0
Title: Why does my predicate return a lists of lists in prolog? Problem title: Why does my predicate return a lists of lists in prolog? Tags: prolog, list Problem: Why does my predicate return a lists of lists in prolog? So I have this predicate that is supposed to be returning a single list of elements. But it keeps r...
Why does my predicate return a lists of lists in prolog? Why does my predicate return a lists of lists in prolog? prolog list Why english2133t Why does my predicate return a lists of lists in prolog? So I have this predicate that is supposed to be returning a single list of elements. But it keeps returning lists of lis...
[ 0.030029296875, -0.0146484375, -0.0089111328125, 0.0025634765625, -0.0023040771484375, 0.0240478515625, -0.010986328125, -0.01007080078125, 0.01373291015625, -0.032958984375, 0.0177001953125, -0.0135498046875, 0.0004405975341796875, -0.0048828125, 0.005218505859375, 0.0115966796875, ...
[ 44084, 14602, 759, 1653, 2063, 67, 30646, 5303, 7, 111, 23, 502, 4867, 175457, 3117, 9185, 18, 10, 903, 134598, 11001, 80854, 4966, 13695, 214, 9077, 15400, 3900, 19309, 7665, 63399 ]
[ 0.122802734375, 0.05126953125, 0.05615234375, 0.182373046875, 0.197021484375, 0.136962890625, 0.1826171875, 0.1964111328125, 0.0496826171875, 0.1116943359375, 0.04791259765625, 0.1556396484375, 0.228759765625, 0.146484375, 0.0187530517578125, 0.135986328125, 0.00250244140625, 0.027...
embed
54836893_c0
54836893
prolog
0
Title: Prolog - Creating a list of all the possible shifts of another list? Problem title: Prolog - Creating a list of all the possible shifts of another list? Tags: prolog, list, rotation Problem: Prolog - Creating a list of all the possible shifts of another list? For my assignment I need to create a list of all the ...
Prolog - Creating a list of all the possible shifts of another list? Prolog - Creating a list of all the possible shifts of another list? prolog list rotation Prolog Creating Prototype all_shifts one_shift Prolog - Creating a list of all the possible shifts of another list? For my assignment I need to create a list of ...
[ 0.00616455078125, 0.01300048828125, 0.01483154296875, 0.008056640625, -0.005615234375, -0.02197265625, -0.03662109375, 0.004852294921875, 0.0054931640625, -0.01171875, 0.0172119140625, -0.01031494140625, 0.0093994140625, 0.023193359375, 0.0029296875, 0.007049560546875, 0.010192871093...
[ 1250, 4867, 56781, 1916, 5303, 756, 7722, 122925, 7, 15700, 502, 2062, 22062, 67241, 50986, 3767, 2480, 1632, 20, 111, 70, 95486, 3871, 28282, 16210, 1528, 47, 25737, 24145, 2704, 16750, 1052, 70541, 165428, 42, 6889, 23, 55681, 56065, 43...
[ 0.173095703125, 0.2685546875, 0.142578125, 0.051788330078125, 0.201904296875, 0.083251953125, 0.181640625, 0.2496337890625, 0.0802001953125, 0.08349609375, 0.14697265625, 0.1046142578125, 0.03936767578125, 0.1131591796875, 0.154052734375, 0.1282958984375, 0.1605224609375, 0.0570678...
embed
23705276_c0
23705276
prolog
0
Title: Having trouble with predicate in Prolog Problem title: Having trouble with predicate in Prolog Tags: list, prolog Problem: Having trouble with predicate in Prolog I am trying to right a predicate in Prolog that accepts an item, a list, and a number, and checks to see if the item is in the list that number of tim...
Having trouble with predicate in Prolog Having trouble with predicate in Prolog list prolog Having Prolog count_occur Having trouble with predicate in Prolog I am trying to right a predicate in Prolog that accepts an item, a list, and a number, and checks to see if the item is in the list that number of times. For exam...
[ 0.0079345703125, 0.0081787109375, -0.00927734375, 0.01177978515625, 0.0093994140625, 0.0034637451171875, -0.0164794921875, -0.0137939453125, 0.01953125, -0.03662109375, 0.0032501220703125, -0.0172119140625, 0.007415771484375, 0.019287109375, 0.0152587890625, -0.0164794921875, 0.00744...
[ 171855, 63134, 678, 1653, 2063, 67, 23, 1250, 4867, 5303, 502, 54529, 6652, 16820, 31577, 7108, 26946, 35735, 14012, 12765, 1957, 2174, 20028, 30646, 1193, 33000, 5, 2806, 29568, 237875, 28219, 56037, 214709, 5117, 14858, 115081, 73, 34292, ...
[ 0.04302978515625, 0.1771240234375, 0.078857421875, 0.1995849609375, 0.264404296875, 0.1162109375, 0.029144287109375, 0.1744384765625, 0.2548828125, 0.170166015625, 0.122802734375, 0.1854248046875, 0.0745849609375, 0.142578125, 0.05609130859375, 0.1341552734375, 0.1146240234375, 0.1...
embed
29445946_c0
29445946
prolog
0
Title: Prolog equivalent rule but error in one Problem title: Prolog equivalent rule but error in one Tags: prolog, predicate Problem: Prolog equivalent rule but error in one I am currently practicing Prolog for an exam and when I studied old exams I came across a problem, where one had to define a predicate which retu...
Prolog equivalent rule but error in one Prolog equivalent rule but error in one prolog predicate Prolog Length List LengthNew Length-1 Prolog equivalent rule but error in one I am currently practicing Prolog for an exam and when I studied old exams I came across a problem, where one had to define a predicate which retu...
[ 0.015380859375, 0.03173828125, 0.00176239013671875, 0.0177001953125, 0.0106201171875, -0.0062255859375, -0.010009765625, 0.008056640625, 0.0267333984375, -0.036376953125, -0.00016307830810546875, -0.0142822265625, 0.022216796875, -0.00262451171875, 0.038330078125, -0.003204345703125, ...
[ 1250, 4867, 183234, 79986, 1284, 18499, 1632, 23, 502, 1653, 2063, 77554, 32036, 46568, 5759, 74082, 42276, 2967, 61924, 30646, 140909, 5303, 4390, 275, 420, 449, 151575, 927, 910, 51515, 11343, 159399, 177261, 645, 118664, 44691, 51347, 2980...
[ 0.1810302734375, 0.230712890625, 0.1875, 0.1842041015625, 0.026092529296875, 0.2039794921875, 0.0987548828125, 0.0189666748046875, 0.121337890625, 0.157958984375, 0.2095947265625, 0.09124755859375, 0.1634521484375, 0.0855712890625, 0.1129150390625, 0.06268310546875, 0.0960693359375, ...
embed
33118877_c0
33118877
prolog
0
Title: Prolog: md5 predicate Problem title: Prolog: md5 predicate Tags: swi-prolog, prolog, md5 Problem: Prolog: md5 predicate I'm trying to write a md5 predicate that verifies the following: md5("my string", "my md5"). A truth instance of such predicate would be md5("long live and prosper", "bf1835ce984d2a97d31409394f...
Prolog: md5 predicate Prolog: md5 predicate swi-prolog prolog md5 Prolog md5 bf1835ce984d2a97d31409394fe00e9a AtnbRJvB$cZ4gZvG2Glelv8hfWztcY Prolog: md5 predicate I'm trying to write a md5 predicate that verifies the following: A truth instance of such predicate would be I looked into docs, and I found this: http://www...
[ 0.00897216796875, 0.01336669921875, 0.0166015625, 0.01031494140625, -0.023681640625, -0.00140380859375, -0.00262451171875, 0.026123046875, 0.01385498046875, -0.053955078125, 0.0064697265625, 0.004791259765625, -0.002532958984375, 0.00060272216796875, -0.01251220703125, 0.00631713867187...
[ 1250, 4867, 347, 71, 758, 1653, 2063, 67, 91, 2452, 3454, 502, 5843, 31577, 33022, 173, 58726, 90, 25632, 85027, 110527, 6044, 54, 14037, 903, 2424, 29713, 2472, 187694, 136791, 12477, 109954, 53418, 2046, 442, 4488, 9077, 132283, 5122, 1...
[ 0.18896484375, 0.2142333984375, 0.077880859375, 0.1383056640625, 0.25146484375, 0.177734375, 0.2203369140625, 0.101806640625, 0.0233001708984375, 0.1925048828125, 0.12353515625, 0.110595703125, 0.0249481201171875, 0.0426025390625, 0.08734130859375, 0.1553955078125, 0.13720703125, 0...
embed
4906606_c0
4906606
prolog
0
Title: Running Prolog Sicstus through a shell file Problem title: Running Prolog Sicstus through a shell file Tags: halt, malloc, prolog, shell, sicstus-prolog Problem: Running Prolog Sicstus through a shell file I've been trying to run a file through a shell script and write its output into that file. The script is ve...
Running Prolog Sicstus through a shell file Running Prolog Sicstus through a shell file halt malloc prolog shell sicstus-prolog Running Prolog Sicstus Running Prolog Sicstus through a shell file I've been trying to run a file through a shell script and write its output into that file. The script is very simple: /usr/lo...
[ 0.0235595703125, 0.020263671875, -0.004119873046875, 0.01470947265625, -0.0301513671875, 0.0096435546875, -0.01043701171875, 0.00286865234375, -0.0233154296875, -0.040771484375, -0.003936767578125, 0.03369140625, -0.0223388671875, 0.0125732421875, 0.01611328125, 0.00531005859375, 0.0...
[ 28398, 1250, 4867, 63457, 18253, 8305, 128019, 11435, 58810, 960, 55043, 502, 26536, 3454, 31577, 11675, 10, 26499, 33022, 140992, 4552, 8781, 98908, 27744, 617, 83783, 7568, 141, 519, 289, 16428, 127, 302, 85763, 2227, 6114, 2424, 159, 148...
[ 0.1033935546875, 0.1361083984375, 0.2213134765625, 0.1754150390625, 0.27978515625, 0.082763671875, 0.1915283203125, 0.145751953125, 0.19580078125, 0.0789794921875, 0.185546875, 0.090576171875, 0.1396484375, 0.09283447265625, 0.06365966796875, 0.125732421875, 0.001739501953125, 0.16...
embed
61395505_c1
61395505
prolog
1
, P31, P41, P51] was unified with the word drama and the Space [a, P23, P33, P43, P53] was unified with the word ameno. Secondly, i created this predicate palavra_possivel_esp(Word, Space, Spaces, Leters) and the purpose of this predicate is unify a Space with Word, if they are, then they unify Esps that have common va...
and the Space [a, P23, P33, P43, P53] was unified with the word ameno. Secondly, i created this predicate palavra_possivel_esp(Word, Space, Spaces, Leters) and the purpose of this predicate is unify a Space with Word, if they are, then they unify Esps that have common variables with Esp with any of the words in Ltrs E...
[ 0.000316619873046875, 0.0013427734375, -0.0076904296875, 0.01043701171875, -0.023193359375, -0.0002918243408203125, -0.01287841796875, -0.0011749267578125, 0.01007080078125, -0.004364013671875, 0.0255126953125, 0.0274658203125, 0.01544189453125, -0.0194091796875, -0.003692626953125, 0....
[ 43045, 11, 436, 3742, 9185, 11548, 14226, 509, 51, 47314, 678, 2565, 10, 43483, 77648, 17, 75935, 903, 1653, 2063, 67, 113119, 7522, 7, 75790, 90, 254, 164805, 4, 636, 23962, 70, 60042, 83, 40383, 22543, 2174, 49650, 39210, 77336, 34153...
[ 0.245849609375, 0.1339111328125, 0.02899169921875, 0.1171875, 0.13037109375, 0.111083984375, 0.1395263671875, 0.010650634765625, 0.155029296875, 0.1182861328125, 0.1263427734375, 0.1715087890625, 0.067138671875, 0.2529296875, 0.01483154296875, 0.059478759765625, 0.1195068359375, 0....
embed
52777233_c0
52777233
prolog
0
Title: Combination without repetition of next item Problem title: Combination without repetition of next item Tags: prolog Problem: Combination without repetition of next item I have two list (size & color), i'm looking to build a single list without the repetition of one attribute between each element I have a predica...
Combination without repetition of next item Combination without repetition of next item prolog Combination list_pairs List1 List2 Pairs Combination without repetition of next item I have two list (size & color), i'm looking to build a single list without the repetition of one attribute between each element I have a pre...
[ -0.031005859375, 0.0223388671875, -0.0174560546875, 0.0194091796875, -0.01171875, 0.011474609375, -0.02294921875, 0.00592041015625, 0.003326416015625, -0.01025390625, 0.0003261566162109375, 0.01324462890625, 0.0206298828125, 0.008056640625, -0.0027008056640625, 0.020263671875, 0.0132...
[ 106935, 19, 2320, 15490, 57346, 1363, 11737, 35735, 111, 502, 4867, 5303, 109637, 32036, 418, 304, 37897, 4295, 6626, 62539, 10576, 16487, 45367, 11001, 1632, 150380, 17721, 12830, 1653, 2063, 2750, 831, 4358, 139392, 756, 19882, 162515, 3714...
[ 0.20166015625, 0.1693115234375, 0.07568359375, 0.1463623046875, 0.233154296875, 0.050201416015625, 0.127197265625, 0.1744384765625, 0.005828857421875, 0.1239013671875, 0.1744384765625, 0.1923828125, 0.199462890625, 0.1563720703125, 0.020782470703125, 0.0655517578125, 0.1435546875, ...
embed
37691126_c0
37691126
prolog
0
Title: prolog - continue recursion if false Problem title: prolog - continue recursion if false Tags: prolog, recursion Problem: prolog - continue recursion if false I am writing this piece of code: score_one_topic(_,[],0). score_one_topic(Topic,[H|T],Score):- pairs_keys_values([H],[X],_), sub_string(case_insensitive,X...
prolog - continue recursion if false prolog - continue recursion if false prolog recursion score_one_topic Topic Score pairs_keys_values sub_string case_insensitive get_weight Weight ScoreTemp prolog - continue recursion if false I am writing this piece of code: So, basically I have a list of keywords and each keyword ...
[ 0.0145263671875, 0.0286865234375, 0.01483154296875, 0.003387451171875, -0.014892578125, -0.01080322265625, 0.0185546875, 0.0186767578125, 0.00506591796875, 0.002166748046875, 0.00848388671875, 0.031982421875, -0.0267333984375, 0.0126953125, 0.0205078125, 0.00482177734375, 0.018310546...
[ 502, 4867, 21342, 195625, 1830, 2174, 98320, 47763, 3630, 119499, 134912, 168071, 80836, 19770, 27494, 1614, 91693, 7225, 176302, 2046, 165598, 150533, 159065, 18151, 5303, 166117, 57888, 9969, 6743, 2980, 214526, 61475, 757, 6032, 158661, 2967, ...
[ 0.1409912109375, 0.20703125, 0.174560546875, 0.216796875, 0.1328125, 0.08966064453125, 0.249267578125, 0.166259765625, 0.0604248046875, 0.157958984375, 0.16064453125, 0.178955078125, 0.1046142578125, 0.06976318359375, 0.074462890625, 0.148193359375, 0.1622314453125, 0.0654296875, ...
embed
26980566_c0
26980566
prolog
0
Title: Prolog dungeon game and how to block something Problem title: Prolog dungeon game and how to block something Tags: prolog Problem: Prolog dungeon game and how to block something so i am making a dungeon puzzle game, i have rooms connected, i set up monsters and rules for killing them except i failed to realize t...
Prolog dungeon game and how to block something Prolog dungeon game and how to block something prolog Prolog room1 room26 room27 room28 i_am_at in_hand You Prolog dungeon game and how to block something so i am making a dungeon puzzle game, i have rooms connected, i set up monsters and rules for killing them except i fa...
[ -0.0228271484375, 0.046630859375, 0.01416015625, -0.005615234375, 0.005706787109375, 0.014404296875, -0.00144195556640625, 0.00787353515625, -0.0155029296875, -0.0380859375, -0.0087890625, -0.00262451171875, -0.021728515625, -0.01373291015625, 0.002655029296875, 0.02490234375, 0.0075...
[ 1250, 4867, 16423, 13, 191, 6712, 136, 3642, 47, 46389, 9844, 502, 17155, 4046, 3768, 3882, 302, 257, 23, 12336, 2583, 20662, 104192, 112875, 162711, 5423, 1257, 84392, 91736, 200, 30319, 165523, 92154, 831, 390, 13409, 25813, 11737, 15490,...
[ 0.1448974609375, 0.2254638671875, 0.07574462890625, 0.04803466796875, 0.091552734375, 0.0927734375, 0.022308349609375, 0.05853271484375, 0.059478759765625, 0.256591796875, 0.1253662109375, 0.098876953125, 0.128173828125, 0.1123046875, 0.10302734375, 0.13525390625, 0.04034423828125, ...
embed
62020998_c0
62020998
prolog
0
Title: Apply a predicate to a list of inputs Prolog Problem title: Apply a predicate to a list of inputs Prolog Tags: tau-prolog, prolog Problem: Apply a predicate to a list of inputs Prolog What i'm trying to do is: Given a list of characters to know which list best contradicts it, so image I put on the list [kraken,s...
Apply a predicate to a list of inputs Prolog Apply a predicate to a list of inputs Prolog tau-prolog prolog Apply Prolog Name Type Attack abyssal_sire Apply a predicate to a list of inputs Prolog What i'm trying to do is: Given a list of characters to know which list best contradicts it, so image I put on the list [kra...
[ -0.008544921875, -0.01123046875, 0.0035400390625, 0.0250244140625, -0.007568359375, 0.00616455078125, 0.00897216796875, 0.02099609375, -0.00872802734375, -0.01495361328125, 0.0152587890625, -0.01263427734375, -0.000743865966796875, 0.005523681640625, -0.021240234375, 0.0002670288085937...
[ 5659, 538, 1653, 2063, 67, 47, 5303, 107730, 1250, 4867, 5705, 3454, 502, 15757, 60457, 188515, 2314, 7, 2317, 2149, 31577, 54, 77878, 124850, 3714, 2965, 2304, 61669, 29569, 3884, 65584, 86590, 399, 18331, 3962, 12765, 10644, 52875, 12638,...
[ 0.137451171875, 0.0487060546875, 0.1968994140625, 0.227294921875, 0.12451171875, 0.0787353515625, 0.1666259765625, 0.2017822265625, 0.14990234375, 0.2208251953125, 0.18994140625, 0.13623046875, 0.1138916015625, 0.0782470703125, 0.1630859375, 0.177978515625, 0.101318359375, 0.015792...
embed
59523440_c0
59523440
prolog
0
Title: Concating 2 lists with third list containing every different order of the elements of the 2 lists Problem title: Concating 2 lists with third list containing every different order of the elements of the 2 lists Tags: prolog, list Problem: Concating 2 lists with third list containing every different order of the ...
Concating 2 lists with third list containing every different order of the elements of the 2 lists Concating 2 lists with third list containing every different order of the elements of the 2 lists prolog list Concating Concating 2 lists with third list containing every different order of the elements of the 2 lists So I...
[ 0.0228271484375, -0.010009765625, 0.0000400543212890625, 0.006805419921875, -0.00170135498046875, 0.0157470703125, -0.0269775390625, 0.0101318359375, 0.0252685546875, -0.01904296875, 0.0050048828125, -0.01953125, -0.000545501708984375, -0.0003490447998046875, -0.00787353515625, 0.01208...
[ 1657, 408, 1916, 116, 5303, 678, 50960, 70541, 11907, 12921, 12989, 80854, 502, 4867, 765, 158, 4460, 33, 27686, 5608, 30646, 1884, 127887, 35064, 132, 275, 238, 133063, 82449, 1542, 1193, 363, 617, 903, 18151, 35166, 4966, 87, 2046, 237,...
[ 0.1485595703125, 0.1968994140625, 0.098876953125, 0.1695556640625, 0.2403564453125, 0.052642822265625, 0.2342529296875, 0.0838623046875, 0.0677490234375, 0.139892578125, 0.16943359375, 0.1502685546875, 0.11376953125, 0.1553955078125, 0.0237579345703125, 0.1812744140625, 0.23571777343...
embed
28773565_c0
28773565
prolog
0
Title: How to count duplicate prolog Problem title: How to count duplicate prolog Tags: prolog Problem: How to count duplicate prolog I have implemented this tree (insertion), but i want to keep track of duplicate, how do i do this. insert2(nil, nil, nil). insert2(Info, nil, t((Info,1), nil, nil)). insert2(Info , t((Ro...
How to count duplicate prolog How to count duplicate prolog prolog How insert2 Info RootInfo Left Right LeftPlus RightPlus How to count duplicate prolog I have implemented this tree (insertion), but i want to keep track of duplicate, how do i do this. To be a bit more clear this is what i mean Since i have already inse...
[ 0.00457763671875, 0.0036468505859375, -0.0032196044921875, 0.0034027099609375, 0.01470947265625, 0.0137939453125, -0.028076171875, -0.0225830078125, 0.007720947265625, -0.0673828125, -0.01806640625, -0.0137939453125, 0.02734375, 0.01287841796875, 0.0220947265625, 0.0174560546875, -0....
[ 11249, 47, 54529, 171763, 67, 502, 4867, 183540, 304, 14048, 150948, 93147, 2480, 90911, 88225, 29479, 53201, 241860, 3444, 13695, 28560, 111, 3642, 54, 17, 903, 34735, 21771, 297, 209, 51312, 105416, 64457, 154107, 34292 ]
[ 0.063720703125, 0.0478515625, 0.2198486328125, 0.24609375, 0.1790771484375, 0.18408203125, 0.2362060546875, 0.184814453125, 0.107177734375, 0.150146484375, 0.1297607421875, 0.1336669921875, 0.00848388671875, 0.09466552734375, 0.135009765625, 0.0831298828125, 0.16748046875, 0.151855...
embed
58760554_c2
58760554
prolog
2
, leads me to suspect that any variable in the generator (the first term of foreach ) is effectively deep-copied at the time foreach is called, and the copy is reset on each loop. It'll keep structures that are already bound, but unifying any of them inside the foreach just unifies the copy, not the original. Is that a...
, leads me to suspect that any variable in the generator (the first term of foreach ) is effectively deep-copied at the time foreach is called, and the copy is reset on each loop. It'll keep structures that are already bound, but unifying any of them inside the foreach just unifies the copy, not the original. Is that a...
[ 0.014892578125, 0.010986328125, -0.006317138671875, -0.000507354736328125, 0.00738525390625, -0.004486083984375, 0.017333984375, -0.0140380859375, 0.0177001953125, -0.0439453125, 0.01806640625, 0.0198974609375, 0.01104736328125, 0.021484375, 0.028564453125, -0.0103759765625, -0.00836...
[ 37105, 92610, 2499, 77336, 145823, 5117, 13579, 100, 41581, 191984, 53894, 59935, 297, 1733, 35839, 43658, 168398, 98, 12638, 40956, 1181, 13695, 45646, 21771, 99091, 51, 151138, 46132, 27430, 90, 959, 7311, 26785, 53498, 3004, 3714, 3642, 16...
[ 0.006317138671875, 0.1146240234375, 0.03533935546875, 0.2196044921875, 0.277587890625, 0.06396484375, 0.12548828125, 0.1356201171875, 0.314208984375, 0.0772705078125, 0.1669921875, 0.1903076171875, 0.09033203125, 0.05218505859375, 0.1181640625, 0.1900634765625, 0.20556640625, 0.018...
embed
10788292_c0
10788292
prolog
0
Title: Interpreting given paragraph and turning it into Prolog code Problem title: Interpreting given paragraph and turning it into Prolog code Tags: prolog Problem: Interpreting given paragraph and turning it into Prolog code Isaac and Albert were excitedly describing the result of the Third Annual International Scien...
Interpreting given paragraph and turning it into Prolog code Interpreting given paragraph and turning it into Prolog code prolog Interpreting Prolog Interpreting given paragraph and turning it into Prolog code Isaac and Albert were excitedly describing the result of the Third Annual International Science Fair Extravaga...
[ 0.01287841796875, -0.0040283203125, -0.01287841796875, 0.0257568359375, 0.00946044921875, 0.01055908203125, 0.0135498046875, 0.011474609375, -0.0101318359375, -0.01348876953125, -0.02001953125, 0.000293731689453125, -0.0272216796875, 0.007476806640625, 0.005859375, 0.005828857421875, ...
[ 5337, 4692, 1916, 34475, 151268, 136, 174548, 3934, 1250, 4867, 18151, 502, 114636, 24748, 102417, 28852, 23709, 16750, 198387, 121129, 8357, 28745, 34997, 31501, 100781, 13037, 23, 71006, 17262, 62757, 10840, 37405, 130238, 43041, 113771, 23742,...
[ 0.1484375, 0.20947265625, 0.0137939453125, 0.159912109375, 0.233154296875, 0.08544921875, 0.094482421875, 0.087158203125, 0.2064208984375, 0.2425537109375, 0.2042236328125, 0.1572265625, 0.2039794921875, 0.2281494140625, 0.142333984375, 0.1282958984375, 0.009765625, 0.1195068359375...
embed
61927594_c0
61927594
prolog
0
Title: Exclusive solution sets? Problem title: Exclusive solution sets? Tags: prolog Problem: Exclusive solution sets? Suppose we have: g(0,0). g(0,1). h(1,2). f(Z,X):- g(Z,X). % Match h IFF g does not match f(Z,X):- \+ g(Z,X), h(Z,X). So we have a rule, f, that can decide to exclusively take solutions from g, or from ...
Exclusive solution sets? Exclusive solution sets? prolog g h Exclusive Match IFF Exclusive solution sets? Suppose we have: So we have a rule, f, that can decide to exclusively take solutions from g, or from h, both never from both: Is there are better version of this that: doesn't require the negation operator, and whe...
[ -0.0007476806640625, 0.0142822265625, 0.00836181640625, -0.0174560546875, -0.016845703125, 0.00994873046875, -0.00225830078125, 0.01275634765625, 0.0201416015625, 0.033935546875, -0.00055694580078125, 0.02294921875, -0.002197265625, -0.0162353515625, 0.03076171875, 0.01385498046875, ...
[ 180084, 29806, 5423, 502, 4867, 706, 1096, 67407, 159641, 7, 121691, 765, 79986, 1238, 831, 28288, 97629, 538, 5646, 51347, 1295, 8306, 15044, 11522, 11389, 18, 64209, 108, 125682, 39933, 14858, 35405, 66187, 17932, 1733, 135587, 3206, 93425,...
[ 0.2255859375, 0.1771240234375, 0.1793212890625, 0.0936279296875, 0.1331787109375, 0.116455078125, 0.13232421875, 0.1767578125, 0.1700439453125, 0.014892578125, 0.01177978515625, 0.0028076171875, 0.1552734375, 0.1212158203125, 0.003265380859375, 0.093017578125, 0.1949462890625, 0.01...
embed
33700448_c0
33700448
prolog
0
Title: Prolog movies.pl most co-stars Problem title: Prolog movies.pl most co-stars Tags: prolog Problem: Prolog movies.pl most co-stars Given this database, http://swish.swi-prolog.org/example/movies.pl , I have to find the top 25 actors/actresses, with the most co-stars. I don't know how to check on all of them, in o...
Prolog movies.pl most co-stars Prolog movies.pl most co-stars prolog Prolog movies.pl co_star top_25 _A2 Prolog movies.pl most co-stars Given this database, http://swish.swi-prolog.org/example/movies.pl , I have to find the top 25 actors/actresses, with the most co-stars. I don't know how to check on all of them, in or...
[ 0.01953125, 0.0089111328125, -0.00124359130859375, -0.00823974609375, -0.0037841796875, 0.00439453125, -0.0000400543212890625, 0.005462646484375, 0.006591796875, -0.03076171875, 0.0208740234375, -0.01611328125, 0.01708984375, -0.005584716796875, -0.002471923828125, -0.00066375732421875...
[ 1250, 4867, 72304, 2424, 2684, 552, 5613, 502, 2663, 2588, 284, 304, 63399, 114686, 2452, 3454, 136036, 7413, 714, 39329, 2263, 87463, 678, 9, 12765, 756, 2046, 89543, 1311, 61924, 418, 62, 10461, 11, 18770, 4879, 4958 ]
[ 0.16796875, 0.218505859375, 0.0767822265625, 0.12158203125, 0.1573486328125, 0.2099609375, 0.2412109375, 0.1387939453125, 0.0972900390625, 0.1611328125, 0.1065673828125, 0.110595703125, 0.09234619140625, 0.115966796875, 0.10693359375, 0.1004638671875, 0.058624267578125, 0.035278320...
embed
64843593_c0
64843593
prolog
0
Title: Filling list (as an array) : without cut, backtracking leads to infinite recursion after giving a correct production Problem title: Filling list (as an array) : without cut, backtracking leads to infinite recursion after giving a correct production Tags: prolog, prolog-cut Problem: Filling list (as an array) : w...
Filling list (as an array) : without cut, backtracking leads to infinite recursion after giving a correct production Filling list (as an array) : without cut, backtracking leads to infinite recursion after giving a correct production prolog prolog-cut Filling Index Value List NextIndex AllFalse Filling list (as an arra...
[ -0.00408935546875, 0.0211181640625, 0.0096435546875, 0.0191650390625, -0.0281982421875, -0.00119781494140625, -0.004302978515625, 0.017822265625, 0.02734375, 0.013916015625, 0.00897216796875, -0.0128173828125, -0.0113525390625, 0.0341796875, 0.019775390625, -0.00787353515625, 0.02893...
[ 140423, 214, 5303, 162, 10298, 53, 15490, 59226, 4420, 125728, 37105, 54241, 13, 195625, 1830, 7103, 68772, 26785, 36049, 502, 4867, 19774, 31471, 190060, 32036, 4997, 39659, 3164, 17647, 11971, 3871, 61475, 94418, 14012, 80854, 5701, 81678, ...
[ 0.177978515625, 0.0689697265625, 0.2220458984375, 0.0792236328125, 0.1287841796875, 0.0836181640625, 0.09930419921875, 0.2105712890625, 0.079833984375, 0.1766357421875, 0.1136474609375, 0.1070556640625, 0.03033447265625, 0.16015625, 0.06488037109375, 0.055145263671875, 0.049530029296...
embed
13392108_c0
13392108
prolog
0
Title: swi-prolog negation Problem title: swi-prolog negation Tags: negation, prolog Problem: swi-prolog negation I've had a hard time searching for clear answers on negation in Prolog, so I apologize if this is an obvious question: I'm trying to write a simple code that will logically say that "X and Y love each other...
swi-prolog negation swi-prolog negation negation prolog swi-prolog negation I've had a hard time searching for clear answers on negation in Prolog, so I apologize if this is an obvious question: I'm trying to write a simple code that will logically say that "X and Y love each other if X likes Y and only Y." My .pl code...
[ -0.00157928466796875, 0.01513671875, 0.0030975341796875, 0.0172119140625, -0.017822265625, 0.00946044921875, 0.01513671875, -0.01141357421875, 0.0027618408203125, -0.024169921875, -0.0269775390625, -0.01336669921875, -0.007049560546875, -0.012451171875, 0.0169677734375, 0.0191650390625...
[ 91, 2452, 3454, 4867, 108, 125682, 9, 502, 34735, 35166, 1250, 12524, 162520, 31577, 33022, 8781, 18151, 12684, 1542, 136, 990, 5161, 12638, 3789, 2174, 1193, 1884, 4734, 5, 2424, 33342, 11675, 1528, 42856, 26458, 1284, 11343, 1810, 98320, ...
[ 0.059295654296875, 0.232666015625, 0.1434326171875, 0.2340087890625, 0.2020263671875, 0.212646484375, 0.0200347900390625, 0.1448974609375, 0.0648193359375, 0.0193939208984375, 0.1588134765625, 0.0192718505859375, 0.055084228515625, 0.048004150390625, 0.075927734375, 0.08642578125, 0....
embed
47800301_c0
47800301
prolog
0
Title: Visibility of a variable inside a functor Problem title: Visibility of a variable inside a functor Tags: prolog Problem: Visibility of a variable inside a functor Someone asked a question on this site and i noticed that if we have a list of lists which contain variables, then those variables are fully visible in...
Visibility of a variable inside a functor Visibility of a variable inside a functor prolog Visibility Visibility of a variable inside a functor Someone asked a question on this site and i noticed that if we have a list of lists which contain variables, then those variables are fully visible in outer list. For example F...
[ 0.0279541015625, 0.012939453125, -0.0091552734375, 0.0302734375, 0.0174560546875, -0.0036163330078125, -0.006378173828125, -0.0091552734375, 0.005950927734375, -0.019287109375, -0.022705078125, 0.002197265625, 0.003143310546875, 0.017578125, -0.005340576171875, -0.0169677734375, 0.00...
[ 28896, 83259, 77336, 46132, 7477, 18770, 502, 4867, 156672, 5303, 70541, 89554, 75693, 1810, 56, 15400, 158, 2816, 4288, 450, 391, 418, 2203, 304, 959, 27489, 756, 7722, 51347, 34648, 40175, 9351, 17475, 14012, 29806, 15490, 151134, 41, 119...
[ 0.22509765625, 0.1552734375, 0.272705078125, 0.208251953125, 0.18115234375, 0.1732177734375, 0.144775390625, 0.17626953125, 0.049530029296875, 0.1673583984375, 0.07232666015625, 0.08624267578125, 0.259033203125, 0.1260986328125, 0.095458984375, 0.1072998046875, 0.07244873046875, 0....
embed
14959277_c0
14959277
prolog
0
Title: Removing duplicates in list results with unneeded tail Problem title: Removing duplicates in list results with unneeded tail Tags: prolog, lambda Problem: Removing duplicates in list results with unneeded tail I want to remove all duplicates from a given list . Consider the following code : % check if the given ...
Removing duplicates in list results with unneeded tail Removing duplicates in list results with unneeded tail prolog lambda Removing Element List NOT Elem ListOrg Res Addme Set Output _G2725 Removing duplicates in list results with unneeded tail I want to remove all duplicates from a given list . Consider the following...
[ 0.013671875, 0.03466796875, 0.023193359375, -0.00927734375, -0.00115966796875, -0.004425048828125, 0.01446533203125, 0.0118408203125, 0.01220703125, -0.00848388671875, -0.0023956298828125, -0.00677490234375, 0.00445556640625, 0.0194091796875, -0.004669189453125, 0.0240478515625, 0.02...
[ 853, 432, 6496, 171763, 1636, 5303, 50339, 678, 51, 86, 297, 46741, 23, 502, 4867, 6492, 85, 48325, 32036, 86725, 195, 19060, 9624, 29117, 282, 19943, 13538, 3768, 2588, 3444, 47, 87388, 756, 1295, 34475, 18151, 11675, 140992, 11249, 831,...
[ 0.0283203125, 0.135009765625, 0.076904296875, 0.27392578125, 0.1480712890625, 0.202880859375, 0.19677734375, 0.0849609375, 0.06951904296875, 0.100341796875, 0.1168212890625, 0.28564453125, 0.05572509765625, 0.09771728515625, 0.141357421875, 0.123291015625, 0.062744140625, 0.1442871...
embed
66735456_c0
66735456
prolog
0
Title: replace an element in list with its first occurence but keep replacing for all occurences- Prolog Problem title: replace an element in list with its first occurence but keep replacing for all occurences- Prolog Tags: list, prolog, replace Problem: replace an element in list with its first occurence but keep repl...
replace an element in list with its first occurence but keep replacing for all occurences- Prolog replace an element in list with its first occurence but keep replacing for all occurences- Prolog list prolog replace Prolog Yes replace an element in list with its first occurence but keep replacing for all occurences- Pr...
[ -0.0031890869140625, 0.027099609375, 0.006011962890625, 0.0196533203125, -0.00933837890625, -0.01416015625, -0.01531982421875, 0.004669189453125, 0.0037078857421875, -0.0166015625, 0.01409912109375, 0.0206298828125, -0.006134033203125, -0.0162353515625, 0.0009613037109375, 0.0038146972...
[ 91995, 12830, 23, 5303, 678, 5117, 74918, 6620, 1284, 13695, 456, 133266, 214, 100, 756, 69098, 1250, 4867, 502, 32635, 6863, 26859, 1528, 35640, 106371, 184, 3444, 47, 15700, 3687, 33306, 24234, 1286, 77679, 41, 1294, 30646, 2843, 3789, ...
[ 0.218505859375, 0.2108154296875, 0.0811767578125, 0.19921875, 0.1114501953125, 0.1485595703125, 0.171875, 0.060699462890625, 0.08349609375, 0.1717529296875, 0.049285888671875, 0.16357421875, 0.0254364013671875, 0.07318115234375, 0.0816650390625, 0.097900390625, 0.1658935546875, 0.2...
embed
38856894_c1
38856894
prolog
1
2),leaf(L1)). swap(T1,T2):- T1=tree(tree(B1,B2),leaf(L3)), T2=tree(leaf(L3),T3), swap(tree(B1,B2),T3). swap(T1,T2):- T1=tree(leaf(L1),tree(B2,B3)), T2=tree(T3,leaf(L1)), swap(tree(B2,B3),T3). swap(T1,T2):- T1=tree(tree(B1,B2),tree(B3,B4)), T2=tree(T4,T3), swap(tree(B1,B2),T3),swap(tree(B3,B4),T4). Alternatively, A2.2: ...
2),leaf(L1)). swap(T1,T2):- T1=tree(tree(B1,B2),leaf(L3)), T2=tree(leaf(L3),T3), swap(tree(B1,B2),T3). swap(T1,T2):- T1=tree(leaf(L1),tree(B2,B3)), T2=tree(T3,leaf(L1)), swap(tree(B2,B3),T3). swap(T1,T2):- T1=tree(tree(B1,B2),tree(B3,B4)), T2=tree(T4,T3), swap(tree(B1,B2),T3),swap(tree(B3,B4),T4). Alternatively, A2.2: ...
[ 0.01470947265625, 0.023681640625, 0.0004100799560546875, 0.002777099609375, 0.0033111572265625, 0.00433349609375, -0.042724609375, -0.01361083984375, -0.004241943359375, -0.01068115234375, 0.00634765625, -0.001617431640625, -0.01214599609375, 0.0166015625, 0.01031494140625, 0.011840820...
[ 4958, 4, 133, 2407, 866, 17727, 202317, 618, 418, 10461, 12, 384, 1369, 62600, 571, 21320, 304, 363, 617, 634, 29557, 103905, 62, 70147, 132, 53201, 14012, 98441, 17932, 29806, 5045, 40715, 144851, 12301, 41159, 5117, 1632, 2806, 99156, 2...
[ 0.1590576171875, 0.004058837890625, 0.070556640625, 0.2049560546875, 0.08245849609375, 0.07147216796875, 0.232666015625, 0.08917236328125, 0.068603515625, 0.1033935546875, 0.03558349609375, 0.081298828125, 0.0279541015625, 0.1962890625, 0.02374267578125, 0.1107177734375, 0.0433044433...
embed
37397739_c0
37397739
prolog
0
Title: Find the elements on even level of a binary tree in Prolog Problem title: Find the elements on even level of a binary tree in Prolog Tags: binary-tree, prolog, dcg, list Problem: Find the elements on even level of a binary tree in Prolog I'm trying to find all the elements that are placed on even level in a bina...
Find the elements on even level of a binary tree in Prolog Find the elements on even level of a binary tree in Prolog binary-tree prolog dcg list Find Prolog LRez LRrez LRez1 LRez2 Find the elements on even level of a binary tree in Prolog I'm trying to find all the elements that are placed on even level in a binary tr...
[ 0.013671875, 0.0142822265625, -0.002838134765625, -0.0225830078125, 0.0201416015625, 0.032958984375, -0.03662109375, 0.007598876953125, 0.0033111572265625, -0.052978515625, 0.00080108642578125, -0.0244140625, 0.00286865234375, 0.00689697265625, 0.01171875, 0.031494140625, 0.010253906...
[ 26040, 80854, 98, 3853, 17366, 2394, 6635, 53201, 23, 1250, 4867, 62600, 502, 177, 5303, 1255, 7817, 304, 31577, 7413, 756, 158012, 3687, 37842, 4527, 14012, 61924, 198395, 959, 20697 ]
[ 0.135986328125, 0.203369140625, 0.1199951171875, 0.2012939453125, 0.2315673828125, 0.1502685546875, 0.116455078125, 0.222900390625, 0.06341552734375, 0.15478515625, 0.244873046875, 0.1982421875, 0.1171875, 0.06817626953125, 0.111572265625, 0.0638427734375, 0.0931396484375, 0.037506...
embed
15848621_c0
15848621
prolog
0
Title: Prolog recursive program returning too many results Problem title: Prolog recursive program returning too many results Tags: list, prolog, recursion Problem: Prolog recursive program returning too many results I have a Prolog program which is meant to find the sum of the squares of all the numbers in a list divi...
Prolog recursive program returning too many results Prolog recursive program returning too many results list prolog recursion Prolog div_test square_sum Sum Head Tail TempSum Prolog recursive program returning too many results I have a Prolog program which is meant to find the sum of the squares of all the numbers in a...
[ 0.00148773193359375, 0.00146484375, 0.0125732421875, -0.010009765625, -0.0164794921875, -0.00811767578125, -0.03076171875, -0.001190185546875, 0.0145263671875, -0.0233154296875, 0.013427734375, -0.033447265625, 0.0001621246337890625, 0.00738525390625, 0.01409912109375, 0.00338745117187...
[ 1250, 4867, 195625, 5844, 1528, 30646, 5792, 5941, 50339, 214, 5303, 502, 18221, 6954, 6, 108047, 11832, 36335, 44816, 1218, 379, 37446, 294, 316, 131148, 7413, 10554, 756, 101935, 45, 99017, 390, 17262, 43606, 1286, 3501, 1632, 16750, 9077...
[ 0.1510009765625, 0.2181396484375, 0.18603515625, 0.059722900390625, 0.1597900390625, 0.175048828125, 0.1683349609375, 0.1668701171875, 0.2088623046875, 0.0157470703125, 0.1546630859375, 0.116455078125, 0.0919189453125, 0.138671875, 0.0153045654296875, 0.1402587890625, 0.1827392578125...
embed
54425873_c0
54425873
prolog
0
Title: Infinite loop inference Prolog Problem title: Infinite loop inference Prolog Tags: prolog-metainterpreter, prolog, inference-engine Problem: Infinite loop inference Prolog An infinite loop is generated when the inferential motor is activated to make the necessary inferences. The rules and facts have been defined...
Infinite loop inference Prolog Infinite loop inference Prolog prolog-metainterpreter prolog inference-engine Infinite Prolog Name Surname call_p Infinite loop inference Prolog An infinite loop is generated when the inferential motor is activated to make the necessary inferences. The rules and facts have been defined ac...
[ 0.0269775390625, -0.00176239013671875, 0.005096435546875, 0.04248046875, -0.0022125244140625, 0.004364013671875, 0.00531005859375, 0.013916015625, 0.007049560546875, -0.0771484375, 0.01556396484375, 0.0067138671875, -0.034912109375, -0.0150146484375, 0.043701171875, 0.012939453125, 0...
[ 134322, 13, 40956, 53498, 6620, 1250, 4867, 502, 35273, 158288, 56, 128897, 8018, 11627, 11782, 254, 54241, 139392, 3229, 80973, 2926, 34704, 63559, 69098, 91736, 136, 15824, 61924, 6002, 23550, 17368, 79986, 569, 18461, 8705, 17932, 44457, 1...
[ 0.1859130859375, 0.1461181640625, 0.29541015625, 0.202880859375, 0.03338623046875, 0.13818359375, 0.21142578125, 0.07501220703125, 0.0814208984375, 0.1995849609375, 0.0858154296875, 0.133544921875, 0.049560546875, 0.014923095703125, 0.1143798828125, 0.0848388671875, 0.2000732421875, ...
embed
75129348_c1
75129348
prolog
1
(Program), write('Please enter the level of study (undergraduate or graduate): '), read(Degree), recommend_university(UcasCode, Degree, Location, TuitionLower, TuitionUpper, Program, University), write('The recommended university is: '), write(University), nl; write('Sorry, there are no recommended Universities'). I am...
(Program), write('Please enter the level of study (undergraduate or graduate): '), read(Degree), recommend_university(UcasCode, Degree, Location, TuitionLower, TuitionUpper, Program, University), write('The recommended university is: '), write(University), nl; write('Sorry, there are no recommended Universities'). I am...
[ -0.00885009765625, 0.016845703125, -0.005645751953125, 0.006622314453125, -0.00122833251953125, -0.01202392578125, 0.003509521484375, -0.000797271728515625, 0.01336669921875, 0.00408935546875, -0.0087890625, -0.00347900390625, 0.00090789794921875, -0.026123046875, -0.0032958984375, 0.0...
[ 148968, 33022, 238159, 30957, 70, 17366, 35187, 24658, 88610, 707, 150180, 12301, 7134, 67330, 49545, 2481, 1062, 9381, 114211, 262, 90788, 1371, 14, 1363, 15363, 6488, 8079, 7663, 12535, 3957, 170198, 152363, 83, 65305, 13169, 158240, 2685, ...
[ 0.1346435546875, 0.1170654296875, 0.110107421875, 0.1396484375, 0.028411865234375, 0.1041259765625, 0.08489990234375, 0.037933349609375, 0.032806396484375, 0.0474853515625, 0.078125, 0.1029052734375, 0.02587890625, 0.1854248046875, 0.0826416015625, 0.0699462890625, 0.1041259765625, ...
embed
55930276_c0
55930276
prolog
0
Title: How can I compare the value of two predicates prolog Problem title: How can I compare the value of two predicates prolog Tags: prolog, list Problem: How can I compare the value of two predicates prolog I have three predicates that return half the number of elements in a list, the number of ones and the number of...
How can I compare the value of two predicates prolog How can I compare the value of two predicates prolog prolog list How number_elements number_zeros number_ones List HalfCount How can I compare the value of two predicates prolog I have three predicates that return half the number of elements in a list, the number of ...
[ -0.006988525390625, -0.0037384033203125, 0.007049560546875, 0.015625, 0.0054931640625, 0.0159912109375, 0.0021209716796875, -0.00262451171875, 0.01129150390625, -0.0037384033203125, 0.0224609375, 0.004547119140625, 0.00244140625, 0.0031890869140625, 0.0198974609375, -0.00469970703125, ...
[ 11249, 831, 87, 69101, 34292, 6626, 1653, 2063, 1636, 502, 4867, 5303, 14012, 62766, 80510, 25749, 32036, 151500, 108210, 17262, 30646, 23552, 80854, 64333, 45234, 33022, 67, 98320, 164917, 101935, 959, 20697, 105950, 47, 759 ]
[ 0.043365478515625, 0.070556640625, 0.0279388427734375, 0.2255859375, 0.182861328125, 0.1370849609375, 0.1788330078125, 0.200927734375, 0.0711669921875, 0.139404296875, 0.196533203125, 0.1239013671875, 0.1131591796875, 0.172119140625, 0.154052734375, 0.169189453125, 0.10986328125, 0...
embed
43508192_c0
43508192
prolog
0
Title: Max function not giving right answer Problem title: Max function not giving right answer Tags: prolog, max Problem: Max function not giving right answer In Prolog, I made a Max function, however, I am trying to compare the number it returns to others, and can tell that it isn't giving me the right number. My lis...
Max function not giving right answer Max function not giving right answer prolog max Max MaxFound MaxOfTail List Max function not giving right answer In Prolog, I made a Max function, however, I am trying to compare the number it returns to others, and can tell that it isn't giving me the right number. My list will be ...
[ 0.00994873046875, 0.01422119140625, 0.0233154296875, 0.0235595703125, -0.00015926361083984375, 0.039306640625, -0.0101318359375, 0.0155029296875, 0.0142822265625, -0.0107421875, 0.0107421875, 0.006622314453125, 0.001953125, -0.01312255859375, 0.021728515625, -0.01043701171875, 0.0213...
[ 9920, 32354, 959, 68772, 7108, 35166, 502, 4867, 18389, 27591, 7030, 132887, 9874, 379, 32036, 1250, 31577, 69101, 14012, 30646, 27060, 831, 14192, 18, 5303, 304, 133063, 5608, 116, 14037, 678, 35782, 18151, 33342, 2967, 37397, 101935, 98816,...
[ 0.262451171875, 0.1949462890625, 0.07110595703125, 0.10064697265625, 0.1387939453125, 0.1944580078125, 0.1016845703125, 0.179443359375, 0.218505859375, 0.1156005859375, 0.052490234375, 0.1597900390625, 0.1251220703125, 0.1005859375, 0.134033203125, 0.113037109375, 0.05316162109375, ...
embed
77596886_c0
77596886
prolog
0
Title: Not fully understanding Prolog parsers. Why does this return false instead of true? Problem title: Not fully understanding Prolog parsers. Why does this return false instead of true? Tags: parsing, dcg, prolog Problem: Not fully understanding Prolog parsers. Why does this return false instead of true? I am writi...
Not fully understanding Prolog parsers. Why does this return false instead of true? Not fully understanding Prolog parsers. Why does this return false instead of true? parsing dcg prolog Not Prolog Why Non Terminals Not fully understanding Prolog parsers. Why does this return false instead of true? I am writing some pr...
[ 0.03173828125, 0.026611328125, 0.0027618408203125, 0.005859375, -0.015869140625, 0.016357421875, -0.0223388671875, 0.001678466796875, 0, -0.0067138671875, 0.002197265625, -0.006805419921875, -0.017578125, 0.00732421875, 0.01483154296875, 0.01300048828125, 0.00762939453125, 0.021972...
[ 11205, 89554, 100094, 1250, 4867, 366, 7, 1314, 44084, 30646, 98320, 64457, 29568, 104, 238, 177, 502, 3775, 124090, 14602, 903, 32562, 83324, 2174, 34475, 41, 14858, 122092, 147, 159, 2863, 563, 384, 3199, 1022, 58745, 53, 2389, 4426, 54...
[ 0.0828857421875, 0.0577392578125, 0.1182861328125, 0.161376953125, 0.2274169921875, 0.1612548828125, 0.07562255859375, 0.0870361328125, 0.1201171875, 0.1854248046875, 0.253662109375, 0.1563720703125, 0.1949462890625, 0.0328369140625, 0.035369873046875, 0.10498046875, 0.16357421875, ...
embed
35679115_c0
35679115
prolog
0
Title: how to represent OR function in prolog Problem title: how to represent OR function in prolog Tags: logic, prolog, logical-operators Problem: how to represent OR function in prolog I just figured out how to run gprolog and the new problem of prolog confused me. The problem refers to binary search tree in prolog, ...
how to represent OR function in prolog how to represent OR function in prolog logic prolog logical-operators how to represent OR function in prolog I just figured out how to run gprolog and the new problem of prolog confused me. The problem refers to binary search tree in prolog, assume here has two types of facts that...
[ 0.0284423828125, 0.00396728515625, 0.01953125, 0.0152587890625, -0.0230712890625, 0.0242919921875, -0.0216064453125, 0.0034027099609375, -0.00067138671875, -0.03173828125, 0.0189208984375, -0.0301513671875, -0.003997802734375, -0.00848388671875, 0.021484375, -0.00023555755615234375, ...
[ 3642, 47, 33636, 33172, 32354, 23, 502, 4867, 62775, 289, 206469, 11675, 706, 3454, 2967, 55681, 2394, 6635, 33938, 53201, 6626, 52895, 15824, 25737, 1542, 1723, 3229, 1193, 95, 2407, 990, 7108, 831, 5154, 86827, 50490, 21320, 90980, 237, ...
[ 0.0869140625, 0.048675537109375, 0.293701171875, 0.31689453125, 0.231201171875, 0.07598876953125, 0.1861572265625, 0.246826171875, 0.1517333984375, 0.034423828125, 0.19482421875, 0.0906982421875, 0.04608154296875, 0.1668701171875, 0.1170654296875, 0.0399169921875, 0.125732421875, 0...
embed
14627793_c0
14627793
prolog
0
Title: Use the return of a function Problem title: Use the return of a function Tags: prolog Problem: Use the return of a function I'm new to Prolog and I have great problem understanding some of it. For example, I have this 'function' : smstofre([], []). smstofre([T|R], [X|Y] :- frword(T,X), smstofre(R,Y). with the fo...
Use the return of a function Use the return of a function prolog Use atomic_list_concat Use the return of a function I'm new to Prolog and I have great problem understanding some of it. For example, I have this 'function' : with the following 'database' : This is use to translate a poorly written French sentence into a...
[ 0.0196533203125, -0.015625, -0.0162353515625, 0.026123046875, -0.002716064453125, 0.021240234375, 0.0005035400390625, -0.0030670166015625, 0.00921630859375, -0.0693359375, 0.002288818359375, -0.00537109375, -0.018798828125, -0.006072998046875, 0.007049560546875, -0.0069580078125, 0.0...
[ 36836, 70, 30646, 111, 10, 32354, 502, 4867, 34627, 1771, 6562, 2271, 4460, 3525, 1250, 2967, 100094, 137175, 25632, 10135, 37382, 3293, 4527, 3900, 19309, 70425, 59121, 92265, 149357, 3934, 26785, 21185, 3444, 28282, 5646, 8781, 79315, 65450...
[ 0.1318359375, 0.038238525390625, 0.29296875, 0.1513671875, 0.0221099853515625, 0.239013671875, 0.1390380859375, 0.232421875, 0.147216796875, 0.0609130859375, 0.2166748046875, 0.0950927734375, 0.2474365234375, 0.031707763671875, 0.1318359375, 0.054595947265625, 0.09405517578125, 0.2...
embed
34620302_c0
34620302
prolog
0
Title: Parsing with prolog Problem title: Parsing with prolog Tags: parsing, prolog, swi-prolog Problem: Parsing with prolog I am trying to parse with prolog: I need to run a code which recieves a text in the command and parse it depending of the input. Command cal returns calendar(Month, Year) where month ∈ [1-12] and...
Parsing with prolog Parsing with prolog parsing prolog swi-prolog Parsing read_sentence get0 Hello Parsing with prolog I am trying to parse with prolog: I need to run a code which recieves a text in the command and parse it depending of the input. Command cal returns calendar(Month, Year) where month ∈ [1-12] and year ...
[ 0.018798828125, 0.00830078125, 0.00390625, 0.0264892578125, -0.0135498046875, 0.0098876953125, -0.00579833984375, 0.0118408203125, -0.01806640625, -0.040283203125, -0.0019683837890625, 0.0211181640625, -0.0162353515625, -0.028564453125, 0.01025390625, 0.002166748046875, -0.0224609375...
[ 2392, 6953, 678, 502, 4867, 366, 91, 2452, 3454, 12301, 12832, 6620, 2046, 2389, 35378, 31577, 184, 3871, 11675, 18151, 24862, 3134, 7986, 75101, 96819, 107730, 123573, 6510, 30646, 87939, 146794, 42552, 31150, 245918, 9955, 6602, 15205, 6504...
[ 0.1636962890625, 0.1319580078125, 0.1119384765625, 0.1668701171875, 0.25, 0.1539306640625, 0.01068115234375, 0.1551513671875, 0.1500244140625, 0.1385498046875, 0.07171630859375, 0.050628662109375, 0.044158935546875, 0.1453857421875, 0.031768798828125, 0.04949951171875, 0.113647460937...
embed
60825285_c0
60825285
prolog
0
Title: Why does my predicate not work, when a similar predicate does? Problem title: Why does my predicate not work, when a similar predicate does? Tags: prolog Problem: Why does my predicate not work, when a similar predicate does? I have the following facts: loves(andy, julia). loves(andrew, maria). loves(bob, sofia)...
Why does my predicate not work, when a similar predicate does? Why does my predicate not work, when a similar predicate does? prolog Why do_love is_loved Why does my predicate not work, when a similar predicate does? I have the following facts: and I want to have two predicates: which returns Y as the name of the perso...
[ 0.01153564453125, 0.00103759765625, 0.00154876708984375, 0.0169677734375, -0.007415771484375, 0.0133056640625, 0.0108642578125, 0.0015106201171875, 0.01611328125, -0.02734375, 0.0015716552734375, -0.009521484375, -0.00689697265625, -0.002197265625, 0.001861572265625, 0.007080078125, ...
[ 44084, 14602, 759, 1653, 2063, 67, 959, 4488, 3229, 21373, 502, 4867, 54, 25003, 83, 365, 4126, 15824, 3444, 6626, 30646, 990, 9351, 3445, 1193, 237, 68034, 1326, 78302, 54397, 3129, 84751, 33022, 5161, 7, 98320, 41, 15400, 1294, 454, 1...
[ 0.1138916015625, 0.03070068359375, 0.06500244140625, 0.1683349609375, 0.2064208984375, 0.110107421875, 0.1151123046875, 0.1427001953125, 0.031402587890625, 0.156494140625, 0.09075927734375, 0.1318359375, 0.0958251953125, 0.2164306640625, 0.103271484375, 0.1395263671875, 0.15466308593...
embed
55071674_c0
55071674
prolog
0
Title: Using foreach, Add Each Element to List Instead of Writing, Prolog Problem title: Using foreach, Add Each Element to List Instead of Writing, Prolog Tags: recursion, foreach, list, prolog Problem: Using foreach, Add Each Element to List Instead of Writing, Prolog I currently have a database of facts that lists a...
Using foreach, Add Each Element to List Instead of Writing, Prolog Using foreach, Add Each Element to List Instead of Writing, Prolog recursion foreach list prolog Using Add Each Element List Instead Writing Prolog Disease Symptom Possibles Using foreach, Add Each Element to List Instead of Writing, Prolog I currently ...
[ 0.0208740234375, -0.005828857421875, -0.0020294189453125, 0.023193359375, -0.01287841796875, 0.03369140625, -0.00897216796875, 0.00860595703125, 0.010498046875, -0.06787109375, 0.0172119140625, -0.000499725341796875, -0.018310546875, -0.000057697296142578125, 0.01031494140625, -0.00090...
[ 345, 6953, 100, 41581, 29117, 98423, 48325, 47, 32036, 175399, 213185, 1250, 4867, 195625, 5303, 502, 229200, 149450, 115861, 13566, 63399, 15824, 128668, 42518, 70997, 18151, 3249, 5036, 12638, 207116, 3871, 28282, 1632, 12921, 153698, 30957, ...
[ 0.061859130859375, 0.014373779296875, 0.126708984375, 0.273681640625, 0.1728515625, 0.1715087890625, 0.2091064453125, 0.052703857421875, 0.21240234375, 0.136962890625, 0.1611328125, 0.1190185546875, 0.1995849609375, 0.151123046875, 0.24658203125, 0.0994873046875, 0.134033203125, 0....
embed
77386121_c0
77386121
prolog
0
Title: In Prolog, need to create rule that returns a fact value. Currently only returning "true" and not the fact I need Problem title: In Prolog, need to create rule that returns a fact value. Currently only returning "true" and not the fact I need Tags: prolog Problem: In Prolog, need to create ru...
In Prolog, need to create rule that returns a fact value. Currently only returning "true" and not the fact I need In Prolog, need to create rule that returns a fact value. Currently only returning "true" and not the fact I need prolog Prolog Currently In Prolog, need to create rule that returns a fa...
[ 0.0115966796875, 0.01220703125, 0.021728515625, 0.01177978515625, 0.00191497802734375, 0.0189208984375, -0.00439453125, 0.005218505859375, -0.01373291015625, 0.01519775390625, -0.00136566162109375, -0.02099609375, -0.002166748046875, -0.042724609375, 0.00799560546875, 0.001632690429687...
[ 360, 1250, 4867, 3871, 28282, 79986, 30646, 15824, 34292, 114063, 4734, 9774, 13, 959, 502, 765, 63399, 72304, 54452, 5369, 39329, 14364, 41, 1294, 14277, 44759, 2174, 6602, 117396, 105950, 34475, 30957, 38937, 75935, 35064, 276, 136, 990, ...
[ 0.07122802734375, 0.155517578125, 0.25634765625, 0.1190185546875, 0.1312255859375, 0.1951904296875, 0.20751953125, 0.1572265625, 0.181884765625, 0.03619384765625, 0.061614990234375, 0.177490234375, 0.0248565673828125, 0.07562255859375, 0.118408203125, 0.000457763671875, 0.14001464843...
embed
28512930_c0
28512930
prolog
0
Title: Prolog If Then rules Problem title: Prolog If Then rules Tags: prolog, artificial-intelligence Problem: Prolog If Then rules Consider the decision-making situation defined by the following rules: • If it is a nice day and it is summer, then I go to the beach • If it is a nice day and it is winter, then I go to t...
Prolog If Then rules Prolog If Then rules prolog artificial-intelligence Prolog Then Prolog If Then rules Consider the decision-making situation defined by the following rules: • If it is a nice day and it is summer, then I go to the beach • If it is a nice day and it is winter, then I go to the canal boating resort • ...
[ 0.01068115234375, 0.005340576171875, 0.0067138671875, 0.0224609375, 0.00726318359375, 0.0147705078125, 0.006500244140625, -0.00390625, 0.0024871826171875, -0.00848388671875, -0.0150146484375, -0.0086669921875, -0.0198974609375, 0.0157470703125, 0.0177001953125, 0.00732421875, 0.03125...
[ 1250, 4867, 4263, 47009, 91736, 502, 66733, 130687, 137399, 51957, 9, 109513, 16648, 61924, 25632, 10, 26267, 5155, 136, 51065, 7068, 87, 738, 46520, 83, 41710, 26944, 337, 26518, 70634, 959, 4488, 18507, 186857, 139098, 31351, 7477, 3249, ...
[ 0.173583984375, 0.271240234375, 0.2156982421875, 0.2279052734375, 0.2091064453125, 0.122314453125, 0.1400146484375, 0.136474609375, 0.040008544921875, 0.2021484375, 0.00823974609375, 0.1500244140625, 0.167724609375, 0.1396484375, 0.03302001953125, 0.06451416015625, 0.1839599609375, ...
embed
8555289_c0
8555289
prolog
0
Title: What is the difference between a list with anything ([_]) and anything (_) Problem title: What is the difference between a list with anything ([_]) and anything (_) Tags: list, prolog Problem: What is the difference between a list with anything ([_]) and anything (_) I was trying to accomplish the following, if ...
What is the difference between a list with anything ([_]) and anything (_) What is the difference between a list with anything ([_]) and anything (_) list prolog What Tail What is the difference between a list with anything ([_]) and anything (_) I was trying to accomplish the following, if I have two lists, L1 and L2,...
[ -0.00014591217041015625, 0.003997802734375, 0.018310546875, 0.025390625, -0.01251220703125, 0.01385498046875, -0.009521484375, 0.006622314453125, 0.0169677734375, -0.00341796875, 0.0299072265625, -0.0205078125, -0.0017852783203125, 0.01904296875, -0.0089111328125, 0.01068115234375, 0...
[ 4865, 70, 60212, 17721, 5303, 678, 23937, 1065, 454, 136, 10, 502, 4867, 1218, 379, 83, 268, 31577, 163846, 6626, 339, 418, 304, 36663, 16750, 1052, 22144, 117474, 87, 14192, 2367, 101, 378, 43240, 98320, 41591, 70541, 4488, 1221, 11343, ...
[ 0.0029296875, 0.0767822265625, 0.2020263671875, 0.098876953125, 0.2421875, 0.135009765625, 0.2086181640625, 0.06524658203125, 0.1689453125, 0.0789794921875, 0.0281829833984375, 0.0841064453125, 0.107177734375, 0.04296875, 0.077392578125, 0.040740966796875, 0.0430908203125, 0.026779...
embed
43701734_c0
43701734
prolog
0
Title: Prolog if-else conditionals Problem title: Prolog if-else conditionals Tags: prolog Problem: Prolog if-else conditionals I'm new to prolog and I'm trying to implement a BST. The BST is implicit in the form of node(X,L,R) with X as an positive integer, L the left child tree, R the right child tree, and leaf as th...
Prolog if-else conditionals Prolog if-else conditionals prolog Prolog Bst Elem Prolog if-else conditionals I'm new to prolog and I'm trying to implement a BST. The BST is implicit in the form of node(X,L,R) with X as an positive integer, L the left child tree, R the right child tree, and leaf as the base case. One feat...
[ 0.0211181640625, 0.01416015625, 0.007476806640625, -0.005035400390625, 0.01007080078125, 0.029296875, 0.01495361328125, -0.01373291015625, -0.025146484375, -0.035888671875, 0.0096435546875, -0.005126953125, -0.01806640625, 0.005889892578125, 0.025146484375, -0.0019989013671875, 0.016...
[ 1250, 4867, 2174, 5557, 35431, 16765, 502, 335, 271, 540, 195, 3525, 31577, 29479, 8545, 165164, 3173, 110, 112, 1542, 866, 1052, 1193, 24491, 892, 339, 25737, 29041, 53201, 627, 7108, 95, 2407, 3647, 7225, 60213, 19048, 33938, 12830, 88,...
[ 0.172119140625, 0.2431640625, 0.203125, 0.2724609375, 0.2298583984375, 0.1358642578125, 0.1566162109375, 0.044952392578125, 0.1356201171875, 0.1226806640625, 0.2237548828125, 0.0281829833984375, 0.00909423828125, 0.1109619140625, 0.18896484375, 0.2119140625, 0.084716796875, 0.10913...
embed
51464466_c0
51464466
prolog
0
Title: SWI-Prolog No permission to modify static procedure `(=)/2' Problem title: SWI-Prolog No permission to modify static procedure `(=)/2' Tags: prolog Problem: SWI-Prolog No permission to modify static procedure `(=)/2' This question has been asked quite a lot (for instance, here ) but I could not underst...
SWI-Prolog No permission to modify static procedure `(=)/2' SWI-Prolog No permission to modify static procedure `(=)/2' prolog SWI-Prolog Head Tail Count PartialCount ex3.pl:1 Warning Singleton ERROR ex3.pl:5 SWI-Prolog No permission to modify static procedure `(=)/2' This question has been asked quite a lot ...
[ 0.007110595703125, 0.019775390625, 0.0238037109375, 0.0004634857177734375, -0.013427734375, 0.00019359588623046875, -0.014892578125, -0.00008106231689453125, 0.0159912109375, -0.03515625, -0.01153564453125, -0.003692626953125, 0.005035400390625, 0.015625, 0.0196533203125, 0.00390625, ...
[ 159, 38969, 10752, 4867, 438, 168081, 2811, 40383, 201939, 50491, 1369, 12477, 3768, 502, 44816, 1218, 379, 108210, 9148, 289, 1119, 363, 2424, 5550, 592, 43609, 1507, 151206, 758, 5915, 28219, 30022, 3444, 3249, 5303, 567, 54529, 6863, 808...
[ 0.05841064453125, 0.23779296875, 0.158203125, 0.2027587890625, 0.098876953125, 0.2344970703125, 0.15625, 0.1085205078125, 0.1881103515625, 0.18701171875, 0.17041015625, 0.2408447265625, 0.0908203125, 0.11669921875, 0.1441650390625, 0.135009765625, 0.09027099609375, 0.1622314453125,...
embed
23621973_c0
23621973
prolog
0
Title: Is it somehow a "reflection" in Prolog? Problem title: Is it somehow a "reflection" in Prolog? Tags: code-translation, prolog Problem: Is it somehow a "reflection" in Prolog? So basically I am trying to use some Prolog code to simulate pointer like behavior. I asked a related question here , ...
Is it somehow a "reflection" in Prolog? Is it somehow a "reflection" in Prolog? code-translation prolog Prolog TEMP to_lowercase TEMP1 to_low Is it somehow a "reflection" in Prolog? So basically I am trying to use some Prolog code to simulate pointer like behavior. I asked a related question here , ...
[ 0.0257568359375, 0.013916015625, 0.0250244140625, 0.0206298828125, -0.01019287109375, -0.00848388671875, -0.0108642578125, 0.004119873046875, 0.005645751953125, -0.024169921875, 0.015625, 0.012939453125, -0.01416015625, 0.002166748046875, 0.015869140625, -0.0126953125, 0.02294921875,...
[ 2071, 442, 209303, 10, 107, 34334, 10763, 23, 1250, 4867, 18151, 30145, 57860, 502, 384, 113926, 47, 17336, 56, 58437, 418, 40226, 6275, 1884, 123166, 1733, 27781, 313, 3900, 19309, 3934, 11522, 50531, 55681, 100094, 7103, 18831, 254, 10595...
[ 0.03472900390625, 0.09710693359375, 0.1092529296875, 0.06536865234375, 0.1337890625, 0.26416015625, 0.233154296875, 0.10174560546875, 0.1632080078125, 0.265869140625, 0.1416015625, 0.0782470703125, 0.03265380859375, 0.10076904296875, 0.1427001953125, 0.272705078125, 0.1627197265625, ...
embed
33635127_c0
33635127
prolog
0
Title: Prolog find all positions in a list of the minimum element Problem title: Prolog find all positions in a list of the minimum element Tags: list, prolog Problem: Prolog find all positions in a list of the minimum element everyone! I'am having some problems with finding all the occurence positions of the minimum e...
Prolog find all positions in a list of the minimum element Prolog find all positions in a list of the minimum element list prolog Prolog Tail Pos Pos2 Prolog find all positions in a list of the minimum element everyone! I'am having some problems with finding all the occurence positions of the minimum element in a list....
[ -0.00173187255859375, -0.0086669921875, 0.0177001953125, 0.00994873046875, -0.016357421875, 0.02783203125, 0.01239013671875, -0.005096435546875, 0.017333984375, -0.01318359375, 0.009033203125, -0.0037841796875, 0.0164794921875, -0.00469970703125, 0.00128173828125, 0.01019287109375, 0...
[ 1250, 4867, 7413, 756, 19069, 7, 23, 5303, 111, 15440, 12830, 502, 1218, 379, 13498, 304, 30309, 44402, 90791, 74918, 6620, 31344, 18151, 59076, 53299, 5117, 10750, 30646, 17932, 171859, 2967, 11907, 107730, 8337, 2292, 35166, 11343, 106, 1...
[ 0.167236328125, 0.2318115234375, 0.1522216796875, 0.1458740234375, 0.21728515625, 0.0479736328125, 0.082275390625, 0.177490234375, 0.02386474609375, 0.24462890625, 0.1932373046875, 0.1043701171875, 0.05902099609375, 0.09490966796875, 0.116943359375, 0.07122802734375, 0.00332641601562...
embed
5284518_c0
5284518
prolog
0
Title: depth-first in prolog, found the goal but can't keep track of the path Problem title: depth-first in prolog, found the goal but can't keep track of the path Tags: prolog, depth-first-search Problem: depth-first in prolog, found the goal but can't keep track of the path This is what I've written so far....
depth-first in prolog, found the goal but can't keep track of the path depth-first in prolog, found the goal but can't keep track of the path prolog depth-first-search dfs_start InititalState Goal Solution Check Explored Children OpenList depth-first in prolog, found the goal but can't keep track of the path ...
[ 0.0201416015625, 0.0322265625, -0.005584716796875, 0.029052734375, -0.00799560546875, 0.000885009765625, -0.0159912109375, -0.00811767578125, 0.006744384765625, -0.0458984375, 0.002838134765625, -0.00933837890625, -0.016357421875, 0.0244140625, 0.0074462890625, 0.00799560546875, -0.0...
[ 168867, 13448, 271, 502, 4867, 14037, 69236, 1284, 831, 3768, 18, 13695, 28560, 111, 60875, 23, 86250, 104, 17447, 17137, 1890, 1803, 135206, 2016, 289, 187895, 38679, 98873, 2822, 91345, 13527, 154663, 70, 2060, 17368, 234873, 151552, 13832,...
[ 0.25, 0.170166015625, 0.140380859375, 0.1483154296875, 0.238037109375, 0.1376953125, 0.24267578125, 0.0628662109375, 0.06451416015625, 0.0823974609375, 0.04364013671875, 0.09381103515625, 0.1829833984375, 0.0628662109375, 0.25830078125, 0.0179901123046875, 0.154296875, 0.0140838623...
embed
61508980_c0
61508980
prolog
0
Title: Not expected building results Problem title: Not expected building results Tags: prolog Problem: Not expected building results I have a little question about my code : (it can be interpreted as a grid for example) free(1,1). free(1,3). free(2,3). free(2,1). free(1,5). free(5,6). free(5,2). free(5,4). busy(5,1,wh...
Not expected building results Not expected building results prolog Not X-1 Y-1 Not expected building results I have a little question about my code : (it can be interpreted as a grid for example) When I execute this : in SWI-Prolog it says : false. whereas it should says true and return two statements : X2 =2 , Y2= 1 X...
[ 0.00830078125, 0.01263427734375, 0.00830078125, 0.01287841796875, -0.0084228515625, 0.004608154296875, -0.010986328125, 0.03759765625, 0.004547119140625, 0.01361083984375, -0.005126953125, 0.015869140625, -0.00164794921875, -0.00010585784912109375, -0.003753662109375, 0.01068115234375,...
[ 11205, 84751, 33976, 50339, 502, 4867, 1193, 5759, 990, 10176, 9655, 18151, 831, 29481, 237, 120067, 27781, 71924, 903, 159, 38969, 9, 10752, 17378, 98320, 162, 5608, 29568, 30646, 6626, 63805, 304, 55257, 1369, 106, 76067, 28219, 15400, 44...
[ 0.1766357421875, 0.1728515625, 0.172607421875, 0.15185546875, 0.12060546875, 0.204345703125, 0.123779296875, 0.0850830078125, 0.09912109375, 0.0565185546875, 0.03936767578125, 0.187255859375, 0.0175323486328125, 0.108642578125, 0.0303955078125, 0.198486328125, 0.0168914794921875, 0...
embed
5858222_c0
5858222
prolog
0
Title: Returning a list in prolog Problem title: Returning a list in prolog Tags: prolog Problem: Returning a list in prolog i wanna ask a question about returning a list... Facts: TEAM(TEAMNAME,DIRECTOR,NATIOANALITY,OVERALLGOAL) team (milan,allegri,italy, 8.5). team (inter,benitez,italy,7.6). team (barcelona,guardiola...
Returning a list in prolog Returning a list in prolog prolog Returning find1 is_set Returning a list in prolog i wanna ask a question about returning a list... Facts: TEAM(TEAMNAME,DIRECTOR,NATIOANALITY,OVERALLGOAL) and i want to create a predicate: find(T,N,G) : T is name of team, N is nationality of team and this tea...
[ 0.023193359375, 0.00153350830078125, 0.00048065185546875, 0.01263427734375, -0.02294921875, -0.006072998046875, -0.017333984375, 0.005645751953125, 0.012451171875, -0.020751953125, 0.031982421875, 0.0164794921875, -0.01043701171875, -0.0172119140625, -0.003570556640625, 0.037841796875,...
[ 173340, 5303, 23, 502, 4867, 214, 7413, 418, 83, 3509, 10, 6165, 26458, 9655, 30646, 132640, 202540, 182512, 123237, 16546, 27010, 106105, 66437, 19930, 7842, 3444, 28282, 1653, 2063, 618, 839, 724, 384, 9351, 7175, 541, 15889, 2481, 128512...
[ 0.218994140625, 0.220703125, 0.05291748046875, 0.1688232421875, 0.232421875, 0.04345703125, 0.1806640625, 0.06951904296875, 0.11474609375, 0.180419921875, 0.019989013671875, 0.011871337890625, 0.040863037109375, 0.0234222412109375, 0.2147216796875, 0.10888671875, 0.1162109375, 0.06...
embed
45377264_c0
45377264
prolog
0
Title: The list [[a,b]|c] in Prolog Problem title: The list [[a,b]|c] in Prolog Tags: prolog Problem: The list [[a,b]|c] in Prolog During my exploration of different ways to write down lists, I am intrigued by the following list [[a,b]|c] which appears in the book 'Prolog and Natural Language Analysis' by Pereira and S...
The list [[a,b]|c] in Prolog The list [[a,b]|c] in Prolog prolog Prolog write_canonical The list [[a,b]|c] in Prolog During my exploration of different ways to write down lists, I am intrigued by the following list [[a,b]|c] which appears in the book 'Prolog and Natural Language Analysis' by Pereira and Shieber (page 4...
[ 0.036376953125, 0.018310546875, 0.00144195556640625, 0.0262451171875, -0.0057373046875, 0.00982666015625, -0.00250244140625, -0.0023651123046875, 0.0037689208984375, -0.0264892578125, -0.00567626953125, -0.0072021484375, -0.00958251953125, -0.0034332275390625, -0.0035858154296875, -0.0...
[ 5303, 11, 4, 275, 238, 23, 1250, 4867, 502, 33022, 38938, 19, 21533, 7565, 241522, 25632, 58745, 135179, 12877, 10752, 24955, 83658, 114837, 158014, 8294, 1297, 4828, 6338, 110, 22062, 6002, 18, 214552, 5154, 11583, 176377, 5, 42518, 53201,...
[ 0.212890625, 0.06280517578125, 0.043701171875, 0.0999755859375, 0.123291015625, 0.0517578125, 0.187744140625, 0.25439453125, 0.116455078125, 0.1741943359375, 0.1087646484375, 0.06951904296875, 0.161865234375, 0.060760498046875, 0.025390625, 0.029754638671875, 0.04010009765625, 0.00...
embed
36491329_c0
36491329
prolog
0
Title: Replacing successive decreasing numbers by the last number of the sequence in Prolog Problem title: Replacing successive decreasing numbers by the last number of the sequence in Prolog Tags: list, prolog Problem: Replacing successive decreasing numbers by the last number of the sequence in Prolog I've been tryin...
Replacing successive decreasing numbers by the last number of the sequence in Prolog Replacing successive decreasing numbers by the last number of the sequence in Prolog list prolog Replacing Prolog Result NextX Replacing successive decreasing numbers by the last number of the sequence in Prolog I've been trying to sol...
[ 0.0032958984375, 0.030029296875, 0.00506591796875, 0.0194091796875, -0.006378173828125, 0.002349853515625, -0.011962890625, 0.00689697265625, 0.02490234375, 0.01312255859375, 0.00299072265625, 0.0286865234375, -0.018798828125, -0.00213623046875, 0.0252685546875, 0.0031890869140625, 0...
[ 853, 133266, 208479, 8, 7612, 162, 101935, 390, 4568, 14012, 40, 944, 3956, 1250, 4867, 5303, 502, 126684, 4997, 1542, 214, 86869, 6032, 62775, 81887, 13034, 24243, 151814, 91995, 221419, 1614, 6562, 111, 33022, 3647, 7225, 69101, 12477, 96...
[ 0.0704345703125, 0.13671875, 0.192626953125, 0.115478515625, 0.140625, 0.0867919921875, 0.117431640625, 0.0255279541015625, 0.168701171875, 0.1251220703125, 0.038238525390625, 0.089111328125, 0.03955078125, 0.145263671875, 0.2105712890625, 0.1282958984375, 0.08740234375, 0.10522460...
embed
71980378_c0
71980378
prolog
0
Title: Select/4 on a list of lists Problem title: Select/4 on a list of lists Tags: prolog Problem: Select/4 on a list of lists On prolog i'm trying to solve the following exercise for connect 4 ?- generate_move(2,[[1, 0, 1, 0],[0, 1, 1, 0],[0, 0, 1, 1],[1, 0, 0, 1]],BP). BP = [[1, 2, 1, 0], [0, 1, 1, 0], [0, 0, 1, 1],...
Select/4 on a list of lists Select/4 on a list of lists prolog Select generate_move Player FinalLine FinalBoard join_results LeftOvers Select/4 on a list of lists On prolog i'm trying to solve the following exercise for connect 4 Where the rule is that is returns every possible move left for a player provided (in this ...
[ -0.022216796875, 0.0140380859375, 0.0111083984375, 0.01275634765625, -0.0306396484375, -0.0081787109375, -0.012451171875, 0.032470703125, 0.038330078125, -0.0035858154296875, -0.0150146484375, 0.0244140625, -0.00051116943359375, 0.01275634765625, -0.0145263671875, -0.0123291015625, 0...
[ 51620, 17357, 5303, 502, 4867, 139392, 432, 272, 60560, 27188, 93232, 12647, 5861, 33284, 2109, 7136, 2480, 156673, 86869, 81979, 37067, 201, 79986, 30646, 11907, 7722, 25813, 25737, 58585, 62952, 4958, 47644, 17368, 36849, 7413, 16750, 35782, ...
[ 0.2041015625, 0.243896484375, 0.176513671875, 0.07757568359375, 0.1448974609375, 0.082275390625, 0.03936767578125, 0.01605224609375, 0.08660888671875, 0.03656005859375, 0.08251953125, 0.035980224609375, 0.03485107421875, 0.1517333984375, 0.0794677734375, 0.1181640625, 0.0240173339843...
embed
71855179_c1
71855179
prolog
1
? My prolog version swi-prolog 7.2.0 % John Stobo, problem solving with Prolog, March.1989 % FACTS: next_degree(private, corporal). next_degree(corporal, sergeant). next_degree(sergeant, lieutenant). next_degree(lieutenant, captain). next_degree(captain, major). next_degree(major, "lieutenant colonel"). next_degree("li...
? My prolog version swi-prolog 7.2.0 % John Stobo, problem solving with Prolog, March.1989 % FACTS: next_degree(private, corporal). next_degree(corporal, sergeant). next_degree(sergeant, lieutenant). next_degree(lieutenant, captain). next_degree(captain, major). next_degree(major, "lieutenant colonel"). next_degree("li...
[ 0.008544921875, 0.0031280517578125, 0.00921630859375, 0.0220947265625, -0.0026397705078125, -0.0242919921875, 0.007171630859375, 0.0031280517578125, 0.01068115234375, 0.01007080078125, 0.0220947265625, 0.0022430419921875, 0.004058837890625, -0.005828857421875, -0.01116943359375, -0.010...
[ 705, 2646, 502, 4867, 11389, 91, 2452, 3454, 2861, 73011, 4939, 18343, 837, 2967, 3115, 6496, 678, 1250, 11994, 107372, 155816, 12763, 11737, 112, 7134, 13, 158559, 98782, 133350, 520, 429, 1236, 2189, 23414, 86216, 84495, 15644, 13036, 155...
[ 0.042755126953125, 0.07232666015625, 0.17822265625, 0.293212890625, 0.117431640625, 0.036834716796875, 0.2325439453125, 0.194091796875, 0.10186767578125, 0.1995849609375, 0.1331787109375, 0.150634765625, 0.2200927734375, 0.1768798828125, 0.1607666015625, 0.068359375, 0.06207275390625...
embed
16125140_c0
16125140
prolog
0
Title: Prolog practice, need to figure out why Im getting errors Problem title: Prolog practice, need to figure out why Im getting errors Tags: prolog Problem: Prolog practice, need to figure out why Im getting errors Hey I am studying for an exam and I cant figure out one of the practice questions. Can I get some help...
Prolog practice, need to figure out why Im getting errors Prolog practice, need to figure out why Im getting errors prolog Prolog power10 Remainder Counter Prolog practice, need to figure out why Im getting errors Hey I am studying for an exam and I cant figure out one of the practice questions. Can I get some help ple...
[ 0.014404296875, 0.0125732421875, 0.015380859375, 0.01416015625, -0.007568359375, 0.0274658203125, 0.005828857421875, -0.020263671875, -0.00390625, -0.039794921875, -0.006072998046875, -0.0079345703125, 0.010986328125, 0.01336669921875, 0.0130615234375, 0.00860595703125, 0.00107574462...
[ 1250, 4867, 41361, 3871, 26366, 1810, 15400, 3370, 20949, 18499, 502, 14537, 963, 24931, 820, 197956, 42276, 45767, 17582, 4358, 262, 64552, 1653, 2063, 51776, 6626, 171859, 1542, 683, 5608, 29568, 436, 14012, 20028, 1193, 1543, 101637, 3853,...
[ 0.1500244140625, 0.20068359375, 0.16552734375, 0.07049560546875, 0.1121826171875, 0.054107666015625, 0.11962890625, 0.1351318359375, 0.058837890625, 0.21044921875, 0.10760498046875, 0.1807861328125, 0.2176513671875, 0.1246337890625, 0.0152130126953125, 0.1448974609375, 0.048370361328...
embed
48087334_c0
48087334
prolog
0
Title: Prolog constraint logic programming - How to set a domain on a List of Domain Variables given a List of Integers? Problem title: Prolog constraint logic programming - How to set a domain on a List of Domain Variables given a List of Integers? Tags: prolog, clpfd Problem: Prolog constraint logic programming - How...
Prolog constraint logic programming - How to set a domain on a List of Domain Variables given a List of Integers? Prolog constraint logic programming - How to set a domain on a List of Domain Variables given a List of Integers? prolog clpfd Prolog How List Domain Variables Integers ListIntegers Element Prolog constrain...
[ -0.00160980224609375, 0.00067138671875, 0.0289306640625, 0.01190185546875, -0.0120849609375, 0.00174713134765625, -0.003570556640625, 0.01483154296875, -0.002349853515625, -0.0172119140625, -0.007354736328125, 0.003570556640625, -0.0003681182861328125, 0.01226806640625, -0.00759887695312...
[ 1250, 4867, 158, 2816, 4288, 62775, 56037, 11249, 47, 5423, 10, 77758, 98, 32036, 111, 93702, 111477, 13566, 34475, 44401, 449, 502, 39557, 71, 67, 26255, 48325, 3444, 69307, 77878, 5303, 6097, 678, 35845, 103332, 126684, 37842, 959, 36272,...
[ 0.1376953125, 0.2216796875, 0.047760009765625, 0.1650390625, 0.069580078125, 0.13623046875, 0.09613037109375, 0.092041015625, 0.015869140625, 0.1993408203125, 0.01519775390625, 0.255126953125, 0.09844970703125, 0.1766357421875, 0.002197265625, 0.1815185546875, 0.1927490234375, 0.12...
embed