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
15802706_c0
15802706
prolog
0
Title: String comparison program in swi-prolog always fails Problem title: String comparison program in swi-prolog always fails Tags: prolog, swi-prolog Problem: String comparison program in swi-prolog always fails I'm trying to write a program using swi-prolog that randomly asks people for their first or last name and...
String comparison program in swi-prolog always fails String comparison program in swi-prolog always fails prolog swi-prolog What random_member nth0 check_answer Hello World String comparison program in swi-prolog always fails I'm trying to write a program using swi-prolog that randomly asks people for their first or la...
[ -0.00072479248046875, -0.00135040283203125, 0.005767822265625, 0.018310546875, -0.0201416015625, 0.0054931640625, 0.0166015625, -0.00994873046875, -0.004119873046875, -0.01025390625, 0.03369140625, 0.00494384765625, 0.00469970703125, 0.004486083984375, 0.006591796875, -0.00775146484375...
[ 23351, 214, 225490, 1528, 91, 2452, 3454, 4867, 11343, 35782, 502, 96759, 39, 27417, 927, 2389, 12765, 10133, 6488, 35378, 6661, 7, 31577, 33022, 26458, 3395, 5117, 4568, 9351, 28412, 32399, 707, 73, 35509, 10644, 43581, 26785, 35166, 841, ...
[ 0.1888427734375, 0.08154296875, 0.2357177734375, 0.1661376953125, 0.019561767578125, 0.1932373046875, 0.114013671875, 0.186279296875, 0.1331787109375, 0.208740234375, 0.117431640625, 0.16357421875, 0.05780029296875, 0.173828125, 0.07989501953125, 0.15185546875, 0.144775390625, 0.10...
embed
33948437_c1
33948437
prolog
1
HobbyY), HobbyX == HobbyY. % Create the rules for our seating chart list seatingRules([P1,P2,P3,P4,P5,P6,P7,P8|_]):- % Have each adjacent person be of the opposite gender gender(P1,P2), gender(P3,P4), gender(P5,P6), gender(P7,P8), gender(P8,P1), % Have each adjacent person have at least one of the same hobby similarHo...
HobbyY), HobbyX == HobbyY. % Create the rules for our seating chart list seatingRules([P1,P2,P3,P4,P5,P6,P7,P8|_]):- % Have each adjacent person be of the opposite gender gender(P1,P2), gender(P3,P4), gender(P5,P6), gender(P7,P8), gender(P8,P1), % Have each adjacent person have at least one of the same hobby similarHo...
[ 0.0086669921875, 0.01202392578125, 0.0174560546875, 0.019775390625, -0.0078125, 0.00848388671875, -0.03369140625, -0.00830078125, 0.0029296875, -0.024658203125, -0.014892578125, -0.011474609375, 0.0322265625, 0.0213623046875, -0.009033203125, 0.006622314453125, -0.000553131103515625,...
[ 126527, 1723, 1542, 69112, 1745, 151313, 91736, 2446, 40, 26518, 116287, 5303, 26951, 1577, 683, 418, 304, 363, 617, 758, 910, 966, 1019, 31901, 12638, 123594, 16797, 3445, 198274, 127501, 10461, 59690, 50490, 765, 5701, 63645, 21373, 11193, ...
[ 0.232421875, 0.174072265625, 0.204345703125, 0.078857421875, 0.040863037109375, 0.1427001953125, 0.1912841796875, 0.0103759765625, 0.18310546875, 0.19775390625, 0.236083984375, 0.183349609375, 0.142822265625, 0.0775146484375, 0.0284881591796875, 0.0198516845703125, 0.06292724609375, ...
embed
61191765_c0
61191765
prolog
0
Title: Prolog understanding setof/3 with ^ markings Problem title: Prolog understanding setof/3 with ^ markings Tags: prolog, prolog-setof Problem: Prolog understanding setof/3 with ^ markings Could someone explain to me what this is doing? (\+ setof((P1,C),P^R^Bag,PS) -> ... otherwise ->... I have read the documentati...
Prolog understanding setof/3 with ^ markings Prolog understanding setof/3 with ^ markings prolog prolog-setof Prolog Bag solve_task_bt Target Agenda ClosedSet NewPos BackPath Current Rest RPath NewAgenda Result NewClosedSet NewestAgenda Pos Prolog understanding setof/3 with ^ markings Could someone explain to me what t...
[ 0.0159912109375, 0.00372314453125, 0.00933837890625, 0.01434326171875, -0.0038909912109375, 0.0052490234375, -0.00567626953125, 0.006195068359375, 0.00726318359375, -0.023681640625, -0.0130615234375, 0.01513671875, -0.00787353515625, -0.0157470703125, -0.0026397705078125, 0.00379943847...
[ 1250, 4867, 100094, 5423, 4390, 18113, 678, 13331, 16188, 5180, 502, 3509, 19413, 86869, 1073, 92, 16723, 160017, 89660, 153335, 294, 126, 2356, 7192, 26828, 683, 10519, 114063, 49756, 54431, 7074, 126684, 2400, 525, 13498, 73342, 163, 2367, ...
[ 0.170166015625, 0.24267578125, 0.12890625, 0.22607421875, 0.268798828125, 0.21240234375, 0.05230712890625, 0.1634521484375, 0.157958984375, 0.1181640625, 0.1253662109375, 0.1943359375, 0.2015380859375, 0.1785888671875, 0.1217041015625, 0.009124755859375, 0.1361083984375, 0.23791503...
embed
66713778_c0
66713778
prolog
0
Title: prolog unary numbers - evaluating expression Problem title: prolog unary numbers - evaluating expression Tags: prolog, successor-arithmetics Problem: prolog unary numbers - evaluating expression I am trying to understand Prolog and I came up to following situation. I have defined natural numbers (unary) in follo...
prolog unary numbers - evaluating expression prolog unary numbers - evaluating expression prolog successor-arithmetics prolog unary numbers - evaluating expression I am trying to understand Prolog and I came up to following situation. I have defined natural numbers (unary) in following way: Which means that 0 is 0, s(0...
[ 0.0023956298828125, 0.007476806640625, 0.0098876953125, 0.01123046875, 0.00482177734375, 0.000728607177734375, 0.023681640625, 0.0089111328125, 0.004669189453125, -0.0263671875, 0.004852294921875, 0.00811767578125, -0.0191650390625, -0.003997802734375, 0.0267333984375, 0.00555419921875...
[ 502, 4867, 220, 1294, 101935, 151575, 214, 125195, 39457, 42, 8962, 28219, 1250, 16648, 61924, 6083, 23364, 53, 3917, 26950, 757, 91, 177609, 106, 116, 1653, 2063, 67, 15190, 6626, 16750, 4343, 567, 25632, 6954, 106804, 2967, 29481, 10644, ...
[ 0.1737060546875, 0.228515625, 0.150146484375, 0.1475830078125, 0.16455078125, 0.1512451171875, 0.00830078125, 0.2230224609375, 0.157958984375, 0.022918701171875, 0.0306396484375, 0.048309326171875, 0.1527099609375, 0.0123291015625, 0.1298828125, 0.1412353515625, 0.1517333984375, 0....
embed
25049697_c1
25049697
prolog
1
], V). V = '2.6.5' ; V = '2.5.4' . I used trace to track it, and the problem I found, when it try to find another solution it back tracks and will return fail until find the right solution. Like the example above, apparently, it will return true for V='2.6.5' at first and take that to back track and run the functions, ...
], V). V = '2.6.5' ; V = '2.5.4' . I used trace to track it, and the problem I found, when it try to find another solution it back tracks and will return fail until find the right solution. Like the example above, apparently, it will return true for V='2.6.5' at first and take that to back track and run the functions, ...
[ 0.00008058547973632812, 0.00004100799560546875, 0.0137939453125, 0.027587890625, -0.00970458984375, 0.0031890869140625, -0.0123291015625, -0.000881195068359375, 0.006256103515625, 0.02392578125, 0.0224609375, 0.00017547607421875, 0.0037384033203125, 0.003997802734375, -0.00982666015625, ...
[ 10114, 310, 194, 2203, 242, 5442, 136473, 2819, 48413, 5, 617, 11814, 144851, 28560, 442, 2967, 14037, 3229, 9790, 7413, 15700, 29806, 4420, 7, 1221, 30646, 35782, 24189, 7108, 27781, 198371, 29568, 5117, 5646, 47, 11675, 32354, 136, 41206,...
[ 0.031005859375, 0.2188720703125, 0.06103515625, 0.06829833984375, 0.041748046875, 0.1282958984375, 0.2359619140625, 0.0487060546875, 0.2135009765625, 0.019256591796875, 0.15380859375, 0.034942626953125, 0.1953125, 0.21142578125, 0.0439453125, 0.141357421875, 0.058135986328125, 0.01...
embed
56939158_c0
56939158
prolog
0
Title: Infinite recursion error with and conditions? Problem title: Infinite recursion error with and conditions? Tags: prolog Problem: Infinite recursion error with and conditions? I have the following facts and rules in my database. above(b, a). above(c, b). above(d, c). above(X,Y):-above(X,Z),above(Z,Y). below(X,Y):...
Infinite recursion error with and conditions? Infinite recursion error with and conditions? prolog Infinite Stack Choice Probable _1394 _1420 Infinite recursion error with and conditions? I have the following facts and rules in my database. This works as intended for the positive case so that if I query, above(c,a). Th...
[ 0.01007080078125, 0.0024566650390625, -0.01171875, 0.021484375, -0.017822265625, 0.01312255859375, -0.01068115234375, -0.007354736328125, 0.007049560546875, -0.01171875, 0.0147705078125, -0.0189208984375, 0.0027618408203125, 0.004852294921875, 0.024169921875, 0.0133056640625, 0.01416...
[ 134322, 13, 195625, 1830, 18499, 678, 136, 27289, 502, 4867, 6512, 2594, 181948, 1250, 275, 2886, 14889, 2592, 1549, 25632, 15824, 91736, 63399, 43240, 237, 179140, 24491, 7225, 41, 36917, 238, 11, 30646, 34292, 87599, 37842, 1294, 35064, 4...
[ 0.18798828125, 0.0838623046875, 0.2342529296875, 0.10308837890625, 0.21630859375, 0.1209716796875, 0.1424560546875, 0.2578125, 0.061798095703125, 0.1129150390625, 0.07373046875, 0.1044921875, 0.146484375, 0.0975341796875, 0.116943359375, 0.0148162841796875, 0.09576416015625, 0.0243...
embed
70251994_c0
70251994
prolog
0
Title: Use expand_term/2 with file for dcg translation Problem title: Use expand_term/2 with file for dcg translation Tags: swi-prolog, prolog, dcg Problem: Use expand_term/2 with file for dcg translation I'm trying to "translate" a file that contains dcg's. in particular i am trying to transform all dcg into normal de...
Use expand_term/2 with file for dcg translation Use expand_term/2 with file for dcg translation swi-prolog prolog dcg Use expand_term temp.pl Clause non_terminal user:a Use expand_term/2 with file for dcg translation I'm trying to "translate" a file that contains dcg's. in particular i am trying to transform all dcg in...
[ 0.033935546875, 0.00830078125, 0.0038299560546875, 0.025634765625, 0.0107421875, 0.01361083984375, -0.004241943359375, 0.002685546875, 0.00628662109375, -0.0361328125, 0.00244140625, 0.0084228515625, -0.01239013671875, 0.00003933906555175781, 0.00543212890625, 0.001861572265625, 0.01...
[ 36836, 71062, 32166, 12477, 678, 11435, 104, 238, 177, 153648, 2452, 3454, 4867, 502, 20805, 2424, 100700, 30524, 38937, 31577, 30145, 19309, 70541, 27198, 756, 3934, 3638, 71496, 13, 70731, 90, 17368, 1884, 71864, 23009, 3900, 143, 9405, 9...
[ 0.0487060546875, 0.167236328125, 0.191650390625, 0.19580078125, 0.0634765625, 0.159423828125, 0.058013916015625, 0.09326171875, 0.1456298828125, 0.212158203125, 0.137451171875, 0.06573486328125, 0.1351318359375, 0.056396484375, 0.1466064453125, 0.11376953125, 0.11474609375, 0.05389...
embed
23620118_c0
23620118
prolog
0
Title: Unify all free variables in a list with the value 1 - SWI Prolog Problem title: Unify all free variables in a list with the value 1 - SWI Prolog Tags: prolog Problem: Unify all free variables in a list with the value 1 - SWI Prolog I'm working on SWI-Prolog. Given the following key-value-pairs list: List = [pair...
Unify all free variables in a list with the value 1 - SWI Prolog Unify all free variables in a list with the value 1 - SWI Prolog prolog Unify SWI Prolog List key1 key2 key3 _G1 key4 key5 KVPs Unify all free variables in a list with the value 1 - SWI Prolog I'm working on SWI-Prolog. Given the following key-value-pairs...
[ 0.01361083984375, 0.014404296875, 0.0126953125, -0.0216064453125, 0.002899169921875, -0.0081787109375, -0.0213623046875, 0.016845703125, 0.0098876953125, -0.000881195068359375, 0.009033203125, 0.0181884765625, 0.0142822265625, 0.00970458984375, -0.0069580078125, 0.00110626220703125, ...
[ 992, 40383, 756, 4092, 77336, 7, 5303, 678, 34292, 106, 159, 38969, 1250, 4867, 502, 32036, 22799, 418, 304, 363, 724, 617, 758, 341, 41195, 20697, 10752, 27494, 109637, 4734, 527, 80836, 162429, 856, 50770, 5423, 47, 615, 10617, 21115, ...
[ 0.16943359375, 0.1597900390625, 0.07666015625, 0.1712646484375, 0.2440185546875, 0.008941650390625, 0.1971435546875, 0.1326904296875, 0.183837890625, 0.1116943359375, 0.030517578125, 0.1800537109375, 0.10748291015625, 0.1839599609375, 0.06524658203125, 0.1756591796875, 0.113525390625...
embed
26152384_c0
26152384
prolog
0
Title: How to make program run in linear time? Problem title: How to make program run in linear time? Tags: prolog, performance Problem: How to make program run in linear time? So I would like to make this code to execute in linear time and I'm not sure what's making it take long than that so all help would be appricia...
How to make program run in linear time? How to make program run in linear time? prolog performance How Head1 Text AvgLen Head2 Tail Letters Words Letters1 Words1 Avg How to make program run in linear time? So I would like to make this code to execute in linear time and I'm not sure what's making it take long than that ...
[ 0.004730224609375, -0.00909423828125, 0.003387451171875, 0.0299072265625, -0.005523681640625, 0.00439453125, -0.0031280517578125, 0.016845703125, -0.0017852783203125, -0.06494140625, 0.0198974609375, 0.00189208984375, -0.00689697265625, -0.00433349609375, 0.019775390625, 0.013427734375...
[ 11249, 47, 3249, 1528, 11675, 23, 192617, 1733, 502, 4867, 23718, 44816, 418, 24129, 4908, 33, 304, 1218, 379, 105451, 22543, 177, 1884, 18151, 71924, 20662, 5646, 4989, 756, 4358, 56623, 90502, 73342, 2367, 14602, 85045, 3066, 71, 83, 28...
[ 0.1165771484375, 0.06439208984375, 0.1343994140625, 0.2342529296875, 0.18310546875, 0.1197509765625, 0.254638671875, 0.210693359375, 0.1497802734375, 0.2333984375, 0.174072265625, 0.1463623046875, 0.0249481201171875, 0.143798828125, 0.159912109375, 0.1038818359375, 0.0161895751953125...
embed
50121573_c1
50121573
prolog
1
1,4). box(b2,6). box(b3,5). box(b4,6). box(b5,5). % I tried to define the boxes but I dont know how to assign probabilites to them in this format total(D1,D2,D3,D4,Sum) :- Sum is D1+D2+D3+D4. % I defined the sum calculation totalboxweight(A,B,C,D,Sum) :- box(A,D1), box(B,D2) , box(C,D3), box(D,D4), total(D1,D2,D3,D4,Su...
1,4). box(b2,6). box(b3,5). box(b4,6). box(b5,5). % I tried to define the boxes but I dont know how to assign probabilites to them in this format total(D1,D2,D3,D4,Sum) :- Sum is D1+D2+D3+D4. % I defined the sum calculation totalboxweight(A,B,C,D,Sum) :- box(A,D1), box(B,D2) , box(C,D3), box(D,D4), total(D1,D2,D3,D4,Su...
[ 0.00823974609375, 0.0179443359375, -0.0031890869140625, 0.00701904296875, -0.027099609375, -0.00140380859375, -0.02001953125, 0.013427734375, -0.0045166015625, 0.00014209747314453125, 0.001495361328125, -0.0181884765625, 0.023193359375, -0.0255126953125, 0.031982421875, 0.02197265625, ...
[ 59084, 16530, 275, 189126, 92714, 128191, 125592, 37842, 61924, 90, 13319, 3714, 3642, 95486, 37242, 52164, 9384, 3622, 397, 418, 304, 363, 617, 294, 316, 36335, 83, 391, 1328, 10554, 74481, 11728, 165598, 571, 21320, 29557, 1257, 756, 5788...
[ 0.1572265625, 0.2364501953125, 0.029388427734375, 0.1346435546875, 0.12646484375, 0.132080078125, 0.1697998046875, 0.000518798828125, 0.1455078125, 0.10430908203125, 0.0064697265625, 0.0595703125, 0.01446533203125, 0.1392822265625, 0.2578125, 0.160888671875, 0.1591796875, 0.1929931...
embed
68302496_c0
68302496
prolog
0
Title: Finding disconnected subgraphs in Prolog Problem title: Finding disconnected subgraphs in Prolog Tags: prolog Problem: Finding disconnected subgraphs in Prolog I am working on a Prolog program that takes an NxN matrix that has two random end nodes (and some other constraints) and connects the two nodes. The fina...
Finding disconnected subgraphs in Prolog Finding disconnected subgraphs in Prolog prolog Finding Prolog Finding disconnected subgraphs in Prolog I am working on a Prolog program that takes an NxN matrix that has two random end nodes (and some other constraints) and connects the two nodes. The final constraint is making...
[ 0.00494384765625, 0.02099609375, 0.006988525390625, 0.0169677734375, -0.01361083984375, 0.0167236328125, -0.0281982421875, -0.00836181640625, 0.0003185272216796875, -0.043212890625, -0.01043701171875, -0.0234375, -0.0093994140625, 0.01025390625, -0.0037384033203125, 0.01025390625, 0....
[ 26040, 2837, 135457, 297, 1614, 41382, 7, 1250, 4867, 502, 20697, 1528, 425, 839, 50944, 6626, 96759, 3564, 110, 988, 2816, 37067, 2704, 29806, 4734, 70541, 1632, 162711, 6528, 6713, 16188, 112, 36997, 13695, 157318, 123594, 16797, 19922, 3...
[ 0.1103515625, 0.07379150390625, 0.19970703125, 0.044036865234375, 0.17236328125, 0.2242431640625, 0.015411376953125, 0.1409912109375, 0.2064208984375, 0.076904296875, 0.0309295654296875, 0.04473876953125, 0.0675048828125, 0.064208984375, 0.09283447265625, 0.0223846435546875, 0.102294...
embed
15008586_c0
15008586
prolog
0
Title: Prolog - making a recursive divisor Problem title: Prolog - making a recursive divisor Tags: prolog, increment, recursion Problem: Prolog - making a recursive divisor Okay, so I'm a beginner in Prolog so I'm sorry if I can't quite get my question across very clearly but this is where I'm struggling: divide_by(X,...
Prolog - making a recursive divisor Prolog - making a recursive divisor prolog increment recursion Prolog divide_by X_1 I_1 Prolog - making a recursive divisor Okay, so I'm a beginner in Prolog so I'm sorry if I can't quite get my question across very clearly but this is where I'm struggling: I'm trying to write a prog...
[ -0.01019287109375, 0.0126953125, -0.0091552734375, 0.00714111328125, -0.004364013671875, 0.019287109375, 0.00168609619140625, -0.00119781494140625, 0.01031494140625, -0.038330078125, 0.004791259765625, -0.0074462890625, -0.002960205078125, 0.0181884765625, 0.01708984375, -0.01123046875...
[ 1250, 4867, 20662, 195625, 5844, 45, 51858, 502, 158661, 101637, 1272, 1193, 115187, 87, 9842, 1679, 59090, 237875, 31577, 33022, 1528, 26946, 6626, 10750, 1542, 136, 391, 30646, 720, 568, 853, 24931, 820, 1052, 44116, 16750, 248, 3229, 389...
[ 0.173828125, 0.2373046875, 0.0772705078125, 0.220947265625, 0.1041259765625, 0.142333984375, 0.250244140625, 0.11279296875, 0.2216796875, 0.1739501953125, 0.09136962890625, 0.1053466796875, 0.1259765625, 0.2015380859375, 0.0154876708984375, 0.06024169921875, 0.048187255859375, 0.09...
embed
59098401_c0
59098401
prolog
0
Title: How do I append an element to the beginning of a list after splitting a list? Problem title: How do I append an element to the beginning of a list after splitting a list? Tags: prolog Problem: How do I append an element to the beginning of a list after splitting a list? I'm a total Prolog noob and I'm having som...
How do I append an element to the beginning of a list after splitting a list? How do I append an element to the beginning of a list after splitting a list? prolog How List Split Left Right RightTemp How do I append an element to the beginning of a list after splitting a list? I'm a total Prolog noob and I'm having some...
[ 0.00113677978515625, 0.01708984375, 0.01324462890625, -0.0040283203125, -0.0242919921875, 0.0191650390625, -0.005157470703125, 0.00140380859375, 0.0220947265625, -0.0184326171875, 0.01513671875, -0.001953125, -0.024658203125, 0.00927734375, -0.006500244140625, -0.00439453125, 0.01043...
[ 11249, 114689, 71, 12830, 47, 86595, 111, 5303, 7103, 65450, 1916, 54, 502, 4867, 32036, 46474, 636, 2480, 90911, 159065, 3622, 1250, 3522, 63134, 18151, 31577, 3934, 6626, 107730, 25737, 26818, 8108, 7108, 3714, 154663, 5267, 31923, 4353, ...
[ 0.0501708984375, 0.1903076171875, 0.145263671875, 0.189208984375, 0.099853515625, 0.1739501953125, 0.048858642578125, 0.1893310546875, 0.140625, 0.1790771484375, 0.1068115234375, 0.0128173828125, 0.080322265625, 0.17431640625, 0.161865234375, 0.1661376953125, 0.00897216796875, 0.09...
embed
75026619_c0
75026619
prolog
0
Title: ungrouping grouped disjunctive goals and the cut Problem title: ungrouping grouped disjunctive goals and the cut Tags: prolog Problem: ungrouping grouped disjunctive goals and the cut It is well known that the following two rules fruit(X) :- yellow(X). fruit(X) :- red(X). can be written more concisely as followi...
ungrouping grouped disjunctive goals and the cut ungrouping grouped disjunctive goals and the cut prolog goal1 goal2 General goal3 ungrouping grouped disjunctive goals and the cut It is well known that the following two rules can be written more concisely as following using the disjunction ; . Now, let's look at the fo...
[ 0.0291748046875, 0.017822265625, -0.00102996826171875, 0.029541015625, -0.01226806640625, 0.00701904296875, -0.0194091796875, 0.0037078857421875, 0.007476806640625, 0.037353515625, -0.02978515625, 0.00494384765625, -0.000774383544921875, -0.0028228759765625, 0.0006103515625, 0.00396728...
[ 51, 51588, 37769, 2837, 461, 8766, 4935, 109458, 136, 59226, 71, 502, 4867, 69236, 304, 9082, 363, 25632, 6626, 91736, 59121, 10794, 17368, 17043, 10763, 65508, 10, 8108, 21115, 6528, 2174, 3034, 159975, 14858, 159342, 959, 71924, 36917, 18...
[ 0.1099853515625, 0.1898193359375, 0.19482421875, 0.088623046875, 0.158447265625, 0.07666015625, 0.07891845703125, 0.1981201171875, 0.013641357421875, 0.2529296875, 0.001068115234375, 0.1151123046875, 0.165771484375, 0.1539306640625, 0.059539794921875, 0.10394287109375, 0.054870605468...
embed
4576741_c0
4576741
prolog
0
Title: prolog recursion Problem title: prolog recursion Tags: recursion, prolog Problem: prolog recursion am making a function that will send me a list of all possible elemnts .. in each iteration its giving me the last answer .. but after the recursion am only getting the last answer back .. how can i make it give bac...
prolog recursion prolog recursion recursion prolog Result Element Rest Members Sum ElementLength Cap Answer prolog recursion am making a function that will send me a list of all possible elemnts .. in each iteration its giving me the last answer .. but after the recursion am only getting the last answer back .. how can...
[ -0.00762939453125, 0.01513671875, 0.01953125, 0.01397705078125, -0.02392578125, 0.01336669921875, 0.004974365234375, -0.00958251953125, 0.01300048828125, -0.0322265625, 0.009765625, -0.0126953125, -0.004150390625, 0.019287109375, 0.0167236328125, -0.001678466796875, 0.0174560546875, ...
[ 502, 4867, 195625, 1830, 126684, 48325, 49756, 74057, 36335, 449, 14304, 130373, 20662, 32354, 25379, 163, 5303, 756, 7722, 88, 195, 16037, 12638, 720, 4568, 35166, 7103, 4734, 20949, 4420, 3249, 8337, 11907, 11001, 2967, 31577, 7413, 113068,...
[ 0.150634765625, 0.2225341796875, 0.211181640625, 0.105224609375, 0.1444091796875, 0.1934814453125, 0.1402587890625, 0.160888671875, 0.13232421875, 0.038818359375, 0.1680908203125, 0.1207275390625, 0.035491943359375, 0.112060546875, 0.0272674560546875, 0.0048828125, 0.0882568359375, ...
embed
20249749_c0
20249749
prolog
0
Title: Just starting Prolog...need help in making small Expert System Problem title: Just starting Prolog...need help in making small Expert System Tags: prolog, system Problem: Just starting Prolog...need help in making small Expert System I have just started to use Prolog for the first time and I have to implement an...
Just starting Prolog...need help in making small Expert System Just starting Prolog...need help in making small Expert System prolog system Just Prolog...need Expert System Just starting Prolog...need help in making small Expert System I have just started to use Prolog for the first time and I have to implement an Expe...
[ 0.013427734375, 0.01507568359375, 0.0010528564453125, 0.01513671875, 0.004852294921875, 0.022705078125, 0.0037994384765625, 0.025146484375, 0.00022792816162109375, -0.0267333984375, 0.0235595703125, 0.0211181640625, -0.0242919921875, 0.0264892578125, 0.0216064453125, 0.001953125, 0.0...
[ 9563, 72134, 1250, 4867, 86, 297, 4358, 20662, 19336, 70523, 12353, 502, 5426, 1660, 26859, 4527, 5117, 1733, 765, 29479, 3444, 99219, 22008, 237, 19441, 30783, 43334, 2174, 53418, 48903, 1957, 8966, 12319, 51, 208202, 11853, 18151, 106117, ...
[ 0.071533203125, 0.0859375, 0.1422119140625, 0.2308349609375, 0.0364990234375, 0.083984375, 0.1201171875, 0.06866455078125, 0.1168212890625, 0.2098388671875, 0.1829833984375, 0.09326171875, 0.1844482421875, 0.030853271484375, 0.0474853515625, 0.053009033203125, 0.02935791015625, 0.0...
embed
49221104_c0
49221104
prolog
0
Title: Prolog XPCE display predicate Problem title: Prolog XPCE display predicate Tags: prolog, assign, predicate, xpce Problem: Prolog XPCE display predicate Hi I have program ("expert program") in which user choose few button options and this program search in predicates cars with this checked options. After this I w...
Prolog XPCE display predicate Prolog XPCE display predicate prolog assign predicate xpce Prolog XPCE Marka Kolor Nadwozie Cars Model char_array Prolog XPCE display predicate Hi I have program ("expert program") in which user choose few button options and this program search in predicates cars with this checked options....
[ 0.0128173828125, -0.01287841796875, 0.0111083984375, 0.0169677734375, -0.00445556640625, 0.04931640625, 0.037109375, 0.0289306640625, 0.012939453125, -0.0301513671875, 0.00634765625, -0.005401611328125, -0.01129150390625, 0.0035858154296875, 0, 0.001007080078125, 0.0186767578125, 0...
[ 1250, 4867, 45005, 10854, 44116, 1653, 2063, 67, 502, 95486, 1022, 254, 329, 32945, 137367, 31252, 3613, 5556, 3980, 13293, 21441, 19305, 765, 1528, 81317, 38937, 55076, 10846, 77679, 50717, 33938, 2258, 12765, 32599, 903, 1632, 1286, 76896, ...
[ 0.1400146484375, 0.2274169921875, 0.15576171875, 0.180908203125, 0.1722412109375, 0.1920166015625, 0.23828125, 0.083251953125, 0.099853515625, 0.1859130859375, 0.0186920166015625, 0.027130126953125, 0.09332275390625, 0.060028076171875, 0.10498046875, 0.060302734375, 0.052764892578125...
embed
64726526_c0
64726526
prolog
0
Title: Swap two items depending on the index Problem title: Swap two items depending on the index Tags: prolog Problem: Swap two items depending on the index I have a predicate like this: swap(List, Index1, Index2, New_List). List = [3,8,1,6]. Index1 = 1. Index2 = 3. With the swap, New_List will be: New_List = [3,6,1,8...
Swap two items depending on the index Swap two items depending on the index prolog Swap List Index1 Index2 New_List Index nth0 _Rest Index_New Swap two items depending on the index I have a predicate like this: With the swap, New_List will be: I'm trying to implement some code, but I don't understand why It gives me: F...
[ -0.0235595703125, 0.0040283203125, 0.00714111328125, -0.006744384765625, -0.0120849609375, 0.0042724609375, -0.032958984375, 0.0150146484375, 0.005401611328125, 0.017578125, 0.01904296875, -0.0023651123046875, -0.0186767578125, 0.0279541015625, 0.011474609375, 0.003509521484375, 0.03...
[ 43062, 254, 6626, 55769, 8, 96819, 98, 63262, 502, 4867, 32036, 31471, 304, 2356, 154663, 927, 2389, 1052, 525, 46568, 1653, 2063, 17106, 202317, 1221, 186, 31577, 29479, 18151, 2301, 18, 28219, 15400, 76199, 22225, 184, 4358, 83, 44691, ...
[ 0.256591796875, 0.1724853515625, 0.1881103515625, 0.20703125, 0.0693359375, 0.172119140625, 0.05438232421875, 0.2386474609375, 0.1529541015625, 0.19921875, 0.171630859375, 0.234130859375, 0.1112060546875, 0.1827392578125, 0.23681640625, 0.0706787109375, 0.06298828125, 0.03503417968...
embed
15857382_c0
15857382
prolog
0
Title: Removing first occurrence in list - prolog Problem title: Removing first occurrence in list - prolog Tags: prolog Problem: Removing first occurrence in list - prolog I need to remove only one occurrence in the list. Actually doesn't matter if it's first or last. One match needs to be removed. I'm having trouble ...
Removing first occurrence in list - prolog Removing first occurrence in list - prolog prolog Removing Term Tail Result Head TailResult Removing first occurrence in list - prolog I need to remove only one occurrence in the list. Actually doesn't matter if it's first or last. One match needs to be removed. I'm having tro...
[ 0.0107421875, 0.02783203125, 0.01177978515625, 0.0203857421875, -0.01495361328125, -0.00958251953125, 0.0006103515625, -0.0002956390380859375, 0.0234375, -0.0159912109375, 0.0235595703125, 0.004974365234375, -0.01806640625, 0.01220703125, 0.01904296875, 0.00121307373046875, 0.0155029...
[ 853, 432, 6496, 5117, 74918, 42, 6620, 23, 5303, 502, 4867, 2994, 1218, 379, 126684, 44816, 7, 7136, 3871, 87388, 4734, 1632, 4568, 6561, 14858, 184750, 25632, 4488, 179140, 13538, 43240, 91995, 13579, 201505, 23351, 214, 96759, 29806, 2967...
[ 0.0217437744140625, 0.140869140625, 0.0274658203125, 0.145751953125, 0.156982421875, 0.116943359375, 0.0777587890625, 0.06365966796875, 0.20849609375, 0.10345458984375, 0.185302734375, 0.1326904296875, 0.121337890625, 0.07989501953125, 0.172119140625, 0.084228515625, 0.07110595703125...
embed
9915126_c0
9915126
prolog
0
Title: Prolog evaluating how two lists compare to eachother Problem title: Prolog evaluating how two lists compare to eachother Tags: list, prolog Problem: Prolog evaluating how two lists compare to eachother Note: Near complete beginner to logic programming I need to compare two lists of integers and figure out if one...
Prolog evaluating how two lists compare to eachother Prolog evaluating how two lists compare to eachother list prolog Prolog compare_list Prolog evaluating how two lists compare to eachother Note: Near complete beginner to logic programming I need to compare two lists of integers and figure out if one is greater, great...
[ 0.0169677734375, 0.014404296875, 0.01422119140625, 0.003204345703125, -0.01171875, 0.00165557861328125, -0.0023956298828125, -0.005157470703125, 0.01611328125, 0.023193359375, -0.0006866455078125, -0.00714111328125, 0.0145263671875, 0.006805419921875, 0.01153564453125, -0.0196533203125...
[ 1250, 4867, 151575, 3642, 6626, 5303, 7, 69101, 47, 12638, 126340, 502, 6562, 1679, 62775, 56037, 892, 26255, 26366, 2174, 117396, 71723, 15044, 105950, 2060, 20903, 271, 19048, 2046, 1556, 2809, 171259, 4488, 44841, 11343, 37397, 5117, 12830...
[ 0.1712646484375, 0.24560546875, 0.1717529296875, 0.0494384765625, 0.162109375, 0.2340087890625, 0.025909423828125, 0.22802734375, 0.08380126953125, 0.07220458984375, 0.1385498046875, 0.1328125, 0.2435302734375, 0.006072998046875, 0.11181640625, 0.053466796875, 0.1097412109375, 0.09...
embed
26786318_c0
26786318
prolog
0
Title: Journey through Labyrinth 20x20 with 2 enters and 2 exits Problem title: Journey through Labyrinth 20x20 with 2 enters and 2 exits Tags: prolog Problem: Journey through Labyrinth 20x20 with 2 enters and 2 exits I try to make journey through a labyrinth. Length of lab. is 20x20 and it have two entrance and two ea...
Journey through Labyrinth 20x20 with 2 enters and 2 exits Journey through Labyrinth 20x20 with 2 enters and 2 exits prolog Journey Labyrinth enter1 enter2 exit1 exit2 find_way Journey through Labyrinth 20x20 with 2 enters and 2 exits I try to make journey through a labyrinth. Length of lab. is 20x20 and it have two ent...
[ 0.0028228759765625, 0.005462646484375, 0.006317138671875, -0.00640869140625, -0.01153564453125, 0.00506591796875, -0.032958984375, -0.00077056884765625, 0.003326416015625, -0.029541015625, 0.0238037109375, 0.022216796875, -0.004791259765625, 0.0184326171875, 0.01513671875, 0.0102539062...
[ 212595, 8305, 239, 1272, 2677, 927, 387, 425, 1549, 116, 30957, 82230, 502, 4867, 304, 7413, 7514, 678, 9790, 3249, 120696, 21, 77554, 60054, 5, 136, 765, 6626, 14018, 4438, 903, 1284, 4527, 442, 35782, 14192, 3642, 4488, 22936 ]
[ 0.2373046875, 0.1522216796875, 0.07110595703125, 0.19677734375, 0.1875, 0.1522216796875, 0.167724609375, 0.1136474609375, 0.1728515625, 0.08447265625, 0.18701171875, 0.1888427734375, 0.11279296875, 0.13330078125, 0.048553466796875, 0.1025390625, 0.1385498046875, 0.004791259765625, ...
embed
40203936_c0
40203936
prolog
0
Title: Prolog - giving value to query variable (list recursion) Problem title: Prolog - giving value to query variable (list recursion) Tags: list, recursion, prolog Problem: Prolog - giving value to query variable (list recursion) I need to create a rule that has an input list and then takes values from it 2 at a time...
Prolog - giving value to query variable (list recursion) Prolog - giving value to query variable (list recursion) list recursion prolog Prolog _G3685 _G3691 _G3697 Prolog - giving value to query variable (list recursion) I need to create a rule that has an input list and then takes values from it 2 at a time, compares ...
[ -0.0155029296875, 0.0128173828125, 0.003814697265625, -0.0037841796875, -0.015380859375, 0.0172119140625, -0.01007080078125, 0.001068115234375, 0.01214599609375, 0.0029296875, 0.0244140625, 0.0064697265625, -0.004302978515625, -0.026123046875, 0.0225830078125, 0.00933837890625, 0.020...
[ 1250, 4867, 68772, 34292, 47, 41, 1294, 77336, 6562, 195625, 1830, 5303, 502, 171141, 125832, 194148, 3871, 28282, 79986, 107730, 51776, 142424, 1295, 116, 1733, 69101, 3525, 167785, 27117, 4488, 5881, 124599, 189126, 151003, 1193, 52001, 15166...
[ 0.174072265625, 0.26220703125, 0.1241455078125, 0.2021484375, 0.070556640625, 0.09759521484375, 0.084228515625, 0.2369384765625, 0.1470947265625, 0.1845703125, 0.058685302734375, 0.1727294921875, 0.111572265625, 0.1085205078125, 0.0789794921875, 0.06768798828125, 0.062744140625, 0....
embed
52863531_c0
52863531
prolog
0
Title: Why am I getting this result from recursive query in Prolog Problem title: Why am I getting this result from recursive query in Prolog Tags: prolog Problem: Why am I getting this result from recursive query in Prolog I'm trying to write a prolog predicate that generates a horizontal line using SWI-Prolog 7. I st...
Why am I getting this result from recursive query in Prolog Why am I getting this result from recursive query in Prolog prolog recursive Why Prolog Cur Top Next Cur1 Why am I getting this result from recursive query in Prolog I'm trying to write a prolog predicate that generates a horizontal line using SWI-Prolog 7. I ...
[ 0.0147705078125, 0.0263671875, 0.019287109375, -0.005157470703125, -0.009765625, -0.00927734375, 0.00921630859375, 0.00048828125, 0.012451171875, -0.0234375, -0.0031280517578125, -0.0067138671875, -0.0106201171875, -0.00179290771484375, 0.00970458984375, 0.00148773193359375, 0.017089...
[ 44084, 444, 87, 20949, 903, 16750, 1295, 195625, 5844, 41, 1294, 1250, 4867, 502, 17065, 4792, 4997, 418, 1653, 2063, 67, 139392, 124001, 13315, 38969, 10752, 2861, 8781, 145823, 60552, 28219, 28282, 91736, 127, 2256, 179140, 5646, 6626, 17...
[ 0.09808349609375, 0.05120849609375, 0.007049560546875, 0.084228515625, 0.07720947265625, 0.1829833984375, 0.0299072265625, 0.198974609375, 0.143310546875, 0.1131591796875, 0.08056640625, 0.15625, 0.2252197265625, 0.11865234375, 0.1263427734375, 0.13671875, 0.1707763671875, 0.078857...
embed
59927069_c1
59927069
prolog
1
far looks like this. (I know the syntax may be completely messed up. I haven't found a good documentation) % shelves locations map([point(1,1), point(1,2), point(1,3), point(1,4), point(2,1), point(2,2), point(2,3), point(2,4), point(3,1), point(3,2), point(3,3), point(3,4), point(4,1), point(4,2), point(4,3), point(4...
far looks like this. (I know the syntax may be completely messed up. I haven't found a good documentation) % shelves locations map([point(1,1), point(1,2), point(1,3), point(1,4), point(2,1), point(2,2), point(2,3), point(2,4), point(3,1), point(3,2), point(3,3), point(3,4), point(4,1), point(4,2), point(4,3), point(4...
[ -0.00579833984375, 0.0140380859375, 0.0045166015625, 0.0012664794921875, 0.00244140625, -0.004974365234375, -0.01220703125, -0.002532958984375, -0.00018215179443359375, 0.01141357421875, 0.015625, -0.0081787109375, 0.01275634765625, 0.00179290771484375, 0.0036163330078125, -0.003036499...
[ 2060, 33342, 1884, 903, 5, 6002, 86531, 64557, 2409, 5281, 1257, 25, 209806, 16, 1745, 2412, 3723, 90, 31913, 7, 22288, 132, 38496, 17727, 6275, 133063, 21320, 163324, 54753, 10461, 155761, 29557, 82449, 124093, 104116, 139303, 150643, 966, ...
[ 0.288330078125, 0.2008056640625, 0.10693359375, 0.0975341796875, 0.00262451171875, 0.12158203125, 0.1873779296875, 0.0506591796875, 0.06695556640625, 0.063720703125, 0.0241851806640625, 0.00140380859375, 0.221435546875, 0.0628662109375, 0.1632080078125, 0.200439453125, 0.30419921875,...
embed
47106995_c0
47106995
prolog
0
Title: Prolog HTTP dynamically add links to html Problem title: Prolog HTTP dynamically add links to html Tags: prolog, swi-prolog Problem: Prolog HTTP dynamically add links to html I'm new to prolog and declarative programming and I struggle to achieve the following. I'm following this tutorial and now would like to s...
Prolog HTTP dynamically add links to html Prolog HTTP dynamically add links to html prolog swi-prolog Prolog HTTP link_collection Request http_parameters Foo reply_html_page Dynamic Link Collection Question Alice Should Bob Investigate Body Show Prolog HTTP dynamically add links to html I'm new to prolog and declarativ...
[ 0.016845703125, 0.006561279296875, 0.0012054443359375, -0.00286865234375, -0.0223388671875, 0.00055694580078125, -0.0167236328125, 0.01171875, 0.01177978515625, -0.05615234375, -0.0091552734375, -0.0172119140625, -0.018310546875, 0.009033203125, 0.01171875, -0.0087890625, 0.024169921...
[ 1250, 4867, 135913, 84079, 25958, 15190, 22317, 47, 7693, 502, 2452, 3454, 3126, 196352, 75616, 1621, 6276, 29089, 9572, 31, 75836, 22469, 73327, 21068, 12779, 68220, 68185, 66083, 151117, 25027, 125015, 67, 43960, 17367, 3525, 21635, 56037, ...
[ 0.1705322265625, 0.2440185546875, 0.24951171875, 0.2186279296875, 0.03973388671875, 0.126953125, 0.2218017578125, 0.08477783203125, 0.2083740234375, 0.133544921875, 0.1248779296875, 0.120361328125, 0.2049560546875, 0.1549072265625, 0.1016845703125, 0.11328125, 0.017181396484375, 0....
embed
38534567_c0
38534567
prolog
0
Title: Solving mutually recursive constraints in Prolog Problem title: Solving mutually recursive constraints in Prolog Tags: constraint-programming, prolog, recursion Problem: Solving mutually recursive constraints in Prolog I am attempting to solve some mutually recursive constraints with SWI-Prolog. These constraint...
Solving mutually recursive constraints in Prolog Solving mutually recursive constraints in Prolog constraint-programming prolog recursion Solving Prolog Solving mutually recursive constraints in Prolog I am attempting to solve some mutually recursive constraints with SWI-Prolog. These constraints are relatively simple,...
[ 0.00732421875, 0.011474609375, 0.005889892578125, 0.024169921875, 0.01153564453125, -0.0003986358642578125, -0.01611328125, 0.00982666015625, -0.01513671875, -0.037353515625, 0.00072479248046875, -0.006500244140625, -0.014404296875, 0.006927490234375, 0.04052734375, 0.0205078125, 0.0...
[ 6678, 6496, 199849, 538, 195625, 5844, 158, 2816, 4288, 23, 1250, 4867, 28966, 502, 81887, 86869, 159, 38969, 10752, 8781, 41, 1294, 1653, 2063, 37105, 54241, 13, 1830, 7722, 15490, 351, 107, 48650, 54397, 21373, 1528, 3647, 50218, 21968, ...
[ 0.1092529296875, 0.0202178955078125, 0.1407470703125, 0.044952392578125, 0.224365234375, 0.1302490234375, 0.096923828125, 0.181884765625, 0.112060546875, 0.030426025390625, 0.154541015625, 0.2451171875, 0.07537841796875, 0.1021728515625, 0.02435302734375, 0.1429443359375, 0.001342773...
embed
55866059_c1
55866059
prolog
1
),number(A),number(C) -> B is A-C; var(C),number(A),number(B) -> C is A-B; A =:= B + C.") File "/home/cardio/.local/lib/python3.5/site-packages/pyswip/prolog.py", line 140, in assertz next(cls.query(assertion.join(["assertz((", "))."]), catcherrors=catcherrors)) File "/home/cardio/.local/lib/python3.5/site-packages/pys...
),number(A),number(C) -> B is A-C; var(C),number(A),number(B) -> C is A-B; A =:= B + C.") File "/home/cardio/.local/lib/python3.5/site-packages/pyswip/prolog.py", line 140, in assertz next(cls.query(assertion.join(["assertz((", "))."]), catcherrors=catcherrors)) File "/home/cardio/.local/lib/python3.5/site-packages/pys...
[ 0.0185546875, 0.0038604736328125, -0.007232666015625, 0.027099609375, -0.00970458984375, -0.002532958984375, -0.007659912109375, -0.0052490234375, -0.001220703125, -0.0274658203125, 0.019287109375, 0.00823974609375, 0.00445556640625, -0.01116943359375, 0.024169921875, 0.004364013671875...
[ 247, 2606, 1297, 284, 441, 33079, 335, 83, 62, 9, 285, 571, 313, 1369, 997, 42724, 29552, 3284, 5670, 98908, 5612, 6493, 50828, 72516, 11090, 29102, 7, 2452, 254, 3454, 4867, 13315, 12664, 237, 33657, 169, 11737, 34937, 944, 16865, 513,...
[ 0.0294036865234375, 0.10321044921875, 0.087158203125, 0.08978271484375, 0.1181640625, 0.05438232421875, 0.106689453125, 0.1068115234375, 0.10107421875, 0.1258544921875, 0.1624755859375, 0.1124267578125, 0.08416748046875, 0.01629638671875, 0.108154296875, 0.171630859375, 0.06170654296...
embed
31856798_c0
31856798
prolog
0
Title: Arguments are not sufficiently instantiated in relation with 2 examples Problem title: Arguments are not sufficiently instantiated in relation with 2 examples Tags: list, prolog, clpfd Problem: Arguments are not sufficiently instantiated in relation with 2 examples That's a very frequently asked question but i'd...
Arguments are not sufficiently instantiated in relation with 2 examples Arguments are not sufficiently instantiated in relation with 2 examples list prolog clpfd Arguments k_th_element K-1 length2 X-1 Arguments are not sufficiently instantiated in relation with 2 examples That's a very frequently asked question but i'd...
[ 0.01556396484375, 0.022216796875, 0.00061798095703125, -0.00677490234375, 0.01708984375, 0.0218505859375, -0.000942230224609375, -0.0096435546875, 0.018310546875, -0.006622314453125, 0.0233154296875, -0.00897216796875, -0.0057373046875, 0.02685546875, 0.0101318359375, -0.0081787109375,...
[ 112140, 7, 959, 129980, 538, 34648, 14, 27686, 41911, 116, 27781, 5303, 502, 4867, 39557, 71, 472, 927, 62766, 341, 5759, 140909, 304, 1193, 195409, 21373, 26785, 46348, 35133, 89536, 8705, 44084, 186992, 18, 12638, 7225, 69427, 28219, 2686...
[ 0.259033203125, 0.08587646484375, 0.1199951171875, 0.1873779296875, 0.0626220703125, 0.14208984375, 0.12548828125, 0.0826416015625, 0.1239013671875, 0.10113525390625, 0.2239990234375, 0.1063232421875, 0.1199951171875, 0.205810546875, 0.00262451171875, 0.052520751953125, 0.12890625, ...
embed
35667142_c0
35667142
prolog
0
Title: Prolog - Finding adjacent elements in a list Problem title: Prolog - Finding adjacent elements in a list Tags: list, traversal, recursion, prolog Problem: Prolog - Finding adjacent elements in a list I'm trying to define a predicate adjacent(X, Y, Zs) that is true if X and Y are adjacent in a list. My code is cu...
Prolog - Finding adjacent elements in a list Prolog - Finding adjacent elements in a list list traversal recursion prolog Prolog Finding Tail Prolog - Finding adjacent elements in a list I'm trying to define a predicate adjacent(X, Y, Zs) that is true if X and Y are adjacent in a list. My code is currently this: It wor...
[ 0.0037384033203125, 0.012451171875, 0.01513671875, 0.0036163330078125, -0.00909423828125, 0.0260009765625, 0.0037078857421875, 0.025390625, 0.001312255859375, -0.02734375, 0.0146484375, 0.00946044921875, -0.01220703125, -0.006561279296875, 0.02099609375, 0.0189208984375, 0.0096435546...
[ 1250, 4867, 26040, 123594, 16797, 80854, 23, 5303, 214, 37317, 195625, 502, 1218, 379, 31577, 61924, 1653, 2063, 67, 1542, 990, 567, 7, 29568, 2174, 1193, 136, 18151, 82424, 903, 43240, 62822, 7225, 238, 104, 876, 501, 28, 3647, 11907, ...
[ 0.1513671875, 0.2044677734375, 0.14404296875, 0.2254638671875, 0.262939453125, 0.198486328125, 0.06964111328125, 0.2222900390625, 0.0221405029296875, 0.1358642578125, 0.12939453125, 0.1007080078125, 0.135498046875, 0.115966796875, 0.057861328125, 0.160888671875, 0.1759033203125, 0....
embed
67486768_c0
67486768
prolog
0
Title: Simultaneously visit solutions to two or more backtrackable predicates Problem title: Simultaneously visit solutions to two or more backtrackable predicates Tags: prolog Problem: Simultaneously visit solutions to two or more backtrackable predicates If I had two predicates that generate values in a sequence, for...
Simultaneously visit solutions to two or more backtrackable predicates Simultaneously visit solutions to two or more backtrackable predicates prolog Simultaneously sub_atom Simultaneously visit solutions to two or more backtrackable predicates If I had two predicates that generate values in a sequence, for example: How...
[ 0.0164794921875, 0.02197265625, 0.015380859375, 0.02783203125, -0.01025390625, 0.021484375, 0.002777099609375, -0.01251220703125, 0.0081787109375, -0.06396484375, 0.00885009765625, 0.00341796875, 0.000362396240234375, 0.003448486328125, 0.0057373046875, 0.0089111328125, -0.0075378417...
[ 13207, 202, 60626, 79850, 19922, 51347, 6626, 1286, 4420, 125728, 2886, 1653, 2063, 502, 4867, 1614, 5928, 1902, 1636, 139392, 142424, 40, 944, 27781, 11249, 831, 8560, 8305, 2856, 2046, 40858, 3638, 3917, 15411, 4488, 43799, 5303, 84797, 3...
[ 0.08544921875, 0.05780029296875, 0.11474609375, 0.020355224609375, 0.198974609375, 0.236572265625, 0.14892578125, 0.024383544921875, 0.0809326171875, 0.1673583984375, 0.073486328125, 0.1888427734375, 0.2147216796875, 0.08575439453125, 0.1552734375, 0.1234130859375, 0.124755859375, ...
embed
33165923_c0
33165923
prolog
0
Title: How to fill in the blanks in a list in prolog Problem title: How to fill in the blanks in a list in prolog Tags: prolog Problem: How to fill in the blanks in a list in prolog I'm making a mastermind like application in Prolog, but I'm getting stuck at guessing the remainder of the solution. I managed to do the f...
How to fill in the blanks in a list in prolog How to fill in the blanks in a list in prolog prolog How Correct Guess How to fill in the blanks in a list in prolog I'm making a mastermind like application in Prolog, but I'm getting stuck at guessing the remainder of the solution. I managed to do the first guess which is...
[ -0.0220947265625, -0.010498046875, 0.006927490234375, 0.01416015625, -0.006439208984375, 0.026611328125, -0.006744384765625, 0.023193359375, 0.00836181640625, 0.021484375, -0.002166748046875, -0.0032806396484375, -0.006103515625, 0.0291748046875, 0.0047607421875, 0.0113525390625, -0....
[ 11249, 47, 26292, 23, 70, 44237, 7, 5303, 502, 4867, 46348, 15390, 96274, 36904, 38415, 1250, 179933, 57767, 214, 47143, 29806, 5117, 305, 96759, 104988, 3444, 14192, 26785, 90, 3525, 44084, 41206, 10576, 77336, 31358, 57571, 6863, 91995, 4...
[ 0.057861328125, 0.0256195068359375, 0.1910400390625, 0.159912109375, 0.040252685546875, 0.237060546875, 0.1312255859375, 0.1976318359375, 0.138916015625, 0.218505859375, 0.058685302734375, 0.037200927734375, 0.1346435546875, 0.115478515625, 0.039794921875, 0.122802734375, 0.007263183...
embed
69787932_c0
69787932
prolog
0
Title: How to use an fd solver to determine which elements of a list can sum to a given number? Problem title: How to use an fd solver to determine which elements of a list can sum to a given number? Tags: clpfd, gnu-prolog, prolog Problem: How to use an fd solver to determine which elements of a list can sum to a give...
How to use an fd solver to determine which elements of a list can sum to a given number? How to use an fd solver to determine which elements of a list can sum to a given number? clpfd gnu-prolog prolog How all_unique fd_exactly fd_sum Sum sum_clp Summands Numbers fd_domain fd_labeling How to use an fd solver to determi...
[ -0.01336669921875, -0.004608154296875, 0.0238037109375, 0.00396728515625, -0.0179443359375, 0.00008487701416015625, -0.00052642822265625, -0.004974365234375, 0.0024566650390625, -0.0272216796875, -0.00860595703125, -0.0240478515625, 0.0164794921875, 0.0203857421875, 0.00518798828125, 0...
[ 11249, 4527, 1238, 71, 3115, 814, 83324, 3129, 80854, 5303, 831, 10554, 47, 34475, 14012, 39557, 104155, 3454, 4867, 502, 756, 34, 45602, 3355, 47013, 11832, 36335, 26775, 131150, 2208, 103332, 56206, 152526, 142, 111, 7722, 29334, 3444, 31...
[ 0.0625, 0.0921630859375, 0.1470947265625, 0.1927490234375, 0.175048828125, 0.204345703125, 0.134521484375, 0.03997802734375, 0.1788330078125, 0.2103271484375, 0.1212158203125, 0.2222900390625, 0.153564453125, 0.0775146484375, 0.1640625, 0.013702392578125, 0.1016845703125, 0.0377807...
embed
16003575_c0
16003575
prolog
0
Title: Some problems asserting a new rule in SWI-Prolog Problem title: Some problems asserting a new rule in SWI-Prolog Tags: prolog Problem: Some problems asserting a new rule in SWI-Prolog I am studying on Ivan Bratko book: "Programming for Artificial Intelligence" for an universitary exame and using SWI Prolog and I...
Some problems asserting a new rule in SWI-Prolog Some problems asserting a new rule in SWI-Prolog prolog Some SWI-Prolog Some problems asserting a new rule in SWI-Prolog I am studying on Ivan Bratko book: "Programming for Artificial Intelligence" for an universitary exame and using SWI Prolog and I have some doubts abo...
[ 0.0263671875, -0.0030364990234375, 0.0024261474609375, 0.02685546875, -0.0106201171875, 0.00164794921875, -0.01116943359375, 0.019775390625, -0.0028076171875, -0.007110595703125, 0.0152587890625, 0.0011138916015625, -0.01483154296875, -0.00046539306640625, 0.03515625, 0.003265380859375...
[ 31384, 44402, 10, 16865, 3525, 79986, 159, 38969, 10752, 4867, 502, 35187, 23698, 119794, 265, 12877, 172895, 231996, 157075, 185681, 42276, 1250, 92814, 27781, 237, 33657, 136, 41499, 1653, 2063, 13379, 25632, 18151, 159978, 3060, 15824, 84079...
[ 0.036956787109375, 0.1578369140625, 0.0723876953125, 0.193115234375, 0.1373291015625, 0.2025146484375, 0.06060791015625, 0.2138671875, 0.1475830078125, 0.2076416015625, 0.130859375, 0.023040771484375, 0.0693359375, 0.11865234375, 0.1319580078125, 0.109375, 0.0606689453125, 0.112670...
embed
40705708_c0
40705708
prolog
0
Title: Why is this row in prolog returning false? Problem title: Why is this row in prolog returning false? Tags: list, prolog Problem: Why is this row in prolog returning false? I am trying to write a Prolog code, but I can't get this to return true. I am trying to find a list, which all elements are included in two o...
Why is this row in prolog returning false? Why is this row in prolog returning false? list prolog Why Why is this row in prolog returning false? I am trying to write a Prolog code, but I can't get this to return true. I am trying to find a list, which all elements are included in two other lists. For example all list A...
[ 0.01312255859375, 0.01214599609375, 0.0157470703125, 0.021240234375, -0.0172119140625, -0.00579833984375, 0.008544921875, 0.0274658203125, 0.0064697265625, -0.006439208984375, 0.020263671875, 0.00811767578125, -0.00860595703125, 0.0235595703125, 0.00970458984375, -0.01031494140625, 0...
[ 44084, 83, 903, 15555, 23, 502, 4867, 30646, 214, 98320, 5303, 1250, 18151, 29568, 31577, 7413, 80854, 99201, 6626, 14037, 25842, 32786, 1653, 2063, 12830, 13448, 271, 14858, 313, 69101, 12765, 50960, 15673, 11675, 76199, 26366, 15400, 35743,...
[ 0.11962890625, 0.03143310546875, 0.09619140625, 0.21533203125, 0.036956787109375, 0.1611328125, 0.185546875, 0.19189453125, 0.046234130859375, 0.237060546875, 0.1192626953125, 0.1422119140625, 0.108154296875, 0.135498046875, 0.02166748046875, 0.0491943359375, 0.07257080078125, 0.06...
embed
15639723_c0
15639723
prolog
0
Title: Prolog unknown variable on append Problem title: Prolog unknown variable on append Tags: prolog, logic Problem: Prolog unknown variable on append I've written some Prolog to replace elements in list two with an atom called empty if they are contained in list one: replace_build([], _Inv, _Res). replace_build([A| ...
Prolog unknown variable on append Prolog unknown variable on append prolog logic Prolog replace_build _Inv _Res Inv Res replace_build2 _BuildItem _NewInv BuildItem NewInv NewInv1 item3 item5 item1 _G467 Prolog unknown variable on append I've written some Prolog to replace elements in list two with an atom called empty ...
[ -0.0125732421875, 0.00994873046875, 0.0166015625, 0.00396728515625, 0.00347900390625, 0.0245361328125, -0.025390625, 0.01239013671875, 0.0179443359375, 0.0181884765625, 0.0341796875, -0.01055908203125, -0.004058837890625, 0.01708984375, 0.013427734375, 0.00020313262939453125, 0.03198...
[ 1250, 4867, 51, 69723, 77336, 114689, 71, 502, 62775, 91995, 177149, 4153, 334, 4332, 7, 360, 9624, 304, 121137, 2982, 35735, 758, 724, 181709, 59121, 80854, 5303, 6626, 34627, 201505, 70541, 11675, 225073, 52184, 10821, 26785, 18614, 25443, ...
[ 0.14794921875, 0.223388671875, 0.052642822265625, 0.194580078125, 0.260986328125, 0.1661376953125, 0.132568359375, 0.09539794921875, 0.1177978515625, 0.1363525390625, 0.1412353515625, 0.0704345703125, 0.14453125, 0.0860595703125, 0.044281005859375, 0.07086181640625, 0.089599609375, ...
embed
33347855_c0
33347855
prolog
0
Title: Contraint Logic Programming Scheduling Problem title: Contraint Logic Programming Scheduling Tags: scheduling, prolog, clp Problem: Contraint Logic Programming Scheduling I'm trying to solve a problem using clp in prolog. The problem is as follows: Basically a ship is carrying a number of containers and we want ...
Contraint Logic Programming Scheduling Contraint Logic Programming Scheduling scheduling prolog clp Contraint Logic Programming Scheduling Contraint Logic Programming Scheduling I'm trying to solve a problem using clp in prolog. The problem is as follows: Basically a ship is carrying a number of containers and we want ...
[ 0.018798828125, 0.031494140625, 0.00457763671875, 0.0267333984375, -0.03173828125, -0.00141143798828125, -0.01141357421875, 0.006256103515625, -0.0035400390625, -0.053955078125, -0.02880859375, -0.006439208984375, -0.0126953125, 0.00872802734375, -0.0032958984375, 0.0084228515625, -0...
[ 45380, 4288, 50592, 27958, 34702, 693, 2069, 238, 5094, 15246, 502, 4867, 33139, 254, 31577, 86869, 2967, 17368, 23, 12506, 109923, 85358, 214, 14012, 116419, 3444, 51, 63033, 7, 151552, 1653, 2063, 397, 87, 42485, 3445, 56065, 391, 115, ...
[ 0.17529296875, 0.1519775390625, 0.1820068359375, 0.173828125, 0.146240234375, 0.1356201171875, 0.0450439453125, 0.040008544921875, 0.0845947265625, 0.1363525390625, 0.1595458984375, 0.2276611328125, 0.1258544921875, 0.214111328125, 0.0460205078125, 0.103515625, 0.127197265625, 0.08...
embed
42629883_c0
42629883
prolog
0
Title: Family tree in Prolog Problem title: Family tree in Prolog Tags: family-tree, prolog Problem: Family tree in Prolog When I try to see who is brother to who and same for sister it gives me the sons and daughter, I cannot find the mistake... father(pedro-i,fernando-i). father(pedro-i,beatriz(1347)). father(pedro-i...
Family tree in Prolog Family tree in Prolog family-tree prolog Family Prolog if_then_else Family tree in Prolog When I try to see who is brother to who and same for sister it gives me the sons and daughter, I cannot find the mistake... Any other opinion I appreciate that
[ 0.03515625, -0.00052642822265625, 0.005096435546875, 0.00457763671875, -0.00689697265625, 0.00225830078125, -0.00457763671875, 0.00616455078125, 0.00762939453125, -0.047119140625, -0.00138092041015625, -0.0242919921875, -0.00159454345703125, 0.01025390625, 0.02001953125, -0.00230407714...
[ 59745, 53201, 1250, 4867, 23, 14449, 62600, 502, 2174, 92733, 5557, 9790, 1957, 2750, 83, 82953, 47, 5701, 100, 114015, 76199, 775, 136, 76849, 53418, 7413, 121742, 33153, 77947 ]
[ 0.10302734375, 0.2420654296875, 0.1558837890625, 0.25634765625, 0.024658203125, 0.04449462890625, 0.147216796875, 0.07794189453125, 0.1107177734375, 0.06817626953125, 0.091796875, 0.060638427734375, 0.08392333984375, 0.0125732421875, 0.0147247314453125, 0.151123046875, 0.083068847656...
embed
65434634_c0
65434634
prolog
0
Title: Perform list conversion,Prolog Problem title: Perform list conversion,Prolog Tags: prolog Problem: Perform list conversion,Prolog [a,a,a,a,b,c,c,a,a,d,e,e,e,e] => [[4,a],b,[2,c],[2,a],d,[4,e]]. please help me solve this problem I have this code, but I do not know how to bring it to the one that is required or ho...
Perform list conversion,Prolog Perform list conversion,Prolog prolog Perform Prolog first_letter Num Mid Res New_num Prom New_mid Sec_Prom Resal End Perform list conversion,Prolog [a,a,a,a,b,c,c,a,a,d,e,e,e,e] => [[4,a],b,[2,c],[2,a],d,[4,e]]. please help me solve this problem I have this code, but I do not know how to...
[ 0.0023651123046875, 0.017333984375, -0.005096435546875, 0.02294921875, -0.01068115234375, 0.000713348388671875, -0.0034942626953125, -0.000823974609375, 0.0130615234375, -0.004730224609375, 0.0017852783203125, 0.00823974609375, 0.00836181640625, 0.016845703125, 0.000957489013671875, 0....
[ 169033, 5303, 142477, 10752, 4867, 502, 1250, 5117, 63049, 52782, 23166, 9624, 2356, 2606, 39, 22000, 72199, 853, 2317, 18878, 11, 4, 275, 238, 71, 44357, 617, 304, 13, 4358, 86869, 2967, 765, 903, 18151, 3714, 3642, 19095, 442, 47, 70,...
[ 0.310546875, 0.23779296875, 0.2470703125, 0.1424560546875, 0.2176513671875, 0.1158447265625, 0.1661376953125, 0.06622314453125, 0.1619873046875, 0.158935546875, 0.1624755859375, 0.143310546875, 0.058135986328125, 0.149658203125, 0.121826171875, 0.09234619140625, 0.08477783203125, 0...
embed
78149722_c1
78149722
prolog
1
0), row('B', 300), row('C', 50)]. Then I can do: ?- Rows = [row('A', 150), row('B', 300), row('C', 50)], findall(Row, filter(Row, data), Filtered). # Or alternatively, wished to do: ?- findall(Row, filter(Row, data), Filtered). On the other hand, while drafting this example I came across this problem: % Wanted to put d...
0), row('B', 300), row('C', 50)]. Then I can do: ?- Rows = [row('A', 150), row('B', 300), row('C', 50)], findall(Row, filter(Row, data), Filtered). # Or alternatively, wished to do: ?- findall(Row, filter(Row, data), Filtered). On the other hand, while drafting this example I came across this problem: % Wanted to put d...
[ 0.01483154296875, 0.0189208984375, 0.0169677734375, 0.00311279296875, 0.0029449462890625, -0.0164794921875, 0.01806640625, 0.0263671875, 0.013916015625, -0.007171630859375, -0.002838134765625, -0.004791259765625, -0.01806640625, -0.010498046875, 0.00152587890625, 0.0185546875, 0.0280...
[ 757, 15555, 571, 2668, 441, 836, 831, 54, 96190, 7, 2203, 284, 3252, 7413, 5584, 12724, 434, 46312, 2053, 128896, 297, 30700, 32599, 27781, 2967, 42335, 3884, 105237, 46132, 18151, 11435, 41, 1294, 9319, 43240, 6626, 17582, 6002, 86531, 1...
[ 0.1168212890625, 0.2232666015625, 0.07135009765625, 0.2042236328125, 0.0341796875, 0.15673828125, 0.01165771484375, 0.00543212890625, 0.260009765625, 0.083251953125, 0.049957275390625, 0.01300048828125, 0.1761474609375, 0.1531982421875, 0.1949462890625, 0.1192626953125, 0.08410644531...
embed
70159132_c1
70159132
prolog
1
, Dictionary, LeftTarget), append(LeftTarget, RightTarget, Target), match(Pattern, Dictionary, RightTarget). match([Word | Pattern], Dictionary, [Word | Target]) :- atom(Word), match(Pattern, Dictionary, Target). match([], _Dictionary, []). pattern([i,am,1],[how,long,have,you,been,1,'?']). pattern([1,you,2,me],[what,ma...
, Dictionary, LeftTarget), append(LeftTarget, RightTarget, Target), match(Pattern, Dictionary, RightTarget). match([Word | Pattern], Dictionary, [Word | Target]) :- atom(Word), match(Pattern, Dictionary, Target). match([], _Dictionary, []). pattern([i,am,1],[how,long,have,you,been,1,'?']). pattern([1,you,2,me],[what,ma...
[ 0.0008087158203125, 0.0108642578125, 0.0005950927734375, 0.005035400390625, 0.00201416015625, 0.004302978515625, -0.005096435546875, -0.0079345703125, 0.006317138671875, -0.017333984375, 0.0233154296875, -0.00885009765625, -0.0189208984375, 0.01019287109375, 0.018798828125, -0.00421142...
[ 4, 147638, 636, 2480, 63031, 3794, 247, 114689, 71, 5267, 90911, 160017, 14858, 8335, 3055, 19, 164805, 58745, 9876, 22766, 15772, 34627, 132, 101, 14055, 10763, 103510, 14, 302, 76172, 47251, 10617, 68991, 53927, 372, 418, 304, 282, 124409...
[ 0.049652099609375, 0.2109375, 0.041015625, 0.11181640625, 0.16162109375, 0.1962890625, 0.02984619140625, 0.145751953125, 0.05877685546875, 0.005340576171875, 0.1258544921875, 0.2440185546875, 0.1971435546875, 0.1160888671875, 0.1436767578125, 0.015838623046875, 0.1507568359375, 0.0...
embed
53690008_c0
53690008
prolog
0
Title: Recursive Predicate continues after reaching the base case Problem title: Recursive Predicate continues after reaching the base case Tags: recursion, prolog Problem: Recursive Predicate continues after reaching the base case I am trying to write a predicate called 'range' that creates a list of ints in the speci...
Recursive Predicate continues after reaching the base case Recursive Predicate continues after reaching the base case recursion prolog Recursive Predicate Low High Num Recursive Predicate continues after reaching the base case I am trying to write a predicate called 'range' that creates a list of ints in the specified ...
[ -0.01446533203125, 0.01336669921875, 0.003509521484375, 0.0032806396484375, -0.00115203857421875, 0.030517578125, -0.012939453125, 0.0035858154296875, 0.0011138916015625, 0.001068115234375, 0.002349853515625, 0.0026397705078125, -0.01239013671875, -0.01177978515625, 0.0174560546875, 0....
[ 853, 48650, 5844, 7145, 2063, 67, 136622, 7103, 58359, 3647, 7225, 195625, 502, 4867, 61187, 19694, 52782, 31577, 33022, 1653, 94250, 28282, 5303, 23, 933, 58735, 37457, 59121, 37202, 20697, 26785, 3229, 67229, 81273, 5962, 81280, 30646, 1815...
[ 0.04541015625, 0.20361328125, 0.108642578125, 0.1728515625, 0.2159423828125, 0.0767822265625, 0.1561279296875, 0.0716552734375, 0.1593017578125, 0.1932373046875, 0.160888671875, 0.1922607421875, 0.0953369140625, 0.136474609375, 0.11376953125, 0.1168212890625, 0.09906005859375, 0.02...
embed
42655950_c0
42655950
prolog
0
Title: Can prolog answer undetermined instead of just yes or no? Problem title: Can prolog answer undetermined instead of just yes or no? Tags: existential-operator, prolog, ternary-search Problem: Can prolog answer undetermined instead of just yes or no? Suppose I have the knowledge base likes(john,mary). person(mary)...
Can prolog answer undetermined instead of just yes or no? Can prolog answer undetermined instead of just yes or no? existential-operator prolog ternary-search Can Person Likes Everyone S:V A..C Print Number Model Can prolog answer undetermined instead of just yes or no? Suppose I have the knowledge base If we ask prolo...
[ 0.007171630859375, 0.016845703125, 0.0174560546875, 0.0203857421875, -0.0162353515625, 0.0179443359375, 0.016845703125, 0.00811767578125, 0.00958251953125, -0.034423828125, 0.000507354736328125, 0.0020904541015625, -0.01043701171875, 0.021728515625, 0.0234375, 0.01275634765625, 0.025...
[ 4171, 502, 4867, 35166, 9232, 30524, 297, 64457, 72272, 707, 110, 99707, 15403, 206469, 31586, 86250, 15270, 18852, 191096, 856, 39754, 103332, 13293, 51359, 3647, 26458, 36766, 1650, 1221, 959, 33657, 3917, 3249, 51, 69723, 117934, 143726, 1...
[ 0.0614013671875, 0.1773681640625, 0.26220703125, 0.201171875, 0.111328125, 0.2054443359375, 0.068115234375, 0.10028076171875, 0.144287109375, 0.0260772705078125, 0.174560546875, 0.1102294921875, 0.0303802490234375, 0.15771484375, 0.04827880859375, 0.0994873046875, 0.073974609375, 0...
embed
24211013_c0
24211013
prolog
0
Title: compile prolog code+C code into binary using swi-prolog Problem title: compile prolog code+C code into binary using swi-prolog Tags: prolog, swi-prolog Problem: compile prolog code+C code into binary using swi-prolog I just have a question which I can't find a accurate answer online .. Using swipl-ld can help to...
compile prolog code+C code into binary using swi-prolog compile prolog code+C code into binary using swi-prolog prolog swi-prolog swi-prolog Prolog Interpreter compile prolog code+C code into binary using swi-prolog I just have a question which I can't find a accurate answer online .. Using swipl-ld can help to combine...
[ 0.01495361328125, 0.005279541015625, 0.00872802734375, 0.035888671875, -0.0262451171875, 0.012939453125, 0.00107574462890625, 0.004974365234375, -0.02490234375, -0.036376953125, -0.01544189453125, -0.00823974609375, -0.0146484375, 0.00201416015625, 0.0026397705078125, -0.00576782226562...
[ 9969, 1340, 502, 4867, 18151, 1328, 441, 3934, 2394, 6635, 17368, 91, 2452, 3454, 1250, 5337, 56359, 56, 152018, 345, 2424, 9, 7344, 4358, 70163, 136, 313, 25842, 12663, 1632, 26073, 71924, 55681, 139392, 79600, 68311, 7464, 32316, 7311, ...
[ 0.14208984375, 0.097412109375, 0.1595458984375, 0.2301025390625, 0.2225341796875, 0.122314453125, 0.1322021484375, 0.133056640625, 0.1583251953125, 0.1282958984375, 0.007904052734375, 0.01763916015625, 0.1981201171875, 0.1541748046875, 0.175048828125, 0.0972900390625, 0.2080078125, ...
embed
76139099_c1
76139099
prolog
1
(adolphus, 1774). born(george1, 1819). born(albert, 1819). born(francis, 1837). born(edwardVII, 1841). born(alfred, 1844). born(leopold, 1853). born(albert_victor, 1864). born(georgeV, 1865). born(edwardVIII, 1894). born(georgeVI, 1895). born(henry, 1900). born(george2, 1902). born(john, 1905). born(charlotte, 1744). b...
(adolphus, 1774). born(george1, 1819). born(albert, 1819). born(francis, 1837). born(edwardVII, 1841). born(alfred, 1844). born(leopold, 1853). born(albert_victor, 1864). born(georgeV, 1865). born(edwardVIII, 1894). born(georgeVI, 1895). born(henry, 1900). born(george2, 1902). born(john, 1905). born(charlotte, 1744). b...
[ -0.021728515625, 0.0103759765625, -0.00579833984375, 0.0020294189453125, -0.00238037109375, -0.001678466796875, -0.0206298828125, 0.0263671875, 0.00061798095703125, -0.01611328125, -0.01129150390625, 0.0048828125, -0.0341796875, 0.00299072265625, 0.003692626953125, -0.00836181640625, ...
[ 15, 1138, 26775, 6378, 4, 729, 88151, 5, 103122, 132, 429, 1478, 13, 418, 543, 98864, 289, 16466, 95022, 164, 118628, 297, 19364, 83223, 123001, 41347, 116553, 133, 2146, 18345, 71204, 686, 18770, 159992, 194, 856, 163140, 117865, 141692, ...
[ 0.1405029296875, 0.10400390625, 0.14111328125, 0.18017578125, 0.0919189453125, 0.1241455078125, 0.206787109375, 0.1763916015625, 0.20947265625, 0.0193634033203125, 0.03369140625, 0.174072265625, 0.1004638671875, 0.122802734375, 0.1605224609375, 0.2391357421875, 0.08111572265625, 0....
embed
17337960_c0
17337960
prolog
0
Title: prolog " how to answer this query" Problem title: prolog " how to answer this query" Tags: prolog Problem: prolog " how to answer this query" a) Write a predicate heads/2 ( a r g l , arg2) that takes an instantiated list of lists in argl and that computes as arg2 the list of heads of the subl...
prolog " how to answer this query" prolog " how to answer this query" prolog Val prolog " how to answer this query" a) Write a predicate heads/2 ( a r g l , arg2) that takes an instantiated list of lists in argl and that computes as arg2 the list of heads of the sublists. For example: b) Define mply...
[ -0.0014190673828125, -0.002838134765625, 0.00848388671875, 0.0291748046875, -0.0020904541015625, 0.03955078125, 0.004302978515625, 0.033203125, 0.00286865234375, -0.039306640625, -0.00848388671875, 0.00360107421875, 0.01336669921875, -0.003997802734375, 0.0023193359375, -0.010498046875...
[ 502, 4867, 41502, 3642, 47, 35166, 903, 41, 1294, 4769, 10, 16, 601, 18781, 1653, 2063, 67, 10336, 7, 12477, 96, 79459, 10461, 51776, 34648, 5303, 187, 11016, 375, 7077, 237, 304, 1614, 6562, 27781, 262, 64552, 9607, 538, 5646, 6626, ...
[ 0.20947265625, 0.25537109375, 0.012420654296875, 0.12451171875, 0.07562255859375, 0.2099609375, 0.15771484375, 0.147216796875, 0.1322021484375, 0.2080078125, 0.012359619140625, 0.0253143310546875, 0.03619384765625, 0.09423828125, 0.11279296875, 0.1551513671875, 0.0489501953125, 0.1...
embed
8898334_c0
8898334
prolog
0
Title: Algorithm - Ideal Distribution Between Multiple Workshops & Timeframes Problem title: Algorithm - Ideal Distribution Between Multiple Workshops & Timeframes Tags: actionscript-3, prolog, php, math, algorithm Problem: Algorithm - Ideal Distribution Between Multiple Workshops & Timeframes I'm looking for a...
Algorithm - Ideal Distribution Between Multiple Workshops & Timeframes Algorithm - Ideal Distribution Between Multiple Workshops & Timeframes actionscript-3 prolog php math algorithm Algorithm Ideal Distribution Between Multiple Workshops Timeframes actionscript-3 Algorithm - Ideal Distribution Between Multiple...
[ 0.029052734375, 0.031494140625, -0.004974365234375, -0.004669189453125, -0.01953125, -0.004241943359375, 0.000911712646484375, -0.01007080078125, -0.01226806640625, -0.033447265625, -0.0050048828125, -0.000431060791015625, 0.00457763671875, -0.000606536865234375, -0.004058837890625, -0...
[ 109847, 2783, 18337, 41143, 75571, 1363, 6300, 1177, 33, 19335, 8705, 68309, 7, 25133, 19055, 160328, 22631, 32032, 8316, 502, 4867, 3958, 48909, 234873, 619, 16487, 100, 142, 23, 86869, 25632, 2967, 25, 5808, 214, 10, 15411, 2668, 29966, ...
[ 0.1962890625, 0.1895751953125, 0.160888671875, 0.2474365234375, 0.25146484375, 0.0308837890625, 0.08465576171875, 0.153076171875, 0.087158203125, 0.127197265625, 0.084228515625, 0.258544921875, 0.02093505859375, 0.0697021484375, 0.10699462890625, 0.257080078125, 0.14453125, 0.23803...
embed
15610612_c0
15610612
prolog
0
Title: Change goal execution order in Prolog Interpreter Problem title: Change goal execution order in Prolog Interpreter Tags: prolog, metaprogramming, prolog-metainterpreter Problem: Change goal execution order in Prolog Interpreter I'm attempting to write a Prolog meta-interpreter to choose the order of goal executi...
Change goal execution order in Prolog Interpreter Change goal execution order in Prolog Interpreter prolog metaprogramming prolog-metainterpreter Change Prolog Interpreter solve2 Args Args2 Change goal execution order in Prolog Interpreter I'm attempting to write a Prolog meta-interpreter to choose the order of goal ex...
[ 0.007049560546875, -0.00002086162567138672, 0.0030059814453125, 0.0269775390625, -0.01300048828125, 0.011474609375, -0.0216064453125, -0.00604248046875, 0.01904296875, -0.0130615234375, 0.004119873046875, 0.00933837890625, -0.011962890625, -0.0242919921875, 0.0035247802734375, 0.015563...
[ 87377, 69236, 71924, 1830, 12989, 1250, 4867, 5337, 56359, 56, 23, 502, 23550, 28966, 35273, 158288, 86869, 304, 1172, 9405, 81887, 33022, 55076, 111, 5117, 756, 109458, 15440, 14012, 171859, 131, 2298, 201, 927, 13315, 28271, 46389, 335, 8...
[ 0.1824951171875, 0.247314453125, 0.163818359375, 0.07666015625, 0.221923828125, 0.15966796875, 0.2401123046875, 0.1168212890625, 0.2215576171875, 0.1055908203125, 0.00732421875, 0.11181640625, 0.142333984375, 0.060516357421875, 0.0980224609375, 0.2010498046875, 0.0966796875, 0.0525...
embed
29225602_c0
29225602
prolog
0
Title: Read from file and display the content using Prolog DCG rule Problem title: Read from file and display the content using Prolog DCG rule Tags: prolog, dcg Problem: Read from file and display the content using Prolog DCG rule i am a newbie in prolog, i want to read a file which actually contains CLASS Definition ...
Read from file and display the content using Prolog DCG rule Read from file and display the content using Prolog DCG rule prolog dcg file Prolog Read DCG Real use_module phrase_from_file linesample.txt Read from file and display the content using Prolog DCG rule i am a newbie in prolog, i want to read a file which actu...
[ 0.01611328125, -0.01080322265625, -0.0069580078125, 0.02685546875, -0.0002841949462890625, 0.03125, -0.0022430419921875, -0.016357421875, -0.00238037109375, -0.041259765625, -0.0118408203125, -0.00830078125, -0.004302978515625, -0.0177001953125, 0.027099609375, 0.01422119140625, -0.0...
[ 4764, 1295, 11435, 136, 44116, 10941, 17368, 1250, 4867, 391, 56367, 79986, 70, 502, 104, 238, 177, 5120, 4527, 83279, 113860, 161063, 29822, 124519, 11, 33209, 124326, 9014, 3444, 12301, 20653, 70541, 129636, 15268, 155455, 139118, 179933, 1...
[ 0.162841796875, 0.197998046875, 0.1932373046875, 0.028778076171875, 0.14306640625, 0.1605224609375, 0.0144805908203125, 0.1357421875, 0.2125244140625, 0.096923828125, 0.211669921875, 0.1588134765625, 0.001708984375, 0.0980224609375, 0.0203857421875, 0.008941650390625, 0.0640869140625...
embed
59025738_c0
59025738
prolog
0
Title: Creating a list in Prolog based on some specifications Problem title: Creating a list in Prolog based on some specifications Tags: prolog Problem: Creating a list in Prolog based on some specifications I am working on a side project in which I am attempting to create a Prolog function that makes a list of atoms,...
Creating a list in Prolog based on some specifications Creating a list in Prolog based on some specifications prolog mouthwash Creating Prolog Creating a list in Prolog based on some specifications I am working on a side project in which I am attempting to create a Prolog function that makes a list of atoms, but it mus...
[ 0.032470703125, 0.016357421875, 0.01165771484375, 0.019775390625, 0.00946044921875, 0.00555419921875, -0.01953125, 0.01055908203125, -0.0115966796875, -0.01495361328125, 0.0194091796875, -0.00555419921875, -0.007415771484375, -0.0004329681396484375, 0.0032958984375, 0.0247802734375, ...
[ 56781, 5303, 1250, 4867, 35509, 98, 3060, 71679, 10, 23, 502, 113008, 634, 1495, 1916, 20697, 5609, 13452, 81887, 28282, 32354, 30482, 34627, 8110, 63284, 1380, 8108, 27060, 66211, 140528, 479, 107, 3181, 100758, 19441, 166904, 1733, 105233, ...
[ 0.1578369140625, 0.2222900390625, 0.1500244140625, 0.24462890625, 0.1201171875, 0.055023193359375, 0.046295166015625, 0.2069091796875, 0.003692626953125, 0.0248260498046875, 0.116943359375, 0.088134765625, 0.1298828125, 0.0755615234375, 0.004791259765625, 0.0787353515625, 0.002502441...
embed
1767671_c0
1767671
prolog
0
Title: Working with lists in Prolog Problem title: Working with lists in Prolog Tags: prolog Problem: Working with lists in Prolog First off let me state that this is part of a class exercise given as homework. But, the entire assignment is much more involved than the subject of this question. So.. I am searching throu...
Working with lists in Prolog Working with lists in Prolog prolog Working Prolog Iresult Hi1row Ti1row Hi2row Ti2row IsumDiff NewIresult Diff Entry Working with lists in Prolog First off let me state that this is part of a class exercise given as homework. But, the entire assignment is much more involved than the subjec...
[ 0, 0.004608154296875, 0.018798828125, 0.025390625, -0.02685546875, 0.000125885009765625, 0.01300048828125, 0.0103759765625, 0.019287109375, 0.0189208984375, 0.02685546875, -0.0022430419921875, -0.0235595703125, 0.00604248046875, -0.0030364990234375, -0.0013275146484375, 0.01708984375...
[ 27985, 678, 5303, 7, 1250, 4867, 502, 2109, 7136, 2673, 15555, 2371, 316, 32920, 2356, 191144, 357, 23, 11341, 18507, 81979, 5368, 18244, 95486, 5045, 1286, 75412, 157318, 8305, 6626, 34475, 1653, 14, 120639, 69236, 69101, 42518, 80854, 833...
[ 0.115478515625, 0.137939453125, 0.2493896484375, 0.0889892578125, 0.159423828125, 0.251708984375, 0.1192626953125, 0.0941162109375, 0.1212158203125, 0.052215576171875, 0.15576171875, 0.038299560546875, 0.135498046875, 0.1611328125, 0.0152435302734375, 0.16064453125, 0.06298828125, ...
embed
69074642_c0
69074642
prolog
0
Title: How to read large Prolog files in ECLiPSe? Problem title: How to read large Prolog files in ECLiPSe? Tags: eclipse-clp, prolog Problem: How to read large Prolog files in ECLiPSe? I generated a large file of paths via eclipse. Each line contains a clause for a list of 27 points. $ wc -l snake_points.pl 240917 sna...
How to read large Prolog files in ECLiPSe? How to read large Prolog files in ECLiPSe? eclipse-clp prolog How Prolog ECLiPSe snake_points.pl Sep snake_points snake_points.ecl Overflow You GLOBALSIZE Peak ________________________________________________________ Executed How to read large Prolog files in ECLiPSe? I genera...
[ 0.0220947265625, -0.006439208984375, -0.0125732421875, 0.008544921875, -0.01324462890625, -0.0068359375, -0.015380859375, -0.01171875, 0.00531005859375, -0.050537109375, 0.0162353515625, 0.000705718994140625, -0.0299072265625, -0.0174560546875, 0.03369140625, 0.003448486328125, 0.004...
[ 11249, 47, 12301, 21334, 1250, 4867, 102158, 23, 59947, 9506, 9059, 13, 28, 106371, 184, 26775, 502, 16854, 350, 38496, 2424, 21693, 34937, 9578, 118664, 2583, 240597, 9902, 19157, 162737, 211603, 139392, 11435, 60875, 1829, 98423, 13315, 705...
[ 0.0640869140625, 0.04400634765625, 0.216064453125, 0.1759033203125, 0.2076416015625, 0.27490234375, 0.195068359375, 0.06195068359375, 0.137451171875, 0.169921875, 0.2117919921875, 0.2041015625, 0.043609619140625, 0.2181396484375, 0.1693115234375, 0.169677734375, 0.150390625, 0.0836...
embed
19726419_c0
19726419
prolog
0
Title: 2-Water jug in prolog Problem title: 2-Water jug in prolog Tags: non-termination, infinite-loop, water-jug-problem, prolog Problem: 2-Water jug in prolog I'm trying to solve the 2-water jug problem in swi-prolog: Given 2 jugs of capacities 4 and 3 gallons respectively, I want to find the steps to obtain 2 gallon...
2-Water jug in prolog 2-Water jug in prolog non-termination infinite-loop water-jug-problem prolog 3-Gallon 4-Gallon Water Jugs Pour Gallon Fill Jug Empty NEW_Y NEW_X 2-Water jug in prolog I'm trying to solve the 2-water jug problem in swi-prolog: Given 2 jugs of capacities 4 and 3 gallons respectively, I want to find ...
[ 0.0028076171875, 0.0269775390625, 0.003997802734375, 0.0086669921875, -0.01409912109375, 0.031494140625, -0.037841796875, 0.00390625, -0.005859375, -0.0257568359375, 0.01409912109375, 0.007110595703125, -0.0091552734375, 0.00653076171875, 0, 0.01318359375, 0.000682830810546875, 0.0...
[ 4720, 107774, 103863, 23, 502, 4867, 56, 351, 720, 91407, 54241, 28354, 7401, 461, 177, 38953, 5691, 70696, 4759, 7306, 27646, 3314, 9405, 5547, 21713, 191, 140423, 31678, 80111, 1723, 1542, 31577, 86869, 36448, 2967, 91, 2452, 3454, 116, ...
[ 0.1861572265625, 0.16357421875, 0.275634765625, 0.053741455078125, 0.17041015625, 0.228271484375, 0.0197601318359375, 0.0643310546875, 0.099609375, 0.0841064453125, 0.113525390625, 0.1375732421875, 0.1680908203125, 0.197998046875, 0.10888671875, 0.151123046875, 0.08349609375, 0.078...
embed
23332331_c0
23332331
prolog
0
Title: How can we select a random data set from the list of solutions given by Prolog? Problem title: How can we select a random data set from the list of solutions given by Prolog? Tags: clpfd, prolog Problem: How can we select a random data set from the list of solutions given by Prolog? i am new to prolog and workin...
How can we select a random data set from the list of solutions given by Prolog? How can we select a random data set from the list of solutions given by Prolog? clpfd prolog the How Prolog How can we select a random data set from the list of solutions given by Prolog? i am new to prolog and working my way through the FD...
[ 0.017333984375, 0.01116943359375, 0.01446533203125, 0.004730224609375, -0.01361083984375, -0.00592041015625, -0.007232666015625, -0.017578125, -0.0036163330078125, -0.042724609375, 0.00567626953125, -0.016845703125, -0.00592041015625, 0.01324462890625, 0.0220947265625, 0.00337219238281...
[ 11249, 831, 642, 36849, 96759, 2053, 5423, 1295, 5303, 51347, 34475, 1250, 4867, 39557, 71, 502, 70, 3525, 98553, 3115, 7864, 38969, 10752, 539, 7225, 2816, 4288, 35064, 86869, 7722, 27117, 171739, 35509, 40, 297, 5045, 17336, 5490, 36917, ...
[ 0.12841796875, 0.083251953125, 0.0653076171875, 0.236572265625, 0.2276611328125, 0.1220703125, 0.1890869140625, 0.0791015625, 0.097412109375, 0.1962890625, 0.031494140625, 0.1632080078125, 0.238037109375, 0.0168609619140625, 0.0836181640625, 0.114013671875, 0.004638671875, 0.006500...
embed
40654138_c0
40654138
prolog
0
Title: How do define a rule only if a precondition is true? Problem title: How do define a rule only if a precondition is true? Tags: prolog Problem: How do define a rule only if a precondition is true? I try to assign IP addresses to hosts with host_ip . But I want that any IP address defined should fulfill some preco...
How do define a rule only if a precondition is true? How do define a rule only if a precondition is true? prolog How host_ip valid_ip add_host Name host1 host2 ERROR Undefined DWIM How do define a rule only if a precondition is true? I try to assign IP addresses to hosts with host_ip . But I want that any IP address de...
[ 0.01513671875, -0.01092529296875, 0.0054931640625, 0.04638671875, 0.006195068359375, 0.0196533203125, -0.00640869140625, -0.00396728515625, 0.0004062652587890625, -0.004364013671875, 0.01495361328125, -0.0025787353515625, -0.01129150390625, 0.017822265625, 0.015380859375, 0.01416015625...
[ 11249, 61924, 79986, 4734, 2174, 10, 479, 126940, 83, 29568, 502, 4867, 27980, 3442, 35604, 15190, 40294, 15757, 418, 304, 151206, 24638, 79912, 5983, 30439, 17199, 9790, 95486, 8021, 29823, 47, 678, 3444, 2499, 5608, 211394, 44043, 3263, 2...
[ 0.055938720703125, 0.235107421875, 0.25048828125, 0.1826171875, 0.15185546875, 0.078369140625, 0.2130126953125, 0.298828125, 0.0838623046875, 0.1978759765625, 0.12060546875, 0.1859130859375, 0.1568603515625, 0.1429443359375, 0.2012939453125, 0.093017578125, 0.15771484375, 0.0556945...
embed
36000827_c0
36000827
prolog
0
Title: Statement for output in prolog Problem title: Statement for output in prolog Tags: prolog Problem: Statement for output in prolog I try to sort a list of numbers like [1,2,3,3,4,5,5,6,6,7] in this increasing order into 2 other list Unique and NotUnique , which just to find out if a number appears more than once ...
Statement for output in prolog Statement for output in prolog prolog Statement Unique NotUnique _G1678 _G1708 Uni Statement for output in prolog I try to sort a list of numbers like [1,2,3,3,4,5,5,6,6,7] in this increasing order into 2 other list Unique and NotUnique , which just to find out if a number appears more th...
[ -0.006195068359375, 0.01165771484375, 0.0235595703125, -0.03271484375, -0.014404296875, -0.011474609375, 0.00080108642578125, -0.0247802734375, 0.013427734375, 0.031005859375, -0.01043701171875, 0.0145263671875, 0.0159912109375, -0.00168609619140625, 0.01080322265625, 0.01226806640625,...
[ 22836, 674, 100, 140992, 502, 4867, 11789, 944, 11205, 1062, 45602, 724, 2485, 19051, 2489, 8318, 9790, 12096, 5303, 101935, 155761, 363, 80389, 104629, 136555, 118055, 12989, 3934, 116, 3789, 7413, 1810, 14012, 135179, 1286, 24145, 106, 138,...
[ 0.2015380859375, 0.0792236328125, 0.0516357421875, 0.2308349609375, 0.160400390625, 0.25, 0.2161865234375, 0.127685546875, 0.1656494140625, 0.1077880859375, 0.2138671875, 0.025634765625, 0.1258544921875, 0.2349853515625, 0.09234619140625, 0.230712890625, 0.0389404296875, 0.20202636...
embed
50448415_c0
50448415
prolog
0
Title: Prolog return certain permutations Problem title: Prolog return certain permutations Tags: return, prolog, permutation Problem: Prolog return certain permutations i have a predicate schedule(A,B,C) that returns possible permutations at lists A,B,C with backtracking ?- schedule(A,B,C). A = [im204,212,217] B = [im...
Prolog return certain permutations Prolog return certain permutations return prolog permutation Prolog im204 im209 im210 schedule_errors im212 im214 im217 im216 im218 schedule_all_errors Prolog return certain permutations i have a predicate schedule(A,B,C) that returns possible permutations at lists A,B,C with backtrac...
[ 0.00811767578125, 0.0118408203125, 0.000888824462890625, 0.01165771484375, -0.022216796875, 0.00714111328125, -0.026611328125, -0.01116943359375, -0.002227783203125, -0.01336669921875, 0.0010986328125, -0.012451171875, 0.0235595703125, 0.00970458984375, 0.00127410888671875, 0.008239746...
[ 1250, 4867, 30646, 24233, 117, 14311, 21094, 502, 561, 566, 147758, 1549, 1126, 88142, 80889, 188800, 1530, 2592, 2489, 2485, 1819, 5584, 1653, 2063, 67, 284, 571, 441, 7722, 99, 5303, 4420, 125728, 647, 18499, 152374, 1295, 47, 241, 3525...
[ 0.1820068359375, 0.2607421875, 0.2242431640625, 0.140380859375, 0.1416015625, 0.2200927734375, 0.0772705078125, 0.13623046875, 0.1688232421875, 0.0673828125, 0.1737060546875, 0.014007568359375, 0.06787109375, 0.10565185546875, 0.21435546875, 0.1656494140625, 0.0411376953125, 0.0338...
embed
16865337_c1
16865337
prolog
1
1, String1),t(Number2, String2)|TokenTail],[NewToken|TaggedTokenList]) :- String1 = [Head1|Tail1], String2 = [Head2|Tail2], char_type(Head1, upper), char_type(Head2, upper), !, append(String1, String2, NewString), NewToken = t(Number1, NewString), collapseToken(TokenTail, TaggedTokenList). collapseToken([Head1|Tail1], ...
1, String1),t(Number2, String2)|TokenTail],[NewToken|TaggedTokenList]) :- String1 = [Head1|Tail1], String2 = [Head2|Tail2], char_type(Head1, upper), char_type(Head2, upper), !, append(String1, String2, NewString), NewToken = t(Number1, NewString), collapseToken(TokenTail, TaggedTokenList). collapseToken([Head1|Tail1], ...
[ 0.000164031982421875, -0.006134033203125, 0.004241943359375, 0.02392578125, 0.01312255859375, 0.01318359375, -0.0118408203125, 0.00112152099609375, 0.016845703125, -0.0057373046875, 0.0242919921875, 0.0016326904296875, -0.006317138671875, -0.0018463134765625, 0.00159454345703125, -0.01...
[ 106, 23351, 214, 17727, 18, 18444, 26278, 304, 10461, 7763, 1098, 9874, 379, 46568, 66448, 17704, 154663, 15772, 418, 2203, 13025, 712, 76172, 90173, 21441, 50986, 1407, 56, 711, 114689, 71713, 2356, 808, 3365, 127966, 57261, 1218, 12477, 1...
[ 0.0736083984375, 0.184814453125, 0.09930419921875, 0.10107421875, 0.0911865234375, 0.06622314453125, 0.07861328125, 0.13818359375, 0.1207275390625, 0.1475830078125, 0.1761474609375, 0.1815185546875, 0.14013671875, 0.122802734375, 0.127197265625, 0.0972900390625, 0.15283203125, 0.02...
embed
60732155_c0
60732155
prolog
0
Title: To determine the best country base on priority factor, prolog Problem title: To determine the best country base on priority factor, prolog Tags: recursive-backtracking, prolog, recursion, backtracking Problem: To determine the best country base on priority factor, prolog Let's say we have this database: choice(m...
To determine the best country base on priority factor, prolog To determine the best country base on priority factor, prolog recursive-backtracking prolog recursion backtracking Country Count Name LPref N-1 To determine the best country base on priority factor, prolog Let's say we have this database: We want to know the...
[ 0.020263671875, 0.012451171875, -0.00921630859375, -0.00139617919921875, -0.01116943359375, 0.00238037109375, -0.00860595703125, 0.00052642822265625, 0.017822265625, -0.01556396484375, -0.000759124755859375, -0.0107421875, -0.00714111328125, -0.0001430511474609375, -0.01025390625, -0.0...
[ 83324, 70, 2965, 23295, 3647, 98, 25343, 53, 31461, 502, 4867, 717, 195625, 5844, 12620, 125728, 214, 1830, 4420, 74831, 108210, 15757, 82080, 29087, 541, 5759, 5154, 903, 63399, 3444, 3714, 35509, 5303, 111, 44126, 12638, 3445, 4, 12830, ...
[ 0.1474609375, 0.06182861328125, 0.180419921875, 0.23291015625, 0.2012939453125, 0.04669189453125, 0.1953125, 0.1085205078125, 0.1983642578125, 0.172607421875, 0.2369384765625, 0.0023193359375, 0.1558837890625, 0.1209716796875, 0.1446533203125, 0.1895751953125, 0.076171875, 0.058258...
embed
49577519_c0
49577519
prolog
0
Title: Trying to replace second or second last element of lists in prolog Problem title: Trying to replace second or second last element of lists in prolog Tags: prolog, list Problem: Trying to replace second or second last element of lists in prolog I am trying to write two predicates. They are to replace the second o...
Trying to replace second or second last element of lists in prolog Trying to replace second or second last element of lists in prolog prolog list Trying repl2 Trying to replace second or second last element of lists in prolog I am trying to write two predicates. They are to replace the second or second last element of ...
[ -0.0034332275390625, 0.00634765625, -0.00025177001953125, 0.009033203125, -0.007598876953125, 0.013427734375, -0.0118408203125, 0.0081787109375, 0.0201416015625, 0.0167236328125, 0.01446533203125, 0.001678466796875, -0.0106201171875, -0.0281982421875, 0.01544189453125, 0.0194091796875,...
[ 40858, 91995, 17932, 707, 4568, 12830, 5303, 502, 4867, 456, 2424, 304, 31577, 33022, 6626, 1653, 2063, 1636, 678, 107730, 2060, 4734, 19048, 5117, 183540, 19069, 1250, 34844, 100094, 4420, 125728, 214, 136, 195625, 1830, 4358, 28219, 11782, ...
[ 0.1141357421875, 0.184814453125, 0.1842041015625, 0.06536865234375, 0.175048828125, 0.1607666015625, 0.1773681640625, 0.1455078125, 0.220947265625, 0.1202392578125, 0.22802734375, 0.1375732421875, 0.1163330078125, 0.08489990234375, 0.0888671875, 0.1329345703125, 0.1220703125, 0.070...
embed
25685964_c0
25685964
prolog
0
Title: Issue in Prolog Programming Problem title: Issue in Prolog Programming Tags: prolog Problem: Issue in Prolog Programming Hello I am new in Prolog and trying to write small program in Prolog in order to learn it.... I have written a program to remove the positional element mean remove(List,2,Ans) will remove all ...
Issue in Prolog Programming Issue in Prolog Programming prolog Issue Prolog Programming Ans LEN Res LEN1 LEN-1 Result Call _G2941 _G3039 Exit _G3041 _G3046 Fail Issue in Prolog Programming Hello I am new in Prolog and trying to write small program in Prolog in order to learn it.... I have written a program to remove th...
[ 0, 0.01068115234375, 0.018798828125, 0.0020751953125, -0.0277099609375, 0.021240234375, -0.007537841796875, -0.00096893310546875, 0.0030364990234375, -0.0242919921875, 0.03173828125, -0.00112152099609375, 0.00168609619140625, -0.0233154296875, 0.015380859375, -0.00799560546875, 0.015...
[ 223317, 1250, 4867, 27958, 23, 502, 893, 7, 47214, 9624, 418, 5759, 126684, 26265, 4235, 8894, 1197, 9323, 5443, 217, 9271, 190355, 33022, 19336, 1528, 59121, 10, 87388, 19069, 289, 12830, 29459, 154663, 304, 7251, 756, 80854, 80652, 151664...
[ 0.182861328125, 0.169677734375, 0.260986328125, 0.1463623046875, 0.02288818359375, 0.1163330078125, 0.129150390625, 0.0260009765625, 0.16650390625, 0.112060546875, 0.045745849609375, 0.08514404296875, 0.128662109375, 0.1334228515625, 0.1124267578125, 0.1300048828125, 0.0101318359375,...
embed
49010283_c1
49010283
prolog
1
game selection */ rand(X) :- games(Y), random_member(X,Y), assert(selected(X)). :- dynamic selected/1. game_init :- retract(selected(Y)), retract(all_options(Z)), all_options. /* Counter */ :- dynamic counter/1. counter(0). /* Initialize counter as 0 */ increment :- /* Set counter increment as 1 */ retract(counter(C))...
game selection */ rand(X) :- games(Y), random_member(X,Y), assert(selected(X)). :- dynamic selected/1. game_init :- retract(selected(Y)), retract(all_options(Z)), all_options. /* Counter */ :- dynamic counter/1. counter(0). /* Initialize counter as 0 */ increment :- /* Set counter increment as 1 */ retract(counter(C))...
[ 0.004119873046875, 0.003997802734375, 0.028076171875, 0.0169677734375, 0.01495361328125, -0.00408935546875, 0.001617431640625, -0.0068359375, 0.006103515625, -0.00787353515625, -0.021240234375, 0.0201416015625, 0.002166748046875, 0.02099609375, 0, 0.01611328125, 0.0040283203125, 0....
[ 6712, 132216, 661, 27388, 132, 1542, 15772, 27528, 1723, 96759, 39, 27417, 237, 33657, 23765, 89829, 84079, 133291, 11583, 73, 217, 41499, 15390, 5584, 109585, 1511, 756, 5, 1639, 197956, 105416, 177609, 360, 40705, 119066, 757, 158661, 19943...
[ 0.1990966796875, 0.27392578125, 0.02825927734375, 0.2373046875, 0.004425048828125, 0.150146484375, 0.06097412109375, 0.1832275390625, 0.12548828125, 0.1925048828125, 0.051300048828125, 0.186767578125, 0.06158447265625, 0.1661376953125, 0.13427734375, 0.082275390625, 0.1856689453125, ...
embed
16325238_c0
16325238
prolog
0
Title: left_of exercise from The Art Of Prolog Problem title: left_of exercise from The Art Of Prolog Tags: prolog Problem: left_of exercise from The Art Of Prolog In the book we are asked to define the predicates left_of, right_of, above, and below using the following layout. % bike camera % pencil hourglass butterfly...
left_of exercise from The Art Of Prolog left_of exercise from The Art Of Prolog prolog The left_of Art Prolog right_of Obj1 Obj2 left_of2 left_of exercise from The Art Of Prolog In the book we are asked to define the predicates left_of, right_of, above, and below using the following layout. This seems to find correct s...
[ 0.0179443359375, 0.0042724609375, 0.00124359130859375, 0.0291748046875, -0.00738525390625, -0.006988525390625, -0.0283203125, -0.006011962890625, 0.032470703125, -0.053955078125, -0.0033111572265625, -0.02099609375, 0.0196533203125, -0.001190185546875, 0.01953125, -0.01708984375, -0....
[ 25737, 454, 4390, 81979, 4713, 6619, 1250, 4867, 502, 7108, 3545, 170, 418, 304, 12877, 37170, 61924, 1653, 2063, 1636, 36917, 35064, 25632, 108802, 26785, 51347, 15190, 195625, 5844, 79986, 4734, 29806, 7413, 12921, 7477, 18770, 9351, 5442, ...
[ 0.22265625, 0.0670166015625, 0.32861328125, 0.19091796875, 0.150390625, 0.180908203125, 0.13427734375, 0.2332763671875, 0.0867919921875, 0.154052734375, 0.09588623046875, 0.110107421875, 0.0175628662109375, 0.0936279296875, 0.06317138671875, 0.0280609130859375, 0.1514892578125, 0.1...
embed
32580525_c0
32580525
prolog
0
Title: Syntax Error: Operator expected in SWI Prolog Problem title: Syntax Error: Operator expected in SWI Prolog Tags: prolog, syntax-error Problem: Syntax Error: Operator expected in SWI Prolog I keep getting a syntax error every time I try to compile this buffer. I've gone through the ordinary steps of removing all ...
Syntax Error: Operator expected in SWI Prolog Syntax Error: Operator expected in SWI Prolog prolog syntax-error Syntax Error Operator SWI Prolog solve_puzzle Swimmers _Girl1 _Girl2 _Girl3 is_faster cheltenham_girls table_tennis sydney_girls_high_school ballroom_dancing hornsby_girls_high_school Rest Syntax Error: Opera...
[ 0.002349853515625, 0.0003490447998046875, -0.0101318359375, 0.0123291015625, -0.017333984375, 0.00823974609375, -0.0147705078125, -0.00299072265625, -0.006591796875, -0.027099609375, 0.000461578369140625, -0.01904296875, 0.0167236328125, -0.020751953125, 0.008544921875, 0.0003547668457...
[ 19010, 86531, 212059, 150922, 84751, 23, 159, 38969, 1250, 4867, 502, 6002, 188800, 86869, 1766, 13894, 133, 105432, 6947, 7, 221179, 418, 304, 363, 83, 1021, 1515, 1277, 33, 3915, 47313, 23180, 510, 2706, 72413, 10186, 84396, 48738, 16446,...
[ 0.1759033203125, 0.248779296875, 0.1820068359375, 0.273193359375, 0.2257080078125, 0.022308349609375, 0.07861328125, 0.2314453125, 0.1761474609375, 0.2247314453125, 0.1409912109375, 0.1549072265625, 0.178955078125, 0.13671875, 0.0841064453125, 0.107421875, 0.0833740234375, 0.153442...
embed
59168962_c0
59168962
prolog
0
Title: Calculate whether the sum of exactly three values in a list is equal to N Problem title: Calculate whether the sum of exactly three values in a list is equal to N Tags: prolog Problem: Calculate whether the sum of exactly three values in a list is equal to N Examples: ([1,2,3,7,6,9], 6). should print True , as 1...
Calculate whether the sum of exactly three values in a list is equal to N Calculate whether the sum of exactly three values in a list is equal to N prolog Calculate Trying RES Calculate whether the sum of exactly three values in a list is equal to N Examples: ([1,2,3,7,6,9], 6). should print True , as 1+2+3=6 . ([1,2,3...
[ -0.00384521484375, 0.009521484375, 0.02685546875, -0.00628662109375, -0.007537841796875, 0.003631591796875, 0.004364013671875, 0.005859375, 0.02880859375, -0.002899169921875, 0.013916015625, -0.022705078125, 0.018798828125, -0.0142822265625, -0.00125885009765625, 0.001068115234375, 0...
[ 212467, 2182, 36766, 10554, 66161, 17262, 142424, 5303, 105950, 47, 541, 111, 23, 83, 502, 4867, 40858, 61661, 89536, 133063, 363, 966, 171379, 35914, 5608, 28412, 87599, 237, 54651, 85398, 910, 21162, 22225, 184, 110, 101935, 190, 839, 239...
[ 0.2041015625, 0.0528564453125, 0.1336669921875, 0.2305908203125, 0.2138671875, 0.2462158203125, 0.242431640625, 0.25341796875, 0.2069091796875, 0.088623046875, 0.1953125, 0.00592041015625, 0.042022705078125, 0.0570068359375, 0.1221923828125, 0.13330078125, 0.058074951171875, 0.1571...
embed
26254312_c0
26254312
prolog
0
Title: Can you use a variable in the [limit (x)] option of the cumulative predicate in prolog? Problem title: Can you use a variable in the [limit (x)] option of the cumulative predicate in prolog? Tags: constraint-programming, clpfd, swi-prolog, scheduling, prolog Problem: Can you use a variable in the [limit (x)] opt...
Can you use a variable in the [limit (x)] option of the cumulative predicate in prolog? Can you use a variable in the [limit (x)] option of the cumulative predicate in prolog? constraint-programming clpfd swi-prolog scheduling prolog Can Activities GLB get_start_times StartTimes get_resources Resources get_durations Du...
[ -0.00823974609375, 0.005035400390625, 0.0201416015625, -0.01025390625, -0.0004787445068359375, 0.00518798828125, 0.00933837890625, 0.005218505859375, 0.0189208984375, -0.04931640625, 0.004638671875, -0.0079345703125, 0.0123291015625, 0.007232666015625, 0.0238037109375, -0.0000200271606...
[ 4171, 4527, 77336, 23, 93343, 425, 35829, 1452, 202, 45023, 1653, 2063, 502, 4867, 67, 2816, 4288, 28966, 39557, 71, 2452, 3454, 5094, 15246, 42902, 527, 48097, 2046, 17137, 70141, 13794, 70059, 60427, 152055, 3020, 79843, 10554, 6562, 9920...
[ 0.068603515625, 0.135498046875, 0.26708984375, 0.0236663818359375, 0.2135009765625, 0.1435546875, 0.1796875, 0.1090087890625, 0.1102294921875, 0.074951171875, 0.1368408203125, 0.1629638671875, 0.1322021484375, 0.2198486328125, 0.005706787109375, 0.0850830078125, 0.002716064453125, ...
embed
47382835_c0
47382835
prolog
0
Title: Prolog: Say how Prolog responds to the inquiry and draw a search tree for it ?- member(2, [2, a, X]) Problem title: Prolog: Say how Prolog responds to the inquiry and draw a search tree for it ?- member(2, [2, a, X]) Tags: prolog Problem: Prolog: Say how Prolog responds to the inquiry and draw a search tree for ...
Prolog: Say how Prolog responds to the inquiry and draw a search tree for it ?- member(2, [2, a, X]) Prolog: Say how Prolog responds to the inquiry and draw a search tree for it ?- member(2, [2, a, X]) prolog Prolog Say Prolog: Say how Prolog responds to the inquiry and draw a search tree for it ?- member(2, [2, a, X])...
[ -0.0068359375, 0.00131988525390625, 0.00946044921875, 0.0205078125, -0.01324462890625, 0.04052734375, 0.01251220703125, -0.00848388671875, -0.00408935546875, -0.020263671875, 0.0206298828125, -0.01177978515625, 0.0205078125, 0.0225830078125, 0.017578125, 0.00439453125, 0.005157470703...
[ 1250, 4867, 25916, 3642, 35644, 7, 47, 23, 3181, 1294, 79442, 33938, 53201, 100, 32786, 54753, 304, 10, 1193, 502, 442, 11249, 1221, 25632, 18186, 434, 5792, 14602, 29459, 34735, 27781, 12765, 2174, 3862, 16797, 5303, 5117, 69101, 136, 30...
[ 0.186279296875, 0.26318359375, 0.093505859375, 0.06658935546875, 0.1956787109375, 0.042938232421875, 0.1199951171875, 0.08251953125, 0.153564453125, 0.10595703125, 0.1663818359375, 0.1973876953125, 0.2437744140625, 0.055419921875, 0.16357421875, 0.08563232421875, 0.071533203125, 0....
embed
62201804_c1
62201804
prolog
1
So guys, please help me to figure out why it happens? Why does Prolog answer false for the following query: ? - go1 (a, b, X) . I've tried to trace the query and I've gotten the answer that is below: [trace] ?- go1(a,b,X). Call: (8) go1(a, b, _982) ? creep Call: (9) arc(a, _1202) ? creep Exit: (9) arc(a, b) ? creep ^ ...
So guys, please help me to figure out why it happens? Why does Prolog answer false for the following query: ? - go1 (a, b, X) . I've tried to trace the query and I've gotten the answer that is below: [trace] ?- go1(a,b,X). Call: (8) go1(a, b, _982) ? creep Call: (9) arc(a, _1202) ? creep Exit: (9) arc(a, b) ? creep ^ ...
[ 0.00921630859375, 0.0146484375, 0.0179443359375, 0.02587890625, -0.0096435546875, 0.010986328125, -0.00665283203125, -0.005401611328125, -0.01043701171875, -0.01019287109375, 0.0150146484375, 0.017578125, -0.00616455078125, -0.005096435546875, 0.01409912109375, -0.00872802734375, 0.0...
[ 51484, 22936, 4358, 163, 26366, 1810, 15400, 442, 96276, 44084, 14602, 1250, 4867, 35166, 98320, 100, 25632, 41, 1294, 705, 738, 418, 11, 4, 876, 1193, 144851, 35064, 39989, 13, 275, 1542, 26265, 10021, 1126, 121694, 49512, 254, 11438, 46...
[ 0.0697021484375, 0.0213470458984375, 0.0819091796875, 0.0040283203125, 0.0804443359375, 0.046173095703125, 0.1712646484375, 0.08544921875, 0.1087646484375, 0.1475830078125, 0.05322265625, 0.198974609375, 0.281982421875, 0.1644287109375, 0.291015625, 0.0263214111328125, 0.095825195312...
embed
25350416_c0
25350416
prolog
0
Title: Append a text file in prolog Problem title: Append a text file in prolog Tags: prolog Problem: Append a text file in prolog I want to read a text file using Prolog and then append that file. I used following code to do that. readWord(InStream,W) :- get0(InStream,Char), checkCharAndReadRest(Char,Chars,InStream), ...
Append a text file in prolog Append a text file in prolog prolog Append InStream get0 Char Chars atom_chars Space End Stream end_of_file NextChar output.txt Append a text file in prolog I want to read a text file using Prolog and then append that file. I used following code to do that. Example: Required output – But I ...
[ 0.02099609375, -0.00665283203125, 0.02001953125, 0.0069580078125, 0.00128936767578125, -0.0045166015625, 0.00457763671875, 0.015380859375, 0.000240325927734375, -0.01953125, 0.0341796875, 0.0086669921875, -0.015625, -0.00811767578125, 0.02392578125, -0.0137939453125, 0.0089111328125,...
[ 5659, 3611, 7986, 11435, 23, 502, 4867, 360, 115061, 2046, 2389, 21656, 34627, 9254, 43045, 18878, 3564, 4390, 29822, 4997, 84068, 140992, 124326, 3444, 12301, 17368, 1250, 114689, 71, 18151, 89536, 853, 3181, 2822, 35166, 56065 ]
[ 0.1220703125, 0.093017578125, 0.1595458984375, 0.1773681640625, 0.014434814453125, 0.1490478515625, 0.240478515625, 0.05792236328125, 0.1651611328125, 0.051849365234375, 0.05438232421875, 0.113525390625, 0.1348876953125, 0.099365234375, 0.1044921875, 0.07330322265625, 0.0733642578125...
embed
28659257_c0
28659257
prolog
0
Title: Is there a clpfd library in YAP Prolog equivalent to the one in SWI-Prolog? Problem title: Is there a clpfd library in YAP Prolog equivalent to the one in SWI-Prolog? Tags: yap, clpfd, constraint-programming, prolog, scheduling Problem: Is there a clpfd library in YAP Prolog equivalent to the one in SWI-Prolog? ...
Is there a clpfd library in YAP Prolog equivalent to the one in SWI-Prolog? Is there a clpfd library in YAP Prolog equivalent to the one in SWI-Prolog? yap clpfd constraint-programming prolog scheduling YAP Prolog SWI-Prolog EXISTENCE ERROR prolog:$command Goal user:cumulative _D543 _D539 _131120 _D535 _D531 _131128 _D...
[ 0.0098876953125, 0.00982666015625, 0.00701904296875, 0.0245361328125, -0.002471923828125, -0.00506591796875, 0.01007080078125, -0.0147705078125, -0.01336669921875, -0.032470703125, 0.005523681640625, -0.017822265625, -0.00958251953125, -0.0189208984375, 0.01287841796875, -0.00199890136...
[ 2685, 33139, 39557, 71, 35773, 1294, 128706, 1250, 4867, 183234, 159, 38969, 10752, 10, 23, 15850, 158, 2816, 4288, 28966, 502, 5094, 15246, 29426, 35602, 151206, 12018, 2016, 38937, 10591, 167316, 188758, 5843, 1632, 54397, 18151, 88996, 196...
[ 0.02490234375, 0.0977783203125, 0.16455078125, 0.16650390625, 0.2347412109375, 0.1383056640625, 0.2332763671875, 0.150146484375, 0.1920166015625, 0.1519775390625, 0.0244293212890625, 0.200439453125, 0.1181640625, 0.0120849609375, 0.04986572265625, 0.1768798828125, 0.031768798828125, ...
embed
42534842_c0
42534842
prolog
0
Title: How to use backtrack to increment a variable infinitely in Prolog Problem title: How to use backtrack to increment a variable infinitely in Prolog Tags: prolog, backtracking Problem: How to use backtrack to increment a variable infinitely in Prolog I am currently reading a Prolog book and I am stuck on one of th...
How to use backtrack to increment a variable infinitely in Prolog How to use backtrack to increment a variable infinitely in Prolog prolog backtracking How Prolog backtracking_exercise backtracking_excercise2 How to use backtrack to increment a variable infinitely in Prolog I am currently reading a Prolog book and I am...
[ 0.0087890625, 0.011962890625, 0.00139617919921875, 0.003631591796875, 0.00115203857421875, 0.0126953125, 0.015625, -0.0027923583984375, 0.01422119140625, -0.052001953125, 0.000576019287109375, -0.007598876953125, 0.0031585693359375, 0.0194091796875, 0.02734375, 0.01025390625, 0.00659...
[ 11249, 4527, 4420, 125728, 158661, 77336, 54241, 21286, 1250, 4867, 502, 214, 15019, 3443, 318, 23, 16454, 12877, 179933, 66801, 81979, 28282, 1653, 2063, 67, 678, 1632, 10750, 30646, 25632, 1193, 21342, 47, 17475, 757, 116, 138, 35064, 830...
[ 0.04150390625, 0.10552978515625, 0.2159423828125, 0.319091796875, 0.2362060546875, 0.2384033203125, 0.1656494140625, 0.1201171875, 0.165283203125, 0.2196044921875, 0.111083984375, 0.034210205078125, 0.05340576171875, 0.04241943359375, 0.009002685546875, 0.03509521484375, 0.0158691406...
embed
69246908_c0
69246908
prolog
0
Title: Combinations of two lists where same element can't be in matching position Problem title: Combinations of two lists where same element can't be in matching position Tags: prolog Problem: Combinations of two lists where same element can't be in matching position Given the plays of several games of Rock,...
Combinations of two lists where same element can't be in matching position Combinations of two lists where same element can't be in matching position prolog Combinations Rock Scissors results.pl ordered_results Combinations of two lists where same element can't be in matching position Given the plays of sever...
[ -0.0047607421875, 0.029296875, -0.00830078125, -0.001922607421875, 0.002410888671875, 0.01336669921875, -0.00811767578125, -0.0029449462890625, 0.019287109375, -0.00787353515625, 0.015869140625, 0.0262451171875, 0.0032806396484375, 0.01611328125, -0.0263671875, 0.0101318359375, -0.00...
[ 106935, 19, 21094, 6626, 5303, 7, 7440, 5701, 12830, 831, 3768, 18, 186, 23, 14858, 214, 19069, 502, 4867, 14434, 49628, 4970, 50339, 2424, 12989, 297, 2109, 7136, 11301, 40368, 27528, 4, 62323, 6056, 110, 123840, 1884, 7413, 7722, 5180, ...
[ 0.1947021484375, 0.146484375, 0.052154541015625, 0.1400146484375, 0.2474365234375, 0.0986328125, 0.047332763671875, 0.1405029296875, 0.2021484375, 0.1256103515625, 0.047515869140625, 0.144287109375, 0.07269287109375, 0.0682373046875, 0.2060546875, 0.145751953125, 0.2117919921875, 0...
embed
18636501_c1
18636501
prolog
1
DLL. I see here ( Embedding SWI-Prolog in a dll ) that it can later be done in the DllMain but also that it is not recommended. What is the best way to do it? Should I give food.exe as argv[0] or something else (libswipl.dll? a saved state?) Secondly, I noticed that one difference when using swipl-ld to generate a DLL...
DLL. I see here ( Embedding SWI-Prolog in a dll ) that it can later be done in the DllMain but also that it is not recommended. What is the best way to do it? Should I give food.exe as argv[0] or something else (libswipl.dll? a saved state?) Secondly, I noticed that one difference when using swipl-ld to generate a DLL...
[ 0.0091552734375, 0.01409912109375, -0.01214599609375, 0.021728515625, -0.02587890625, 0.005462646484375, 0.00640869140625, -0.01031494140625, -0.00738525390625, -0.030517578125, 0.006317138671875, 0.0260009765625, -0.0211181640625, 0.010009765625, 0.01611328125, -0.0269775390625, 0.0...
[ 391, 23708, 2775, 372, 59725, 159, 38969, 9, 10752, 4867, 23, 81717, 831, 14432, 16940, 1181, 168793, 83, 959, 170198, 2965, 3917, 54, 8337, 15381, 46480, 237, 79459, 334, 2389, 5612, 2452, 2424, 71, 57, 4126, 11341, 156672, 60212, 17368,...
[ 0.0933837890625, 0.24560546875, 0.043365478515625, 0.21240234375, 0.111328125, 0.0306243896484375, 0.1842041015625, 0.039947509765625, 0.158203125, 0.240234375, 0.02154541015625, 0.205810546875, 0.040008544921875, 0.040924072265625, 0.0955810546875, 0.200927734375, 0.197021484375, ...
embed
23438742_c0
23438742
prolog
0
Title: SWI-Prolog sort predicate not working Problem title: SWI-Prolog sort predicate not working Tags: prolog Problem: SWI-Prolog sort predicate not working I just made up a program, doing following task: "Get elements, which values are equal to their indexes". Here is the code: % get element's index get_index([Elemen...
SWI-Prolog sort predicate not working SWI-Prolog sort predicate not working prolog SWI-Prolog get_index Element Index Index1 index_equals_to_element List List2 Outputs SWI-Prolog sort predicate not working I just made up a program, doing following task: "Get elements, which values are equal to their indexes". Here is t...
[ -0.006866455078125, 0.008056640625, 0.016357421875, -0.015869140625, -0.029296875, -0.005126953125, -0.00201416015625, -0.00970458984375, 0.006011962890625, -0.0113525390625, 0.01141357421875, 0.02734375, -0.00933837890625, -0.0069580078125, -0.000614166259765625, -0.0186767578125, 0...
[ 159, 38969, 10752, 4867, 12096, 1653, 2063, 67, 959, 20697, 502, 2046, 4711, 48325, 31471, 418, 63262, 71723, 188, 62766, 32036, 304, 13538, 7077, 1528, 25632, 66211, 724, 126, 80854, 142424, 105950, 18151, 43240, 28875, 5299, 1632, 2967, 5...
[ 0.07275390625, 0.2255859375, 0.1453857421875, 0.1956787109375, 0.2374267578125, 0.195068359375, 0.2230224609375, 0.055877685546875, 0.073974609375, 0.159912109375, 0.127197265625, 0.0419921875, 0.149169921875, 0.1593017578125, 0.1597900390625, 0.013916015625, 0.14404296875, 0.11462...
embed
29741802_c0
29741802
prolog
0
Title: Error in Prolog Code(operator Expected) Problem title: Error in Prolog Code(operator Expected) Tags: prolog Problem: Error in Prolog Code(operator Expected) I am new to Prolog programming and trying to implement 3 by 3 magic square in prolog. But I am getting an operator expected error while compiling the progra...
Error in Prolog Code(operator Expected) Error in Prolog Code(operator Expected) prolog Error Prolog Expected use_module magic_square Puzzle Solution Sum S11 S12 S13 S21 S22 S23 S31 S32 S33 Statement all_different Rows Columns Diagonals Diag1 Diag2 sum_list Sum1 Sum2 Sum3 Sum4 Sum5 Sum6 Sum7 Sum8 Error in Prolog Code(op...
[ -0.00103759765625, 0.0064697265625, 0.0208740234375, 0.0078125, 0.01214599609375, -0.0001430511474609375, -0.016357421875, 0.01275634765625, -0.006805419921875, -0.02001953125, -0.0069580078125, -0.0172119140625, 0.033447265625, -0.0179443359375, -0.01336669921875, 0.00421142578125, ...
[ 212059, 23, 1250, 4867, 28864, 206469, 60075, 13, 89829, 502, 4527, 83279, 49846, 108047, 179277, 187895, 36335, 1662, 1530, 2681, 3117, 4015, 3742, 5016, 6460, 9185, 22836, 756, 238778, 96190, 233987, 6126, 4512, 177, 304, 10554, 6562, 363, ...
[ 0.18310546875, 0.050262451171875, 0.187744140625, 0.250244140625, 0.2095947265625, 0.20458984375, 0.1546630859375, 0.1494140625, 0.1412353515625, 0.1600341796875, 0.1068115234375, 0.138916015625, 0.1484375, 0.193603515625, 0.166748046875, 0.1173095703125, 0.128173828125, 0.09448242...
embed
25579309_c0
25579309
prolog
0
Title: (Prolog) How do I rearrange elements in the list recursively to give multiple resulting states for an answer? Problem title: (Prolog) How do I rearrange elements in the list recursively to give multiple resulting states for an answer? Tags: definition, list, prolog Problem: (Prolog) How do I rearrange elements i...
(Prolog) How do I rearrange elements in the list recursively to give multiple resulting states for an answer? (Prolog) How do I rearrange elements in the list recursively to give multiple resulting states for an answer? definition list prolog Prolog How (Prolog) How do I rearrange elements in the list recursively to gi...
[ 0.003265380859375, 0.0186767578125, 0.00555419921875, 0.0064697265625, -0.009765625, -0.0026702880859375, -0.02294921875, 0.00946044921875, 0.0103759765625, -0.0230712890625, 0.00179290771484375, 0.01336669921875, -0.0111083984375, 0.0240478515625, 0.007354736328125, -0.01239013671875,...
[ 10752, 4867, 11249, 456, 147, 94250, 80854, 5303, 195625, 5844, 538, 8337, 48716, 16750, 214, 117249, 35166, 54, 23, 80934, 502, 1250, 87, 111607, 7440, 5117, 12830, 7103, 47, 7, 765, 109133, 12638, 3789, 15504, 903, 188, 111, 17306 ]
[ 0.124267578125, 0.2379150390625, 0.076171875, 0.129150390625, 0.1492919921875, 0.2425537109375, 0.1895751953125, 0.1988525390625, 0.202392578125, 0.137451171875, 0.01165771484375, 0.0631103515625, 0.213623046875, 0.1544189453125, 0.091552734375, 0.1748046875, 0.158935546875, 0.0101...
embed
32239149_c0
32239149
prolog
0
Title: Using insert predicate in SWI-Prolog swish? Problem title: Using insert predicate in SWI-Prolog swish? Tags: prolog, swi-prolog-for-sharing Problem: Using insert predicate in SWI-Prolog swish? I'm trying to execute what seems like a simple three lines of code insert(X,[],[X]). insert(X,[H|T],Z):-X>=H,Z=[X,H|T]. ...
Using insert predicate in SWI-Prolog swish? Using insert predicate in SWI-Prolog swish? prolog swi-prolog-for-sharing Using SWI-Prolog ERROR uJ0Y9U prog:13 Warning prog:15 Goal user:main Undefined Exception EOF Using insert predicate in SWI-Prolog swish? I'm trying to execute what seems like a simple three lines of cod...
[ -0.00982666015625, 0.00872802734375, 0.01470947265625, -0.0093994140625, -0.03857421875, 0.0263671875, -0.01239013671875, -0.0179443359375, 0.000942230224609375, -0.0262451171875, 0.0157470703125, -0.0086669921875, -0.018798828125, -0.027099609375, 0.017333984375, 0.0252685546875, 0....
[ 345, 6953, 183540, 1653, 2063, 67, 159, 38969, 10752, 4867, 91, 114686, 23, 502, 2452, 3454, 2420, 2852, 151206, 75, 1375, 1126, 67973, 22618, 5550, 12221, 2016, 38937, 24931, 79912, 5983, 5443, 63928, 241, 82341, 31577, 71924, 37202, 8781,...
[ 0.09197998046875, 0.033935546875, 0.322998046875, 0.1929931640625, 0.230224609375, 0.068603515625, 0.07305908203125, 0.235107421875, 0.1495361328125, 0.2037353515625, 0.08416748046875, 0.295166015625, 0.0042724609375, 0.115234375, 0.228515625, 0.1278076171875, 0.135986328125, 0.049...
embed
59986522_c1
59986522
prolog
1
language. But how do I do this in Prolog? And perhaps the recipes in my code above are defined in a wrong way in the first place? [UPDATE] This is the usage of find_recipe predicate I've been thinking of main():- chooseusertype(Usertype), startas(Usertype), find_recipe(Recipename). % somehow read the user's input, and...
language. But how do I do this in Prolog? And perhaps the recipes in my code above are defined in a wrong way in the first place? [UPDATE] This is the usage of find_recipe predicate I've been thinking of main():- chooseusertype(Usertype), startas(Usertype), find_recipe(Recipename). % somehow read the user's input, and...
[ -0.00189971923828125, 0.0028839111328125, 0.037109375, 0.0196533203125, 0.00469970703125, 0.018310546875, -0.011474609375, 0.0267333984375, 0.003936767578125, -0.016357421875, 0.01409912109375, -0.0003490447998046875, -0.02294921875, -0.006683349609375, 0.024169921875, -0.0019302368164...
[ 46876, 3642, 54, 903, 23, 1250, 4867, 95134, 48564, 7, 18151, 61924, 71, 44691, 127689, 7413, 107, 115052, 1653, 2063, 67, 47644, 5201, 132, 55076, 65918, 50986, 1062, 2189, 86064, 11627, 209303, 12301, 38937, 107730, 27875, 126684, 33022, ...
[ 0.1656494140625, 0.06329345703125, 0.0838623046875, 0.1129150390625, 0.04718017578125, 0.1856689453125, 0.28955078125, 0.0181427001953125, 0.244873046875, 0.073974609375, 0.10015869140625, 0.130615234375, 0.001800537109375, 0.07244873046875, 0.09771728515625, 0.1824951171875, 0.07348...
embed
65795850_c0
65795850
prolog
0
Title: Prolog error arguments are not instantiated Problem title: Prolog error arguments are not instantiated Tags: prolog, swish Problem: Prolog error arguments are not instantiated When running this code: signcheck(Sign1,Sign2):-(Sign1==clubs,Sign2==hearts);(Sign1==clubs,Sign2==spades) ;(Sign1==clubs,Sign2==diamonds)...
Prolog error arguments are not instantiated Prolog error arguments are not instantiated prolog swish Prolog Sign1 Sign2 Num1 Num2 Arguments _1600 _1668 _1670 Prolog error arguments are not instantiated When running this code: when running the query: I get this error message: Why is this occouring?
[ 0.0201416015625, 0.00946044921875, -0.00640869140625, -0.01226806640625, 0.0035247802734375, 0.01104736328125, -0.0032501220703125, -0.0128173828125, 0.00335693359375, -0.00665283203125, 0.023193359375, -0.00653076171875, -0.0004863739013671875, 0.0010986328125, 0.003692626953125, -0.0...
[ 1250, 4867, 18499, 10750, 7, 621, 959, 34648, 14, 27686, 502, 91, 114686, 48838, 418, 304, 52782, 112140, 151318, 2485, 16028, 5757, 51042, 903, 18151, 3229, 41, 1294, 2046, 26008, 44084, 83, 13400, 53089 ]
[ 0.16845703125, 0.258544921875, 0.2032470703125, 0.2193603515625, 0.05511474609375, 0.023956298828125, 0.1358642578125, 0.1353759765625, 0.099853515625, 0.04913330078125, 0.127197265625, 0.030792236328125, 0.2330322265625, 0.1236572265625, 0.003787994384765625, 0.07562255859375, 0.094...
embed
4344466_c0
4344466
prolog
0
Title: Giving same answer over and over, than listener crashes - Prolog Problem title: Giving same answer over and over, than listener crashes - Prolog Tags: prolog Problem: Giving same answer over and over, than listener crashes - Prolog Warning, I'm quite new to Prolog. I've written a split predicate in Prolog. It sp...
Giving same answer over and over, than listener crashes - Prolog Giving same answer over and over, than listener crashes - Prolog prolog Giving Prolog Key Small Big NewSmall NewBig Result Giving same answer over and over, than listener crashes - Prolog Warning, I'm quite new to Prolog. I've written a split predicate in...
[ 0.00179290771484375, 0.0093994140625, 0.007293701171875, -0.025146484375, -0.0234375, 0.003021240234375, -0.004730224609375, -0.0089111328125, 0.017578125, -0.0228271484375, 0.008056640625, 0.02001953125, 0.0107421875, 0.000957489013671875, 0.0216064453125, 0.004180908203125, 0.01373...
[ 5174, 6496, 5701, 35166, 645, 136, 3501, 44632, 56, 150631, 90, 1250, 4867, 502, 26824, 105508, 14195, 2356, 69070, 129933, 126684, 5550, 59121, 65450, 1653, 2063, 67, 5303, 3934, 6626, 3525, 70541, 55769, 117396, 40715, 105950, 5608, 4734, ...
[ 0.094970703125, 0.041351318359375, 0.16552734375, 0.1929931640625, 0.184326171875, 0.0972900390625, 0.044677734375, 0.19970703125, 0.1171875, 0.1759033203125, 0.0211181640625, 0.148681640625, 0.2139892578125, 0.044921875, 0.1575927734375, 0.0897216796875, 0.03094482421875, 0.032287...
embed
15507010_c1
15507010
prolog
1
the rule is true. In the head extract the first X element from the L1 list and from L3 list (and try to unify, if it matching go ahead, otherwise it means that the third list it is not the concatenation for the first and the second list) In the body call the function on the first list without X element, the second lis...
the rule is true. In the head extract the first X element from the L1 list and from L3 list (and try to unify, if it matching go ahead, otherwise it means that the third list it is not the concatenation for the first and the second list) In the body call the function on the first list without X element, the second lis...
[ 0.00775146484375, 0.01214599609375, 0.002593994140625, 0.01422119140625, 0.007537841796875, 0.0167236328125, -0.002685546875, 0.021484375, 0.03662109375, -0.0390625, 0.0211181640625, -0.0033416748046875, -0.009033203125, 0.00421142578125, 0.0147705078125, -0.0022430419921875, 0.03051...
[ 79986, 83, 29568, 10336, 125663, 5117, 1193, 12830, 339, 418, 5303, 363, 9790, 51, 40383, 14858, 50960, 959, 158, 4460, 33, 14361, 11782, 32354, 15490, 17932, 33636, 58359, 3647, 7225, 106804, 15824, 759, 9007, 3611, 866, 1528, 4420, 125728...
[ 0.216552734375, 0.052337646484375, 0.177490234375, 0.169677734375, 0.1427001953125, 0.1029052734375, 0.1201171875, 0.155517578125, 0.105712890625, 0.111328125, 0.205078125, 0.1246337890625, 0.0440673828125, 0.1220703125, 0.127685546875, 0.042633056640625, 0.1728515625, 0.0457763671...
embed
23507018_c0
23507018
prolog
0
Title: Prolog converting text to number and doing arithmatic operations Problem title: Prolog converting text to number and doing arithmatic operations Tags: prolog Problem: Prolog converting text to number and doing arithmatic operations I working in prolog for first time. I am trying to convert operations in text. Su...
Prolog converting text to number and doing arithmatic operations Prolog converting text to number and doing arithmatic operations prolog Prolog ONE TWO THREE FOUR FIVE SIX SEVEN EIGHT ZERO NINE num1 num2 num3 XinEng YinEng ERROR prolog_examples crypt.pl:24 Prolog converting text to number and doing arithmatic operation...
[ 0.01318359375, -0.01416015625, 0.0054931640625, 0.0224609375, 0.000202178955078125, 0.004669189453125, -0.01251220703125, 0.006591796875, 0.00860595703125, -0.000873565673828125, 0.00543212890625, 0.0130615234375, -0.006103515625, -0.004150390625, 0.033203125, -0.01318359375, 0.00549...
[ 1250, 4867, 96760, 7986, 47, 14012, 20594, 8962, 47148, 41018, 187, 502, 31261, 43789, 148776, 76234, 563, 96479, 21487, 30223, 95954, 567, 48952, 541, 25585, 13269, 418, 304, 363, 53190, 91384, 151206, 24638, 3355, 302, 6, 136791, 2424, 25...
[ 0.179443359375, 0.2445068359375, 0.1556396484375, 0.20703125, 0.0904541015625, 0.19873046875, 0.0212860107421875, 0.1195068359375, 0.0966796875, 0.19482421875, 0.003326416015625, 0.1470947265625, 0.142578125, 0.14599609375, 0.187255859375, 0.0831298828125, 0.0235748291015625, 0.079...
embed
34483797_c0
34483797
prolog
0
Title: Program doesnt work. Prolog Problem title: Program doesnt work. Prolog Tags: prolog Problem: Program doesnt work. Prolog I have some problem whith this code. The func3 was never invoked : technology(board, saw, table). technology(wood, sanded, board). technology(water, grow, tree). material(table, board, 20). ma...
Program doesnt work. Prolog Program doesnt work. Prolog prolog Program Prolog plan_vypusku potreba_u_zahotovkah1 func3 InF3 func2 InF2 potreba_u_zahotovkah Program doesnt work. Prolog I have some problem whith this code. The func3 was never invoked : Result: Help PLS!
[ -0.0045166015625, 0.0126953125, -0.005859375, 0.01495361328125, -0.00799560546875, 0.0206298828125, -0.02294921875, 0.00982666015625, -0.000583648681640625, -0.03271484375, 0.0062255859375, 0.028076171875, -0.0169677734375, 0.0037384033203125, -0.0028228759765625, 0.00848388671875, 0...
[ 7663, 22027, 18, 4488, 1250, 4867, 502, 1774, 7332, 81965, 34, 596, 497, 15743, 6577, 7477, 363, 360, 919, 304, 2967, 18151, 509, 8306, 23253, 126684, 39527, 436, 19759, 38 ]
[ 0.2169189453125, 0.08251953125, 0.093994140625, 0.167236328125, 0.186279296875, 0.259521484375, 0.14892578125, 0.173583984375, 0.052642822265625, 0.1937255859375, 0.10107421875, 0.056854248046875, 0.0574951171875, 0.126220703125, 0.13818359375, 0.1173095703125, 0.1572265625, 0.0648...
embed
50417278_c0
50417278
prolog
0
Title: Easier way to get "unique" bindings? Problem title: Easier way to get "unique" bindings? Tags: prolog Problem: Easier way to get "unique" bindings? Sorry if my terminology is off. Long term (40 years? ouch...) imperative programmer, dabbled in functional, spending some time this morning tryin...
Easier way to get "unique" bindings? Easier way to get "unique" bindings? prolog Easier V1a V1b V1c V1d V1e V1f V1g V2a V2b V2c V2d V2e V2f V2g V3a V3b V3c V3d V3e V3f V3g H1a H1b H1c H1d H1e H1f H1g H2a H2b H2c H2d H2e H2f H2g H3a H3b H3c H3d H3e H3f H3g Easier way to get "unique" bindings? Sorry i...
[ -0.01214599609375, 0.0016021728515625, 0.01239013671875, -0.021484375, 0.003082275390625, 0.00022029876708984375, -0.006561279296875, 0.004638671875, 0.0262451171875, -0.0299072265625, -0.004119873046875, 0.000904083251953125, 0.0223388671875, 0.007232666015625, 0, 0.0240478515625, -...
[ 1544, 56, 3917, 2046, 34, 45602, 128239, 7, 502, 4867, 310, 275, 71, 177, 18614, 25443, 5773, 13579, 5369, 222530, 77848, 123309, 42141, 85583, 21635, 4935, 52080, 9790, 95665, 47416, 81979, 66207, 14071, 35613, 19, 7693, 12319, 236873, 297...
[ 0.1876220703125, 0.17626953125, 0.0704345703125, 0.06256103515625, 0.1385498046875, 0.261962890625, 0.265869140625, 0.11181640625, 0.05706787109375, 0.1112060546875, 0.032958984375, 0.03326416015625, 0.04254150390625, 0.012939453125, 0.00811767578125, 0.0230712890625, 0.0240325927734...
embed
13643898_c0
13643898
prolog
0
Title: Prolog program to convert(L,X) that converts list L to an integer: x1 + x2*10^1+ … + xn*10^(n-1) Problem title: Prolog program to convert(L,X) that converts list L to an integer: x1 + x2*10^1+ … + xn*10^(n-1) Tags: recursion, prolog, lambda, swi-prolog Problem: Prolog program to convert(L,X) that converts list L...
Prolog program to convert(L,X) that converts list L to an integer: x1 + x2*10^1+ … + xn*10^(n-1) Prolog program to convert(L,X) that converts list L to an integer: x1 + x2*10^1+ … + xn*10^(n-1) recursion prolog lambda swi-prolog Prolog n-1 Res C-1 Res2 HERE Prolog program to convert(L,X) that converts list L to an inte...
[ -0.0162353515625, 0.0029449462890625, 0.0023040771484375, -0.00762939453125, -0.00909423828125, 0.00933837890625, -0.0284423828125, 0.004150390625, 0.010986328125, -0.028076171875, 0.01416015625, -0.020751953125, -0.018310546875, 0.006378173828125, 0.003814697265625, -0.002639770507812...
[ 1250, 4867, 1528, 96760, 866, 1542, 5303, 339, 47, 892, 1505, 1022, 418, 997, 304, 963, 8353, 1328, 19, 1639, 110218, 195625, 502, 6492, 85, 2452, 3454, 5759, 9624, 15649, 77878, 33022, 4, 3082, 16750, 23, 1193, 31577, 86869, 2967, 6002...
[ 0.15234375, 0.2196044921875, 0.163330078125, 0.1771240234375, 0.141845703125, 0.1505126953125, 0.1768798828125, 0.14013671875, 0.052398681640625, 0.1165771484375, 0.13037109375, 0.0753173828125, 0.0506591796875, 0.0712890625, 0.114501953125, 0.1221923828125, 0.06549072265625, 0.133...
embed
12779673_c0
12779673
prolog
0
Title: Prolog - unsure about the rules for books Problem title: Prolog - unsure about the rules for books Tags: prolog Problem: Prolog - unsure about the rules for books I literally dont have a clue what to do about the rules, i hate prolog, all I have done is ,i listed the facts Use a structured data object to represe...
Prolog - unsure about the rules for books Prolog - unsure about the rules for books prolog Prolog Prolog - unsure about the rules for books I literally dont have a clue what to do about the rules, i hate prolog, all I have done is ,i listed the facts Use a structured data object to represent a book. The information tha...
[ 0.01519775390625, 0.00604248046875, 0.01025390625, 0.01434326171875, 0.0002269744873046875, 0.016357421875, -0.01409912109375, -0.009521484375, -0.0034942626953125, -0.0213623046875, -0.00469970703125, -0.042236328125, -0.013427734375, -0.0230712890625, 0.0233154296875, -0.003326416015...
[ 1250, 4867, 51646, 13, 1672, 70, 91736, 100, 42840, 502, 218500, 13319, 765, 29786, 54, 17, 35463, 145870, 15824, 36836, 45646, 2053, 36746, 33636, 12877, 4677, 98363, 10, 48962, 61804, 15937, 103332, 37967, 30773, 5608, 25632, 33692, 23134, ...
[ 0.169677734375, 0.24951171875, 0.1260986328125, 0.0902099609375, 0.0374755859375, 0.026519775390625, 0.205322265625, 0.1109619140625, 0.2232666015625, 0.1441650390625, 0.064453125, 0.08001708984375, 0.088134765625, 0.08740234375, 0.053466796875, 0.01373291015625, 0.154296875, 0.102...
embed
39251381_c0
39251381
prolog
0
Title: Prolog: How to calculate depth of tree with an arbitrary amount of subtrees? Problem title: Prolog: How to calculate depth of tree with an arbitrary amount of subtrees? Tags: prolog Problem: Prolog: How to calculate depth of tree with an arbitrary amount of subtrees? I represent trees with an arbitrary, but fini...
Prolog: How to calculate depth of tree with an arbitrary amount of subtrees? Prolog: How to calculate depth of tree with an arbitrary amount of subtrees? prolog Prolog How SubTrees max_list MaxD Depths Prolog: How to calculate depth of tree with an arbitrary amount of subtrees? I represent trees with an arbitrary, but ...
[ 0.0289306640625, 0.01104736328125, -0.00921630859375, -0.0107421875, 0.00665283203125, 0.005523681640625, -0.0067138671875, -0.0240478515625, 0.0130615234375, -0.048583984375, 0.006561279296875, -0.03515625, -0.00250244140625, 0.01409912109375, 0.0262451171875, 0.00133514404296875, 0...
[ 1250, 4867, 11249, 74481, 67, 168867, 111, 53201, 678, 61799, 41170, 1614, 2921, 90, 502, 8273, 62731, 18389, 6562, 9920, 397, 262, 254, 927, 33636, 1360, 94418, 18811, 4127, 6494, 3642, 70, 2394, 6635, 42658, 83324, 391, 418, 19, 25632, ...
[ 0.08154296875, 0.136474609375, 0.041778564453125, 0.1728515625, 0.043792724609375, 0.263671875, 0.06622314453125, 0.21142578125, 0.0885009765625, 0.1123046875, 0.072265625, 0.1668701171875, 0.1807861328125, 0.055084228515625, 0.02947998046875, 0.1748046875, 0.1954345703125, 0.10498...
embed
70081024_c0
70081024
prolog
0
Title: convert list of adjacencies to recursive format Problem title: convert list of adjacencies to recursive format Tags: binary-tree, prolog Problem: convert list of adjacencies to recursive format Given a binary tree in a format of list of adjacencies such as [1-8,1-2,...] The elements in the list are not in any pa...
convert list of adjacencies to recursive format convert list of adjacencies to recursive format binary-tree prolog adjacencies list make_tree AdjList Root Tree Root-X find_kids find_children Root-Y Acc X-Y convert list of adjacencies to recursive format Given a binary tree in a format of list of adjacencies such as [1-...
[ -0.005859375, 0.014892578125, 0.00052642822265625, 0.01220703125, 0.00653076171875, 0.0081787109375, -0.0250244140625, 0.01092529296875, 0.004852294921875, -0.02001953125, -0.01202392578125, -0.0169677734375, -0.0089111328125, 0.0186767578125, 0.0162353515625, -0.00567626953125, 0.02...
[ 96760, 5303, 111, 123594, 329, 117538, 47, 195625, 5844, 9384, 2394, 6635, 62600, 502, 4867, 3249, 3145, 170, 154663, 150948, 101344, 1542, 7413, 35953, 237052, 1723, 29899, 53201, 176442, 72789, 581, 80854, 959, 17311, 12989, 74855, 27117, 1...
[ 0.1842041015625, 0.218017578125, 0.07977294921875, 0.184326171875, 0.1988525390625, 0.1910400390625, 0.10101318359375, 0.25341796875, 0.211181640625, 0.213134765625, 0.1741943359375, 0.1219482421875, 0.2203369140625, 0.1104736328125, 0.168212890625, 0.072021484375, 0.05743408203125, ...
embed
44218134_c0
44218134
prolog
0
Title: How to access a specific element of fact in a list in prolog Problem title: How to access a specific element of fact in a list in prolog Tags: fact, list, prolog Problem: How to access a specific element of fact in a list in prolog The structure of the facts is %structure student(ID,FirstName,LastName,[courseLis...
How to access a specific element of fact in a list in prolog How to access a specific element of fact in a list in prolog fact list prolog How FirstName LastName CourseCode CourseTtile Credits Level Mohammed Abdul Wahab ITIS411 DATABASE SYSTEM IMPLEMENTATION ITIS412 INFORMATION SECURITY ITIS499 SENIOR PROJECT ITIS469 C...
[ 0.0191650390625, -0.00714111328125, 0.0027618408203125, 0.0247802734375, 0.004608154296875, -0.005462646484375, -0.0120849609375, 0.0179443359375, 0.01141357421875, -0.0252685546875, 0.008544921875, -0.00994873046875, -0.01220703125, -0.00811767578125, -0.014892578125, -0.0065612792968...
[ 11249, 47, 17203, 29458, 12830, 111, 15824, 23, 5303, 502, 4867, 23972, 163612, 21672, 154162, 114211, 44555, 68021, 84136, 80660, 16933, 3316, 24360, 87, 80091, 617, 1662, 866, 1530, 121063, 5046, 167795, 169531, 6562, 45646, 77168, 214, 83,...
[ 0.08660888671875, 0.021392822265625, 0.252197265625, 0.2489013671875, 0.219482421875, 0.1217041015625, 0.238525390625, 0.0672607421875, 0.239013671875, 0.1722412109375, 0.251708984375, 0.03857421875, 0.093994140625, 0.06329345703125, 0.0677490234375, 0.146728515625, 0.1524658203125, ...
embed
14590761_c0
14590761
prolog
0
Title: Force Prolog to choose unique values of variables Problem title: Force Prolog to choose unique values of variables Tags: crossword, prolog-dif, prolog Problem: Force Prolog to choose unique values of variables OK I am new to Prolog, so excuse me if this is something trivial, but I can't seem to find a proper ele...
Force Prolog to choose unique values of variables Force Prolog to choose unique values of variables crossword prolog-dif prolog Force Prolog V1a V1bH1b V1c V1dH2b V1e V1fH3b V1g V2a V2bH1d V2c V2dH2d V2e V2fH3d V2g V3a V3bH1f V3c V3dH2f V3e V3fH3f V3g H1a H1c H1e H1g H2a H2c H2e H2g H3a H3c H3e H3g Force Prolog to choo...
[ 0.002655029296875, -0.0089111328125, -0.0018310546875, -0.00872802734375, -0.0091552734375, -0.001556396484375, -0.0233154296875, 0.0155029296875, 0.0157470703125, -0.0267333984375, 0.005157470703125, 0.00640869140625, 0.03466796875, 0.00018215179443359375, -0.007781982421875, 0.021362...
[ 59591, 1250, 4867, 47, 55076, 36998, 142424, 111, 77336, 41421, 47416, 502, 428, 420, 310, 418, 11, 304, 363, 177, 3525, 133207, 27650, 35166, 81979, 3454, 35613, 1478, 66207, 15824, 29806, 86869, 3687, 12638, 2565, 8035, 124850, 39210, 341...
[ 0.235107421875, 0.189453125, 0.2392578125, 0.032623291015625, 0.16845703125, 0.2509765625, 0.1827392578125, 0.0694580078125, 0.239013671875, 0.0863037109375, 0.115966796875, 0.132568359375, 0.023529052734375, 0.086669921875, 0.1783447265625, 0.1168212890625, 0.06378173828125, 0.131...
embed
16443833_c1
16443833
prolog
1
case to abort the recursion. I think it should be either find([],_,_). because I guess that the last recursive call wouldn't have anything to start with, or find(_,[],_). assuming that the list of the terms defining adjacent nodes should be empty when the program finished processing it. Now the actual call. Probably s...
case to abort the recursion. I think it should be either find([],_,_). because I guess that the last recursive call wouldn't have anything to start with, or find(_,[],_). assuming that the list of the terms defining adjacent nodes should be empty when the program finished processing it. Now the actual call. Probably s...
[ -0.01507568359375, 0.021728515625, 0.004852294921875, 0.024658203125, -0.017822265625, 0.01361083984375, -0.004974365234375, 0.006256103515625, 0.005035400390625, -0.033203125, 0.006683349609375, 0.002349853515625, -0.031494140625, 0.004150390625, -0.0008544921875, -0.003143310546875, ...
[ 7225, 47, 64853, 70, 195625, 1830, 5351, 442, 5608, 186, 7413, 132, 1065, 454, 4568, 5844, 11782, 18, 23937, 4034, 678, 5303, 69407, 13204, 123594, 16797, 110, 988, 201505, 1528, 122799, 9433, 8561, 126597, 42, 145, 4332, 5481, 170, 1052,...
[ 0.11328125, 0.0282440185546875, 0.292724609375, 0.0216827392578125, 0.252685546875, 0.146240234375, 0.041534423828125, 0.001617431640625, 0.04742431640625, 0.03265380859375, 0.201171875, 0.03973388671875, 0.0391845703125, 0.0601806640625, 0.1787109375, 0.1622314453125, 0.227416992187...
embed
71634301_c0
71634301
prolog
0
Title: Prolog Sorting a List with each position having two elements Problem title: Prolog Sorting a List with each position having two elements Tags: prolog Problem: Prolog Sorting a List with each position having two elements I am currently working on Prolog quick sorting. The quicksort rule in Prolog is: quick_sort2(...
Prolog Sorting a List with each position having two elements Prolog Sorting a List with each position having two elements prolog Prolog Sorting List quick_sort2 Sorted q_sort Acc Sorted1 Prolog Sorting a List with each position having two elements I am currently working on Prolog quick sorting. The quicksort rule in Pr...
[ -0.0150146484375, 0.00079345703125, 0.005126953125, -0.00020503997802734375, -0.020263671875, 0.0196533203125, -0.0250244140625, 0.005401611328125, 0.010009765625, 0.020751953125, 0.0296630859375, 0.004425048828125, 0.0032501220703125, -0.01385498046875, -0.004974365234375, -0.00160217...
[ 1250, 4867, 53666, 214, 32036, 678, 12638, 19069, 19441, 6626, 80854, 502, 63773, 62351, 304, 8096, 29899, 297, 418, 82424, 20697, 12096, 79986, 23, 5303, 6713, 1884, 903, 71928, 82449, 33306, 759, 9384, 116, 117768, 617, 121489, 2839, 434,...
[ 0.1710205078125, 0.261962890625, 0.219970703125, 0.048980712890625, 0.22216796875, 0.0286102294921875, 0.0947265625, 0.2171630859375, 0.05548095703125, 0.20556640625, 0.2178955078125, 0.1142578125, 0.2042236328125, 0.279296875, 0.1070556640625, 0.0836181640625, 0.0804443359375, 0.0...
embed
54053834_c1
54053834
prolog
1
AC, NewBM, NewBM, NewB, L), abs((NewAM - NewBM), FinalM), abs((NewAC - NewBC), FinalC), checkBoat(FinalM, FinalC), append([AM,AC,BM,BC,B], L, NewL), state(K,NewAM, NewAC,NewBM,NewBC,NewB,NewL). I think I am fairly close, with the main (only?) issue being with the state function, as I don't understand how you are suppos...
AC, NewBM, NewBM, NewB, L), abs((NewAM - NewBM), FinalM), abs((NewAC - NewBC), FinalC), checkBoat(FinalM, FinalC), append([AM,AC,BM,BC,B], L, NewL), state(K,NewAM, NewAC,NewBM,NewBC,NewB,NewL). I think I am fairly close, with the main (only?) issue being with the state function, as I don't understand how you are suppos...
[ -0.000583648681640625, -0.004913330078125, 0.000827789306640625, 0.00555419921875, -0.012451171875, 0.0240478515625, -0.023681640625, -0.0072021484375, 0.0191650390625, 0.006866455078125, 0.00836181640625, -0.00262451171875, -0.01190185546875, 0.010498046875, -0.0194091796875, -0.01239...
[ 12944, 2356, 74965, 571, 339, 43719, 46568, 8922, 27188, 594, 15012, 24318, 441, 12765, 12647, 257, 6159, 6236, 114689, 866, 11341, 605, 5351, 180663, 20903, 5201, 191, 31089, 678, 32354, 28219, 3642, 134598, 139392, 7722, 25813, 248, 20653, ...
[ 0.1741943359375, 0.1522216796875, 0.201171875, 0.12646484375, 0.1239013671875, 0.1339111328125, 0.1551513671875, 0.1768798828125, 0.1759033203125, 0.11865234375, 0.1861572265625, 0.1341552734375, 0.097412109375, 0.177978515625, 0.149658203125, 0.0946044921875, 0.07861328125, 0.1072...
embed
75950249_c1
75950249
prolog
1
won -> write('won!'), nl ; write('lost!'), nl), joc(N1, calculator, finished) ; joc(N1, calculator, in_progress) ) ; write('Invalid move. Please try again.'), nl, joc(N, player, State) ) ). % Computer's turn joc(N, calculator, State) :- nl, write('There are '), write(N), write(' matches on the table.'), nl, (State == ...
won -> write('won!'), nl ; write('lost!'), nl), joc(N1, calculator, finished) ; joc(N1, calculator, in_progress) ) ; write('Invalid move. Please try again.'), nl, joc(N, player, State) ) ). % Computer's turn joc(N, calculator, State) :- nl, write('There are '), write(N), write(' matches on the table.'), nl, (State == ...
[ -0.0230712890625, -0.0057373046875, 0.0186767578125, 0.015380859375, -0.00433349609375, -0.00811767578125, -0.00799560546875, 0.00286865234375, 0.01373291015625, 0.0018157958984375, -0.005615234375, 0.02685546875, 0.01470947265625, -0.00008249282836914062, -0.006500244140625, -0.007537...
[ 23742, 33079, 33022, 132, 20430, 38, 25, 247, 13169, 2819, 45014, 6, 21438, 839, 418, 154993, 122799, 16, 23, 3454, 19623, 1388, 4153, 7013, 71, 25813, 30607, 9790, 13438, 58585, 4, 22836, 1745, 40139, 15504, 116959, 621, 242, 14858, 90, ...
[ 0.231201171875, 0.084716796875, 0.2152099609375, 0.0200347900390625, 0.1842041015625, 0.096435546875, 0.005462646484375, 0.0057373046875, 0.155517578125, 0.010589599609375, 0.1451416015625, 0.0057373046875, 0.20458984375, 0.1214599609375, 0.083251953125, 0.2132568359375, 0.1612548828...
embed
39672866_c0
39672866
prolog
0
Title: ERROR: Out of global stack with append/3 Problem title: ERROR: Out of global stack with append/3 Tags: prolog Problem: ERROR: Out of global stack with append/3 I have a problem. I want to implement a replace(E1, L1, E2, L2) predicate. This holds when L1 and L2 are the same lists,except that in one place where L1...
ERROR: Out of global stack with append/3 ERROR: Out of global stack with append/3 prolog ERROR Out L_Tail ERROR: Out of global stack with append/3 I have a problem. I want to implement a replace(E1, L1, E2, L2) predicate. This holds when L1 and L2 are the same lists,except that in one place where L1 has the value E1, L...
[ 0.0035247802734375, 0.02197265625, 0.0030670166015625, 0.0017242431640625, -0.007598876953125, 0.006591796875, -0.03076171875, 0.0203857421875, 0.02197265625, -0.0185546875, 0.027587890625, -0.00799560546875, -0.0045166015625, -0.02001953125, 0.034423828125, 0.0150146484375, 0.025024...
[ 151206, 24638, 13538, 111, 7964, 177261, 678, 114689, 71, 18113, 12, 502, 4867, 339, 454, 9874, 379, 765, 2967, 3444, 29479, 91995, 647, 418, 241, 304, 10461, 1653, 2063, 67, 16401, 7, 136, 621, 70, 5701, 5303, 3355, 19462, 450, 23, 1...
[ 0.174560546875, 0.1365966796875, 0.2158203125, 0.1754150390625, 0.2213134765625, 0.2509765625, 0.07476806640625, 0.1917724609375, 0.128662109375, 0.277587890625, 0.00286865234375, 0.159423828125, 0.2135009765625, 0.1102294921875, 0.008819580078125, 0.16748046875, 0.1241455078125, 0...
embed
50935066_c0
50935066
prolog
0
Title: Paths repetitions more than a specific number Problem title: Paths repetitions more than a specific number Tags: prolog Problem: Paths repetitions more than a specific number There was 8 rooms more specific a room, b room, c room, d room, e room, f room, g room, h room. The question was, it shows me a draw and w...
Paths repetitions more than a specific number Paths repetitions more than a specific number prolog Paths next_to in_range Start End Visited PathRest Second Paths repetitions more than a specific number There was 8 rooms more specific a room, b room, c room, d room, e room, f room, g room, h room. The question was, it s...
[ -0.00121307373046875, 0.005950927734375, 0.00189971923828125, 0.017333984375, -0.0032958984375, 0.0032501220703125, -0.0086669921875, -0.0035400390625, 0.0166015625, -0.060546875, -0.0133056640625, -0.004974365234375, -0.004852294921875, 0.00823974609375, 0.00872802734375, -0.003356933...
[ 108421, 7, 57346, 5256, 1286, 3501, 29458, 14012, 502, 4867, 11737, 188, 23, 94250, 13794, 18878, 98684, 1052, 525, 77648, 509, 382, 112875, 17155, 876, 501, 104, 28, 1238, 706, 1096, 9655, 45831, 163, 79442, 113292, 11907, 1911, 111, 70,...
[ 0.265380859375, 0.0865478515625, 0.299560546875, 0.1053466796875, 0.1307373046875, 0.0811767578125, 0.1883544921875, 0.147705078125, 0.1595458984375, 0.18603515625, 0.0908203125, 0.028900146484375, 0.0172119140625, 0.137451171875, 0.0526123046875, 0.0615234375, 0.1490478515625, 0.0...
embed
55068525_c1
55068525
prolog
1
(Y, X). kind_ok(X) :- kind(X), class(Y, X). life_ok(X) :- life(X), live(Y, Z), Z =< X. which_pet(X) :- pet_size_ok(X), sleep_type_ok(X), pet_location_ok(X), kind_ok(X), life_ok(X). recommend :- write('Do you want a small, medium, or large sized pet? '), read(Size), nl, assert(pet_size(Size)), write('Do you want a pet t...
(Y, X). kind_ok(X) :- kind(X), class(Y, X). life_ok(X) :- life(X), live(Y, Z), Z =< X. which_pet(X) :- pet_size_ok(X), sleep_type_ok(X), pet_location_ok(X), kind_ok(X), life_ok(X). recommend :- write('Do you want a small, medium, or large sized pet? '), read(Size), nl, assert(pet_size(Size)), write('Do you want a pet t...
[ -0.00836181640625, 0.03173828125, 0.000789642333984375, -0.000766754150390625, -0.006378173828125, 0.005157470703125, -0.004486083984375, 0.0002803802490234375, 0.0091552734375, -0.006072998046875, -0.003509521484375, 0.0027618408203125, -0.00677490234375, -0.021240234375, 0.012756347656...
[ 1723, 4, 1193, 194, 8562, 454, 685, 132, 1542, 15772, 18507, 6897, 6867, 567, 16093, 3129, 5408, 8093, 62539, 60268, 50986, 87632, 67330, 33022, 3444, 19336, 57646, 707, 21334, 13267, 12301, 127167, 13169, 33657, 20271, 5155, 17431, 133, 17...
[ 0.132080078125, 0.005859375, 0.12548828125, 0.059051513671875, 0.2281494140625, 0.06646728515625, 0.251708984375, 0.0248870849609375, 0.171142578125, 0.101318359375, 0.17529296875, 0.1441650390625, 0.1697998046875, 0.0682373046875, 0.07244873046875, 0.1058349609375, 0.2445068359375, ...
embed
20820266_c0
20820266
prolog
0
Title: Optimizing string comparison in a Prolog implementation embedded in Java Problem title: Optimizing string comparison in a Prolog implementation embedded in Java Tags: string, prolog, performance, java Problem: Optimizing string comparison in a Prolog implementation embedded in Java I am implementing a (currently...
Optimizing string comparison in a Prolog implementation embedded in Java Optimizing string comparison in a Prolog implementation embedded in Java string prolog performance java Optimizing Prolog Java String.intern String.equals Optimizing string comparison in a Prolog implementation embedded in Java I am implementing a...
[ 0.009765625, 0.004302978515625, 0.0294189453125, 0.0458984375, -0.01397705078125, -0.0159912109375, 0.00994873046875, 0.00341796875, -0.0123291015625, -0.013427734375, 0.03125, 0.017822265625, 0.01177978515625, 0.007781982421875, 0.0023193359375, 0.0024566650390625, 0.0216064453125, ...
[ 43938, 84382, 79315, 225490, 1250, 4867, 208124, 55720, 41925, 23, 69819, 502, 23718, 79, 330, 23351, 214, 10433, 19, 13, 71723, 29479, 163812, 19336, 87907, 31577, 38352, 1257, 51, 41274, 69407, 50509, 6528, 38478, 55300, 756, 33636, 34627, ...
[ 0.1817626953125, 0.033172607421875, 0.2349853515625, 0.270263671875, 0.1666259765625, 0.2337646484375, 0.127197265625, 0.14892578125, 0.2451171875, 0.0015869140625, 0.0074462890625, 0.1328125, 0.1627197265625, 0.1102294921875, 0.08172607421875, 0.2139892578125, 0.1302490234375, 0.1...
embed
50657460_c1
50657460
prolog
1
- 1. d(X, Ya, X, Yb, _, H) :- Yb is Ya + 1, Ya \= H - 1. u(X, 0, X, 0, _, _). u(X, Ya, X, Yb, _, _) :- Yb is Ya - 1, Ya \= 0. r(X, Y, X, Y, W, _) :- X is W - 1. r(Xa, Y, Xb, Y, W, _) :- Xb is Xa + 1, Xa \= W - 1. l(0, Y, 0, Y, _, _). l(Xa, Y, Xb, Y, _, _) :- Xb is Xa - 1, Xa \= 0. /* check number of squares in an isla...
- 1. d(X, Ya, X, Yb, _, H) :- Yb is Ya + 1, Ya \= H - 1. u(X, 0, X, 0, _, _). u(X, Ya, X, Yb, _, _) :- Yb is Ya - 1, Ya \= 0. r(X, Y, X, Y, W, _) :- X is W - 1. r(Xa, Y, Xb, Y, W, _) :- Xb is Xa + 1, Xa \= W - 1. l(0, Y, 0, Y, _, _). l(Xa, Y, Xb, Y, _, _) :- Xb is Xa - 1, Xa \= 0. /* check number of squares in an isla...
[ -0.022705078125, -0.00872802734375, -0.004913330078125, 0.03369140625, -0.004669189453125, 0.006500244140625, -0.0159912109375, -0.01373291015625, 0.0140380859375, -0.0164794921875, 0.003143310546875, 0.005126953125, -0.00024318695068359375, 0.00274658203125, -0.03173828125, -0.0030822...
[ 20, 615, 104, 132, 1542, 4, 2369, 1193, 990, 275, 101, 572, 15772, 83, 997, 106, 41872, 1369, 75, 757, 194, 6, 1690, 601, 11, 8606, 96, 2389, 1639, 12765, 14012, 108047, 23, 142, 90695, 661, 64, 71013, 164, 1760, 31945, 37067, 145, ...
[ 0.0804443359375, 0.1619873046875, 0.225830078125, 0.1224365234375, 0.2132568359375, 0.059967041015625, 0.254150390625, 0.2099609375, 0.2000732421875, 0.2236328125, 0.1083984375, 0.184326171875, 0.1280517578125, 0.1563720703125, 0.1834716796875, 0.10760498046875, 0.010894775390625, ...
embed
59292148_c0
59292148
prolog
0
Title: Relation that generates next prime Problem title: Relation that generates next prime Tags: primes, prolog Problem: Relation that generates next prime I am trying to create a Prolog rule that relates a number to its next prime. I have it so that it can generate the next prime after a number, but it fails to find ...
Relation that generates next prime Relation that generates next prime primes prolog Relation next_prime Arguments _1410 _1466 divisible_over Relation that generates next prime I am trying to create a Prolog rule that relates a number to its next prime. I have it so that it can generate the next prime after a number, bu...
[ -0.005462646484375, 0.033935546875, 0.018310546875, 0.030517578125, 0.033447265625, 0.0035858154296875, 0.0013427734375, -0.029296875, 0.01123046875, -0.04248046875, -0.0120849609375, 0.0296630859375, -0.002105712890625, -0.003570556640625, 0.015380859375, 0.00008630752563476562, -0....
[ 116822, 450, 139392, 7, 11737, 20809, 502, 4867, 114654, 112140, 2592, 963, 14604, 45, 99017, 5465, 31577, 28282, 1250, 79986, 33444, 14012, 47, 7103, 1284, 35782, 7413, 101935, 105237, 28960, 237, 84751, 1126, 1193, 76199, 534, 5955, 112713,...
[ 0.197265625, 0.021148681640625, 0.187255859375, 0.033477783203125, 0.19189453125, 0.2152099609375, 0.0968017578125, 0.1895751953125, 0.2154541015625, 0.1846923828125, 0.024078369140625, 0.1312255859375, 0.15771484375, 0.032440185546875, 0.1998291015625, 0.1514892578125, 0.00381469726...
embed
42476154_c0
42476154
prolog
0
Title: Is Prolog suitable for this kind of project? Problem title: Is Prolog suitable for this kind of project? Tags: logic, prolog Problem: Is Prolog suitable for this kind of project? I am working on a project where I have to build an engine that is able to generate a bunch of premises and, given a true fact, tell wh...
Is Prolog suitable for this kind of project? Is Prolog suitable for this kind of project? logic prolog Prolog John Mary Eric Football Either Luiza Jonh Is Prolog suitable for this kind of project? I am working on a project where I have to build an engine that is able to generate a bunch of premises and, given a true fa...
[ 0.005950927734375, 0.0157470703125, 0.017578125, 0.00543212890625, -0.0181884765625, 0.0162353515625, -0.01153564453125, -0.01165771484375, 0.005828857421875, -0.03955078125, 0.000701904296875, 0.002166748046875, -0.012939453125, 0.0031890869140625, 0.004180908203125, -0.01446533203125...
[ 2071, 1250, 4867, 202319, 100, 903, 8562, 13452, 62775, 502, 4939, 23213, 51838, 98809, 9319, 105147, 11, 21240, 127, 20697, 45367, 87907, 19048, 139392, 147306, 64881, 34475, 29568, 15824, 14192, 2367, 37076, 831, 8, 106357, 89536, 21086, 73...
[ 0.07763671875, 0.22802734375, 0.303955078125, 0.2386474609375, 0.1376953125, 0.0797119140625, 0.1121826171875, 0.1715087890625, 0.192626953125, 0.19140625, 0.1566162109375, 0.187744140625, 0.206787109375, 0.2462158203125, 0.06683349609375, 0.166015625, 0.1435546875, 0.1102294921875...
embed