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
37367210_c0
37367210
prolog
0
Title: Make list flat Prolog Problem title: Make list flat Prolog Tags: prolog Problem: Make list flat Prolog I am trying to do: Flatten a nested list structure. Transform a list, possibly holding lists as elements into a 'flat' list by replacing each list with its elements (recursively). Example: ?- my_flatten([a, [b,...
Make list flat Prolog Make list flat Prolog prolog Make Prolog APP is_list Make list flat Prolog I am trying to do: I suppose that the problem is append , especially I still have a problem with unification :) Please explain in terms of unification.
[ -0.01025390625, 0.0240478515625, 0.024658203125, 0.000881195068359375, -0.0037078857421875, 0.00173187255859375, 0.00830078125, -0.0211181640625, 0.031005859375, -0.022216796875, -0.00016021728515625, -0.0120849609375, 0.00070953369140625, 0.0264892578125, 0.00933837890625, -0.01818847...
[ 26176, 5303, 49878, 1250, 4867, 502, 66440, 83, 6562, 31577, 139124, 2967, 114689, 71, 41866, 7464, 51, 41274, 73342, 69407 ]
[ 0.1356201171875, 0.236083984375, 0.280029296875, 0.1473388671875, 0.2315673828125, 0.094970703125, 0.218994140625, 0.09747314453125, 0.230712890625, 0.09039306640625, 0.04962158203125, 0.1444091796875, 0.1622314453125, 0.1419677734375, 0.01026153564453125, 0.046722412109375, 0.138305...
embed
61235078_c0
61235078
prolog
0
Title: prolog non oriented graph, how find the number of persons between two persons? Problem title: prolog non oriented graph, how find the number of persons between two persons? Tags: prolog, graph-theory Problem: prolog non oriented graph, how find the number of persons between two persons? I have to find the number...
prolog non oriented graph, how find the number of persons between two persons? prolog non oriented graph, how find the number of persons between two persons? prolog graph-theory Index1 Index2 IndexZ prolog non oriented graph, how find the number of persons between two persons? I have to find the number of person betwee...
[ -0.0025177001953125, 0.009765625, -0.007476806640625, 0.03662109375, -0.00970458984375, 0.0106201171875, -0.0140380859375, 0.0098876953125, 0.00958251953125, -0.0712890625, -0.00836181640625, -0.031982421875, -0.01312255859375, 0.02392578125, 0.020263671875, 0.005828857421875, 0.0358...
[ 502, 4867, 351, 23509, 297, 41382, 3642, 7413, 14012, 3445, 7, 17721, 6626, 2347, 31471, 1511, 157, 1674, 678, 4734, 1632, 32354, 214493, 28219, 54, 100, 49133, 6528 ]
[ 0.1533203125, 0.1961669921875, 0.190673828125, 0.185546875, 0.08251953125, 0.208740234375, 0.07275390625, 0.1429443359375, 0.1875, 0.177490234375, 0.0648193359375, 0.187744140625, 0.155517578125, 0.0150909423828125, 0.1314697265625, 0.0845947265625, 0.07513427734375, 0.072509765625...
embed
74450707_c0
74450707
prolog
0
Title: Prolog error: No permission to modify static procedure `(=)/2' Problem title: Prolog error: No permission to modify static procedure `(=)/2' Tags: prolog Problem: Prolog error: No permission to modify static procedure `(=)/2' I have just started with prolog (don't ask me why), and I have written the fo...
Prolog error: No permission to modify static procedure `(=)/2' Prolog error: No permission to modify static procedure `(=)/2' prolog Prolog _Tail _Head Tail Prolog error: No permission to modify static procedure `(=)/2' I have just started with prolog (don't ask me why), and I have written the following simpl...
[ 0.00726318359375, 0.0283203125, 0.0289306640625, -0.01708984375, -0.00897216796875, 0.0024261474609375, -0.0157470703125, 0.0031280517578125, 0.0032806396484375, -0.040771484375, 0.00994873046875, -0.0030364990234375, 0.005523681640625, 0.017578125, 0.0218505859375, -0.01031494140625, ...
[ 1250, 4867, 18499, 438, 168081, 2811, 40383, 201939, 50491, 1369, 12477, 3768, 502, 9874, 379, 13025, 712, 1218, 26859, 59121, 8781, 1528, 9790, 25632, 41, 61595, 79909, 4527, 9655, 16188, 272, 54811, 10932, 9077, 31089, 26950, 13162 ]
[ 0.2012939453125, 0.270263671875, 0.20556640625, 0.110595703125, 0.2142333984375, 0.137939453125, 0.09796142578125, 0.186279296875, 0.1787109375, 0.14208984375, 0.2310791015625, 0.1234130859375, 0.1717529296875, 0.11474609375, 0.10076904296875, 0.08197021484375, 0.07574462890625, 0....
embed
70375152_c0
70375152
prolog
0
Title: why do I get a "undefined subroutine" when I execute in prolog? Problem title: why do I get a "undefined subroutine" when I execute in prolog? Tags: prolog Problem: why do I get a "undefined subroutine" when I execute in prolog? I'm stating to learn prolog and I get those prolog errors can so...
why do I get a "undefined subroutine" when I execute in prolog? why do I get a "undefined subroutine" when I execute in prolog? prolog Nanette Rakchaud Julie Nouvlahou Pyrenees Hans-Hubert Worm Eric Hochaud why do I get a "undefined subroutine" when I execute in prolog? I'm stating to learn prolog a...
[ 0.033935546875, 0.008056640625, 0.004302978515625, 0.0096435546875, -0.01275634765625, 0.00921630859375, 0.000873565673828125, 0.0162353515625, 0.016845703125, -0.035400390625, -0.00469970703125, -0.0224609375, -0.015625, 0.000797271728515625, 0.00579833984375, 0.000640869140625, 0.0...
[ 15400, 2046, 59437, 5983, 1614, 14179, 10325, 71924, 502, 4867, 13, 23, 60765, 64672, 32019, 118846, 1674, 13254, 30698, 18499, 73342, 22936, 79912, 297, 24931, 39284, 26865, 9198, 10840, 2424 ]
[ 0.0780029296875, 0.029052734375, 0.07916259765625, 0.1771240234375, 0.191162109375, 0.15869140625, 0.1844482421875, 0.1702880859375, 0.1541748046875, 0.218017578125, 0.0176544189453125, 0.0253448486328125, 0.08642578125, 0.03985595703125, 0.009246826171875, 0.075439453125, 0.01689147...
embed
18337235_c0
18337235
prolog
0
Title: Can you write between/3 in pure prolog? Problem title: Can you write between/3 in pure prolog? Tags: prolog, backtracking Problem: Can you write between/3 in pure prolog? I've been trying to understand how to produce a series of values from a Prolog predicate on backtracking. The builtin predicate between/3 will...
Can you write between/3 in pure prolog? Can you write between/3 in pure prolog? prolog backtracking Can Can you write between/3 in pure prolog? I've been trying to understand how to produce a series of values from a Prolog predicate on backtracking. The builtin predicate between/3 will generate all the integers in a ra...
[ -0.00909423828125, 0.0250244140625, 0.01446533203125, -0.011474609375, -0.0184326171875, 0.017333984375, 0.00087738037109375, -0.00038909912109375, 0.0096435546875, -0.03271484375, -0.006317138671875, 0.00689697265625, -0.0115966796875, 0.000614166259765625, 0.01953125, 0.01513671875, ...
[ 4171, 33022, 17721, 18113, 23, 34166, 502, 4867, 4420, 125728, 398, 27489, 36549, 142424, 1250, 1653, 2063, 88303, 73, 67, 139392, 756, 892, 26255, 37457, 1632, 1733, 214, 27781, 59121, 208124, 144573, 5426, 165132, 313, 32354, 88308, 141, ...
[ 0.0787353515625, 0.1806640625, 0.254150390625, 0.297119140625, 0.07275390625, 0.1759033203125, 0.1446533203125, 0.2010498046875, 0.1158447265625, 0.2012939453125, 0.00567626953125, 0.1220703125, 0.0045166015625, 0.1004638671875, 0.129638671875, 0.095703125, 0.1217041015625, 0.09289...
embed
29646869_c0
29646869
prolog
0
Title: Path in binary tree - Prolog Problem title: Path in binary tree - Prolog Tags: prolog, binary-tree Problem: Path in binary tree - Prolog I have a problem with this homework. I have to write code in prolog which will show me deepest way to the leaf of the tree. Tree is represented as: tree([ [ [],r,[[],u,[[],t,[]...
Path in binary tree - Prolog Path in binary tree - Prolog prolog binary-tree Path Prolog Path in binary tree - Prolog I have a problem with this homework. I have to write code in prolog which will show me deepest way to the leaf of the tree. Tree is represented as: Where is [ ] like nil and a is a root. It should have ...
[ 0.043212890625, 0.01153564453125, -0.0029296875, 0.0035247802734375, 0.006256103515625, 0.0206298828125, -0.0201416015625, -0.0240478515625, -0.005889892578125, -0.055419921875, -0.01708984375, -0.0166015625, -0.014892578125, 0.0206298828125, 0.02490234375, 0.00154876708984375, 0.006...
[ 108421, 23, 2394, 6635, 53201, 1250, 4867, 502, 62600, 2967, 5368, 18244, 33022, 18151, 7639, 53894, 525, 3917, 47, 95, 2407, 111, 101344, 83, 33636, 237, 78662, 378, 1884, 17324, 10, 74855, 5608, 903, 436, 139909, 2203, 11, 1690, 75, 8...
[ 0.231689453125, 0.06689453125, 0.1776123046875, 0.1285400390625, 0.231689453125, 0.1727294921875, 0.2310791015625, 0.13818359375, 0.2271728515625, 0.09033203125, 0.039459228515625, 0.1092529296875, 0.041961669921875, 0.1395263671875, 0.08642578125, 0.1494140625, 0.146484375, 0.1263...
embed
37778929_c0
37778929
prolog
0
Title: How to find the biggest digit in a number in Prolog? Problem title: How to find the biggest digit in a number in Prolog? Tags: prolog Problem: How to find the biggest digit in a number in Prolog? I have an easy task, but somehow I haven't solved it in over an hour. This recursion I am doing isn't working, I'm st...
How to find the biggest digit in a number in Prolog? How to find the biggest digit in a number in Prolog? prolog How Prolog How to find the biggest digit in a number in Prolog? I have an easy task, but somehow I haven't solved it in over an hour. This recursion I am doing isn't working, I'm stuck in an infinte loop. It...
[ -0.0145263671875, 0.02001953125, 0.00762939453125, 0.007476806640625, -0.0087890625, 0.029541015625, 0.002655029296875, 0.00909423828125, 0.00537109375, -0.0211181640625, 0.0010986328125, -0.0125732421875, -0.033447265625, -0.0228271484375, 0.0234375, -0.0198974609375, 0.003814697265...
[ 11249, 47, 7413, 70, 129058, 153939, 23, 14012, 1250, 4867, 502, 23468, 66211, 1284, 209303, 38246, 18, 86869, 645, 56816, 3293, 195625, 1830, 20594, 56112, 20697, 179933, 34128, 6191, 40956, 69101, 4568, 3789, 37629, 1632, 6183, 1884, 3714, ...
[ 0.07452392578125, 0.030670166015625, 0.123046875, 0.064453125, 0.2120361328125, 0.24560546875, 0.08209228515625, 0.1624755859375, 0.163818359375, 0.2335205078125, 0.0936279296875, 0.052642822265625, 0.085205078125, 0.000640869140625, 0.024871826171875, 0.08538818359375, 0.06787109375...
embed
68301400_c0
68301400
prolog
0
Title: Simplifying constraints in CLP puzzle Problem title: Simplifying constraints in CLP puzzle Tags: clpfd, prolog, zebra-puzzle Problem: Simplifying constraints in CLP puzzle At the local games evening, four lads were competing in the Scrabble and chess competitions. Liam beat Mark in chess, James came third and th...
Simplifying constraints in CLP puzzle Simplifying constraints in CLP puzzle clpfd prolog zebra-puzzle Simplifying CLP use_module all_different Simplifying constraints in CLP puzzle I feel that my solution is more clunky than needs to be: Is there a better way to express the constraints? Improved version after suggestio...
[ -0.0172119140625, -0.01275634765625, 0.0026702880859375, 0.015625, 0.00360107421875, -0.0064697265625, -0.016357421875, 0.01361083984375, 0.031494140625, -0.02880859375, -0.01611328125, -0.003692626953125, 0.0277099609375, 0.0262451171875, 0.00390625, 0.0089111328125, -0.009033203125...
[ 55331, 141, 151138, 158, 2816, 4288, 313, 37352, 104192, 23, 33139, 71, 502, 4867, 116232, 1766, 13894, 133, 4527, 83279, 756, 238778, 12319, 450, 29806, 83, 1286, 29786, 29188, 3501, 27117, 11522, 3917, 36510, 66187, 11389, 157666 ]
[ 0.131591796875, 0.126953125, 0.1318359375, 0.0887451171875, 0.1878662109375, 0.1405029296875, 0.0592041015625, 0.26123046875, 0.197021484375, 0.008819580078125, 0.02325439453125, 0.0643310546875, 0.0621337890625, 0.1575927734375, 0.1668701171875, 0.10595703125, 0.11376953125, 0.004...
embed
70018065_c0
70018065
prolog
0
Title: Find path in graph by backtracking using prolog Problem title: Find path in graph by backtracking using prolog Tags: prolog Problem: Find path in graph by backtracking using prolog I have the following graph: maniere(v11,h11). maniere(h11,v12). maniere(h11,h21). maniere(v12,v22). maniere(v22,h13). maniere(v22,h2...
Find path in graph by backtracking using prolog Find path in graph by backtracking using prolog prolog prolog Find v11 h11 v12 h21 v22 h13 h23 v21 h12 h22 v23 h33 v13 h32 Find path in graph by backtracking using prolog I have the following graph: The required output is: I'm having trouble when I don't format the output...
[ 0.004425048828125, 0.0277099609375, -0.0026397705078125, 0.007354736328125, -0.003448486328125, -0.00160980224609375, -0.01416015625, 0.00775146484375, 0.00174713134765625, -0.057373046875, 0.008544921875, 0.0146484375, -0.01190185546875, -0.0172119140625, 0.00970458984375, 0.013854980...
[ 26040, 60875, 23, 41382, 390, 4420, 125728, 214, 502, 4867, 17368, 81, 1662, 1096, 1530, 3117, 4015, 2681, 3742, 9185, 6460, 25632, 56065, 140992, 83, 19441, 63134, 3229, 2301, 18, 9384, 237, 50336 ]
[ 0.1876220703125, 0.272216796875, 0.071044921875, 0.2222900390625, 0.05804443359375, 0.179931640625, 0.239990234375, 0.057373046875, 0.1558837890625, 0.24853515625, 0.01885986328125, 0.08795166015625, 0.11865234375, 0.0316162109375, 0.0367431640625, 0.058074951171875, 0.05230712890625...
embed
4065388_c0
4065388
prolog
0
Title: Dynamic rule assertion in SWI-prolog Problem title: Dynamic rule assertion in SWI-prolog Tags: prolog, metaprogramming Problem: Dynamic rule assertion in SWI-prolog I am trying to add a rule dynamically to the knowledge base using SWI-prolog where the body of the rule is unknown beforehand. The desired rule look...
Dynamic rule assertion in SWI-prolog Dynamic rule assertion in SWI-prolog prolog metaprogramming Dynamic SWI-prolog Dynamic rule assertion in SWI-prolog I am trying to add a rule dynamically to the knowledge base using SWI-prolog where the body of the rule is unknown beforehand. The desired rule looks something like th...
[ 0.037109375, 0.0089111328125, 0.0111083984375, 0.0284423828125, -0.01397705078125, 0.0028228759765625, -0.0196533203125, 0.01953125, -0.00457763671875, -0.0242919921875, 0.01165771484375, -0.003082275390625, -0.01336669921875, -0.00860595703125, 0.0240478515625, -0.00121307373046875, ...
[ 73327, 21068, 79986, 10, 16865, 1363, 159, 38969, 3454, 4867, 502, 23550, 28966, 31577, 15190, 84079, 47, 51359, 3647, 14361, 51, 69723, 8108, 12336, 104851, 33342, 1884, 28723, 2806, 42856, 11341, 2967, 15824, 68872, 99, 11675, 6032, 14012, ...
[ 0.180419921875, 0.1044921875, 0.220703125, 0.04644775390625, 0.1966552734375, 0.0156402587890625, 0.05596923828125, 0.208251953125, 0.13037109375, 0.18359375, 0.1126708984375, 0.1104736328125, 0.1265869140625, 0.019256591796875, 0.1090087890625, 0.2044677734375, 0.000823974609375, ...
embed
36630790_c0
36630790
prolog
0
Title: Set Intersection predicate Prolog using not Problem title: Set Intersection predicate Prolog using not Tags: prolog Problem: Set Intersection predicate Prolog using not I am trying to build a simple predicate which get as inputs two lists and the results is a third one consisting of the intersection of the first...
Set Intersection predicate Prolog using not Set Intersection predicate Prolog using not prolog not Set Intersection Prolog Set Intersection predicate Prolog using not I am trying to build a simple predicate which get as inputs two lists and the results is a third one consisting of the intersection of the first two. I h...
[ -0.01348876953125, 0.013671875, 0.01361083984375, 0.0118408203125, -0.013671875, 0.0302734375, -0.0019378662109375, -0.0026397705078125, -0.0042724609375, -0.005950927734375, -0.000278472900390625, 0.0257568359375, -0.005615234375, -0.002777099609375, 0.0126953125, 0.019775390625, 0....
[ 19943, 5337, 7, 58994, 1653, 2063, 67, 1250, 4867, 17368, 959, 502, 31577, 45367, 8781, 107730, 6626, 5303, 50339, 50960, 58055, 1940, 62775, 289, 63805, 87, 26785, 20697, 30700, 150624, 15400, 30646, 7842, 9127, 11907, 1733 ]
[ 0.20751953125, 0.1572265625, 0.172119140625, 0.1378173828125, 0.178955078125, 0.207275390625, 0.091064453125, 0.135498046875, 0.1976318359375, 0.06396484375, 0.2401123046875, 0.1109619140625, 0.0261688232421875, 0.0926513671875, 0.0736083984375, 0.1165771484375, 0.043426513671875, ...
embed
21715777_c0
21715777
prolog
0
Title: SWI Prolog (swipl) shows all the variables I used, I only want one shown Problem title: SWI Prolog (swipl) shows all the variables I used, I only want one shown Tags: prolog Problem: SWI Prolog (swipl) shows all the variables I used, I only want one shown I'm running this code: findall(A, syllable(A), X), nth1(1...
SWI Prolog (swipl) shows all the variables I used, I only want one shown SWI Prolog (swipl) shows all the variables I used, I only want one shown prolog SWI Prolog nth1 SWI Prolog (swipl) shows all the variables I used, I only want one shown I'm running this code: syllable returns a valid syllable as a list of sounds. ...
[ 0.019287109375, 0.0018463134765625, -0.0037384033203125, 0.02392578125, -0.0179443359375, 0.0205078125, -0.00092315673828125, -0.0096435546875, 0.005523681640625, -0.031494140625, 0.012451171875, -0.0255126953125, 0.0125732421875, -0.0026702880859375, -0.0062255859375, 0.00579833984375...
[ 159, 38969, 1250, 4867, 2452, 2424, 45831, 756, 77336, 7, 11814, 4734, 3444, 1632, 127887, 502, 927, 418, 51042, 18151, 954, 1165, 2661, 30646, 35604, 237, 5303, 102678, 177, 3714, 805, 271, 7722, 335, 2203, 3431, 14, 254, 28412, 49119, ...
[ 0.031036376953125, 0.1976318359375, 0.1551513671875, 0.196044921875, 0.1512451171875, 0.1805419921875, 0.109130859375, 0.05523681640625, 0.20703125, 0.04498291015625, 0.114501953125, 0.086181640625, 0.0693359375, 0.10028076171875, 0.1768798828125, 0.138427734375, 0.11181640625, 0.1...
embed
39910950_c0
39910950
prolog
0
Title: SWI-Prolog: How to get unicode char from escaped string? Problem title: SWI-Prolog: How to get unicode char from escaped string? Tags: prolog, swi-prolog, unicode Problem: SWI-Prolog: How to get unicode char from escaped string? I have a problem, I've got an escaped string for example "\\u0026" and I need this t...
SWI-Prolog: How to get unicode char from escaped string? SWI-Prolog: How to get unicode char from escaped string? prolog swi-prolog unicode escaped SWI-Prolog How SWI-Prolog: How to get unicode char from escaped string? I have a problem, I've got an escaped string for example "\\u0026" and I need this to transform to u...
[ 0.00665283203125, 0.0322265625, 0.01513671875, 0.01123046875, -0.0164794921875, 0.0030670166015625, 0.016845703125, 0.0184326171875, -0.00543212890625, -0.0025634765625, -0.010009765625, -0.00787353515625, -0.0179443359375, 0.004302978515625, -0.01708984375, -0.00006246566772460938, ...
[ 159, 38969, 10752, 4867, 11249, 2046, 60347, 112, 21441, 1295, 144281, 71, 79315, 9, 47, 502, 2452, 3454, 2967, 27781, 13273, 7049, 4046, 3871, 27198, 41872, 141362, 2271, 4460, 86479, 33022, 294, 4358, 87388, 3642, 7, 177261, 5465, 118664,...
[ 0.0911865234375, 0.193359375, 0.1107177734375, 0.1707763671875, 0.0628662109375, 0.11474609375, 0.2056884765625, 0.210205078125, 0.2183837890625, 0.1358642578125, 0.2213134765625, 0.1380615234375, 0.23388671875, 0.012237548828125, 0.048553466796875, 0.0589599609375, 0.1480712890625, ...
embed
34576794_c0
34576794
prolog
0
Title: Negation in prolog query is not working Problem title: Negation in prolog query is not working Tags: negation, logic, prolog Problem: Negation in prolog query is not working HI i have a simple knowledge database defined as: carClass('X1','Oil','small'). carClass('X2','gas','big'). carClass('X3','Petrol','big'). ...
Negation in prolog query is not working Negation in prolog query is not working negation logic prolog Negation Oil Petrol OnOilButNotBig CarClass Negation in prolog query is not working HI i have a simple knowledge database defined as: I am trying to write a rule that will answer the query: Display all carClass that ru...
[ 0.00750732421875, 0.016357421875, 0.00010013580322265625, 0.007049560546875, -0.009765625, 0.01190185546875, 0.015625, -0.0159912109375, 0.0087890625, 0.0091552734375, -0.026123046875, 0.007568359375, 0.0024566650390625, -0.0002651214599609375, -0.01141357421875, 0.00970458984375, 0....
[ 799, 125682, 23, 502, 4867, 41, 1294, 959, 20697, 83, 108, 62775, 60687, 133707, 2161, 670, 379, 82212, 122116, 129933, 3980, 140803, 35848, 8781, 51359, 63399, 61924, 31577, 33022, 79986, 35166, 90045, 756, 2258, 127877, 98, 38173, 136, 15...
[ 0.180419921875, 0.209228515625, 0.0567626953125, 0.1497802734375, 0.2349853515625, 0.12646484375, 0.0904541015625, 0.101806640625, 0.13720703125, 0.0149993896484375, 0.156982421875, 0.1126708984375, 0.16552734375, 0.1322021484375, 0.1575927734375, 0.0924072265625, 0.05902099609375, ...
embed
7851332_c0
7851332
prolog
0
Title: Why is this prolog program causing infinite recursion? Problem title: Why is this prolog program causing infinite recursion? Tags: stack-overflow, prolog Problem: Why is this prolog program causing infinite recursion? I am trying to make a simple knowledge base. However, I'm struggling getting the category syste...
Why is this prolog program causing infinite recursion? Why is this prolog program causing infinite recursion? stack-overflow prolog Why ERROR Out Exception _G28504 Execution Aborted Why is this prolog program causing infinite recursion? I am trying to make a simple knowledge base. However, I'm struggling getting the ca...
[ 0.0230712890625, 0.0130615234375, 0.007171630859375, 0.00958251953125, -0.0079345703125, 0.000568389892578125, -0.01806640625, -0.00139617919921875, 0.004669189453125, -0.0419921875, 0.0272216796875, 0.01123046875, -0.0145263671875, -0.007354736328125, 0.026611328125, -0.00150299072265...
[ 44084, 83, 903, 502, 4867, 1528, 216806, 54241, 13, 195625, 1830, 177261, 5465, 118664, 151206, 24638, 13538, 5443, 63928, 724, 101800, 7709, 211603, 62, 3422, 3674, 31577, 8781, 51359, 3647, 237875, 95487, 5426, 4488, 2060 ]
[ 0.15380859375, 0.080322265625, 0.08245849609375, 0.182373046875, 0.2398681640625, 0.1546630859375, 0.172607421875, 0.1590576171875, 0.1148681640625, 0.2135009765625, 0.1527099609375, 0.1060791015625, 0.08221435546875, 0.16845703125, 0.06646728515625, 0.111572265625, 0.15576171875, ...
embed
72105048_c0
72105048
prolog
0
Title: Prolog program that swaps the two halves of a list Problem title: Prolog program that swaps the two halves of a list Tags: prolog Problem: Prolog program that swaps the two halves of a list I am new to this language and am having trouble coming up with a solution to this problem. The program must implement the f...
Prolog program that swaps the two halves of a list Prolog program that swaps the two halves of a list prolog Prolog Prolog program that swaps the two halves of a list I am new to this language and am having trouble coming up with a solution to this problem. The program must implement the following cases. Both variables...
[ 0.006317138671875, 0.0198974609375, 0.02294921875, -0.0185546875, -0.002166748046875, 0.0177001953125, -0.0303955078125, -0.015380859375, 0.00140380859375, 0.016845703125, 0.01123046875, -0.000324249267578125, -0.015625, -0.004852294921875, 0.0123291015625, 0.015380859375, 0.02148437...
[ 1250, 4867, 1528, 450, 202317, 7, 6626, 106706, 5303, 502, 111, 3525, 46876, 63134, 29806, 2967, 8110, 29479, 50218, 149766, 77336, 34648, 14, 11180, 19388, 29568, 64, 63736, 16750, 87293, 117371, 51, 27430, 627, 617, 104629, 133063, 96386, ...
[ 0.1597900390625, 0.2451171875, 0.2086181640625, 0.0452880859375, 0.24853515625, 0.08941650390625, 0.17529296875, 0.21240234375, 0.2200927734375, 0.1357421875, 0.014739990234375, 0.002593994140625, 0.0863037109375, 0.0238800048828125, 0.05047607421875, 0.06134033203125, 0.026824951171...
embed
16431002_c0
16431002
prolog
0
Title: Prolog: unzip list of pairs Problem title: Prolog: unzip list of pairs Tags: prolog Problem: Prolog: unzip list of pairs So, I have to create a predicate, unzip(L,R,P), where P is a list of pairs (Ex: P = [[1,2],[3,4]]. L has to be a new list that contains the first element from each pair, while R is a new list ...
Prolog: unzip list of pairs Prolog: unzip list of pairs prolog Prolog Prolog: unzip list of pairs So, I have to create a predicate, unzip(L,R,P), where P is a list of pairs (Ex: P = [[1,2],[3,4]]. L has to be a new list that contains the first element from each pair, while R is a new list containing the second element ...
[ 0.009765625, 0.0257568359375, 0.00579833984375, 0.00408935546875, -0.0189208984375, 0.041259765625, -0.031494140625, -0.01708984375, -0.0040283203125, -0.00102996826171875, 0.00159454345703125, 0.00189208984375, -0.0026702880859375, -0.003875732421875, -0.01080322265625, 0.029541015625...
[ 1250, 4867, 51, 50836, 5303, 80836, 502, 7, 765, 28282, 1653, 2063, 67, 866, 1052, 683, 436, 19279, 133063, 82449, 339, 3525, 70541, 5117, 12830, 12638, 12960, 627, 17932, 43240, 117934, 14012, 70270, 86681, 67660, 55412, 29806, 193844 ]
[ 0.1724853515625, 0.22216796875, 0.1461181640625, 0.2373046875, 0.198486328125, 0.250244140625, 0.1080322265625, 0.0167388916015625, 0.0213775634765625, 0.15185546875, 0.163330078125, 0.203369140625, 0.13818359375, 0.092041015625, 0.1129150390625, 0.1090087890625, 0.123291015625, 0....
embed
47727027_c0
47727027
prolog
0
Title: Product of numbers with tail-recursive predicate in prolog Problem title: Product of numbers with tail-recursive predicate in prolog Tags: product, prolog, tail-recursion Problem: Product of numbers with tail-recursive predicate in prolog I'm trying to write a tail-recursive predicate in Prolog: product(A,B) , w...
Product of numbers with tail-recursive predicate in prolog Product of numbers with tail-recursive predicate in prolog product prolog tail-recursion Product Product of numbers with tail-recursive predicate in prolog I'm trying to write a tail-recursive predicate in Prolog: product(A,B) , which is true if B is the produc...
[ 0.00579833984375, 0.0244140625, 0.01318359375, 0.0011138916015625, -0.006622314453125, 0.00469970703125, -0.00927734375, 0.00531005859375, 0.0091552734375, -0.0169677734375, 0.01513671875, 0.00628662109375, -0.0169677734375, -0.0125732421875, 0.0272216796875, 0.002777099609375, 0.029...
[ 73111, 111, 101935, 678, 46741, 107, 48650, 5844, 1653, 2063, 67, 502, 4867, 23, 12996, 31577, 33022, 1250, 284, 4, 571, 29568, 2174, 335, 5303, 62, 18151, 59121, 2060, 43240, 15490, 26458, 2965, 903, 41, 1294, 5608, 186, 9844, 1884 ]
[ 0.251708984375, 0.0946044921875, 0.1610107421875, 0.077880859375, 0.26318359375, 0.1175537109375, 0.2017822265625, 0.1124267578125, 0.185302734375, 0.2142333984375, 0.1112060546875, 0.150390625, 0.2349853515625, 0.02178955078125, 0.2734375, 0.043853759765625, 0.1251220703125, 0.169...
embed
13637429_c0
13637429
prolog
0
Title: Simple Recursive Prolog Function Problem title: Simple Recursive Prolog Function Tags: prolog, recursion Problem: Simple Recursive Prolog Function I'm currently trying to create a simple function that prints the integers in a list given the first and last number. For example, the function call: count(3,7,Z) woul...
Simple Recursive Prolog Function Simple Recursive Prolog Function prolog recursion Simple Recursive Prolog First Last Result Simple Recursive Prolog Function I'm currently trying to create a simple function that prints the integers in a list given the first and last number. For example, the function call: count(3,7,Z) ...
[ 0.0022430419921875, 0.004608154296875, -0.004669189453125, 0.01177978515625, 0.011962890625, 0.0157470703125, -0.0257568359375, 0.017578125, 0.033203125, -0.0185546875, -0.0067138671875, -0.04736328125, -0.021728515625, 0.03173828125, 0.031005859375, -0.01068115234375, 0.002777099609...
[ 60552, 853, 48650, 5844, 1250, 4867, 28670, 502, 195625, 1830, 23972, 21672, 126684, 82424, 31577, 28282, 8781, 32354, 28412, 892, 26255, 5303, 34475, 5117, 136, 4568, 14012, 27781, 11782, 54529, 86827, 966, 1511, 2806, 2203, 122101, 80389, 1...
[ 0.153564453125, 0.03289794921875, 0.17333984375, 0.09088134765625, 0.1260986328125, 0.2154541015625, 0.1668701171875, 0.125732421875, 0.1993408203125, 0.0240936279296875, 0.163330078125, 0.20703125, 0.224853515625, 0.0074462890625, 0.0732421875, 0.1087646484375, 0.150146484375, 0.1...
embed
19218962_c0
19218962
prolog
0
Title: Prolog predicate to traverse a grid Problem title: Prolog predicate to traverse a grid Tags: prolog Problem: Prolog predicate to traverse a grid Consider the following predicate: path(Start, End, Size, Path) Start is a cell in the grid identified by the list [row, column]. End is a cell in the grid identified by...
Prolog predicate to traverse a grid Prolog predicate to traverse a grid prolog Prolog Prolog predicate to traverse a grid Consider the following predicate: path(Start, End, Size, Path) Start is a cell in the grid identified by the list [row, column]. End is a cell in the grid identified by the list [row, column]. Size ...
[ 0.0050048828125, 0.0194091796875, 0.0118408203125, -0.00244140625, 0.0034332275390625, 0.0133056640625, -0.007354736328125, 0.005889892578125, -0.0026397705078125, -0.0537109375, 0.01165771484375, 0.0281982421875, -0.038330078125, 0.008544921875, 0.003631591796875, 0.024169921875, -0...
[ 1250, 4867, 1653, 2063, 67, 47, 37317, 13, 120067, 502, 10, 137399, 60875, 126597, 18878, 80378, 108421, 13794, 83, 38750, 207487, 5303, 15555, 3365, 316, 68772, 38132, 142424, 58055, 123594, 16797, 25737, 54969, 1257, 64, 34695, 1556, 110, ...
[ 0.1988525390625, 0.260986328125, 0.213623046875, 0.22265625, 0.0721435546875, 0.030975341796875, 0.2269287109375, 0.1007080078125, 0.272705078125, 0.1688232421875, 0.0153350830078125, 0.029937744140625, 0.25830078125, 0.1842041015625, 0.1944580078125, 0.1939697265625, 0.215576171875,...
embed
52920477_c0
52920477
prolog
0
Title: Find the number of elements greater than a number in a list in PROLOG Problem title: Find the number of elements greater than a number in a list in PROLOG Tags: prolog Problem: Find the number of elements greater than a number in a list in PROLOG Hello and thank you for taking the time to read this question. I h...
Find the number of elements greater than a number in a list in PROLOG Find the number of elements greater than a number in a list in PROLOG prolog Find PROLOG Find the number of elements greater than a number in a list in PROLOG Hello and thank you for taking the time to read this question. I have the following problem...
[ 0.00089263916015625, 0.0228271484375, 0.0101318359375, 0.0030975341796875, 0.0020904541015625, 0.021728515625, 0.0079345703125, 0.00634765625, 0.0108642578125, -0.00531005859375, -0.010498046875, -0.0238037109375, -0.01458740234375, -0.0091552734375, 0.0166015625, 0.00628662109375, 0...
[ 26040, 70, 14012, 111, 80854, 117396, 3501, 23, 5303, 10514, 47510, 502, 4867, 35971, 1733, 25632, 2967, 77878, 176377, 101935, 1193, 89536, 9451, 133063, 82449, 104629, 541, 126684, 2203, 116, 18151, 4734, 30646, 22225, 184, 1284, 959, 34292...
[ 0.14208984375, 0.0277862548828125, 0.2000732421875, 0.032440185546875, 0.2392578125, 0.2147216796875, 0.1510009765625, 0.07708740234375, 0.1875, 0.2188720703125, 0.26318359375, 0.15478515625, 0.2081298828125, 0.000396728515625, 0.001800537109375, 0.003662109375, 0.0955810546875, 0....
embed
27668596_c0
27668596
prolog
0
Title: Calculating `1*A + 2*A + 3*A + ... + N*A` for given integers `N` and `A` Problem title: Calculating `1*A + 2*A + 3*A + ... + N*A` for given integers `N` and `A` Tags: prolog, clpfd Problem: Calculating `1*A + 2*A + 3*A + ... + N*A` for given integers `N` and `A` I recently started learning Prolog and got stuck o...
Calculating `1*A + 2*A + 3*A + ... + N*A` for given integers `N` and `A` Calculating `1*A + 2*A + 3*A + ... + N*A` for given integers `N` and `A` prolog clpfd Calculating Res Nminus1 N-1 Res2 Calculating `1*A + 2*A + 3*A + ... + N*A` for given integers `N` and `A` I recently started learning Prolog and got stuck on thi...
[ -0.000675201416015625, -0.004608154296875, 0.00628662109375, 0.013427734375, -0.0033111572265625, -0.005218505859375, 0.01446533203125, 0.0150146484375, 0.0296630859375, -0.0294189453125, 0.013916015625, -0.0106201171875, -0.00860595703125, 0.0281982421875, 0.0118408203125, -0.01330566...
[ 212467, 26518, 418, 1639, 284, 997, 116, 138, 153, 541, 34475, 892, 26255, 839, 136, 100, 502, 4867, 39557, 71, 9624, 34731, 7, 5759, 304, 52080, 1250, 179933, 11249, 15549, 79986, 35064, 8337, 34292, 62, 363, 16750, 11343, 135179, 5773, ...
[ 0.2091064453125, 0.080078125, 0.0667724609375, 0.1092529296875, 0.1318359375, 0.118896484375, 0.10888671875, 0.1424560546875, 0.044403076171875, 0.080322265625, 0.058837890625, 0.12158203125, 0.083984375, 0.125, 0.03509521484375, 0.006134033203125, 0.092529296875, 0.198974609375, ...
embed
15144555_c0
15144555
prolog
0
Title: Add to list in prolog Problem title: Add to list in prolog Tags: prolog, list, addition Problem: Add to list in prolog In the exercise the first thing I need is to get some facts, stating the existence of one place each, into a list. Someone help me please. example. exists(place). exists(place2). Code so far: li...
Add to list in prolog Add to list in prolog prolog list addition Add place2 Add to list in prolog In the exercise the first thing I need is to get some facts, stating the existence of one place each, into a list. Someone help me please. Code so far: Now I tried to get a list of lists. Each list I need is held as an arg...
[ 0.0301513671875, 0.0086669921875, 0.004241943359375, 0.01544189453125, -0.0281982421875, 0.007781982421875, -0.0045166015625, -0.0033416748046875, 0.0260009765625, -0.04345703125, 0.006988525390625, 0.005889892578125, -0.01544189453125, -0.001373291015625, -0.01031494140625, -0.0184326...
[ 29117, 47, 5303, 23, 502, 4867, 66044, 3687, 304, 81979, 5117, 13580, 3871, 2046, 3060, 15824, 13254, 116311, 1632, 12638, 3934, 3630, 4358, 22936, 28864, 2060, 37842, 98423, 34658, 10750, 44677, 31577, 765, 70, 1556, 237, 4343, 15700, 4859...
[ 0.17626953125, 0.1510009765625, 0.2330322265625, 0.0853271484375, 0.1683349609375, 0.2386474609375, 0.16357421875, 0.184814453125, 0.113525390625, 0.1461181640625, 0.0433349609375, 0.04864501953125, 0.1229248046875, 0.081787109375, 0.0145416259765625, 0.162841796875, 0.0673828125, ...
embed
21611847_c0
21611847
prolog
0
Title: Prolog: script doesn't halt Problem title: Prolog: script doesn't halt Tags: prolog Problem: Prolog: script doesn't halt I'm currently trying to learn prolog. I hope you can help.. I have three rules: reverse - retrieves the reverse of a list startswith - checks if the second list is a prefix of the fi...
Prolog: script doesn't halt Prolog: script doesn't halt prolog Prolog Prolog: script doesn't halt I'm currently trying to learn prolog. I hope you can help.. I have three rules: reverse - retrieves the reverse of a list startswith - checks if the second list is a prefix of the first list suffix - checks if th...
[ 0.0130615234375, 0.027587890625, 0.0054931640625, 0.006744384765625, -0.0216064453125, -0.0135498046875, 0.023193359375, 0.0089111328125, 0.0030975341796875, -0.0033416748046875, -0.01068115234375, -0.0167236328125, -0.01904296875, -0.01092529296875, 0.0174560546875, 0.01171875, 0.03...
[ 1250, 4867, 26499, 22027, 3768, 18, 58810, 502, 31577, 30698, 4358, 17262, 91736, 39531, 184, 97351, 5303, 4034, 76228, 12765, 17932, 183114, 5117, 133784, 425, 48903, 4488, 237, 5608, 7279, 74481, 1916, 53418, 28219, 15400 ]
[ 0.166748046875, 0.2247314453125, 0.258544921875, 0.09088134765625, 0.046783447265625, 0.0965576171875, 0.2164306640625, 0.13232421875, 0.00146484375, 0.030364990234375, 0.0123291015625, 0.09765625, 0.17236328125, 0.1900634765625, 0.1370849609375, 0.053497314453125, 0.1343994140625, ...
embed
14906098_c0
14906098
prolog
0
Title: Prolog checking if a list is in strictly decreasing sequence Problem title: Prolog checking if a list is in strictly decreasing sequence Tags: prolog Problem: Prolog checking if a list is in strictly decreasing sequence I am new to Prolog and am trying to write a procedure for a strictly decreasing sequence for ...
Prolog checking if a list is in strictly decreasing sequence Prolog checking if a list is in strictly decreasing sequence prolog Prolog Prolog checking if a list is in strictly decreasing sequence I am new to Prolog and am trying to write a procedure for a strictly decreasing sequence for an assignment. Now define a pr...
[ 0.015869140625, 0.01519775390625, 0.01318359375, 0.019775390625, 0.0189208984375, 0.021484375, -0.021240234375, -0.012939453125, -0.00872802734375, -0.00921630859375, 0.01177978515625, -0.00152587890625, -0.0128173828125, -0.0224609375, 0.0098876953125, 0.0186767578125, 0.00311279296...
[ 1250, 4867, 175199, 2174, 5303, 23, 81113, 538, 8, 7612, 162, 214, 40, 944, 83, 502, 3956, 33022, 50491, 95486, 61924, 1653, 2063, 67, 143045, 56, 297, 164, 866, 271, 214493, 55769, 339, 41591, 70541, 101935, 1662, 190, 138, 757, 29568,...
[ 0.136474609375, 0.2039794921875, 0.1463623046875, 0.056060791015625, 0.19775390625, 0.1025390625, 0.18505859375, 0.0692138671875, 0.1868896484375, 0.1898193359375, 0.1226806640625, 0.101318359375, 0.054107666015625, 0.112548828125, 0.1322021484375, 0.076904296875, 0.05841064453125, ...
embed
33569940_c0
33569940
prolog
0
Title: Getting Singleton Warning in prolog (denomination change) Problem title: Getting Singleton Warning in prolog (denomination change) Tags: prolog, clpfd Problem: Getting Singleton Warning in prolog (denomination change) I was writing a prolog predicate to print possible changes for given value, on running it shows...
Getting Singleton Warning in prolog (denomination change) Getting Singleton Warning in prolog (denomination change) prolog clpfd Getting Singleton Warning change1 X-1 Getting Singleton Warning in prolog (denomination change) I was writing a prolog predicate to print possible changes for given value, on running it shows...
[ -0.0137939453125, -0.00787353515625, -0.001007080078125, 0.005126953125, 0.01055908203125, 0.0203857421875, -0.00909423828125, 0.002471923828125, 0.0118408203125, -0.021484375, 0.0002918243408203125, 0.022216796875, -0.0111083984375, -0.0081787109375, 0.0301513671875, 0.0069580078125, ...
[ 210732, 43609, 1507, 5550, 592, 502, 4867, 555, 31, 91407, 15549, 39557, 71, 418, 1193, 5759, 32562, 1653, 2063, 67, 28412, 7722, 65572, 34475, 34292, 51042, 1631, 304, 83, 11001, 77336, 384, 32036, 19882, 52240, 339, 16750, 3559, 71928, ...
[ 0.0618896484375, 0.2200927734375, 0.218505859375, 0.169921875, 0.0877685546875, 0.1322021484375, 0.21240234375, 0.038360595703125, 0.0797119140625, 0.079345703125, 0.169189453125, 0.03265380859375, 0.04656982421875, 0.019866943359375, 0.1171875, 0.108154296875, 0.045440673828125, 0...
embed
38252848_c0
38252848
prolog
0
Title: Subtracting or adding lists of lists in prolog? Problem title: Subtracting or adding lists of lists in prolog? Tags: prolog, list Problem: Subtracting or adding lists of lists in prolog? I am fairly new to prolog and am trying to mess around with lists of lists. I am curious on how to add two lists of lists or s...
Subtracting or adding lists of lists in prolog? Subtracting or adding lists of lists in prolog? prolog list Subtracting SomeList SomeList2 Subtracting or adding lists of lists in prolog? I am fairly new to prolog and am trying to mess around with lists of lists. I am curious on how to add two lists of lists or subtract...
[ 0.021728515625, 0.0078125, 0.004425048828125, 0.019287109375, -0.04150390625, 0.005706787109375, -0.000274658203125, 0.0169677734375, 0.01361083984375, 0.000186920166015625, 0.00836181640625, -0.0050048828125, -0.00299072265625, 0.009765625, -0.006195068359375, -0.0059814453125, 0.01...
[ 8273, 39989, 1916, 707, 154107, 5303, 111, 7, 23, 502, 4867, 31384, 154663, 304, 3525, 2409, 15190, 6626, 1614, 1632, 28282, 10554, 5154, 117474, 4358, 18151, 149201 ]
[ 0.134033203125, 0.153564453125, 0.02685546875, 0.056396484375, 0.13818359375, 0.2152099609375, 0.007781982421875, 0.0458984375, 0.0158843994140625, 0.12744140625, 0.177978515625, 0.049468994140625, 0.1990966796875, 0.1112060546875, 0.00146484375, 0.005645751953125, 0.0936279296875, ...
embed
6441527_c0
6441527
prolog
0
Title: Simple Prolog delete from list Problem title: Simple Prolog delete from list Tags: prolog-dif, prolog Problem: Simple Prolog delete from list (This is NOT a coursework question. Just my own personal learning.) I'm trying to do an exercise in Prolog to delete elements from a list. Here's my code : deleteall([],X,...
Simple Prolog delete from list Simple Prolog delete from list prolog-dif prolog list Simple Prolog Result Simple Prolog delete from list (This is NOT a coursework question. Just my own personal learning.) I'm trying to do an exercise in Prolog to delete elements from a list. Here's my code : When I test it, I first get...
[ 0.006317138671875, 0.005279541015625, -0.0004558563232421875, 0.01165771484375, -0.0150146484375, 0.019287109375, 0.0162353515625, -0.00439453125, 0.02587890625, -0.004119873046875, 0.013671875, -0.0137939453125, -0.0033111572265625, 0.016357421875, 0.004364013671875, 0.01202392578125,...
[ 60552, 1250, 4867, 154109, 1295, 5303, 502, 428, 420, 126684, 81979, 80854, 18151, 3034, 5117, 4127, 35166, 1193, 184750, 4420, 125728, 214, 64600, 756, 3789, 20117, 351, 110527, 44084, 50218, 572, 69112, 1542, 17669, 6817, 8305, 4568, 70731,...
[ 0.146240234375, 0.1397705078125, 0.21044921875, 0.2017822265625, 0.07562255859375, 0.1845703125, 0.08074951171875, 0.0247039794921875, 0.0802001953125, 0.0648193359375, 0.070068359375, 0.10986328125, 0.083251953125, 0.07855224609375, 0.00714111328125, 0.0601806640625, 0.0703125, 0....
embed
12000522_c0
12000522
prolog
0
Title: Prolog - List of sequence from f0 to fN Problem title: Prolog - List of sequence from f0 to fN Tags: prolog Problem: Prolog - List of sequence from f0 to fN The question require me to write a predicate seqList(N, L) , which is satisfied when L is the list [f0, . . . , fN] . Where the fN = fN-1 + fN-2 + fN-3 My c...
Prolog - List of sequence from f0 to fN Prolog - List of sequence from f0 to fN prolog f0 Prolog List fN-1 fN-2 fN-3 Prolog - List of sequence from f0 to fN The question require me to write a predicate seqList(N, L) , which is satisfied when L is the list [f0, . . . , fN] . Where the fN = fN-1 + fN-2 + fN-3 My code is ...
[ 0.01190185546875, 0.002655029296875, -0.020751953125, 0.0054931640625, -0.01055908203125, -0.00927734375, 0.009521484375, 0.03173828125, 0.004302978515625, -0.0181884765625, 0.00994873046875, 0.0244140625, -0.00518798828125, 0.0194091796875, 0.01043701171875, -0.006500244140625, 0.01...
[ 1250, 4867, 32036, 111, 40, 944, 3956, 1295, 1238, 2389, 47, 839, 20, 502, 5759, 5428, 8316, 9655, 64209, 163, 33022, 1653, 2063, 67, 864, 154663, 339, 214521, 3229, 83, 5303, 420, 4, 997, 18151, 69101, 10336, 34475, 30646, 29568, 707, ...
[ 0.1888427734375, 0.256103515625, 0.18359375, 0.0701904296875, 0.1253662109375, 0.141357421875, 0.05523681640625, 0.09637451171875, 0.1273193359375, 0.1802978515625, 0.0933837890625, 0.2252197265625, 0.0150909423828125, 0.1361083984375, 0.115966796875, 0.150390625, 0.1903076171875, ...
embed
8231754_c0
8231754
prolog
0
Title: Reading a file in prolog Problem title: Reading a file in prolog Tags: dcg, io, prolog Problem: Reading a file in prolog Possible Duplicate: Read a file line by line in Prolog I found the following prolog code which reads one character at a time and prints out. process(File) :- open('C:/Users/BHARAT/Desktop/a.tx...
Reading a file in prolog Reading a file in prolog dcg io prolog Reading File Users BHARAT Desktop a.txt get_char Char1 process_stream end_of_file Char Char2 Reading a file in prolog I found the following prolog code which reads one character at a time and prints out. But if the file has multiple lines is there a way to...
[ 0.0208740234375, -0.0311279296875, 0.01470947265625, 0.0186767578125, -0.00726318359375, 0.00439453125, 0.0115966796875, -0.0076904296875, -0.0024261474609375, -0.056884765625, -0.0035400390625, 0.0019378662109375, -0.035400390625, 0.0064697265625, 0.0155029296875, 0.004241943359375, ...
[ 104951, 11435, 502, 4867, 23, 238, 177, 22995, 42724, 53400, 136499, 618, 141423, 10, 124326, 2046, 9254, 21656, 418, 9433, 86429, 3564, 4390, 29822, 304, 25632, 18151, 12301, 1632, 62816, 1733, 28412, 1810, 48716, 124519, 106, 28271, 13315, ...
[ 0.1790771484375, 0.16357421875, 0.1866455078125, 0.231201171875, 0.0218963623046875, 0.0170440673828125, 0.07415771484375, 0.1455078125, 0.0958251953125, 0.08612060546875, 0.0687255859375, 0.0963134765625, 0.16943359375, 0.055145263671875, 0.1805419921875, 0.0182952880859375, 0.12731...
embed
42590572_c0
42590572
prolog
0
Title: Prolog: getting max/min value via backtracking? Problem title: Prolog: getting max/min value via backtracking? Tags: max, min, prolog Problem: Prolog: getting max/min value via backtracking? I would like to know if it's a good idea to get the max value (oldest person) of some facts via backtracking like this: da...
Prolog: getting max/min value via backtracking? Prolog: getting max/min value via backtracking? max min prolog Prolog MaxID MaxName MaxAge Name Age MinID MinName MinAge Prolog: getting max/min value via backtracking? I would like to know if it's a good idea to get the max value (oldest person) of some facts via backtra...
[ 0.02001953125, 0.0036163330078125, 0.0380859375, 0.01116943359375, -0.0142822265625, -0.008544921875, 0.0284423828125, 0.01373291015625, 0.015869140625, -0.05615234375, 0.0068359375, 0.01385498046875, -0.0020751953125, -0.021240234375, 0.0255126953125, -0.01312255859375, -0.010131835...
[ 1250, 4867, 20949, 18389, 64, 1249, 34292, 1829, 4420, 125728, 214, 881, 502, 9920, 7146, 163612, 284, 429, 15757, 72944, 4211, 1884, 3714, 4127, 6528, 2046, 18345, 525, 3445, 15824, 903, 22925, 105274, 1410, 1619, 93766, 32628, 27140, 2081...
[ 0.158203125, 0.2335205078125, 0.123291015625, 0.1976318359375, 0.080322265625, 0.231689453125, 0.2103271484375, 0.08331298828125, 0.1790771484375, 0.245361328125, 0.15234375, 0.2100830078125, 0.140625, 0.1282958984375, 0.122802734375, 0.09722900390625, 0.03765869140625, 0.089599609...
embed
48127563_c0
48127563
prolog
0
Title: Compute the list, and it's sublists in reversed order Prolog Problem title: Compute the list, and it's sublists in reversed order Prolog Tags: sublist, reverse, prolog, list Problem: Compute the list, and it's sublists in reversed order Prolog I have a list formed of integer numbers and lists of intege...
Compute the list, and it's sublists in reversed order Prolog Compute the list, and it's sublists in reversed order Prolog sublist reverse prolog list Compute Prolog E:number L:list LR:list Compute the list, and it's sublists in reversed order Prolog I have a list formed of integer numbers and lists of integer...
[ -0.00494384765625, 0.025634765625, 0.0177001953125, 0.0103759765625, -0.033203125, 0.0235595703125, -0.002349853515625, 0.0162353515625, 0.0218505859375, -0.01806640625, 0.023193359375, 0.0181884765625, 0.01300048828125, 0.0281982421875, 0.00921630859375, -0.007354736328125, 0.029296...
[ 159415, 13, 5303, 136, 3768, 1614, 6562, 7, 23, 39531, 5281, 12989, 1250, 4867, 184, 502, 241, 12, 2606, 1297, 339, 101715, 70, 111, 892, 1505, 101935, 3444, 9969, 6743, 41581, 11249 ]
[ 0.1868896484375, 0.039459228515625, 0.2015380859375, 0.02008056640625, 0.046234130859375, 0.2047119140625, 0.250732421875, 0.07025146484375, 0.0482177734375, 0.18994140625, 0.1500244140625, 0.151123046875, 0.1185302734375, 0.1883544921875, 0.0469970703125, 0.085205078125, 0.051971435...
embed
49504071_c0
49504071
prolog
0
Title: Prolog: Check predicate against every item in the list Problem title: Prolog: Check predicate against every item in the list Tags: recursion, prolog Problem: Prolog: Check predicate against every item in the list Basically, I want to be able to check to see if at least one value in a list satisfies some predicat...
Prolog: Check predicate against every item in the list Prolog: Check predicate against every item in the list recursion prolog Prolog Check check_list Prolog: Check predicate against every item in the list Basically, I want to be able to check to see if at least one value in a list satisfies some predicate. What I have...
[ -0.006622314453125, 0.00066375732421875, -0.0001544952392578125, -0.0034332275390625, -0.01495361328125, 0.03271484375, -0.00274658203125, -0.01031494140625, 0.0225830078125, -0.0245361328125, 0.024658203125, -0.0234375, -0.01324462890625, 0.005859375, 0.0091552734375, 0.0244140625, ...
[ 1250, 4867, 38679, 1653, 2063, 67, 26548, 11907, 35735, 5303, 195625, 1830, 502, 12765, 6562, 23, 3444, 19048, 47, 1957, 2174, 19713, 1632, 34292, 40407, 3387, 2060, 43240, 5885, 4734, 3789, 142424, 7413, 12830, 17932, 4420, 1257, 177261, 1...
[ 0.143798828125, 0.21337890625, 0.228759765625, 0.1837158203125, 0.2314453125, 0.130126953125, 0.18603515625, 0.052978515625, 0.12158203125, 0.19873046875, 0.1793212890625, 0.091064453125, 0.10107421875, 0.234619140625, 0.2337646484375, 0.04010009765625, 0.059967041015625, 0.0062255...
embed
55292658_c0
55292658
prolog
0
Title: How to obtain a list given this database Problem title: How to obtain a list given this database Tags: prolog Problem: How to obtain a list given this database I am learning prolog and currently stuck on this exercise. I am trying to obtain a list of Ontario teams that outputs: From the database below. city(otta...
How to obtain a list given this database How to obtain a list given this database prolog How How to obtain a list given this database I am learning prolog and currently stuck on this exercise. I am trying to obtain a list of Ontario teams that outputs: From the database below. Here's what I have so far. How would I go ...
[ 0.006805419921875, -0.003814697265625, -0.0020751953125, -0.0036163330078125, 0.002197265625, -0.0036468505859375, -0.010986328125, 0.00653076171875, 0.004302978515625, -0.050048828125, 0.0003147125244140625, -0.01123046875, -0.00848388671875, -0.00897216796875, -0.0274658203125, 0.024...
[ 11249, 47, 113054, 10, 5303, 34475, 903, 63399, 502, 4867, 52080, 82424, 179933, 81979, 31577, 111, 200086, 87199, 140992, 28090, 35064, 765, 2060, 11737, 29954 ]
[ 0.076171875, 0.07666015625, 0.1864013671875, 0.08673095703125, 0.2220458984375, 0.153076171875, 0.1239013671875, 0.221435546875, 0.130859375, 0.2022705078125, 0.029022216796875, 0.0193328857421875, 0.0305633544921875, 0.0408935546875, 0.029632568359375, 0.03643798828125, 0.2454833984...
embed
55895803_c0
55895803
prolog
0
Title: A General Method To Transpile A Code in Eclipse CLP to CHR Problem title: A General Method To Transpile A Code in Eclipse CLP to CHR Tags: prolog, constraint-handling-rules, eclipse-clp Problem: A General Method To Transpile A Code in Eclipse CLP to CHR My question is a little general but the answer to my specif...
A General Method To Transpile A Code in Eclipse CLP to CHR A General Method To Transpile A Code in Eclipse CLP to CHR prolog constraint-handling-rules eclipse-clp General Method Transpile Eclipse CLP CHR A General Method To Transpile A Code in Eclipse CLP to CHR My question is a little general but the answer to my spec...
[ -0.00180816650390625, 0.00653076171875, 0.0189208984375, 0.015869140625, 0.01300048828125, -0.0103759765625, -0.015869140625, -0.0263671875, -0.002593994140625, -0.03466796875, -0.022705078125, -0.0048828125, -0.0157470703125, 0.0159912109375, -0.0101318359375, -0.002899169921875, 0....
[ 9082, 74644, 11062, 5974, 13, 28864, 234962, 313, 37352, 47, 29562, 62, 502, 4867, 2816, 4288, 54885, 13500, 106371, 184, 26775, 98893, 4537, 55300, 12302, 18151, 1657, 193237, 139118, 47251, 234873, 23113, 91736, 27781, 541, 41732, 1755 ]
[ 0.140869140625, 0.1715087890625, 0.0703125, 0.1878662109375, 0.0305328369140625, 0.2320556640625, 0.260986328125, 0.0667724609375, 0.2237548828125, 0.114501953125, 0.2213134765625, 0.000823974609375, 0.1343994140625, 0.21435546875, 0.1763916015625, 0.0328369140625, 0.137451171875, ...
embed
58573038_c0
58573038
prolog
0
Title: Anytime strongly connected components via Prolog Problem title: Anytime strongly connected components via Prolog Tags: prolog, strongly-connected-graph, prolog-tabling Problem: Anytime strongly connected components via Prolog Markus Triska has reported an algorithm to determine strongly connected components (SCC...
Anytime strongly connected components via Prolog Anytime strongly connected components via Prolog prolog strongly-connected-graph prolog-tabling Anytime Prolog Anytime strongly connected components via Prolog Markus Triska has reported an algorithm to determine strongly connected components (SCC). Is there a solution w...
[ 0.01434326171875, 0.007110595703125, 0.01507568359375, 0.016845703125, 0.00157928466796875, 0.009521484375, -0.003570556640625, -0.01544189453125, -0.01068115234375, -0.060302734375, -0.0029144287109375, -0.0020294189453125, -0.036865234375, 0.03125, 0.0179443359375, 0.022216796875, ...
[ 28541, 6032, 37515, 162711, 82761, 1829, 1250, 4867, 502, 538, 135457, 41382, 102, 79298, 111246, 4699, 937, 113771, 234873, 83324, 294, 13709, 29806, 159, 15490, 4527, 150380, 77336, 4488, 2499, 3060, 95378, 5170, 831, 765, 54241, 5941, 1213...
[ 0.0963134765625, 0.17333984375, 0.1466064453125, 0.183349609375, 0.1932373046875, 0.058013916015625, 0.139404296875, 0.20849609375, 0.0994873046875, 0.009765625, 0.141357421875, 0.16650390625, 0.1312255859375, 0.1512451171875, 0.07794189453125, 0.07568359375, 0.1187744140625, 0.023...
embed
44738327_c0
44738327
prolog
0
Title: Prolog, listing/1, Built-in System Predicates, SWI-Prolog 7.4.2 Problem title: Prolog, listing/1, Built-in System Predicates, SWI-Prolog 7.4.2 Tags: prolog, swi-prolog Problem: Prolog, listing/1, Built-in System Predicates, SWI-Prolog 7.4.2 I'm trying to get the definitions for a few built-in predicates using SW...
Prolog, listing/1, Built-in System Predicates, SWI-Prolog 7.4.2 Prolog, listing/1, Built-in System Predicates, SWI-Prolog 7.4.2 prolog swi-prolog Prolog Built-in System Predicates SWI-Prolog split_string system:split_string Summary Break Foreign Prolog, listing/1, Built-in System Predicates, SWI-Prolog 7.4.2 I'm trying...
[ 0.01483154296875, 0.010986328125, 0.01251220703125, 0.017578125, -0.036865234375, 0.0289306640625, 0.01190185546875, -0.0118408203125, 0.0089111328125, -0.0016021728515625, 0.0069580078125, 0.00009012222290039062, -0.0390625, 0.005218505859375, -0.001220703125, 0.01300048828125, 0.02...
[ 1250, 4867, 5303, 214, 11583, 667, 24908, 73, 12353, 7145, 2063, 1636, 159, 38969, 10752, 2861, 117904, 502, 2452, 3454, 65450, 91693, 5426, 7008, 4353, 131150, 131904, 184293, 80934, 10846, 88303, 1653, 17357, 73342, 30646, 83, 571, 57572, ...
[ 0.164306640625, 0.2308349609375, 0.1497802734375, 0.088134765625, 0.1190185546875, 0.007110595703125, 0.096923828125, 0.1314697265625, 0.1768798828125, 0.1761474609375, 0.235595703125, 0.07025146484375, 0.031341552734375, 0.17236328125, 0.1287841796875, 0.0361328125, 0.166748046875, ...
embed
19659180_c0
19659180
prolog
0
Title: Basic prolog rule creation Problem title: Basic prolog rule creation Tags: prolog Problem: Basic prolog rule creation I am a Prolog newbie. I'm attending an AI course at my university, so we can't use advanced Prolog features: just simple facts and super-simple rules. I'm having some trouble converting this two ...
Basic prolog rule creation Basic prolog rule creation prolog Basic Basic prolog rule creation I am a Prolog newbie. I'm attending an AI course at my university, so we can't use advanced Prolog features: just simple facts and super-simple rules. I'm having some trouble converting this two sentences to Prolog clauses: Ev...
[ 0.03076171875, 0.020263671875, -0.003082275390625, 0.0208740234375, -0.0011138916015625, 0.01397705078125, 0.01025390625, -0.000865936279296875, 0.0225830078125, -0.02197265625, -0.011474609375, -0.014892578125, 0.00101470947265625, 0.006439208984375, 0.02197265625, 0.0140380859375, ...
[ 91692, 502, 4867, 79986, 166635, 1250, 3525, 9014, 38730, 15411, 759, 152363, 4527, 175961, 66139, 8781, 15824, 1601, 191560, 91736, 19441, 63134, 96760, 214, 903, 6626, 149357, 47, 70731, 90, 191096, 2750, 5161, 756, 85825, 78302, 390, 22008...
[ 0.1505126953125, 0.122802734375, 0.23486328125, 0.1885986328125, 0.1082763671875, 0.1510009765625, 0.007781982421875, 0.08160400390625, 0.131591796875, 0.038055419921875, 0.000885009765625, 0.05072021484375, 0.022735595703125, 0.0236663818359375, 0.051513671875, 0.06793212890625, 0.0...
embed
20559719_c0
20559719
prolog
0
Title: How can I match two strings by using substring in PROLOG? Problem title: How can I match two strings by using substring in PROLOG? Tags: substring, match, prolog Problem: How can I match two strings by using substring in PROLOG? I have been developing expert system as a term project. And in the expert system, I ...
How can I match two strings by using substring in PROLOG? How can I match two strings by using substring in PROLOG? substring match prolog substring How PROLOG How can I match two strings by using substring in PROLOG? I have been developing expert system as a term project. And in the expert system, I am trying to make ...
[ 0.01263427734375, 0.01116943359375, 0.006256103515625, 0.033447265625, -0.0140380859375, 0.007720947265625, 0.004638671875, 0.0269775390625, 0.00165557861328125, -0.0002593994140625, 0.00830078125, 0.0166015625, -0.012451171875, -0.005401611328125, 0.0101318359375, -0.0184326171875, ...
[ 11249, 831, 14858, 6626, 79315, 7, 17368, 1614, 91693, 23, 10514, 47510, 502, 4867, 87, 168698, 26808, 5426, 13579, 13452, 31577, 32354, 69101, 2685, 62, 2203, 94005, 8804, 335, 53, 49558, 2878, 16750, 9774, 51347 ]
[ 0.054962158203125, 0.056549072265625, 0.259765625, 0.151123046875, 0.2213134765625, 0.01263427734375, 0.0716552734375, 0.2069091796875, 0.1943359375, 0.040985107421875, 0.1546630859375, 0.2291259765625, 0.1373291015625, 0.1754150390625, 0.01690673828125, 0.016021728515625, 0.12451171...
embed
71186722_c1
71186722
prolog
1
231). edge(p335,j61,0). edge(t3,j20,99). edge(t1,j40,99). edge(t2,j50,99). edge(r,j60,1231). edge(j10,j101,14200). edge(j101,j103,1350). edge(j101,j105,2540). edge(j105,j107,1470). edge(j103,j109,3940). edge(j109,j111,2000). edge(j111,j115,1160). edge(j111,j113,1680). edge(j113,j115,2000). edge(j107,j115,1950). edge(j1...
231). edge(p335,j61,0). edge(t3,j20,99). edge(t1,j40,99). edge(t2,j50,99). edge(r,j60,1231). edge(j10,j101,14200). edge(j101,j103,1350). edge(j101,j105,2540). edge(j105,j107,1470). edge(j103,j109,3940). edge(j109,j111,2000). edge(j111,j115,1160). edge(j111,j113,1680). edge(j113,j115,2000). edge(j107,j115,1950). edge(j1...
[ 0.0091552734375, 0.006988525390625, 0.0011444091796875, -0.0159912109375, 0.007598876953125, -0.0135498046875, -0.03759765625, 0.008544921875, 0.004150390625, -0.01092529296875, 0.01806640625, -0.016357421875, 0.005096435546875, -0.0150146484375, 0.0079345703125, 0.0166015625, 0.0150...
[ 140911, 194, 121303, 132, 254, 363, 5843, 4, 170, 910, 206808, 18, 1549, 101655, 5, 418, 2839, 304, 2525, 42, 4598, 1530, 95787, 963, 35046, 2592, 5955, 63620, 2681, 46659, 2588, 125136, 44141, 89149, 106000, 9323, 97024, 13821, 103928, 1...
[ 0.29736328125, 0.16748046875, 0.33154296875, 0.0811767578125, 0.1571044921875, 0.19140625, 0.2724609375, 0.0797119140625, 0.1676025390625, 0.1524658203125, 0.1875, 0.114990234375, 0.19140625, 0.2454833984375, 0.043853759765625, 0.12890625, 0.16259765625, 0.1270751953125, 0.172973...
embed
40824951_c0
40824951
prolog
0
Title: Prolog Member Predicate Weight per Item Problem title: Prolog Member Predicate Weight per Item Tags: list, member, prolog Problem: Prolog Member Predicate Weight per Item I'm putting together this rule for my prolog program that when called should list the number of toppings each can be contained. It cannot go b...
Prolog Member Predicate Weight per Item Prolog Member Predicate Weight per Item list member prolog Prolog Member Predicate Weight Item Prolog Member Predicate Weight per Item I'm putting together this rule for my prolog program that when called should list the number of toppings each can be contained. It cannot go belo...
[ -0.01275634765625, 0.00933837890625, 0.004058837890625, 0.01092529296875, -0.01458740234375, 0.00799560546875, -0.005615234375, 0.00933837890625, 0.00732421875, -0.012451171875, 0.0159912109375, -0.0196533203125, 0.0150146484375, -0.01226806640625, 0.007537841796875, 0.006256103515625,...
[ 1250, 4867, 74057, 7145, 2063, 67, 150533, 117, 78426, 5303, 32786, 502, 118620, 25842, 903, 79986, 1528, 35839, 5608, 14012, 24866, 5180, 12638, 831, 70541, 53418, 738, 35064, 707, 36917, 1112, 13695, 98, 27024, 18499, 9790, 4527, 11782, 3...
[ 0.1578369140625, 0.2196044921875, 0.2119140625, 0.145751953125, 0.1834716796875, 0.03155517578125, 0.274169921875, 0.1475830078125, 0.2469482421875, 0.158935546875, 0.1478271484375, 0.1197509765625, 0.029296875, 0.064208984375, 0.0428466796875, 0.149658203125, 0.1036376953125, 0.13...
embed
14451794_c0
14451794
prolog
0
Title: How to check whether two vertices are connected or not in prolog? Problem title: How to check whether two vertices are connected or not in prolog? Tags: prolog, graph-theory Problem: How to check whether two vertices are connected or not in prolog? Here my problem is I want to check whether two nodes are connect...
How to check whether two vertices are connected or not in prolog? How to check whether two vertices are connected or not in prolog? prolog graph-theory How How to check whether two vertices are connected or not in prolog? Here my problem is I want to check whether two nodes are connected or not. My Knowledge base is,
[ 0.0031585693359375, -0.00384521484375, 0.01287841796875, 0.0257568359375, -0.013916015625, 0.006866455078125, -0.0194091796875, 0.004364013671875, 0.005645751953125, -0.04248046875, 0.0218505859375, -0.029296875, -0.01019287109375, -0.0059814453125, -0.00506591796875, -0.00099182128906...
[ 11249, 47, 12765, 36766, 6626, 95378, 5170, 621, 162711, 707, 959, 23, 502, 4867, 41382, 110, 988, 191428, 3647 ]
[ 0.040985107421875, 0.04705810546875, 0.1878662109375, 0.0946044921875, 0.126708984375, 0.18408203125, 0.1162109375, 0.06512451171875, 0.1982421875, 0.0552978515625, 0.123291015625, 0.06475830078125, 0.144287109375, 0.2098388671875, 0.1260986328125, 0.1046142578125, 0.10528564453125, ...
embed
29807170_c0
29807170
prolog
0
Title: How to consistently replace atoms with variables in Prolog? Problem title: How to consistently replace atoms with variables in Prolog? Tags: prolog, naming, variables Problem: How to consistently replace atoms with variables in Prolog? I am writing a parser for SPARQL (Semantic Web query language) using DCG. I w...
How to consistently replace atoms with variables in Prolog? How to consistently replace atoms with variables in Prolog? prolog naming variables How Prolog NewVar Name How to consistently replace atoms with variables in Prolog? I am writing a parser for SPARQL (Semantic Web query language) using DCG. I want to replace S...
[ 0.00927734375, 0.01708984375, -0.0013885498046875, 0.010009765625, 0.009521484375, 0.015625, -0.00909423828125, 0.0123291015625, 0.00099945068359375, -0.0234375, 0.0084228515625, 0.01202392578125, 0.0150146484375, -0.0128173828125, 0.023681640625, -0.00433349609375, 0.00518798828125,...
[ 11249, 74729, 91995, 34627, 7, 678, 77336, 23, 1250, 4867, 47, 538, 502, 147453, 2356, 81827, 15757, 32562, 366, 2189, 60436, 2737, 866, 195, 4002, 41, 46876, 391, 56367, 3444, 159, 123055, 139392, 3525, 140909, 46568, 4879, 53418, 13695, ...
[ 0.0916748046875, 0.232421875, 0.172119140625, 0.2120361328125, 0.07171630859375, 0.1142578125, 0.25634765625, 0.0377197265625, 0.179931640625, 0.259521484375, 0.0142974853515625, 0.0367431640625, 0.1177978515625, 0.1673583984375, 0.09149169921875, 0.2220458984375, 0.12744140625, 0....
embed
33766233_c0
33766233
prolog
0
Title: Why does Prolog wait Problem title: Why does Prolog wait Tags: prolog Problem: Why does Prolog wait So I'm doing a work for my university @prolog, and I'm trying to find a answer to the following practice: find if they're a common element between the two lists. I wrote: inlist(X,[X|_]). inlist(X,[H|L]) :- inlist...
Why does Prolog wait Why does Prolog wait prolog Why Prolog Why does Prolog wait So I'm doing a work for my university @prolog, and I'm trying to find a answer to the following practice: find if they're a common element between the two lists. I wrote: Now I know there are better solutions, and I will see them gladly bu...
[ 0.0018768310546875, -0.0025634765625, 0.0115966796875, 0.004669189453125, -0.0191650390625, 0.00994873046875, 0.002716064453125, -0.00714111328125, -0.007537841796875, -0.027099609375, 0.0093994140625, -0.004180908203125, -0.015869140625, 0.000396728515625, 0.0033721923828125, -0.00230...
[ 44084, 14602, 1250, 4867, 40485, 502, 3454, 35166, 41361, 7413, 39210, 12830, 17721, 6626, 5303, 51347, 7103, 214, 29568, 98320, 442, 22027, 18, 27781, 7440, 831, 1957, 70, 20633, 21552, 272, 427, 1902, 24234, 30957 ]
[ 0.1385498046875, 0.064697265625, 0.1781005859375, 0.248046875, 0.2381591796875, 0.112548828125, 0.03338623046875, 0.142578125, 0.052215576171875, 0.01593017578125, 0.071044921875, 0.1163330078125, 0.04620361328125, 0.0185699462890625, 0.1124267578125, 0.0416259765625, 0.109375, 0.0...
embed
64849912_c0
64849912
prolog
0
Title: Access Head and Tail of List stored in a variable as input to further predicate (Prolog) Problem title: Access Head and Tail of List stored in a variable as input to further predicate (Prolog) Tags: recursion, prolog, list, element Problem: Access Head and Tail of List stored in a variable as input to further pr...
Access Head and Tail of List stored in a variable as input to further predicate (Prolog) Access Head and Tail of List stored in a variable as input to further predicate (Prolog) recursion prolog list element Access Head Tail List Prolog NewM Access Head and Tail of List stored in a variable as input to further predicat...
[ 0.01031494140625, 0.01123046875, 0.00101470947265625, 0.0103759765625, -0.005218505859375, 0.0260009765625, 0.01055908203125, 0.00982666015625, 0.00970458984375, -0.0267333984375, 0.0174560546875, 0.01385498046875, -0.00372314453125, -0.00537109375, 0.0218505859375, -0.0101318359375, ...
[ 40266, 44816, 136, 1218, 379, 111, 32036, 4343, 77336, 237, 107730, 47, 53333, 1653, 2063, 10752, 4867, 195625, 1830, 502, 5303, 12830, 1250, 2356, 594, 765, 8781, 3444, 17203, 70, 841, 58745, 618, 221, 831, 5844, 4527, 80854, 100, 3789, ...
[ 0.2012939453125, 0.241943359375, 0.182861328125, 0.21533203125, 0.1815185546875, 0.09246826171875, 0.1761474609375, 0.140869140625, 0.2296142578125, 0.080322265625, 0.205810546875, 0.02349853515625, 0.1123046875, 0.16650390625, 0.184326171875, 0.1192626953125, 0.1871337890625, 0.19...
embed
57948009_c0
57948009
prolog
0
Title: Convert List enumeration to formatted string Problem title: Convert List enumeration to formatted string Tags: prolog Problem: Convert List enumeration to formatted string I am completely new to prolog and am trying to enumerate all possible binary trees with N nodes. I would like this to be output in the follow...
Convert List enumeration to formatted string Convert List enumeration to formatted string prolog Convert List use_module Convert List enumeration to formatted string I am completely new to prolog and am trying to enumerate all possible binary trees with N nodes. I would like this to be output in the following format (t...
[ 0.019775390625, -0.00799560546875, -0.00262451171875, 0.00457763671875, 0.004302978515625, 0.03369140625, -0.01507568359375, 0.000461578369140625, -0.00201416015625, -0.0189208984375, -0.004119873046875, -0.020751953125, -0.0072021484375, 0.004913330078125, 0.000301361083984375, 0.0064...
[ 1657, 11549, 32036, 189085, 1363, 47, 9384, 3674, 79315, 502, 4867, 4527, 83279, 3525, 31577, 67, 756, 7722, 2394, 6635, 1360, 90, 541, 110, 988, 1884, 140992, 25632, 27781, 116, 5036, 26785, 23, 3173, 5303, 221, 18151, 96760, 903, 10, ...
[ 0.03240966796875, 0.16064453125, 0.2435302734375, 0.2362060546875, 0.03369140625, 0.0916748046875, 0.1900634765625, 0.1134033203125, 0.242431640625, 0.12158203125, 0.202392578125, 0.109619140625, 0.111572265625, 0.0197601318359375, 0.028564453125, 0.070068359375, 0.0223236083984375, ...
embed
42423926_c0
42423926
prolog
0
Title: Prolog error when adding to heaps Problem title: Prolog error when adding to heaps Tags: heap, prolog Problem: Prolog error when adding to heaps I am getting an error when adding elements to a heap in prolog. When I add a priority, key pair to the heap it adds it as t(Priority,Key,[]) which causes my program to ...
Prolog error when adding to heaps Prolog error when adding to heaps heap prolog Prolog Priority Key Start Seed Target Found empty_heap Heap add_to_heap Newheap Prolog error when adding to heaps I am getting an error when adding elements to a heap in prolog. When I add a priority, key pair to the heap it adds it as t(Pr...
[ 0.00677490234375, 0.00445556640625, -0.007476806640625, -0.00830078125, -0.0050048828125, 0.0247802734375, -0.02001953125, -0.0177001953125, 0.005859375, -0.037109375, 0.0306396484375, 0.0103759765625, 0.0194091796875, 0.0103759765625, 0.0128173828125, -0.01422119140625, -0.005126953...
[ 1250, 4867, 18499, 154107, 47, 17305, 6423, 764, 2631, 502, 168857, 26824, 13794, 503, 297, 160017, 215624, 201505, 1106, 1529, 15190, 188, 2356, 80854, 25343, 22799, 80836, 808, 33163, 748, 2481, 162429, 1528, 150631, 53333, 7565, 13315, 181...
[ 0.166259765625, 0.2186279296875, 0.1644287109375, 0.16455078125, 0.0777587890625, 0.1954345703125, 0.1759033203125, 0.168701171875, 0.1690673828125, 0.1353759765625, 0.164306640625, 0.0911865234375, 0.0706787109375, 0.043487548828125, 0.06390380859375, 0.158935546875, 0.0078125, 0....
embed
49575243_c1
49575243
prolog
1
am_price,Case_price,Ali_price,Vga_price,Ssd_price,Monitor_price,Hdd_price,Res] ERROR: No permission to modify static procedure `findall/3' Defined at c:/program files/swipl/boot/bags.pl:88 I should generate all configurations for low_range, all configuration for middle_range and all configuration checking if total comp...
am_price,Case_price,Ali_price,Vga_price,Ssd_price,Monitor_price,Hdd_price,Res] ERROR: No permission to modify static procedure `findall/3' Defined at c:/program files/swipl/boot/bags.pl:88 I should generate all configurations for low_range, all configuration for middle_range and all configuration checking if total comp...
[ -0.0167236328125, 0.010009765625, 0.012451171875, -0.005035400390625, 0.0086669921875, 0.01123046875, -0.03564453125, -0.00078582763671875, 0.0224609375, -0.01104736328125, -0.01409912109375, 0.0130615234375, 0.01165771484375, -0.009033203125, 0.0174560546875, -0.004425048828125, 0.0...
[ 444, 5293, 329, 6991, 55725, 856, 208, 26111, 4028, 151206, 24638, 438, 168081, 2811, 40383, 201939, 50491, 111607, 5584, 18113, 5983, 12, 18749, 102158, 2452, 2424, 80765, 26015, 12772, 5608, 139392, 756, 180346, 27226, 94250, 86991, 175199, ...
[ 0.06561279296875, 0.1229248046875, 0.0968017578125, 0.039276123046875, 0.089111328125, 0.027069091796875, 0.02777099609375, 0.06842041015625, 0.0204620361328125, 0.1019287109375, 0.038818359375, 0.1082763671875, 0.215576171875, 0.13671875, 0.109375, 0.1697998046875, 0.156005859375, ...
embed
55213508_c0
55213508
prolog
0
Title: How do I use Prolog to solve Transportation Problem? Problem title: How do I use Prolog to solve Transportation Problem? Tags: prolog, constraint-programming Problem: How do I use Prolog to solve Transportation Problem? I am working on a Prolog assignment in class, and I don't know exactly how to get it to work....
How do I use Prolog to solve Transportation Problem? How do I use Prolog to solve Transportation Problem? prolog constraint-programming How Prolog Transportation Problem How do I use Prolog to solve Transportation Problem? I am working on a Prolog assignment in class, and I don't know exactly how to get it to work. The...
[ 0.0174560546875, 0.016845703125, -0.01171875, 0.01446533203125, -0.0181884765625, -0.0006866455078125, -0.01080322265625, 0.0017852783203125, -0.0166015625, -0.0556640625, 0.016357421875, -0.0093994140625, -0.0205078125, 0.00958251953125, 0.0111083984375, 0.00506591796875, 0.00408935...
[ 11249, 54, 87, 4527, 1250, 4867, 47, 86869, 20913, 2320, 15649, 32, 502, 158, 2816, 4288, 28966, 20697, 95486, 18507, 3714, 3642, 4488, 2967, 61475, 29806, 71679, 100677, 35968, 139392, 24087, 2288, 26783, 34165, 55300, 21771, 82775, 738, 3...
[ 0.1031494140625, 0.027679443359375, 0.04150390625, 0.115478515625, 0.2073974609375, 0.28125, 0.07977294921875, 0.174560546875, 0.2232666015625, 0.1114501953125, 0.163818359375, 0.00457763671875, 0.1395263671875, 0.012359619140625, 0.125, 0.0762939453125, 0.101318359375, 0.040344238...
embed
20327194_c0
20327194
prolog
0
Title: prolog program : compares two lists' items and return a list of unique element that are on List1 Problem title: prolog program : compares two lists' items and return a list of unique element that are on List1 Tags: prolog Problem: prolog program : compares two lists' items and return a list of unique e...
prolog program : compares two lists' items and return a list of unique element that are on List1 prolog program : compares two lists' items and return a list of unique element that are on List1 prolog List1 list2 prolog program : compares two lists' items and return a list of unique element that are on List1 ...
[ 0.0067138671875, -0.006378173828125, 0.0260009765625, 0.004119873046875, -0.007598876953125, 0.0201416015625, 0.0028533935546875, 0.031494140625, 0.0135498046875, 0.00104522705078125, 0.01171875, 0.004486083984375, 0.02880859375, 0.0184326171875, 0.002349853515625, 0.01043701171875, ...
[ 502, 4867, 1528, 152, 69101, 7, 6626, 5303, 3768, 55769, 30646, 36998, 12830, 621, 98, 32036, 418, 304, 3293, 678, 43032, 5117, 959, 17932, 27781, 420, 16750, 275, 43581, 53, 87, 3871, 5608, 127 ]
[ 0.244384765625, 0.30615234375, 0.2315673828125, 0.041717529296875, 0.2373046875, 0.045257568359375, 0.11962890625, 0.1973876953125, 0.0699462890625, 0.1571044921875, 0.158203125, 0.1680908203125, 0.1558837890625, 0.00006103515625, 0.03564453125, 0.18212890625, 0.111328125, 0.213989...
embed
69954757_c0
69954757
prolog
0
Title: How to write gnom sort in prolog? Problem title: How to write gnom sort in prolog? Tags: prolog, sorting Problem: How to write gnom sort in prolog? It's my first time with Prolog programming and I have issues with gnome sort , I've read it's similar to insert and bubble sort, but I have no idea how to connect th...
How to write gnom sort in prolog? How to write gnom sort in prolog? prolog sorting How gnome_sort List Sorted g_sort Acc NAcc last_element How to write gnom sort in prolog? It's my first time with Prolog programming and I have issues with gnome sort , I've read it's similar to insert and bubble sort, but I have no idea...
[ -0.006378173828125, 0.0133056640625, 0.0172119140625, 0.006500244140625, -0.0155029296875, 0.01385498046875, -0.031005859375, -0.0233154296875, 0.00213623046875, -0.0247802734375, 0.0252685546875, -0.0059814453125, -0.0164794921875, -0.00927734375, 0, -0.0020294189453125, 0.002212524...
[ 11249, 47, 33022, 706, 1687, 12096, 23, 502, 4867, 64970, 62351, 32036, 53666, 297, 29899, 3076, 10060, 4568, 62766, 1733, 1250, 56037, 37348, 21373, 183540, 373, 73163, 6528, 37067, 18, 4488 ]
[ 0.07568359375, 0.0305328369140625, 0.1806640625, 0.1170654296875, 0.27099609375, 0.2493896484375, 0.09423828125, 0.153076171875, 0.2154541015625, 0.2283935546875, 0.2176513671875, 0.0986328125, 0.1654052734375, 0.0265655517578125, 0.054595947265625, 0.0677490234375, 0.07318115234375,...
embed
12681182_c0
12681182
prolog
0
Title: Please i am new in prolog can some body help me in this exercice Problem title: Please i am new in prolog can some body help me in this exercice Tags: successor-arithmetics, prolog Problem: Please i am new in prolog can some body help me in this exercice Write a predicate less/2 , such that if t1 represents n1 a...
Please i am new in prolog can some body help me in this exercice Please i am new in prolog can some body help me in this exercice successor-arithmetics prolog Please Please i am new in prolog can some body help me in this exercice Write a predicate less/2 , such that if t1 represents n1 and t2 represents n2, then less(...
[ 0.01373291015625, 0.018310546875, -0.01513671875, 0.01190185546875, 0.00762939453125, -0.004058837890625, -0.01611328125, 0.01458740234375, -0.005645751953125, -0.035400390625, 0.032958984375, 0.005126953125, -0.01116943359375, -0.00433349609375, 0.0191650390625, 0.00927734375, 0.007...
[ 30607, 17, 444, 3525, 23, 502, 4867, 831, 3060, 14361, 4358, 163, 903, 125415, 39457, 42, 8962, 282, 601, 18781, 1653, 2063, 67, 40715, 12477, 2174, 808, 418, 33636, 653, 136, 304, 18, 10461, 214493, 7, 32920, 4426, 5442, 169, 91, 560...
[ 0.152099609375, 0.0150299072265625, 0.0814208984375, 0.1453857421875, 0.032623291015625, 0.1678466796875, 0.2252197265625, 0.02520751953125, 0.0069580078125, 0.080322265625, 0.1119384765625, 0.06494140625, 0.062744140625, 0.21728515625, 0.258056640625, 0.1629638671875, 0.138427734375...
embed
29063146_c0
29063146
prolog
0
Title: Remove duplicates and the original from a list Problem title: Remove duplicates and the original from a list Tags: list, prolog Problem: Remove duplicates and the original from a list I have written some code that removes all duplicates from a list, so that remove_duplicates([1,2,3,4,5,3,4,5], L). gets L = [1, 2...
Remove duplicates and the original from a list Remove duplicates and the original from a list list prolog a Remove remove_duplicates member1 Remove duplicates and the original from a list I have written some code that removes all duplicates from a list, so that remove_duplicates([1,2,3,4,5,3,4,5], L). gets L = [1, 2, 3...
[ -0.00153350830078125, 0.0257568359375, 0.00213623046875, 0.017578125, -0.027099609375, 0.000667572021484375, 0.00872802734375, 0.01373291015625, -0.004730224609375, -0.027587890625, -0.010986328125, 0.0198974609375, 0.006744384765625, 0.0057373046875, 0.0125732421875, 0.0115966796875, ...
[ 181139, 171763, 1636, 136, 7311, 1295, 5303, 70, 10, 502, 4867, 87388, 693, 52721, 32786, 59121, 18151, 7, 756, 133063, 363, 80389, 339, 62163, 2203, 68252, 116, 138, 201, 4, 190, 3444, 67, 186, 184750 ]
[ 0.16455078125, 0.296142578125, 0.1732177734375, 0.1529541015625, 0.208740234375, 0.134765625, 0.2186279296875, 0.013397216796875, 0.03375244140625, 0.112060546875, 0.1419677734375, 0.2265625, 0.141357421875, 0.2435302734375, 0.1756591796875, 0.0498046875, 0.1290283203125, 0.0086364...
embed
79193538_c1
79193538
prolog
1
simplified grammar, I don't spot any direct left recursion, but S can result in a left recursion loop if NON_LETTERS and WORD are empty..? S --> NON_LETTERS WORD NON_LETTERS S | e NON_LETTERS --> non_letter NON_LETTERS | e WORD --> letter WORD | e And, fixing word into the tail recursion form would work. % ... <same a...
simplified grammar, I don't spot any direct left recursion, but S can result in a left recursion loop if NON_LETTERS and WORD are empty..? S --> NON_LETTERS WORD NON_LETTERS S | e NON_LETTERS --> non_letter NON_LETTERS | e WORD --> letter WORD | e And, fixing word into the tail recursion form would work. % ... <same a...
[ 0.0240478515625, 0.01300048828125, 0.00885009765625, 0.032958984375, -0.01031494140625, 0.0400390625, 0.0035247802734375, -0.0111083984375, 0.0157470703125, -0.0269775390625, 0.015869140625, -0.00860595703125, -0.010009765625, 0.0172119140625, 0.04248046875, 0.021728515625, 0.0063476...
[ 112892, 1029, 297, 122092, 147, 13162, 8951, 25737, 195625, 1830, 159, 831, 16750, 23, 40956, 2174, 79325, 866, 227403, 136, 601, 36639, 621, 201505, 28, 351, 63049, 31330, 30022, 2565, 3934, 46741, 3173, 4488, 21658, 164805, 56644, 22543, ...
[ 0.16064453125, 0.1402587890625, 0.1058349609375, 0.1295166015625, 0.0888671875, 0.08380126953125, 0.13623046875, 0.19873046875, 0.2244873046875, 0.0936279296875, 0.1119384765625, 0.043853759765625, 0.11328125, 0.0010986328125, 0.230224609375, 0.011749267578125, 0.1175537109375, 0.0...
embed
69368765_c0
69368765
prolog
0
Title: Find substrings of certain length Problem title: Find substrings of certain length Tags: prolog Problem: Find substrings of certain length I'm a beginner at prolog and I'm having trouble getting started with the following problem: Define the predicate partstr/3 , where the first argument is a list, that generate...
Find substrings of certain length Find substrings of certain length prolog Find Find substrings of certain length I'm a beginner at prolog and I'm having trouble getting started with the following problem: E.g.: If L = 2 then A = [1,2] and [2,3] , or if L = 2 then F=[1,2] and [2,3]. and so on... I feel like you would u...
[ -0.0013580322265625, -0.00762939453125, 0.017822265625, -0.0021820068359375, -0.01239013671875, 0.01409912109375, 0.003814697265625, 0.010498046875, 0.034423828125, -0.01019287109375, 0.01324462890625, 0.0166015625, -0.01165771484375, 0.01953125, 0.00762939453125, 0.01312255859375, 0...
[ 26040, 1614, 91693, 7, 111, 24233, 140909, 502, 4867, 9842, 1679, 99, 19441, 63134, 20949, 26859, 25632, 2967, 177, 4263, 339, 2203, 116, 7068, 62, 68252, 90173, 136, 155761, 2174, 563, 133063, 12319, 4527, 195625, 1830, 86869, 9077, 4034, ...
[ 0.16162109375, 0.26806640625, 0.287109375, 0.1195068359375, 0.1163330078125, 0.2099609375, 0.2042236328125, 0.1502685546875, 0.2193603515625, 0.03662109375, 0.07647705078125, 0.00689697265625, 0.0335693359375, 0.1209716796875, 0.0423583984375, 0.06707763671875, 0.05291748046875, 0....
embed
65884340_c1
65884340
prolog
1
200,000 inferences, 0.047 CPU in 0.042 seconds (112% CPU, 4266667 Lips) % 200,000 inferences, 0.063 CPU in 0.055 seconds (114% CPU, 3200000 Lips) % 200,000 inferences, 0.063 CPU in 0.064 seconds (98% CPU, 3200000 Lips) true. With GNU-Prolog: GNU Prolog 1.4.5 ?- run. % 36 ms % 74 ms % 206 ms % 738 ms Does SWI-Prolog in ...
200,000 inferences, 0.047 CPU in 0.042 seconds (112% CPU, 4266667 Lips) % 200,000 inferences, 0.063 CPU in 0.055 seconds (114% CPU, 3200000 Lips) % 200,000 inferences, 0.063 CPU in 0.064 seconds (98% CPU, 3200000 Lips) true. With GNU-Prolog: GNU Prolog 1.4.5 ?- run. % 36 ms % 74 ms % 206 ms % 738 ms Does SWI-Prolog in ...
[ 0.005584716796875, 0.005584716796875, 0.0089111328125, 0.0111083984375, -0.0274658203125, -0.0022125244140625, -0.005401611328125, -0.004058837890625, -0.00457763671875, -0.0225830078125, 0.00189971923828125, 0.0067138671875, -0.01708984375, 0.0026702880859375, 0.002899169921875, 0.005...
[ 1781, 4, 9508, 53498, 69098, 89678, 13330, 86039, 23, 13023, 94131, 27252, 12807, 4828, 77622, 18197, 156903, 15748, 11663, 11267, 2789, 181155, 13307, 11991, 29568, 17106, 165132, 10752, 4867, 1250, 615, 104867, 705, 11675, 4039, 68163, 15124,...
[ 0.165283203125, 0.04644775390625, 0.159912109375, 0.2315673828125, 0.1634521484375, 0.11328125, 0.119873046875, 0.199462890625, 0.048004150390625, 0.186767578125, 0.2027587890625, 0.0167236328125, 0.08209228515625, 0.0689697265625, 0.03887939453125, 0.04083251953125, 0.2015380859375,...
embed
23522532_c0
23522532
prolog
0
Title: Erlog returning strange values to erlang Problem title: Erlog returning strange values to erlang Tags: erlang, erlog, prolog Problem: Erlog returning strange values to erlang I am trying to use erlog for some testing stuff (See this repo: https://github.com/zkessin/erl_cache/tree/master/test ) and I am getting s...
Erlog returning strange values to erlang Erlog returning strange values to erlang erlang erlog prolog Erlog Value Erlog returning strange values to erlang I am trying to use erlog for some testing stuff (See this repo: https://github.com/zkessin/erl_cache/tree/master/test ) and I am getting something strange. I am basi...
[ 0.0213623046875, -0.0032958984375, 0.0047607421875, -0.013916015625, 0.00003600120544433594, 0.021484375, 0.0029754638671875, -0.0111083984375, -0.00124359130859375, -0.0004100799560546875, 0.00958251953125, 0.02099609375, -0.01385498046875, -0.003570556640625, 0.0260009765625, 0.00503...
[ 1004, 4867, 30646, 114453, 142424, 47, 72, 3066, 502, 190060, 31577, 134234, 93392, 32102, 1596, 56, 141, 62600, 47327, 6954, 53550, 34735, 63399, 179459, 123087, 9790, 2046, 34292, 51, 3509, 3299, 19770, 75101, 13315, 35782, 26785, 46132, 30...
[ 0.1231689453125, 0.2313232421875, 0.145751953125, 0.2030029296875, 0.1605224609375, 0.05718994140625, 0.107421875, 0.21875, 0.1195068359375, 0.2012939453125, 0.00177001953125, 0.08868408203125, 0.05401611328125, 0.002197265625, 0.038482666015625, 0.052642822265625, 0.0927734375, 0....
embed
58672428_c0
58672428
prolog
0
Title: how to implement logic operators in prolog Problem title: how to implement logic operators in prolog Tags: logical-operators, prolog Problem: how to implement logic operators in prolog I want to define the logical operators not, or, and, nand, nor and xor in prolog I have already tried this and(A,B) :- A,B. or(A...
how to implement logic operators in prolog how to implement logic operators in prolog logical-operators prolog Variable Result Variable1 Variable2 Restult how to implement logic operators in prolog I want to define the logical operators not, or, and, nand, nor and xor in prolog I have already tried this But I have to u...
[ 0.0166015625, 0.01031494140625, 0.01141357421875, 0.006805419921875, 0.00738525390625, 0.0224609375, -0.0003509521484375, 0.00640869140625, 0.0011138916015625, -0.005035400390625, -0.01361083984375, -0.037841796875, 0.002349853515625, -0.00787353515625, 0.0189208984375, 0.0045471191406...
[ 3642, 47, 29479, 62775, 39933, 7, 23, 502, 4867, 289, 206469, 84572, 2886, 126684, 304, 49756, 7136, 3444, 61924, 959, 707, 136, 24, 2208, 12488, 74706, 21771, 37842, 4527, 15824, 22936, 4358, 91736 ]
[ 0.1016845703125, 0.0867919921875, 0.2366943359375, 0.2056884765625, 0.26416015625, 0.09588623046875, 0.115478515625, 0.1805419921875, 0.23779296875, 0.10791015625, 0.22412109375, 0.1121826171875, 0.043304443359375, 0.13134765625, 0.0225982666015625, 0.06903076171875, 0.174560546875, ...
embed
24106831_c0
24106831
prolog
0
Title: ERROR: Unhandled exception: Out of local stack - Prolog Problem title: ERROR: Unhandled exception: Out of local stack - Prolog Tags: prolog Problem: ERROR: Unhandled exception: Out of local stack - Prolog I was trying to write a simple version of length/3 in Prolog. If you look at the standard implementation of ...
ERROR: Unhandled exception: Out of local stack - Prolog ERROR: Unhandled exception: Out of local stack - Prolog prolog ERROR Unhandled Out Prolog Head Tail H1copy T1copy ERROR: Unhandled exception: Out of local stack - Prolog I was trying to write a simple version of length/3 in Prolog. If you look at the standard impl...
[ 0.01397705078125, 0.03125, -0.00506591796875, 0.018798828125, 0.006683349609375, -0.0062255859375, -0.00909423828125, 0.005126953125, 0.021240234375, -0.057861328125, 0.0159912109375, -0.01263427734375, 0.0283203125, 0.016845703125, 0.039306640625, -0.0064697265625, 0.0216064453125, ...
[ 151206, 24638, 992, 79628, 71, 131527, 13538, 111, 4000, 177261, 1250, 4867, 502, 44816, 1218, 379, 572, 418, 137366, 384, 33022, 8781, 11389, 140909, 18113, 5570, 208124, 12477, 9844, 35064, 18151, 39555, 5701, 6528, 2046, 18499, 6056, 5351,...
[ 0.1376953125, 0.13037109375, 0.115234375, 0.2205810546875, 0.069091796875, 0.195556640625, 0.2130126953125, 0.2354736328125, 0.2012939453125, 0.2391357421875, 0.164794921875, 0.216796875, 0.1038818359375, 0.129150390625, 0.1185302734375, 0.09490966796875, 0.056243896484375, 0.01220...
embed
43646849_c0
43646849
prolog
0
Title: How to sort by 2nd or third element, in prolog? Problem title: How to sort by 2nd or third element, in prolog? Tags: sorting, prolog, list Problem: How to sort by 2nd or third element, in prolog? Here I have a naive_sort that sorts a list of lists by its first element. How would I go about changing it to sort by...
How to sort by 2nd or third element, in prolog? How to sort by 2nd or third element, in prolog? sorting prolog list How naive_sort Sortedlist is_sorted Item How to sort by 2nd or third element, in prolog? Here I have a naive_sort that sorts a list of lists by its first element. How would I go about changing it to sort ...
[ -0.0120849609375, 0.010009765625, 0.011474609375, 0.003662109375, -0.0093994140625, 0.011474609375, -0.0257568359375, -0.00958251953125, 0.0093994140625, -0.01312255859375, 0.0216064453125, 0.01416015625, -0.004669189453125, 0.000774383544921875, -0.0233154296875, -0.00927734375, 0.0...
[ 11249, 47, 12096, 390, 116, 2208, 707, 50960, 12830, 502, 4867, 23, 214, 5303, 24, 5844, 62351, 53666, 297, 6562, 83, 78426, 5117, 151134, 17932, 4358 ]
[ 0.06207275390625, 0.05413818359375, 0.221435546875, 0.12890625, 0.122802734375, 0.1231689453125, 0.0726318359375, 0.222412109375, 0.1744384765625, 0.146484375, 0.228271484375, 0.0249481201171875, 0.010406494140625, 0.1221923828125, 0.0863037109375, 0.1497802734375, 0.1893310546875, ...
embed
46613772_c0
46613772
prolog
0
Title: Prolog - Why does my definition for append_list not return the combined list? Problem title: Prolog - Why does my definition for append_list not return the combined list? Tags: prolog Problem: Prolog - Why does my definition for append_list not return the combined list? % appends an element to the beginning of a...
Prolog - Why does my definition for append_list not return the combined list? Prolog - Why does my definition for append_list not return the combined list? prolog append_element Prolog Why append_list NewList Prolog - Why does my definition for append_list not return the combined list? When I try to run append_list, I ...
[ -0.01226806640625, 0.031494140625, -0.0010223388671875, 0.015625, -0.007354736328125, 0.017822265625, -0.01806640625, 0.0079345703125, 0.01434326171875, -0.0142822265625, 0.01806640625, -0.015380859375, -0.01171875, 0.0169677734375, 0.00179290771484375, 0.00921630859375, 0.0363769531...
[ 1250, 4867, 44084, 80934, 114689, 71, 6562, 959, 30646, 70163, 5303, 502, 62766, 2356, 154663, 9790, 11675, 4420, 98320 ]
[ 0.109130859375, 0.18603515625, 0.0936279296875, 0.150634765625, 0.13671875, 0.0958251953125, 0.20166015625, 0.084228515625, 0.1220703125, 0.1605224609375, 0.155517578125, 0.06634521484375, 0.0906982421875, 0.06591796875, 0.1505126953125, 0.0159454345703125, 0.03515625, 0.0455627441...
embed
46632751_c0
46632751
prolog
0
Title: How to check certain elements in a list with anonymous variables Problem title: How to check certain elements in a list with anonymous variables Tags: prolog Problem: How to check certain elements in a list with anonymous variables Imagine having a list like L = [1, 4, _, 5, _] If I would want to check if 4 is a...
How to check certain elements in a list with anonymous variables How to check certain elements in a list with anonymous variables prolog How NewList How to check certain elements in a list with anonymous variables Imagine having a list like L = [1, 4, _, 5, _] If I would want to check if 4 is a member of this list, I c...
[ -0.01214599609375, -0.01446533203125, 0.004425048828125, 0.00138092041015625, -0.00811767578125, 0.012451171875, 0.0123291015625, 0.024658203125, 0.0184326171875, -0.0198974609375, 0.01904296875, -0.005096435546875, 0.00897216796875, -0.002777099609375, 0.00118255615234375, 0.005371093...
[ 11249, 47, 12765, 24233, 80854, 23, 5303, 678, 52184, 10821, 77336, 502, 4867, 2356, 154663, 133196, 339, 201, 190, 2174, 83, 32786, 105801, 30646, 87599, 29568, 11907, 12830, 12477, 831, 14858, 11343, 87388, 756, 68252 ]
[ 0.0406494140625, 0.0153045654296875, 0.2490234375, 0.0775146484375, 0.1851806640625, 0.060821533203125, 0.19482421875, 0.1102294921875, 0.2286376953125, 0.179931640625, 0.2320556640625, 0.116455078125, 0.1611328125, 0.137451171875, 0.25146484375, 0.0648193359375, 0.0775146484375, 0...
embed
8476563_c0
8476563
prolog
0
Title: Prolog inheritance rule Problem title: Prolog inheritance rule Tags: prolog Problem: Prolog inheritance rule To determine the animal is bulldog, I have the following predicates: bulldog(X):- body(X,muscular), weight(X,heavy), face(X,wrinkled), nose(X,pushed-in). If I had a dog, call him "fifi", and the following...
Prolog inheritance rule Prolog inheritance rule prolog Prolog Prolog inheritance rule To determine the animal is bulldog, I have the following predicates: If I had a dog, call him "fifi", and the following facts: When I enter the following statement: it will return true. Lets now say I had another bulldog "fofo" and fo...
[ 0.0220947265625, 0.0078125, -0.00836181640625, 0.027587890625, -0.008544921875, 0.0279541015625, 0.00116729736328125, 0.0146484375, -0.0111083984375, -0.038330078125, 0.0062255859375, -0.0235595703125, -0.015380859375, -0.00048828125, -0.0019378662109375, 0.006866455078125, 0.0148315...
[ 1250, 4867, 23, 3334, 217, 79986, 502, 83324, 70, 26249, 83, 50208, 38507, 87, 25632, 1653, 2063, 1636, 1902, 10269, 11782, 4049, 1029, 15824, 30957, 63805, 1221, 30646, 29568, 15700, 3584, 26458, 9844, 1884, 98320, 5, 831, 54, 125296, 62...
[ 0.1534423828125, 0.23779296875, 0.0601806640625, 0.1864013671875, 0.1336669921875, 0.1571044921875, 0.0865478515625, 0.1640625, 0.045654296875, 0.2191162109375, 0.1279296875, 0.1390380859375, 0.255859375, 0.011016845703125, 0.0288238525390625, 0.085205078125, 0.09503173828125, 0.03...
embed
679826_c0
679826
prolog
0
Title: Prolog Path Finding Problem title: Prolog Path Finding Tags: prolog Problem: Prolog Path Finding If I have the following predicate door , which declare that there is a door between the two rooms: door(office, hall). door(kitchen, office). door(hall, "dining room"). door(kitchen, cellar). door("dining room", kitc...
Prolog Path Finding Prolog Path Finding prolog Prolog Path Finding Prolog Path Finding If I have the following predicate door , which declare that there is a door between the two rooms: And the predicate doorstate which declares the state of a door: There is a pathway between two rooms if all of the doors between them ...
[ 0.0137939453125, 0.0019683837890625, 0.00177764892578125, 0.002532958984375, -0.00567626953125, 0.02587890625, -0.03271484375, -0.003814697265625, -0.00506591796875, -0.055908203125, -0.00054168701171875, -0.0004100799560546875, -0.025634765625, 0.00225830078125, -0.000843048095703125, ...
[ 1250, 4867, 108421, 26040, 214, 502, 25632, 1653, 2063, 67, 1911, 159978, 2685, 83, 17721, 70, 6626, 112875, 61340, 11341, 60875, 7514, 2174, 756, 9803, 33022, 79986, 47, 103882, 6044, 10 ]
[ 0.145263671875, 0.23193359375, 0.2177734375, 0.131103515625, 0.0152130126953125, 0.106201171875, 0.0269012451171875, 0.1240234375, 0.1688232421875, 0.048492431640625, 0.176025390625, 0.1229248046875, 0.0400390625, 0.022735595703125, 0.1427001953125, 0.0008544921875, 0.07061767578125,...
embed
53242473_c0
53242473
prolog
0
Title: How to find shortest path in prolog with weighted graph Problem title: How to find shortest path in prolog with weighted graph Tags: shortest-path, prolog, uniform-cost-search, depth-first-search Problem: How to find shortest path in prolog with weighted graph I have this code : link(a,b,4). link(a,c,2). link(b,...
How to find shortest path in prolog with weighted graph How to find shortest path in prolog with weighted graph shortest-path prolog uniform-cost-search depth-first-search How TDist TD1 TD2 How to find shortest path in prolog with weighted graph I have this code : This will follow a depth first search strategy, but the...
[ 0.0169677734375, 0.0274658203125, -0.00885009765625, 0.0120849609375, -0.01165771484375, 0.0016326904296875, -0.00482177734375, -0.00274658203125, 0.00170135498046875, -0.060302734375, 0.00341796875, -0.0302734375, -0.01483154296875, 0.01531982421875, 0.00063323974609375, 0.02551269531...
[ 11249, 7413, 16610, 525, 60875, 502, 4867, 678, 57888, 297, 41382, 23, 128405, 61514, 587, 271, 86250, 168867, 13448, 117295, 1419, 304, 18151, 5117, 33938, 113857, 7722, 29479 ]
[ 0.013397216796875, 0.10009765625, 0.2117919921875, 0.1737060546875, 0.2103271484375, 0.11572265625, 0.208740234375, 0.0379638671875, 0.1824951171875, 0.05511474609375, 0.190185546875, 0.0179290771484375, 0.1729736328125, 0.106201171875, 0.017059326171875, 0.0047607421875, 0.084594726...
embed
72166373_c0
72166373
prolog
0
Title: SWI Prolog PIO DCGs can&#x27;t deal with null bytes Problem title: SWI Prolog PIO DCGs can&#x27;t deal with null bytes Tags: prolog, dcg Problem: SWI Prolog PIO DCGs can't deal with null bytes I have a file that is just the letter a . I can "parse" it with this DCG: identity([]) --> []. identity([H|T]) --> [H], ...
SWI Prolog PIO DCGs can&#x27;t deal with null bytes SWI Prolog PIO DCGs can&#x27;t deal with null bytes prolog dcg SWI Prolog PIO DCGs phrase_from_file jah.txt NUL SWI Prolog PIO DCGs can't deal with null bytes I have a file that is just the letter a . I can "parse" it with this DCG: This is correct-- but when I add a ...
[ 0.0322265625, -0.0069580078125, 0.0233154296875, 0.01953125, -0.01275634765625, 0.0108642578125, 0.0162353515625, -0.0164794921875, 0.0045166015625, -0.00885009765625, -0.01129150390625, -0.0184326171875, -0.01434326171875, 0.006591796875, 0.010498046875, 0.01318359375, 0.02209472656...
[ 159, 38969, 1250, 4867, 436, 17780, 391, 56367, 831, 3768, 35142, 678, 56574, 390, 502, 104, 238, 113860, 161063, 29822, 77740, 124326, 541, 11176, 7, 18, 1636, 11435, 1660, 31330, 10, 2500, 184, 903, 26785, 15190, 67, 81887, 1305, 41, ...
[ 0.037445068359375, 0.2073974609375, 0.150634765625, 0.2261962890625, 0.05548095703125, 0.1492919921875, 0.05841064453125, 0.172607421875, 0.0303955078125, 0.0419921875, 0.1287841796875, 0.037994384765625, 0.2210693359375, 0.14111328125, 0.104736328125, 0.004730224609375, 0.0038452148...
embed
66248785_c0
66248785
prolog
0
Title: Predicate should concatenate and reverse, but always returns false Problem title: Predicate should concatenate and reverse, but always returns false Tags: prolog Problem: Predicate should concatenate and reverse, but always returns false I am new at Prolog and just started practising the built-in list predicates...
Predicate should concatenate and reverse, but always returns false Predicate should concatenate and reverse, but always returns false prolog Predicate Predicate should concatenate and reverse, but always returns false I am new at Prolog and just started practising the built-in list predicates. So I was trying to write ...
[ 0.014892578125, 0.01513671875, 0.002960205078125, -0.0003223419189453125, 0.004608154296875, 0.03125, 0.0120849609375, 0.0233154296875, 0.006591796875, 0.007293701171875, 0.0111083984375, 0.0078125, -0.019287109375, -0.0033111572265625, -0.005645751953125, -0.00176239013671875, 0.016...
[ 7145, 2063, 67, 5608, 158, 33478, 76, 136, 39531, 184, 1284, 11343, 30646, 98320, 502, 4867, 1250, 88303, 73, 5303, 1653, 1636, 31577, 33022, 18151, 6626, 12989, 60887, 107, 37676, 2967, 6528, 15400, 18, 41206, 9007, 3611, 129678, 617, 36...
[ 0.189453125, 0.2269287109375, 0.08544921875, 0.1124267578125, 0.11279296875, 0.1851806640625, 0.1356201171875, 0.059722900390625, 0.2216796875, 0.16064453125, 0.034210205078125, 0.1466064453125, 0.1807861328125, 0.2398681640625, 0.08697509765625, 0.1666259765625, 0.0823974609375, 0...
embed
55269703_c0
55269703
prolog
0
Title: How do I create a &quot;deep&quot; version of this prolog predicate that will affect sublists? Problem title: How do I create a &quot;deep&quot; version of this prolog predicate that will affect sublists? Tags: list, prolog Problem: How do I create a "deep" version of this prolog predicate that will affect subli...
How do I create a &quot;deep&quot; version of this prolog predicate that will affect sublists? How do I create a &quot;deep&quot; version of this prolog predicate that will affect sublists? list prolog How How do I create a "deep" version of this prolog predicate that will affect sublists? My current predicate eo will ...
[ 0.0284423828125, 0.0125732421875, 0.003326416015625, -0.005859375, -0.0093994140625, 0.016357421875, -0.009521484375, 0.003143310546875, 0.0235595703125, -0.01409912109375, 0.025390625, -0.00946044921875, -0.00201416015625, 0.0072021484375, 0.00799560546875, 0.00124359130859375, 0.02...
[ 11249, 28282, 10, 123041, 41502, 11389, 903, 502, 4867, 1653, 2063, 67, 1221, 52490, 1614, 6562, 5303, 43581, 10240, 87388, 11907, 3789, 12830, 72134, 678, 5117, 27489, 50339, 3444, 16401, 9077 ]
[ 0.064453125, 0.15966796875, 0.045562744140625, 0.2369384765625, 0.0292205810546875, 0.2056884765625, 0.0557861328125, 0.1551513671875, 0.200927734375, 0.154541015625, 0.1953125, 0.10601806640625, 0.050201416015625, 0.196044921875, 0.2025146484375, 0.1944580078125, 0.15087890625, 0....
embed
18996933_c0
18996933
prolog
0
Title: Iterative program for sum of list in prolog Problem title: Iterative program for sum of list in prolog Tags: list, prolog, iteration, recursion Problem: Iterative program for sum of list in prolog Hey I am a little bit confused over prolog recursion and iteration. I am giving code for sum of a list in recursion ...
Iterative program for sum of list in prolog Iterative program for sum of list in prolog list prolog iteration recursion Iterative add_r add_i List Sum Iterative program for sum of list in prolog Hey I am a little bit confused over prolog recursion and iteration. I am giving code for sum of a list in recursion and itera...
[ -0.001251220703125, -0.000347137451171875, 0.0179443359375, 0.010009765625, -0.03662109375, 0.020263671875, -0.00106048583984375, 0.02099609375, 0.003021240234375, -0.0301513671875, 0.027099609375, -0.01507568359375, -0.0106201171875, 0.004974365234375, 0.02392578125, -0.00469970703125...
[ 87, 720, 45023, 1528, 100, 10554, 111, 5303, 23, 502, 4867, 17, 195625, 1830, 15190, 454, 42, 14, 32036, 36335, 28240, 10176, 4785, 55681, 5281, 136, 2320, 68772, 18151, 107013, 3714, 12638, 2856, 26785, 3688, 83, 5844, 55501, 1543, 44691...
[ 0.076171875, 0.254638671875, 0.1934814453125, 0.205078125, 0.043304443359375, 0.2230224609375, 0.1024169921875, 0.1734619140625, 0.066162109375, 0.1494140625, 0.227783203125, 0.091552734375, 0.2025146484375, 0.1187744140625, 0.166015625, 0.1043701171875, 0.172119140625, 0.169311523...
embed
36113408_c0
36113408
prolog
0
Title: Prolog List Neighbour of a Element Problem title: Prolog List Neighbour of a Element Tags: element, list, prolog Problem: Prolog List Neighbour of a Element I am having problems with list of prolog. I want to make this: [1,2,3,4,5] [5,6,9,12,10] You take a number for example 3, and you do a plus operation with t...
Prolog List Neighbour of a Element Prolog List Neighbour of a Element element list prolog Prolog List Neighbour Element sum_list Prolog List Neighbour of a Element I am having problems with list of prolog. I want to make this: You take a number for example 3, and you do a plus operation with the neighbours so the opera...
[ 0.0032958984375, 0.0181884765625, 0.00714111328125, 0.005279541015625, -0.00933837890625, 0.013427734375, -0.0181884765625, 0.009521484375, 0.033935546875, -0.052490234375, -0.0072021484375, -0.005126953125, -0.011962890625, 0.0186767578125, 0.01226806640625, 0.014404296875, 0.007293...
[ 1250, 4867, 32036, 799, 6958, 38648, 111, 48325, 12830, 5303, 502, 10554, 6562, 44402, 3444, 3249, 903, 5646, 14012, 27781, 138, 1001, 41018, 678, 108, 116, 85398, 130262, 2203, 3569, 5117, 4568, 48339, 114135, 106, 2685, 38246, 16916, 2967...
[ 0.1705322265625, 0.2333984375, 0.16845703125, 0.0789794921875, 0.1492919921875, 0.1519775390625, 0.07080078125, 0.186767578125, 0.1981201171875, 0.1490478515625, 0.15576171875, 0.1519775390625, 0.191162109375, 0.09027099609375, 0.032073974609375, 0.03997802734375, 0.03826904296875, ...
embed
43870552_c0
43870552
prolog
0
Title: Prolog invert elements into a list Problem title: Prolog invert elements into a list Tags: prolog Problem: Prolog invert elements into a list I need some words about my assignment and my solution: Define a statement to invert two parameters, one list and other second list which has its elements in reverse order....
Prolog invert elements into a list Prolog invert elements into a list prolog Prolog Example Result Prolog invert elements into a list I need some words about my assignment and my solution: Define a statement to invert two parameters, one list and other second list which has its elements in reverse order. We CANT use re...
[ 0.00121307373046875, 0.007476806640625, -0.0026702880859375, 0.0208740234375, -0.03125, 0.004486083984375, -0.0169677734375, 0.0002307891845703125, 0.001861572265625, -0.014404296875, 0.0186767578125, -0.006622314453125, -0.008544921875, 0.0279541015625, -0.0120849609375, 0.01794433593...
[ 1250, 4867, 131983, 80854, 3934, 5303, 10, 502, 89536, 126684, 3871, 34153, 95486, 29806, 64552, 63805, 6626, 171859, 1632, 3789, 17932, 23, 39531, 184, 12989, 33996, 4527, 88303, 73, 26171, 101637, 107730, 5117, 6305 ]
[ 0.1510009765625, 0.23193359375, 0.2464599609375, 0.203857421875, 0.108642578125, 0.1986083984375, 0.002410888671875, 0.123046875, 0.11376953125, 0.0888671875, 0.0249481201171875, 0.0243682861328125, 0.063232421875, 0.043975830078125, 0.07025146484375, 0.16748046875, 0.092529296875, ...
embed
24618558_c0
24618558
prolog
0
Title: Prolog - Get maximum calculation of list elements Problem title: Prolog - Get maximum calculation of list elements Tags: prolog Problem: Prolog - Get maximum calculation of list elements I am working with PROLOG for 2 weeks now and I can't manage to solve the following: Define u/3, that identifies the best possi...
Prolog - Get maximum calculation of list elements Prolog - Get maximum calculation of list elements prolog Prolog Get Max Term List Left Right T1-T2 LeftTerm RightTerm Prolog - Get maximum calculation of list elements I am working with PROLOG for 2 weeks now and I can't manage to solve the following: Define u/3, that i...
[ 0.0045166015625, 0.01495361328125, 0.0181884765625, -0.000644683837890625, -0.0240478515625, 0.0123291015625, 0.007080078125, -0.0020751953125, 0.0245361328125, -0.0146484375, 0.0164794921875, -0.0025787353515625, -0.007598876953125, -0.01019287109375, 0.004547119140625, -0.01745605468...
[ 1250, 4867, 20779, 38132, 74481, 1363, 5303, 80854, 502, 9920, 2994, 39, 32036, 2480, 90911, 384, 20268, 618, 304, 35484, 20697, 678, 10514, 47510, 40859, 5036, 831, 18, 111240, 86869, 25632, 262, 64552, 75, 18113, 42485, 2965, 7722, 8962, ...
[ 0.180908203125, 0.26611328125, 0.0997314453125, 0.23193359375, 0.2008056640625, 0.0596923828125, 0.1927490234375, 0.1953125, 0.1240234375, 0.2103271484375, 0.2144775390625, 0.1103515625, 0.1888427734375, 0.076904296875, 0.093505859375, 0.03399658203125, 0.07177734375, 0.02105712890...
embed
4576570_c0
4576570
prolog
0
Title: passing back answers in prolog Problem title: passing back answers in prolog Tags: recursion, prolog Problem: passing back answers in prolog i have this code than runs perfectly .. returns a true .. when tracing the values are ok .. but its not returning back the answer .. it acts strangely when it ends and alwa...
passing back answers in prolog passing back answers in prolog recursion prolog Capacity RemainingNumbers Bins ExtendedBins Element Rest Temp NewList Result passing back answers in prolog i have this code than runs perfectly .. returns a true .. when tracing the values are ok .. but its not returning back the answer .. ...
[ 0.01416015625, 0.0198974609375, 0.0029144287109375, 0.018310546875, -0.01007080078125, 0.01519775390625, -0.01519775390625, 0.005035400390625, 0.0225830078125, -0.005615234375, 0.011474609375, -0.0003509521484375, -0.00518798828125, 0.01239013671875, 0.01373291015625, 0.00994873046875,...
[ 452, 6953, 4420, 35166, 7, 23, 502, 4867, 195625, 1830, 14304, 16666, 35548, 5425, 48325, 49756, 37446, 154663, 126684, 18151, 127877, 169123, 30646, 29568, 1152, 21896, 142424, 3664, 959, 214, 27992, 114453, 3564, 11343, 201505, 5303, 143034, ...
[ 0.088134765625, 0.0290679931640625, 0.234375, 0.213623046875, 0.034423828125, 0.0113525390625, 0.140869140625, 0.2181396484375, 0.1527099609375, 0.03900146484375, 0.03729248046875, 0.114501953125, 0.0125732421875, 0.032379150390625, 0.06378173828125, 0.04071044921875, 0.054931640625,...
embed
10041672_c0
10041672
prolog
0
Title: Delete predicates from the list in Prolog Problem title: Delete predicates from the list in Prolog Tags: prolog, lambda Problem: Delete predicates from the list in Prolog I want to delete all predicates named a from the list. The result must be as shown below: ?- delete_all(a(_), [a(1),a(2),a(3),b(1)], R). R = [...
Delete predicates from the list in Prolog Delete predicates from the list in Prolog prolog lambda the Delete Prolog delete_all remove_all Delete predicates from the list in Prolog I want to delete all predicates named a from the list. The result must be as shown below: Please, do not offer me built in solutions of SWI ...
[ -0.007293701171875, 0.011474609375, 0.00185394287109375, 0.0167236328125, -0.02001953125, 0.015625, 0.0228271484375, -0.00238037109375, 0.0079345703125, -0.0279541015625, 0.0147705078125, -0.01019287109375, -0.021728515625, 0.004669189453125, 0.00885009765625, 0.019775390625, 0.00561...
[ 262, 46485, 1653, 2063, 1636, 1295, 5303, 23, 1250, 4867, 502, 6492, 85, 154109, 5584, 87388, 3444, 47, 756, 24, 4806, 10, 16750, 8110, 127887, 35064, 88303, 51347, 38969, 18151, 2022, 708, 10752, 37842, 25632, 20697, 155965, 34627, 29568 ]
[ 0.14111328125, 0.174560546875, 0.222900390625, 0.2337646484375, 0.117919921875, 0.106201171875, 0.184814453125, 0.052093505859375, 0.1807861328125, 0.2308349609375, 0.115478515625, 0.1295166015625, 0.08502197265625, 0.20751953125, 0.1402587890625, 0.12451171875, 0.054412841796875, ...
embed
33698337_c0
33698337
prolog
0
Title: How to store the value of a recursive function in a list in prolog? Problem title: How to store the value of a recursive function in a list in prolog? Tags: list, recursion, prolog Problem: How to store the value of a recursive function in a list in prolog? My assignment is: Given the following definition of fun...
How to store the value of a recursive function in a list in prolog? How to store the value of a recursive function in a list in prolog? list recursion prolog How How to store the value of a recursive function in a list in prolog? My assignment is: My code so far is: It is working but it is taking forever to show the va...
[ 0.01177978515625, -0.0034637451171875, -0.0027618408203125, -0.0142822265625, -0.005859375, 0.007354736328125, -0.0086669921875, 0.017822265625, 0.0086669921875, -0.033447265625, 0.01080322265625, -0.00775146484375, -0.01806640625, -0.01263427734375, 0.01336669921875, 0.005340576171875...
[ 11249, 47, 4343, 34292, 195625, 5844, 32354, 23, 5303, 502, 4867, 1830, 70, 95486, 18151, 2060, 20697, 35971, 136993, 7639, 142424, 541, 977, 7085, 2633, 3714, 3642, 1528, 4271, 56 ]
[ 0.05828857421875, 0.050506591796875, 0.2237548828125, 0.209716796875, 0.22314453125, 0.15478515625, 0.187255859375, 0.0755615234375, 0.1995849609375, 0.151123046875, 0.2484130859375, 0.0235595703125, 0.00445556640625, 0.0794677734375, 0.08349609375, 0.0784912109375, 0.05816650390625,...
embed
54118490_c0
54118490
prolog
0
Title: Using &#x27;or&#x27; in Prolog Problem title: Using &#x27;or&#x27; in Prolog Tags: prolog Problem: Using 'or' in Prolog For some reason, these two pieces of code aren't equivalent, with the first producing very strange (and incorrect results). -- Method 1 highestElement1([],A,A). highestElement1([H|T],A,Max) :- ...
Using &#x27;or&#x27; in Prolog Using &#x27;or&#x27; in Prolog prolog Using Prolog Method highestElement1 Max highestElement2 Using 'or' in Prolog For some reason, these two pieces of code aren't equivalent, with the first producing very strange (and incorrect results). From my understanding, they should be identical, a...
[ 0.00872802734375, 0.009521484375, 0.0069580078125, -0.0106201171875, -0.0150146484375, 0.0242919921875, -0.0159912109375, 0.0002918243408203125, 0.009521484375, -0.0311279296875, 0.01904296875, -0.01239013671875, -0.0123291015625, -0.023681640625, 0.01336669921875, -0.011962890625, 0...
[ 345, 3768, 748, 1250, 4867, 54764, 23, 502, 74644, 167375, 19929, 418, 9920, 304, 6626, 126371, 18151, 125381, 18, 183234, 5117, 27024, 4552, 114453, 214552, 50339, 100094, 5608, 31943, 6827, 18822, 71, 103510, 14858, 214, 621, 198343, 6002, ...
[ 0.080322265625, 0.16259765625, 0.2802734375, 0.158203125, 0.261474609375, 0.0089111328125, 0.00811767578125, 0.1224365234375, 0.1334228515625, 0.201904296875, 0.1712646484375, 0.040802001953125, 0.1395263671875, 0.06109619140625, 0.063720703125, 0.0653076171875, 0.158447265625, 0.0...
embed
56408463_c0
56408463
prolog
0
Title: How to make sure that only 3 out of the 5 numbers are the same? Problem title: How to make sure that only 3 out of the 5 numbers are the same? Tags: clpfd, prolog Problem: How to make sure that only 3 out of the 5 numbers are the same? I am using clpfd and I have 5 variables, how can I make sure that maximum 3 o...
How to make sure that only 3 out of the 5 numbers are the same? How to make sure that only 3 out of the 5 numbers are the same? clpfd prolog How How to make sure that only 3 out of the 5 numbers are the same? I am using clpfd and I have 5 variables, how can I make sure that maximum 3 out of these 5 variables will be th...
[ -0.007415771484375, 0.0228271484375, 0.00830078125, -0.0205078125, 0.003509521484375, 0.001953125, -0.0019989013671875, 0.01556396484375, 0.0155029296875, -0.0299072265625, -0.01080322265625, -0.033935546875, 0.027587890625, 0.017578125, 0.00958251953125, 0.0059814453125, -0.00286865...
[ 11249, 47, 3249, 9077, 450, 4734, 138, 1810, 111, 190, 101935, 621, 5701, 33139, 39557, 71, 502, 4867, 17368, 765, 77336, 3642, 831, 38132, 1221, 106, 116, 107003, 4, 201, 959, 5351, 4488, 1884, 903, 29806, 37202, 5792, 4989, 149016, 86...
[ 0.08251953125, 0.0504150390625, 0.1195068359375, 0.2030029296875, 0.022796630859375, 0.149658203125, 0.2213134765625, 0.09539794921875, 0.035186767578125, 0.178955078125, 0.197998046875, 0.0806884765625, 0.2208251953125, 0.07867431640625, 0.10791015625, 0.1654052734375, 0.08935546875...
embed
71905649_c0
71905649
prolog
0
Title: Extending and/or parametric object as attribute Problem title: Extending and/or parametric object as attribute Tags: swi-prolog, prolog, parametric-polymorphism, class, logtalk Problem: Extending and/or parametric object as attribute As I understand now from Array as object I have to use parametric object, becau...
Extending and/or parametric object as attribute Extending and/or parametric object as attribute swi-prolog prolog parametric-polymorphism class logtalk Extending a2d end_object Reference Extending and/or parametric object as attribute As I understand now from Array as object I have to use parametric object, because usi...
[ 0.0030364990234375, 0.0211181640625, -0.00994873046875, -0.0034637451171875, -0.0023345947265625, 0.0020751953125, -0.00009775161743164062, 0.0235595703125, 0.00106048583984375, -0.0224609375, 0.0306396484375, -0.0035552978515625, -0.0030517578125, 0.00567626953125, -0.0167236328125, -...
[ 5443, 67, 33770, 136, 64, 121, 186518, 36746, 237, 150380, 2452, 3454, 4867, 502, 135545, 178851, 18507, 12684, 139109, 10, 304, 71, 3564, 187694, 215996, 748, 28219, 1295, 69253, 53, 765, 4527, 17368, 351, 6276, 13146, 35388, 33657, 15549,...
[ 0.10986328125, 0.2012939453125, 0.119140625, 0.01385498046875, 0.08465576171875, 0.147216796875, 0.2254638671875, 0.213134765625, 0.1134033203125, 0.2303466796875, 0.141845703125, 0.06280517578125, 0.1529541015625, 0.0596923828125, 0.04376220703125, 0.11328125, 0.2291259765625, 0.0...
embed
13112091_c0
13112091
prolog
0
Title: prolog coursework - ailog Problem title: prolog coursework - ailog Tags: prolog, logic Problem: prolog coursework - ailog I never used SWI Prolog or AIlog but I assume the syntax is the same (might be wrong). I am having problem when comparing a number to a stored variable, like: " is 10 < age_limit? ". As I get...
prolog coursework - ailog prolog coursework - ailog prolog logic age_limit Error AGE CLASSIFICATION patient_child patient_adult prolog coursework - ailog I never used SWI Prolog or AIlog but I assume the syntax is the same (might be wrong). I am having problem when comparing a number to a stored variable, like: " is 10...
[ 0.0002422332763671875, -0.001739501953125, 0.003997802734375, 0.003753662109375, -0.00109100341796875, 0.012939453125, -0.0004329681396484375, 0.014404296875, 0.006927490234375, -0.032958984375, 0.015380859375, -0.003326416015625, -0.0036468505859375, -0.0038299560546875, 0.0184326171875...
[ 502, 4867, 15411, 18244, 1300, 62775, 32070, 454, 93343, 212059, 75930, 129636, 98529, 122112, 37896, 206, 38472, 181648, 8306, 11814, 159, 38969, 1250, 38730, 6002, 86531, 5701, 44691, 2967, 37397, 14012, 4343, 77336, 83, 209, 4426, 18468, 3...
[ 0.131591796875, 0.2081298828125, 0.076904296875, 0.123046875, 0.0804443359375, 0.133544921875, 0.169189453125, 0.007476806640625, 0.2060546875, 0.1712646484375, 0.1861572265625, 0.13330078125, 0.1082763671875, 0.10723876953125, 0.1773681640625, 0.0631103515625, 0.1165771484375, 0.1...
embed
22124644_c0
22124644
prolog
0
Title: Prolog - Substitute atom with value and evaluate Problem title: Prolog - Substitute atom with value and evaluate Tags: prolog Problem: Prolog - Substitute atom with value and evaluate Given Result = 4* (3*x)^3*3, and VarValue = x:2, How can I get the following output Value = 2592 ; if I have to defined the follo...
Prolog - Substitute atom with value and evaluate Prolog - Substitute atom with value and evaluate prolog Prolog Substitute Result VarValue x:2 Value x:X is_list Prolog - Substitute atom with value and evaluate Given and How can I get the following output if I have to defined the following predicate: I tried doing the f...
[ -0.01165771484375, 0.002197265625, 0.00762939453125, 0.013671875, 0.0208740234375, 0.0196533203125, -0.000759124755859375, 0.0022430419921875, 0.022216796875, -0.000885009765625, -0.007354736328125, 0.0152587890625, 0.003692626953125, -0.013671875, 0.011474609375, -0.01318359375, 0.0...
[ 1250, 4867, 8273, 13480, 67, 34627, 678, 34292, 136, 151575, 13, 502, 126684, 3323, 856, 50770, 1022, 304, 190060, 1542, 83, 6562, 77878, 11249, 831, 2046, 25632, 140992, 2174, 765, 61924, 1653, 2063, 37842, 20594, 31577, 161740, 1193, 3934...
[ 0.1461181640625, 0.2257080078125, 0.126953125, 0.1942138671875, 0.0237884521484375, 0.17333984375, 0.094970703125, 0.1689453125, 0.039520263671875, 0.1412353515625, 0.053192138671875, 0.0885009765625, 0.136962890625, 0.1402587890625, 0.084228515625, 0.159912109375, 0.06298828125, 0...
embed
67425957_c0
67425957
prolog
0
Title: Understanding constraints in Prolog Problem title: Understanding constraints in Prolog Tags: clpfd, prolog Problem: Understanding constraints in Prolog Im trying to get familiar with constraints in Prolog and I'm having trouble understanding the program below: sudoku(Rows) :- length(Rows, 9), maplist(same_length...
Understanding constraints in Prolog Understanding constraints in Prolog clpfd prolog Understanding Prolog Rows same_length all_distinct Columns Ns1 Ns2 Ns3 Understanding constraints in Prolog Im trying to get familiar with constraints in Prolog and I'm having trouble understanding the program below: If anyone can help ...
[ 0.01055908203125, 0.001617431640625, 0.01470947265625, 0.001556396484375, 0.006256103515625, -0.01220703125, -0.0084228515625, 0.0059814453125, 0.00628662109375, -0.03369140625, -0.01361083984375, -0.02587890625, 0.002197265625, -0.000629425048828125, -0.01611328125, 0.013916015625, ...
[ 9626, 144057, 158, 2816, 4288, 1250, 4867, 23, 39557, 71, 502, 96190, 5701, 23986, 38893, 233987, 363, 16031, 63134, 100094, 1528, 35064, 7565, 18151, 28219, 86869, 17368 ]
[ 0.1138916015625, 0.0596923828125, 0.107666015625, 0.1898193359375, 0.1676025390625, 0.1507568359375, 0.2421875, 0.0382080078125, 0.0240936279296875, 0.055694580078125, 0.0870361328125, 0.1790771484375, 0.0679931640625, 0.047637939453125, 0.0689697265625, 0.1639404296875, 0.0415039062...
embed
69733626_c0
69733626
prolog
0
Title: Prolog syntax error: . or operator expected after expression 1 error(s) compilation failed Problem title: Prolog syntax error: . or operator expected after expression 1 error(s) compilation failed Tags: prolog Problem: Prolog syntax error: . or operator expected after expression 1 error(s) compilation failed I a...
Prolog syntax error: . or operator expected after expression 1 error(s) compilation failed Prolog syntax error: . or operator expected after expression 1 error(s) compilation failed prolog Prolog TWO FOUR Prolog syntax error: . or operator expected after expression 1 error(s) compilation failed I am trying to solve the...
[ 0, -0.0020751953125, 0.0026397705078125, 0.0252685546875, -0.02099609375, -0.0111083984375, -0.02294921875, 0.0155029296875, 0.00078582763671875, -0.01165771484375, -0.00537109375, -0.025634765625, -0.004425048828125, 0.00335693359375, -0.00311279296875, -0.0184326171875, -0.00094223...
[ 1250, 4867, 6002, 86531, 18499, 5, 707, 39933, 84751, 7103, 125195, 106, 98352, 165523, 502, 43789, 563, 76234, 31577, 86869, 2967, 136791, 8962, 104192, 17368, 11853, 83, 759, 18151, 4358 ]
[ 0.1865234375, 0.245361328125, 0.0958251953125, 0.14404296875, 0.1795654296875, 0.033050537109375, 0.05926513671875, 0.202880859375, 0.1959228515625, 0.090087890625, 0.1572265625, 0.0927734375, 0.14697265625, 0.17529296875, 0.1036376953125, 0.10028076171875, 0.0947265625, 0.17895507...
embed
35695421_c0
35695421
prolog
0
Title: How to access list from prolog Knowledge base Problem title: How to access list from prolog Knowledge base Tags: prolog Problem: How to access list from prolog Knowledge base this is the element in my knowledge base, (exactly like this): DataBase = [book('A',[author('B','C')],154,12,6,[publishedYear(1990)]), boo...
How to access list from prolog Knowledge base How to access list from prolog Knowledge base prolog prolog How Knowledge DataBase Singleton static_procedure How to access list from prolog Knowledge base this is the element in my knowledge base, (exactly like this): It is in the same pl-file with our other predicates. Ho...
[ 0.04541015625, 0.018798828125, 0.007080078125, 0.0150146484375, 0.0115966796875, 0.0213623046875, -0.026611328125, 0.0203857421875, 0.00958251953125, -0.078125, 0.01025390625, 0.0203857421875, -0.00970458984375, 0.0002803802490234375, 0.001251220703125, -0.01416015625, 0.011596679687...
[ 11249, 17203, 5303, 1295, 502, 4867, 191428, 3647, 47, 11809, 63473, 43609, 1507, 201939, 232578, 12830, 51359, 5701, 6456, 29822, 1653, 2063, 19048, 66236, 442, 3444, 76199, 18499, 20939, 831, 18, 77336, 11001 ]
[ 0.038970947265625, 0.2174072265625, 0.2457275390625, 0.1427001953125, 0.16455078125, 0.273193359375, 0.16943359375, 0.216552734375, 0.02227783203125, 0.072265625, 0.133056640625, 0.139892578125, 0.19677734375, 0.1470947265625, 0.158447265625, 0.1151123046875, 0.1407470703125, 0.023...
embed
18917053_c0
18917053
prolog
0
Title: can I do this in AllegroGraph prolog? Problem title: can I do this in AllegroGraph prolog? Tags: allegrograph, rdf, prolog, sparql Problem: can I do this in AllegroGraph prolog? I have an RDF file and I need to extract some information from it in a single line. Now, I'm using AllegroGraph with Prolog query engin...
can I do this in AllegroGraph prolog? can I do this in AllegroGraph prolog? allegrograph rdf prolog sparql AllegroGraph rdfs:label can I do this in AllegroGraph prolog? I have an RDF file and I need to extract some information from it in a single line. Now, I'm using AllegroGraph with Prolog query engin : to get the re...
[ 0.0120849609375, -0.01031494140625, -0.005523681640625, 0.032958984375, -0.023193359375, -0.00640869140625, -0.006988525390625, 0.023193359375, 0.0032806396484375, -0.033935546875, 0.0089111328125, -0.00799560546875, -0.000579833984375, -0.014404296875, 0.001434326171875, 0.009765625, ...
[ 831, 54, 903, 4344, 8407, 37878, 11727, 502, 4867, 747, 41382, 4216, 420, 99247, 17447, 152526, 23, 627, 38997, 11435, 3871, 125663, 4677, 11001, 13315, 1250, 41, 1294, 103244, 2046, 50339, 21115, 756, 15555, 111, 705, 2109, 7136, 79315, ...
[ 0.042236328125, 0.049102783203125, 0.055419921875, 0.0885009765625, 0.1650390625, 0.148681640625, 0.1300048828125, 0.10723876953125, 0.2039794921875, 0.0438232421875, 0.16455078125, 0.01373291015625, 0.095703125, 0.14013671875, 0.0982666015625, 0.200439453125, 0.062347412109375, 0....
embed
54067373_c0
54067373
prolog
0
Title: Prolog - Infinite loop when closing SWI-prolog Problem title: Prolog - Infinite loop when closing SWI-prolog Tags: prolog Problem: Prolog - Infinite loop when closing SWI-prolog I've written the code below in Prolog: go :- write(">>"), read(X), process(X). And do various things with process/1. To catch any unkno...
Prolog - Infinite loop when closing SWI-prolog Prolog - Infinite loop when closing SWI-prolog prolog Prolog Infinite SWI-prolog Prolog - Infinite loop when closing SWI-prolog I've written the code below in Prolog: And do various things with process/1. To catch any unknown commands I've added: The problem is when exitin...
[ 0.031982421875, 0.00946044921875, 0.0050048828125, -0.004241943359375, -0.0205078125, -0.0078125, 0.018310546875, 0.003326416015625, 0.00183868408203125, -0.052978515625, 0.010498046875, 0.006988525390625, -0.022216796875, 0.01171875, 0.03125, 0.002166748046875, 0.01458740234375, -...
[ 1250, 4867, 134322, 13, 40956, 3229, 20450, 6953, 159, 38969, 3454, 502, 59121, 18151, 35064, 678, 9433, 11583, 105556, 69723, 75101, 49814, 2967, 82230, 214, 9, 10752, 76896, 8108, 3638, 3564, 1528, 62163, 3934, 142, 54241, 2367, 159029, 1...
[ 0.151123046875, 0.2138671875, 0.15087890625, 0.06768798828125, 0.2169189453125, 0.03985595703125, 0.170654296875, 0.1072998046875, 0.07598876953125, 0.2161865234375, 0.12353515625, 0.1058349609375, 0.0037841796875, 0.10125732421875, 0.0265655517578125, 0.032257080078125, 0.1066894531...
embed
65658118_c0
65658118
prolog
0
Title: how should I delete non numbers in list use prolog Problem title: how should I delete non numbers in list use prolog Tags: filter, prolog, list Problem: how should I delete non numbers in list use prolog I should remove all elements of List that are not a number greater than number. I can solve it just for numbe...
how should I delete non numbers in list use prolog how should I delete non numbers in list use prolog filter prolog list greater_nrs_only List Ans Tail Acc NewEl NewAcc how should I delete non numbers in list use prolog I should remove all elements of List that are not a number greater than number. I can solve it just ...
[ -0.018310546875, 0.024658203125, -0.0062255859375, -0.0103759765625, 0.010009765625, 0.0218505859375, 0.0125732421875, 0.005828857421875, 0.01171875, 0.0002460479736328125, 0.0189208984375, -0.0155029296875, -0.00677490234375, -0.006988525390625, 0.01373291015625, 0.0203857421875, 0....
[ 3642, 5608, 87, 154109, 351, 101935, 23, 5303, 4527, 502, 4867, 46312, 117396, 19, 4295, 191, 538, 32036, 893, 1218, 379, 29899, 7623, 2356, 10060, 87388, 756, 80854, 111, 450, 621, 959, 14012, 3501, 86869, 128201, 238, 18151, 139303, 119...
[ 0.03778076171875, 0.1068115234375, 0.02984619140625, 0.243408203125, 0.239501953125, 0.2171630859375, 0.0828857421875, 0.21044921875, 0.04949951171875, 0.143798828125, 0.239013671875, 0.15625, 0.1881103515625, 0.03961181640625, 0.1473388671875, 0.12939453125, 0.0863037109375, 0.178...
embed
42504007_c0
42504007
prolog
0
Title: How to develope prolog parser for mySMPL program? Problem title: How to develope prolog parser for mySMPL program? Tags: dcg, prolog, abstract-syntax-tree, tokenize Problem: How to develope prolog parser for mySMPL program? I am new in prolog i have a code that i want to read from file then parse this is the cod...
How to develope prolog parser for mySMPL program? How to develope prolog parser for mySMPL program? dcg prolog abstract-syntax-tree tokenize How TokenList AST Number How to develope prolog parser for mySMPL program? I am new in prolog i have a code that i want to read from file then parse this is the code here now in p...
[ 0.033447265625, 0.0098876953125, 0.003753662109375, 0.0208740234375, -0.0002231597900390625, 0.01806640625, -0.0024566650390625, 0.002685546875, 0.005035400390625, -0.037109375, 0.003692626953125, -0.00665283203125, -0.02783203125, -0.003265380859375, 0.027099609375, 0.0052490234375, ...
[ 11249, 85493, 502, 4867, 366, 2189, 100, 759, 18148, 21130, 1528, 104, 177, 164789, 86531, 62600, 47, 1098, 20650, 717, 154663, 48963, 103332, 3525, 18151, 12301, 11435, 184, 3444, 5117, 29479, 1653, 2063, 159, 38969, 10752, 5608, 959, 6376...
[ 0.037353515625, 0.1468505859375, 0.1864013671875, 0.239013671875, 0.175048828125, 0.1951904296875, 0.053741455078125, 0.09173583984375, 0.09234619140625, 0.2310791015625, 0.1187744140625, 0.005828857421875, 0.0633544921875, 0.1253662109375, 0.0740966796875, 0.1309814453125, 0.0894775...
embed
38207330_c0
38207330
prolog
0
Title: How to avoid duplicate output with findall in Prolog? Problem title: How to avoid duplicate output with findall in Prolog? Tags: prolog Problem: How to avoid duplicate output with findall in Prolog? I am using following code: father_child(tom, sally). father_child(john, alfred). father_child(george, peter). fath...
How to avoid duplicate output with findall in Prolog? How to avoid duplicate output with findall in Prolog? prolog How Prolog father_child How to avoid duplicate output with findall in Prolog? I am using following code: I can get a list of all siblings using following code but it produces duplicate output, with sibling...
[ 0.0020294189453125, 0.0027313232421875, 0.003143310546875, -0.00067138671875, -0.03076171875, -0.00823974609375, -0.004791259765625, 0.01373291015625, 0.0062255859375, -0.040283203125, 0.00921630859375, -0.00958251953125, 0.0198974609375, -0.001129150390625, 0.0029754638671875, 0.03369...
[ 11249, 71864, 171763, 67, 140992, 678, 7413, 5584, 1250, 4867, 502, 67373, 206, 38472, 25632, 18151, 2046, 5303, 756, 78, 79298, 7, 27489, 19069, 5423, 39531, 5281, 297 ]
[ 0.013702392578125, 0.16845703125, 0.191650390625, 0.1025390625, 0.173828125, 0.0146636962890625, 0.14599609375, 0.18505859375, 0.1173095703125, 0.214599609375, 0.045318603515625, 0.10528564453125, 0.046722412109375, 0.09112548828125, 0.0279541015625, 0.0888671875, 0.0142822265625, ...
embed
56048383_c0
56048383
prolog
0
Title: VSC Prolog on MacOS Mojave error: &quot;path to executable was not found&quot; Problem title: VSC Prolog on MacOS Mojave error: &quot;path to executable was not found&quot; Tags: visual-studio-code, prolog, macos Problem: VSC Prolog on MacOS Mojave error: "path to executable was not found" I installed the VSC Pr...
VSC Prolog on MacOS Mojave error: &quot;path to executable was not found&quot; VSC Prolog on MacOS Mojave error: &quot;path to executable was not found&quot; visual-studio-code prolog macos VSC Prolog MacOS Mojave Cannot Use prolog.executablePath Applications SWI-Prolog.app Contents VSC Prolog on MacOS Mojave error: "p...
[ 0.01495361328125, 0.006561279296875, -0.0050048828125, 0.0245361328125, -0.00860595703125, 0.0361328125, -0.00579833984375, -0.0018310546875, -0.00909423828125, -0.0245361328125, 0.000301361083984375, 0.0172119140625, -0.013671875, -0.0089111328125, 0.015625, 0.007537841796875, -0.00...
[ 310, 14495, 1250, 4867, 98, 4727, 7285, 47540, 272, 18499, 128405, 47, 71924, 2886, 509, 959, 14037, 21176, 52629, 40899, 502, 291, 7840, 4171, 10869, 36836, 46480, 1010, 22819, 683, 10519, 104921, 159, 38969, 10752, 9007, 70870, 20600, 111...
[ 0.156494140625, 0.198974609375, 0.163818359375, 0.24267578125, 0.0256500244140625, 0.0986328125, 0.120849609375, 0.184814453125, 0.211669921875, 0.1553955078125, 0.216064453125, 0.163330078125, 0.193359375, 0.17578125, 0.06427001953125, 0.10888671875, 0.163818359375, 0.130859375, ...
embed
76615817_c0
76615817
prolog
0
Title: Exponential runtime of is/2 when linear would suffice Problem title: Exponential runtime of is/2 when linear would suffice Tags: prolog Problem: Exponential runtime of is/2 when linear would suffice In Prolog building huge trees that are tiny graphs is easy: p(1). p(X+X) :- p(X). For handling such terms with bui...
Exponential runtime of is/2 when linear would suffice Exponential runtime of is/2 when linear would suffice prolog Exponential Exponential runtime of is/2 when linear would suffice In Prolog building huge trees that are tiny graphs is easy: For handling such terms with builtin predicates many Prolog systems offer optim...
[ 0.0048828125, 0.0081787109375, 0.005889892578125, -0.0025634765625, -0.0027313232421875, 0.017333984375, 0.00021839141845703125, -0.00714111328125, 0.006683349609375, -0.048583984375, 0.02880859375, 0.009521484375, -0.00537109375, 0.0098876953125, 0.0185546875, 0.01043701171875, 0.03...
[ 45434, 19, 80973, 11675, 6032, 83, 12477, 3229, 192617, 2806, 133784, 502, 4867, 1250, 33976, 58696, 1360, 57278, 41382, 7, 23468, 45064, 69407, 88303, 73, 1653, 2063, 5941, 76519, 18645, 15572, 208124, 61585, 11583, 959, 100, 32195, 35166, ...
[ 0.1365966796875, 0.0999755859375, 0.1256103515625, 0.1282958984375, 0.16162109375, 0.1541748046875, 0.2437744140625, 0.068603515625, 0.18115234375, 0.094482421875, 0.159912109375, 0.1158447265625, 0.2308349609375, 0.1234130859375, 0.07684326171875, 0.0538330078125, 0.1358642578125, ...
embed
69880541_c0
69880541
prolog
0
Title: Unexpected result of the rule Problem title: Unexpected result of the rule Tags: prolog Problem: Unexpected result of the rule I have tried to write a rule that checks if a list is a chain like: [[5,2],[2,4]] - true [[7,2],[4,0]] - false [[1,2]] - false, single element lists are not chains too. So, pattern is li...
Unexpected result of the rule Unexpected result of the rule prolog Unexpected Tail Len Unexpected result of the rule I have tried to write a rule that checks if a list is a chain like: [[5,2],[2,4]] - true [[7,2],[4,0]] - false [[1,2]] - false, single element lists are not chains too. So, pattern is like [[a,b], [b,c],...
[ 0.01031494140625, 0.0224609375, -0.01300048828125, 0.031494140625, -0.00946044921875, 0.01373291015625, -0.006134033203125, -0.00299072265625, 0.019287109375, -0.01904296875, 0.0047607421875, 0.0064697265625, -0.001129150390625, -0.00836181640625, 0.00775146484375, 0.01611328125, 0.0...
[ 992, 83613, 13, 89829, 16750, 79986, 502, 4867, 1218, 379, 18226, 37842, 33022, 12765, 2174, 5303, 83, 10, 121293, 758, 90173, 304, 617, 29568, 966, 2389, 98320, 133063, 11001, 12830, 621, 959, 103510, 1884, 11, 275, 238, 71, 73, 1679, ...
[ 0.03338623046875, 0.0679931640625, 0.058349609375, 0.0257720947265625, 0.1175537109375, 0.1922607421875, 0.1072998046875, 0.149658203125, 0.1187744140625, 0.102294921875, 0.206298828125, 0.0953369140625, 0.10369873046875, 0.1357421875, 0.058349609375, 0.19873046875, 0.08978271484375,...
embed
26620694_c0
26620694
prolog
0
Title: Prolog successively binding within interval Problem title: Prolog successively binding within interval Tags: prolog, random Problem: Prolog successively binding within interval I'm designing an AI for a simple game and I wish to implement a random movement. But this movement must satisfy the game rules. Choosing...
Prolog successively binding within interval Prolog successively binding within interval prolog random Prolog random_between Prolog successively binding within interval I'm designing an AI for a simple game and I wish to implement a random movement. But this movement must satisfy the game rules. Choosing random integers...
[ -0.0020751953125, 0.006378173828125, 0.0084228515625, 0.0147705078125, 0.0034637451171875, 0.01513671875, -0.002655029296875, 0.0027923583984375, 0.003662109375, -0.03857421875, 0.0093994140625, 0.0032806396484375, -0.01025390625, 0.006378173828125, 0.0419921875, 0.021484375, -0.0056...
[ 1250, 4867, 208479, 128239, 28032, 51514, 538, 502, 96759, 4626, 1177, 33, 4331, 38730, 8781, 6712, 32599, 29479, 112664, 8110, 40407, 91736, 4960, 232, 892, 26255, 16940, 18113, 77336, 74918, 24145, 12765, 7103, 7225, 137578, 32354, 30646, 9...
[ 0.1695556640625, 0.254638671875, 0.2183837890625, 0.2344970703125, 0.1845703125, 0.2388916015625, 0.001495361328125, 0.128173828125, 0.1883544921875, 0.10711669921875, 0.186279296875, 0.1029052734375, 0.0921630859375, 0.1512451171875, 0.07098388671875, 0.06329345703125, 0.04745483398...
embed
5157537_c0
5157537
prolog
0
Title: Calculating variance in prolog Problem title: Calculating variance in prolog Tags: prolog, variance Problem: Calculating variance in prolog i have made a function in Prolog:- mean(L, M) :- sum(L, S), length(L, N), M is S/N. sum([],0). sum([H|T],Y):- sum(T,X), Y is X + H. variance([],0). variance([H|T], M, VO):- ...
Calculating variance in prolog Calculating variance in prolog prolog variance Calculating H-M H-2 Calculating variance in prolog i have made a function in Prolog:- for some reason when I try to calculate the variance it always replies "false" as so: variance([1,2,3],2,VO) or statsList([1,2,3],M,VO) However if I use thi...
[ 0.0235595703125, 0.0032501220703125, -0.0135498046875, -0.000530242919921875, -0.0130615234375, 0.00543212890625, -0.007110595703125, -0.00099945068359375, 0.0036468505859375, -0.02294921875, 0.01080322265625, -0.019287109375, 0.00994873046875, 0.004150390625, 0.0146484375, 0.009460449...
[ 212467, 26518, 16757, 3956, 23, 502, 4867, 572, 9, 594, 5428, 32354, 1250, 9790, 74481, 67, 11343, 156405, 8710, 184, 221, 133063, 96386, 304, 23256, 63841, 154663, 4527, 3034, 43240, 14192, 44691 ]
[ 0.1856689453125, 0.0245361328125, 0.27685546875, 0.186279296875, 0.03240966796875, 0.1334228515625, 0.2188720703125, 0.10052490234375, 0.027435302734375, 0.1053466796875, 0.150390625, 0.1279296875, 0.1348876953125, 0.0579833984375, 0.173828125, 0.0318603515625, 0.0584716796875, 0.1...
embed
56526370_c0
56526370
prolog
0
Title: Print a list from a matrix Problem title: Print a list from a matrix Tags: prolog Problem: Print a list from a matrix I need a function that given an input of this style: printMatrix(N, M) where N is an integer and M a list of integers: printMatrix(3, [1,5,8,9 ...]). Where 3 is the number of rows and columns of ...
Print a list from a matrix Print a list from a matrix prolog a Print Print a list from a matrix I need a function that given an input of this style: where N is an integer and M a list of integers: Where 3 is the number of rows and columns of a board. The successive integers mark the box number (1 would be equivalent to...
[ 0.00141143798828125, 0.0011138916015625, 0.0162353515625, -0.00738525390625, 0.0133056640625, 0.01123046875, 0.000896453857421875, 0.0162353515625, 0.0062255859375, 0.02783203125, -0.007659912109375, -0.0174560546875, 0.00543212890625, -0.003387451171875, -0.041259765625, 0.00180053710...
[ 39754, 5303, 1295, 10, 50944, 425, 502, 4867, 3871, 32354, 34475, 107730, 903, 20623, 541, 892, 1505, 276, 26255, 138, 14012, 15555, 136, 3365, 316, 45443, 208479, 16188, 16530, 2806, 183234, 19069, 106, 8447, 25568, 46963, 201, 116538, 190...
[ 0.2225341796875, 0.2353515625, 0.1583251953125, 0.039154052734375, 0.216552734375, 0.10675048828125, 0.1353759765625, 0.175048828125, 0.10595703125, 0.1678466796875, 0.0193023681640625, 0.108642578125, 0.0183258056640625, 0.158935546875, 0.08184814453125, 0.125732421875, 0.0541992187...
embed
41723036_c0
41723036
prolog
0
Title: Prolog Free Days Code Problem title: Prolog Free Days Code Tags: prolog Problem: Prolog Free Days Code I have a Question regarding my Task. Task : People have Days assigned to them. On these days they are free for work. Karl is free on Mo,Wed,Thu Lukas is free on Tue,Wed,Thu,Fr Jon is free on Mo,Wed,Sa Alex is f...
Prolog Free Days Code Prolog Free Days Code prolog Prolog Free Days Karl Wed Thu Max Day Prolog Free Days Code I have a Question regarding my Task. Task : People have Days assigned to them. On these days they are free for work. Karl is free on Mo,Wed,Thu Lukas is free on Tue,Wed,Thu,Fr Jon is free on Mo,Wed,Sa Alex is ...
[ 0.033203125, -0.0091552734375, 0.017822265625, 0.0274658203125, -0.0257568359375, 0.007781982421875, -0.01446533203125, 0.032958984375, -0.00836181640625, -0.017333984375, -0.0054931640625, -0.0006866455078125, -0.00396728515625, 0.0228271484375, -0.01171875, 0.00958251953125, 0.0202...
[ 1250, 4867, 5153, 97292, 28864, 502, 17038, 1401, 71, 12613, 9920, 10013, 765, 68185, 759, 9598, 92, 41021, 95486, 47, 2856, 6097, 13312, 621, 4092, 4488, 83, 98, 2501, 1456, 297, 20800, 34, 151433, 1371, 66857, 21240, 5464, 20984, 14168,...
[ 0.188232421875, 0.2423095703125, 0.2099609375, 0.197998046875, 0.2239990234375, 0.1524658203125, 0.2327880859375, 0.1085205078125, 0.06072998046875, 0.140869140625, 0.186279296875, 0.1746826171875, 0.049560546875, 0.0899658203125, 0.0106201171875, 0.125, 0.083984375, 0.094787597656...
embed
27083233_c0
27083233
prolog
0
Title: Prolog - Subset Problem title: Prolog - Subset Tags: prolog Problem: Prolog - Subset I'm kinda new to Prolog. I'm trying to write a function subset(Set, Subset) that determines if Subset is a subset of Set (duh). Also, if the second parameter is not instantiated, it should output every possible subset. Right now...
Prolog - Subset Prolog - Subset prolog Prolog Subset Set Prolog - Subset I'm kinda new to Prolog. I'm trying to write a function subset(Set, Subset) that determines if Subset is a subset of Set (duh). Also, if the second parameter is not instantiated, it should output every possible subset. Right now, it works when bot...
[ 0.0201416015625, 0.00799560546875, 0.03955078125, 0.009033203125, -0.0223388671875, 0.002471923828125, -0.001373291015625, 0.000537872314453125, 0.00457763671875, -0.01025390625, 0.00061798095703125, 0.0228271484375, -0.002166748046875, 0.0074462890625, -0.0009918212890625, -0.00747680...
[ 1250, 4867, 8273, 3509, 502, 19943, 3525, 31577, 33022, 32354, 1614, 294, 126, 83324, 2174, 83, 10, 49052, 17932, 171859, 959, 34648, 14, 27686, 140992, 11907, 7722, 43240, 15044, 756, 127877, 3934, 2967, 32786, 12477, 18151, 3249, 18, 1369...
[ 0.143310546875, 0.212646484375, 0.2188720703125, 0.231201171875, 0.09796142578125, 0.22900390625, 0.0301513671875, 0.03271484375, 0.069580078125, 0.137939453125, 0.218017578125, 0.106689453125, 0.18505859375, 0.1263427734375, 0.034027099609375, 0.04058837890625, 0.015411376953125, ...
embed
8312507_c0
8312507
prolog
0
Title: How do you do a search and replace of a list with another sublist in Prolog? Problem title: How do you do a search and replace of a list with another sublist in Prolog? Tags: dcg, prolog Problem: How do you do a search and replace of a list with another sublist in Prolog? I'm trying to modify a list by search an...
How do you do a search and replace of a list with another sublist in Prolog? How do you do a search and replace of a list with another sublist in Prolog? dcg prolog How Prolog search_and_replace Search_Term Replace_Term Target_List Result_List How do you do a search and replace of a list with another sublist in Prolog?...
[ -0.003997802734375, 0.0004863739013671875, 0.00848388671875, 0.01373291015625, -0.022216796875, 0.024169921875, -0.0233154296875, 0.000579833984375, 0.02685546875, -0.00101470947265625, 0.016357421875, 0.0062255859375, -0.008544921875, 0.017822265625, 0.0174560546875, -0.00169372558593...
[ 11249, 54, 33938, 136, 91995, 111, 5303, 678, 15700, 1614, 6562, 23, 1250, 4867, 10, 177, 502, 2940, 107, 23935, 33086, 35484, 853, 160017, 154663, 126684, 2811, 40383, 3642, 8305, 13579, 237, 82449, 11001, 1810, 116, 138, 104629, 6397, 1...
[ 0.0643310546875, 0.07049560546875, 0.2381591796875, 0.14697265625, 0.2022705078125, 0.06817626953125, 0.189208984375, 0.1265869140625, 0.06884765625, 0.16650390625, 0.209716796875, 0.037689208984375, 0.1563720703125, 0.2322998046875, 0.026336669921875, 0.04229736328125, 0.08093261718...
embed
43594418_c0
43594418
prolog
0
Title: PROLOG Selecting only one answer of multiple possibilities Problem title: PROLOG Selecting only one answer of multiple possibilities Tags: prolog Problem: PROLOG Selecting only one answer of multiple possibilities I have a code like this: op:- keyword(a), write('Answer A'), nl. op:- keyword(a), keyword(b), write...
PROLOG Selecting only one answer of multiple possibilities PROLOG Selecting only one answer of multiple possibilities prolog PROLOG Selecting Answer PROLOG Selecting only one answer of multiple possibilities I have a code like this: Keywords provide details into the answer that must be used, problem is. I want the answ...
[ 0.0166015625, -0.00060272216796875, 0.019287109375, 0.0189208984375, -0.006561279296875, -0.00494384765625, 0.009765625, -0.0004062652587890625, 0.0018768310546875, 0.01019287109375, -0.018310546875, -0.005279541015625, 0.005035400390625, 0.0225830078125, 0.00811767578125, 0.0084228515...
[ 10514, 47510, 51620, 214, 4734, 1632, 35166, 111, 48716, 97370, 502, 4867, 130373, 2449, 18151, 1884, 903, 189755, 22691, 41653, 8110, 11814, 2967, 83, 3444, 237, 29458, 7722, 31261, 2174, 4163, 15044, 166117, 10, 876, 501, 2806, 2046, 62, ...
[ 0.1905517578125, 0.266845703125, 0.193359375, 0.0218505859375, 0.166748046875, 0.18310546875, 0.24853515625, 0.050079345703125, 0.2022705078125, 0.2236328125, 0.1552734375, 0.22119140625, 0.2257080078125, 0.140380859375, 0.147705078125, 0.14794921875, 0.0183258056640625, 0.17663574...
embed
27387269_c0
27387269
prolog
0
Title: Prolog Programming List Arithmetic Problem title: Prolog Programming List Arithmetic Tags: list, math, prolog Problem: Prolog Programming List Arithmetic Here is my code to make a countdown procedure which when I type in countdown(5,L). should return L = [5,4,3,2,1] and countdown(5,[5,4,3,2,1]) should return tru...
Prolog Programming List Arithmetic Prolog Programming List Arithmetic list math prolog Prolog Programming List Arithmetic Y-1 Prolog Programming List Arithmetic Here is my code to make a countdown procedure which when I type in countdown(5,L). should return L = [5,4,3,2,1] and countdown(5,[5,4,3,2,1]) should return tru...
[ 0.01611328125, -0.00628662109375, 0.004547119140625, 0.012939453125, 0.004364013671875, 0.0020294189453125, -0.015869140625, 0.018798828125, 0.005126953125, -0.0107421875, -0.0028533935546875, -0.038330078125, -0.0003147125244140625, 0.0002040863037109375, 0.000621795654296875, 0.00050...
[ 1250, 4867, 27958, 32036, 8962, 282, 9523, 5303, 48909, 502, 990, 5759, 759, 18151, 3249, 54529, 34695, 50491, 10644, 23, 104116, 866, 5608, 30646, 339, 2203, 758, 617, 363, 304, 76172, 29568, 107730, 45831, 1528, 86595, 47, 28282, 5 ]
[ 0.1756591796875, 0.2357177734375, 0.14697265625, 0.180908203125, 0.1090087890625, 0.034912109375, 0.040985107421875, 0.2008056640625, 0.1295166015625, 0.1297607421875, 0.105712890625, 0.0799560546875, 0.016815185546875, 0.181396484375, 0.0384521484375, 0.2027587890625, 0.204467773437...
embed
53971409_c0
53971409
prolog
0
Title: Rule CLIPS to PROLOG Problem title: Rule CLIPS to PROLOG Tags: prolog, clips Problem: Rule CLIPS to PROLOG What are the differences in creating the rules between CLIPS and PROLOG? If I have a CLIPS rule, as in the example, what would be its translation in PROLOG? (defrule Rule1 (declare (salience 1)) ?a<-(factf ...
Rule CLIPS to PROLOG Rule CLIPS to PROLOG prolog clips Rule CLIPS PROLOG Rule1 Rule CLIPS to PROLOG What are the differences in creating the rules between CLIPS and PROLOG? If I have a CLIPS rule, as in the example, what would be its translation in PROLOG?
[ 0.032958984375, -0.004241943359375, 0.015380859375, 0.03125, -0.0037689208984375, 0.021240234375, 0.007415771484375, -0.013671875, 0.01544189453125, -0.01556396484375, -0.0079345703125, -0.0068359375, -0.01031494140625, -0.020263671875, 0.0030517578125, -0.00201416015625, -0.00017642...
[ 139118, 313, 175909, 294, 47, 10514, 47510, 502, 4867, 34196, 7, 418, 70, 60212, 105233, 91736, 17721, 136, 79986, 27781, 153648, 23 ]
[ 0.2205810546875, 0.081787109375, 0.2275390625, 0.1517333984375, 0.1392822265625, 0.1624755859375, 0.237548828125, 0.1004638671875, 0.209716796875, 0.228759765625, 0.01276397705078125, 0.0634765625, 0.01904296875, 0.1768798828125, 0.14990234375, 0.206298828125, 0.06475830078125, 0.0...
embed