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
45513505_c0
45513505
prolog
0
Title: Using Cut and Not in Prolog Programming Problem title: Using Cut and Not in Prolog Programming Tags: prolog, prolog-cut Problem: Using Cut and Not in Prolog Programming I am new to Prolog Programming. So I want to know following. I know the use of Cut (!) in Prolog. Can somebody explain me, the use of Not in Pro...
Using Cut and Not in Prolog Programming Using Cut and Not in Prolog Programming prolog prolog-cut Using Cut Not Prolog Programming N-1 Choose Res Seen Using Cut and Not in Prolog Programming I am new to Prolog Programming. So I want to know following. I know the use of Cut (!) in Prolog. Can somebody explain me, the us...
[ 0.007476806640625, 0.002471923828125, 0.027587890625, 0.0113525390625, -0.005950927734375, -0.001495361328125, -0.0152587890625, 0.0184326171875, 0.0101318359375, -0.0030517578125, -0.00433349609375, -0.006866455078125, -0.00119781494140625, 0.0030364990234375, 0.023681640625, 0.001579...
[ 345, 6953, 3003, 18, 136, 11205, 23, 1250, 4867, 27958, 214, 502, 19774, 541, 5759, 211525, 9624, 503, 33, 3525, 3714, 25632, 4527, 111, 72896, 73342, 3220, 3642, 456, 434, 18781, 1810, 17368, 71864, 4420, 125728, 4734, 1653, 2063, 223 ]
[ 0.1104736328125, 0.042327880859375, 0.2242431640625, 0.19140625, 0.126220703125, 0.2939453125, 0.091552734375, 0.16455078125, 0.246826171875, 0.1455078125, 0.0126953125, 0.1131591796875, 0.220703125, 0.04888916015625, 0.09033203125, 0.098388671875, 0.075927734375, 0.1341552734375, ...
embed
46799011_c1
46799011
prolog
1
que aún no haya terminado? Respuesta (si|no): '), read(RtaTermino), RtaTermino \= si, RtaTermino \= no, writeln('Respuesta inválida, conteste nuevamente.'), preguntar_serie_terminada(RtaTermino). preguntar_serie_nueva(RtaSerieNueva):- write('¿Buscás una serie nueva? Respuesta (si|no): '), read(RtaSerieNueva), RtaSerie...
que aún no haya terminado? Respuesta (si|no): '), read(RtaTermino), RtaTermino \= si, RtaTermino \= no, writeln('Respuesta inválida, conteste nuevamente.'), preguntar_serie_terminada(RtaTermino). preguntar_serie_nueva(RtaSerieNueva):- write('¿Buscás una serie nueva? Respuesta (si|no): '), read(RtaSerieNueva), RtaSerie...
[ -0.006744384765625, 0.017333984375, 0.018310546875, -0.004180908203125, -0.00927734375, -0.0072021484375, 0.011474609375, 0.0155029296875, -0.0022735595703125, 0.02490234375, -0.005859375, 0.01806640625, -0.0004673004150390625, 0.01171875, -0.005859375, 0.0172119140625, 0.02124023437...
[ 41, 37419, 110, 13860, 29527, 246, 9624, 1766, 7752, 172, 58745, 157, 12301, 1052, 102, 35484, 68537, 627, 78, 33022, 4332, 7, 23, 3902, 61973, 62757, 13, 22334, 138574, 32832, 30524, 1090, 539, 5874, 138724, 18444, 7235, 10382, 6432, 440...
[ 0.08935546875, 0.1800537109375, 0.170166015625, 0.1990966796875, 0.227783203125, 0.1463623046875, 0.09063720703125, 0.15771484375, 0.08367919921875, 0.1478271484375, 0.087646484375, 0.1492919921875, 0.10406494140625, 0.06280517578125, 0.1195068359375, 0.153076171875, 0.1497802734375,...
embed
27316966_c1
27316966
prolog
1
barrel sublist all_distinct(Value), sum(Value, #=, SSet), % sum prod(Value, VSet), % product Set #= SSet #\/ Set #= VSet, % chooses one Set #=< MaxValue, insertinto(Set, List, NewList), % inserts into the barrel list Since SICStus doesn't have a product calculation rule, I created this one: prod([H|T], R) :- prod(T, H...
barrel sublist all_distinct(Value), sum(Value, #=, SSet), % sum prod(Value, VSet), % product Set #= SSet #\/ Set #= VSet, % chooses one Set #=< MaxValue, insertinto(Set, List, NewList), % inserts into the barrel list Since SICStus doesn't have a product calculation rule, I created this one: prod([H|T], R) :- prod(T, H...
[ -0.0067138671875, 0.00092315673828125, 0.01458740234375, 0.01336669921875, -0.017822265625, -0.0030364990234375, -0.0341796875, 0.0147705078125, 0.0250244140625, -0.004730224609375, 0.013916015625, 0.049560546875, 0.01611328125, -0.0233154296875, -0.0185546875, 0.001556396484375, 0.0...
[ 35781, 141, 1614, 6562, 756, 46295, 38893, 18, 856, 50770, 10554, 126, 502, 71, 44160, 12996, 19943, 55076, 1632, 16093, 9920, 183540, 21579, 294, 32036, 2356, 154663, 5303, 159, 102198, 2143, 74481, 79986, 75935, 841, 58745, 618, 627, 572,...
[ 0.158203125, 0.1300048828125, 0.2060546875, 0.2376708984375, 0.0972900390625, 0.024932861328125, 0.095703125, 0.019195556640625, 0.087646484375, 0.1273193359375, 0.2005615234375, 0.15869140625, 0.1461181640625, 0.14013671875, 0.0254669189453125, 0.2003173828125, 0.183837890625, 0.0...
embed
13023656_c1
13023656
prolog
1
_end_of_stream(In), read_pending_input(In, Codes, []), atom_codes(AtomList, Codes), %bytes into a list of atoms toFacts(Init, AtomList), %??? Init = AtomList to list of facts test(Init, Plan), %pass Init as the initial state format(Out, '~s', Plan), %Get the plan back and write to the output flush_output(Out), loopback...
_end_of_stream(In), read_pending_input(In, Codes, []), atom_codes(AtomList, Codes), %bytes into a list of atoms toFacts(Init, AtomList), %??? Init = AtomList to list of facts test(Init, Plan), %pass Init as the initial state format(Out, '~s', Plan), %Get the plan back and write to the output flush_output(Out), loopback...
[ 0.01104736328125, 0.00872802734375, 0.0024871826171875, 0.004608154296875, -0.01025390625, 0.03271484375, 0.0245361328125, -0.00885009765625, -0.00946044921875, -0.0233154296875, 0.0220947265625, 0.00994873046875, -0.01446533203125, 0.00579833984375, 0.00066375732421875, 0.006927490234...
[ 3611, 4390, 86429, 4153, 12301, 96819, 73, 7077, 28864, 34627, 40899, 12078, 154663, 61028, 3934, 5303, 47, 135518, 933, 217, 69728, 7273, 360, 15824, 3034, 5586, 13409, 61475, 11341, 9384, 79858, 1774, 4420, 33022, 140992, 14838, 1495, 6056,...
[ 0.154052734375, 0.1552734375, 0.2135009765625, 0.18994140625, 0.145263671875, 0.23095703125, 0.0919189453125, 0.1046142578125, 0.1717529296875, 0.20263671875, 0.18994140625, 0.143798828125, 0.1640625, 0.15576171875, 0.08892822265625, 0.1361083984375, 0.0615234375, 0.134765625, 0....
embed
68611987_c0
68611987
prolog
0
Title: Logtalk test returning failed when it passes under SWI interpreter Problem title: Logtalk test returning failed when it passes under SWI interpreter Tags: logtalk, prolog, swi-prolog Problem: Logtalk test returning failed when it passes under SWI interpreter I am having an issue in which a specific test returns ...
Logtalk test returning failed when it passes under SWI interpreter Logtalk test returning failed when it passes under SWI interpreter logtalk prolog swi-prolog Logtalk SWI Logtalk test returning failed when it passes under SWI interpreter I am having an issue in which a specific test returns false when I put it in a te...
[ 0.018798828125, 0.028564453125, -0.00084686279296875, -0.00604248046875, -0.0179443359375, -0.020263671875, 0.0146484375, 0.00689697265625, 0.002655029296875, 0.00408935546875, -0.0027313232421875, 0.00994873046875, -0.031005859375, 0.024658203125, 0.00860595703125, -0.01092529296875, ...
[ 13146, 139109, 3034, 30646, 165523, 10922, 1379, 159, 38969, 29481, 56, 12684, 502, 4867, 2452, 3454, 31089, 29458, 98320, 14947, 27875, 29568, 104851, 123166, 11675, 8305, 5701, 4420, 3611, 9969, 34759, 10752, 109921, 50339, 33342, 9836, 14364...
[ 0.123291015625, 0.2548828125, 0.1883544921875, 0.173583984375, 0.18212890625, 0.1015625, 0.098876953125, 0.04913330078125, 0.21484375, 0.1890869140625, 0.069580078125, 0.09356689453125, 0.07733154296875, 0.145263671875, 0.1490478515625, 0.07000732421875, 0.034515380859375, 0.011169...
embed
30642408_c0
30642408
prolog
0
Title: prolog is tree balanced Problem title: prolog is tree balanced Tags: prolog, tree Problem: prolog is tree balanced I need to implement a predicate isBalanced/1 such that isBalanced(T) is true if T is a tree that is balanced. A binary tree is in this case, defined by the structure node(left,right), where left and...
prolog is tree balanced prolog is tree balanced prolog tree Size Left_Size Right_Size H1-H2 prolog is tree balanced I need to implement a predicate isBalanced/1 such that isBalanced(T) is true if T is a tree that is balanced. A binary tree is in this case, defined by the structure node(left,right), where left and right...
[ 0.0263671875, -0.006988525390625, -0.0031280517578125, -0.0162353515625, -0.0008392333984375, 0.019287109375, -0.009765625, 0.0032958984375, -0.0029296875, -0.024169921875, 0.00274658203125, -0.0181884765625, 0.00110626220703125, -0.01043701171875, 0.0242919921875, 0.00897216796875, ...
[ 502, 4867, 83, 53201, 40197, 71, 80378, 2480, 127167, 90911, 572, 20268, 841, 304, 3871, 29479, 1653, 2063, 67, 63641, 7154, 11583, 6044, 618, 29568, 2174, 384, 2394, 6635, 61924, 45646, 110, 112, 133, 54969, 25737, 7108, 831, 1250, 2053,...
[ 0.17529296875, 0.2578125, 0.1068115234375, 0.25927734375, 0.28515625, 0.1346435546875, 0.11181640625, 0.0904541015625, 0.068115234375, 0.0750732421875, 0.028778076171875, 0.04559326171875, 0.033721923828125, 0.0899658203125, 0.039947509765625, 0.13818359375, 0.1287841796875, 0.1561...
embed
47283438_c0
47283438
prolog
0
Title: Prolog &quot;append_dl/3&quot; wrapper Problem title: Prolog &quot;append_dl/3&quot; wrapper Tags: prolog, difference-lists Problem: Prolog "append_dl/3" wrapper I am just learning Prolog and the concept of difference-lists in Prolog, so bear with me please. I have following code: :- op(400, xfx, \). append(Xs, ...
Prolog &quot;append_dl/3&quot; wrapper Prolog &quot;append_dl/3&quot; wrapper prolog difference-lists Prolog append_dl Prolog "append_dl/3" wrapper I am just learning Prolog and the concept of difference-lists in Prolog, so bear with me please. I have following code: Now if i append Lists [1,2,3] and [a,b,c] in the SWI...
[ 0.0169677734375, -0.012451171875, 0.01361083984375, -0.007110595703125, 0.00213623046875, 0.007080078125, -0.004974365234375, 0.01220703125, 0.0299072265625, -0.035400390625, 0.0020751953125, -0.00823974609375, 0.0018768310546875, 0.01611328125, 0.0284423828125, -0.0084228515625, 0.0...
[ 1250, 4867, 9007, 3611, 20469, 18113, 137565, 1264, 502, 60212, 6562, 114689, 71, 52080, 23755, 9, 81148, 22936, 25632, 18151, 2174, 32036, 155761, 238, 159, 38969, 158288, 11180, 19388, 5303, 162, 11782, 454, 7307, 1884, 221, 43240, 444, 1...
[ 0.166748046875, 0.2496337890625, 0.06390380859375, 0.1185302734375, 0.19189453125, 0.1865234375, 0.1773681640625, 0.1417236328125, 0.108642578125, 0.269775390625, 0.230712890625, 0.156494140625, 0.106689453125, 0.0545654296875, 0.0523681640625, 0.0325927734375, 0.033843994140625, 0...
embed
60036683_c1
60036683
prolog
1
] [9] true. But when I use the array name, it fails. ?- print_array(array1). false. And when I used trace to see what was going on, it only displayed me something like this. ?- trace(print_array(array1)). % print_array/1: [call,redo,exit,fail] true. Why does calling the predicate with an array name fail while it works ...
] [9] true. But when I use the array name, it fails. ?- print_array(array1). false. And when I used trace to see what was going on, it only displayed me something like this. ?- trace(print_array(array1)). % print_array/1: [call,redo,exit,fail] true. Why does calling the predicate with an array name fail while it works ...
[ -0.00133514404296875, -0.0017547607421875, 0.022216796875, 0.02685546875, -0.0106201171875, 0.00244140625, -0.0228271484375, 0.0020751953125, 0.00457763671875, 0.0189208984375, 0.01068115234375, 0.0033111572265625, -0.016357421875, -0.00946044921875, 0.0030670166015625, -0.006622314453...
[ 55737, 29568, 4966, 4527, 10298, 53, 9351, 442, 35782, 7, 28412, 19305, 17727, 98320, 11814, 144851, 1957, 7730, 98, 44116, 35662, 11583, 85763, 56693, 23399, 120540, 44084, 159029, 1653, 2063, 67, 678, 43240, 7941, 40899, 4488, 122776, 27781...
[ 0.05755615234375, 0.1512451171875, 0.038330078125, 0.08612060546875, 0.20263671875, 0.1317138671875, 0.151611328125, 0.003875732421875, 0.1854248046875, 0.0325927734375, 0.1868896484375, 0.16455078125, 0.0908203125, 0.1468505859375, 0.0167388916015625, 0.18603515625, 0.03717041015625...
embed
39956528_c0
39956528
prolog
0
Title: Append list of lists elements in Prolog Problem title: Append list of lists elements in Prolog Tags: algorithm, prolog Problem: Append list of lists elements in Prolog I'm learning Prolog for about a week, so I'm a newbie. I'm trying to do a function, that appends, the elements of a list of lists. So the input w...
Append list of lists elements in Prolog Append list of lists elements in Prolog algorithm prolog Append Prolog Append list of lists elements in Prolog I'm learning Prolog for about a week, so I'm a newbie. I'm trying to do a function, that appends, the elements of a list of lists. So the input would be: [ [[a,b,c],[g,h...
[ 0.00933837890625, 0.0263671875, 0.01141357421875, -0.000038623809814453125, -0.00433349609375, 0.00982666015625, -0.01239013671875, 0.007232666015625, 0.003875732421875, -0.0169677734375, 0.00445556640625, -0.00579833984375, 0.0023651123046875, 0.0106201171875, 0.0108642578125, -0.0056...
[ 5659, 3611, 5303, 111, 7, 80854, 23, 1250, 4867, 234873, 502, 52080, 5895, 9014, 31577, 32354, 114689, 6468, 107730, 2806, 11, 275, 238, 177, 127, 14, 170, 92, 141, 39, 31, 34, 334, 434, 425, 140992, 360, 7077, 420, 13538, 5526, 4488,...
[ 0.1705322265625, 0.121337890625, 0.236572265625, 0.089599609375, 0.088134765625, 0.21337890625, 0.07122802734375, 0.195068359375, 0.2413330078125, 0.205078125, 0.1365966796875, 0.0552978515625, 0.018829345703125, 0.06365966796875, 0.0625, 0.161865234375, 0.1837158203125, 0.07800292...
embed
57932682_c0
57932682
prolog
0
Title: how to call this Prolog code inside java netbeans Problem title: how to call this Prolog code inside java netbeans Tags: netbeans, prolog Problem: how to call this Prolog code inside java netbeans /* medical diagnostic system start with ?- check. */ check:- checkfor(Disease), write('I believe you have '), write(...
how to call this Prolog code inside java netbeans how to call this Prolog code inside java netbeans netbeans prolog Prolog Disease Question Symptom Reply how to call this Prolog code inside java netbeans
[ 0.023193359375, 0.006622314453125, 0.01544189453125, 0.0439453125, -0.00567626953125, 0.031005859375, 0.01019287109375, 0.01470947265625, -0.002288818359375, -0.060302734375, 0.0205078125, -0.0019683837890625, -0.0250244140625, -0.019287109375, 0.01361083984375, -0.01190185546875, 0....
[ 3642, 47, 11782, 903, 1250, 4867, 18151, 46132, 79, 330, 2043, 372, 10133, 502, 229200, 68185, 149450, 122813 ]
[ 0.0545654296875, 0.03662109375, 0.155517578125, 0.11126708984375, 0.1783447265625, 0.26416015625, 0.20458984375, 0.154052734375, 0.1209716796875, 0.1925048828125, 0.08258056640625, 0.177490234375, 0.0765380859375, 0.117431640625, 0.1710205078125, 0.07806396484375, 0.16748046875, 0....
embed
28801177_c0
28801177
prolog
0
Title: Quick Prolog Issue Problem title: Quick Prolog Issue Tags: predicate, prolog Problem: Quick Prolog Issue If we have an unconditional statement like: student(name, [class1, class2, class3, class4]). What is the best way to retrieve all students in class1 ? The method I am currently doing is.. class1_students(X):-...
Quick Prolog Issue Quick Prolog Issue predicate prolog Quick Prolog Issue class1 class2 class3 class4 class1_students Quick Prolog Issue If we have an unconditional statement like: What is the best way to retrieve all students in class1 ? The method I am currently doing is.. But this only works for the above unconditio...
[ -0.00048065185546875, 0.005218505859375, 0.01171875, 0.007415771484375, -0.023193359375, 0.0067138671875, 0.0098876953125, -0.01300048828125, 0.0142822265625, -0.0439453125, -0.007476806640625, 0.01165771484375, -0.010498046875, -0.009521484375, 0.005645751953125, 0.00543212890625, -...
[ 89038, 1250, 4867, 223317, 1653, 2063, 67, 502, 18507, 418, 304, 363, 617, 96610, 765, 51, 126940, 289, 63805, 2965, 3917, 47, 456, 3996, 3134, 756, 25921, 23, 55300, 82424, 20594, 83, 903, 4734, 43240, 100, 36917, 1221, 959, 4488, 3871...
[ 0.183349609375, 0.154541015625, 0.2430419921875, 0.2109375, 0.1485595703125, 0.21630859375, 0.08416748046875, 0.08203125, 0.15283203125, 0.0570068359375, 0.055877685546875, 0.0384521484375, 0.09033203125, 0.1739501953125, 0.0009765625, 0.087158203125, 0.2281494140625, 0.12939453125...
embed
22600974_c0
22600974
prolog
0
Title: Prolog - Creating predicates Problem title: Prolog - Creating predicates Tags: predicate, prolog Problem: Prolog - Creating predicates The predicates I'm trying to make in Prolog (through the command line by way of assertions and such) are fairly simple in theory. The first is one called second(X, List) where it...
Prolog - Creating predicates Prolog - Creating predicates predicate prolog Prolog Creating Prolog - Creating predicates The predicates I'm trying to make in Prolog (through the command line by way of assertions and such) are fairly simple in theory. The first is one called second(X, List) where it checks to see if X is...
[ 0.007720947265625, -0.007232666015625, -0.0048828125, 0.0213623046875, -0.002288818359375, 0.0517578125, 0.006011962890625, 0.0018768310546875, 0.00958251953125, -0.00775146484375, 0.01507568359375, -0.012451171875, -0.0201416015625, 0.00109100341796875, -0.00179290771484375, 0.0224609...
[ 1250, 4867, 56781, 1653, 2063, 1636, 1916, 67, 502, 31577, 3249, 75101, 13315, 10, 16865, 8781, 154453, 5117, 1632, 35839, 17932, 1542, 32036, 12765, 1957, 2174, 1193, 83, 12830, 58735, 5303, 3789, 186351, 6562, 118620, 25737, 10750, 28412, ...
[ 0.1636962890625, 0.2275390625, 0.1533203125, 0.2215576171875, 0.25390625, 0.1510009765625, 0.049591064453125, 0.06390380859375, 0.1192626953125, 0.06787109375, 0.1082763671875, 0.1058349609375, 0.0313720703125, 0.006317138671875, 0.12548828125, 0.07177734375, 0.07196044921875, 0.03...
embed
16895960_c2
16895960
prolog
2
log.Theory, Tuprolog, cobrakai$more, operator.pl, cobrakai$swipl, swi_hooks, pce_swi_hooks, Users, Documents, com.plancomps.prolog.helloworld, Welcome, SWI-Prolog, Multi-threaded, Version, Copyright, University, Amsterdam, ABSOLUTELY, WARRANTY, Please, www.swi-prolog.org, Topic, Word, ERROR, Undefined, DWIM, Testinfixo...
log.Theory, Tuprolog, cobrakai$more, operator.pl, cobrakai$swipl, swi_hooks, pce_swi_hooks, Users, Documents, com.plancomps.prolog.helloworld, Welcome, SWI-Prolog, Multi-threaded, Version, Copyright, University, Amsterdam, ABSOLUTELY, WARRANTY, Please, www.swi-prolog.org, Topic, Word, ERROR, Undefined, DWIM, Testinfixo...
[ 0.0283203125, 0.004486083984375, 0.005584716796875, 0.028564453125, -0.01129150390625, 0.00170135498046875, 0.00109100341796875, 0.006134033203125, 0.01263427734375, -0.05712890625, 0.000732421875, 0.0081787109375, -0.000823974609375, -0.003936767578125, 0.0169677734375, 0.011474609375...
[ 12684, 5, 3957, 30675, 1371, 3454, 4867, 93950, 9273, 4369, 17678, 39933, 2424, 2452, 497, 43042, 329, 53400, 43101, 375, 5868, 58875, 7, 127, 13817, 32554, 91334, 159, 38969, 9, 10752, 19335, 39116, 40647, 4189, 12535, 21391, 41138, 93478,...
[ 0.218017578125, 0.0243682861328125, 0.1524658203125, 0.14453125, 0.146240234375, 0.19873046875, 0.25048828125, 0.214599609375, 0.2352294921875, 0.0689697265625, 0.1688232421875, 0.2470703125, 0.1441650390625, 0.20458984375, 0.10205078125, 0.165771484375, 0.1024169921875, 0.12951660...
embed
62880733_c0
62880733
prolog
0
Title: adjacent involving first and last element, Prolog Problem title: adjacent involving first and last element, Prolog Tags: prolog Problem: adjacent involving first and last element, Prolog HI I would like to know how a method that finds out if two members of a list in Prolog are adjacent as the catch is that the f...
adjacent involving first and last element, Prolog adjacent involving first and last element, Prolog prolog Prolog Tail adjacent involving first and last element, Prolog HI I would like to know how a method that finds out if two members of a list in Prolog are adjacent as the catch is that the first and the last element...
[ 0.006927490234375, 0.006011962890625, 0.01708984375, 0.0084228515625, -0.0157470703125, 0.0189208984375, 0.01116943359375, 0.033935546875, 0.003631591796875, -0.0177001953125, 0, 0.022216796875, -0.00836181640625, 0.0045166015625, 0.021728515625, -0.00189971923828125, -0.005126953125...
[ 123594, 16797, 3784, 5117, 136, 4568, 12830, 1250, 4867, 23, 502, 1218, 379, 35848, 1884, 3714, 3642, 55300, 7413, 1810, 2174, 6626, 43032, 5303, 621, 237, 105556, 80854, 12765, 8337, 72272, 1836, 21771, 18151, 26698, 10336, 9035, 154186, 8...
[ 0.2388916015625, 0.290283203125, 0.075439453125, 0.145751953125, 0.10430908203125, 0.1885986328125, 0.2030029296875, 0.1907958984375, 0.26318359375, 0.02423095703125, 0.102294921875, 0.101318359375, 0.1334228515625, 0.0283966064453125, 0.0206451416015625, 0.0206298828125, 0.028045654...
embed
41591595_c0
41591595
prolog
0
Title: How to use difference lists in a Prolog interpreter Problem title: How to use difference lists in a Prolog interpreter Tags: difference-lists, prolog Problem: How to use difference lists in a Prolog interpreter When I was writing down this question on an empty list as a difference list I wanted to test what I kn...
How to use difference lists in a Prolog interpreter How to use difference lists in a Prolog interpreter difference-lists prolog How Prolog How to use difference lists in a Prolog interpreter When I was writing down this question on an empty list as a difference list I wanted to test what I knew about those structures. ...
[ 0.019775390625, 0.010009765625, 0.00958251953125, 0.000370025634765625, -0.00921630859375, 0.000904083251953125, -0.0017547607421875, 0.01202392578125, -0.01141357421875, -0.0079345703125, -0.01348876953125, 0.008056640625, -0.00665283203125, 0.0012054443359375, 0.0118408203125, -0.008...
[ 11249, 4527, 60212, 5303, 1250, 4867, 29481, 56, 6562, 502, 7, 201505, 3034, 55950, 45646, 37397, 12921, 959, 44691, 28219, 678, 38969, 10752, 2143, 110, 22062, 59121, 119794, 265, 27958, 38730, 51, 41274, 7722, 44084, 21094, 5701, 21635, 9...
[ 0.0513916015625, 0.1328125, 0.25341796875, 0.2437744140625, 0.1328125, 0.2177734375, 0.1806640625, 0.1195068359375, 0.201171875, 0.080810546875, 0.0758056640625, 0.090576171875, 0.064208984375, 0.0263519287109375, 0.1124267578125, 0.053680419921875, 0.0290374755859375, 0.1472167968...
embed
42425161_c0
42425161
prolog
0
Title: Generate all possible graphs of size n in Prolog Problem title: Generate all possible graphs of size n in Prolog Tags: prolog, combinations, graph-theory Problem: Generate all possible graphs of size n in Prolog I'm trying to write a generator to generate all possible graphs of size n in Prolog. Most graphs I've...
Generate all possible graphs of size n in Prolog Generate all possible graphs of size n in Prolog prolog combinations graph-theory Generate Prolog Graph Vertex1 Vertex2 Vertex3 Vertex1-Vertex2 Vertex2-Vertex3 Generator Generate all possible graphs of size n in Prolog I'm trying to write a generator to generate all poss...
[ 0.01171875, 0.0242919921875, -0.009765625, 0.01025390625, -0.0228271484375, -0.006561279296875, -0.002655029296875, -0.0220947265625, 0.00101470947265625, -0.044189453125, -0.005218505859375, -0.00787353515625, 0.01220703125, 0.00360107421875, 0.002593994140625, 0.01171875, 0.0050964...
[ 155370, 756, 7722, 41382, 7, 13267, 653, 23, 1250, 4867, 502, 162515, 2347, 6524, 11727, 1446, 24371, 363, 15896, 222518, 111, 31577, 33022, 145823, 139392, 17006, 51592, 33636, 237, 5303, 15824, 47644, 24494, 69030, 19, 7413, 37348, 32562, ...
[ 0.1761474609375, 0.09417724609375, 0.160400390625, 0.263427734375, 0.080810546875, 0.1168212890625, 0.10791015625, 0.031494140625, 0.170166015625, 0.241943359375, 0.115966796875, 0.1385498046875, 0.0288848876953125, 0.169677734375, 0.1551513671875, 0.058349609375, 0.08184814453125, ...
embed
18556111_c0
18556111
prolog
0
Title: Prolog - dyck path from origin to (2N,0) Problem title: Prolog - dyck path from origin to (2N,0) Tags: prolog Problem: Prolog - dyck path from origin to (2N,0) Is called Dyck Path. It is a plane of x and y axis, where each step will be only (x+1,y+1) or (x+1,y-1) and will always stay above x-axis K should means ...
Prolog - dyck path from origin to (2N,0) Prolog - dyck path from origin to (2N,0) prolog origin Prolog Prolog - dyck path from origin to (2N,0) Is called Dyck Path. It is a plane of x and y axis, where each step will be only (x+1,y+1) or (x+1,y-1) and will always stay above x-axis K should means the peak of the Dyck pa...
[ 0.0145263671875, 0.00732421875, -0.0000972747802734375, -0.01239013671875, 0.0089111328125, 0.0201416015625, -0.0054931640625, 0.0009613037109375, -0.008056640625, -0.01397705078125, -0.0034942626953125, -0.017822265625, -0.0196533203125, 0.0012664794921875, -0.008544921875, 0.00952148...
[ 1250, 4867, 2160, 2594, 60875, 1295, 59665, 47, 4700, 839, 77495, 502, 35839, 9865, 108421, 83, 10, 47880, 111, 1022, 136, 113, 33102, 12638, 29954, 1221, 4734, 21748, 53, 110218, 11343, 24765, 36917, 11, 341, 5608, 26950, 280, 344, 14847...
[ 0.175048828125, 0.272705078125, 0.151611328125, 0.2459716796875, 0.257080078125, 0.10443115234375, 0.23193359375, 0.1097412109375, 0.08740234375, 0.128173828125, 0.146240234375, 0.1475830078125, 0.0771484375, 0.1903076171875, 0.28564453125, 0.0225372314453125, 0.0115966796875, 0.24...
embed
19282848_c0
19282848
prolog
0
Title: Comparing first and last element of list with append Problem title: Comparing first and last element of list with append Tags: append, prolog Problem: Comparing first and last element of list with append I'm a bit of a prolog noob thats why i am asking here, i couldn't find the anser else where. The thing i am t...
Comparing first and last element of list with append Comparing first and last element of list with append append prolog Comparing Comparing first and last element of list with append I'm a bit of a prolog noob thats why i am asking here, i couldn't find the anser else where. The thing i am trying to do is this function...
[ -0.0059814453125, 0.0052490234375, 0.0024566650390625, 0.00921630859375, 0.0015106201171875, -0.0093994140625, 0.0152587890625, 0.031005859375, 0.0174560546875, -0.0179443359375, 0.005889892578125, 0.01055908203125, -0.0078125, 0.0179443359375, 0.016845703125, -0.028564453125, 0.0246...
[ 113307, 214, 5117, 136, 4568, 12830, 5303, 678, 114689, 71, 502, 4867, 4785, 3522, 110415, 31577, 32354, 12921, 62822, 7413, 1810, 2174, 83, 5701, 6626, 1286, 80854, 3444, 64457, 195625, 11001, 11782, 89536, 5608, 4488, 4358 ]
[ 0.190673828125, 0.0313720703125, 0.1455078125, 0.1173095703125, 0.2342529296875, 0.1661376953125, 0.180908203125, 0.05712890625, 0.207763671875, 0.16943359375, 0.1038818359375, 0.15869140625, 0.006439208984375, 0.02349853515625, 0.17138671875, 0.037200927734375, 0.1309814453125, 0....
embed
67642454_c0
67642454
prolog
0
Title: Not clear on how this Prolog depth first search (DFS) method code works Problem title: Not clear on how this Prolog depth first search (DFS) method code works Tags: depth-first-search, prolog Problem: Not clear on how this Prolog depth first search (DFS) method code works Today a teacher gave us this code on pro...
Not clear on how this Prolog depth first search (DFS) method code works Not clear on how this Prolog depth first search (DFS) method code works depth-first-search prolog Not Prolog DFS dfs_paths Not clear on how this Prolog depth first search (DFS) method code works Today a teacher gave us this code on prolog: He told ...
[ 0.05078125, 0.004486083984375, -0.01177978515625, 0.01171875, 0.0029449462890625, 0.003204345703125, -0.0128173828125, -0.00274658203125, -0.00167083740234375, -0.048583984375, -0.00909423828125, -0.035400390625, -0.0005340576171875, 0.03271484375, 0.021484375, 0.015625, 0.0284423828...
[ 11205, 34735, 3642, 903, 1250, 4867, 168867, 5117, 33938, 38997, 294, 55300, 18151, 43240, 13448, 271, 86250, 502, 391, 36381, 104, 17447, 128405, 38396, 117914, 1821, 30745, 83, 10, 3917, 4488, 15935, 12638, 13315, 9014, 87, 28219, 53201 ]
[ 0.0298614501953125, 0.134033203125, 0.05810546875, 0.091552734375, 0.1851806640625, 0.221923828125, 0.2335205078125, 0.1397705078125, 0.200927734375, 0.1968994140625, 0.2149658203125, 0.1787109375, 0.1947021484375, 0.15234375, 0.13671875, 0.1181640625, 0.177490234375, 0.14575195312...
embed
26719287_c0
26719287
prolog
0
Title: swi Prolog tracing recursion depth Problem title: swi Prolog tracing recursion depth Tags: trace, prolog, factorial Problem: swi Prolog tracing recursion depth Why does the recursion depth start with 6 or 7 when tracing Prolog programs? Example (taken form here ). factorial(0, 1). factorial(N, NFact) :- N > 0, N...
swi Prolog tracing recursion depth swi Prolog tracing recursion depth trace prolog factorial Prolog NFact Nminus1 Nminus1Fact Call _G284 Exit _L205 Exist swi Prolog tracing recursion depth Why does the recursion depth start with 6 or 7 when tracing Prolog programs? Example (taken form here ). Lets trace factorial(3, X)...
[ 0.0167236328125, 0.020751953125, -0.002960205078125, 0.01611328125, 0.005828857421875, -0.017822265625, 0.0029754638671875, 0.00244140625, 0.004608154296875, -0.0179443359375, 0.025390625, -0.006988525390625, -0.03515625, 0.0106201171875, 0.024169921875, 0.004852294921875, 0.02709960...
[ 91, 2452, 1250, 4867, 1152, 21896, 195625, 1830, 168867, 144851, 502, 31461, 15403, 135518, 34731, 26265, 3882, 617, 5443, 143422, 1419, 44084, 14602, 6, 4034, 678, 305, 707, 361, 103391, 89536, 3173, 86827, 1193, 581, 140992, 5117, 3365, 3...
[ 0.020355224609375, 0.2169189453125, 0.166015625, 0.2359619140625, 0.184814453125, 0.1153564453125, 0.209228515625, 0.1168212890625, 0.254638671875, 0.2012939453125, 0.1126708984375, 0.1212158203125, 0.1116943359375, 0.1708984375, 0.180908203125, 0.15380859375, 0.1038818359375, 0.07...
embed
10059701_c0
10059701
prolog
0
Title: Simple PROLOG issue: How do you test multiple queries against your Prolog database? Problem title: Simple PROLOG issue: How do you test multiple queries against your Prolog database? Tags: database, gnu-prolog, prolog Problem: Simple PROLOG issue: How do you test multiple queries against your Prolog database? I ...
Simple PROLOG issue: How do you test multiple queries against your Prolog database? Simple PROLOG issue: How do you test multiple queries against your Prolog database? database gnu-prolog prolog Simple PROLOG How Simple PROLOG issue: How do you test multiple queries against your Prolog database? I have a Prolog databas...
[ 0.00933837890625, -0.0027008056640625, 0.00616455078125, 0.0277099609375, -0.00836181640625, 0.0027313232421875, -0.006195068359375, -0.0213623046875, 0.0107421875, -0.05517578125, 0.01513671875, -0.005035400390625, -0.0179443359375, 0.000659942626953125, -0.01226806640625, 0.018066406...
[ 60552, 10514, 47510, 31089, 11249, 3034, 48716, 41, 10484, 26548, 1250, 4867, 63399, 104155, 3454, 502, 11435, 6954, 33657, 254, 11814, 183540, 756, 759, 2053, 944, 2424, 29458, 4677, 4527, 706, 156377, 72367, 15044, 5701, 75101, 11675, 50986...
[ 0.2164306640625, 0.171142578125, 0.2216796875, 0.113037109375, 0.061065673828125, 0.2425537109375, 0.228515625, 0.1412353515625, 0.128662109375, 0.225830078125, 0.1702880859375, 0.2177734375, 0.185302734375, 0.10009765625, 0.141357421875, 0.07550048828125, 0.045379638671875, 0.1510...
embed
14217966_c1
14217966
prolog
1
idea on how to fast/simple parse the file? It feels strange that parsing the input for the problem is much harder then solving the problem. Thanks. Edit: I found the compound predicate and the line read from files is a compound term. Edit2: My goal is to read the data in that file and assert it or similar, I want to s...
idea on how to fast/simple parse the file? It feels strange that parsing the input for the problem is much harder then solving the problem. Thanks. Edit: I found the compound predicate and the line read from files is a compound term. Edit2: My goal is to read the data in that file and assert it or similar, I want to s...
[ 0.002685546875, 0.0087890625, -0.00107574462890625, 0.011962890625, -0.021240234375, 0.0142822265625, 0.0184326171875, 0.008056640625, -0.019287109375, -0.05078125, -0.00909423828125, 0.004852294921875, -0.01287841796875, -0.0009765625, 0.01171875, 0.0089111328125, -0.001861572265625...
[ 6528, 3642, 4271, 191560, 366, 184, 11435, 12319, 114453, 6953, 107730, 2967, 5045, 182, 820, 3115, 6496, 14037, 217773, 1653, 2063, 67, 13315, 12301, 1295, 102158, 83, 13579, 69236, 2053, 33657, 3444, 86869, 144142, 129570, 831, 26366, 2831,...
[ 0.098876953125, 0.03216552734375, 0.10699462890625, 0.1070556640625, 0.1849365234375, 0.1453857421875, 0.1973876953125, 0.08099365234375, 0.06402587890625, 0.07177734375, 0.187744140625, 0.1285400390625, 0.0577392578125, 0.0682373046875, 0.0889892578125, 0.07550048828125, 0.016738891...
embed
27404040_c0
27404040
prolog
0
Title: Prolog, List of lists contains another list exactly Problem title: Prolog, List of lists contains another list exactly Tags: prolog, declarative-programming Problem: Prolog, List of lists contains another list exactly What I basically want to achieve is, that given a list of lists A , I want a predicate that che...
Prolog, List of lists contains another list exactly Prolog, List of lists contains another list exactly prolog declarative-programming Prolog List Prolog, List of lists contains another list exactly What I basically want to achieve is, that given a list of lists A , I want a predicate that checks if the elements of a l...
[ 0.00262451171875, 0.0096435546875, 0.005279541015625, 0.0220947265625, -0.015869140625, 0.022216796875, -0.001312255859375, -0.00860595703125, 0.00811767578125, 0.01385498046875, 0.01123046875, 0.0240478515625, 0.00213623046875, 0.00970458984375, 0.0034942626953125, -0.00677490234375, ...
[ 1250, 4867, 32036, 111, 5303, 7, 70541, 15700, 66161, 502, 21635, 4935, 28966, 198343, 3444, 69307, 34475, 62, 1653, 2063, 12765, 2174, 80854, 335, 23, 2203, 133063, 82449, 45963, 80389, 71928, 16750, 29568, 1284, 104629, 2806, 15044, 47, 9...
[ 0.16943359375, 0.2353515625, 0.16357421875, 0.07281494140625, 0.2099609375, 0.047607421875, 0.165283203125, 0.1181640625, 0.20751953125, 0.1573486328125, 0.1243896484375, 0.030181884765625, 0.095947265625, 0.0228424072265625, 0.0753173828125, 0.09716796875, 0.039703369140625, 0.064...
embed
54877646_c0
54877646
prolog
0
Title: Get list of positive values in Prolog Problem title: Get list of positive values in Prolog Tags: list, prolog, recursion Problem: Get list of positive values in Prolog So I'm trying to get list of positive elements from given list. So far I've come to this solution: 1 getPos([],[]). 2 getPos([], L). 3 getPos([He...
Get list of positive values in Prolog Get list of positive values in Prolog list prolog recursion Get Prolog Head Tail Result Call _29 Exit Get list of positive values in Prolog So I'm trying to get list of positive elements from given list. So far I've come to this solution: If I try getPos([1,-2,3], Result). I get to...
[ -0.01104736328125, 0.01348876953125, 0.01312255859375, -0.00579833984375, -0.0177001953125, 0.006011962890625, 0.006378173828125, -0.001220703125, 0.0033721923828125, -0.021728515625, 0.023193359375, -0.004058837890625, -0.034423828125, -0.01190185546875, 0.0107421875, 0.01324462890625...
[ 20779, 5303, 111, 24491, 142424, 23, 1250, 4867, 502, 195625, 1830, 44816, 1218, 379, 126684, 26265, 4235, 5443, 31577, 2046, 80854, 1295, 34475, 29806, 7192, 7, 155761, 15824, 116, 16750, 569, 63736, 35166, 1528, 7279, 30646, 34292, 339, 7...
[ 0.0775146484375, 0.16748046875, 0.058319091796875, 0.217041015625, 0.1895751953125, 0.046722412109375, 0.1737060546875, 0.2452392578125, 0.134033203125, 0.1522216796875, 0.0482177734375, 0.0830078125, 0.07611083984375, 0.0799560546875, 0.1328125, 0.09027099609375, 0.1478271484375, ...
embed
75219379_c0
75219379
prolog
0
Title: Defining a predicate as substitute for (=)/2 (Unification) in Prolog Problem title: Defining a predicate as substitute for (=)/2 (Unification) in Prolog Tags: prolog Problem: Defining a predicate as substitute for (=)/2 (Unification) in Prolog For my programming course's assignment, I have to write some Prolog c...
Defining a predicate as substitute for (=)/2 (Unification) in Prolog Defining a predicate as substitute for (=)/2 (Unification) in Prolog prolog Defining Unification Prolog Defining a predicate as substitute for (=)/2 (Unification) in Prolog For my programming course's assignment, I have to write some Prolog code witho...
[ -0.005340576171875, 0.01239013671875, 0.02734375, 0.01019287109375, -0.000926971435546875, -0.00160980224609375, -0.0032958984375, -0.00506591796875, 0.0057373046875, -0.03662109375, 0.00799560546875, 0.0162353515625, 0.00909423828125, 0.0089111328125, 0.0021209716796875, -0.0033416748...
[ 88606, 1653, 2063, 67, 237, 161740, 13, 78690, 12477, 14256, 41274, 1250, 4867, 100, 502, 449, 992, 56037, 95486, 33022, 18151, 15490, 17368, 479, 112, 5983, 158928, 136, 2819, 2203, 12765, 77336, 105950, 47, 4398, 207487, 5775, 31, 107003,...
[ 0.2001953125, 0.2158203125, 0.26123046875, 0.137939453125, 0.05706787109375, 0.177001953125, 0.041961669921875, 0.13671875, 0.2191162109375, 0.1837158203125, 0.1734619140625, 0.159912109375, 0.19580078125, 0.01678466796875, 0.1265869140625, 0.007537841796875, 0.1993408203125, 0.056...
embed
42106849_c0
42106849
prolog
0
Title: Using return value from another predicate to calculate value Problem title: Using return value from another predicate to calculate value Tags: prolog Problem: Using return value from another predicate to calculate value I have the following code. All my other functions are working. I have already tested them. Bu...
Using return value from another predicate to calculate value Using return value from another predicate to calculate value prolog another Using Ans L1_simple L2_simple L1_F L2_F Using return value from another predicate to calculate value I have the following code. All my other functions are working. I have already test...
[ -0.0194091796875, -0.00165557861328125, -0.0084228515625, -0.0213623046875, -0.0072021484375, 0.0159912109375, 0.01080322265625, 0.006439208984375, 0.025390625, -0.06103515625, -0.006683349609375, 0.01104736328125, 0.01177978515625, 0.007781982421875, 0.0238037109375, -0.00030326843261...
[ 345, 6953, 30646, 34292, 1295, 15700, 1653, 2063, 67, 74481, 502, 4867, 893, 7, 339, 418, 191560, 304, 919, 25632, 18151, 32354, 20697, 21771, 3034, 87, 15190, 903, 17311, 8966, 156, 106834, 87388, 693, 52721, 528, 179459, 141377, 1810, 4...
[ 0.0806884765625, 0.018951416015625, 0.253173828125, 0.199462890625, 0.09613037109375, 0.1102294921875, 0.1439208984375, 0.19970703125, 0.083740234375, 0.2059326171875, 0.117431640625, 0.2080078125, 0.096435546875, 0.04986572265625, 0.05340576171875, 0.007171630859375, 0.1597900390625...
embed
34796664_c0
34796664
prolog
0
Title: Print all cycles of the graph for the specified node of the graph, Prolog Problem title: Print all cycles of the graph for the specified node of the graph, Prolog Tags: list, prolog, cycle, graph-theory Problem: Print all cycles of the graph for the specified node of the graph, Prolog I'm newbie in the Prolog wo...
Print all cycles of the graph for the specified node of the graph, Prolog Print all cycles of the graph for the specified node of the graph, Prolog list prolog cycle graph-theory Print Prolog Curr Visited Next Print all cycles of the graph for the specified node of the graph, Prolog I'm newbie in the Prolog world. I'm ...
[ 0.0069580078125, -0.00372314453125, 0.007049560546875, 0.0142822265625, 0.0125732421875, 0.01483154296875, -0.004669189453125, -0.0216064453125, -0.005859375, -0.0234375, -0.01446533203125, -0.006103515625, -0.01708984375, 0.014404296875, 0.0107421875, 0.0159912109375, -0.00933837890...
[ 39754, 756, 105823, 7, 41382, 100, 58735, 110, 112, 1250, 4867, 111, 5303, 502, 2347, 42, 9014, 8999, 33022, 1653, 2063, 2448, 1916, 12830, 33342, 1884, 53418, 7413, 29458, 16487, 104 ]
[ 0.1824951171875, 0.13232421875, 0.2152099609375, 0.056365966796875, 0.167724609375, 0.073974609375, 0.1153564453125, 0.1162109375, 0.07366943359375, 0.1138916015625, 0.1737060546875, 0.00518798828125, 0.05712890625, 0.0567626953125, 0.00653076171875, 0.011383056640625, 0.057739257812...
embed
65027235_c0
65027235
prolog
0
Title: Checking to see if an element is in a tree in Prolog Problem title: Checking to see if an element is in a tree in Prolog Tags: prolog Problem: Checking to see if an element is in a tree in Prolog I am trying to write the rules for a predicate in Prolog that will see if a particular member (E) is in a given tree....
Checking to see if an element is in a tree in Prolog Checking to see if an element is in a tree in Prolog prolog Checking Prolog Checking to see if an element is in a tree in Prolog I am trying to write the rules for a predicate in Prolog that will see if a particular member (E) is in a given tree. The tree is not BST,...
[ 0.03173828125, 0.01416015625, 0.00469970703125, -0.00616455078125, 0.00732421875, 0.01318359375, -0.01361083984375, -0.010009765625, -0.0078125, -0.037353515625, 0.00457763671875, -0.007476806640625, -0.001373291015625, 0.005126953125, 0.0238037109375, 0.01068115234375, 0.00323486328...
[ 38679, 1957, 2174, 12830, 83, 23, 53201, 1250, 4867, 502, 91736, 1653, 2063, 32786, 647, 959, 8545, 1884, 62351, 2394, 6635, 26366, 44691, 62775, 18151, 35064, 27781, 41, 1294, 9774, 11343, 29568, 2831, 6275 ]
[ 0.1766357421875, 0.0941162109375, 0.042694091796875, 0.1832275390625, 0.0260009765625, 0.1396484375, 0.256591796875, 0.1500244140625, 0.2314453125, 0.1123046875, 0.09423828125, 0.07391357421875, 0.0771484375, 0.1392822265625, 0.057403564453125, 0.008148193359375, 0.1217041015625, 0...
embed
34249102_c0
34249102
prolog
0
Title: Passing a number as a parameter to an executable (Prolog code compiled using ciaoc) generates an error Problem title: Passing a number as a parameter to an executable (Prolog code compiled using ciaoc) generates an error Tags: prolog, ciao-prolog Problem: Passing a number as a parameter to an executable (Prolog ...
Passing a number as a parameter to an executable (Prolog code compiled using ciaoc) generates an error Passing a number as a parameter to an executable (Prolog code compiled using ciaoc) generates an error prolog ciao-prolog ciaoc Passing Prolog test.pl ERROR type_error arithmetic:is Passing a number as a parameter to ...
[ 0.004486083984375, -0.00098419189453125, -0.0026397705078125, 0.01153564453125, -0.00011491775512695312, 0.01123046875, -0.0029296875, -0.0025634765625, 0.00933837890625, -0.045166015625, -0.004852294921875, -0.0155029296875, -0.0220947265625, 0.0101318359375, 0.02734375, -0.0054321289...
[ 28872, 14012, 237, 10, 171859, 47, 71924, 2886, 10752, 4867, 18151, 5974, 17368, 1883, 6652, 139392, 142, 18499, 502, 31, 3454, 1250, 3034, 2424, 151206, 24638, 10644, 188800, 187, 8962, 282, 9523, 164, 214, 9969, 1340, 3934, 12301, 6626, ...
[ 0.1729736328125, 0.209228515625, 0.142578125, 0.03924560546875, 0.247314453125, 0.1424560546875, 0.181640625, 0.15966796875, 0.151123046875, 0.2176513671875, 0.17724609375, 0.160400390625, 0.051513671875, 0.16943359375, 0.2110595703125, 0.147216796875, 0.004425048828125, 0.18835449...
embed
24302383_c0
24302383
prolog
0
Title: Prolog Mutual recursion Problem title: Prolog Mutual recursion Tags: mutual-recursion, prolog, recursion Problem: Prolog Mutual recursion Ok I'm writing some code to go through a check each value by mutual recursion in Prolog. This is my code so far: semestersok(SP) :- [Prior|Tail] = SP, sem1ok(SP). %% sem1ok(SP...
Prolog Mutual recursion Prolog Mutual recursion mutual-recursion prolog recursion Prolog Mutual Prior Tail sem1ok Sem1 sem2ok Sem2 Prolog Mutual recursion Ok I'm writing some code to go through a check each value by mutual recursion in Prolog. This is my code so far: I haven't put any code in yet to do with checking (T...
[ -0.003936767578125, 0.0279541015625, 0.003265380859375, 0.01483154296875, -0.000560760498046875, 0.01220703125, -0.0174560546875, -0.00335693359375, 0.013916015625, -0.00177764892578125, 0.01806640625, 0.0263671875, -0.0015106201171875, 0.0107421875, 0.0203857421875, 0.0028839111328125...
[ 1250, 4867, 174948, 289, 195625, 1830, 199849, 48650, 502, 135967, 1218, 379, 484, 685, 10232, 304, 32562, 18151, 8305, 12765, 12638, 34292, 390, 2060, 14373, 175199, 116959, 6626, 91582, 75939, 142424, 2967, 166871, 24189, 201505, 5303, 35782,...
[ 0.1612548828125, 0.25830078125, 0.1375732421875, 0.0209808349609375, 0.258544921875, 0.110595703125, 0.225830078125, 0.132080078125, 0.1004638671875, 0.1719970703125, 0.135986328125, 0.1129150390625, 0.0841064453125, 0.091552734375, 0.114013671875, 0.014617919921875, 0.0516357421875,...
embed
67390617_c0
67390617
prolog
0
Title: Portable way to change Prolog atom JSON escaping Problem title: Portable way to change Prolog atom JSON escaping Tags: swi-prolog, prolog, unicode-escapes Problem: Portable way to change Prolog atom JSON escaping Is there a portable way to change the Prolog escaping. I have the following in mind, usualy an atom ...
Portable way to change Prolog atom JSON escaping Portable way to change Prolog atom JSON escaping swi-prolog prolog unicode-escapes Portable Prolog JSON SWI-Prolog x0001 STR u0001def Portable way to change Prolog atom JSON escaping Is there a portable way to change the Prolog escaping. I have the following in mind, usu...
[ 0.0026702880859375, 0.02490234375, 0.0034942626953125, 0.00153350830078125, -0.012451171875, -0.003570556640625, 0.01153564453125, 0.038330078125, -0.01226806640625, 0.031005859375, 0.00927734375, 0.019287109375, -0.00787353515625, -0.001434326171875, 0.029052734375, 0.0167236328125, ...
[ 1818, 22819, 3917, 15549, 1250, 4867, 34627, 821, 58627, 38940, 10366, 2452, 3454, 502, 60347, 112, 13, 98224, 38969, 10752, 188735, 46549, 75, 420, 168627, 47, 70, 7086, 115723, 144281, 71, 28960, 17368, 154447, 141, 3444, 147488, 140992, ...
[ 0.1595458984375, 0.130859375, 0.09161376953125, 0.25048828125, 0.1839599609375, 0.26123046875, 0.22216796875, 0.124755859375, 0.211669921875, 0.2052001953125, 0.1468505859375, 0.114501953125, 0.07550048828125, 0.096435546875, 0.10162353515625, 0.1351318359375, 0.000762939453125, 0....
embed
41189774_c0
41189774
prolog
0
Title: truthtable for nested equation Problem title: truthtable for nested equation Tags: prolog Problem: truthtable for nested equation I am trying to create a prolog program to print out the truthtable of a statement. It works fine for the example truthtable(A,B,and(A,B)) , but if I try truthable(A,B,or(A,and(A,B))) ...
truthtable for nested equation truthtable for nested equation prolog truthtable for nested equation I am trying to create a prolog program to print out the truthtable of a statement. It works fine for the example truthtable(A,B,and(A,B)) , but if I try truthable(A,B,or(A,and(A,B))) it doesn't work and shows everything ...
[ -0.0037994384765625, 0.004180908203125, 0.000492095947265625, 0.002349853515625, -0.000560760498046875, 0.01171875, -0.0062255859375, -0.007568359375, 0.011962890625, 0.0029144287109375, -0.0179443359375, -0.0103759765625, 0.00469970703125, 0.0220947265625, 0.00640869140625, 0.01495361...
[ 85027, 22819, 100, 8512, 71, 28, 5490, 2320, 502, 4867, 31577, 28282, 1528, 28412, 1810, 63805, 43240, 5885, 27781, 284, 571, 2940, 1284, 2174, 9790, 2886, 748, 22027, 18, 4488, 45831, 26818, 237, 98320, 54, 3444, 38937, 15190, 14012, 107...
[ 0.2335205078125, 0.2822265625, 0.08514404296875, 0.223876953125, 0.134033203125, 0.034423828125, 0.2069091796875, 0.040985107421875, 0.1484375, 0.1912841796875, 0.039581298828125, 0.056610107421875, 0.12255859375, 0.123046875, 0.051116943359375, 0.159912109375, 0.07080078125, 0.057...
embed
27568643_c0
27568643
prolog
0
Title: Beginner Prolog issue Problem title: Beginner Prolog issue Tags: prolog Problem: Beginner Prolog issue We have a box that contains red & yellow balls. A man comes daily and gets 2 balls from the box, if he couldn't get 2 balls the game finishes. There is a heap of red balls next to the box. If the 2 balls which ...
Beginner Prolog issue Beginner Prolog issue prolog Beginner Prolog Beginner Prolog issue We have a box that contains red & yellow balls. A man comes daily and gets 2 balls from the box, if he couldn't get 2 balls the game finishes. There is a heap of red balls next to the box. If the 2 balls which the man has withdrawn...
[ 0.0164794921875, 0.0018310546875, -0.0206298828125, 0.028076171875, -0.012451171875, 0.004486083984375, -0.0361328125, 0.01312255859375, -0.003021240234375, -0.00084686279296875, -0.00194549560546875, 0.0224609375, 0.00579833984375, -0.0033721923828125, 0.0179443359375, -0.006042480468...
[ 67053, 56, 1250, 4867, 31089, 502, 16530, 70541, 4842, 619, 205811, 16446, 332, 32497, 31815, 62163, 116, 1295, 69427, 2046, 6712, 67229, 764, 2631, 11737, 205850, 21373, 3884, 3934, 12921, 139124, 33636, 113, 1690, 86595, 5303, 4420, 106, ...
[ 0.1124267578125, 0.04937744140625, 0.1734619140625, 0.2374267578125, 0.1131591796875, 0.092529296875, 0.180419921875, 0.1014404296875, 0.13671875, 0.060302734375, 0.2137451171875, 0.15185546875, 0.058868408203125, 0.059234619140625, 0.1396484375, 0.042999267578125, 0.08258056640625, ...
embed
22946161_c1
22946161
prolog
1
seems like unnecessary work to me. I already use Prolog modules quite stringently and would like to simply use the hierarchy of Prolog module imports as the dependency graph. Git submodule Another approach, one that I've used until now, is Git submodules. Dependencies between libraries are achieved by importing one re...
seems like unnecessary work to me. I already use Prolog modules quite stringently and would like to simply use the hierarchy of Prolog module imports as the dependency graph. Git submodule Another approach, one that I've used until now, is Git submodules. Dependencies between libraries are achieved by importing one re...
[ -0.004638671875, 0.0174560546875, 0.005401611328125, 0.01507568359375, -0.0177001953125, 0.00787353515625, -0.0004253387451171875, -0.0023345947265625, 0.0135498046875, -0.00007152557373046875, -0.005615234375, -0.0211181640625, -0.00823974609375, 0.0257568359375, 0.020751953125, -0.00...
[ 37202, 1884, 51, 26531, 4488, 21771, 4527, 1250, 4867, 88996, 32233, 79315, 2517, 2806, 42856, 1791, 147, 7668, 24927, 237, 70, 42548, 27771, 41382, 527, 217, 1614, 83279, 13, 116267, 51515, 11814, 5036, 90, 262, 26885, 117538, 17721, 35773...
[ 0.05841064453125, 0.0648193359375, 0.00823974609375, 0.055999755859375, 0.0703125, 0.09552001953125, 0.1099853515625, 0.1468505859375, 0.2408447265625, 0.185791015625, 0.02239990234375, 0.065673828125, 0.005401611328125, 0.026092529296875, 0.04315185546875, 0.103515625, 0.10900878906...
embed
21970747_c1
21970747
prolog
1
a valid expression expr(X) :- length(X, Length), Length >= 1, =(X, [First | Tail] ), ( Length = 1 -> id(X) =(Last, ')'), expr(Middle) ; =(Tail, [Second | Tail2] ), id(First), op(Second), expr(Tail2) ). % % Input a sentence, then decompose it into a list of symbols. % User input should be quoted, e.g., Enter a sentence...
a valid expression expr(X) :- length(X, Length), Length >= 1, =(X, [First | Tail] ), ( Length = 1 -> id(X) =(Last, ')'), expr(Middle) ; =(Tail, [Second | Tail2] ), id(First), op(Second), expr(Tail2) ). % % Input a sentence, then decompose it into a list of symbols. % User input should be quoted, e.g., Enter a sentence...
[ 0.0103759765625, -0.00457763671875, -0.0026397705078125, 0.0299072265625, 0.005035400390625, 0.0238037109375, -0.00390625, -0.00023365020751953125, 0.0223388671875, -0.0133056640625, 0.00885009765625, 0.0184326171875, -0.00872802734375, -0.0036468505859375, 0.01348876953125, 0.01538085...
[ 10, 35604, 125195, 14700, 42, 132, 1542, 15772, 140909, 77554, 927, 977, 106, 2203, 207263, 58745, 1218, 379, 33079, 3447, 2729, 271, 594, 532, 19298, 9874, 2271, 90173, 233, 10461, 1745, 360, 7077, 149357, 8, 277, 78381, 3934, 5303, 2658...
[ 0.036956787109375, 0.241943359375, 0.309814453125, 0.2379150390625, 0.2457275390625, 0.0263214111328125, 0.2139892578125, 0.0841064453125, 0.2181396484375, 0.14111328125, 0.1085205078125, 0.099853515625, 0.0872802734375, 0.036712646484375, 0.1092529296875, 0.03424072265625, 0.1153564...
embed
61464058_c0
61464058
prolog
0
Title: How to use if then else condition in DOSBOX TurboProlog Problem title: How to use if then else condition in DOSBOX TurboProlog Tags: turbo-prolog, prolog Problem: How to use if then else condition in DOSBOX TurboProlog Below is the given program to print if a list is palindrome or not but I am not able to use co...
How to use if then else condition in DOSBOX TurboProlog How to use if then else condition in DOSBOX TurboProlog turbo-prolog prolog How DOSBOX TurboProlog How to use if then else condition in DOSBOX TurboProlog Below is the given program to print if a list is palindrome or not but I am not able to use condition L1=L & ...
[ -0.0054931640625, 0.00122833251953125, 0.00506591796875, 0.00823974609375, -0.008056640625, 0.0179443359375, 0.02099609375, 0.01446533203125, -0.011962890625, -0.00014019012451171875, 0.0167236328125, -0.0036468505859375, 0.0137939453125, 0.0025787353515625, 0.00665283203125, 0.0027313...
[ 11249, 4527, 2174, 7068, 37076, 35431, 86559, 94049, 102228, 10752, 4867, 23, 94779, 3454, 502, 17336, 1528, 28412, 5303, 83, 17923, 19, 102851, 959, 19048, 339, 418, 619, 866, 2448, 154663, 12530, 73, 36272, 37842, 3190, 5557, 137578, 4358...
[ 0.03717041015625, 0.14892578125, 0.209228515625, 0.2265625, 0.254638671875, 0.228271484375, 0.1259765625, 0.203369140625, 0.1812744140625, 0.1131591796875, 0.152587890625, 0.0263519287109375, 0.1649169921875, 0.0625, 0.087158203125, 0.009796142578125, 0.0811767578125, 0.13403320312...
embed
43895301_c0
43895301
prolog
0
Title: Prolog date of birth Problem title: Prolog date of birth Tags: prolog Problem: Prolog date of birth I am making a family tree type code, and have to add the birthday for each person. I listed all the people: male(bob). male(rob). male(nick). male(george). male(tim). male(ali). male(craig). male(bill). male(jacob...
Prolog date of birth Prolog date of birth prolog Prolog Prolog date of birth I am making a family tree type code, and have to add the birthday for each person. I listed all the people: and here is my attempt at adding the birthday. it doesn't work when i search for a persons birthday. Do i need to add the birthday with...
[ 0.019775390625, 0.0172119140625, 0.0263671875, 0.01953125, -0.01953125, 0.0322265625, -0.007568359375, 0.01806640625, -0.00775146484375, -0.03271484375, -0.0091552734375, -0.0546875, -0.006317138671875, 0.00555419921875, -0.00933837890625, -0.0052490234375, 0.0111083984375, 0.00872...
[ 1250, 4867, 5622, 111, 127319, 502, 20662, 14449, 53201, 10644, 18151, 15190, 101207, 12638, 3445, 145870, 3395, 81887, 154107, 22027, 18, 4488, 33938, 100, 3871, 678, 9351, 1884, 903, 37873, 112397 ]
[ 0.187744140625, 0.2401123046875, 0.06170654296875, 0.046844482421875, 0.15869140625, 0.129150390625, 0.0178070068359375, 0.022613525390625, 0.1463623046875, 0.0745849609375, 0.1314697265625, 0.0933837890625, 0.1732177734375, 0.055816650390625, 0.06817626953125, 0.0865478515625, 0.030...
embed
21811888_c0
21811888
prolog
0
Title: Open old presumably Prolog &quot;db&quot;-file Problem title: Open old presumably Prolog &quot;db&quot;-file Tags: prolog, database, binary Problem: Open old presumably Prolog "db"-file I've got a binary ".db"-file which dates year 2000. I've been told it is a Prolog database. Is there any way I can view it/expo...
Open old presumably Prolog &quot;db&quot;-file Open old presumably Prolog &quot;db&quot;-file prolog database binary Open Prolog Open old presumably Prolog "db"-file I've got a binary ".db"-file which dates year 2000. I've been told it is a Prolog database. Is there any way I can view it/export the contents to text? If...
[ 0.0263671875, -0.005523681640625, 0.00836181640625, 0.01019287109375, 0.0012969970703125, 0.00653076171875, -0.029296875, -0.003997802734375, 0.00860595703125, -0.03515625, -0.001983642578125, 0.0147705078125, -0.0118408203125, -0.0167236328125, 0.0238037109375, -0.01263427734375, 0....
[ 13527, 10332, 44136, 39, 78458, 1250, 4867, 48073, 29822, 502, 63399, 2394, 6635, 4163, 5, 112474, 6602, 52489, 30745, 442, 83, 3917, 831, 21455, 180758, 10941, 47, 7986, 9803, 30391, 40368, 5117, 124519, 621, 572, 86245, 724, 5561, 201, ...
[ 0.2078857421875, 0.193359375, 0.1424560546875, 0.09771728515625, 0.1170654296875, 0.176513671875, 0.2247314453125, 0.29541015625, 0.2279052734375, 0.1676025390625, 0.248046875, 0.16845703125, 0.146484375, 0.072265625, 0.07354736328125, 0.1246337890625, 0.081298828125, 0.20239257812...
embed
7066634_c1
7066634
prolog
1
'P', 'W', 'W', 'W', 'W', 'W', 'W', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y'), cubo('R', 'R', 'R', 'R', 'R', 'R', 'R', 'R', 'R', 'B', 'B', 'B', 'B', 'B', 'B', 'B', 'B', 'B', 'G', 'G', 'G', 'G', 'G', 'G', 'G', 'G', 'G', 'P', 'P', 'P', 'P', 'P', 'P', 'P', 'P', 'P', 'W', 'W', 'W', 'W', 'W', 'W', 'W', 'W', 'W', 'Y', 'Y'...
'P', 'W', 'W', 'W', 'W', 'W', 'W', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y'), cubo('R', 'R', 'R', 'R', 'R', 'R', 'R', 'R', 'R', 'B', 'B', 'B', 'B', 'B', 'B', 'B', 'B', 'B', 'G', 'G', 'G', 'G', 'G', 'G', 'G', 'G', 'G', 'P', 'P', 'P', 'P', 'P', 'P', 'P', 'P', 'P', 'W', 'W', 'W', 'W', 'W', 'W', 'W', 'W', 'W', 'Y', 'Y'...
[ 0.004119873046875, -0.0035552978515625, -0.003021240234375, 0.0264892578125, -0.0076904296875, 0.01300048828125, 0.00531005859375, 0.01068115234375, 0.01953125, 0.015380859375, 0.004150390625, 0.0296630859375, 0.0166015625, 0.0174560546875, -0.02734375, -0.0023345947265625, -0.007385...
[ 683, 4, 1456, 1723, 314, 837, 132, 1052, 571, 724, 442, 1221, 35166, 678, 1193, 2203, 378, 1328, 420, 997, 4966, 3229, 9790, 903, 25813, 454, 6562, 1542 ]
[ 0.1256103515625, 0.0301971435546875, 0.1490478515625, 0.10888671875, 0.1558837890625, 0.1580810546875, 0.0445556640625, 0.1236572265625, 0.07891845703125, 0.031768798828125, 0.02679443359375, 0.0628662109375, 0.2081298828125, 0.08837890625, 0.17431640625, 0.1243896484375, 0.005249023...
embed
52920529_c0
52920529
prolog
0
Title: Appending to a list using recursion goes into endless loop in Prolog Problem title: Appending to a list using recursion goes into endless loop in Prolog Tags: list, prolog Problem: Appending to a list using recursion goes into endless loop in Prolog I am trying to append lists for every Element in another list b...
Appending to a list using recursion goes into endless loop in Prolog Appending to a list using recursion goes into endless loop in Prolog list prolog recursion Appending Prolog Element append_to_list Res Appending to a list using recursion goes into endless loop in Prolog I am trying to append lists for every Element i...
[ -0.0087890625, 0.01385498046875, 0.00885009765625, -0.0028076171875, -0.0067138671875, -0.001953125, -0.0027008056640625, 0.0242919921875, 0.01806640625, -0.0296630859375, 0.0159912109375, -0.019287109375, -0.006072998046875, 0.00848388671875, 0.0198974609375, -0.005859375, 0.0324707...
[ 5787, 96819, 47, 5303, 17368, 195625, 1830, 60899, 3934, 3564, 9393, 40956, 1250, 4867, 502, 48325, 114689, 71, 188, 6562, 9624, 31577, 11907, 156892, 23, 140992, 27781, 9790, 144851, 1957, 6777, 44691, 35782, 82230, 4034, 13438, 44084, 214 ]
[ 0.0972900390625, 0.1220703125, 0.140625, 0.14599609375, 0.016754150390625, 0.198486328125, 0.1287841796875, 0.01177978515625, 0.11669921875, 0.062744140625, 0.1258544921875, 0.21435546875, 0.12890625, 0.2166748046875, 0.0731201171875, 0.10546875, 0.11181640625, 0.071533203125, 0....
embed
17092959_c0
17092959
prolog
0
Title: Assigning different numbers to variables in a term Problem title: Assigning different numbers to variables in a term Tags: prolog Problem: Assigning different numbers to variables in a term I'm trying to create a predicate, which will generate all possible evalutions of a compound term with numbers, e.g. assign_...
Assigning different numbers to variables in a term Assigning different numbers to variables in a term prolog Assigning assign_distinct_values A-B term_variables Num Assigning different numbers to variables in a term I'm trying to create a predicate, which will generate all possible evalutions of a compound term with nu...
[ -0.004974365234375, -0.0029449462890625, 0.003021240234375, -0.01031494140625, -0.00958251953125, -0.0137939453125, -0.02197265625, 0.0162353515625, 0.006500244140625, 0.00063323974609375, 0.00848388671875, 0.015625, 0.0284423828125, 0.0098876953125, -0.0033416748046875, 0.004486083984...
[ 1301, 31304, 12921, 101935, 47, 77336, 23, 13579, 214, 502, 4867, 95486, 46295, 38893, 18, 27494, 62, 9, 571, 21690, 19736, 52782, 31577, 28282, 1653, 2063, 67, 139392, 756, 7722, 217773, 678, 284, 241, 5608, 11180, 19388, 10078, 50339, 5...
[ 0.07232666015625, 0.2252197265625, 0.214599609375, 0.202880859375, 0.1097412109375, 0.220947265625, 0.03118896484375, 0.2225341796875, 0.016265869140625, 0.1397705078125, 0.1875, 0.2271728515625, 0.05377197265625, 0.128662109375, 0.03857421875, 0.14990234375, 0.069091796875, 0.1064...
embed
37544082_c1
37544082
prolog
1
Enums([],[],_). formaEnums([Ha|NodeListUnique], [H1|CabezaPermNodes], [enum(H1,Ha)|EnumsFormados]):- formaEnums(NodeListUnique, CabezaPermNodes, EnumsFormados). And a trace that is the reason I'm dumbfounded as to me failing this hard: Call:crearEnum([c, b, a], [[1, 2, 3], [1, 3, 2], [2, 1, 3], [2, 3, 1], [3, 1, 2], [3...
Enums([],[],_). formaEnums([Ha|NodeListUnique], [H1|CabezaPermNodes], [enum(H1,Ha)|EnumsFormados]):- formaEnums(NodeListUnique, CabezaPermNodes, EnumsFormados). And a trace that is the reason I'm dumbfounded as to me failing this hard: Call:crearEnum([c, b, a], [[1, 2, 3], [1, 3, 2], [2, 1, 3], [2, 3, 1], [3, 1, 2], [3...
[ -0.00148773193359375, -0.0050048828125, -0.003448486328125, -0.005950927734375, 0.004150390625, 0.0145263671875, -0.006011962890625, -0.004486083984375, 0.013671875, -0.00592041015625, 0.0235595703125, -0.0022430419921875, 0.0203857421875, 0.0137939453125, -0.00860595703125, -0.0128784...
[ 357, 10321, 454, 1483, 7768, 6495, 5021, 112, 154663, 1062, 45602, 841, 418, 372, 596, 15277, 39, 988, 33, 316, 102973, 3617, 131413, 144851, 31635, 167457, 163, 35782, 903, 7941, 26265, 7612, 147, 647, 2606, 238, 876, 138, 106, 14226, ...
[ 0.1475830078125, 0.27978515625, 0.01666259765625, 0.17041015625, 0.09393310546875, 0.1365966796875, 0.1466064453125, 0.09405517578125, 0.1212158203125, 0.000823974609375, 0.158935546875, 0.042694091796875, 0.024627685546875, 0.04833984375, 0.07861328125, 0.1007080078125, 0.0363769531...
embed
47742438_c0
47742438
prolog
0
Title: Prolog: Swapping two halves of a list Problem title: Prolog: Swapping two halves of a list Tags: prolog Problem: Prolog: Swapping two halves of a list I am writing a predicate in prolog that will break a list with an even number of variables into two halves and swap them. For example [a,b,c,d] --> [c,d,a,b]. app...
Prolog: Swapping two halves of a list Prolog: Swapping two halves of a list prolog Prolog Swapping List Head Tail Rest Prolog: Swapping two halves of a list I am writing a predicate in prolog that will break a list with an even number of variables into two halves and swap them. For example [a,b,c,d] --> [c,d,a,b]. I wo...
[ 0.003997802734375, 0.0274658203125, 0.0218505859375, -0.00165557861328125, -0.0069580078125, 0.0142822265625, -0.021484375, -0.00775146484375, 0.0155029296875, 0.0068359375, 0.0123291015625, 0.00787353515625, -0.006439208984375, 0.01177978515625, 0.0009002685546875, 0.00070571899414062...
[ 1250, 4867, 43062, 26783, 6626, 106706, 7, 5303, 502, 32036, 44816, 1218, 379, 49756, 111, 32562, 1653, 2063, 67, 1221, 36356, 3853, 14012, 77336, 3934, 136, 202317, 2856, 238, 71, 129908, 275, 2806, 41206, 4488, 61998, 284, 164917, 105950,...
[ 0.1568603515625, 0.2113037109375, 0.22705078125, 0.09619140625, 0.17626953125, 0.207763671875, 0.0655517578125, 0.2012939453125, 0.1390380859375, 0.1842041015625, 0.1121826171875, 0.0784912109375, 0.055389404296875, 0.127685546875, 0.002899169921875, 0.10687255859375, 0.1224365234375...
embed
46603319_c1
46603319
prolog
1
) It seems that the given predicate I pass into compare_to_predicate has to have the type List as seen in ?- compare_to_predicate([8,13,1,500], [is_odd], X). and ?- compare_to_predicate([8,13,1,500], [greater_than, 10], X). I am currently simply passing a normal predicate into the Term. I'm not quite sure on how I'm su...
) It seems that the given predicate I pass into compare_to_predicate has to have the type List as seen in ?- compare_to_predicate([8,13,1,500], [is_odd], X). and ?- compare_to_predicate([8,13,1,500], [greater_than, 10], X). I am currently simply passing a normal predicate into the Term. I'm not quite sure on how I'm su...
[ 0.00250244140625, 0.0225830078125, -0.000888824462890625, -0.0111083984375, -0.0250244140625, 0.032958984375, 0.019287109375, -0.00653076171875, -0.0033416748046875, -0.025634765625, 0.006805419921875, 0.00860595703125, 0.007171630859375, -0.005096435546875, -0.00616455078125, -0.01977...
[ 37202, 34475, 1653, 2063, 67, 87, 27875, 3934, 69101, 188, 19714, 1556, 10644, 32036, 51592, 206029, 363, 4283, 164, 13606, 1193, 705, 7134, 46429, 21732, 209, 82424, 452, 6953, 3638, 2994, 39, 134598, 841, 58745, 9874, 379, 97249, 18770, ...
[ 0.06134033203125, 0.069091796875, 0.2020263671875, 0.23583984375, 0.0992431640625, 0.008026123046875, 0.15380859375, 0.092041015625, 0.23779296875, 0.2027587890625, 0.202880859375, 0.010406494140625, 0.18701171875, 0.1492919921875, 0.0146026611328125, 0.117919921875, 0.11572265625, ...
embed
47761982_c0
47761982
prolog
0
Title: Perfect Number in Prolog Problem title: Perfect Number in Prolog Tags: prolog, perfect-numbers Problem: Perfect Number in Prolog So I'm trying to work out in Prolog how to take an input, and return whether it is a perfect number or not. Currently i'm close but can't figure out why it isn't working the way I want...
Perfect Number in Prolog Perfect Number in Prolog prolog perfect-numbers Perfect Number Prolog TT1 N-1 X-1 Perfect Number in Prolog So I'm trying to work out in Prolog how to take an input, and return whether it is a perfect number or not. Currently i'm close but can't figure out why it isn't working the way I want. I ...
[ -0.00921630859375, 0.0152587890625, 0.0140380859375, -0.0125732421875, 0.0103759765625, -0.00433349609375, 0.0218505859375, -0.0089111328125, 0.0068359375, -0.024169921875, 0.0159912109375, -0.00439453125, -0.0159912109375, 0.008056640625, 0.0167236328125, 0.008056640625, 0.004760742...
[ 73171, 103332, 23, 1250, 4867, 502, 15787, 2606, 1297, 62497, 418, 541, 5759, 1193, 5646, 107730, 30646, 36766, 83, 10, 14012, 707, 959, 20903, 15400, 20697, 3444, 51515, 8305, 195625, 1830, 1745, 839, 69112, 757, 136, 188, 1803, 49814, 2...
[ 0.2493896484375, 0.2052001953125, 0.03668212890625, 0.160888671875, 0.243408203125, 0.1116943359375, 0.234619140625, 0.094970703125, 0.13720703125, 0.1689453125, 0.06915283203125, 0.0791015625, 0.1268310546875, 0.0919189453125, 0.088134765625, 0.2022705078125, 0.1458740234375, 0.04...
embed
51127042_c0
51127042
prolog
0
Title: How to interface Prolog CLP(R) with real vectors? Problem title: How to interface Prolog CLP(R) with real vectors? Tags: clp, clpr, vector, prolog Problem: How to interface Prolog CLP(R) with real vectors? I'm using Prolog to solve simple geometrical equations. For example, I can define all points p3 on a line p...
How to interface Prolog CLP(R) with real vectors? How to interface Prolog CLP(R) with real vectors? clp clpr vector prolog How Prolog CLP How to interface Prolog CLP(R) with real vectors? I'm using Prolog to solve simple geometrical equations. For example, I can define all points p3 on a line passing trough two points ...
[ -0.005218505859375, 0.004547119140625, -0.00830078125, 0.03271484375, 0.001678466796875, 0.0145263671875, 0.00567626953125, -0.011474609375, 0.0089111328125, -0.042724609375, -0.004669189453125, 0.0196533203125, -0.0262451171875, -0.00130462646484375, -0.00148773193359375, 0.015625, ...
[ 11249, 47, 101758, 1250, 4867, 313, 37352, 1052, 678, 2773, 22834, 22230, 33139, 254, 10287, 173, 18770, 502, 17368, 86869, 8781, 84183, 13722, 831, 61924, 756, 26847, 915, 363, 13315, 452, 6953, 3428, 58968, 6626, 304, 237, 1653, 2063, 2...
[ 0.1209716796875, 0.059539794921875, 0.2457275390625, 0.1761474609375, 0.25732421875, 0.0816650390625, 0.276123046875, 0.1634521484375, 0.1351318359375, 0.1910400390625, 0.20458984375, 0.1387939453125, 0.06549072265625, 0.142822265625, 0.1715087890625, 0.1473388671875, 0.1070556640625...
embed
60343709_c0
60343709
prolog
0
Title: Identify whether an object comes before another object in a list Problem title: Identify whether an object comes before another object in a list Tags: prolog Problem: Identify whether an object comes before another object in a list I have this clause that says an object is directly before another object in the l...
Identify whether an object comes before another object in a list Identify whether an object comes before another object in a list prolog Identify Checks Finds Identify whether an object comes before another object in a list I have this clause that says an object is directly before another object in the list. I'm lookin...
[ 0.00738525390625, 0.0240478515625, 0.00994873046875, 0.01092529296875, -0.01513671875, 0.0147705078125, -0.0037994384765625, 0.00168609619140625, 0.030029296875, -0.015869140625, 0.0034942626953125, -0.002655029296875, 0.00091552734375, -0.020751953125, -0.00994873046875, -0.0126342773...
[ 71257, 40383, 36766, 36746, 32497, 8108, 15700, 23, 5303, 502, 4867, 38679, 26040, 903, 70731, 13, 83, 105237, 16487, 196219, 4537, 20650, 186, 2499, 31913, 25737, 109312, 12765, 100, 7103 ]
[ 0.1807861328125, 0.128173828125, 0.12158203125, 0.20703125, 0.1436767578125, 0.184326171875, 0.05657958984375, 0.054931640625, 0.202392578125, 0.1044921875, 0.15234375, 0.179443359375, 0.1468505859375, 0.00201416015625, 0.07757568359375, 0.000518798828125, 0.052520751953125, 0.1364...
embed
69421445_c0
69421445
prolog
0
Title: How do you solve Russian nesting dolls question with prolog? Problem title: How do you solve Russian nesting dolls question with prolog? Tags: prolog Problem: How do you solve Russian nesting dolls question with prolog? Hi I am new to prolog and am trying to solve the question below: /* 2. Russian nesting dolls:...
How do you solve Russian nesting dolls question with prolog? How do you solve Russian nesting dolls question with prolog? prolog the How Russian Write Then Predicates Rules How do you solve Russian nesting dolls question with prolog? Hi I am new to prolog and am trying to solve the question below: Why does the followin...
[ 0.0006256103515625, 0.0260009765625, 0.0242919921875, 0.035888671875, -0.00775146484375, 0.033447265625, -0.0308837890625, 0.007293701171875, -0.015869140625, -0.0322265625, 0.01171875, -0.0169677734375, -0.021484375, 0.0194091796875, 0.033447265625, 0.018798828125, 0.007049560546875...
[ 11249, 86869, 102374, 4909, 1916, 54, 42458, 9655, 678, 502, 4867, 601, 18781, 47009, 7145, 2063, 1636, 139118, 44084, 25632, 41, 1294, 30646, 98320, 64457, 29568 ]
[ 0.018035888671875, 0.14404296875, 0.2301025390625, 0.134521484375, 0.1151123046875, 0.1195068359375, 0.1256103515625, 0.08538818359375, 0.023956298828125, 0.1142578125, 0.197021484375, 0.05035400390625, 0.1483154296875, 0.07354736328125, 0.1312255859375, 0.1380615234375, 0.0323486328...
embed
13728938_c0
13728938
prolog
0
Title: String manipulation in prolog Problem title: String manipulation in prolog Tags: prolog Problem: String manipulation in prolog Premise So I'm trying to break up a given String into a list of characters, these characters will then be edited/changed and reassigned into the list after which the list will be reconst...
String manipulation in prolog String manipulation in prolog prolog ABCDEFG EFGHIJK String manipulation in prolog Premise So I'm trying to break up a given String into a list of characters, these characters will then be edited/changed and reassigned into the list after which the list will be reconstructed back into a St...
[ 0.012939453125, -0.001953125, -0.004241943359375, 0.0274658203125, -0.003753662109375, 0.010009765625, -0.021728515625, 0.00213623046875, 0.00848388671875, 0.0022735595703125, 0.010009765625, -0.0174560546875, -0.0267333984375, 0.0032196044921875, -0.01239013671875, 0.005584716796875, ...
[ 23351, 214, 45258, 1363, 502, 4867, 23, 47457, 202001, 724, 241, 123254, 21159, 63859, 38394, 31577, 36356, 1257, 34475, 3934, 5303, 124850, 27211, 152028, 456, 31304, 122905, 89829, 4420, 27781, 186944, 21656, 2263, 284, 571, 441, 919, 10220...
[ 0.24658203125, 0.1787109375, 0.2269287109375, 0.056610107421875, 0.1595458984375, 0.2274169921875, 0.0208587646484375, 0.0997314453125, 0.215576171875, 0.10302734375, 0.048492431640625, 0.09130859375, 0.104248046875, 0.1690673828125, 0.009033203125, 0.032470703125, 0.1009521484375, ...
embed
65084159_c0
65084159
prolog
0
Title: Insert element after every element in list in Prolog Problem title: Insert element after every element in list in Prolog Tags: list, prolog Problem: Insert element after every element in list in Prolog I want to write a predicate that will insert a given element after every element in a list and will print resul...
Insert element after every element in list in Prolog Insert element after every element in list in Prolog list prolog Insert Prolog Insert element after every element in list in Prolog I want to write a predicate that will insert a given element after every element in a list and will print resulting list. I want to use...
[ -0.005950927734375, 0.00823974609375, 0.004608154296875, 0.018798828125, -0.02001953125, 0.041259765625, -0.01239013671875, -0.0189208984375, -0.000335693359375, -0.03466796875, 0.031982421875, -0.02685546875, -0.016357421875, -0.02197265625, 0.01025390625, 0.011474609375, 0.01757812...
[ 360, 33657, 12830, 7103, 11907, 23, 5303, 1250, 4867, 502, 3444, 33022, 1653, 2063, 67, 183540, 34475, 28412, 16750, 456, 64240, 6889, 155761, 80389, 757, 206808, 216969, 128188, 617, 124940, 2389, 11675, 1884, 15190, 133063, 96386, 4734, 438...
[ 0.060791015625, 0.195556640625, 0.2059326171875, 0.205810546875, 0.183837890625, 0.051849365234375, 0.165283203125, 0.1524658203125, 0.228759765625, 0.081298828125, 0.02191162109375, 0.052978515625, 0.10498046875, 0.135009765625, 0.07763671875, 0.20703125, 0.012725830078125, 0.1121...
embed
38955604_c0
38955604
prolog
0
Title: Prolog Predicates Exam Questions Problem title: Prolog Predicates Exam Questions Tags: prolog Problem: Prolog Predicates Exam Questions I'm studying for an Artificial Intelligence exam and struggling to understand how to answer certain questions focusing on Predicates. The two questions in particular are: Define...
Prolog Predicates Exam Questions Prolog Predicates Exam Questions prolog Prolog Predicates Exam Questions stage_name Name same_show same_continent Prolog Predicates Exam Questions I'm studying for an Artificial Intelligence exam and struggling to understand how to answer certain questions focusing on Predicates. The tw...
[ 0.0233154296875, 0.008544921875, 0.004486083984375, 0.024658203125, -0.020263671875, 0.0291748046875, -0.007476806640625, -0.009765625, 0.0017547607421875, -0.0087890625, -0.0019989013671875, -0.013671875, -0.01104736328125, 0.020263671875, -0.003692626953125, 0.005859375, 0.01684570...
[ 1250, 4867, 7145, 2063, 1636, 89536, 68185, 502, 36541, 5701, 31374, 216118, 35187, 231996, 157075, 42276, 237875, 28219, 35166, 17582, 32153, 6626, 262, 64552, 10, 1653, 67, 68991, 28960, 601, 18781, 51776, 10750, 29568, 2174, 15044, 39329, ...
[ 0.17138671875, 0.240478515625, 0.2052001953125, 0.284912109375, 0.10675048828125, 0.1805419921875, 0.181640625, 0.118408203125, 0.108642578125, 0.150390625, 0.125, 0.158447265625, 0.007537841796875, 0.140869140625, 0.1351318359375, 0.112060546875, 0.06292724609375, 0.04904174804687...
embed
53244189_c0
53244189
prolog
0
Title: Get product of the list items by using recursion in Prolog? Problem title: Get product of the list items by using recursion in Prolog? Tags: prolog, successor-arithmetics Problem: Get product of the list items by using recursion in Prolog? How do you get a product of the list items by using recursion? If I ask: ...
Get product of the list items by using recursion in Prolog? Get product of the list items by using recursion in Prolog? prolog successor-arithmetics recursion Get Prolog Res Call Fail Get product of the list items by using recursion in Prolog? How do you get a product of the list items by using recursion? If I ask: The...
[ -0.0166015625, 0.0184326171875, 0.00191497802734375, 0.00604248046875, -0.01318359375, -0.00933837890625, -0.008544921875, 0.01495361328125, -0.0045166015625, -0.01953125, 0.025390625, 0.0096435546875, -0.028564453125, -0.0174560546875, 0.01904296875, -0.0084228515625, 0.049072265625...
[ 20779, 12996, 111, 5303, 55769, 17368, 195625, 1830, 1250, 4867, 502, 39457, 42, 8962, 282, 9624, 26265, 190355, 23, 11249, 2046, 390, 26458, 16750, 5608, 4966, 700, 4517, 44691, 50339, 37842, 16690, 83, 127664, 1363, 43240, 5885, 144851, 7...
[ 0.1080322265625, 0.25732421875, 0.076416015625, 0.1768798828125, 0.1661376953125, 0.0888671875, 0.22900390625, 0.18896484375, 0.151123046875, 0.259765625, 0.094482421875, 0.150146484375, 0.04412841796875, 0.08740234375, 0.036163330078125, 0.113037109375, 0.148681640625, 0.177856445...
embed
5370527_c0
5370527
prolog
0
Title: Cryptogram solver in Prolog Problem title: Cryptogram solver in Prolog Tags: clpfd, prolog Problem: Cryptogram solver in Prolog I have to solve a cryptogram which looks like this: ABC / DEF = 0.GHGHGH... where length of variables may be different. Also repetition may be different (like 0.XYZXYZ...). I've written...
Cryptogram solver in Prolog Cryptogram solver in Prolog clpfd prolog Cryptogram Prolog ABC GHGHGH Cryptogram solver in Prolog I have to solve a cryptogram which looks like this: where length of variables may be different. Also repetition may be different (like 0.XYZXYZ...). I've written a piece of code which I thought ...
[ 0.0030517578125, 0.004669189453125, -0.00079345703125, 0.01080322265625, -0.0267333984375, -0.005462646484375, -0.007720947265625, 0.01348876953125, 0, -0.00994873046875, -0.0029296875, 0.0091552734375, 0.001373291015625, -0.008056640625, -0.00128936767578125, -0.005340576171875, 0.0...
[ 201543, 25561, 3115, 814, 23, 1250, 4867, 39557, 71, 502, 47457, 41877, 765, 86869, 215637, 33342, 1884, 903, 140909, 77336, 1543, 12921, 57346, 5062, 757, 143907, 1511, 59121, 63847, 18151, 17569, 4488, 1284, 22027, 18, 71924, 237, 136791, ...
[ 0.1824951171875, 0.1917724609375, 0.15869140625, 0.1627197265625, 0.06982421875, 0.176025390625, 0.24267578125, 0.03802490234375, 0.047210693359375, 0.1121826171875, 0.1480712890625, 0.2086181640625, 0.0197296142578125, 0.161376953125, 0.1749267578125, 0.145751953125, 0.0867919921875...
embed
43476971_c2
43476971
prolog
2
my list. What am I doing wrong? Edit: I revised the code slightly: bubblesort([],[]). bubblesort([X,Y|List], [Y,X|SortedList]) :- X>Y, bubblesort(List, SortedList). bubblesort([N|List], [N|SortedList]) :- bubblesort(List, SortedList). bubble(List, SortedList) :- bubblesort(List, Sorted), ( check(Sorted) -> SortedList=...
my list. What am I doing wrong? Edit: I revised the code slightly: bubblesort([],[]). bubblesort([X,Y|List], [Y,X|SortedList]) :- X>Y, bubblesort(List, SortedList). bubblesort([N|List], [N|SortedList]) :- bubblesort(List, SortedList). bubble(List, SortedList) :- bubblesort(List, Sorted), ( check(Sorted) -> SortedList=...
[ 0.00823974609375, 0.0181884765625, 0.014404296875, -0.006378173828125, -0.023193359375, 0.01544189453125, -0.0166015625, -0.01544189453125, 0.001739501953125, 0.04443359375, 0.01373291015625, 0.01458740234375, -0.0079345703125, -0.0150146484375, -0.01336669921875, -0.009033203125, 0....
[ 759, 5303, 4865, 444, 87, 20594, 44691, 15226, 5281, 18151, 161549, 373, 73163, 62351, 132, 1542, 1723, 154663, 158240, 15772, 1193, 2740, 53666, 12765, 25632, 140992, 32036, 2203, 11565, 116, 20, 16665, 305, 6460, 382, 18197, 534, 2678, 32...
[ 0.1182861328125, 0.245849609375, 0.0462646484375, 0.06951904296875, 0.039794921875, 0.1151123046875, 0.1837158203125, 0.09027099609375, 0.0550537109375, 0.1856689453125, 0.07666015625, 0.0849609375, 0.1937255859375, 0.242919921875, 0.04266357421875, 0.080322265625, 0.1109619140625, ...
embed
40270160_c0
40270160
prolog
0
Title: Solving a system of (more than two) linear inequalities Problem title: Solving a system of (more than two) linear inequalities Tags: inequalities, sympy, sage, prolog, haskell Problem: Solving a system of (more than two) linear inequalities If I use diophantine(2*x+3*y-5*z-77) I receive this result. {(t_0, -9*t_...
Solving a system of (more than two) linear inequalities Solving a system of (more than two) linear inequalities inequalities sympy sage prolog haskell NotImplementedError Solving y-5 z-77 t_0 t_1 reduce_inequalities Solving a system of (more than two) linear inequalities If I use I receive this result. Fine so far. How...
[ -0.0003223419189453125, 0.00180816650390625, -0.003570556640625, 0.033447265625, -0.0166015625, 0.002960205078125, -0.008056640625, 0.0283203125, -0.0047607421875, -0.017822265625, 0.01434326171875, 0.01806640625, 0.00555419921875, 0.019287109375, -0.0003147125244140625, 0.032470703125...
[ 6678, 6496, 5426, 17678, 3501, 6626, 192617, 23, 13, 71723, 31075, 111, 954, 2676, 53, 57, 429, 502, 4867, 1556, 142508, 11205, 128878, 19929, 18468, 31611, 113, 10342, 97, 14546, 808, 2389, 115187, 34390, 1212, 4527, 87, 53299, 903, 1675...
[ 0.1517333984375, 0.1168212890625, 0.152099609375, 0.096435546875, 0.07672119140625, 0.123779296875, 0.1832275390625, 0.132568359375, 0.1396484375, 0.20654296875, 0.1153564453125, 0.05902099609375, 0.0701904296875, 0.1253662109375, 0.1778564453125, 0.131591796875, 0.1580810546875, 0...
embed
40710838_c0
40710838
prolog
0
Title: Why doesnt&#x27; probe execute? Problem title: Why doesnt&#x27; probe execute? Tags: prolog, functional-programming Problem: Why doesnt' probe execute? Why does Probe not execute? This is not the whole program, but should be sufficient code to find an answer. Yes, I already scoured Stack Overflow for an answer b...
Why doesnt&#x27; probe execute? Why doesnt&#x27; probe execute? prolog functional-programming Why Suf display_board Your Coordinates DEBUG located_at Who style_check Why doesnt' probe execute? Why does Probe not execute? This is not the whole program, but should be sufficient code to find an answer. Yes, I already scou...
[ 0.01806640625, 0.007598876953125, 0.0091552734375, 0.021484375, -0.00823974609375, 0.006103515625, -0.01470947265625, -0.00201416015625, -0.004241943359375, -0.02197265625, 0.00152587890625, 0.02392578125, -0.0213623046875, -0.00933837890625, 0.006561279296875, -0.002685546875, -0.01...
[ 44084, 22027, 18, 3768, 502, 372, 71924, 13, 4867, 123309, 28966, 142830, 44116, 24351, 1311, 43297, 1636, 1514, 15639, 724, 105866, 257, 40469, 20623, 78292, 14602, 1250, 959, 1528, 129980, 18151, 35166, 118664, 4358, 2831, 5665, 1177, 1264,...
[ 0.124267578125, 0.11474609375, 0.1370849609375, 0.0948486328125, 0.222900390625, 0.2109375, 0.2071533203125, 0.10888671875, 0.2423095703125, 0.13134765625, 0.077392578125, 0.1807861328125, 0.137939453125, 0.180908203125, 0.061981201171875, 0.1729736328125, 0.010528564453125, 0.1356...
embed
13097079_c0
13097079
prolog
0
Title: Prolog parse tree generation fails Problem title: Prolog parse tree generation fails Tags: prolog, dcg Problem: Prolog parse tree generation fails I have the following prolog rules. b(b(true)) --> [true]. b(b(false)) --> [false]. b(b(E,[=],E)) --> e(E),[=],e(E). b(b([not],B)) --> [not],b(B). e(e(I)) --> i(I). e(...
Prolog parse tree generation fails Prolog parse tree generation fails prolog dcg Prolog Prolog parse tree generation fails I have the following prolog rules. But I dunno why fails. I tried to debug the code. 4 is not getting matched with n(n(4)). I couldn't understand wat the problem is.
[ 0.0238037109375, 0.01025390625, 0.0098876953125, 0.002716064453125, -0.006317138671875, 0.028564453125, -0.0380859375, -0.01470947265625, -0.00408935546875, 0.00177764892578125, -0.0194091796875, -0.042724609375, 0.003936767578125, -0.01312255859375, 0.024169921875, 0.01202392578125, ...
[ 1250, 4867, 366, 184, 53201, 58093, 35782, 502, 238, 177, 7, 25632, 91736, 157, 15400, 85779, 18151, 201, 959, 20949, 14858, 678, 653, 19, 99217, 28219, 793, 2967 ]
[ 0.1416015625, 0.2052001953125, 0.123779296875, 0.043487548828125, 0.1968994140625, 0.1517333984375, 0.171875, 0.11932373046875, 0.0188751220703125, 0.057647705078125, 0.03863525390625, 0.033447265625, 0.119384765625, 0.020538330078125, 0.043670654296875, 0.09283447265625, 0.098449707...
embed
73790259_c0
73790259
prolog
0
Title: why prolog is entering infinite loop? Problem title: why prolog is entering infinite loop? Tags: prolog, failure-slice Problem: why prolog is entering infinite loop? I made this code so basically, it detects if the array in the first argument is the reverse array in the second argument, it works well but when I ...
why prolog is entering infinite loop? why prolog is entering infinite loop? prolog failure-slice Result Waiting Prolog Close why prolog is entering infinite loop? I made this code so basically, it detects if the array in the first argument is the reverse array in the second argument, it works well but when I want to ha...
[ 0.0091552734375, 0.0159912109375, 0.0194091796875, 0.01544189453125, -0.0186767578125, -0.0076904296875, 0.01092529296875, 0.0194091796875, 0.01007080078125, -0.0262451171875, 0.0289306640625, 0.01385498046875, -0.0031280517578125, -0.00860595703125, 0.0024871826171875, 0.0119018554687...
[ 15400, 502, 4867, 83, 22, 33558, 54241, 13, 40956, 137578, 13348, 126684, 175254, 1250, 18151, 96391, 10298, 53, 10750, 39531, 184, 17932, 43240, 5299, 5281, 68772, 7108, 35166, 41206, 98320, 3638, 30957, 3034, 29569, 76811 ]
[ 0.1025390625, 0.15283203125, 0.2393798828125, 0.014434814453125, 0.0821533203125, 0.118408203125, 0.1312255859375, 0.090576171875, 0.2012939453125, 0.1298828125, 0.06781005859375, 0.0909423828125, 0.09375, 0.1517333984375, 0.0863037109375, 0.08917236328125, 0.080810546875, 0.050201...
embed
74238564_c0
74238564
prolog
0
Title: What is SLG resolution in Prolog? Problem title: What is SLG resolution in Prolog? Tags: prolog, prolog-metainterpreter Problem: What is SLG resolution in Prolog? I want to understand how does SLG resolution work. But I don't know what SLG is (what does it stand for?). The resource I found are Query evaluation u...
What is SLG resolution in Prolog? What is SLG resolution in Prolog? prolog prolog-metainterpreter What SLG Prolog Efficient Implementations What is SLG resolution in Prolog? I want to understand how does SLG resolution work. But I don't know what SLG is (what does it stand for?). The resource I found are Query evaluati...
[ -0.0029449462890625, 0.01019287109375, 0.007110595703125, -0.006103515625, -0.0198974609375, 0.006500244140625, -0.00616455078125, 0.001495361328125, 0.001495361328125, -0.00372314453125, -0.0091552734375, 0.0260009765625, -0.037841796875, 0.005859375, 0.012451171875, 0.027587890625, ...
[ 4865, 83, 159, 39303, 158839, 23, 1250, 4867, 502, 35273, 158288, 56, 24500, 45964, 153941, 28219, 3642, 4488, 3714, 2367, 124409, 9157, 100, 177953, 58836, 219836, 151645, 484, 109109, 15869, 208124, 4537, 62775, 41, 601, 123378, 171458, 140...
[ 0.07763671875, 0.05975341796875, 0.1131591796875, 0.265625, 0.2288818359375, 0.0771484375, 0.163818359375, 0.2308349609375, 0.130859375, 0.1392822265625, 0.1864013671875, 0.07733154296875, 0.101318359375, 0.0452880859375, 0.1343994140625, 0.060028076171875, 0.010894775390625, 0.091...
embed
36102636_c1
36102636
prolog
1
, X). parents (Pa, Ma, Y). wife (Mum). wife (Kydd). wife (Elizabeth). wife (Sarah). wife (Anne). wife (Diana). daughter (Zara). daughter (Beatrice). son (Charles). son (Andrew). son (Edward). son (William). son (Harry). son (Peter). son (Eugenie). goal r) Test your Prolog program by asking it the following questions. N...
, X). parents (Pa, Ma, Y). wife (Mum). wife (Kydd). wife (Elizabeth). wife (Sarah). wife (Anne). wife (Diana). daughter (Zara). daughter (Beatrice). son (Charles). son (Andrew). son (Edward). son (William). son (Harry). son (Peter). son (Eugenie). goal r) Test your Prolog program by asking it the following questions. N...
[ 0.0196533203125, 0.017578125, 0.0098876953125, 0.013671875, -0.0262451171875, 0.01068115234375, -0.00958251953125, 0.000614166259765625, 0.005096435546875, -0.026611328125, 0.005859375, -0.0218505859375, -0.0262451171875, 0.00738525390625, -0.00982666015625, 0.004669189453125, 0.0099...
[ 6, 4, 1193, 194, 27863, 15, 8335, 911, 990, 58386, 594, 316, 605, 13974, 39998, 86077, 5464, 3962, 7251, 86, 72838, 76, 76849, 16737, 219, 6766, 11, 19077, 775, 84068, 1577, 148233, 19364, 222523, 30404, 128503, 52283, 429, 701, 69236, ...
[ 0.0272216796875, 0.04632568359375, 0.1236572265625, 0.083984375, 0.2474365234375, 0.040252685546875, 0.1195068359375, 0.1278076171875, 0.116455078125, 0.17626953125, 0.053924560546875, 0.14794921875, 0.055145263671875, 0.2337646484375, 0.063232421875, 0.1319580078125, 0.0772705078125...
embed
43874308_c0
43874308
prolog
0
Title: SWI-Prolog predicates Problem title: SWI-Prolog predicates Tags: prolog Problem: SWI-Prolog predicates I am very new to prolog and my prof seems to have forgotten to teach the class its basic use. He gave us the task of writing predicates stmt and stmts, with the first predicate looking like: stmt([pass|X], X). ...
SWI-Prolog predicates SWI-Prolog predicates prolog SWI-Prolog List1 List2 SWI-Prolog predicates I am very new to prolog and my prof seems to have forgotten to teach the class its basic use. He gave us the task of writing predicates stmt and stmts, with the first predicate looking like: which then passes the test code s...
[ 0.0036163330078125, 0.000621795654296875, -0.005645751953125, 0.01123046875, -0.0164794921875, 0.005523681640625, 0.0140380859375, 0.0064697265625, 0.005340576171875, -0.03662109375, 0.0014801025390625, -0.008544921875, -0.024658203125, -0.005584716796875, 0.005157470703125, 0.02795410...
[ 159, 38969, 10752, 4867, 1653, 2063, 1636, 9, 502, 32036, 304, 3525, 759, 15214, 240764, 94957, 70, 18507, 62822, 4527, 66211, 32562, 6138, 39, 18, 136, 933, 5117, 16487, 1884, 10922, 3034, 18151, 4032, 425, 43452, 64113, 5557, 17932, 283...
[ 0.0679931640625, 0.2186279296875, 0.145263671875, 0.208251953125, 0.185791015625, 0.233154296875, 0.1241455078125, 0.001861572265625, 0.14453125, 0.1024169921875, 0.00262451171875, 0.026641845703125, 0.014404296875, 0.0794677734375, 0.04412841796875, 0.042449951171875, 0.003845214843...
embed
31512938_c0
31512938
prolog
0
Title: Find the term with the lowest 2nd argument, in a list, with Prolog Problem title: Find the term with the lowest 2nd argument, in a list, with Prolog Tags: prolog Problem: Find the term with the lowest 2nd argument, in a list, with Prolog I have a list like this: L = [range(2,3), range(5,6), range(10,9), range(-2...
Find the term with the lowest 2nd argument, in a list, with Prolog Find the term with the lowest 2nd argument, in a list, with Prolog prolog Find Prolog find_n_make_first Find the term with the lowest 2nd argument, in a list, with Prolog I have a list like this: Now, I need to make the term range(-5,-30) the first elem...
[ 0.00848388671875, 0.0027313232421875, 0.0101318359375, -0.005126953125, -0.00921630859375, 0.00714111328125, 0.0084228515625, -0.00024127960205078125, -0.00506591796875, -0.00982666015625, 0.0301513671875, 0.016357421875, -0.0029754638671875, -0.006805419921875, 0.0030975341796875, 0.0...
[ 26040, 13579, 678, 459, 25617, 116, 2208, 10750, 5303, 1250, 4867, 70, 502, 7413, 19, 55898, 13448, 271, 3249, 37457, 10342, 27000, 5117, 12830, 990, 69407, 55076, 1193, 20697 ]
[ 0.1112060546875, 0.2279052734375, 0.063232421875, 0.18017578125, 0.232421875, 0.171142578125, 0.1497802734375, 0.21875, 0.1636962890625, 0.1719970703125, 0.2291259765625, 0.026458740234375, 0.1162109375, 0.133056640625, 0.011444091796875, 0.085693359375, 0.091796875, 0.008209228515...
embed
50072576_c0
50072576
prolog
0
Title: Replace first K occurrences of 1 with any number say 8 in a list in Prolog Problem title: Replace first K occurrences of 1 with any number say 8 in a list in Prolog Tags: xsb, prolog Problem: Replace first K occurrences of 1 with any number say 8 in a list in Prolog Replace the first K occurrences of a number wi...
Replace first K occurrences of 1 with any number say 8 in a list in Prolog Replace first K occurrences of 1 with any number say 8 in a list in Prolog xsb prolog Replace Prolog replace_first_k Res Res1 Replace first K occurrences of 1 with any number say 8 in a list in Prolog Replace the first K occurrences of a number ...
[ 0.006072998046875, 0.018798828125, 0.016845703125, -0.0098876953125, -0.0128173828125, 0.000553131103515625, -0.0341796875, 0.0011138916015625, 0.0113525390625, 0.00848388671875, 0.018798828125, -0.0036163330078125, -0.00958251953125, -0.003997802734375, 0.0206298828125, 0.001228332519...
[ 853, 23935, 5117, 341, 74918, 42, 69098, 106, 678, 2499, 14012, 382, 5303, 1250, 4867, 1022, 275, 502, 91995, 13448, 271, 92, 9624, 418, 23, 137399, 390, 3688, 1653, 2063, 6713, 140992, 18151, 2060, 37202, 20697, 4734, 1193, 615, 44691 ]
[ 0.0621337890625, 0.1529541015625, 0.1256103515625, 0.178955078125, 0.1666259765625, 0.1204833984375, 0.06732177734375, 0.1336669921875, 0.01092529296875, 0.007537841796875, 0.1488037109375, 0.189453125, 0.15478515625, 0.1484375, 0.23095703125, 0.004119873046875, 0.108642578125, 0.1...
embed
65211110_c0
65211110
prolog
0
Title: How to create a infinite list if input is not delcared? Problem title: How to create a infinite list if input is not delcared? Tags: prolog Problem: How to create a infinite list if input is not delcared? I have a written a functional function that tells the user if a list is ordered or not, given the list input...
How to create a infinite list if input is not delcared? How to create a infinite list if input is not delcared? prolog How _1322 _1323 _1324 _1325 How to create a infinite list if input is not delcared? I have a written a functional function that tells the user if a list is ordered or not, given the list inputted. Howe...
[ 0.0157470703125, -0.007568359375, 0.00213623046875, -0.007080078125, 0.005126953125, 0.025146484375, 0.0021820068359375, -0.016357421875, -0.000484466552734375, -0.0169677734375, 0.02099609375, -0.006072998046875, -0.004547119140625, -0.006866455078125, 0.00982666015625, 0.027099609375...
[ 11249, 28282, 54241, 13, 5303, 2174, 107730, 83, 959, 146, 8804, 71, 47, 10, 502, 4867, 2681, 4015, 3742, 2357, 2588, 59121, 123309, 32354, 14192, 38937, 12989, 77336, 237, 64457, 1884, 140992, 142, 43581, 18151, 3444, 48107, 51312, 24189, ...
[ 0.054290771484375, 0.1689453125, 0.1611328125, 0.11376953125, 0.2218017578125, 0.08172607421875, 0.19384765625, 0.0985107421875, 0.15185546875, 0.09619140625, 0.135009765625, 0.0802001953125, 0.009002685546875, 0.039093017578125, 0.0272674560546875, 0.0848388671875, 0.0079345703125, ...
embed
28270558_c1
28270558
prolog
1
, _G4532+_G4535+_G4538#=1, _G4535 in 0..1, _G4523+_G4535+_G4547#=1, _G4523 in 0..1, _G4526 in 0..1, _G4526+_G4538+_G4550#=1, _G4538 in 0..1, _G4550 in 0..1, _G4544+_G4547+_G4550#=1, _G4544 in 0..1, _G4547 in 0..1. But when I replace my puzzle with [[_,0,0],[0,_,0],[0,0,_]] , the result is correct: ?- problem([1,0,0,1,0...
, _G4532+_G4535+_G4538#=1, _G4535 in 0..1, _G4523+_G4535+_G4547#=1, _G4523 in 0..1, _G4526 in 0..1, _G4526+_G4538+_G4550#=1, _G4538 in 0..1, _G4550 in 0..1, _G4544+_G4547+_G4550#=1, _G4544 in 0..1, _G4547 in 0..1. But when I replace my puzzle with [[_,0,0],[0,_,0],[0,0,_]] , the result is correct: ?- problem([1,0,0,1,0...
[ -0.003662109375, 0.00653076171875, 0.01806640625, 0.00909423828125, -0.0269775390625, -0.015380859375, -0.0012664794921875, 0.00811767578125, 0.005584716796875, 0.01312255859375, 0.0162353515625, -0.003631591796875, 0.0087890625, 0.0264892578125, 0.00946044921875, 0.0017852783203125, ...
[ 724, 4633, 6460, 1328, 5843, 10991, 4904, 33000, 23, 757, 418, 3742, 13330, 4046, 2525, 12465, 22892, 4966, 3229, 91995, 759, 104192, 678, 63527, 2389, 454, 16750, 26785, 705, 9, 2967, 96190, 18795, 11951, 12724, 19725, 22288, 6562, 44148, ...
[ 0.0789794921875, 0.19287109375, 0.1988525390625, 0.1331787109375, 0.17919921875, 0.181396484375, 0.06488037109375, 0.16015625, 0.053741455078125, 0.1217041015625, 0.0574951171875, 0.1429443359375, 0.1729736328125, 0.1424560546875, 0.1619873046875, 0.1776123046875, 0.03302001953125, ...
embed
54656696_c0
54656696
prolog
0
Title: Backtracking issue SWI-Prolog Problem title: Backtracking issue SWI-Prolog Tags: backtracking, swi-prolog, prolog Problem: Backtracking issue SWI-Prolog i have some issues with backtracking in SWI-Prolog In my predicate i have 2 lists as an input and the result is a third one. I take from L1 each element with nt...
Backtracking issue SWI-Prolog Backtracking issue SWI-Prolog backtracking swi-prolog prolog Backtracking SWI-Prolog Result nth0 other_pred Backtracking issue SWI-Prolog i have some issues with backtracking in SWI-Prolog In my predicate i have 2 lists as an input and the result is a third one. I take from L1 each element...
[ -0.0001583099365234375, 0.0137939453125, 0.0191650390625, -0.01031494140625, -0.01177978515625, 0.006927490234375, 0.0277099609375, 0.010009765625, 0.02294921875, -0.048828125, 0.0091552734375, 0.010009765625, -0.0072021484375, 0.0074462890625, -0.0003070831298828125, 0.001800537109375...
[ 26828, 125728, 214, 31089, 159, 38969, 10752, 4867, 4420, 2452, 3454, 502, 126684, 653, 927, 2389, 3789, 19714, 37348, 1653, 2063, 116, 5303, 107730, 16750, 50960, 5646, 1295, 339, 418, 12830, 18113, 4527, 3871, 114689, 29568, 35782, 37772, ...
[ 0.15771484375, 0.2427978515625, 0.0633544921875, 0.14501953125, 0.05560302734375, 0.192626953125, 0.119873046875, 0.18115234375, 0.1571044921875, 0.1409912109375, 0.0770263671875, 0.0838623046875, 0.1260986328125, 0.009613037109375, 0.123779296875, 0.1361083984375, 0.0806884765625, ...
embed
6506499_c0
6506499
prolog
0
Title: Using &quot;Univ&quot; / &quot;=..&quot; meta-predicate to return boolean result of a function? Problem title: Using &quot;Univ&quot; / &quot;=..&quot; meta-predicate to return boolean result of a function? Tags: prolog Problem: Using "Univ" / "=.." meta-predicate to return boolean result of a function? I am try...
Using &quot;Univ&quot; / &quot;=..&quot; meta-predicate to return boolean result of a function? Using &quot;Univ&quot; / &quot;=..&quot; meta-predicate to return boolean result of a function? prolog Using Univ Expression Value Term Using "Univ" / "=.." meta-predicate to return boolean result of a function? I am trying ...
[ 0.00457763671875, -0.006072998046875, 0.01458740234375, -0.00180816650390625, -0.0025634765625, -0.0220947265625, 0.0390625, 0.00154876708984375, 0.007476806640625, -0.01068115234375, 0.00897216796875, 0.015869140625, -0.00909423828125, -0.0037994384765625, 0.01507568359375, -0.0004272...
[ 345, 6953, 85600, 334, 248, 41502, 1369, 5, 23550, 19714, 2063, 67, 30646, 337, 31, 34677, 16750, 32354, 502, 4867, 11789, 25129, 190060, 2994, 39, 47, 31577, 4527, 1242, 34292, 6626, 27781, 35064, 43240, 169123, 53418, 26366, 21373, 17368,...
[ 0.07452392578125, 0.028778076171875, 0.1920166015625, 0.22802734375, 0.0775146484375, 0.0791015625, 0.232177734375, 0.13720703125, 0.23046875, 0.164794921875, 0.1571044921875, 0.0467529296875, 0.206298828125, 0.053955078125, 0.113525390625, 0.21240234375, 0.1759033203125, 0.1887207...
embed
57533121_c0
57533121
prolog
0
Title: List of candidates from different cities Problem title: List of candidates from different cities Tags: prolog Problem: List of candidates from different cities I need to get one candidate from each team that competes in the same city. It has to work with N candidates in case I need to add more. My knowledge base...
List of candidates from different cities List of candidates from different cities prolog different List Name Team City Candidates List of candidates from different cities I need to get one candidate from each team that competes in the same city. It has to work with N candidates in case I need to add more. My knowledge ...
[ 0.018798828125, 0.000946044921875, 0.0213623046875, 0.0224609375, -0.0032196044921875, -0.01123046875, -0.019287109375, 0.01068115234375, 0.0120849609375, -0.01409912109375, 0.0014190673828125, 0.01177978515625, 0.004791259765625, 0.0008087158203125, -0.0245361328125, 0.01300048828125,...
[ 32036, 111, 25469, 90, 1295, 12921, 162708, 502, 4867, 15757, 11399, 6406, 194215, 87, 3871, 2046, 1632, 13, 12638, 7175, 98438, 23, 5701, 26349, 1556, 4488, 678, 541, 15190, 1286, 51359, 3647, 41206, 35604, 41, 10484, 1884, 903 ]
[ 0.153076171875, 0.035125732421875, 0.2357177734375, 0.143798828125, 0.131591796875, 0.1884765625, 0.2021484375, 0.140380859375, 0.18505859375, 0.037994384765625, 0.146728515625, 0.1461181640625, 0.228759765625, 0.0009055137634277344, 0.091064453125, 0.08148193359375, 0.0833740234375,...
embed
39812337_c0
39812337
prolog
0
Title: Can we create a fact from inside the Prolog code? Problem title: Can we create a fact from inside the Prolog code? Tags: list, prolog Problem: Can we create a fact from inside the Prolog code? My aim is to break the given list of lists in such a way that I am able to access the individual lists by the same name....
Can we create a fact from inside the Prolog code? Can we create a fact from inside the Prolog code? list prolog inside Can Prolog Can we create a fact from inside the Prolog code? My aim is to break the given list of lists in such a way that I am able to access the individual lists by the same name. I have the followin...
[ 0.0206298828125, -0.0030364990234375, 0.0147705078125, 0.01483154296875, -0.01019287109375, 0.00994873046875, 0.016357421875, -0.007354736328125, -0.00087738037109375, -0.0267333984375, 0.000644683837890625, 0.001861572265625, 0.000675201416015625, -0.005279541015625, 0.0026702880859375,...
[ 4171, 642, 28282, 10, 15824, 1295, 46132, 70, 1250, 4867, 18151, 5303, 502, 464, 36356, 19048, 17203, 11651, 5701, 9351, 3444, 3934, 90173, 155761, 82449, 128191, 55769, 831, 3525, 84797, 71, 80854, 96760, 25632, 11907, 157, 112 ]
[ 0.1357421875, 0.06353759765625, 0.20849609375, 0.055816650390625, 0.25390625, 0.1575927734375, 0.185546875, 0.0271759033203125, 0.1761474609375, 0.2412109375, 0.20751953125, 0.1807861328125, 0.1524658203125, 0.0953369140625, 0.127685546875, 0.0244598388671875, 0.08941650390625, 0.0...
embed
10445273_c0
10445273
prolog
0
Title: How to reverse or construct a belief in jason (agentspeak)? Problem title: How to reverse or construct a belief in jason (agentspeak)? Tags: multi-agent, prolog, agent Problem: How to reverse or construct a belief in jason (agentspeak)? I would like to do the following: I have a initial goal with an argument as ...
How to reverse or construct a belief in jason (agentspeak)? How to reverse or construct a belief in jason (agentspeak)? multi-agent prolog agent How Agent Test.mas2j How to reverse or construct a belief in jason (agentspeak)? I would like to do the following: I have a initial goal with an argument as a belief, and I wo...
[ 0.0172119140625, 0.031494140625, 0.002166748046875, 0.0390625, -0.01416015625, 0.004180908203125, -0.004241943359375, 0.002960205078125, -0.0113525390625, -0.0274658203125, 0.0164794921875, 0.0196533203125, -0.006591796875, 0.001678466796875, 0.00567626953125, -0.004852294921875, 0.0...
[ 11249, 47, 39531, 184, 707, 64549, 10, 144239, 23, 79, 1681, 83963, 9217, 344, 6024, 502, 4867, 23882, 54603, 8647, 1510, 304, 170, 1884, 61475, 69236, 10750, 237, 24209, 3525, 11627, 730, 158, 2816, 15390, 7, 903, 3917 ]
[ 0.1263427734375, 0.0880126953125, 0.23681640625, 0.22119140625, 0.110595703125, 0.247802734375, 0.08673095703125, 0.246826171875, 0.0928955078125, 0.14208984375, 0.2049560546875, 0.1707763671875, 0.176513671875, 0.1309814453125, 0.07196044921875, 0.0694580078125, 0.12255859375, 0.1...
embed
7469184_c0
7469184
prolog
0
Title: Sicstus Prolog - Weight of a word Problem title: Sicstus Prolog - Weight of a word Tags: prolog Problem: Sicstus Prolog - Weight of a word I've got a problem about how to weigh a word. Every single letter in a word has specific weight, I need to calculate the total weight of the word. For example: A-E = 1, F-O =...
Sicstus Prolog - Weight of a word Sicstus Prolog - Weight of a word prolog Sicstus Prolog Weight A-E F-O P-Z word_weight Sicstus Prolog - Weight of a word I've got a problem about how to weigh a word. Every single letter in a word has specific weight, I need to calculate the total weight of the word. For example: If th...
[ 0.0057373046875, 0.00408935546875, -0.002777099609375, 0.00750732421875, -0.01043701171875, 0.01025390625, -0.00799560546875, -0.003692626953125, 0.01324462890625, -0.029052734375, 0.0089111328125, -0.0034942626953125, -0.0059814453125, 0.00616455078125, -0.009521484375, 0.008361816406...
[ 63457, 18253, 1250, 4867, 150533, 111, 10, 2565, 502, 62, 9, 647, 563, 670, 436, 1511, 165598, 4163, 2967, 3642, 47, 642, 6958, 87769, 11001, 31330, 23, 1556, 29458, 57888, 3871, 74481, 3622, 83, 65441, 35166, 12137, 22553, 2203, 305, 3...
[ 0.153076171875, 0.2254638671875, 0.0894775390625, 0.1812744140625, 0.272705078125, 0.1309814453125, 0.03936767578125, 0.2490234375, 0.0673828125, 0.03631591796875, 0.014068603515625, 0.06689453125, 0.03570556640625, 0.076904296875, 0.014007568359375, 0.0810546875, 0.259765625, 0.00...
embed
26704100_c0
26704100
prolog
0
Title: Prolog Floor Puzzle Problem title: Prolog Floor Puzzle Tags: prolog Problem: Prolog Floor Puzzle Baker, Cooper, Fletcher, Miller and Smith live in a five-story building. Baker does not live on the 5th floor and Cooper does live on the first floor. Fletcher does not live on the top or the bottom, and he is not on...
Prolog Floor Puzzle Prolog Floor Puzzle prolog Prolog Floor Puzzle Prolog Floor Puzzle Baker, Cooper, Fletcher, Miller and Smith live in a five-story building. Baker does not live on the 5th floor and Cooper does live on the first floor. Fletcher does not live on the top or the bottom, and he is not on a floor adjacent...
[ 0.007354736328125, -0.0059814453125, 0.0177001953125, 0.000339508056640625, 0.00067901611328125, 0.0019683837890625, -0.00531005859375, 0.00909423828125, -0.000286102294921875, -0.0284423828125, 0.005889892578125, -0.003570556640625, -0.00109100341796875, 0.017333984375, 0.00215148925781...
[ 1250, 4867, 177542, 179277, 502, 133840, 4, 59797, 22964, 18, 5372, 102617, 136, 37700, 6867, 23, 43606, 86385, 33976, 14602, 959, 190, 927, 74912, 5117, 2663, 103136, 764, 123594, 16797, 60742, 3060, 36917, 35064, 201, 40469, 98, 2367, 256...
[ 0.155517578125, 0.232666015625, 0.22119140625, 0.197509765625, 0.1302490234375, 0.265380859375, 0.0283660888671875, 0.25048828125, 0.14013671875, 0.046142578125, 0.2230224609375, 0.2484130859375, 0.033721923828125, 0.205810546875, 0.179931640625, 0.028564453125, 0.1956787109375, 0....
embed
53676493_c0
53676493
prolog
0
Title: Find all paths for a relation without knowing nodes Prolog Problem title: Find all paths for a relation without knowing nodes Prolog Tags: prolog, graph-theory Problem: Find all paths for a relation without knowing nodes Prolog I want to get all paths in a relation but I do not know how to do this if I am not gi...
Find all paths for a relation without knowing nodes Prolog Find all paths for a relation without knowing nodes Prolog prolog graph-theory Find Prolog Rel Cons Find all paths for a relation without knowing nodes Prolog I want to get all paths in a relation but I do not know how to do this if I am not given an ending Nod...
[ -0.00811767578125, 0.0194091796875, 0.0133056640625, 0.004241943359375, 0.005218505859375, -0.005615234375, -0.007598876953125, -0.007568359375, -0.000286102294921875, -0.0625, 0.0021820068359375, 0.000942230224609375, -0.0101318359375, 0.007720947265625, 0.020263671875, -0.00040054321...
[ 26040, 756, 60875, 7, 100, 41911, 15490, 141956, 110, 988, 1250, 4867, 502, 41382, 2347, 853, 141, 39215, 3444, 47, 2046, 23, 3714, 959, 34475, 86658, 438, 112, 29479, 159, 31344, 384, 30388, 19777, 11935, 108421, 140909, 3034, 54241, 409...
[ 0.1180419921875, 0.1630859375, 0.25048828125, 0.09716796875, 0.06427001953125, 0.1990966796875, 0.1126708984375, 0.138427734375, 0.1181640625, 0.073974609375, 0.122802734375, 0.188232421875, 0.0423583984375, 0.138916015625, 0.007904052734375, 0.050872802734375, 0.067626953125, 0.17...
embed
60790266_c0
60790266
prolog
0
Title: SWI-Prolog reporting wrong answer with bitshifts CLPFD Problem title: SWI-Prolog reporting wrong answer with bitshifts CLPFD Tags: prolog, prolog-toplevel, clpfd Problem: SWI-Prolog reporting wrong answer with bitshifts CLPFD I encountered this in a much larger codebase, but reduced it down to a minimal reproduc...
SWI-Prolog reporting wrong answer with bitshifts CLPFD SWI-Prolog reporting wrong answer with bitshifts CLPFD prolog prolog-toplevel clpfd SWI-Prolog CLPFD use_module ADD SUB _42146 SWI-Prolog reporting wrong answer with bitshifts CLPFD I encountered this in a much larger codebase, but reduced it down to a minimal repr...
[ 0.0004100799560546875, -0.01177978515625, 0.005706787109375, 0.0272216796875, -0.01953125, -0.017578125, -0.0284423828125, -0.00830078125, -0.01324462890625, -0.01470947265625, 0.00958251953125, -0.003936767578125, 0.0045166015625, 0.01495361328125, 0.028564453125, -0.005157470703125, ...
[ 159, 38969, 10752, 4867, 13416, 44691, 35166, 678, 4785, 3767, 2480, 46323, 41265, 397, 502, 13784, 67919, 39557, 71, 4527, 83279, 24057, 111231, 13023, 130681, 190647, 18151, 37382, 34390, 20187, 27781, 93457, 42, 37202, 4488, 3229, 89845, 7...
[ 0.0268707275390625, 0.2161865234375, 0.1434326171875, 0.19580078125, 0.162353515625, 0.17333984375, 0.20361328125, 0.073974609375, 0.1221923828125, 0.1796875, 0.2012939453125, 0.115966796875, 0.14501953125, 0.15625, 0.09088134765625, 0.015045166015625, 0.0552978515625, 0.0327148437...
embed
33423330_c0
33423330
prolog
0
Title: (Prolog) Get numbers within a range from a list Problem title: (Prolog) Get numbers within a range from a list Tags: list, prolog Problem: (Prolog) Get numbers within a range from a list I'm trying to get all numbers between 10 and 40 (inclusive) from a list, and outputting to another list. So far my code sort o...
(Prolog) Get numbers within a range from a list (Prolog) Get numbers within a range from a list list prolog a Prolog Get List2 (Prolog) Get numbers within a range from a list I'm trying to get all numbers between 10 and 40 (inclusive) from a list, and outputting to another list. So far my code sort of works but does no...
[ -0.01312255859375, -0.0064697265625, -0.001251220703125, -0.00439453125, -0.0029296875, 0.02734375, -0.00982666015625, 0.0020751953125, 0.00909423828125, 0.0067138671875, -0.004058837890625, -0.00113677978515625, -0.01708984375, -0.01318359375, 0.0172119140625, 0.005340576171875, -0....
[ 10752, 4867, 20779, 101935, 28032, 37457, 1295, 5303, 502, 1250, 32036, 304, 31577, 2046, 756, 17721, 209, 136, 1112, 216134, 140992, 15700, 2060, 18151, 12096, 43240, 959, 104851, 16750, 105556, 831, 4527, 5426, 1653, 2063, 1636, 10846, 2728...
[ 0.107666015625, 0.2337646484375, 0.1290283203125, 0.211669921875, 0.181396484375, 0.2296142578125, 0.1171875, 0.20361328125, 0.11865234375, 0.1356201171875, 0.1612548828125, 0.1087646484375, 0.0682373046875, 0.122802734375, 0.069580078125, 0.07568359375, 0.17431640625, 0.0376281738...
embed
34110959_c0
34110959
prolog
0
Title: How to tell if list length is odd or even in Prolog Problem title: How to tell if list length is odd or even in Prolog Tags: prolog Problem: How to tell if list length is odd or even in Prolog I'm attempting to determine whether a Prolog list has an odd or even number of elements. I realize there are likely bett...
How to tell if list length is odd or even in Prolog How to tell if list length is odd or even in Prolog prolog How Prolog How to tell if list length is odd or even in Prolog I'm attempting to determine whether a Prolog list has an odd or even number of elements. I realize there are likely better solutions using length/...
[ 0.0034332275390625, 0.03662109375, 0.0201416015625, -0.007171630859375, -0.00518798828125, 0.0113525390625, -0.00823974609375, 0.00787353515625, 0.006439208984375, 0.0283203125, 0.00311279296875, -0.03759765625, 0.0033111572265625, 0.01055908203125, 0.0201416015625, 0.007049560546875, ...
[ 11249, 47, 14192, 2174, 5303, 140909, 83, 70270, 707, 3853, 23, 1250, 4867, 502, 81887, 83324, 1556, 142, 14012, 80854, 11522, 51347, 12477, 3714, 44691, 27781, 18151, 185688, 140992, 3034, 37202, 96391, 15400, 4173, 16750, 98320 ]
[ 0.03094482421875, 0.0241546630859375, 0.16015625, 0.060577392578125, 0.1917724609375, 0.181640625, 0.06243896484375, 0.224365234375, 0.08648681640625, 0.1878662109375, 0.05560302734375, 0.1490478515625, 0.2127685546875, 0.1192626953125, 0.0362548828125, 0.06805419921875, 0.0142059326...
embed
36842023_c0
36842023
prolog
0
Title: Building a base 2 exponent calculator in Prolog Problem title: Building a base 2 exponent calculator in Prolog Tags: prolog, logarithm Problem: Building a base 2 exponent calculator in Prolog log2(I,E):- I is 2.0**E, E is log(I)/log(2). I am trying to use Prolog to compute either the power 2 was raised to 'I' or...
Building a base 2 exponent calculator in Prolog Building a base 2 exponent calculator in Prolog prolog logarithm Building Prolog log2 Queries ERROR Arguments Building a base 2 exponent calculator in Prolog I am trying to use Prolog to compute either the power 2 was raised to 'I' or 2 raised to the 'E' power equals 'I'....
[ 0.017333984375, -0.005218505859375, -0.0003376007080078125, -0.007171630859375, 0.0211181640625, 0.02783203125, -0.007354736328125, 0.00128936767578125, 0.0194091796875, -0.0019378662109375, 0.01287841796875, -0.005889892578125, 0.0029754638671875, 0.000518798828125, 0.018310546875, -0...
[ 104919, 3647, 116, 1119, 54137, 154993, 1250, 4867, 23, 502, 459, 8962, 12684, 304, 5813, 151206, 24638, 112140, 31577, 9969, 6743, 14537, 509, 165249, 47, 568, 647, 105950, 111531, 46876, 53498, 35166, 35509, 4677, 55681, 15400, 22691, 21917...
[ 0.142822265625, 0.195068359375, 0.19189453125, 0.072998046875, 0.20849609375, 0.2386474609375, 0.173095703125, 0.25927734375, 0.0008544921875, 0.115966796875, 0.033447265625, 0.07476806640625, 0.12109375, 0.1558837890625, 0.09161376953125, 0.09326171875, 0.059844970703125, 0.155883...
embed
60620461_c0
60620461
prolog
0
Title: How to get prime numbers from list and put them in empty list Problem title: How to get prime numbers from list and put them in empty list Tags: list, prolog Problem: How to get prime numbers from list and put them in empty list I want to get all prime numbers from a list of numbers and put it into another empty...
How to get prime numbers from list and put them in empty list How to get prime numbers from list and put them in empty list list prolog list How check_prime Xtemp Num Counter Counter-1 prime_list How to get prime numbers from list and put them in empty list I want to get all prime numbers from a list of numbers and put...
[ -0.006988525390625, 0.01031494140625, 0.02734375, 0.017333984375, -0.0019073486328125, 0.02783203125, 0.003204345703125, -0.01025390625, 0.01416015625, 0.000701904296875, 0.0062255859375, -0.00482177734375, -0.00885009765625, -0.004547119140625, -0.0089111328125, 0.0028533935546875, ...
[ 11249, 2046, 20809, 101935, 1295, 5303, 3884, 23, 201505, 136, 502, 4867, 12765, 114654, 1193, 34224, 52782, 197956, 5759, 6562, 3444, 756, 3934, 15700, 2967, 217684, 32354, 83, 145111, 13, 98320, 1528, 121011, 58269, 4358, 18151 ]
[ 0.030426025390625, 0.1002197265625, 0.203125, 0.187744140625, 0.10498046875, 0.1761474609375, 0.0723876953125, 0.052093505859375, 0.17822265625, 0.01153564453125, 0.06903076171875, 0.1514892578125, 0.1275634765625, 0.180908203125, 0.026153564453125, 0.2047119140625, 0.09326171875, ...
embed
34770702_c0
34770702
prolog
0
Title: Remove single quotes/quotation marks in Prolog Problem title: Remove single quotes/quotation marks in Prolog Tags: quotation-marks, prolog, swi-prolog, single-quotes, string Problem: Remove single quotes/quotation marks in Prolog I have an extern API sending info to my Prolog application and I found a problem cr...
Remove single quotes/quotation marks in Prolog Remove single quotes/quotation marks in Prolog quotation-marks prolog swi-prolog single-quotes string Remove Prolog ObjectID ObjectName Remove single quotes/quotation marks in Prolog I have an extern API sending info to my Prolog application and I found a problem creating ...
[ 0.025146484375, 0.014892578125, 0.000888824462890625, 0.013916015625, -0.00787353515625, 0.01068115234375, 0.000820159912109375, 0.0244140625, 0.0084228515625, -0.0255126953125, -0.0103759765625, -0.009765625, -0.0458984375, -0.028564453125, -0.002899169921875, 0.002593994140625, 0.0...
[ 181139, 11001, 66747, 7, 64, 41502, 2320, 16188, 23, 1250, 4867, 81732, 1363, 88832, 502, 2452, 3454, 68726, 79315, 134549, 7146, 163612, 76714, 61687, 135834, 3004, 38415, 2967, 105233, 759, 15824, 4677, 75204, 41745, 191082, 15190, 242, 695...
[ 0.17138671875, 0.2147216796875, 0.265869140625, 0.036041259765625, 0.027099609375, 0.1883544921875, 0.0831298828125, 0.19921875, 0.04931640625, 0.1966552734375, 0.291015625, 0.200927734375, 0.0516357421875, 0.1500244140625, 0.07440185546875, 0.1337890625, 0.0694580078125, 0.2087402...
embed
67059609_c0
67059609
prolog
0
Title: creating a list from enumerated facts in prolog Problem title: creating a list from enumerated facts in prolog Tags: prolog Problem: creating a list from enumerated facts in prolog The problem is: We're doing a school test. Given a certain time and points needed, create a list of the possible combinations of que...
creating a list from enumerated facts in prolog creating a list from enumerated facts in prolog prolog enumerated Points Time creating a list from enumerated facts in prolog The problem is: We're doing a school test. Given a certain time and points needed, create a list of the possible combinations of questions to achi...
[ 0.01324462890625, -0.0045166015625, 0.01446533203125, 0.00189971923828125, -0.0023193359375, -0.0201416015625, -0.02392578125, 0.000675201416015625, 0.01007080078125, -0.01519775390625, 0.01531982421875, -0.007293701171875, 0.003875732421875, -0.004180908203125, -0.018310546875, 0.0268...
[ 105233, 5303, 1295, 189085, 3674, 15824, 7, 502, 4867, 23, 41097, 19055, 2967, 20594, 10696, 3034, 24233, 1733, 26847, 44841, 28282, 7722, 162515, 17582, 69307, 76896, 35666, 2661, 10932, 2396, 2886, 50717, 3714, 44691, 7413, 7108, 9384, 217,...
[ 0.131591796875, 0.22314453125, 0.1407470703125, 0.216796875, 0.094482421875, 0.1917724609375, 0.06201171875, 0.160888671875, 0.257568359375, 0.0172119140625, 0.18310546875, 0.1866455078125, 0.0836181640625, 0.024505615234375, 0.0987548828125, 0.15185546875, 0.0278472900390625, 0.13...
embed
46614561_c0
46614561
prolog
0
Title: Implementing partial evaluation in SWI-Prolog Problem title: Implementing partial evaluation in SWI-Prolog Tags: macros, swi-prolog, prolog Problem: Implementing partial evaluation in SWI-Prolog I'm writing a partial-evaluator for Prolog queries. I tried to expand a query using expand_goal/2 , but it simply unif...
Implementing partial evaluation in SWI-Prolog Implementing partial evaluation in SWI-Prolog macros swi-prolog prolog Implementing SWI-Prolog expand_goal Input Output is_between term_expansion Implementing partial evaluation in SWI-Prolog I'm writing a partial-evaluator for Prolog queries. I tried to expand a query usin...
[ 0.006866455078125, 0.036865234375, 0.01385498046875, 0.0167236328125, -0.0186767578125, 0.00732421875, 0.016357421875, -0.02197265625, -0.0042724609375, -0.0264892578125, 0.01116943359375, -0.006591796875, -0.0022735595703125, -0.0037994384765625, 0.0018768310546875, 0.00640869140625, ...
[ 153941, 2878, 289, 219836, 159, 38969, 10752, 4867, 111789, 91, 2452, 3454, 502, 71062, 519, 360, 13538, 7077, 83, 4626, 1177, 33, 13579, 83613, 66, 32562, 159258, 1290, 1250, 41, 10484, 37842, 1294, 17368, 12477, 51, 27430, 678, 6889, 15...
[ 0.1658935546875, 0.17041015625, 0.091064453125, 0.2242431640625, 0.058563232421875, 0.217529296875, 0.1456298828125, 0.191162109375, 0.1507568359375, 0.009368896484375, 0.1605224609375, 0.11083984375, 0.093994140625, 0.180419921875, 0.1561279296875, 0.092041015625, 0.1175537109375, ...
embed
17156463_c1
17156463
prolog
1
Rest],State,InterimState) :- apply_add(Rest,State,S2),add_element(First, S2, InterimState). apply_del([],InterimState,InterimState). apply_del([First|Rest],InterimState,NewState) :- apply_del(Rest, InterimState,S2),del_element(First, S2, NewState). subsetB([],_). subsetB([F|R],S) :- member(F,S),subsetB(R,S). %dropping ...
Rest],State,InterimState) :- apply_add(Rest,State,S2),add_element(First, S2, InterimState). apply_del([],InterimState,InterimState). apply_del([First|Rest],InterimState,NewState) :- apply_del(Rest, InterimState,S2),del_element(First, S2, NewState). subsetB([],_). subsetB([F|R],S) :- member(F,S),subsetB(R,S). %dropping ...
[ -0.000942230224609375, 0.0242919921875, 0.005950927734375, 0.018310546875, -0.0184326171875, 0.013427734375, 0.003082275390625, -0.00653076171875, 0.0286865234375, -0.0196533203125, 0.04052734375, 0.0283203125, -0.02587890625, 0.007354736328125, 0.00201416015625, 0.00701904296875, 0....
[ 49756, 268, 4, 135206, 13, 44851, 464, 16, 15772, 59911, 11, 4028, 1052, 525, 294, 10461, 62766, 207263, 159, 304, 5337, 1743, 194, 58745, 46568, 2356, 1614, 3509, 571, 32786, 22144, 1745, 5814, 26783, 10, 34165, 46132, 4027, 418, 93425, ...
[ 0.23681640625, 0.06878662109375, 0.0142822265625, 0.1845703125, 0.052459716796875, 0.1524658203125, 0.1524658203125, 0.0272064208984375, 0.125732421875, 0.1722412109375, 0.024932861328125, 0.1397705078125, 0.12255859375, 0.182373046875, 0.0726318359375, 0.1229248046875, 0.21057128906...
embed
33072254_c0
33072254
prolog
0
Title: What is the difference between the keyword is and = in prolog? Problem title: What is the difference between the keyword is and = in prolog? Tags: operators, keyword, prolog Problem: What is the difference between the keyword is and = in prolog? I'd appreciate it if someone could elaborate on the difference betw...
What is the difference between the keyword is and = in prolog? What is the difference between the keyword is and = in prolog? operators keyword prolog What Person birth_year current_year Y2-Y1 What is the difference between the keyword is and = in prolog? I'd appreciate it if someone could elaborate on the difference b...
[ 0.0201416015625, -0.00107574462890625, 0.0263671875, -0.0035552978515625, -0.0027008056640625, 0.00848388671875, -0.0014190673828125, 0.006134033203125, -0.0002899169921875, -0.0089111328125, 0.01336669921875, -0.005096435546875, 0.00946044921875, 0.0015411376953125, -0.004730224609375, ...
[ 4865, 70, 60212, 17721, 166117, 83, 136, 2203, 23, 502, 4867, 39933, 15270, 127319, 46799, 43581, 990, 18504, 1723, 418, 77947, 121151, 35107, 69112, 39041, 209806, 119488, 99091, 25737, 6264, 2208, 27781, 95486, 20209, 225490, 4358, 76755 ]
[ 0.0289459228515625, 0.13916015625, 0.217529296875, 0.1236572265625, 0.26220703125, 0.26904296875, 0.205078125, 0.25048828125, 0.072265625, 0.1639404296875, 0.2281494140625, 0.241943359375, 0.0921630859375, 0.149658203125, 0.0855712890625, 0.08935546875, 0.05523681640625, 0.08190917...
embed
48934851_c0
48934851
prolog
0
Title: Prolog: assign the tail of a list to a variable? Problem title: Prolog: assign the tail of a list to a variable? Tags: prolog, list Problem: Prolog: assign the tail of a list to a variable? I have some prolog code below, which takes a list of integers, and returns me the Max element of said list. My issue is tha...
Prolog: assign the tail of a list to a variable? Prolog: assign the tail of a list to a variable? prolog list Prolog List Max Prolog: assign the tail of a list to a variable? I have some prolog code below, which takes a list of integers, and returns me the Max element of said list. My issue is that I'm not quite sure h...
[ 0.037353515625, 0.01806640625, 0.0279541015625, 0.0177001953125, -0.0242919921875, 0.027099609375, -0.0113525390625, 0.010009765625, 0.005096435546875, -0.017822265625, 0.0291748046875, -0.01165771484375, 0.0052490234375, -0.0034637451171875, 0.0162353515625, -0.005645751953125, 0.01...
[ 1250, 4867, 95486, 70, 46741, 111, 5303, 47, 77336, 502, 32036, 9920, 18151, 35064, 51776, 892, 26255, 30646, 12830, 31089, 9077, 2203, 841, 58745, 454, 126826, 43240, 572, 10336, 34292, 4083, 179554, 3714, 5646, 58134, 5809, 186, 2347, 126...
[ 0.16748046875, 0.2437744140625, 0.212158203125, 0.05926513671875, 0.288330078125, 0.09967041015625, 0.2081298828125, 0.064697265625, 0.244384765625, 0.1273193359375, 0.184326171875, 0.20166015625, 0.136962890625, 0.1058349609375, 0.034820556640625, 0.0968017578125, 0.032867431640625,...
embed
74257987_c1
74257987
prolog
1
edge(vd, vc, 60). edge(vd, vb, 110). edge(vd, ve, 80). edge(vd, vl, 90). edge(ve, vd, 80). edge(ve, vf, 70). edge(ve, vl, 30). edge(ve, vm, 90). edge(vf, ve, 70). edge(vf, vc, 80). edge(vf, vk, 110). edge(vf, vg, 40). edge(vg, vf, 40). edge(vg, vb, 50). edge(vg, vh, 20). edge(vg, vj, 90). edge(vh, vg, 20). edge(vh, va...
edge(vd, vc, 60). edge(vd, vb, 110). edge(vd, ve, 80). edge(vd, vl, 90). edge(ve, vd, 80). edge(ve, vf, 70). edge(ve, vl, 30). edge(ve, vm, 90). edge(vf, ve, 70). edge(vf, vc, 80). edge(vf, vk, 110). edge(vf, vg, 40). edge(vg, vf, 40). edge(vg, vb, 50). edge(vg, vh, 20). edge(vg, vj, 90). edge(vh, vg, 20). edge(vh, va...
[ -0.0106201171875, -0.005889892578125, 0.005279541015625, -0.00787353515625, 0.022216796875, -0.029296875, -0.04736328125, 0.00982666015625, -0.00933837890625, 0.01239013671875, -0.001953125, -0.0181884765625, 0.00921630859375, 0.007354736328125, -0.005340576171875, 0.0068359375, -0.0...
[ 121303, 132, 59805, 4, 78543, 1496, 194, 86482, 12062, 173, 2248, 81, 141, 2510, 272, 71, 420, 2358, 496, 39, 334, 92, 177, 1112, 836, 127, 387, 170, 307, 254, 5390, 279, 686, 864, 19, 50132, 18734 ]
[ 0.326416015625, 0.1080322265625, 0.2342529296875, 0.1353759765625, 0.218505859375, 0.2437744140625, 0.126708984375, 0.2430419921875, 0.2138671875, 0.2314453125, 0.21728515625, 0.110107421875, 0.1265869140625, 0.209228515625, 0.215087890625, 0.082763671875, 0.1319580078125, 0.183349...
embed
3245405_c0
3245405
prolog
0
Title: Embedding a Prolog engine in Obj-C projects Problem title: Embedding a Prolog engine in Obj-C projects Tags: embedded-language, c%2B%2B, ffi, objective-c, prolog Problem: Embedding a Prolog engine in Obj-C projects I'm looking for a light-weight Prolog engine to be embedded in an Obj-C application under Mac OSX....
Embedding a Prolog engine in Obj-C projects Embedding a Prolog engine in Obj-C projects embedded-language c%2B%2B ffi objective-c prolog Embedding Prolog Obj-C Embedding a Prolog engine in Obj-C projects I'm looking for a light-weight Prolog engine to be embedded in an Obj-C application under Mac OSX. In Java there are...
[ 0.0291748046875, 0.01422119140625, 0.003265380859375, 0.02001953125, -0.003265380859375, 0.000911712646484375, 0.00201416015625, 0.00390625, -0.00183868408203125, -0.048828125, 0.00543212890625, -0.02587890625, -0.02197265625, -0.0084228515625, 0.0250244140625, -0.00567626953125, -0....
[ 2775, 372, 59725, 1250, 4867, 87907, 3545, 170, 9, 441, 77635, 55720, 69819, 196651, 501, 24500, 151814, 238, 502, 23, 16487, 100, 22729, 165598, 38415, 1379, 4727, 11787, 1542, 360, 41925, 40881, 208124, 62816, 48242, 3871, 13158, 41159, 8...
[ 0.120361328125, 0.227294921875, 0.08599853515625, 0.1873779296875, 0.267333984375, 0.2218017578125, 0.182861328125, 0.204345703125, 0.04034423828125, 0.1485595703125, 0.1336669921875, 0.2091064453125, 0.106201171875, 0.146240234375, 0.0518798828125, 0.09796142578125, 0.2156982421875,...
embed
55651136_c0
55651136
prolog
0
Title: Space / time requirements for ISO-Prolog processor compliance Problem title: Space / time requirements for ISO-Prolog processor compliance Tags: prolog, iso-prolog Problem: Space / time requirements for ISO-Prolog processor compliance All implementations of the functional programming language scheme are required...
Space / time requirements for ISO-Prolog processor compliance Space / time requirements for ISO-Prolog processor compliance prolog iso-prolog Space ISO-Prolog Space / time requirements for ISO-Prolog processor compliance All implementations of the functional programming language scheme are required to perform tail-call...
[ 0.0225830078125, 0.024658203125, 0.00799560546875, 0.0225830078125, -0.0208740234375, -0.002471923828125, -0.00469970703125, -0.0027923583984375, 0.004425048828125, -0.0181884765625, 0.01348876953125, 0.0142822265625, -0.0162353515625, -0.01611328125, 0.00848388671875, 0.00762939453125...
[ 43045, 248, 1733, 96679, 17408, 10752, 4867, 14543, 42, 225932, 502, 13882, 3454, 208124, 123309, 56037, 46876, 150370, 56065, 51339, 46741, 9, 85763, 100433, 47691, 217684, 152431, 765, 903, 21373, 1250, 66139, 5117, 10750, 7893, 7477, 18770, ...
[ 0.2431640625, 0.04736328125, 0.1881103515625, 0.1822509765625, 0.22216796875, 0.1650390625, 0.2440185546875, 0.1884765625, 0.0921630859375, 0.20654296875, 0.1448974609375, 0.1480712890625, 0.15966796875, 0.13818359375, 0.162841796875, 0.09698486328125, 0.1314697265625, 0.1232910156...
embed
9188163_c0
9188163
prolog
0
Title: Has anybody seen a good open source Prolog implementation of the SATCHMO theorem prover? Problem title: Has anybody seen a good open source Prolog implementation of the SATCHMO theorem prover? Tags: theorem-proving, prolog Problem: Has anybody seen a good open source Prolog implementation of the SATCHMO theorem ...
Has anybody seen a good open source Prolog implementation of the SATCHMO theorem prover? Has anybody seen a good open source Prolog implementation of the SATCHMO theorem prover? theorem-proving prolog Has Prolog SATCHMO Has anybody seen a good open source Prolog implementation of the SATCHMO theorem prover? I've seen q...
[ 0.039794921875, 0.01904296875, 0.00823974609375, 0.0250244140625, -0.0042724609375, 0.0228271484375, -0.009765625, 0.0024871826171875, -0.0011749267578125, -0.049560546875, 0.03515625, 0.00109100341796875, -0.011474609375, -0.0172119140625, 0.02490234375, 0.01544189453125, -0.0163574...
[ 37873, 51592, 4127, 9803, 31344, 1250, 4867, 208124, 5377, 142481, 12013, 70, 58391, 502, 814, 70628, 20625, 15122, 4734, 18151, 14037, 2060, 12877, 84046, 27781, 91736, 151575, 11476, 145581, 46876, 55516, 39424, 27803, 20745, 206, 432, 26698,...
[ 0.04156494140625, 0.0849609375, 0.08221435546875, 0.1116943359375, 0.14306640625, 0.1820068359375, 0.249755859375, 0.1617431640625, 0.11767578125, 0.1591796875, 0.25439453125, 0.0870361328125, 0.2296142578125, 0.1680908203125, 0.1705322265625, 0.1688232421875, 0.03289794921875, 0.0...
embed
23283250_c0
23283250
prolog
0
Title: How could you find and remove an element from a list in prolog? Problem title: How could you find and remove an element from a list in prolog? Tags: prolog Problem: How could you find and remove an element from a list in prolog? I have a list I need to find an element and remove it. The idea I'm going on is to r...
How could you find and remove an element from a list in prolog? How could you find and remove an element from a list in prolog? prolog a roster How How could you find and remove an element from a list in prolog? I have a list I need to find an element and remove it. The idea I'm going on is to remove it if it's the hea...
[ -0.002532958984375, 0.028564453125, 0.004058837890625, 0.01519775390625, -0.03955078125, 0.013671875, -0.00506591796875, 0.0068359375, 0.0037994384765625, -0.0213623046875, 0.0157470703125, 0.0164794921875, -0.01483154296875, -0.013671875, -0.0052490234375, -0.00439453125, 0.03222656...
[ 11249, 5809, 7413, 136, 87388, 12830, 1295, 5303, 23, 502, 4867, 10, 52470, 56, 142, 3871, 442, 6528, 10336, 33284, 49146, 6496, 111, 46741, 3642, 67660, 77947, 3444, 47, 756, 74918, 42, 69098 ]
[ 0.0985107421875, 0.0921630859375, 0.1732177734375, 0.1446533203125, 0.216064453125, 0.2166748046875, 0.137939453125, 0.2061767578125, 0.07061767578125, 0.18701171875, 0.25830078125, 0.017303466796875, 0.1451416015625, 0.1217041015625, 0.010894775390625, 0.05682373046875, 0.0604248046...
embed
74028816_c0
74028816
prolog
0
Title: prolog list of all divisors of a number Problem title: prolog list of all divisors of a number Tags: primes, prolog Problem: prolog list of all divisors of a number I want to find all the divisors of a natural number.and output a list. now my code looks like this: divisors(0,[]). divisors(N,[N1|P]):- N1=N, RES i...
prolog list of all divisors of a number prolog list of all divisors of a number primes prolog RES N-1 prolog list of all divisors of a number I want to find all the divisors of a natural number.and output a list. now my code looks like this: but it doesn't work. tell me, what am I doing wrong? I've seen what can be don...
[ -0.01177978515625, 0.0027618408203125, 0.01611328125, 0.00921630859375, 0.01025390625, 0.008056640625, -0.0128173828125, 0.004791259765625, 0.006378173828125, -0.04638671875, 0.0091552734375, -0.0146484375, -0.0029296875, 0.01239013671875, 0.0003108978271484375, 0.00127410888671875, ...
[ 502, 4867, 5303, 756, 45, 51858, 7, 111, 14012, 20809, 61661, 541, 5759, 3444, 47, 7413, 70, 6083, 140992, 18151, 33342, 22027, 18, 4488, 14192, 20594, 44691, 16940, 1829, 5584, 12921, 6528, 28960, 8273, 39989, 1632, 16487, 100, 12638, 17...
[ 0.177978515625, 0.2381591796875, 0.1719970703125, 0.1617431640625, 0.1732177734375, 0.274169921875, 0.1241455078125, 0.035064697265625, 0.1624755859375, 0.140869140625, 0.10504150390625, 0.082275390625, 0.0955810546875, 0.06512451171875, 0.008819580078125, 0.13916015625, 0.0158843994...
embed
10002906_c0
10002906
prolog
0
Title: tuProlog unknown behavior Problem title: tuProlog unknown behavior Tags: tuprolog, prolog, java Problem: tuProlog unknown behavior I'm using tuProlog to integrate Prolog with Java, to do so I have defined a prolog.pl file with the following code: go:-write('hello world!'),nl. Then, in my Java project I Have the ...
tuProlog unknown behavior tuProlog unknown behavior tuprolog prolog java InvalidTheoryException prolog.pl go:-write Prolog Theory FileInputStream engine.setTheory SolveInfo engine.solve solution.isSuccess System.out.println solution.getSolution tuProlog unknown behavior I'm using tuProlog to integrate Prolog with Java,...
[ 0.03857421875, 0.0142822265625, 0.0177001953125, 0.0233154296875, -0.023193359375, 0.00927734375, 0.004241943359375, -0.0147705078125, 0.00537109375, -0.03515625, 0.0047607421875, 0.0238037109375, -0.0218505859375, 0.0235595703125, 0.002716064453125, 0.006927490234375, 0.030883789062...
[ 370, 10752, 4867, 51, 69723, 123166, 3454, 502, 79, 330, 7013, 3957, 30675, 63928, 2424, 738, 18781, 1250, 581, 42724, 115061, 87907, 3509, 6678, 93147, 86918, 29806, 164, 238, 26531, 12353, 6056, 35662, 3794, 102588, 34, 78779, 678, 41925,...
[ 0.17578125, 0.20751953125, 0.281005859375, 0.0271759033203125, 0.1697998046875, 0.1920166015625, 0.1351318359375, 0.1708984375, 0.07080078125, 0.0982666015625, 0.1611328125, 0.08477783203125, 0.0919189453125, 0.0960693359375, 0.157958984375, 0.15576171875, 0.019927978515625, 0.1752...
embed
10096124_c0
10096124
prolog
0
Title: How to represent directed cyclic graph in Prolog with direct access to neighbour verticies Problem title: How to represent directed cyclic graph in Prolog with direct access to neighbour verticies Tags: cyclic-graph, prolog Problem: How to represent directed cyclic graph in Prolog with direct access to neighbour...
How to represent directed cyclic graph in Prolog with direct access to neighbour verticies How to represent directed cyclic graph in Prolog with direct access to neighbour verticies cyclic-graph prolog How Prolog left_son right_son How to represent directed cyclic graph in Prolog with direct access to neighbour vertici...
[ 0.02294921875, -0.00262451171875, -0.00189208984375, 0.0164794921875, -0.005035400390625, -0.0174560546875, -0.0252685546875, 0.0184326171875, -0.0011138916015625, -0.0703125, -0.0096435546875, -0.006561279296875, -0.0223388671875, 0.0277099609375, 0.0223388671875, 0.02001953125, -0....
[ 11249, 47, 33636, 8951, 297, 187830, 238, 41382, 23, 1250, 4867, 678, 17203, 108, 6958, 38648, 95378, 58732, 502, 25737, 454, 1681, 7108, 64549, 11675, 105823, 64209, 3871, 2046, 1295, 1632, 493, 24371, 1919, 872, 53697, 1733, 7722, 237, ...
[ 0.07928466796875, 0.01922607421875, 0.22607421875, 0.17822265625, 0.03955078125, 0.1954345703125, 0.034576416015625, 0.2384033203125, 0.029632568359375, 0.14599609375, 0.24658203125, 0.0254364013671875, 0.14892578125, 0.047821044921875, 0.1163330078125, 0.1563720703125, 0.11352539062...
embed
64821591_c0
64821591
prolog
0
Title: Prolog convert list of string to list of numbers Problem title: Prolog convert list of string to list of numbers Tags: prolog Problem: Prolog convert list of string to list of numbers I'm new at Prolog and want to convert a list of string numbers to a list of numbers. I would appreciate an explanation, as I'm st...
Prolog convert list of string to list of numbers Prolog convert list of string to list of numbers prolog Prolog string_to_atom Elm Built Unsure Prolog convert list of string to list of numbers I'm new at Prolog and want to convert a list of string numbers to a list of numbers. I would appreciate an explanation, as I'm ...
[ -0.01104736328125, -0.0033111572265625, -0.0008697509765625, 0.00927734375, -0.01007080078125, 0.02978515625, -0.00933837890625, 0.005462646484375, 0.012939453125, -0.0191650390625, -0.01043701171875, -0.0274658203125, -0.011962890625, 0.0029144287109375, 0.0123291015625, -0.0127563476...
[ 1250, 4867, 96760, 5303, 111, 79315, 47, 101935, 502, 188, 11, 5928, 540, 39, 667, 24908, 992, 56851, 3525, 99, 3444, 10, 77947, 187136, 237875, 41018, 46876, 4163, 2060, 129745, 3126, 32354, 2452, 3454, 29713, 669, 19714, 2063, 91693 ]
[ 0.169189453125, 0.2301025390625, 0.1724853515625, 0.2081298828125, 0.08349609375, 0.273193359375, 0.10137939453125, 0.2130126953125, 0.1273193359375, 0.1656494140625, 0.043487548828125, 0.215087890625, 0.1241455078125, 0.100830078125, 0.082275390625, 0.10174560546875, 0.0504150390625...
embed
59696645_c0
59696645
prolog
0
Title: prolog predicate implementation handles cycles properly avoiding infinite loops Problem title: prolog predicate implementation handles cycles properly avoiding infinite loops Tags: recursion, prolog, graph-theory Problem: prolog predicate implementation handles cycles properly avoiding infinite loops A single qu...
prolog predicate implementation handles cycles properly avoiding infinite loops prolog predicate implementation handles cycles properly avoiding infinite loops recursion prolog graph-theory city1 city2 city3 prolog predicate implementation handles cycles properly avoiding infinite loops A single query to complete my pr...
[ -0.006866455078125, -0.00130462646484375, 0.01483154296875, 0.0267333984375, -0.017333984375, -0.005767822265625, -0.000911712646484375, 0.01806640625, 0.010986328125, -0.05419921875, 0.0012664794921875, 0.01068115234375, -0.02197265625, -0.004638671875, 0.0157470703125, 0.018188476562...
[ 502, 4867, 1653, 2063, 67, 208124, 34831, 105823, 155965, 71864, 54241, 40956, 195625, 41382, 2347, 26349, 304, 363, 13, 11001, 41, 1294, 28484, 759, 1528, 5608, 12765, 2174, 2685, 8951, 36439, 17721, 6626, 34475, 162708, 831, 5303, 756, 16...
[ 0.1964111328125, 0.260009765625, 0.1851806640625, 0.222412109375, 0.089111328125, 0.193603515625, 0.1458740234375, 0.16796875, 0.10107421875, 0.18115234375, 0.1746826171875, 0.155517578125, 0.21337890625, 0.1455078125, 0.04205322265625, 0.0938720703125, 0.043731689453125, 0.1179199...
embed
13895020_c0
13895020
prolog
0
Title: Prolog DCG read from file with separotr Problem title: Prolog DCG read from file with separotr Tags: dcg, prolog Problem: Prolog DCG read from file with separotr I'm making my first steps in Prolog, but I have encountered a problem. I'm trying to read from a file records separated by comma upto_comma(Codes) --> ...
Prolog DCG read from file with separotr Prolog DCG read from file with separotr dcg prolog file Prolog DCG upto_comma Codes list_w Atom atom_codes Prolog DCG read from file with separotr I'm making my first steps in Prolog, but I have encountered a problem. I'm trying to read from a file records separated by comma but ...
[ 0.0130615234375, -0.0281982421875, -0.002593994140625, 0.0098876953125, -0.00634765625, 0.006011962890625, 0.00433349609375, -0.01336669921875, 0.0022430419921875, -0.028564453125, -0.019775390625, -0.0098876953125, 0.0067138671875, 0.0012054443359375, -0.0033416748046875, -0.014526367...
[ 1250, 4867, 391, 56367, 12301, 1295, 11435, 678, 40, 88777, 4448, 177, 502, 1257, 188, 277, 192, 28864, 5303, 434, 69728, 34627, 40899, 5117, 98441, 190647, 2967, 31577, 115923, 84797, 96117, 756, 4163, 11001, 124850, 12960, 2367, 36663, 12...
[ 0.170654296875, 0.268310546875, 0.053985595703125, 0.2174072265625, 0.1942138671875, 0.114990234375, 0.196533203125, 0.031036376953125, 0.048828125, 0.130615234375, 0.1810302734375, 0.06146240234375, 0.1263427734375, 0.07916259765625, 0.1224365234375, 0.1107177734375, 0.131591796875,...
embed
50088052_c0
50088052
prolog
0
Title: Adding to a list of lists in Prolog Problem title: Adding to a list of lists in Prolog Tags: prolog Problem: Adding to a list of lists in Prolog I am currently attempting to write a Prolog program which will add a given character to the end of a list. The list's I want to append are elements within a list. This ...
Adding to a list of lists in Prolog Adding to a list of lists in Prolog prolog Adding Prolog Head Lists Adding to a list of lists in Prolog I am currently attempting to write a Prolog program which will add a given character to the end of a list. The list's I want to append are elements within a list. This is what I cu...
[ 0.0206298828125, 0.0164794921875, 0.0252685546875, 0.018798828125, -0.01068115234375, 0.0118408203125, -0.0011444091796875, -0.0029754638671875, 0.010986328125, -0.0242919921875, 0.036376953125, -0.022705078125, -0.004302978515625, 0.008056640625, -0.00946044921875, -0.011474609375, ...
[ 62, 59725, 47, 5303, 7, 1250, 4867, 502, 44816, 32036, 81887, 33022, 1528, 15190, 62816, 3564, 3444, 114689, 71, 80854, 28032, 82424, 765, 158, 33478, 76, 1193, 136, 3082, 23, 990, 186, 119140, 9433, 13438, 11737, 4460, 33, 4343, 50339, ...
[ 0.082763671875, 0.06756591796875, 0.104248046875, 0.1949462890625, 0.043212890625, 0.1431884765625, 0.2174072265625, 0.0904541015625, 0.2003173828125, 0.185546875, 0.0543212890625, 0.032440185546875, 0.09075927734375, 0.0860595703125, 0.114013671875, 0.1192626953125, 0.0797119140625,...
embed
63371755_c0
63371755
prolog
0
Title: Why does my prolog rule get stuck in infinite recursion Problem title: Why does my prolog rule get stuck in infinite recursion Tags: transitive-closure, failure-slice, prolog, recursion Problem: Why does my prolog rule get stuck in infinite recursion My code works for its intended purpose but always gets stuck i...
Why does my prolog rule get stuck in infinite recursion Why does my prolog rule get stuck in infinite recursion transitive-closure failure-slice prolog recursion Why Why does my prolog rule get stuck in infinite recursion My code works for its intended purpose but always gets stuck in a loop at the end giving me an err...
[ 0.0196533203125, 0.00994873046875, 0.0135498046875, 0.00836181640625, 0.0096435546875, 0.00177764892578125, -0.003509521484375, -0.000019073486328125, 0.0185546875, -0.039306640625, 0.007537841796875, -0.0111083984375, -0.024658203125, -0.0035858154296875, 0.02294921875, 0.007019042968...
[ 44084, 14602, 759, 502, 4867, 79986, 2046, 179933, 23, 54241, 13, 195625, 1830, 62621, 5844, 170224, 137578, 13348, 18151, 43240, 179140, 60042, 11343, 62163, 40956, 3564, 18499, 42378, 2594, 17475, 204839, 297, 35064 ]
[ 0.1046142578125, 0.0279388427734375, 0.0241241455078125, 0.156982421875, 0.221923828125, 0.173828125, 0.06317138671875, 0.205322265625, 0.07684326171875, 0.143798828125, 0.05010986328125, 0.18359375, 0.062103271484375, 0.0936279296875, 0.06402587890625, 0.1453857421875, 0.16027832031...
embed
56495710_c0
56495710
prolog
0
Title: Checking if first three elements of list are same data type.Prolog Problem title: Checking if first three elements of list are same data type.Prolog Tags: prolog Problem: Checking if first three elements of list are same data type.Prolog I am begginer in Prolog.I have my custom types bird,fish,animal.So the prob...
Checking if first three elements of list are same data type.Prolog Checking if first three elements of list are same data type.Prolog prolog Checking type.Prolog Checking if first three elements of list are same data type.Prolog I am begginer in Prolog.I have my custom types bird,fish,animal.So the problem is i want to...
[ 0.009765625, 0.006927490234375, 0.004425048828125, 0.01080322265625, -0.011474609375, -0.006011962890625, -0.0133056640625, 0.0123291015625, 0.0010986328125, -0.04541015625, 0.01165771484375, -0.0216064453125, 0.0135498046875, -0.006195068359375, 0.0028533935546875, 0.01312255859375, ...
[ 38679, 214, 2174, 5117, 17262, 80854, 5303, 621, 5701, 2053, 10644, 10752, 4867, 111, 502, 1679, 1250, 114122, 52895, 263, 84433, 161834, 70, 2967, 3444, 27875, 32354, 20800, 107, 13, 27751, 15592, 134342, 33, 4460, 38507, 16750, 29568, 277...
[ 0.1602783203125, 0.06427001953125, 0.09033203125, 0.1314697265625, 0.2213134765625, 0.175537109375, 0.1728515625, 0.06365966796875, 0.16455078125, 0.1260986328125, 0.185302734375, 0.1029052734375, 0.2122802734375, 0.0087890625, 0.10211181640625, 0.0187225341796875, 0.1280517578125, ...
embed
40410440_c0
40410440
prolog
0
Title: Prolog throwing exception when predicate fails Problem title: Prolog throwing exception when predicate fails Tags: maze, prolog Problem: Prolog throwing exception when predicate fails From my understanding, if I have a predicate in disjunctive normal form (like (A && B) || (C && D) --> pred ) then I can do the f...
Prolog throwing exception when predicate fails Prolog throwing exception when predicate fails maze prolog Prolog Maze Path Score find_eggs_and_pika Masterball_found PrevDirection Has_egg Egg_steps is_masterball nth1 Row Call _339 _373 _470 Exit Fail Exception Prolog throwing exception when predicate fails From my under...
[ 0.01513671875, 0.00469970703125, -0.0037841796875, 0.00141143798828125, -0.004638671875, 0.019775390625, 0.022216796875, 0.0081787109375, -0.004852294921875, -0.0267333984375, 0.0133056640625, 0.0155029296875, 0.0108642578125, -0.0201416015625, 0.03271484375, -0.01007080078125, 0.020...
[ 1250, 4867, 104250, 131527, 3229, 1653, 2063, 67, 35782, 291, 731, 502, 29678, 108421, 168071, 7413, 2507, 9405, 2940, 72419, 18897, 12126, 151645, 74717, 184911, 20625, 9815, 133535, 95528, 47327, 927, 96190, 26265, 131518, 10945, 363, 5757, ...
[ 0.1461181640625, 0.2130126953125, 0.139404296875, 0.2232666015625, 0.0460205078125, 0.1934814453125, 0.2469482421875, 0.1234130859375, 0.212646484375, 0.06488037109375, 0.068359375, 0.0640869140625, 0.07781982421875, 0.1314697265625, 0.085693359375, 0.06768798828125, 0.05856323242187...
embed
53994367_c0
53994367
prolog
0
Title: Convert FOL clauses to PROLOG Problem title: Convert FOL clauses to PROLOG Tags: first-order-logic, prolog Problem: Convert FOL clauses to PROLOG I am very new to PROLOG so it might be a very trivial question, but I absolutely have no idea how to solve it. There are 4 sentences I need to formulate into PROLOG co...
Convert FOL clauses to PROLOG Convert FOL clauses to PROLOG first-order-logic prolog Convert FOL PROLOG HOUND HOWL HAVE CAT MOUSE Light_Sleeper John Convert FOL clauses to PROLOG I am very new to PROLOG so it might be a very trivial question, but I absolutely have no idea how to solve it. There are 4 sentences I need t...
[ 0.00445556640625, 0.0048828125, -0.0125732421875, 0.00811767578125, -0.030029296875, 0.005828857421875, -0.0035858154296875, 0.0074462890625, -0.0042724609375, -0.009521484375, -0.007080078125, -0.01129150390625, -0.021240234375, -0.0023651123046875, 0.00897216796875, 0.0098876953125, ...
[ 1657, 11549, 172155, 70731, 90, 47, 10514, 47510, 5117, 80596, 137043, 502, 4867, 21997, 34384, 181280, 572, 65298, 100632, 11507, 78441, 30948, 63448, 1264, 4939, 3525, 686, 115839, 6528, 86869, 201, 149357, 3871, 26168, 67, 3934, 18151, 967...
[ 0.052520751953125, 0.136474609375, 0.26025390625, 0.2152099609375, 0.09576416015625, 0.09478759765625, 0.1898193359375, 0.26904296875, 0.041778564453125, 0.1513671875, 0.110595703125, 0.1153564453125, 0.25048828125, 0.015380859375, 0.098876953125, 0.115966796875, 0.034912109375, 0....
embed