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
47183788_c0
47183788
prolog
0
Title: PROLOG a particular finite-state-automaton Problem title: PROLOG a particular finite-state-automaton Tags: prolog, automaton, finite-state-automaton Problem: PROLOG a particular finite-state-automaton I can't find an answer for the following problem. The automaton accept strings like "A:5739." or "C::399\4342)",...
PROLOG a particular finite-state-automaton PROLOG a particular finite-state-automaton prolog automaton finite-state-automaton PROLOG PROLOG a particular finite-state-automaton I can't find an answer for the following problem. The automaton accept strings like "A:5739." or "C::399\4342)", and these reminds me the path o...
[ 0.0198974609375, -0.0068359375, 0.000354766845703125, 0.028564453125, -0.032470703125, 0.0064697265625, -0.000579833984375, 0.0242919921875, -0.00836181640625, -0.006195068359375, 0.0264892578125, -0.01397705078125, -0.02294921875, 0.0223388671875, 0.0128173828125, -0.00982666015625, ...
[ 10514, 47510, 10, 17311, 94418, 61340, 52344, 191, 502, 4867, 11408, 13, 35166, 25632, 2967, 26946, 79315, 1884, 284, 35315, 9323, 441, 12, 34539, 1126, 41872, 152697, 10461, 6097, 98911, 163, 60875, 111, 70, 11435, 5426, 959, 9077, 15649, ...
[ 0.221435546875, 0.2880859375, 0.01727294921875, 0.1767578125, 0.1790771484375, 0.12255859375, 0.2198486328125, 0.1749267578125, 0.17919921875, 0.217529296875, 0.268798828125, 0.01934814453125, 0.125732421875, 0.04193115234375, 0.1190185546875, 0.2020263671875, 0.2491455078125, 0.05...
embed
55190619_c0
55190619
prolog
0
Title: how do I implement a transpose predicate the right way (Prolog)? Problem title: how do I implement a transpose predicate the right way (Prolog)? Tags: prolog, list Problem: how do I implement a transpose predicate the right way (Prolog)? I am making a program that solves a puzzle. but I need to make a predicate ...
how do I implement a transpose predicate the right way (Prolog)? how do I implement a transpose predicate the right way (Prolog)? prolog list Prolog trans1 I-1 how do I implement a transpose predicate the right way (Prolog)? I am making a program that solves a puzzle. but I need to make a predicate that returns the tra...
[ -0.000499725341796875, 0.01068115234375, 0.0196533203125, 0.00823974609375, -0.013671875, -0.0024261474609375, -0.00909423828125, 0.002532958984375, 0.0021514892578125, -0.034423828125, 0.017333984375, 0.0185546875, -0.01434326171875, -0.00714111328125, -0.01397705078125, 0.00848388671...
[ 3642, 29479, 3900, 78381, 1653, 2063, 67, 7108, 3917, 10752, 4867, 502, 5303, 1250, 418, 5759, 54, 87, 10, 20662, 1528, 86869, 104192, 3249, 30646, 50944, 425, 6562, 4527, 5983, 4488, 4420, 19364, 177261, 17475, 204839, 133063, 82449, 1542,...
[ 0.05963134765625, 0.2315673828125, 0.2373046875, 0.220947265625, 0.1968994140625, 0.2169189453125, 0.1138916015625, 0.0919189453125, 0.043853759765625, 0.13720703125, 0.2071533203125, 0.10528564453125, 0.1558837890625, 0.125, 0.045074462890625, 0.037109375, 0.0301971435546875, 0.03...
embed
4424014_c0
4424014
prolog
0
Title: Prolog.NET: backtracing and arrays Problem title: Prolog.NET: backtracing and arrays Tags: .net, prolog Problem: Prolog.NET: backtracing and arrays I apologize for wasting your time, but I am stucked :/ I read the manual few times but I still have got few questions about developing in Prolog.Net (http://prolog.h...
Prolog.NET: backtracing and arrays Prolog.NET: backtracing and arrays .net prolog Prolog.NET AbstractTerm ArrayList symptomsConfirmed.ToArray symptomsDenied.ToArray database.q Prolog.NET: backtracing and arrays I apologize for wasting your time, but I am stucked :/ I read the manual few times but I still have got few q...
[ 0.024169921875, 0.0172119140625, 0.00860595703125, 0.0166015625, -0.01007080078125, -0.004425048828125, 0.000896453857421875, 0.02783203125, 0.01708984375, -0.050048828125, 0.01544189453125, 0.000827789306640625, -0.00958251953125, -0.010009765625, -0.006744384765625, -0.00497436523437...
[ 1250, 4867, 17777, 4420, 39989, 214, 136, 10298, 4778, 1179, 502, 233973, 35484, 69253, 154663, 153698, 38949, 7763, 7614, 7092, 2597, 63399, 864, 1747, 12524, 509, 1733, 1284, 444, 179933, 12301, 23009, 10846, 7464, 17582, 168698, 24447, 345...
[ 0.17578125, 0.27197265625, 0.1773681640625, 0.1279296875, 0.1927490234375, 0.09307861328125, 0.053955078125, 0.1751708984375, 0.173583984375, 0.14453125, 0.0904541015625, 0.16357421875, 0.12890625, 0.141845703125, 0.1114501953125, 0.138427734375, 0.09375, 0.05096435546875, 0.0561...
embed
29271958_c0
29271958
prolog
0
Title: How to use retract/retractall along side assertz in pyswip Problem title: How to use retract/retractall along side assertz in pyswip Tags: swi-prolog, prolog Problem: How to use retract/retractall along side assertz in pyswip I am facing buffered facts issue, where assertz(facts) from previous query also remains...
How to use retract/retractall along side assertz in pyswip How to use retract/retractall along side assertz in pyswip swi-prolog prolog How self.prolog_question_identify Prolog self.prolog_question_identify.consult subject_object.pro self.post_script_link_list self.outObj.createLinkage link.links UDF preprocess_link_ou...
[ 0.0286865234375, 0.002105712890625, 0.005126953125, 0.035400390625, -0.021728515625, -0.00506591796875, 0.018798828125, 0.017822265625, -0.0030517578125, -0.024169921875, 0.031005859375, -0.0018157958984375, -0.0030975341796875, -0.01275634765625, 0.0113525390625, -0.01434326171875, ...
[ 11249, 4527, 41499, 15390, 107, 39989, 91569, 33233, 5609, 237, 33657, 169, 57756, 2452, 254, 64, 3454, 4867, 502, 15970, 7162, 1363, 52128, 40383, 1250, 147834, 28368, 187694, 10187, 6056, 46471, 170, 64287, 3126, 38997, 479, 63923, 162, 1...
[ 0.003692626953125, 0.12646484375, 0.239013671875, 0.2281494140625, 0.08038330078125, 0.1463623046875, 0.262451171875, 0.1077880859375, 0.11181640625, 0.07861328125, 0.2208251953125, 0.195068359375, 0.145751953125, 0.220458984375, 0.1326904296875, 0.00921630859375, 0.10009765625, 0....
embed
67496849_c0
67496849
prolog
0
Title: What exactly is the vertical slash function in PROLOG? Is it an operator? Problem title: What exactly is the vertical slash function in PROLOG? Is it an operator? Tags: operators, syntax, swi-prolog, prolog, list Problem: What exactly is the vertical slash function in PROLOG? Is it an operator? while reading the...
What exactly is the vertical slash function in PROLOG? Is it an operator? What exactly is the vertical slash function in PROLOG? Is it an operator? operators syntax swi-prolog prolog list What PROLOG Head Tail What exactly is the vertical slash function in PROLOG? Is it an operator? while reading the documentations and...
[ 0.038330078125, 0.0086669921875, 0.02294921875, 0.004180908203125, -0.0211181640625, -0.002197265625, -0.003692626953125, 0.01361083984375, 0.00799560546875, -0.00124359130859375, 0.0146484375, -0.016845703125, -0.003936767578125, -0.003997802734375, -0.013427734375, -0.00592041015625,...
[ 4865, 66161, 79259, 91, 5544, 32354, 23, 10514, 47510, 39933, 442, 6002, 86531, 2452, 3454, 4867, 502, 5303, 44816, 1218, 379, 83, 70, 142, 38969, 208124, 12921, 2684, 46876, 1556, 136, 159, 36510, 58745, 8781, 108047, 1620, 27853, 10336, ...
[ 0.006011962890625, 0.1038818359375, 0.289794921875, 0.084228515625, 0.2509765625, 0.179443359375, 0.04583740234375, 0.1756591796875, 0.2398681640625, 0.2373046875, 0.028961181640625, 0.0811767578125, 0.179443359375, 0.124755859375, 0.09979248046875, 0.1781005859375, 0.1019287109375, ...
embed
62050756_c1
62050756
prolog
1
912, [1]) Exit:lists:member(1, [1]) Call:ascending([1, 1]) Call:1<1 Fail:1<1 Fail:ascending([1, 1]) Redo:gen_list_of_pairs([1], _7902) Call:gen_list_of_pairs([1], _7920) Exit:gen_list_of_pairs([1], []) Call:lists:member(_7924, [1]) Exit:lists:member(1, [1]) Call:lists:member(_7930, [1]) Exit:lists:member(1, [1]) Call:a...
912, [1]) Exit:lists:member(1, [1]) Call:ascending([1, 1]) Call:1<1 Fail:1<1 Fail:ascending([1, 1]) Redo:gen_list_of_pairs([1], _7902) Call:gen_list_of_pairs([1], _7920) Exit:gen_list_of_pairs([1], []) Call:lists:member(_7924, [1]) Exit:lists:member(1, [1]) Call:lists:member(_7930, [1]) Exit:lists:member(1, [1]) Call:a...
[ 0.0098876953125, 0.019287109375, 0.0012359619140625, -0.005035400390625, -0.010009765625, 0.00689697265625, -0.01806640625, -0.0216064453125, 0.0068359375, -0.01397705078125, 0.0311279296875, 0.0206298828125, 0.00860595703125, -0.0177001953125, 0.00994873046875, -0.00323486328125, 0....
[ 483, 1530, 4, 17550, 5443, 217, 6562, 7, 39, 27417, 41600, 26265, 162, 329, 33770, 418, 106, 19721, 16093, 190355, 6096, 31, 1409, 4390, 109637, 123048, 10461, 22377, 73419, 2357, 1197, 153, 1957, 7103, 140992, 1542, 2203, 378, 502, 4867,...
[ 0.22265625, 0.282470703125, 0.0789794921875, 0.06939697265625, 0.154541015625, 0.10546875, 0.230712890625, 0.0093994140625, 0.030517578125, 0.186279296875, 0.0517578125, 0.2030029296875, 0.04132080078125, 0.1246337890625, 0.10540771484375, 0.0604248046875, 0.0577392578125, 0.040710...
embed
70294096_c0
70294096
prolog
0
Title: How to code a program in prolog, that does comparison on graphs Problem title: How to code a program in prolog, that does comparison on graphs Tags: prolog Problem: How to code a program in prolog, that does comparison on graphs I'm trying to code a program in prolog that says true if all the paths from a to b a...
How to code a program in prolog, that does comparison on graphs How to code a program in prolog, that does comparison on graphs prolog How chemin1 chemin2 How to code a program in prolog, that does comparison on graphs I'm trying to code a program in prolog that says true if all the paths from a to b are the same size....
[ 0.00775146484375, 0.000946044921875, -0.00531005859375, 0.026611328125, -0.00482177734375, 0.009765625, -0.011474609375, 0.006805419921875, 0.017333984375, -0.0255126953125, 0.01513671875, -0.00128173828125, -0.005096435546875, 0.00823974609375, 0.01300048828125, 0.00177764892578125, ...
[ 11249, 47, 18151, 1528, 23, 502, 4867, 14602, 225490, 98, 41382, 7, 450, 60537, 418, 304, 31577, 17378, 29568, 2174, 756, 60875, 1295, 10, 876, 5701, 13267, 15700, 98320, 6626, 12921, 106, 787, 8110, 2046, 140909, 12638, 179933, 69101, 50...
[ 0.0743408203125, 0.1407470703125, 0.2413330078125, 0.2159423828125, 0.07049560546875, 0.175048828125, 0.2203369140625, 0.06744384765625, 0.260009765625, 0.1082763671875, 0.22607421875, 0.08551025390625, 0.01287841796875, 0.19091796875, 0.0531005859375, 0.1370849609375, 0.010528564453...
embed
22593341_c0
22593341
prolog
0
Title: How to extract a prefix given a suffix in a DCG Problem title: How to extract a prefix given a suffix in a DCG Tags: prolog, dcg Problem: How to extract a prefix given a suffix in a DCG pc --> [ta] -> [tb] -> [tc] . If I have tc , how do I get [ta,tb] put into a variable? If I have the tail end of a list defined...
How to extract a prefix given a suffix in a DCG How to extract a prefix given a suffix in a DCG prolog dcg How DCG Variable Head How to extract a prefix given a suffix in a DCG If I have tc , how do I get [ta,tb] put into a variable? If I have the tail end of a list defined in a definite clause, how do I get the precee...
[ 0.02392578125, 0.00225830078125, -0.01806640625, 0.0218505859375, -0.00537109375, -0.00015354156494140625, 0.00933837890625, -0.0101318359375, 0.0272216796875, -0.03173828125, -0.019775390625, -0.0225830078125, -0.00927734375, 0.00592041015625, 0.003509521484375, 0.0264892578125, -0....
[ 11249, 47, 125663, 183114, 34475, 133784, 425, 391, 56367, 502, 4867, 177, 84572, 2886, 44816, 808, 238, 3642, 2046, 102, 18, 275, 3884, 3934, 77336, 46741, 3564, 5303, 61924, 71496, 70731, 76208, 26420, 80854, 237, 69723, 140909, 51515, 79...
[ 0.0682373046875, 0.011871337890625, 0.2166748046875, 0.279052734375, 0.07208251953125, 0.183837890625, 0.125, 0.073974609375, 0.2010498046875, 0.077392578125, 0.1461181640625, 0.0565185546875, 0.1168212890625, 0.01690673828125, 0.1558837890625, 0.011962890625, 0.090087890625, 0.051...
embed
27362505_c0
27362505
prolog
0
Title: Prolog maze stop looping Problem title: Prolog maze stop looping Tags: prolog, maze, loops Problem: Prolog maze stop looping I've managed to piece together a script which goes through all of links and display them back to me however I can't seem to work out why with the one of the links the entire script loops t...
Prolog maze stop looping Prolog maze stop looping prolog maze loops Prolog find_route Prolog maze stop looping I've managed to piece together a script which goes through all of links and display them back to me however I can't seem to work out why with the one of the links the entire script loops to infinity. If you re...
[ 0.021484375, -0.01324462890625, 0.0087890625, 0.0078125, 0.0021209716796875, -0.01434326171875, -0.00139617919921875, 0.0230712890625, 0.022705078125, -0.07373046875, 0.001953125, -0.01385498046875, -0.0031280517578125, 0.0007476806640625, 0.031982421875, 0.01043701171875, 0.01538085...
[ 1250, 4867, 291, 731, 7279, 40956, 214, 502, 7413, 133261, 145755, 63847, 25842, 26499, 8305, 756, 111, 22317, 44116, 4420, 47, 163, 4488, 15400, 678, 1632, 64194, 7, 54241, 53, 87388, 3126, 35064, 1528, 17336, 18151, 28484, 82424, 14858, ...
[ 0.1763916015625, 0.225341796875, 0.110107421875, 0.17626953125, 0.191650390625, 0.20654296875, 0.054443359375, 0.103271484375, 0.109375, 0.203857421875, 0.0465087890625, 0.034912109375, 0.0262298583984375, 0.206298828125, 0.12646484375, 0.0369873046875, 0.0178680419921875, 0.173339...
embed
77008973_c0
77008973
prolog
0
Title: Prolog - get best value among permutations of list Problem title: Prolog - get best value among permutations of list Tags: prolog Problem: Prolog - get best value among permutations of list In Prolog, i have a simple list of twelve strings. I also have a list of rules that together assign a score to that list. S...
Prolog - get best value among permutations of list Prolog - get best value among permutations of list prolog Prolog InitialSettings NewSettings NewSettingsScore check_bonds Prolog - get best value among permutations of list In Prolog, i have a simple list of twelve strings. I also have a list of rules that together ass...
[ -0.0137939453125, 0.003875732421875, 0.0164794921875, 0.033447265625, -0.013427734375, 0.025146484375, -0.023193359375, 0.006103515625, 0.02294921875, -0.04052734375, 0.0224609375, 0.0198974609375, 0.0186767578125, -0.0106201171875, -0.010009765625, -0.0024566650390625, -0.0003032684...
[ 1250, 4867, 2046, 2965, 34292, 54940, 117, 14311, 21094, 5303, 111, 502, 1890, 105548, 2356, 30854, 12765, 52869, 8781, 77488, 76456, 79315, 91736, 25842, 95486, 47763, 80854, 158012, 1543, 959, 36356, 79986, 3871, 7413, 561, 22062, 76199, 16...
[ 0.16943359375, 0.2548828125, 0.1021728515625, 0.1688232421875, 0.20703125, 0.14453125, 0.1265869140625, 0.2261962890625, 0.111572265625, 0.1859130859375, 0.034454345703125, 0.09912109375, 0.03424072265625, 0.1939697265625, 0.1162109375, 0.1700439453125, 0.1632080078125, 0.190795898...
embed
78293923_c1
78293923
prolog
1
6]}), [](_1606{[2 .. 4]}, 5, 1, _1620{[2 .. 4]}, _1634{[2 .. 4]}, 6) ) which makes sense, as no value in the second row can be 1 or 5, but all other digits would still be valid (and similarly with the third row). The next loop starts with the second row, and for each value in the row, finds the index of that same valu...
6]}), [](_1606{[2 .. 4]}, 5, 1, _1620{[2 .. 4]}, _1634{[2 .. 4]}, 6) ) which makes sense, as no value in the second row can be 1 or 5, but all other digits would still be valid (and similarly with the third row). The next loop starts with the second row, and for each value in the row, finds the index of that same valu...
[ -0.01214599609375, 0.00011348724365234375, 0.01220703125, 0.0118408203125, -0.01324462890625, -0.00390625, -0.01300048828125, 0.0113525390625, 0.029541015625, 0.0120849609375, 0.0042724609375, -0.01116943359375, 0.01348876953125, -0.00885009765625, -0.00634765625, 0.005096435546875, ...
[ 305, 268, 8152, 161025, 201, 190, 106, 2485, 1549, 10289, 35914, 10422, 110, 34292, 17932, 15555, 831, 153939, 35604, 50960, 11737, 40956, 4034, 12638, 7413, 63262, 5701, 36917, 70, 60212, 959, 787, 31089, 28412, 31471, 24988, 8206, 3768, 1...
[ 0.1474609375, 0.0183258056640625, 0.01470947265625, 0.2244873046875, 0.0404052734375, 0.121826171875, 0.020416259765625, 0.0828857421875, 0.1483154296875, 0.154541015625, 0.121337890625, 0.0943603515625, 0.147705078125, 0.1319580078125, 0.1143798828125, 0.171630859375, 0.021148681640...
embed
15915925_c0
15915925
prolog
0
Title: Improving select/3 in ProLog Problem title: Improving select/3 in ProLog Tags: select, prolog Problem: Improving select/3 in ProLog I would like to improve select/3 in prolog by selecting multiple elements in a given list (instead of one). For example, if I select X = 1 and Y = 2 in this list, [1,2,3] , then the...
Improving select/3 in ProLog Improving select/3 in ProLog select prolog Improving ProLog select_pair Improving select/3 in ProLog I would like to improve select/3 in prolog by selecting multiple elements in a given list (instead of one). For example, if I select X = 1 and Y = 2 in this list, [1,2,3] , then the result w...
[ -0.003509521484375, 0.00830078125, 0.0233154296875, 0.017822265625, -0.0247802734375, 0.00445556640625, -0.0218505859375, 0.004608154296875, 0.0250244140625, -0.00408935546875, 0.02978515625, 0.019287109375, -0.006317138671875, 0.002044677734375, 0.00982666015625, 0.00830078125, 0.01...
[ 3370, 70628, 36849, 18113, 1250, 113972, 502, 4867, 109637, 2806, 1884, 52295, 214, 48716, 80854, 34475, 5303, 824, 1632, 27781, 2174, 1193, 2203, 106, 136, 990, 116, 903, 155761, 16750, 50740, 26785, 50339, 5608, 186, 567, 7, 15072, 3714, ...
[ 0.04083251953125, 0.15380859375, 0.222900390625, 0.2369384765625, 0.151123046875, 0.20556640625, 0.135986328125, 0.2061767578125, 0.1927490234375, 0.00823974609375, 0.0645751953125, 0.191162109375, 0.0166015625, 0.139892578125, 0.1490478515625, 0.01611328125, 0.1304931640625, 0.078...
embed
33218559_c0
33218559
prolog
0
Title: Changing order of arguments in predicate changes result Problem title: Changing order of arguments in predicate changes result Tags: prolog Problem: Changing order of arguments in predicate changes result Hello I'm new to Prolog and some things about it just confuse me. So I have this list of Facts and a predeca...
Changing order of arguments in predicate changes result Changing order of arguments in predicate changes result prolog Changing Changing order of arguments in predicate changes result Hello I'm new to Prolog and some things about it just confuse me. So I have this list of Facts and a predecate: So if I do ?-sister(S,X)...
[ 0.02392578125, -0.0093994140625, 0.003082275390625, -0.0086669921875, -0.006072998046875, 0.0169677734375, 0.00921630859375, 0.005279541015625, -0.0037384033203125, -0.031005859375, 0.01214599609375, 0.01708984375, -0.00738525390625, 0.01165771484375, 0.00335693359375, 0.0152587890625,...
[ 108193, 214, 12989, 10750, 7, 23, 1653, 2063, 67, 65572, 16750, 502, 4867, 35378, 1250, 55681, 5303, 132640, 13, 33478, 1061, 2174, 54, 705, 19656, 294, 1542, 35166, 16106, 15490, 159, 83, 114015, 111, 164055, 1369, 87377, 1884, 186683, 2...
[ 0.154541015625, 0.023406982421875, 0.188232421875, 0.2086181640625, 0.048828125, 0.01348876953125, 0.162841796875, 0.1754150390625, 0.05712890625, 0.1806640625, 0.162841796875, 0.10272216796875, 0.162353515625, 0.0103759765625, 0.09307861328125, 0.012603759765625, 0.08477783203125, ...
embed
33988462_c0
33988462
prolog
0
Title: Prolog minimum value in a list Problem title: Prolog minimum value in a list Tags: logic-programming, prolog Problem: Prolog minimum value in a list I'm working on defining a predicate min_in_list/2 that would find the smallest value on a list. If there is less than 2 elements in the list the program should outp...
Prolog minimum value in a list Prolog minimum value in a list logic-programming prolog Prolog min_in_list Error There Min List Prolog minimum value in a list I'm working on defining a predicate min_in_list/2 that would find the smallest value on a list. If there is less than 2 elements in the list the program should ou...
[ 0.004547119140625, -0.005096435546875, 0.0098876953125, 0.00958251953125, -0.0155029296875, 0.0301513671875, -0.0037994384765625, -0.01251220703125, 0.00592041015625, 0.0016632080078125, 0.0184326171875, -0.021484375, 0.0162353515625, -0.002655029296875, 0.014404296875, 0.021240234375,...
[ 1250, 4867, 15440, 34292, 23, 5303, 62775, 28966, 502, 881, 73, 6562, 212059, 8622, 4211, 32036, 20697, 13204, 1653, 2063, 12477, 7413, 70, 19336, 525, 40715, 3501, 116, 80854, 1528, 140992, 18468, 31611, 959, 20174, 12830, 153939, 304, 11,...
[ 0.169677734375, 0.21923828125, 0.232177734375, 0.1800537109375, 0.0699462890625, 0.20703125, 0.082275390625, 0.0555419921875, 0.1251220703125, 0.245361328125, 0.14697265625, 0.20361328125, 0.1700439453125, 0.155517578125, 0.258056640625, 0.1917724609375, 0.0301971435546875, 0.05432...
embed
54181325_c0
54181325
prolog
0
Title: add base clause to a recursive predicate prolog Problem title: add base clause to a recursive predicate prolog Tags: prolog, infinite-loop Problem: add base clause to a recursive predicate prolog i have a recursive predicate that is getting stuck in an infinite loop and crashes the program. the predicate that ap...
add base clause to a recursive predicate prolog add base clause to a recursive predicate prolog prolog infinite-loop np2 add base clause to a recursive predicate prolog i have a recursive predicate that is getting stuck in an infinite loop and crashes the program. the predicate that appears to be stuck in the loop is a...
[ 0.0101318359375, 0.0032958984375, 0.00160980224609375, 0.01239013671875, -0.00579833984375, 0.0380859375, 0.019287109375, 0.0002040863037109375, 0.028076171875, -0.0458984375, 0.0224609375, 0.0159912109375, -0.018310546875, -0.00110626220703125, 0.0162353515625, 0.0140380859375, -0.0...
[ 15190, 3647, 70731, 13, 47, 195625, 5844, 1653, 2063, 67, 502, 4867, 54241, 28354, 25037, 304, 20949, 179933, 23, 40956, 150631, 1528, 135179, 107730, 627, 149357, 83018, 3667, 66, 170, 18345, 309, 1021, 9319, 81465, 5062, 11, 70810, 14137,...
[ 0.10418701171875, 0.237060546875, 0.2017822265625, 0.0885009765625, 0.049224853515625, 0.1798095703125, 0.1114501953125, 0.1585693359375, 0.2149658203125, 0.06414794921875, 0.1435546875, 0.2073974609375, 0.0853271484375, 0.1702880859375, 0.095947265625, 0.134765625, 0.022232055664062...
embed
10440844_c0
10440844
prolog
0
Title: Pairs in a list of lists prolog Problem title: Pairs in a list of lists prolog Tags: nested-lists, prolog, combinations Problem: Pairs in a list of lists prolog I have to find all possible pairs in a list, the following way: given a list L=[[1,1,1],[1,2,1],[2,1,1],[2,2,1],[3,1,1],[3,2,1]] [1,1,1] has pairs [1,1]...
Pairs in a list of lists prolog Pairs in a list of lists prolog nested-lists prolog combinations Pairs do_pairs do_pairs1 I-J Pairs in a list of lists prolog I have to find all possible pairs in a list, the following way: given a list L=[[1,1,1],[1,2,1],[2,1,1],[2,2,1],[3,1,1],[3,2,1]] [1,1,1] has pairs [1,1],[1,1],[1,...
[ -0.0201416015625, 0.0228271484375, 0.00872802734375, 0.006591796875, -0.01416015625, 0.027099609375, -0.016357421875, -0.00543212890625, 0.00958251953125, -0.038330078125, 0.00384521484375, 0.00074005126953125, 0.011962890625, -0.0030364990234375, -0.00799560546875, 0.01202392578125, ...
[ 37897, 4295, 23, 5303, 111, 502, 4867, 8512, 6562, 162515, 54, 109637, 7, 418, 87, 9, 1375, 765, 47, 7413, 756, 7722, 80836, 10, 25632, 3917, 34475, 339, 1369, 133063, 304, 363, 76172, 1556, 6637, 21771, 14037, 959, 5701, 105866, 12921,...
[ 0.265869140625, 0.1436767578125, 0.11279296875, 0.2369384765625, 0.04913330078125, 0.1524658203125, 0.2105712890625, 0.1302490234375, 0.1827392578125, 0.144287109375, 0.08642578125, 0.2890625, 0.033447265625, 0.0633544921875, 0.099365234375, 0.05828857421875, 0.1995849609375, 0.033...
embed
58760554_c0
58760554
prolog
0
Title: SWI Prolog foreach/2 Problem title: SWI Prolog foreach/2 Tags: swi-prolog, loops, prolog Problem: SWI Prolog foreach/2 Consider ?- length(L, 4), foreach(member(M,L),(length(M,4))). L = [_28602, _28608, _28614, _28620]. vs ?- length(L, 4), foreach(between(1,4,I),call({L}/[I]>>(nth1(I,L,M),length(M,4)),I)). L = [[...
SWI Prolog foreach/2 SWI Prolog foreach/2 swi-prolog loops prolog SWI Prolog _28602 _28608 _28614 _28620 nth1 _6010 _6016 _6022 _6028 _6358 _6364 _6370 _6376 _6754 _6760 _6766 _6772 _7198 _7204 _7210 _7216 _3400 _4060 _4066 _4072 _4054 _60830 _61872 _61878 _61944 _61950 _61956 _61866 Gen Cond SWI Prolog foreach/2 Consi...
[ -0.0006103515625, 0.0208740234375, -0.0034027099609375, -0.001800537109375, -0.0029144287109375, -0.0013275146484375, 0.009033203125, 0.00872802734375, 0.01904296875, -0.04541015625, 0.041259765625, 0.03369140625, -0.01165771484375, -0.005279541015625, 0.033447265625, -0.020263671875, ...
[ 159, 38969, 1250, 4867, 100, 41581, 12477, 91, 2452, 3454, 40956, 502, 3882, 4598, 304, 170285, 2592, 1549, 927, 963, 2485, 144827, 173300, 71025, 178683, 151210, 113108, 189638, 15937, 1657, 71, 137399, 20209, 1884, 16750, 17368, 32786, 2936...
[ 0.040802001953125, 0.2205810546875, 0.153076171875, 0.194580078125, 0.1090087890625, 0.28564453125, 0.19189453125, 0.00067138671875, 0.1839599609375, 0.04461669921875, 0.1591796875, 0.1181640625, 0.0975341796875, 0.103515625, 0.04351806640625, 0.11279296875, 0.0570068359375, 0.1059...
embed
67745610_c1
67745610
prolog
1
+ HCost, node(Destination, Min, Max) infers most, Cost #>= Min, Cost #=< Max. where the [HCost | TCost] is the list of the costs mentioned before, but sorted and reversed (so i have as n element of the list the first link, ad n-1 the second and so on). Furthermore the node predicate is contained in prolog file loaded ...
+ HCost, node(Destination, Min, Max) infers most, Cost #>= Min, Cost #=< Max. where the [HCost | TCost] is the list of the costs mentioned before, but sorted and reversed (so i have as n element of the list the first link, ad n-1 the second and so on). Furthermore the node predicate is contained in prolog file loaded ...
[ 0.00008296966552734375, 0.0196533203125, 0.00885009765625, 0.024658203125, 0.002105712890625, 0.017578125, 0.017822265625, -0.033203125, -0.0064697265625, -0.0703125, 0.01129150390625, -0.0205078125, -0.00130462646484375, -0.006195068359375, 0.00909423828125, -0.00885009765625, 0.010...
[ 997, 81118, 5510, 110, 112, 4657, 12729, 2320, 4211, 9920, 53498, 2684, 63099, 468, 2740, 1369, 16093, 73265, 80844, 5303, 84458, 17497, 39531, 653, 12830, 3126, 606, 5759, 17932, 1653, 2063, 67, 70541, 502, 4867, 11435, 72367, 9842, 185397...
[ 0.171142578125, 0.0948486328125, 0.2440185546875, 0.1746826171875, 0.1666259765625, 0.0762939453125, 0.180419921875, 0.1090087890625, 0.2249755859375, 0.1622314453125, 0.229248046875, 0.187255859375, 0.2529296875, 0.005157470703125, 0.046173095703125, 0.0435791015625, 0.0162353515625...
embed
75020189_c1
75020189
prolog
1
adverb(Nt,A,As)-->{lc(adjective_phrase,Nt)},parse(adjective_phrase,N),adjective_phrase(Nt,adjective_phrase(A,N),As). noun(Nt,N,As)-->{lc(adjective_phrase,Nt)},adjective_phrase(Nt,adjective_phrase(N),As). adjective_phrase(adjective_phrase,A,A)-->[]. verb(Nt,V,As)-->{lc(verb_phrase,Nt)},parse(noun_phrase,N),verb_phrase(...
adverb(Nt,A,As)-->{lc(adjective_phrase,Nt)},parse(adjective_phrase,N),adjective_phrase(Nt,adjective_phrase(A,N),As). noun(Nt,N,As)-->{lc(adjective_phrase,Nt)},adjective_phrase(Nt,adjective_phrase(N),As). adjective_phrase(adjective_phrase,A,A)-->[]. verb(Nt,V,As)-->{lc(verb_phrase,Nt)},parse(noun_phrase,N),verb_phrase(...
[ -0.00567626953125, 0.0216064453125, -0.0177001953125, 0.0203857421875, -0.0012969970703125, 0.006927490234375, -0.00836181640625, 0.00006151199340820312, 0.01446533203125, -0.00958251953125, 0.00689697265625, 0.0145263671875, -0.037353515625, -0.005462646484375, 0.0155029296875, 0.0291...
[ 606, 81465, 839, 18, 284, 4, 19659, 152745, 32838, 712, 170, 100034, 179665, 184, 2500, 110, 309, 5, 42792, 856, 149357, 3034, 2347, 10176, 53408, 3542, 46002, 46132, 8647, 144851, 6954, 26265, 11438, 9271, 9285, 153109, 49512, 254, 17857, ...
[ 0.12939453125, 0.272705078125, 0.09747314453125, 0.123779296875, 0.135009765625, 0.00390625, 0.2054443359375, 0.05303955078125, 0.10491943359375, 0.036346435546875, 0.1507568359375, 0.18408203125, 0.204345703125, 0.0908203125, 0.1168212890625, 0.07183837890625, 0.150390625, 0.03668...
embed
41201167_c0
41201167
prolog
0
Title: How to convert the body of a clause into a list? Problem title: How to convert the body of a clause into a list? Tags: prolog Problem: How to convert the body of a clause into a list? I've got a Prolog clause that looks like this: inorder :- true(cell(1, 1, 1)), true(cell(1, 2, 2)), true(cell(1, 3, 3)), true(cel...
How to convert the body of a clause into a list? How to convert the body of a clause into a list? prolog How Body How to convert the body of a clause into a list? I've got a Prolog clause that looks like this: That I would like to convert into a list (say L) like this: The obvious way to start seems to be: But that pro...
[ 0.0361328125, -0.0042724609375, 0.02978515625, 0.0152587890625, -0.015869140625, 0.0274658203125, -0.01092529296875, -0.00958251953125, 0.005950927734375, -0.020751953125, -0.016357421875, 0.0242919921875, -0.017822265625, -0.0220947265625, 0.00180816650390625, 0.01019287109375, -0.0...
[ 11249, 47, 96760, 14361, 111, 70731, 13, 3934, 10, 5303, 502, 4867, 43960, 70, 1250, 33342, 1884, 339, 903, 162520, 3917, 4034, 37202, 27489, 9077, 3642, 125663, 9774, 90, 1295, 157666, 78688 ]
[ 0.071533203125, 0.03436279296875, 0.154541015625, 0.2474365234375, 0.057647705078125, 0.2161865234375, 0.1409912109375, 0.08245849609375, 0.0374755859375, 0.202880859375, 0.04736328125, 0.1748046875, 0.207763671875, 0.005584716796875, 0.10675048828125, 0.0926513671875, 0.037689208984...
embed
74832960_c0
74832960
prolog
0
Title: Generate List then Split into Two in Prolog Problem title: Generate List then Split into Two in Prolog Tags: swi-prolog, prolog, list Problem: Generate List then Split into Two in Prolog I am a complete amateur on Prolog so my question might be very basic. I want to automatically generate a list from 1 to N, the...
Generate List then Split into Two in Prolog Generate List then Split into Two in Prolog swi-prolog prolog list Generate List Split Two Prolog separate_even_odd Generate List then Split into Two in Prolog I am a complete amateur on Prolog so my question might be very basic. I want to automatically generate a list from 1...
[ 0.00173187255859375, 0.01165771484375, 0.004486083984375, -0.0126953125, -0.0205078125, 0.052001953125, -0.00262451171875, 0.01458740234375, 0.0111083984375, -0.02783203125, 0.01300048828125, -0.006103515625, -0.0067138671875, 0.01239013671875, -0.0016021728515625, -0.0087890625, 0.0...
[ 155370, 67, 32036, 7068, 46474, 3934, 32964, 23, 1250, 4867, 2452, 3454, 502, 5303, 84797, 26301, 13606, 79775, 62822, 3444, 191082, 139392, 1295, 106, 47, 541, 65450, 3853, 70270, 1660, 1632, 892, 107730, 23009, 190, 16750, 1884, 1193, 220...
[ 0.1834716796875, 0.0214996337890625, 0.2379150390625, 0.029754638671875, 0.2255859375, 0.1533203125, 0.1934814453125, 0.023223876953125, 0.149169921875, 0.203857421875, 0.1246337890625, 0.07904052734375, 0.08642578125, 0.2059326171875, 0.14453125, 0.1077880859375, 0.1611328125, 0.0...
embed
41020596_c1
41020596
prolog
1
5). street(1,5,65). street(2,5,30). street(3,4,40). street(3,7,50). street(4,5,25). street(4,6,30). street(4,9,65). street(4,7,70). street(5,6,30). street(6,9,35). street(6,10,60). street(7,8,35). street(7,9,30). street(8,9,70). street(8,11,40). street(8,13,50). street(9,10,50). street(9,11,30). street(10,11,50). stree...
5). street(1,5,65). street(2,5,30). street(3,4,40). street(3,7,50). street(4,5,25). street(4,6,30). street(4,9,65). street(4,7,70). street(5,6,30). street(6,9,35). street(6,10,60). street(7,8,35). street(7,9,30). street(8,9,70). street(8,11,40). street(8,13,50). street(9,10,50). street(9,11,30). street(10,11,50). stree...
[ 0.0157470703125, -0.005859375, 0.013916015625, 0.009033203125, -0.005035400390625, -0.005859375, -0.020751953125, -0.01239013671875, 0.0234375, -0.0087890625, 0.01470947265625, 0.0152587890625, -0.0115966796875, 0.0040283203125, -0.01171875, -0.0048828125, 0.00830078125, -0.0030364...
[ 21162, 5, 48800, 132, 57626, 4, 86468, 71928, 62946, 82449, 125136, 86827, 109631, 77495, 80389, 88942, 128191, 127915, 108368, 89149, 104629, 171379, 120840, 139303, 963, 88586, 136005, 166590, 145180, 1019, 1662, 206029, 92714, 1126, 2525, 194,...
[ 0.2138671875, 0.081298828125, 0.24609375, 0.034942626953125, 0.170166015625, 0.030426025390625, 0.2208251953125, 0.1553955078125, 0.1370849609375, 0.127197265625, 0.1365966796875, 0.071044921875, 0.114990234375, 0.08709716796875, 0.126220703125, 0.1378173828125, 0.1094970703125, 0....
embed
36831150_c0
36831150
prolog
0
Title: Swap beginning and end of lists in SWI-Prolog Problem title: Swap beginning and end of lists in SWI-Prolog Tags: list, swap, prolog Problem: Swap beginning and end of lists in SWI-Prolog Okay, so I am trying to code in SWI-Prolog. I am supposed to swap the beginning and end of a list (breaking at the middle elem...
Swap beginning and end of lists in SWI-Prolog Swap beginning and end of lists in SWI-Prolog list swap prolog Swap SWI-Prolog use_module Swapped same_length nth1 Las Half Swap beginning and end of lists in SWI-Prolog Okay, so I am trying to code in SWI-Prolog. I am supposed to swap the beginning and end of a list (break...
[ -0.007110595703125, 0.043212890625, 0.0186767578125, -0.01904296875, -0.0286865234375, 0.0013885498046875, -0.0042724609375, 0.00946044921875, 0.01239013671875, 0.01019287109375, 0.0189208984375, 0.0240478515625, -0.000957489013671875, 0.013671875, 0.01397705078125, -0.01708984375, 0...
[ 43062, 254, 86595, 136, 3564, 111, 5303, 7, 159, 38969, 9, 10752, 4867, 202317, 502, 4527, 83279, 48398, 5701, 23986, 653, 927, 418, 5599, 151500, 31577, 18151, 134598, 70, 70751, 86991, 12830, 3853, 13267, 8781, 70270, 63134, 11814, 24674,...
[ 0.2373046875, 0.1090087890625, 0.1947021484375, 0.125244140625, 0.19482421875, 0.05596923828125, 0.2232666015625, 0.00250244140625, 0.07183837890625, 0.214111328125, 0.0155792236328125, 0.1307373046875, 0.192138671875, 0.2734375, 0.1102294921875, 0.0286712646484375, 0.07421875, 0.0...
embed
9552973_c0
9552973
prolog
0
Title: Setting environment variables in windows 7 Problem title: Setting environment variables in windows 7 Tags: windows-7, prolog, environment-variables Problem: Setting environment variables in windows 7 I am trying to set my environment variable in windows 7 so that I can call prolog from the command line. I went i...
Setting environment variables in windows 7 Setting environment variables in windows 7 windows-7 prolog environment-variables Setting Python27 Program Files x86 Notepad windows-7 Setting environment variables in windows 7 I am trying to set my environment variable in windows 7 so that I can call prolog from the command ...
[ 0.0244140625, 0.0022125244140625, -0.00537109375, 0.030517578125, -0.005859375, 0.0157470703125, -0.01019287109375, -0.003753662109375, -0.015869140625, -0.0091552734375, 0.00160980224609375, 0.04736328125, -0.011962890625, -0.0032806396484375, -0.00061798095703125, -0.0020599365234375...
[ 503, 19514, 65998, 77336, 7, 23, 54825, 361, 16709, 502, 4867, 21690, 19736, 145581, 3768, 7663, 42724, 15276, 18622, 4299, 31577, 5423, 831, 11782, 1295, 75101, 13315, 3934, 5426, 53550, 27211, 33342, 1884, 903, 44691, 13695, 20949, 26008, ...
[ 0.15673828125, 0.0816650390625, 0.1842041015625, 0.26025390625, 0.050445556640625, 0.06866455078125, 0.134765625, 0.1993408203125, 0.1583251953125, 0.1827392578125, 0.260986328125, 0.1627197265625, 0.0162353515625, 0.2254638671875, 0.2095947265625, 0.1151123046875, 0.09765625, 0.15...
embed
29613789_c0
29613789
prolog
0
Title: Prolog: How can I implement the sum of squares of two largest numbers out of three? Problem title: Prolog: How can I implement the sum of squares of two largest numbers out of three? Tags: logic-programming, prolog, sicp Problem: Prolog: How can I implement the sum of squares of two largest numbers out of three?...
Prolog: How can I implement the sum of squares of two largest numbers out of three? Prolog: How can I implement the sum of squares of two largest numbers out of three? logic-programming prolog sicp Prolog How ERROR Arguments Prolog: How can I implement the sum of squares of two largest numbers out of three? Exercise 1....
[ 0.0174560546875, 0.0194091796875, 0.009521484375, 0.013427734375, -0.019775390625, 0.017822265625, -0.016845703125, 0.00897216796875, 0.01025390625, -0.00848388671875, 0.0245361328125, -0.0028228759765625, -0.00189208984375, -0.0322265625, 0.033447265625, -0.00933837890625, -0.011779...
[ 1250, 4867, 11249, 831, 29479, 10554, 111, 108047, 7, 6626, 142105, 101935, 1810, 17262, 87, 62775, 28966, 502, 26536, 254, 151206, 24638, 112140, 70, 155534, 41491, 12877, 63667, 159838, 40139, 7663, 52080, 32354, 37842, 11675, 18499, 83, 12...
[ 0.180908203125, 0.261962890625, 0.0977783203125, 0.09814453125, 0.253662109375, 0.2406005859375, 0.088134765625, 0.23095703125, 0.046142578125, 0.181640625, 0.2117919921875, 0.184326171875, 0.1314697265625, 0.1998291015625, 0.031005859375, 0.1746826171875, 0.10198974609375, 0.09020...
embed
36264421_c0
36264421
prolog
0
Title: CLP(FD)-ying Simultaneous Recursion for Fibonacci Lukas Numbers Possible? Problem title: CLP(FD)-ying Simultaneous Recursion for Fibonacci Lukas Numbers Possible? Tags: prolog, clpfd Problem: CLP(FD)-ying Simultaneous Recursion for Fibonacci Lukas Numbers Possible? There are some instances where recursive predic...
CLP(FD)-ying Simultaneous Recursion for Fibonacci Lukas Numbers Possible? CLP(FD)-ying Simultaneous Recursion for Fibonacci Lukas Numbers Possible? prolog clpfd CLP Simultaneous Recursion Fibonacci Lukas Numbers Possible Number Lucas F2n L2n CLP(FD)-ying Simultaneous Recursion for Fibonacci Lukas Numbers Possible? Ther...
[ -0.0019989013671875, 0.00927734375, 0.000507354736328125, -0.007110595703125, -0.004913330078125, 0.01263427734375, 0.0233154296875, -0.0185546875, 0.00750732421875, -0.0277099609375, -0.0033721923828125, -0.002899169921875, -0.020751953125, -0.003631591796875, 0.0361328125, -0.0029602...
[ 313, 37352, 98553, 38543, 13207, 202, 60626, 165428, 42, 6889, 100, 3698, 20990, 52544, 151433, 103332, 115861, 2661, 502, 4867, 33139, 39557, 71, 74814, 563, 304, 19, 339, 16, 621, 3060, 110527, 7, 195625, 1653, 2063, 1636, 831, 186, 132...
[ 0.0626220703125, 0.279052734375, 0.2401123046875, 0.1959228515625, 0.10491943359375, 0.08544921875, 0.137939453125, 0.1490478515625, 0.14013671875, 0.063720703125, 0.05548095703125, 0.1153564453125, 0.13671875, 0.1688232421875, 0.23876953125, 0.171875, 0.1689453125, 0.141845703125,...
embed
4337746_c0
4337746
prolog
0
Title: Prolog Doing a Query Problem title: Prolog Doing a Query Tags: database, prolog Problem: Prolog Doing a Query This is directly from a tutorial online, and I get a top down level design error, help? employee(193,'Jones','John','173 Elm St.','Hoboken','NJ', 12345,1,'25 Jun 93',25500). employee(181,'Doe','Betty','1...
Prolog Doing a Query Prolog Doing a Query database prolog Prolog Doing Query Jones John Elm Hoboken Jun Doe Betty Spring Paterson May Smith Ace Ave Sep well_paid_emp First Last _Num _Addr _City _St _Zip _Dept _Date Sal Prolog Doing a Query This is directly from a tutorial online, and I get a top down level design error...
[ 0.0211181640625, 0.0223388671875, -0.0024871826171875, 0.01904296875, -0.01373291015625, 0.01043701171875, -0.046875, 0.011474609375, 0.001739501953125, -0.0225830078125, -0.0125732421875, -0.005340576171875, -0.025390625, 0.019775390625, 0.004241943359375, 0.01708984375, 0.011596679...
[ 1250, 4867, 984, 214, 10, 58836, 53, 63399, 502, 29304, 4939, 540, 39, 2291, 114138, 13328, 13, 68326, 38026, 144161, 1681, 4347, 37700, 70280, 40168, 21693, 5299, 138925, 33548, 23972, 21672, 316, 7569, 115411, 37455, 3442, 6328, 86291, 65...
[ 0.19482421875, 0.294921875, 0.136474609375, 0.073486328125, 0.042694091796875, 0.2298583984375, 0.048980712890625, 0.195068359375, 0.1424560546875, 0.126708984375, 0.088134765625, 0.0836181640625, 0.07781982421875, 0.039764404296875, 0.195068359375, 0.111083984375, 0.0123291015625, ...
embed
28270558_c0
28270558
prolog
0
Title: Logic Dots puzzle problems with SWI-Prolog Problem title: Logic Dots puzzle problems with SWI-Prolog Tags: prolog, logic, list, clpfd Problem: Logic Dots puzzle problems with SWI-Prolog I am working on a logic game named "Logic Dots". The game is a 3*3 grid with numbers surrounding each row and column. The rule ...
Logic Dots puzzle problems with SWI-Prolog Logic Dots puzzle problems with SWI-Prolog prolog logic list clpfd Logic Dots SWI-Prolog use_module Rows length_list Columns _G670 _G673 _G676 _G682 _G685 _G688 _G694 _G697 _G700 _G4520 _G4523 _G4526 _G4532 _G4535 _G4538 _G4544 _G4547 _G4550 Logic Dots puzzle problems with SWI...
[ -0.0023040771484375, 0.03564453125, 0.00421142578125, 0.005584716796875, -0.02685546875, -0.024169921875, 0.0032196044921875, 0.000476837158203125, 0.005401611328125, -0.01483154296875, -0.0128173828125, -0.01458740234375, 0.004119873046875, 0.0106201171875, 0.0166015625, -0.0073852539...
[ 50592, 238, 84929, 7, 104192, 44402, 678, 159, 38969, 9, 10752, 4867, 502, 62775, 5303, 33139, 39557, 71, 4527, 83279, 96190, 140909, 6562, 233987, 108620, 195192, 181137, 192508, 171141, 134900, 14212, 194148, 15128, 4633, 1549, 3742, 4046, ...
[ 0.1793212890625, 0.1168212890625, 0.2408447265625, 0.080322265625, 0.2056884765625, 0.1392822265625, 0.0889892578125, 0.0574951171875, 0.1998291015625, 0.003753662109375, 0.1455078125, 0.189453125, 0.103271484375, 0.150146484375, 0.0821533203125, 0.0180816650390625, 0.058258056640625...
embed
57643276_c0
57643276
prolog
0
Title: How to correctly write grandparent rule Problem title: How to correctly write grandparent rule Tags: prolog Problem: How to correctly write grandparent rule This is my first homework assignment using prolog, I thought I knew what I was doing but when I write a query it says "procedure `parent(A,B)' does not exis...
How to correctly write grandparent rule How to correctly write grandparent rule prolog How parent_of sister_of brother_of How to correctly write grandparent rule This is my first homework assignment using prolog, I thought I knew what I was doing but when I write a query it says "procedure `parent(A,B)' does not exist ...
[ 0.0198974609375, 0.0264892578125, -0.000362396240234375, 0.01092529296875, -0.024169921875, 0.01318359375, -0.01300048828125, 0.00262451171875, -0.002960205078125, -0.03759765625, 0.0018768310546875, -0.0118408203125, 0.0164794921875, 0.0234375, 0.01611328125, -0.00139617919921875, -...
[ 11249, 26785, 33022, 9963, 99547, 79986, 538, 502, 4867, 49129, 4390, 114015, 82953, 18244, 95486, 17569, 55950, 41, 232578, 284, 4, 571, 959, 32316, 853, 934, 2886, 1295 ]
[ 0.013671875, 0.1319580078125, 0.18017578125, 0.1546630859375, 0.23291015625, 0.2088623046875, 0.03424072265625, 0.14111328125, 0.1829833984375, 0.20654296875, 0.13720703125, 0.1865234375, 0.14306640625, 0.0762939453125, 0.0587158203125, 0.0287322998046875, 0.037567138671875, 0.0625...
embed
41466988_c0
41466988
prolog
0
Title: Prolog: Counting occurrences of an element in a list returning multiple answers Problem title: Prolog: Counting occurrences of an element in a list returning multiple answers Tags: prolog Problem: Prolog: Counting occurrences of an element in a list returning multiple answers I'm having a bit of trouble with som...
Prolog: Counting occurrences of an element in a list returning multiple answers Prolog: Counting occurrences of an element in a list returning multiple answers prolog Prolog Counting List Prolog: Counting occurrences of an element in a list returning multiple answers I'm having a bit of trouble with something. I've wro...
[ 0.017578125, 0.00848388671875, 0.0162353515625, 0.01373291015625, 0.01373291015625, 0.0213623046875, -0.000400543212890625, -0.011962890625, 0.0172119140625, -0.039794921875, -0.016845703125, -0.025634765625, 0.0107421875, 0.02783203125, 0.007354736328125, 0.00152587890625, 0.0283203...
[ 1250, 4867, 1311, 128396, 74918, 42, 69098, 12830, 5303, 30646, 48716, 35166, 502, 32036, 23, 19441, 4785, 63134, 54397, 32354, 14012, 18151, 43240, 5885, 5117, 2046, 83, 1284, 7068, 2685, 6044, 237, 221, 98, 1152, 15400, 7225, 831, 26366, ...
[ 0.146728515625, 0.2030029296875, 0.1495361328125, 0.156494140625, 0.1650390625, 0.1524658203125, 0.1292724609375, 0.1903076171875, 0.179931640625, 0.167724609375, 0.2183837890625, 0.2310791015625, 0.10760498046875, 0.150146484375, 0.04925537109375, 0.0228271484375, 0.0419921875, 0....
embed
43102965_c0
43102965
prolog
0
Title: Prolog: How to create all possible permutations with repetition give a list of objects Problem title: Prolog: How to create all possible permutations with repetition give a list of objects Tags: list, prolog, permutation Problem: Prolog: How to create all possible permutations with repetition give a list of obje...
Prolog: How to create all possible permutations with repetition give a list of objects Prolog: How to create all possible permutations with repetition give a list of objects list prolog permutation Prolog How Prolog: How to create all possible permutations with repetition give a list of objects First of all, excuse me ...
[ 0.0000782012939453125, 0.023681640625, 0.0024566650390625, -0.00299072265625, -0.0235595703125, 0.00194549560546875, -0.021240234375, 0.006378173828125, 0.01092529296875, -0.039306640625, -0.00058746337890625, 0.00186920166015625, 0.0172119140625, 0.007110595703125, -0.005889892578125, ...
[ 1250, 4867, 11249, 28282, 756, 7722, 117, 14311, 21094, 678, 57346, 1363, 8337, 5303, 36746, 502, 561, 133207, 3522, 3444, 69307, 151313, 1653, 2063, 67, 100, 2389, 76172, 104851, 77554, 8439, 26040, 76228, 34475, 22085, 49814, 48716, 106, ...
[ 0.1707763671875, 0.2379150390625, 0.050018310546875, 0.1849365234375, 0.115478515625, 0.1981201171875, 0.1485595703125, 0.2364501953125, 0.09185791015625, 0.086181640625, 0.27001953125, 0.0687255859375, 0.09271240234375, 0.1400146484375, 0.1749267578125, 0.08642578125, 0.18115234375,...
embed
19610787_c0
19610787
prolog
0
Title: Accessing a specific field in a list of lists - Prolog Problem title: Accessing a specific field in a list of lists - Prolog Tags: list, prolog Problem: Accessing a specific field in a list of lists - Prolog My goal for this piece of a Prolog program I am working on is to access a particular field of a list of l...
Accessing a specific field in a list of lists - Prolog Accessing a specific field in a list of lists - Prolog list prolog Accessing Prolog RoutesAndDistances Start Stop1 Stop2 End TotalDistance First Rest Accessing a specific field in a list of lists - Prolog My goal for this piece of a Prolog program I am working on i...
[ 0.0106201171875, -0.0031280517578125, 0.0130615234375, 0.0118408203125, -0.001739501953125, -0.00244140625, 0.00762939453125, 0.006072998046875, 0.0120849609375, -0.020751953125, 0.01336669921875, -0.003875732421875, -0.00933837890625, -0.013916015625, -0.0072021484375, -0.003189086914...
[ 40266, 214, 29458, 44457, 23, 5303, 7, 1250, 4867, 502, 106015, 37839, 14055, 116071, 13794, 42284, 304, 18878, 33867, 23972, 49756, 69236, 1528, 20697, 17203, 17311, 36439, 7279, 10366, 26847, 62488, 64194, 43581, 9384, 111, 11249, 1672, 126...
[ 0.2113037109375, 0.09454345703125, 0.183837890625, 0.25830078125, 0.04412841796875, 0.236083984375, 0.056884765625, 0.159423828125, 0.2529296875, 0.08984375, 0.1939697265625, 0.11328125, 0.179931640625, 0.2149658203125, 0.06024169921875, 0.14501953125, 0.019561767578125, 0.06213378...
embed
76395435_c0
76395435
prolog
0
Title: Prolog gives me the first rule always as an output Problem title: Prolog gives me the first rule always as an output Tags: prolog Problem: Prolog gives me the first rule always as an output I have a code about risks being in 3 stages : high , mid , low . I stated the facts and rules correctly as it should be, bu...
Prolog gives me the first rule always as an output Prolog gives me the first rule always as an output prolog Prolog driver_age accident_history Prolog gives me the first rule always as an output I have a code about risks being in 3 stages : high , mid , low . I stated the facts and rules correctly as it should be, but ...
[ 0.02197265625, 0.004730224609375, 0.0098876953125, 0.027099609375, -0.0024871826171875, 0.033447265625, -0.00019931793212890625, 0.0179443359375, -0.002105712890625, -0.047607421875, 0.02392578125, -0.00701904296875, -0.017822265625, 0.0037384033203125, 0, -0.000039577484130859375, 0...
[ 1250, 4867, 76199, 163, 5117, 79986, 11343, 237, 142, 140992, 502, 27941, 4588, 27998, 979, 86385, 18151, 10512, 7, 8035, 23, 138, 36541, 11192, 4122, 27226, 11341, 15824, 91736, 26785, 5608, 70, 442, 84396, 37842, 26818, 26366, 31089, 4469...
[ 0.1766357421875, 0.234130859375, 0.05438232421875, 0.0767822265625, 0.18115234375, 0.2396240234375, 0.170166015625, 0.07763671875, 0.052490234375, 0.283447265625, 0.1263427734375, 0.1749267578125, 0.167724609375, 0.1966552734375, 0.080078125, 0.106689453125, 0.198486328125, 0.23449...
embed
65531921_c0
65531921
prolog
0
Title: Prolog encoded integers, less/2(X, Y) predicate Problem title: Prolog encoded integers, less/2(X, Y) predicate Tags: prolog Problem: Prolog encoded integers, less/2(X, Y) predicate A question states the following: In Prolog, non-negative integers can be encoded as numerals given by 0 and its successors (with, fo...
Prolog encoded integers, less/2(X, Y) predicate Prolog encoded integers, less/2(X, Y) predicate prolog Prolog Prolog encoded integers, less/2(X, Y) predicate A question states the following: In Prolog, non-negative integers can be encoded as numerals given by 0 and its successors (with, for example, the numeral s(s(s(0...
[ 0.00182342529296875, -0.0002422332763671875, 0.000453948974609375, 0.00848388671875, -0.01104736328125, 0.0181884765625, 0.00167083740234375, -0.00025177001953125, -0.01007080078125, -0.006866455078125, 0.0242919921875, -0.00885009765625, -0.01953125, -0.006103515625, 0.018798828125, 0...
[ 1250, 4867, 22, 40899, 892, 26255, 40715, 12477, 1542, 990, 1653, 2063, 502, 67, 9655, 351, 3331, 831, 237, 22542, 34475, 757, 39457, 289, 91, 132, 7, 177609, 587, 8439, 262, 64552, 4, 16401, 3229, 1193, 136, 16765, 1022, 113, 6044, 4...
[ 0.200439453125, 0.265625, 0.1336669921875, 0.237060546875, 0.15185546875, 0.1065673828125, 0.271728515625, 0.2445068359375, 0.136474609375, 0.1754150390625, 0.202880859375, 0.219970703125, 0.1580810546875, 0.07421875, 0.0252685546875, 0.1700439453125, 0.185302734375, 0.037353515625...
embed
27220539_c0
27220539
prolog
0
Title: Call C from Prolog Problem title: Call C from Prolog Tags: swi-prolog, c, prolog, ffi Problem: Call C from Prolog I've built the dll using this command: "C:\Program Files (x86)\swipl\bin\swipl-ld.exe" -o test new.cpp pro.pl It created a test.dll. Prolog code. :- module('test.dll', [ say_hello/1 ]). :- use_module...
Call C from Prolog Call C from Prolog swi-prolog c prolog ffi Prolog Call test.dll say_hello use_module load_foreign_library windows.h stdio.h SWI-Prolog.h foreign_t pl_say_hello term_t PL_get_atom_chars DLL TEST PL_succeed PL_fail install_t install_mylib PL_register_foreign Call C from Prolog I've built the dll using ...
[ 0.0308837890625, 0.017822265625, 0.002716064453125, 0.0191650390625, -0.01544189453125, 0.0016632080078125, 0.01092529296875, -0.013916015625, -0.006866455078125, -0.0576171875, -0.000762939453125, 0.0074462890625, -0.03076171875, -0.0031890869140625, 0.01373291015625, -0.0185546875, ...
[ 26265, 313, 1295, 1250, 4867, 91, 2452, 3454, 501, 502, 24500, 3034, 71, 1181, 5154, 127, 13817, 4527, 83279, 72367, 2472, 38529, 150, 2844, 54825, 6138, 5670, 159, 38969, 10752, 110613, 18, 6456, 20347, 13579, 33106, 3794, 5928, 9254, 23...
[ 0.2049560546875, 0.237548828125, 0.1278076171875, 0.1907958984375, 0.257568359375, 0.00555419921875, 0.1500244140625, 0.13330078125, 0.1258544921875, 0.130615234375, 0.1158447265625, 0.2000732421875, 0.0467529296875, 0.1624755859375, 0.03887939453125, 0.056640625, 0.166748046875, 0...
embed
71821085_c0
71821085
prolog
0
Title: Best or easiest way to represent 2D array Problem title: Best or easiest way to represent 2D array Tags: prolog, arrays Problem: Best or easiest way to represent 2D array What is the Best way to represent 2D arrays in Prolog ? So that I can get/set values by x,y coordinates. List of lists seems cumbersome ! but ...
Best or easiest way to represent 2D array Best or easiest way to represent 2D array prolog arrays Best Ary Val Row new_ary1d Size Sym new_ary2d Rows Cols Best or easiest way to represent 2D array What is the Best way to represent 2D arrays in Prolog ? So that I can get/set values by x,y coordinates. List of lists seems...
[ 0.01177978515625, 0.003936767578125, 0.00836181640625, 0.01239013671875, -0.01092529296875, 0.0030975341796875, -0.0125732421875, 0.013671875, 0.0186767578125, 0.0250244140625, 0.01153564453125, 0.00885009765625, -0.00433349609375, -0.0069580078125, -0.0013427734375, -0.01129150390625,...
[ 11345, 707, 28, 1544, 525, 3917, 47, 33636, 116, 397, 10298, 53, 502, 4867, 40779, 4769, 96190, 6635, 71, 80378, 39, 304, 11554, 70, 4778, 23, 1250, 831, 2046, 3509, 142424, 390, 1022, 176866, 32036, 5303, 37202, 43452, 43542, 29806, 99...
[ 0.138916015625, 0.0693359375, 0.024078369140625, 0.1434326171875, 0.07501220703125, 0.0987548828125, 0.028900146484375, 0.25732421875, 0.1373291015625, 0.1385498046875, 0.2152099609375, 0.1129150390625, 0.1363525390625, 0.2239990234375, 0.1156005859375, 0.1551513671875, 0.16711425781...
embed
52967915_c0
52967915
prolog
0
Title: Generate pythagorean triples to infinity Problem title: Generate pythagorean triples to infinity Tags: prolog Problem: Generate pythagorean triples to infinity I want to generate all the pythagorean triples (generate a new triplet every time the user asks for a new solution by using ; in prolog). I have tried to...
Generate pythagorean triples to infinity Generate pythagorean triples to infinity prolog Generate Generate pythagorean triples to infinity I want to generate all the pythagorean triples (generate a new triplet every time the user asks for a new solution by using ; in prolog). I have tried to modify the following code, ...
[ 0.0029754638671875, 0.007293701171875, 0.0181884765625, -0.0113525390625, -0.0238037109375, -0.00274658203125, 0.0078125, -0.0155029296875, 0.0152587890625, -0.0458984375, -0.00775146484375, -0.00665283203125, 0.00347900390625, -0.01007080078125, -0.0004444122314453125, 0.034423828125,...
[ 155370, 67, 17198, 3238, 6504, 5073, 162738, 7, 47, 54241, 53, 502, 4867, 3444, 139392, 756, 48281, 3525, 18, 11907, 1733, 38937, 26458, 29806, 17368, 2811, 40383, 18151, 44116, 1257, 541, 34292, 24084, 17475, 34525, 234873, 34475, 37842, 2...
[ 0.1881103515625, 0.040496826171875, 0.09228515625, 0.128173828125, 0.150634765625, 0.139892578125, 0.276123046875, 0.0977783203125, 0.123046875, 0.1812744140625, 0.06573486328125, 0.12890625, 0.2000732421875, 0.0816650390625, 0.1917724609375, 0.08148193359375, 0.148681640625, 0.047...
embed
75994541_c1
75994541
prolog
1
and work out the number of uses of a word successfully. However, I am experiencing problems if I try and filter the words to only display the ones where W matches a word in a pre-defined list of words, such as: PredefinedWords = [hot, sunny, cold, rainy] I did some internet searching, and based on that, my initial ide...
and work out the number of uses of a word successfully. However, I am experiencing problems if I try and filter the words to only display the ones where W matches a word in a pre-defined list of words, such as: PredefinedWords = [hot, sunny, cold, rainy] I did some internet searching, and based on that, my initial ide...
[ 0.00384521484375, -0.0211181640625, -0.01153564453125, -0.0027313232421875, -0.01300048828125, 0.003692626953125, 0.0107421875, 0.0308837890625, 0.035400390625, -0.0220947265625, 0.00921630859375, -0.00775146484375, 0.005584716796875, -0.0093994140625, 0.0034637451171875, 0.01379394531...
[ 4488, 1810, 14012, 4527, 7, 2565, 65771, 136303, 44402, 46312, 34153, 4734, 44116, 601, 14858, 90, 479, 112, 5983, 5303, 7145, 13, 297, 164805, 21620, 4262, 299, 91097, 102044, 53, 6528, 7413, 5584, 136, 32786, 1653, 2063, 28032, 41, 4741...
[ 0.121337890625, 0.1419677734375, 0.1329345703125, 0.1671142578125, 0.1168212890625, 0.1827392578125, 0.093017578125, 0.0229949951171875, 0.107666015625, 0.20849609375, 0.1910400390625, 0.040313720703125, 0.1451416015625, 0.123046875, 0.1639404296875, 0.064697265625, 0.0740966796875, ...
embed
25936514_c0
25936514
prolog
0
Title: How to alphabetize a list in Prolog? Problem title: How to alphabetize a list in Prolog? Tags: prolog, alphabetized Problem: How to alphabetize a list in Prolog? I want to alphabetize a list in prolog so I can then strip the head or tail of that list to deal with -- essentially make it easier to deal with things...
How to alphabetize a list in Prolog? How to alphabetize a list in Prolog? prolog alphabetized How Prolog Res ra2 ra1 Outlist Inlist How to alphabetize a list in Prolog? I want to alphabetize a list in prolog so I can then strip the head or tail of that list to deal with -- essentially make it easier to deal with things...
[ 0.01409912109375, -0.004852294921875, 0.0205078125, 0.0035858154296875, -0.01007080078125, 0.01251220703125, 0.01104736328125, 0.0189208984375, 0.0262451171875, 0.0145263671875, 0.0250244140625, 0.019287109375, 0.0211181640625, 0.0220947265625, 0.00193023681640625, -0.0152587890625, ...
[ 11249, 47, 229231, 20650, 10, 5303, 23, 1250, 4867, 502, 29367, 9624, 673, 304, 418, 13538, 6562, 360, 3444, 43613, 10336, 46741, 35142, 678, 3249, 99156, 8966, 39531, 12989, 53299, 34153, 285, 11907, 1733, 5701, 219, 13471, 363, 831, 794...
[ 0.09356689453125, 0.032745361328125, 0.255615234375, 0.152099609375, 0.034820556640625, 0.2373046875, 0.10302734375, 0.1883544921875, 0.26220703125, 0.1566162109375, 0.0833740234375, 0.0916748046875, 0.0677490234375, 0.06915283203125, 0.05804443359375, 0.046600341796875, 0.1378173828...
embed
47609619_c0
47609619
prolog
0
Title: &quot;Any term&quot; chracter (_) in DCG not working as expected Problem title: &quot;Any term&quot; chracter (_) in DCG not working as expected Tags: prolog, dcg Problem: "Any term" chracter (_) in DCG not working as expected I'm looping through a list of sentences and trying to verify if they're grammatically ...
&quot;Any term&quot; chracter (_) in DCG not working as expected &quot;Any term&quot; chracter (_) in DCG not working as expected prolog dcg Any DCG subject_phrase verb_phrase NOT "Any term" chracter (_) in DCG not working as expected I'm looping through a list of sentences and trying to verify if they're grammatically...
[ 0.0208740234375, 0.00537109375, 0.004425048828125, 0.0072021484375, -0.00823974609375, 0.0021820068359375, 0.00579833984375, 0.01055908203125, 0.0146484375, -0.023681640625, 0.01483154296875, -0.023681640625, -0.006317138671875, 0.0159912109375, -0.004730224609375, 0.0196533203125, 0...
[ 284, 299, 13579, 41502, 17656, 2263, 720, 454, 23, 391, 56367, 959, 20697, 237, 84751, 502, 4867, 177, 28541, 28368, 179665, 42792, 86725, 40956, 8305, 5303, 149357, 493, 40383, 122092, 26785, 34153, 33342, 1884, 58861, 51158, 841, 1927, 12...
[ 0.0224761962890625, 0.1527099609375, 0.233642578125, 0.0711669921875, 0.034423828125, 0.1009521484375, 0.100830078125, 0.12939453125, 0.0278778076171875, 0.109375, 0.21533203125, 0.04449462890625, 0.14306640625, 0.05303955078125, 0.0919189453125, 0.1085205078125, 0.1229248046875, 0...
embed
47566413_c0
47566413
prolog
0
Title: Trying to write a predicate gradeMap(L,R), where L is a list of percentage grade values, and R is a list of corresponding grade letters (a-f) Problem title: Trying to write a predicate gradeMap(L,R), where L is a list of percentage grade values, and R is a list of corresponding grade letters (a-f) Tags: prolog P...
Trying to write a predicate gradeMap(L,R), where L is a list of percentage grade values, and R is a list of corresponding grade letters (a-f) Trying to write a predicate gradeMap(L,R), where L is a list of percentage grade values, and R is a list of corresponding grade letters (a-f) prolog Trying Trying to write a pred...
[ -0.003448486328125, 0.0125732421875, -0.00848388671875, -0.0106201171875, -0.0196533203125, 0.0093994140625, 0.007110595703125, -0.0029296875, -0.0012359619140625, 0.01373291015625, 0.01495361328125, 0.00811767578125, 0.00830078125, 0.0205078125, -0.01904296875, -0.0016021728515625, ...
[ 40858, 33022, 1653, 2063, 67, 44000, 166179, 866, 1052, 339, 5303, 169209, 142424, 627, 111, 42518, 120820, 11, 9, 420, 247, 10, 4, 214, 502, 4867, 31577, 28282, 16, 22691, 7, 30646, 70541, 70, 291, 48398, 47644, 1884, 22288, 87, 3714, ...
[ 0.0911865234375, 0.1103515625, 0.126220703125, 0.1832275390625, 0.0517578125, 0.21435546875, 0.2027587890625, 0.0970458984375, 0.1387939453125, 0.109375, 0.125, 0.2303466796875, 0.0947265625, 0.12646484375, 0.000701904296875, 0.0914306640625, 0.1358642578125, 0.04071044921875, 0....
embed
37092188_c0
37092188
prolog
0
Title: Prolog recursion appending Problem title: Prolog recursion appending Tags: append, prolog Problem: Prolog recursion appending I'm currently trying to make a fact where I have: create_list(L1, [H|T], X, Y, Result) where L1 is an empty list, [H|T] is a list that's going to be given, X the X coordinate which is giv...
Prolog recursion appending Prolog recursion appending append prolog Prolog create_list Result X-1 Y-1 Prolog recursion appending I'm currently trying to make a fact where I have: where L1 is an empty list, [H|T] is a list that's going to be given, X the X coordinate which is given and Y the Y coordinate which is also g...
[ 0.01507568359375, 0.01287841796875, 0.01263427734375, 0.0096435546875, 0.01141357421875, -0.0030059814453125, 0.000041484832763671875, 0.01116943359375, 0.0216064453125, -0.0031890869140625, 0.008056640625, -0.0322265625, -0.026123046875, -0.0076904296875, 0.0025634765625, 0.0022430419...
[ 1250, 4867, 195625, 1830, 1747, 96819, 114689, 502, 28282, 6562, 126684, 1193, 5759, 990, 31577, 3249, 15824, 7440, 765, 339, 418, 201505, 5303, 841, 58745, 618, 34475, 176866, 70, 184345, 4343, 76199, 1957, 237, 138, 12921, 3444, 186, 1660...
[ 0.153564453125, 0.229248046875, 0.193603515625, 0.055267333984375, 0.1026611328125, 0.1326904296875, 0.1270751953125, 0.114013671875, 0.1173095703125, 0.192138671875, 0.18017578125, 0.1009521484375, 0.1085205078125, 0.0838623046875, 0.060150146484375, 0.04241943359375, 0.149169921875...
embed
37191915_c0
37191915
prolog
0
Title: Avoid duplicates in a union in prolog Problem title: Avoid duplicates in a union in prolog Tags: prolog Problem: Avoid duplicates in a union in prolog Data: %flight(FID, Start, Destination, Company, Seats). %------------------------------------------------- flight(1, 'China', 'Germany', 'Lufthansa', 210). flight...
Avoid duplicates in a union in prolog Avoid duplicates in a union in prolog prolog Avoid FID Start Destination Company Seats China Germany Lufthansa Dubai Japan Eurowings Russia Condor Avoid duplicates in a union in prolog Data: I want to get the flights that start or land in china. First I came up with This creates a ...
[ 0.005859375, 0.01055908203125, 0.03564453125, -0.01806640625, -0.001312255859375, -0.0076904296875, -0.0035247802734375, 0.007354736328125, 0.0036773681640625, -0.046142578125, 0.00286865234375, 0.00897216796875, 0.0220947265625, -0.01153564453125, -0.0012054443359375, -0.0055236816406...
[ 84361, 532, 171763, 1636, 23, 10, 69941, 502, 4867, 563, 7146, 13794, 145778, 1363, 33734, 503, 9821, 9098, 102126, 217047, 61069, 15758, 3939, 14775, 7, 49002, 1657, 1846, 11809, 87, 3444, 2046, 70, 113014, 450, 4034, 707, 3551, 6, 42072...
[ 0.2198486328125, 0.1248779296875, 0.288330078125, 0.1845703125, 0.1011962890625, 0.0251007080078125, 0.25341796875, 0.1744384765625, 0.22998046875, 0.1812744140625, 0.169921875, 0.165283203125, 0.19921875, 0.02166748046875, 0.14501953125, 0.1983642578125, 0.04266357421875, 0.207031...
embed
22808667_c0
22808667
prolog
0
Title: meta-Programming Prolog ,List of ground facts Problem title: meta-Programming Prolog ,List of ground facts Tags: prolog-metainterpreter, prolog Problem: meta-Programming Prolog ,List of ground facts I must generate a list that contains all the ground terms that pass through a meta-programming in Prolog. I did it...
meta-Programming Prolog ,List of ground facts meta-Programming Prolog ,List of ground facts prolog-metainterpreter prolog Prolog List ProofA ProofB Rest A:-Proof Proof meta-Programming Prolog ,List of ground facts I must generate a list that contains all the ground terms that pass through a meta-programming in Prolog. ...
[ 0.0205078125, 0.019775390625, -0.00177764892578125, 0.005401611328125, -0.0247802734375, 0.0164794921875, -0.0022125244140625, 0.033447265625, -0.006866455078125, -0.0556640625, 0.007232666015625, -0.016845703125, -0.006927490234375, -0.01141357421875, 0.003021240234375, 0.012451171875...
[ 23550, 172895, 1250, 4867, 154663, 111, 61585, 15824, 502, 35273, 158288, 56, 32036, 4390, 284, 571, 49756, 10752, 8110, 139392, 5303, 70541, 756, 69407, 27875, 8305, 28966, 214, 4568, 12830, 3714, 15400, 83, 171763, 67, 18151, 30742, 41, 8...
[ 0.226318359375, 0.1204833984375, 0.1763916015625, 0.2364501953125, 0.1182861328125, 0.053009033203125, 0.2003173828125, 0.151123046875, 0.14599609375, 0.1519775390625, 0.189208984375, 0.1080322265625, 0.1695556640625, 0.138916015625, 0.058319091796875, 0.08544921875, 0.1319580078125,...
embed
52559339_c1
52559339
prolog
1
Last=Next) }, !. spaces(XXs) --> [X], { X=32 }, spaces(Xs), { char_code(Ch,X), atom_string(CA,Ch), atom_concat(CA,Xs,XXs) }, !. spaces('') --> []. returns(XXs) --> [X], { X=10 }, returns(Xs), { char_code(Ch,X), atom_string(CA,Ch), atom_concat(CA,Xs,XXs) }, !. returns('') --> []. sentence32([XsZ]) --> sentence33(Xs), s...
Last=Next) }, !. spaces(XXs) --> [X], { X=32 }, spaces(Xs), { char_code(Ch,X), atom_string(CA,Ch), atom_concat(CA,Xs,XXs) }, !. spaces('') --> []. returns(XXs) --> [X], { X=10 }, returns(Xs), { char_code(Ch,X), atom_string(CA,Ch), atom_concat(CA,Xs,XXs) }, !. returns('') --> []. sentence32([XsZ]) --> sentence33(Xs), s...
[ 0.00274658203125, 0.0108642578125, 0.00323486328125, 0.031494140625, -0.003875732421875, -0.000911712646484375, 0.028076171875, -0.0146484375, 0.0225830078125, -0.001800537109375, 0.0196533203125, 0.00946044921875, -0.01385498046875, -0.003753662109375, -0.002532958984375, 0.0288085937...
[ 21672, 1369, 81280, 51912, 711, 32628, 7, 42918, 129908, 1542, 1193, 6460, 10666, 21441, 40899, 15982, 34627, 91693, 13133, 2271, 4460, 5, 4765, 30646, 963, 149357, 1511, 9185, 3611, 210431, 34, 2320, 50986, 289, 2606, 148477, 959, 121387, ...
[ 0.238037109375, 0.12451171875, 0.259033203125, 0.06103515625, 0.05401611328125, 0.1656494140625, 0.029449462890625, 0.16748046875, 0.06463623046875, 0.1383056640625, 0.1085205078125, 0.1656494140625, 0.000946044921875, 0.1566162109375, 0.20556640625, 0.139892578125, 0.1839599609375, ...
embed
34968200_c0
34968200
prolog
0
Title: Please explain what this prolog code does Problem title: Please explain what this prolog code does Tags: list, prolog Problem: Please explain what this prolog code does i( [],_,0 ). i( [H|T],H,I ) :- i( T,H,J ),I is J+1. i( [H|T],X,I ) :- i( T,X,I ). Please explain what does this prolog code do. What does do X i...
Please explain what this prolog code does Please explain what this prolog code does list prolog Please Please explain what this prolog code does Please explain what does this prolog code do. What does do X in third clause? What does the format in second clause do (T,H,J), what goes into J? What is the role of I? I is i...
[ 0.0028533935546875, 0.01611328125, -0.00201416015625, 0.004547119140625, -0.0042724609375, 0.03466796875, 0.003265380859375, 0.016845703125, 0.01153564453125, -0.0120849609375, 0.006622314453125, -0.0263671875, -0.031982421875, 0.00836181640625, 0.000957489013671875, 0.00726318359375, ...
[ 30607, 73342, 2367, 903, 502, 4867, 18151, 14602, 5303, 54, 4865, 1193, 23, 50960, 70731, 13, 9384, 17932, 618, 841, 1375, 60899, 3934, 821, 31486, 111, 87, 2685, 4343, 35166, 4568, 155937, 3687, 15400, 105950, 142424, 34475, 17582, 64557, ...
[ 0.05206298828125, 0.2154541015625, 0.10595703125, 0.090087890625, 0.1917724609375, 0.247802734375, 0.19384765625, 0.139892578125, 0.1767578125, 0.13525390625, 0.059326171875, 0.1356201171875, 0.03363037109375, 0.2098388671875, 0.1322021484375, 0.043212890625, 0.1656494140625, 0.105...
embed
33588343_c0
33588343
prolog
0
Title: Prolog: Coming up with Herbrand Universe and Herbrand Base Problem title: Prolog: Coming up with Herbrand Universe and Herbrand Base Tags: prolog Problem: Prolog: Coming up with Herbrand Universe and Herbrand Base I have serious problems to understand the concept of Prolog and the corresponding Herbrand Universe...
Prolog: Coming up with Herbrand Universe and Herbrand Base Prolog: Coming up with Herbrand Universe and Herbrand Base prolog Prolog Coming Herbrand Universe Base Prolog: Coming up with Herbrand Universe and Herbrand Base I have serious problems to understand the concept of Prolog and the corresponding Herbrand Universe...
[ 0.01708984375, 0.00518798828125, -0.0078125, 0.01806640625, -0.007568359375, 0.005645751953125, 0.006591796875, -0.00653076171875, 0.0067138671875, -0.03173828125, -0.0018310546875, -0.007049560546875, 0.015625, 0.0133056640625, -0.01080322265625, 0.0038909912109375, 0.014892578125, ...
[ 1250, 4867, 12, 3288, 214, 1257, 678, 1840, 43264, 153543, 136, 44978, 502, 765, 85583, 44402, 28219, 23755, 42518, 2174, 1528, 3714, 134598, 54, 53418, 1380, 707, 33938, 756, 77336, 32087, 64549, 748, 69407, 4865, 25251, 43701, 2806, 42856...
[ 0.1820068359375, 0.2783203125, 0.0157470703125, 0.08441162109375, 0.049285888671875, 0.1512451171875, 0.1318359375, 0.194091796875, 0.2685546875, 0.2159423828125, 0.0936279296875, 0.252197265625, 0.132568359375, 0.033905029296875, 0.0732421875, 0.1162109375, 0.1488037109375, 0.1528...
embed
43330605_c0
43330605
prolog
0
Title: manipulation of list of lists Problem title: manipulation of list of lists Tags: prolog Problem: manipulation of list of lists I am having a list of lists and I am trying to access each inner list and check the elements contained within and then create a list with some numbers according to the elements i already...
manipulation of list of lists manipulation of list of lists prolog check_rows1 Totals manipulation of list of lists I am having a list of lists and I am trying to access each inner list and check the elements contained within and then create a list with some numbers according to the elements i already found. for exampl...
[ 0.017578125, 0.006683349609375, -0.0014495849609375, 0.0220947265625, -0.033935546875, -0.005096435546875, 0.00384521484375, 0.0096435546875, 0.0023956298828125, 0.01092529296875, -0.0031890869140625, -0.0224609375, 0.0159912109375, 0.0064697265625, -0.006317138671875, 0.00349426269531...
[ 45258, 1363, 111, 5303, 7, 502, 4867, 12765, 15555, 418, 33867, 19441, 31577, 17203, 75414, 80854, 70541, 28032, 28282, 101935, 59499, 21771, 14037, 434, 645, 12638, 756, 140992, 15190, 6649, 238, 16750, 90173, 2967, 3647, 7225, 17368, 4358, ...
[ 0.2288818359375, 0.042327880859375, 0.0963134765625, 0.2138671875, 0.054595947265625, 0.1243896484375, 0.16748046875, 0.1868896484375, 0.183349609375, 0.025238037109375, 0.19580078125, 0.026611328125, 0.032379150390625, 0.0675048828125, 0.1134033203125, 0.1060791015625, 0.07019042968...
embed
74511137_c0
74511137
prolog
0
Title: How i can use DFS with a final state automata in Prolog? Problem title: How i can use DFS with a final state automata in Prolog? Tags: prolog, dcg, depth-first-search, finite-automata Problem: How i can use DFS with a final state automata in Prolog? I have a final state automata and i want to see all the pattern...
How i can use DFS with a final state automata in Prolog? How i can use DFS with a final state automata in Prolog? prolog dcg depth-first-search finite-automata How DFS Prolog Allomorphs Morphemes qv4b qv4c qv5 qv5a First Step qn1 qv1 How i can use DFS with a final state automata in Prolog? I have a final state automata...
[ 0.0283203125, -0.000396728515625, -0.01141357421875, 0.03173828125, -0.0035400390625, -0.004913330078125, -0.00543212890625, 0.0179443359375, -0.00897216796875, -0.03271484375, 0.0240478515625, -0.0203857421875, 0.0159912109375, 0.0235595703125, 0.023681640625, -0.0037841796875, 0.00...
[ 11249, 17, 831, 4527, 391, 36381, 678, 2704, 11341, 11408, 11, 23, 1250, 4867, 502, 104, 177, 168867, 13448, 271, 86250, 94418, 13, 52344, 3164, 31, 178851, 5919, 20133, 3716, 8096, 334, 617, 758, 23972, 50478, 3444, 1957, 756, 103510, ...
[ 0.05572509765625, 0.025909423828125, 0.052703857421875, 0.15185546875, 0.09765625, 0.243408203125, 0.122802734375, 0.1575927734375, 0.1240234375, 0.1988525390625, 0.12939453125, 0.0283660888671875, 0.1539306640625, 0.26513671875, 0.0863037109375, 0.007049560546875, 0.1015625, 0.149...
embed
49409945_c0
49409945
prolog
0
Title: Prolog 99 Problems: Run-length encoding of a list Problem title: Prolog 99 Problems: Run-length encoding of a list Tags: prolog Problem: Prolog 99 Problems: Run-length encoding of a list I am not sure how the Program will end up with L2 encode(L1,L2) :- pack(L1,L), transform(L,L2). L2= [[2, a], [3, b], [2, c]] L...
Prolog 99 Problems: Run-length encoding of a list Prolog 99 Problems: Run-length encoding of a list prolog pack Prolog Problems Run-length Prolog 99 Problems: Run-length encoding of a list I am not sure how the Program will end up with L2 so assume the program will go like this. it will first check the fist rule which ...
[ 0.031494140625, -0.000469207763671875, -0.0003910064697265625, 0.03173828125, -0.007598876953125, 0.00946044921875, -0.017578125, 0.01611328125, 0.002227783203125, -0.01495361328125, 0.016357421875, 0.00823974609375, -0.0062255859375, 0.01220703125, 0.00933837890625, 0.02587890625, 0...
[ 1250, 4867, 10078, 15649, 28398, 23986, 22, 587, 6238, 111, 5303, 927, 502, 43824, 7663, 3564, 339, 304, 41591, 1528, 1884, 903, 1221, 5117, 12765, 809, 271, 79986, 959, 29568, 25813, 98, 17932, 2046, 3642, 172337, 28219, 144851, 123309, ...
[ 0.1588134765625, 0.2261962890625, 0.279052734375, 0.1455078125, 0.1368408203125, 0.107666015625, 0.0743408203125, 0.1793212890625, 0.0770263671875, 0.035797119140625, 0.185302734375, 0.0689697265625, 0.115234375, 0.1529541015625, 0.118896484375, 0.038299560546875, 0.08642578125, 0....
embed
47022203_c0
47022203
prolog
0
Title: Counting number of paths between two nodes in Prolog program Problem title: Counting number of paths between two nodes in Prolog program Tags: prolog, graph-traversal, graph-theory, algorithm Problem: Counting number of paths between two nodes in Prolog program I need some help for counting the number of combina...
Counting number of paths between two nodes in Prolog program Counting number of paths between two nodes in Prolog program prolog graph-traversal graph-theory algorithm Counting Prolog Edge List Knowledge Base Program Query Results Counting number of paths between two nodes in Prolog program I need some help for countin...
[ 0.01531982421875, 0.006500244140625, 0.0026702880859375, 0.0172119140625, 0.023193359375, 0.019775390625, -0.038330078125, -0.01116943359375, 0.004425048828125, -0.06640625, -0.01190185546875, -0.02294921875, -0.0020294189453125, 0.023193359375, 0.01116943359375, -0.00506591796875, 0...
[ 1311, 128396, 14012, 111, 60875, 7, 17721, 6626, 110, 988, 1250, 4867, 1528, 502, 41382, 814, 2317, 234873, 69030, 32036, 191428, 44978, 7663, 58836, 146104, 3871, 4358, 54529, 214, 162515, 1295, 78869, 112, 831, 157578, 14037, 90791, 12921, ...
[ 0.130615234375, 0.126708984375, 0.13037109375, 0.010986328125, 0.245849609375, 0.10430908203125, 0.1578369140625, 0.1143798828125, 0.1552734375, 0.1455078125, 0.1629638671875, 0.2288818359375, 0.15576171875, 0.103271484375, 0.1263427734375, 0.067138671875, 0.026092529296875, 0.1110...
embed
26841276_c0
26841276
prolog
0
Title: Correct way to handle dynamic predicates in Prolog Problem title: Correct way to handle dynamic predicates in Prolog Tags: prolog, prolog-directive-dynamic Problem: Correct way to handle dynamic predicates in Prolog I'm writing a Knowledge base for a robot system. The system is actually composed by two parts: th...
Correct way to handle dynamic predicates in Prolog Correct way to handle dynamic predicates in Prolog prolog prolog-directive-dynamic Correct Prolog Correct way to handle dynamic predicates in Prolog I'm writing a Knowledge base for a robot system. The system is actually composed by two parts: the rules in the KB and a...
[ 0.030029296875, 0.0052490234375, 0.026123046875, -0.001678466796875, -0.01434326171875, 0.031982421875, 0.0186767578125, 0.0062255859375, -0.00396728515625, -0.050537109375, -0.000530242919921875, 0.00897216796875, -0.0255126953125, -0.004486083984375, 0.0286865234375, 0.019287109375, ...
[ 46348, 15390, 3917, 34831, 84079, 1653, 2063, 1636, 1250, 4867, 23, 502, 936, 100034, 242554, 32562, 191428, 3647, 11329, 5426, 150350, 6626, 63920, 91736, 30742, 139392, 43111, 16454, 7722, 12006, 214, 27489, 4488, 118664, 58055, 75463, 79986,...
[ 0.1199951171875, 0.0182647705078125, 0.058807373046875, 0.162841796875, 0.2333984375, 0.197265625, 0.2509765625, 0.1456298828125, 0.1650390625, 0.254150390625, 0.03485107421875, 0.1265869140625, 0.0628662109375, 0.05712890625, 0.212158203125, 0.0103759765625, 0.04315185546875, 0.15...
embed
47493867_c0
47493867
prolog
0
Title: predsort/3 existence_error [Prolog] Problem title: predsort/3 existence_error [Prolog] Tags: prolog Problem: predsort/3 existence_error [Prolog] I'm trying to sort a list of lists by the third element in the sub-lists, and am doing so using a predicate for sorting defined as such: sortData(X, [_,_,Z1], [_,_,Z2])...
predsort/3 existence_error [Prolog] predsort/3 existence_error [Prolog] prolog existence_error Prolog top_level use_module predsort/3 existence_error [Prolog] I'm trying to sort a list of lists by the third element in the sub-lists, and am doing so using a predicate for sorting defined as such: sortData(X, [_,_,Z1], [_...
[ 0.01220703125, 0.0257568359375, 0.004547119140625, -0.0123291015625, -0.01239013671875, 0.024169921875, 0.01544189453125, -0.01141357421875, 0.0098876953125, -0.04345703125, 0.0115966796875, 0.0101318359375, 0.0107421875, -0.023193359375, 0.00653076171875, -0.010009765625, 0.00280761...
[ 1653, 62351, 18113, 116311, 188800, 10752, 4867, 502, 1250, 2663, 67919, 4527, 83279, 31577, 12096, 5303, 50960, 12830, 1614, 6562, 2063, 214, 61924, 137989, 1542, 1511, 90173, 69101, 567, 418, 10461, 9790, 130250, 124940, 910, 363, 1193, 184...
[ 0.2091064453125, 0.2354736328125, 0.2298583984375, 0.2105712890625, 0.1990966796875, 0.09503173828125, 0.173828125, 0.091064453125, 0.1263427734375, 0.0499267578125, 0.1588134765625, 0.06494140625, 0.10418701171875, 0.040496826171875, 0.18896484375, 0.114013671875, 0.1824951171875, ...
embed
50972222_c0
50972222
prolog
0
Title: pyswip python/django segmentation fault Problem title: pyswip python/django segmentation fault Tags: django, prolog, python, segmentation-fault Problem: pyswip python/django segmentation fault I get a segmentation fault while trying to use pyswip with Django. My config : Linux 4.9.87-linuxkit-aufs #1 x86_64 GNU/...
pyswip python/django segmentation fault pyswip python/django segmentation fault django prolog python segmentation-fault pyswip Prolog Linux x86_64 GNU Python Django SWI-Prolog manage.py prolog.assertz prolog.query pyswip python/django segmentation fault I get a segmentation fault while trying to use pyswip with Django....
[ 0.02001953125, 0.02001953125, -0.002471923828125, -0.005584716796875, -0.0263671875, -0.006683349609375, -0.022705078125, 0.010498046875, -0.03466796875, -0.058349609375, -0.01373291015625, 0.0037078857421875, 0.0033721923828125, 0.0235595703125, 0.0164794921875, -0.00543212890625, -...
[ 57756, 2452, 254, 17198, 50828, 34688, 19120, 33180, 2320, 193857, 107473, 27803, 502, 4867, 1021, 7136, 1250, 29908, 15276, 13307, 165132, 145581, 39424, 38969, 10752, 111240, 6493, 33657, 169, 2046, 31577, 4527, 678, 153837, 8647, 23, 128019,...
[ 0.1842041015625, 0.2374267578125, 0.179931640625, 0.145751953125, 0.1898193359375, 0.08294677734375, 0.2156982421875, 0.2447509765625, 0.0694580078125, 0.21337890625, 0.054290771484375, 0.2349853515625, 0.0753173828125, 0.140380859375, 0.110595703125, 0.0154876708984375, 0.0698242187...
embed
32961262_c0
32961262
prolog
0
Title: Is z3 the most efficient solver for quantifier-free integer propositional logic? Problem title: Is z3 the most efficient solver for quantifier-free integer propositional logic? Tags: cplex, logic, prolog, smt, z3 Problem: Is z3 the most efficient solver for quantifier-free integer propositional logic? Sorry that...
Is z3 the most efficient solver for quantifier-free integer propositional logic? Is z3 the most efficient solver for quantifier-free integer propositional logic? cplex logic prolog smt z3 Is z3 the most efficient solver for quantifier-free integer propositional logic? Sorry that this question is subjective, but given t...
[ -0.01007080078125, 0.004913330078125, 0.016845703125, -0.00054168701171875, -0.025146484375, -0.00982666015625, 0.0029296875, -0.00982666015625, 0.0025634765625, -0.032470703125, -0.01031494140625, 0.0029144287109375, 0.001983642578125, -0.0281982421875, 0.00250244140625, 0.00396728515...
[ 97, 363, 2684, 93766, 3115, 814, 55230, 85789, 32087, 892, 1505, 89261, 289, 62775, 70, 44974, 502, 4867, 14050, 18, 2071, 100, 28368, 6512, 2594, 9578, 118664, 142105, 567, 38937, 3647, 8337, 9790, 2816, 4288, 152796, 2967, 5941, 26168, ...
[ 0.141357421875, 0.2176513671875, 0.1103515625, 0.2196044921875, 0.159912109375, 0.15283203125, 0.1163330078125, 0.1490478515625, 0.150146484375, 0.1075439453125, 0.0601806640625, 0.2032470703125, 0.07647705078125, 0.1680908203125, 0.0352783203125, 0.1900634765625, 0.0657958984375, ...
embed
41274692_c0
41274692
prolog
0
Title: Discussion about Abductive logic programming vs Answer Set Programming Problem title: Discussion about Abductive logic programming vs Answer Set Programming Tags: prolog, logic-programming, functional-logic-progr Problem: Discussion about Abductive logic programming vs Answer Set Programming I am looking to clar...
Discussion about Abductive logic programming vs Answer Set Programming Discussion about Abductive logic programming vs Answer Set Programming prolog logic-programming functional-logic-progr Discussion Abductive Answer Set Programming Discussion about Abductive logic programming vs Answer Set Programming I am looking to...
[ 0.0142822265625, 0.007568359375, 0.008056640625, 0.01080322265625, -0.0042724609375, 0.0026092529296875, -0.0037841796875, 0.006591796875, -0.0096435546875, -0.012451171875, 0.0074462890625, 0.003662109375, 0.0001544952392578125, 0.0223388671875, 0.0185546875, 0.0023345947265625, 0.0...
[ 212897, 1830, 1672, 131178, 238, 4935, 62775, 56037, 449, 20209, 130373, 19943, 27958, 214, 502, 4867, 28966, 123309, 137043, 75620, 42, 16487, 47, 17306, 70, 1563, 39367, 5423, 678, 3060, 18507, 120126, 621, 105233, 10, 6712, 2685, 90865, ...
[ 0.099365234375, 0.024810791015625, 0.006103515625, 0.2225341796875, 0.1494140625, 0.1434326171875, 0.2452392578125, 0.231201171875, 0.1138916015625, 0.18115234375, 0.2315673828125, 0.2086181640625, 0.2344970703125, 0.085693359375, 0.1220703125, 0.158203125, 0.2003173828125, 0.11938...
embed
8860010_c0
8860010
prolog
0
Title: Prolog avoid road, city Problem title: Prolog avoid road, city Tags: prolog Problem: Prolog avoid road, city This works perfectly: %connection(Num,Ori,Dest,Distance,RoadNumber) connection(1,cityA,cityB,20,235). connection(2,cityB,cityC,23,235). connection(3,cityB,cityD,30,272). %road(num,speedlimit) road(235,50)...
Prolog avoid road, city Prolog avoid road, city prolog Prolog Num Ori Dest Distance RoadNumber Path Cost Path1 Cost1 Dist Vmed CostXY Cost2 Prolog avoid road, city This works perfectly: My problem is that I want to avoid certain roads (e.g.: if the road is unavailable because of an accident) and I can't figure it out h...
[ -0.0103759765625, -0.007293701171875, 0.025146484375, 0.0001430511474609375, -0.0111083984375, -0.004364013671875, -0.017578125, 0.00238037109375, 0.015625, -0.059814453125, 0.006011962890625, 0.008544921875, 0.000957489013671875, -0.009521484375, -0.00445556640625, 0.012939453125, 0...
[ 1250, 4867, 71864, 33816, 26349, 502, 52782, 62719, 262, 271, 154349, 17119, 18444, 26278, 108421, 63099, 418, 310, 4806, 143907, 304, 3293, 43240, 169123, 2967, 3444, 47, 24233, 2174, 220, 330, 379, 2886, 6637, 27998, 831, 18, 26366, 3642,...
[ 0.1893310546875, 0.23779296875, 0.25927734375, 0.1927490234375, 0.134521484375, 0.1495361328125, 0.118408203125, 0.1868896484375, 0.0718994140625, 0.07354736328125, 0.1207275390625, 0.12109375, 0.045623779296875, 0.048431396484375, 0.1346435546875, 0.1300048828125, 0.06268310546875, ...
embed
17034646_c0
17034646
prolog
0
Title: Making Prolog code that works in GNU and SWI Problem title: Making Prolog code that works in GNU and SWI Tags: iso-prolog, gnu-prolog, portability, prolog, swi-prolog Problem: Making Prolog code that works in GNU and SWI I realize there are going to be limits to this, but is there a reasonable way to put in cond...
Making Prolog code that works in GNU and SWI Making Prolog code that works in GNU and SWI iso-prolog gnu-prolog portability prolog swi-prolog Making Prolog GNU SWI sum_list not_a_builtin Making Prolog code that works in GNU and SWI I realize there are going to be limits to this, but is there a reasonable way to put in ...
[ 0.005767822265625, 0.01513671875, 0.017333984375, 0.0029754638671875, -0.02490234375, -0.00179290771484375, 0.00335693359375, 0.00396728515625, 0.0057373046875, -0.01275634765625, 0.00616455078125, 0.00179290771484375, -0.0169677734375, -0.01348876953125, 0.00830078125, 0.02734375, 0...
[ 13676, 214, 1250, 4867, 18151, 43240, 23, 165132, 136, 159, 38969, 13882, 3454, 104155, 4898, 83259, 502, 2452, 10554, 6562, 959, 11, 978, 2311, 17475, 169022, 3917, 3884, 35431, 289, 8951, 60877, 4488, 31635, 707, 30362, 88303, 1653, 2063,...
[ 0.1123046875, 0.049224853515625, 0.17138671875, 0.2181396484375, 0.177490234375, 0.122314453125, 0.025146484375, 0.2265625, 0.1058349609375, 0.0821533203125, 0.2392578125, 0.1015625, 0.12646484375, 0.1485595703125, 0.0802001953125, 0.09765625, 0.1119384765625, 0.161376953125, 0.1...
embed
19069949_c0
19069949
prolog
0
Title: How do we trace recursive algorithm in prolog? Problem title: How do we trace recursive algorithm in prolog? Tags: recursion, prolog Problem: How do we trace recursive algorithm in prolog? I find it very unstraightforward, but I think I got the gist of it, please confirm whether I am in the wrong or not. append(...
How do we trace recursive algorithm in prolog? How do we trace recursive algorithm in prolog? recursion prolog How _G518 _G587 _G590 _G593 How do we trace recursive algorithm in prolog? I find it very unstraightforward, but I think I got the gist of it, please confirm whether I am in the wrong or not. Here's the query ...
[ 0.00092315673828125, 0.0296630859375, 0.00106048583984375, 0.01507568359375, -0.00653076171875, 0.006561279296875, -0.0035552978515625, 0.0137939453125, 0.0242919921875, -0.004638671875, 0.0179443359375, -0.0128173828125, -0.022216796875, 0.01055908203125, 0.01373291015625, -0.01165771...
[ 11249, 642, 144851, 195625, 5844, 234873, 23, 502, 4867, 54, 1830, 724, 758, 1819, 202118, 116708, 12975, 363, 7413, 19364, 5351, 39563, 44691, 41, 79986, 114689, 71, 618, 866, 304, 21320, 107, 48650, 40225, 9222, 54700, 5303, 96386, 4420, ...
[ 0.1055908203125, 0.06170654296875, 0.272705078125, 0.249267578125, 0.1923828125, 0.283203125, 0.04510498046875, 0.149658203125, 0.25146484375, 0.026611328125, 0.095458984375, 0.002471923828125, 0.050689697265625, 0.136962890625, 0.170166015625, 0.1851806640625, 0.08502197265625, 0....
embed
70441042_c0
70441042
prolog
0
Title: Find all paths between nodes in an undirected graph Problem title: Find all paths between nodes in an undirected graph Tags: prolog Problem: Find all paths between nodes in an undirected graph I have defined the following network: connected(d,f). connected(d,a). connected(d,b). connected(d,c). connected(c,a). co...
Find all paths between nodes in an undirected graph Find all paths between nodes in an undirected graph prolog one A X Find Easy Find all paths between nodes in an undirected graph I have defined the following network: I need to find all paths between two specified nodes and write them out. I have found a previous post...
[ 0.0027618408203125, 0.01116943359375, 0.0084228515625, 0.0216064453125, 0.0036163330078125, 0.01092529296875, -0.011474609375, -0.0177001953125, 0.00090789794921875, -0.05859375, 0.00640869140625, -0.017578125, -0.00201416015625, 0.0281982421875, 0.005828857421875, 0.006866455078125, ...
[ 26040, 756, 60875, 7, 17721, 110, 988, 51, 80581, 297, 41382, 23, 502, 4867, 1632, 1193, 71975, 61924, 25632, 33120, 3871, 7413, 6626, 58735, 33022, 1810, 12765, 2174, 53418, 5351 ]
[ 0.105224609375, 0.1396484375, 0.21923828125, 0.0797119140625, 0.1907958984375, 0.1309814453125, 0.12548828125, 0.0697021484375, 0.1646728515625, 0.017333984375, 0.167236328125, 0.0217742919921875, 0.059722900390625, 0.1011962890625, 0.0208282470703125, 0.07318115234375, 0.13952636718...
embed
12188046_c0
12188046
prolog
0
Title: AVL Binary Tree - Balanace test Problem title: AVL Binary Tree - Balanace test Tags: avl-tree, prolog, tree-balancing, tree Problem: AVL Binary Tree - Balanace test I'm trying to achieve a testing if a tree is AVL tree or not using prolog. I've made a height test that works for the tests I've done so far but my ...
AVL Binary Tree - Balanace test AVL Binary Tree - Balanace test avl-tree prolog tree-balancing tree AVL Binary Tree Balanace Branch LeftBranch RightBranch H1-H2 AVL Binary Tree - Balanace test I'm trying to achieve a testing if a tree is AVL tree or not using prolog. I've made a height test that works for the tests I'v...
[ 0.01531982421875, -0.0033416748046875, -0.00173187255859375, -0.017578125, 0.01708984375, 0.005584716796875, -0.00016689300537109375, -0.0026092529296875, -0.0111083984375, -0.000446319580078125, -0.00518798828125, -0.030029296875, 0.004486083984375, -0.00323486328125, 0.0086669921875, ...
[ 62, 92414, 54092, 1294, 101344, 21618, 76, 329, 3034, 185, 141, 62600, 502, 4867, 53201, 31695, 60636, 21110, 1603, 90911, 304, 31577, 69307, 134234, 2174, 83, 707, 959, 17368, 155955, 43240, 109921, 2060, 25168, 7464, 7730, 37515, 35509, 1...
[ 0.101806640625, 0.262451171875, 0.1580810546875, 0.079833984375, 0.2020263671875, 0.1334228515625, 0.1065673828125, 0.10015869140625, 0.1763916015625, 0.1202392578125, 0.1455078125, 0.1680908203125, 0.125244140625, 0.215087890625, 0.21240234375, 0.1644287109375, 0.112548828125, 0.0...
embed
47868016_c0
47868016
prolog
0
Title: including a predicate that ends with a fail, in search tree Problem title: including a predicate that ends with a fail, in search tree Tags: prolog, clpfd Problem: including a predicate that ends with a fail, in search tree In my program I have a number of rules, each "firing" based on a different precondition a...
including a predicate that ends with a fail, in search tree including a predicate that ends with a fail, in search tree prolog clpfd including a predicate that ends with a fail, in search tree In my program I have a number of rules, each "firing" based on a different precondition and current state. One such rule's purp...
[ 0.0230712890625, 0.020263671875, -0.000560760498046875, -0.00157928466796875, -0.00457763671875, 0.001434326171875, 0.00848388671875, 0.004058837890625, -0.005767822265625, -0.037109375, 0.01324462890625, -0.0002593994140625, -0.01141357421875, 0.00482177734375, 0.014892578125, 0.00238...
[ 26719, 1653, 2063, 67, 3564, 678, 35782, 23, 33938, 53201, 502, 4867, 33139, 39557, 71, 10, 1528, 14012, 91736, 12638, 13448, 214, 35509, 12921, 479, 126940, 43581, 11341, 79986, 60042, 83, 47, 135812, 5361, 85325, 35431, 51529, 74918, 2325...
[ 0.1185302734375, 0.14404296875, 0.2020263671875, 0.054107666015625, 0.09088134765625, 0.017822265625, 0.219970703125, 0.026336669921875, 0.1715087890625, 0.202880859375, 0.09820556640625, 0.1488037109375, 0.0213165283203125, 0.0731201171875, 0.09521484375, 0.0156402587890625, 0.11730...
embed
8955906_c0
8955906
prolog
0
Title: Prolog query, how to omit first param from complex term in query result Problem title: Prolog query, how to omit first param from complex term in query result Tags: prolog Problem: Prolog query, how to omit first param from complex term in query result I'm learning Prolog from "Learn prolog now" book. I'm quite ...
Prolog query, how to omit first param from complex term in query result Prolog query, how to omit first param from complex term in query result prolog complex Prolog honey_bunny Prolog query, how to omit first param from complex term in query result I'm learning Prolog from "Learn prolog now" book. I'm quite newbie in ...
[ 0.00592041015625, 0.01141357421875, 0.00457763671875, 0.007598876953125, -0.0028076171875, -0.0004730224609375, -0.007476806640625, 0.0235595703125, -0.0089111328125, -0.0439453125, 0.01708984375, 0.01324462890625, -0.0167236328125, 0.0054931640625, 0.0086669921875, -0.0022430419921875...
[ 1250, 4867, 41, 1294, 3642, 171, 217, 5117, 121, 39, 1295, 27140, 13579, 16750, 23, 502, 80493, 17643, 299, 52080, 5036, 12877, 9014, 59090, 110833, 51359, 3862, 16797, 10283, 152161, 15044, 5161, 7, 8132, 55, 7779, 69407, 135812, 3445, 3...
[ 0.173095703125, 0.245849609375, 0.1671142578125, 0.1187744140625, 0.054534912109375, 0.1702880859375, 0.1368408203125, 0.19091796875, 0.177734375, 0.1729736328125, 0.0677490234375, 0.2388916015625, 0.218017578125, 0.1903076171875, 0.016021728515625, 0.112548828125, 0.193115234375, ...
embed
14721252_c0
14721252
prolog
0
Title: How to a list of English arithmetical expressions and yield the numerical result Problem title: How to a list of English arithmetical expressions and yield the numerical result Tags: windows, prolog Problem: How to a list of English arithmetical expressions and yield the numerical result I'm new to Prolog and I ...
How to a list of English arithmetical expressions and yield the numerical result How to a list of English arithmetical expressions and yield the numerical result windows prolog How English How to a list of English arithmetical expressions and yield the numerical result I'm new to Prolog and I have a problem that querie...
[ 0.0106201171875, -0.0185546875, -0.007415771484375, 0.006378173828125, 0.02001953125, -0.00016307830810546875, 0.0036163330078125, -0.00848388671875, 0.0004253387451171875, -0.0301513671875, -0.0125732421875, -0.00946044921875, -0.004669189453125, -0.0174560546875, 0.017578125, 0.00331...
[ 11249, 47, 10, 5303, 111, 14941, 187, 8962, 282, 70760, 125195, 7, 136, 11180, 19388, 54744, 6827, 16750, 54825, 502, 4867, 3525, 1250, 2967, 41, 154993, 107, 70141, 55547, 169473, 35166, 33867, 1369, 910, 5, 17368, 1653, 2063, 3900, 1930...
[ 0.0859375, 0.1292724609375, 0.0394287109375, 0.1993408203125, 0.06646728515625, 0.254150390625, 0.04327392578125, 0.154296875, 0.1103515625, 0.1568603515625, 0.2374267578125, 0.08367919921875, 0.039581298828125, 0.088134765625, 0.1409912109375, 0.177734375, 0.11279296875, 0.1645507...
embed
53689928_c0
53689928
prolog
0
Title: Prolog unweighted graph distances off by 1 Problem title: Prolog unweighted graph distances off by 1 Tags: weighted, graph-theory, prolog, path Problem: Prolog unweighted graph distances off by 1 So I am trying to find paths and their lengths for unweighted graphs. Here is my code; you give it a relation, a star...
Prolog unweighted graph distances off by 1 Prolog unweighted graph distances off by 1 weighted graph-theory prolog path Prolog use_module Rel Path Len Visited Length Prolog unweighted graph distances off by 1 So I am trying to find paths and their lengths for unweighted graphs. Here is my code; you give it a relation, ...
[ 0.0150146484375, 0.037841796875, 0.00994873046875, 0.002105712890625, 0.00750732421875, -0.000530242919921875, -0.0252685546875, 0.00028228759765625, 0.004364013671875, -0.06640625, -0.0089111328125, 0.00213623046875, -0.0025177001953125, 0.01806640625, 0.01239013671875, -0.01245117187...
[ 1250, 4867, 51, 165598, 41382, 62488, 5773, 390, 106, 57888, 297, 2347, 502, 60875, 4527, 83279, 853, 141, 108421, 18226, 98684, 77554, 31577, 7413, 136, 140909, 18151, 8337, 41911, 4034, 3564, 43240, 49903, 30646, 40715, 3501, 44841, 3164, ...
[ 0.1573486328125, 0.2044677734375, 0.1151123046875, 0.2080078125, 0.2298583984375, 0.173828125, 0.181396484375, 0.0535888671875, 0.065673828125, 0.18505859375, 0.0740966796875, 0.046844482421875, 0.109130859375, 0.2293701171875, 0.02838134765625, 0.066650390625, 0.0186614990234375, ...
embed
60579066_c0
60579066
prolog
0
Title: prolog - recursive predicate sum(J,K,N) Problem title: prolog - recursive predicate sum(J,K,N) Tags: prolog, recursion, sum Problem: prolog - recursive predicate sum(J,K,N) I'm trying to solve the exercise from book "Prolog Programming In Depth". Define a recursive predicate sum(J,K,N) that instantiates N to the...
prolog - recursive predicate sum(J,K,N) prolog - recursive predicate sum(J,K,N) prolog recursion sum What sum_iter clause_1 clause_2 clause_X SumTmp NewI NewS prolog - recursive predicate sum(J,K,N) I'm trying to solve the exercise from book "Prolog Programming In Depth". Define a recursive predicate sum(J,K,N) that in...
[ -0.0257568359375, 0.005859375, 0.021240234375, -0.000015497207641601562, -0.0130615234375, 0.0184326171875, -0.0024261474609375, 0.01397705078125, 0.01092529296875, -0.005706787109375, 0.006195068359375, -0.008544921875, -0.01031494140625, -0.007659912109375, 0.0240478515625, 0.0169677...
[ 502, 4867, 195625, 5844, 1653, 2063, 10554, 1375, 605, 839, 67, 4, 16840, 70731, 13, 115187, 304, 1542, 36335, 618, 2676, 2356, 568, 294, 86869, 81979, 10752, 27958, 64552, 34648, 101426, 541, 47, 892, 821, 341, 55128, 35064, 43240, 26785...
[ 0.1473388671875, 0.2021484375, 0.177734375, 0.0869140625, 0.156005859375, 0.1724853515625, 0.1904296875, 0.140625, 0.108642578125, 0.0985107421875, 0.088134765625, 0.0191802978515625, 0.1890869140625, 0.129638671875, 0.07012939453125, 0.0557861328125, 0.0904541015625, 0.14892578125...
embed
61443982_c1
61443982
prolog
1
um = [(3, o)]. So basically this is giving the result i want at given index and this predicate is working fine, having said this what i tried to do is to do this verification for all indexes in Lst. The problem is that for some reason this is giving an infinite cicle and i dont understand why. Program: letras_comuns_au...
um = [(3, o)]. So basically this is giving the result i want at given index and this predicate is working fine, having said this what i tried to do is to do this verification for all indexes in Lst. The problem is that for some reason this is giving an infinite cicle and i dont understand why. Program: letras_comuns_au...
[ -0.0213623046875, -0.0250244140625, 0.00787353515625, 0.000499725341796875, -0.000255584716796875, 0.006072998046875, 0.000021576881408691406, -0.00012493133544921875, 0.0201416015625, -0.0478515625, 0.018798828125, 0.01190185546875, 0.015869140625, 0.00116729736328125, 0.006011962890625...
[ 286, 2203, 86827, 36, 198343, 903, 83, 68772, 70, 16750, 17, 3444, 99, 34475, 63262, 1653, 2063, 67, 20697, 5885, 37842, 493, 41274, 756, 90, 23, 339, 271, 2967, 3060, 31635, 54241, 13, 145139, 13319, 28219, 15400, 7663, 111154, 277, 30...
[ 0.237060546875, 0.124267578125, 0.1878662109375, 0.18359375, 0.09503173828125, 0.1136474609375, 0.040435791015625, 0.1121826171875, 0.04034423828125, 0.1444091796875, 0.049560546875, 0.159423828125, 0.060150146484375, 0.07977294921875, 0.1829833984375, 0.1907958984375, 0.21044921875,...
embed
65099183_c0
65099183
prolog
0
Title: How to make a rule return all details of a fact using Prolog Problem title: How to make a rule return all details of a fact using Prolog Tags: prolog Problem: How to make a rule return all details of a fact using Prolog Using Prolog, I first created two facts called grade and food: The first fact is grade(X,Y) w...
How to make a rule return all details of a fact using Prolog How to make a rule return all details of a fact using Prolog prolog Prolog How How to make a rule return all details of a fact using Prolog Using Prolog, I first created two facts called grade and food: The first fact is grade(X,Y) where X is the student (rob...
[ 0.04541015625, 0.0040283203125, -0.00127410888671875, 0.0311279296875, 0.003662109375, 0.0040283203125, 0.00009918212890625, -0.0203857421875, -0.0030059814453125, -0.01416015625, 0.00872802734375, 0.00107574462890625, -0.0072021484375, -0.00067901611328125, -0.017578125, -0.0073242187...
[ 11249, 3249, 79986, 30646, 756, 41653, 111, 15824, 17368, 1250, 4867, 10, 502, 5117, 75935, 6626, 35839, 44000, 136, 15381, 1723, 9836, 21359, 707, 2589, 990, 17366, 22014, 17932, 1434, 7070, 57736, 14324, 137565, 205537, 1542, 4, 1193, 259...
[ 0.03765869140625, 0.07904052734375, 0.2464599609375, 0.2474365234375, 0.1396484375, 0.23974609375, 0.049285888671875, 0.2161865234375, 0.0543212890625, 0.1573486328125, 0.259033203125, 0.0638427734375, 0.133056640625, 0.0183258056640625, 0.11328125, 0.05474853515625, 0.01434326171875...
embed
43904350_c1
43904350
prolog
1
::+-2, in process listener(1). > Type :POP to abort, :R for a list of available restarts. > Type :? for other options. 3 > (addone '(a b c)) > Error: The value A is not of the expected type NUMBER. > While executing: CCL::+-2, in process listener(1). > Type :POP to abort, :R for a list of available restarts. > Type :? ...
::+-2, in process listener(1). > Type :POP to abort, :R for a list of available restarts. > Type :? for other options. 3 > (addone '(a b c)) > Error: The value A is not of the expected type NUMBER. > While executing: CCL::+-2, in process listener(1). > Type :POP to abort, :R for a list of available restarts. > Type :? ...
[ 0.0096435546875, 0.0054931640625, 0.00152587890625, 0.01708984375, 0.01513671875, 0.0322265625, -0.0146484375, 0.006134033203125, -0.0096435546875, -0.044921875, 0.004608154296875, -0.0240478515625, 0.000492095947265625, 0.0042724609375, 0.007171630859375, -0.02978515625, -0.00720214...
[ 1984, 1328, 5428, 23, 9433, 44632, 56, 27750, 60457, 196803, 47, 64853, 1052, 5303, 19882, 10588, 67987, 32, 50717, 138, 712, 64007, 11, 876, 501, 212059, 34292, 62, 83, 959, 111, 84751, 10644, 109020, 24480, 51404, 71924, 313, 37486, 441...
[ 0.06317138671875, 0.1378173828125, 0.2135009765625, 0.01007080078125, 0.144775390625, 0.223388671875, 0.136474609375, 0.0282135009765625, 0.169189453125, 0.19921875, 0.009033203125, 0.2081298828125, 0.0577392578125, 0.0645751953125, 0.1138916015625, 0.07550048828125, 0.14501953125, ...
embed
19795036_c0
19795036
prolog
0
Title: Unification of expanded terms, double negation Problem title: Unification of expanded terms, double negation Tags: prolog, unification Problem: Unification of expanded terms, double negation I need to introduce a predicate that will let me negate atoms. So far I have neg(Premise) :- \+ Premise. , which gives me ...
Unification of expanded terms, double negation Unification of expanded terms, double negation prolog unification Unification Premise Unification of expanded terms, double negation I need to introduce a predicate that will let me negate atoms. So far I have neg(Premise) :- \+ Premise. , which gives me following results:...
[ 0.0089111328125, 0.013671875, 0.0162353515625, 0.035400390625, -0.0157470703125, -0.00023365020751953125, 0.0341796875, 0.007720947265625, -0.00885009765625, 0.0050048828125, -0.01416015625, 0.00830078125, -0.0021820068359375, -0.007720947265625, -0.0126953125, 0.01239013671875, 0.00...
[ 992, 41274, 71062, 297, 69407, 41929, 108, 125682, 502, 4867, 51, 38394, 184, 3871, 65508, 1653, 2063, 67, 2633, 90584, 13, 34627, 177, 19273, 5453, 1328, 30482, 10422, 756, 1459, 37842, 11, 454, 48636, 30646, 29568, 12960, 86, 98320, 868...
[ 0.167236328125, 0.1358642578125, 0.1263427734375, 0.024749755859375, 0.1650390625, 0.1448974609375, 0.1729736328125, 0.0872802734375, 0.117431640625, 0.17578125, 0.157470703125, 0.1605224609375, 0.076171875, 0.058135986328125, 0.07696533203125, 0.1087646484375, 0.1297607421875, 0.0...
embed
72291925_c0
72291925
prolog
0
Title: Prolog. Remove from the first list items that have an even number of occurrences in the second list Problem title: Prolog. Remove from the first list items that have an even number of occurrences in the second list Tags: prolog Problem: Prolog. Remove from the first list items that have an even number of occurre...
Prolog. Remove from the first list items that have an even number of occurrences in the second list Prolog. Remove from the first list items that have an even number of occurrences in the second list prolog the Prolog Remove Number Quantity UpdatedQuantity Prolog. Remove from the first list items that have an even numb...
[ -0.01007080078125, 0.0142822265625, 0.000293731689453125, 0.009033203125, -0.017333984375, 0.0194091796875, -0.00127410888671875, 0.038818359375, 0.0177001953125, -0.006866455078125, -0.00732421875, -0.00106048583984375, 0.0057373046875, 0.0029754638671875, 0.01397705078125, -0.0014190...
[ 1250, 4867, 181139, 1295, 5117, 5303, 55769, 3853, 14012, 74918, 42, 69098, 17932, 502, 103332, 75344, 28641, 173495, 18, 30698, 4488, 678, 7, 1528, 27781, 21373, 66211, 765, 62775, 32354, 28670, 10763, 105416, 5608, 30646, 2481, 12830, 87388...
[ 0.1868896484375, 0.267578125, 0.187255859375, 0.109375, 0.1058349609375, 0.2181396484375, 0.162353515625, 0.174560546875, 0.10986328125, 0.125, 0.0892333984375, 0.0753173828125, 0.1336669921875, 0.1505126953125, 0.10986328125, 0.0982666015625, 0.1102294921875, 0.0164794921875, 0....
embed
49966551_c0
49966551
prolog
0
Title: Prolog - Facts to rules Problem title: Prolog - Facts to rules Tags: prolog Problem: Prolog - Facts to rules This question is related to this one : Prolog - Reduce the knowledge base by deduction I've removed all the fact and rules that can deducted but I now have to write new facts which have been deducted. As ...
Prolog - Facts to rules Prolog - Facts to rules prolog Prolog Facts conclusion_premise is_a clean_database Conclusion Premise list_to_set L_no_duplicate Prolog - Facts to rules This question is related to this one : Prolog - Reduce the knowledge base by deduction I've removed all the fact and rules that can deducted bu...
[ 0.02197265625, 0.01483154296875, 0.006805419921875, 0.020263671875, -0.00872802734375, 0.006927490234375, -0.012451171875, -0.01141357421875, 0.0179443359375, -0.032470703125, 0.00140380859375, -0.002166748046875, -0.022705078125, 0.00811767578125, -0.00015926361083984375, -0.012084960...
[ 1250, 4867, 132640, 7, 47, 91736, 502, 93192, 41707, 184, 83, 11, 46622, 10135, 37382, 135523, 6889, 38394, 5303, 188, 3509, 339, 157, 693, 52721, 9655, 62548, 853, 106357, 51359, 3647, 8, 77391, 184750, 756, 15824, 136, 831, 77193, 5036,...
[ 0.1492919921875, 0.2469482421875, 0.20068359375, 0.041046142578125, 0.17578125, 0.1611328125, 0.0908203125, 0.250244140625, 0.197265625, 0.1673583984375, 0.18798828125, 0.1168212890625, 0.2347412109375, 0.05279541015625, 0.1368408203125, 0.18798828125, 0.01507568359375, 0.146362304...
embed
24955055_c0
24955055
prolog
0
Title: Creating a dynamic rule in prolog Problem title: Creating a dynamic rule in prolog Tags: prolog, erlog Problem: Creating a dynamic rule in prolog I am working on the Erlog system and trying to create some code to allow better integration with erlang records. As such I would like to be able to take a record name ...
Creating a dynamic rule in prolog Creating a dynamic rule in prolog prolog erlog Creating Person Name Phone make_access RecordName Field Rest Place Record Value Creating a dynamic rule in prolog I am working on the Erlog system and trying to create some code to allow better integration with erlang records. As such I wo...
[ 0.02197265625, 0.0125732421875, 0.007232666015625, 0.018310546875, 0.007537841796875, 0.0196533203125, -0.0296630859375, 0.030029296875, 0.007659912109375, -0.03759765625, -0.00244140625, -0.01129150390625, 0.010986328125, -0.0152587890625, 0.0216064453125, -0.007537841796875, 0.0250...
[ 56781, 84079, 79986, 502, 4867, 72, 15270, 15757, 41761, 3249, 113041, 54877, 163612, 117657, 49756, 41076, 190060, 20697, 1004, 5426, 28282, 18151, 11522, 157353, 3066, 115923, 1884, 5646, 17164, 9351, 5303, 44457, 91736, 1295, 3444, 34475, 35...
[ 0.1240234375, 0.2200927734375, 0.20751953125, 0.1090087890625, 0.2330322265625, 0.05389404296875, 0.1148681640625, 0.0810546875, 0.161376953125, 0.059356689453125, 0.1632080078125, 0.146240234375, 0.123291015625, 0.1549072265625, 0.1356201171875, 0.131103515625, 0.16015625, 0.04602...
embed
31418169_c0
31418169
prolog
0
Title: getting a prolog program to print out results instead of booleans Problem title: getting a prolog program to print out results instead of booleans Tags: prolog Problem: getting a prolog program to print out results instead of booleans imagine a 2d map with 6 regions R1-R6. Each region should be colored in with 1...
getting a prolog program to print out results instead of booleans getting a prolog program to print out results instead of booleans prolog getting a prolog program to print out results instead of booleans imagine a 2d map with 6 regions R1-R6. Each region should be colored in with 1 of 4 colors, but no adjacent regions...
[ -0.005126953125, 0.003936767578125, -0.0035552978515625, 0.0260009765625, -0.008544921875, 0.01141357421875, -0.00860595703125, 0.004058837890625, -0.004669189453125, 0.0034332275390625, 0.000911712646484375, -0.00225830078125, -0.0177001953125, -0.0186767578125, 0.0133056640625, 0.029...
[ 20949, 502, 4867, 1528, 28412, 1810, 50339, 64457, 337, 16836, 10133, 111, 28987, 116, 71, 22288, 305, 10776, 627, 20268, 1052, 910, 98423, 5608, 10576, 23, 678, 201, 104988, 110, 123594, 16797, 831, 186, 5701, 18151, 60075, 13, 89829, 14...
[ 0.062103271484375, 0.19189453125, 0.274658203125, 0.2113037109375, 0.1905517578125, 0.14404296875, 0.2056884765625, 0.1429443359375, 0.064208984375, 0.153076171875, 0.1806640625, 0.043243408203125, 0.051544189453125, 0.055694580078125, 0.0587158203125, 0.1898193359375, 0.084167480468...
embed
47474603_c0
47474603
prolog
0
Title: Depending on faliure to prove in prolog Problem title: Depending on faliure to prove in prolog Tags: prolog Problem: Depending on faliure to prove in prolog Consider this code :- use_module(library(clpfd)). p(1). p(3). p(5). p(7). predecessor(A, B) :- A #= B - 1. % is true for pairs q(X) :- predecessor(P, X), \+...
Depending on faliure to prove in prolog Depending on faliure to prove in prolog prolog Depending use_module Item Depending on faliure to prove in prolog Consider this code If I query ?- p(X) I correctly get the results But if I query ?- q(X) then I get false . I realize that \+ is really not negation but faliure to pro...
[ -0.00494384765625, 0.0224609375, -0.00518798828125, 0.026611328125, -0.01116943359375, 0.01275634765625, 0.0235595703125, -0.01348876953125, 0.005401611328125, -0.04052734375, 0.0107421875, 0.00653076171875, 0.006256103515625, 0.0169677734375, 0.004302978515625, 0.0031890869140625, 0...
[ 262, 96819, 119855, 3408, 23534, 502, 4867, 4527, 83279, 78426, 98, 23, 18151, 41, 1294, 915, 1542, 26785, 50339, 2174, 9, 8096, 98320, 92154, 41872, 1328, 959, 108, 125682, 47, 19048, 129980, 15700, 1653, 2063, 8035, 29568, 7225, 27781, ...
[ 0.032073974609375, 0.1697998046875, 0.1693115234375, 0.2467041015625, 0.2205810546875, 0.1441650390625, 0.21875, 0.1317138671875, 0.1322021484375, 0.156982421875, 0.0265655517578125, 0.0265655517578125, 0.089111328125, 0.0975341796875, 0.085693359375, 0.0782470703125, 0.123046875, ...
embed
55923163_c0
55923163
prolog
0
Title: Pick specific lists from a list of lists Problem title: Pick specific lists from a list of lists Tags: prolog Problem: Pick specific lists from a list of lists I want to set a predicate to_buy(Goods,Offers,Price,Quality), which is true when a list Offers, with total price of Price and total quality of Quality, b...
Pick specific lists from a list of lists Pick specific lists from a list of lists prolog a Pick Price Quality to_buy Goods Offers List AList Pick specific lists from a list of lists I want to set a predicate to_buy(Goods,Offers,Price,Quality), which is true when a list Offers, with total price of Price and total qualit...
[ 0.00262451171875, 0.001312255859375, 0.0245361328125, 0.006683349609375, -0.0205078125, 0.022705078125, -0.00994873046875, 0.005279541015625, 0.02490234375, 0.01202392578125, 0.0194091796875, 0.0257568359375, 0.0021209716796875, 0.009033203125, -0.01458740234375, -0.000881195068359375,...
[ 122554, 29458, 5303, 7, 1295, 111, 502, 4867, 48025, 124604, 47, 86527, 18621, 134384, 32036, 62, 154663, 3444, 5423, 10, 1653, 2063, 67, 144890, 150369, 33163, 178476, 2481, 29568, 3622, 27167, 31897, 66161, 38742, 110, 64600, 831, 29256, ...
[ 0.1885986328125, 0.2303466796875, 0.245849609375, 0.03155517578125, 0.087646484375, 0.013214111328125, 0.1259765625, 0.18212890625, 0.1317138671875, 0.1671142578125, 0.0687255859375, 0.1578369140625, 0.1351318359375, 0.19287109375, 0.156005859375, 0.0872802734375, 0.2037353515625, ...
embed
69429656_c0
69429656
prolog
0
Title: My override using inheritance in Prolog is inheriting the wrong property ? why? Problem title: My override using inheritance in Prolog is inheriting the wrong property ? why? Tags: overriding, prolog, inheritance Problem: My override using inheritance in Prolog is inheriting the wrong property ? why? I am trying...
My override using inheritance in Prolog is inheriting the wrong property ? why? My override using inheritance in Prolog is inheriting the wrong property ? why? overriding prolog inheritance inheritance Prolog Rules Property Object Value Parent Ojbect My override using inheritance in Prolog is inheriting the wrong prope...
[ 0.0107421875, -0.003570556640625, 0.006011962890625, 0.00634765625, 0.00335693359375, -0.0011749267578125, 0.0021514892578125, 0.0125732421875, 0.003875732421875, -0.00421142578125, -0.0123291015625, 0.01104736328125, 0.006103515625, -0.0003032684326171875, 0.0040283203125, 0.004669189...
[ 2646, 645, 416, 112, 17368, 23, 3334, 217, 7154, 1250, 4867, 83, 86151, 1916, 44691, 57266, 15400, 6238, 502, 139118, 206984, 134549, 190060, 170918, 82919, 33970, 31577, 10576, 183871, 91736, 35064, 20949, 34292, 5608, 4842, 1284, 64457, 205...
[ 0.043243408203125, 0.1219482421875, 0.1712646484375, 0.098388671875, 0.0712890625, 0.0858154296875, 0.1806640625, 0.138671875, 0.099853515625, 0.1512451171875, 0.235595703125, 0.0224456787109375, 0.1907958984375, 0.055023193359375, 0.2054443359375, 0.1951904296875, 0.09832763671875, ...
embed
2426484_c0
2426484
prolog
0
Title: How to find differences in lists in prolog and determine if the lists are the same (same elements but doesnt have to have the same order) Problem title: How to find differences in lists in prolog and determine if the lists are the same (same elements but doesnt have to have the same order) Tags: prolog Problem: ...
How to find differences in lists in prolog and determine if the lists are the same (same elements but doesnt have to have the same order) How to find differences in lists in prolog and determine if the lists are the same (same elements but doesnt have to have the same order) prolog How Yes How to find differences in li...
[ 0.0247802734375, 0.02685546875, 0.01080322265625, 0.0294189453125, -0.01336669921875, 0.0198974609375, -0.0023345947265625, 0.0130615234375, 0.00799560546875, 0.0245361328125, 0.0010833740234375, -0.006561279296875, -0.006103515625, 0.0181884765625, 0.00179290771484375, -0.005584716796...
[ 11249, 7413, 60212, 7, 23, 5303, 502, 4867, 83324, 2174, 5701, 40175, 80854, 18, 12989, 32635, 6626, 62, 136, 335, 1407, 12921, 120820, 275, 3642, 8337, 313, 1556, 959, 99201, 10644, 35166, 12301, 5773, 16750, 70541, 26866, 72272, 83849, ...
[ 0.03314208984375, 0.1376953125, 0.2470703125, 0.1341552734375, 0.06378173828125, 0.216552734375, 0.1700439453125, 0.21044921875, 0.1251220703125, 0.04840087890625, 0.1959228515625, 0.1419677734375, 0.1275634765625, 0.034759521484375, 0.107666015625, 0.0870361328125, 0.0589599609375, ...
embed
17915382_c0
17915382
prolog
0
Title: How to color a graph Problem title: How to color a graph Tags: prolog, graph-coloring Problem: How to color a graph I have a question described below: Write a prolog program that colors a graph. The colors are defined by the color/1 predicate and the graph by the clauses edge/2. You must write the predicate colo...
How to color a graph How to color a graph prolog graph-coloring How How to color a graph I have a question described below: Write a prolog program that colors a graph. The colors are defined by the color/1 predicate and the graph by the clauses edge/2. You must write the predicate coloring(Coloring) that finds a colori...
[ -0.0235595703125, 0.00897216796875, -0.011962890625, -0.00008058547973632812, -0.014404296875, 0.01104736328125, -0.0247802734375, 0.0205078125, -0.00836181640625, -0.035888671875, -0.011474609375, -0.006622314453125, -0.0277099609375, -0.00090789794921875, 0.0037841796875, 0.013183593...
[ 11249, 47, 10576, 10, 41382, 502, 4867, 46133, 214, 9655, 151552, 35064, 601, 18781, 1528, 104988, 61924, 11583, 1653, 2063, 70731, 121303, 12477, 8110, 33022, 67, 10625, 1484, 7413, 110, 988, 112, 115187, 19, 62, 83, 5303, 157, 39, 40407...
[ 0.11181640625, 0.104248046875, 0.2410888671875, 0.07989501953125, 0.236083984375, 0.125732421875, 0.182861328125, 0.1317138671875, 0.1260986328125, 0.05517578125, 0.045928955078125, 0.10040283203125, 0.05059814453125, 0.07684326171875, 0.11669921875, 0.2001953125, 0.1170654296875, ...
embed
25197921_c1
25197921
prolog
1
[element('ing',[], [element('item',[],['sahne']), element('item',[],['erbsen']), element('item',[],['gemüsebrühe'] )] )] )] )] )] )]). askElement(Name, Child, Parent) :- ( member( element(Name,_,Child),Parent) ; member( element(_,_,NewParent),Parent), [_|_] = NewParent, askElement(Name, Child, NewParent) ). allRecipes...
[element('ing',[], [element('item',[],['sahne']), element('item',[],['erbsen']), element('item',[],['gemüsebrühe'] )] )] )] )] )] )]). askElement(Name, Child, Parent) :- ( member( element(Name,_,Child),Parent) ; member( element(_,_,NewParent),Parent), [_|_] = NewParent, askElement(Name, Child, NewParent) ). allRecipes...
[ 0.01531982421875, 0.0035858154296875, 0.00726318359375, 0.00090789794921875, 0.0031280517578125, 0.033447265625, -0.025146484375, 0.0050048828125, 0.005523681640625, -0.02685546875, 0.0240478515625, 0.0125732421875, -0.006378173828125, 0.0152587890625, 0.0050048828125, -0.00244140625, ...
[ 62766, 214, 217, 195, 23474, 86, 12830, 56, 275, 1015, 28103, 27359, 18687, 1106, 26458, 19929, 163612, 123829, 170918, 15772, 32786, 102656, 28636, 46568, 2356, 2517, 6, 756, 4332, 115052, 111607, 5584, 3034, 10869, 7413, 2676, 1052, 31251, ...
[ 0.2098388671875, 0.147216796875, 0.05902099609375, 0.099365234375, 0.109375, 0.1336669921875, 0.1966552734375, 0.07080078125, 0.12060546875, 0.1806640625, 0.0750732421875, 0.028228759765625, 0.12939453125, 0.1126708984375, 0.17724609375, 0.200927734375, 0.1468505859375, 0.1640625, ...
embed
27098065_c0
27098065
prolog
0
Title: Prolog - New list with positive, negative and &quot;0&quot; elements with 1, -1, 0 respectively in relation to input list Problem title: Prolog - New list with positive, negative and &quot;0&quot; elements with 1, -1, 0 respectively in relation to input list Tags: element, list, prolog, replace Problem: Prolog -...
Prolog - New list with positive, negative and &quot;0&quot; elements with 1, -1, 0 respectively in relation to input list Prolog - New list with positive, negative and &quot;0&quot; elements with 1, -1, 0 respectively in relation to input list element list prolog replace Prolog Prolog - New list with positive, negative...
[ -0.0084228515625, 0.00836181640625, -0.01116943359375, 0.001312255859375, -0.01239013671875, 0.00836181640625, 0.0002727508544921875, 0.017578125, 0.0076904296875, 0.032958984375, 0.0030975341796875, -0.027099609375, -0.0164794921875, -0.0179443359375, 0.00482177734375, 0.0116577148437...
[ 1250, 4867, 20, 2356, 5303, 678, 24491, 40907, 2389, 80854, 106, 68940, 757, 41911, 107730, 12830, 502, 91995, 136, 20697, 2967, 111, 101935, 28282, 140992, 15700, 5117, 12638, 14012, 418, 5759, 26859, 98, 9844, 26946, 26785, 4358 ]
[ 0.1890869140625, 0.254150390625, 0.02978515625, 0.1500244140625, 0.2349853515625, 0.05902099609375, 0.205078125, 0.220703125, 0.161376953125, 0.1824951171875, 0.0911865234375, 0.1209716796875, 0.1702880859375, 0.102294921875, 0.1724853515625, 0.153564453125, 0.146240234375, 0.19262...
embed
23096740_c0
23096740
prolog
0
Title: Prolog predicates not working Problem title: Prolog predicates not working Tags: prolog, list Problem: Prolog predicates not working I am completely confused with Prolog. I have two simple predicates that I am trying to figure out, but can't seem to get them right. First I am trying to figure out a variation of ...
Prolog predicates not working Prolog predicates not working prolog list Prolog Prolog predicates not working I am completely confused with Prolog. I have two simple predicates that I am trying to figure out, but can't seem to get them right. First I am trying to figure out a variation of a delete predicate where I need...
[ -0.0028076171875, 0.01348876953125, 0.00555419921875, -0.0033721923828125, -0.0006561279296875, 0.021728515625, 0.000812530517578125, 0.0017547607421875, 0.005279541015625, 0.015625, 0.01513671875, 0.008056640625, -0.0164794921875, 0.0064697265625, 0.01904296875, 0.00970458984375, 0....
[ 1250, 4867, 1653, 2063, 1636, 959, 20697, 502, 5303, 55681, 5281, 6626, 8781, 26366, 7108, 143834, 154109, 756, 74918, 12830, 32036, 1957, 105950, 5442, 37842, 67, 51776, 116, 91995, 201, 40, 5701, 112892, 1614, 6562, 18499, 69407, 4488 ]
[ 0.1973876953125, 0.244384765625, 0.20361328125, 0.221923828125, 0.077392578125, 0.10504150390625, 0.1846923828125, 0.1585693359375, 0.1644287109375, 0.051422119140625, 0.0207672119140625, 0.0372314453125, 0.038360595703125, 0.050323486328125, 0.041107177734375, 0.1331787109375, 0.191...
embed
19924706_c0
19924706
prolog
0
Title: 1st program, return true if List 1 has more elements than List 2 Problem title: 1st program, return true if List 1 has more elements than List 2 Tags: prolog Problem: 1st program, return true if List 1 has more elements than List 2 This is my first program in prolog, I've been reading about it and just don't see...
1st program, return true if List 1 has more elements than List 2 1st program, return true if List 1 has more elements than List 2 prolog List ERROR Arguments 1st program, return true if List 1 has more elements than List 2 This is my first program in prolog, I've been reading about it and just don't seem to grasp a cou...
[ 0.01409912109375, 0.01165771484375, 0.008056640625, 0.0157470703125, -0.012939453125, -0.00946044921875, 0.00433349609375, 0.006134033203125, 0.006622314453125, -0.005035400390625, 0.007049560546875, 0.0045166015625, -0.005828857421875, -0.0172119140625, 0.034912109375, -0.010498046875...
[ 106, 271, 1528, 30646, 29568, 2174, 32036, 1556, 1286, 80854, 3501, 116, 502, 4867, 151206, 24638, 112140, 5117, 27689, 56458, 23755, 31577, 33022, 7477, 18770, 5646, 6626, 5303, 4734, 8781, 103391, 5962, 33816, 81409, 11782, 13267, 46132, 83...
[ 0.102783203125, 0.14306640625, 0.1920166015625, 0.186767578125, 0.195556640625, 0.1080322265625, 0.1878662109375, 0.0684814453125, 0.182373046875, 0.19873046875, 0.0902099609375, 0.1231689453125, 0.142578125, 0.177490234375, 0.103759765625, 0.070068359375, 0.251953125, 0.1215820312...
embed
71097035_c0
71097035
prolog
0
Title: SWI-Prolog stand alone executable Problem title: SWI-Prolog stand alone executable Tags: swi-prolog, prolog, exe Problem: SWI-Prolog stand alone executable I am trying to create an windows SWI-Prolog executable. I have created the desired executable using this command line argument. --goal=main --stand_alone=tru...
SWI-Prolog stand alone executable SWI-Prolog stand alone executable swi-prolog prolog exe SWI-Prolog use_foreign_library FileSpec ensure_shlib shlib:load_foreign_library SWI-Prolog stand alone executable I am trying to create an windows SWI-Prolog executable. I have created the desired executable using this command lin...
[ 0.0263671875, 0.00125885009765625, -0.01116943359375, 0.01953125, -0.037109375, 0.0205078125, 0.0015106201171875, 0.00933837890625, 0.00099945068359375, -0.06396484375, 0.0091552734375, 0.0169677734375, -0.01239013671875, 0.01177978515625, 0.0206298828125, -0.0152587890625, -0.001647...
[ 159, 38969, 9, 10752, 4867, 9157, 75447, 71924, 2886, 91, 2452, 3454, 502, 97733, 4527, 2472, 38529, 150, 2844, 42724, 47107, 63284, 1495, 5612, 7547, 63033, 31577, 28282, 54825, 75935, 104851, 903, 75101, 13315, 10750, 519, 24931, 5165, 51...
[ 0.1043701171875, 0.2646484375, 0.0592041015625, 0.1954345703125, 0.243408203125, 0.1202392578125, 0.1968994140625, 0.187255859375, 0.149658203125, 0.01788330078125, 0.252685546875, 0.1602783203125, 0.15625, 0.1904296875, 0.10302734375, 0.08160400390625, 0.1795654296875, 0.134643554...
embed
30014601_c0
30014601
prolog
0
Title: How to run chrome_prolog with XAMPP? Problem title: How to run chrome_prolog with XAMPP? Tags: inference-engine, php, prolog, symfony Problem: How to run chrome_prolog with XAMPP? I am a student in Computer Science, and I am learning about logic programming with PHP . I have found an interesting Prolog interpret...
How to run chrome_prolog with XAMPP? How to run chrome_prolog with XAMPP? inference-engine php prolog symfony How chrome_prolog XAMPP PrologTest.php Fatal PHPUnit_Framework_TestCase How to run chrome_prolog with XAMPP? I am a student in Computer Science, and I am learning about logic programming with PHP . I have found...
[ 0.0205078125, -0.000545501708984375, 0.0159912109375, 0.0177001953125, -0.0013275146484375, 0.0174560546875, -0.0023040771484375, -0.01611328125, -0.003631591796875, -0.04931640625, 0.01275634765625, -0.0019073486328125, -0.01336669921875, 0.001495361328125, 0.0242919921875, 0.00306701...
[ 11249, 47, 11675, 17656, 13450, 3454, 4867, 678, 1193, 81218, 683, 53498, 6620, 128897, 3958, 502, 39, 11203, 1250, 111337, 3036, 1803, 47302, 85600, 108386, 18244, 441, 454, 9836, 23, 28745, 52080, 62775, 49041, 29481, 56, 32102, 7761, 181...
[ 0.08404541015625, 0.033721923828125, 0.1785888671875, 0.166015625, 0.196533203125, 0.189453125, 0.248046875, 0.1688232421875, 0.1055908203125, 0.221923828125, 0.189453125, 0.1588134765625, 0.09564208984375, 0.117919921875, 0.1807861328125, 0.1468505859375, 0.042022705078125, 0.1220...
embed
61054545_c0
61054545
prolog
0
Title: Prolog gives ERROR: Undefined procedure: utterance/1 (DWIM could not correct goal) Problem title: Prolog gives ERROR: Undefined procedure: utterance/1 (DWIM could not correct goal) Tags: prolog Problem: Prolog gives ERROR: Undefined procedure: utterance/1 (DWIM could not correct goal) utterance(X) :- sentence(X,...
Prolog gives ERROR: Undefined procedure: utterance/1 (DWIM could not correct goal) Prolog gives ERROR: Undefined procedure: utterance/1 (DWIM could not correct goal) prolog Prolog ERROR Undefined DWIM Prolog gives ERROR: Undefined procedure: utterance/1 (DWIM could not correct goal) utterance(X) :- sentence(X, [ ]). se...
[ 0.0030517578125, 0.0130615234375, -0.0006256103515625, 0.02001953125, -0.01129150390625, 0.0201416015625, 0.009033203125, -0.0030517578125, 0.0048828125, -0.031005859375, -0.003173828125, 0.0028533935546875, -0.0093994140625, 0.01470947265625, 0.0252685546875, 0.00982666015625, 0.012...
[ 1250, 4867, 76199, 151206, 24638, 79912, 5983, 50491, 75, 3055, 7154, 11583, 397, 38969, 594, 5809, 959, 26785, 69236, 502, 30439, 17199, 1542, 15772, 149357, 378, 126597, 18878, 110, 309, 179665, 49756, 103332, 42792, 1052, 6, 89329, 5582, ...
[ 0.2012939453125, 0.259521484375, 0.053314208984375, 0.203857421875, 0.1444091796875, 0.1600341796875, 0.2420654296875, 0.2291259765625, 0.126708984375, 0.2320556640625, 0.2105712890625, 0.206787109375, 0.07958984375, 0.1795654296875, 0.220947265625, 0.1287841796875, 0.1436767578125, ...
embed
30545625_c0
30545625
prolog
0
Title: Prolog: &quot;\+ memberchk&quot; inside &quot;setof&quot; Problem title: Prolog: &quot;\+ memberchk&quot; inside &quot;setof&quot; Tags: prolog, prolog-setof Problem: Prolog: "\+ memberchk" inside "setof" I have some Prolog code of the following form: setof(Element,some_function(P,Element,C),Elements) such that ...
Prolog: &quot;\+ memberchk&quot; inside &quot;setof&quot; Prolog: &quot;\+ memberchk&quot; inside &quot;setof&quot; prolog prolog-setof Prolog Element some_function Elements List Prolog: "\+ memberchk" inside "setof" I have some Prolog code of the following form: such that all instantiations of term Element in solution...
[ 0.01397705078125, 0.0012664794921875, 0.037841796875, -0.009521484375, -0.023193359375, 0.0004405975341796875, -0.0133056640625, -0.00011110305786132812, -0.003662109375, -0.01507568359375, 0.013427734375, 0.0001201629638671875, 0.00439453125, -0.0035552978515625, 0.01007080078125, -0....
[ 1250, 4867, 1328, 32786, 206, 92, 46132, 3509, 4390, 502, 48325, 137175, 32036, 18151, 3173, 756, 34648, 14, 21094, 13579, 29806, 3060, 43799, 5303, 52295, 2499, 4734, 49814, 47, 2174, 18, 32316, 4488, 80854, 959, 2967, 5423, 35782, 21771, ...
[ 0.1435546875, 0.215087890625, 0.125244140625, 0.21875, 0.147216796875, 0.163330078125, 0.12158203125, 0.12451171875, 0.2421875, 0.1025390625, 0.21044921875, 0.1597900390625, 0.1307373046875, 0.128173828125, 0.0148468017578125, 0.05718994140625, 0.1103515625, 0.105224609375, 0.048...
embed
10803784_c0
10803784
prolog
0
Title: Check a sentence for right syntax and get the semantic Problem title: Check a sentence for right syntax and get the semantic Tags: prolog, dcg Problem: Check a sentence for right syntax and get the semantic i'm new to prolog and I try to program a answering machine. At first I like to figure out for what was ask...
Check a sentence for right syntax and get the semantic Check a sentence for right syntax and get the semantic prolog dcg Check What ERROR Undefined However Check a sentence for right syntax and get the semantic i'm new to prolog and I try to program a answering machine. At first I like to figure out for what was asked,...
[ -0.0047607421875, 0.0023651123046875, -0.001861572265625, 0.02197265625, -0.0064697265625, 0.0289306640625, -0.00555419921875, 0.009521484375, -0.00494384765625, -0.037841796875, 0.0107421875, -0.0069580078125, -0.0218505859375, -0.007080078125, 0.01165771484375, 0.007720947265625, 0...
[ 38679, 149357, 100, 7108, 6002, 86531, 2046, 484, 109109, 10, 502, 4867, 104, 238, 177, 151206, 24638, 79912, 5983, 1528, 35166, 214, 36279, 37170, 12765, 26785, 18499, 4568, 6626, 10750, 77336, 5303, 58169, 27781, 42712 ]
[ 0.1627197265625, 0.1783447265625, 0.081787109375, 0.1920166015625, 0.1102294921875, 0.1978759765625, 0.0709228515625, 0.1016845703125, 0.180419921875, 0.005645751953125, 0.1162109375, 0.20751953125, 0.0258941650390625, 0.05084228515625, 0.13525390625, 0.1285400390625, 0.132568359375,...
embed
23722600_c0
23722600
prolog
0
Title: Prolog unifying two lists Problem title: Prolog unifying two lists Tags: prolog Problem: Prolog unifying two lists Alright, so I was trying to unify this two lists: [2] and [1,_,3] giving an answer of [1,2,3] . My code is below: unify([],[],_). unify(List1, [Head|Rest], List2) :- member(List1,Head),!, unify([X|_...
Prolog unifying two lists Prolog unifying two lists prolog Prolog List1 Head Rest List2 Call _G512 _G520 Redo _G602 _G607 _G608 Fail Prolog unifying two lists Alright, so I was trying to unify this two lists: [2] and [1,_,3] giving an answer of [1,2,3] . My code is below: when i put ?-unify([2],[1,_,3],L) it gives me f...
[ 0.0155029296875, 0.01806640625, 0.0150146484375, -0.0048828125, 0.0017547607421875, 0.00677490234375, -0.0224609375, 0.01300048828125, 0.01806640625, -0.0072021484375, 0.01318359375, 0.00787353515625, 0.004364013671875, -0.00147247314453125, 0.005096435546875, 0.0037384033203125, 0.0...
[ 1250, 4867, 51, 151138, 6626, 5303, 502, 32036, 44816, 49756, 304, 26265, 758, 1530, 143886, 6096, 31, 4598, 197742, 170285, 190355, 54969, 31577, 40383, 33579, 68252, 96386, 35166, 155761, 18151, 35064, 3884, 705, 309, 39556, 418, 866, 163, ...
[ 0.1585693359375, 0.22119140625, 0.17236328125, 0.12646484375, 0.12060546875, 0.23193359375, 0.126953125, 0.1614990234375, 0.13037109375, 0.1436767578125, 0.035369873046875, 0.1273193359375, 0.043609619140625, 0.08935546875, 0.127685546875, 0.038970947265625, 0.08984375, 0.067504882...
embed
2841664_c0
2841664
prolog
0
Title: Problem when reading backslash in Prolog Problem title: Problem when reading backslash in Prolog Tags: escaping, prolog Problem: Problem when reading backslash in Prolog I'm writing a lexer in Prolog which will be used as a part of functional language interpreter. Language spec allows expressions like for exampl...
Problem when reading backslash in Prolog Problem when reading backslash in Prolog escaping prolog Problem Prolog File Stream read_stream_to_codes Codes Problem when reading backslash in Prolog I'm writing a lexer in Prolog which will be used as a part of functional language interpreter. Language spec allows expressions...
[ 0.0286865234375, 0.01226806640625, 0.00640869140625, -0.00634765625, -0.015625, -0.002288818359375, 0.01220703125, 0.0225830078125, -0.00469970703125, -0.0361328125, 0.004669189453125, 0.0003223419189453125, -0.0306396484375, -0.01129150390625, 0.0108642578125, -0.013671875, -0.00168...
[ 15649, 16454, 4420, 7, 5544, 1250, 4867, 38940, 502, 42724, 115061, 12301, 86429, 188, 40899, 28864, 3229, 23, 32562, 95, 34058, 123309, 46876, 29481, 83658, 48502, 114864, 125195, 2633, 41872, 425, 1022, 997, 116, 74, 47, 74918, 107730, 65...
[ 0.1051025390625, 0.1920166015625, 0.1832275390625, 0.05780029296875, 0.232177734375, 0.1539306640625, 0.24951171875, 0.1224365234375, 0.090576171875, 0.044342041015625, 0.1143798828125, 0.1192626953125, 0.1182861328125, 0.05572509765625, 0.1258544921875, 0.1370849609375, 0.0075378417...
embed
36322624_c0
36322624
prolog
0
Title: Get all solutions to a query, that has no alternatives when queried Problem title: Get all solutions to a query, that has no alternatives when queried Tags: random, prolog Problem: Get all solutions to a query, that has no alternatives when queried This may seem like an odd question that could simply be answered...
Get all solutions to a query, that has no alternatives when queried Get all solutions to a query, that has no alternatives when queried random prolog Get ran_num Get all solutions to a query, that has no alternatives when queried This may seem like an odd question that could simply be answered by the findall/3 predicat...
[ -0.0022125244140625, 0.01202392578125, 0.0023651123046875, -0.001190185546875, -0.0230712890625, 0.015869140625, -0.0096435546875, -0.0030517578125, 0.016357421875, -0.062255859375, -0.0020294189453125, 0.0022735595703125, -0.01080322265625, 0.01007080078125, 0.00885009765625, 0.024658...
[ 20779, 756, 51347, 47, 41, 1294, 450, 1556, 110, 30700, 7, 3229, 46572, 96759, 502, 4867, 13028, 2606, 48903, 70270, 194663, 7413, 5584, 18113, 1653, 2063, 67, 2967, 53894, 765, 11583, 30646, 43606, 101935, 959, 3714, 5809, 4734, 190, 116...
[ 0.11474609375, 0.17822265625, 0.2232666015625, 0.0992431640625, 0.1279296875, 0.175537109375, 0.012542724609375, 0.05859375, 0.097412109375, 0.1893310546875, 0.06536865234375, 0.04229736328125, 0.138427734375, 0.1656494140625, 0.132080078125, 0.202880859375, 0.1331787109375, 0.2197...
embed
74763203_c0
74763203
prolog
0
Title: Extract string from csv file after reading in Prolog Problem title: Extract string from csv file after reading in Prolog Tags: csv, swi-prolog, prolog Problem: Extract string from csv file after reading in Prolog Good evening, I am trying to read a csv file in Prolog containing all the countries in the world. Ex...
Extract string from csv file after reading in Prolog Extract string from csv file after reading in Prolog csv swi-prolog prolog csv Extract Prolog read_KB csv_read_file countries.csv Terms Afghanistan Albania Algeria Andorra Angola Antigua Barbuda Argentina Armenia Strings Users Desktop country.csv Extract string from ...
[ 0.0205078125, 0.00112152099609375, 0.0164794921875, 0.024169921875, -0.00958251953125, 0.00106048583984375, 0.000865936279296875, 0.02392578125, -0.006744384765625, 0.0034027099609375, 0.015625, -0.032958984375, -0.03515625, -0.01409912109375, -0.005767822265625, -0.003570556640625, ...
[ 31501, 15390, 79315, 1295, 20763, 334, 11435, 7103, 16454, 23, 1250, 4867, 2452, 3454, 502, 12301, 39709, 39116, 29822, 76726, 4439, 165504, 61408, 153549, 884, 134431, 124180, 202468, 8332, 16407, 5331, 34170, 135665, 23351, 5180, 53400, 14142...
[ 0.1978759765625, 0.041778564453125, 0.220703125, 0.0806884765625, 0.122802734375, 0.21826171875, 0.1353759765625, 0.0931396484375, 0.15966796875, 0.000244140625, 0.15576171875, 0.228271484375, 0.1282958984375, 0.090576171875, 0.0927734375, 0.1328125, 0.11865234375, 0.10308837890625...
embed
37648741_c0
37648741
prolog
0
Title: Prolog: lexicographic comparison and split a list Problem title: Prolog: lexicographic comparison and split a list Tags: prolog Problem: Prolog: lexicographic comparison and split a list Given atom x, I am trying to split a list into one with atoms smaller than x and one with atoms equal to or greater than x. Fo...
Prolog: lexicographic comparison and split a list Prolog: lexicographic comparison and split a list prolog Prolog AtomSmall AtomBig atom_codes Small Big Prolog: lexicographic comparison and split a list Given atom x, I am trying to split a list into one with atoms smaller than x and one with atoms equal to or greater t...
[ 0.00390625, 0.00665283203125, 0.0001773834228515625, 0.015625, -0.029052734375, 0.01324462890625, 0.0098876953125, 0.004119873046875, 0.003082275390625, 0.02880859375, 0.0101318359375, 0.006011962890625, 0.002685546875, -0.01507568359375, 0.019775390625, -0.0037689208984375, 0.007812...
[ 1250, 4867, 12, 95, 73140, 48461, 225490, 65450, 5303, 502, 69728, 69070, 129933, 34627, 40899, 105508, 14195, 136, 1022, 31577, 47, 10, 3934, 1632, 678, 164917, 3501, 105950, 707, 117396, 27781, 17336, 37842, 2060, 2046, 23755, 18151, 96853,...
[ 0.14501953125, 0.2320556640625, 0.0169677734375, 0.055999755859375, 0.1300048828125, 0.149658203125, 0.1937255859375, 0.202392578125, 0.1982421875, 0.09637451171875, 0.1668701171875, 0.1778564453125, 0.169189453125, 0.2064208984375, 0.1845703125, 0.1416015625, 0.1231689453125, 0.01...
embed
18799616_c0
18799616
prolog
0
Title: Probabilistic Clause Choice Problem title: Probabilistic Clause Choice Tags: prolog, random Problem: Probabilistic Clause Choice Its been a long time since I used Prolog in earnest, but I can't find any reference to this by googling, or in the texts I have. This may be a failure of terminology, so apologies if I...
Probabilistic Clause Choice Probabilistic Clause Choice prolog random Probabilistic Clause Choice Probabilistic Clause Choice Its been a long time since I used Prolog in earnest, but I can't find any reference to this by googling, or in the texts I have. This may be a failure of terminology, so apologies if I massacre ...
[ 0.01025390625, 0.019287109375, 0.0177001953125, 0.0023345947265625, -0.02392578125, 0.01422119140625, -0.0118408203125, -0.01544189453125, 0.00872802734375, -0.044921875, -0.0019073486328125, 0.007354736328125, -0.01025390625, -0.01312255859375, 0.014892578125, 0.0247802734375, 0.000...
[ 152990, 48242, 100700, 13, 181948, 502, 4867, 96759, 2809, 4989, 1733, 16792, 11814, 1250, 85168, 831, 18, 7413, 2499, 91067, 47, 903, 1663, 7986, 137578, 18614, 25443, 1747, 18709, 6627, 7612, 765, 1528, 5809, 48716, 51347, 2685, 8781, 883...
[ 0.18603515625, 0.1103515625, 0.170166015625, 0.048736572265625, 0.2059326171875, 0.17822265625, 0.2568359375, 0.270751953125, 0.02880859375, 0.053924560546875, 0.06494140625, 0.03228759765625, 0.0869140625, 0.1839599609375, 0.002532958984375, 0.0472412109375, 0.03216552734375, 0.05...
embed
59544058_c0
59544058
prolog
0
Title: Prolog: Determine answers to Multiple Choice Question test where students&#x27; answers and grades are known Problem title: Prolog: Determine answers to Multiple Choice Question test where students&#x27; answers and grades are known Tags: prolog Problem: Prolog: Determine answers to Multiple Choice Question test...
Prolog: Determine answers to Multiple Choice Question test where students&#x27; answers and grades are known Prolog: Determine answers to Multiple Choice Question test where students&#x27; answers and grades are known prolog Prolog Determine Multiple Choice Question Prolog: Determine answers to Multiple Choice Question...
[ 0.014892578125, 0.01214599609375, 0.015869140625, 0.02392578125, -0.0029144287109375, -0.000316619873046875, -0.0174560546875, 0.00179290771484375, 0.003631591796875, -0.0031280517578125, -0.01031494140625, 0.0194091796875, -0.005218505859375, 0.0130615234375, -0.00982666015625, 0.0089...
[ 1250, 4867, 12, 262, 30524, 13, 35166, 7, 47, 19335, 8705, 181948, 68185, 3034, 7440, 25921, 3768, 136, 44000, 621, 51529, 502, 2967, 765, 86869, 831, 48903, 7413, 72134, 6275, 38485, 2737, 12638, 9655, 1556, 201, 44126, 275, 4734, 1632, ...
[ 0.1702880859375, 0.239990234375, 0.017669677734375, 0.0927734375, 0.188232421875, 0.0390625, 0.1845703125, 0.04962158203125, 0.054473876953125, 0.15234375, 0.1700439453125, 0.221923828125, 0.1634521484375, 0.19482421875, 0.10125732421875, 0.2171630859375, 0.09228515625, 0.087524414...
embed
7942464_c1
7942464
prolog
1
%% movie(title , star, genre, gross) movie(battle_los_angeles, aaron_eckhart, action,13500000). movie(rango, johnny_depp, animation, 51100000). movie(red_riding_hood, amanda_seyfried, fantasy,5300000). movie(the_adjustment_bureau, matt_damon, sci_fi,30400000). movie(mars_needs_moms, seth_green, animation,1700000). mov...
%% movie(title , star, genre, gross) movie(battle_los_angeles, aaron_eckhart, action,13500000). movie(rango, johnny_depp, animation, 51100000). movie(red_riding_hood, amanda_seyfried, fantasy,5300000). movie(the_adjustment_bureau, matt_damon, sci_fi,30400000). movie(mars_needs_moms, seth_green, animation,1700000). mov...
[ 0.00860595703125, 0.0126953125, -0.020263671875, 0.0003185272216796875, 0.00156402587890625, 0.022705078125, -0.0022125244140625, 0.0155029296875, -0.0048828125, 0.003875732421875, -0.0025482177734375, -0.00726318359375, 0.00015354156494140625, -0.0103759765625, 0.00182342529296875, 0....
[ 1745, 3949, 14277, 5440, 6057, 30773, 55215, 402, 46401, 2400, 64859, 90, 36901, 60113, 87590, 22631, 88622, 181155, 5445, 31, 299, 112, 6366, 114205, 190, 2822, 416, 6238, 44462, 31468, 31947, 84285, 115135, 14226, 2347, 712, 20314, 94257, ...
[ 0.052337646484375, 0.080322265625, 0.182373046875, 0.1846923828125, 0.1641845703125, 0.2322998046875, 0.25439453125, 0.062469482421875, 0.146240234375, 0.1199951171875, 0.172607421875, 0.07220458984375, 0.1158447265625, 0.0667724609375, 0.2154541015625, 0.1473388671875, 0.14501953125...
embed
70524302_c0
70524302
prolog
0
Title: Prolog rule which replaces with 0 every negative number from a list Problem title: Prolog rule which replaces with 0 every negative number from a list Tags: prolog Problem: Prolog rule which replaces with 0 every negative number from a list I need to write a rule that replaces every negative number from a list w...
Prolog rule which replaces with 0 every negative number from a list Prolog rule which replaces with 0 every negative number from a list prolog a Prolog neg_to_0 nth1 Prolog rule which replaces with 0 every negative number from a list I need to write a rule that replaces every negative number from a list with 0. This is...
[ -0.01080322265625, 0.000934600830078125, -0.009521484375, 0.00823974609375, -0.00958251953125, 0.00177764892578125, 0.014892578125, 0.014404296875, 0.01104736328125, -0.00384521484375, 0.006866455078125, -0.01153564453125, -0.00122833251953125, -0.011962890625, 0.01129150390625, 0.0094...
[ 1250, 4867, 79986, 3129, 91995, 678, 757, 11907, 40907, 14012, 1295, 5303, 502, 108, 177, 188, 2389, 927, 418, 3871, 33022, 18151, 107, 23935, 51776, 12830, 27117, 30646, 3525, 7279, 7103, 142424, 7228, 32354, 189232, 5201, 2053, 4568, 720,...
[ 0.15771484375, 0.2362060546875, 0.208740234375, 0.022491455078125, 0.172119140625, 0.0810546875, 0.1983642578125, 0.145751953125, 0.26806640625, 0.179931640625, 0.1005859375, 0.18017578125, 0.1302490234375, 0.1204833984375, 0.14404296875, 0.147705078125, 0.144775390625, 0.132690429...
embed
64612628_c0
64612628
prolog
0
Title: Equivalence relation in prolog Problem title: Equivalence relation in prolog Tags: logic, purely-functional, functional-programming, prolog Problem: Equivalence relation in prolog I would like to implement a simple if and only if relation in my Prolog code. Here is a simple example of what I would like to have: ...
Equivalence relation in prolog Equivalence relation in prolog logic purely-functional functional-programming prolog Equivalence a_iff_b Equivalence relation in prolog I would like to implement a simple if and only if relation in my Prolog code. Here is a simple example of what I would like to have: You get the point—th...
[ -0.006805419921875, -0.000644683837890625, 0.0181884765625, 0.0208740234375, -0.0037384033203125, 0.00244140625, 0.0133056640625, -0.006134033203125, 0.01239013671875, -0.00909423828125, -0.005584716796875, 0.0242919921875, -0.0087890625, 0.005950927734375, 0.0277099609375, -0.01184082...
[ 145666, 1405, 6620, 41911, 23, 502, 4867, 62775, 137175, 123309, 28966, 10, 32920, 275, 1884, 29479, 8781, 2174, 136, 4734, 1250, 18151, 27781, 6275, 2347, 1653, 2063, 67, 5608, 29568, 5117, 10750, 83, 17932, 876, 2725, 12488, 15673, 10422,...
[ 0.11279296875, 0.1561279296875, 0.0595703125, 0.210693359375, 0.023223876953125, 0.180908203125, 0.244873046875, 0.115234375, 0.06353759765625, 0.10699462890625, 0.07208251953125, 0.083251953125, 0.1707763671875, 0.104248046875, 0.03369140625, 0.09368896484375, 0.110107421875, 0.20...
embed
48919392_c1
48919392
prolog
1
set of variables for each house. At the bottom, I defined predicates leftof and nextto in order to satisfy a some of the constraints of the problem. The code goes as follows: %who eats pie pie_eater(PieEater) :- puzzle(X), member(house(PieEater, _, _, _, pie), X). puzzle(Street) :- Street = [H1, H2, H3, H4, H5], %stre...
set of variables for each house. At the bottom, I defined predicates leftof and nextto in order to satisfy a some of the constraints of the problem. The code goes as follows: %who eats pie pie_eater(PieEater) :- puzzle(X), member(house(PieEater, _, _, _, pie), X). puzzle(Street) :- Street = [H1, H2, H3, H4, H5], %stre...
[ 0.007476806640625, 0.00274658203125, 0.0225830078125, 0.010498046875, 0.0059814453125, -0.000926971435546875, -0.03271484375, -0.00836181640625, 0.01116943359375, -0.0296630859375, -0.01611328125, -0.00186920166015625, 0.0208740234375, 0.0030670166015625, -0.015869140625, 0.01153564453...
[ 5423, 111, 77336, 7, 100, 12638, 18276, 5, 70, 103136, 87, 61924, 1653, 2063, 1636, 25737, 4390, 136, 11737, 188, 40407, 158, 2816, 4288, 2967, 581, 18151, 60899, 28960, 1745, 497, 28, 9821, 2158, 13, 46429, 111242, 647, 15772, 104192, ...
[ 0.1573486328125, 0.0386962890625, 0.28955078125, 0.07855224609375, 0.0194854736328125, 0.1190185546875, 0.1942138671875, 0.01861572265625, 0.0158233642578125, 0.1197509765625, 0.041290283203125, 0.1446533203125, 0.1630859375, 0.186767578125, 0.0938720703125, 0.1617431640625, 0.258056...
embed
24095068_c0
24095068
prolog
0
Title: Import csv file data to populate a Prolog knowledge base Problem title: Import csv file data to populate a Prolog knowledge base Tags: swi-prolog, prolog, csv Problem: Import csv file data to populate a Prolog knowledge base I have a csv file example.csv which contains two columns with header var1 and var2. I wa...
Import csv file data to populate a Prolog knowledge base Import csv file data to populate a Prolog knowledge base swi-prolog prolog csv Prolog example.csv import.pl use_module csv_read_file Data var1 var2 Import csv file data to populate a Prolog knowledge base I have a csv file example.csv which contains two columns w...
[ 0.025390625, -0.01287841796875, 0.00836181640625, 0.0216064453125, -0.003631591796875, 0.0196533203125, 0.0004749298095703125, -0.000759124755859375, 0.004730224609375, -0.0277099609375, -0.006805419921875, -0.0218505859375, -0.020751953125, 0.0031890869140625, 0.0135498046875, -0.0046...
[ 92966, 20763, 334, 11435, 2053, 27623, 1250, 4867, 51359, 3647, 2452, 3454, 502, 27781, 4439, 24927, 2424, 4527, 83279, 39116, 29822, 11809, 285, 304, 6626, 3365, 316, 10336, 5442, 3444, 67, 61475, 201505, 119140, 15824, 12638, 15555, 191607,...
[ 0.2137451171875, 0.10791015625, 0.245849609375, 0.162841796875, 0.1309814453125, 0.13623046875, 0.14599609375, 0.2213134765625, 0.130615234375, 0.1669921875, 0.1376953125, 0.11083984375, 0.08660888671875, 0.19970703125, 0.09564208984375, 0.245361328125, 0.1287841796875, 0.001800537...
embed