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
53037287_c0
53037287
prolog
0
Title: What is the difference between DL reasoners and Prolog? Problem title: What is the difference between DL reasoners and Prolog? Tags: semantic-web, logic, owl, prolog, description-logic Problem: What is the difference between DL reasoners and Prolog? I was thinking about reasoning in ontologies. What are the the ...
What is the difference between DL reasoners and Prolog? What is the difference between DL reasoners and Prolog? semantic-web logic owl prolog description-logic What Prolog What is the difference between DL reasoners and Prolog? I was thinking about reasoning in ontologies. What are the the differences between the infer...
[ 0.01953125, -0.0032958984375, 0.00787353515625, -0.0020751953125, 0.019775390625, 0.01165771484375, -0.000850677490234375, -0.01483154296875, 0.007568359375, -0.0234375, 0.0113525390625, 0.000732421875, -0.0113525390625, 0.010498046875, 0.0184326171875, -0.0036163330078125, 0.0063781...
[ 70, 60212, 17721, 27502, 31635, 1314, 136, 1250, 4867, 484, 109109, 14051, 62775, 36, 27751, 502, 76811, 137043, 47644, 214, 3283, 18709, 53498, 3240, 33, 130732, 1840, 4007, 19460, 1974, 191428, 3647, 70541, 25443, 180300, 5134, 15824, 678, ...
[ 0.01116943359375, 0.1844482421875, 0.09393310546875, 0.1844482421875, 0.197509765625, 0.16943359375, 0.06085205078125, 0.1700439453125, 0.241455078125, 0.038330078125, 0.056121826171875, 0.0784912109375, 0.15185546875, 0.0308990478515625, 0.1619873046875, 0.1260986328125, 0.126953125...
embed
54945233_c0
54945233
prolog
0
Title: Understanding how the member function works Problem title: Understanding how the member function works Tags: prolog Problem: Understanding how the member function works I am working on a Prolog program. I am given a bunch of facts in the form fan(name, list of novels liked). I am writing program that will tell t...
Understanding how the member function works Understanding how the member function works prolog Understanding mutual_novels Book Understanding how the member function works I am working on a Prolog program. I am given a bunch of facts in the form fan(name, list of novels liked). I am writing program that will tell the n...
[ 0.007598876953125, -0.010009765625, 0.025146484375, 0.0145263671875, -0.0089111328125, 0.01385498046875, -0.000762939453125, 0.0076904296875, 0.01068115234375, -0.06298828125, -0.002655029296875, 0.01806640625, 0.0206298828125, 0.005950927734375, 0.0235595703125, -0.0172119140625, -0...
[ 9626, 144057, 3642, 70, 32786, 32354, 43240, 502, 4867, 199849, 6516, 14794, 27432, 20697, 1250, 1528, 34475, 147306, 15824, 3173, 1207, 11627, 5303, 21261, 1884, 32562, 14192, 123055, 42840, 17262, 3395, 57, 12097, 16188, 136, 49586, 765, 39...
[ 0.10107421875, 0.1197509765625, 0.1171875, 0.0821533203125, 0.284912109375, 0.2109375, 0.1820068359375, 0.130126953125, 0.1993408203125, 0.20068359375, 0.1268310546875, 0.1710205078125, 0.1253662109375, 0.084228515625, 0.1175537109375, 0.14306640625, 0.026336669921875, 0.0350646972...
embed
66554847_c0
66554847
prolog
0
Title: How do I see a detailed order (execution) for a Prolog query? Problem title: How do I see a detailed order (execution) for a Prolog query? Tags: visualization, visualizer, prolog Problem: How do I see a detailed order (execution) for a Prolog query? Let's say I have this Prolog program: loves(vincent, mia). love...
How do I see a detailed order (execution) for a Prolog query? How do I see a detailed order (execution) for a Prolog query? visualization visualizer prolog How Prolog How do I see a detailed order (execution) for a Prolog query? Let's say I have this Prolog program: With query jealous(A,B). I'm very new to Prolog and I...
[ 0.036376953125, 0.02197265625, -0.00799560546875, 0.0120849609375, 0.016357421875, 0.0194091796875, -0.0267333984375, -0.0174560546875, -0.004425048828125, -0.022705078125, 0.007171630859375, 0.01214599609375, -0.0164794921875, -0.0230712890625, 0.0005340576171875, 0.00139617919921875,...
[ 11249, 87, 1957, 10, 185688, 12989, 46480, 1010, 100, 1250, 4867, 41, 1294, 1363, 21176, 47691, 52825, 502, 54, 1528, 55, 7779, 223, 284, 571, 3525, 1884, 3714, 7722, 47, 24763, 1221, 186, 51042, 35971, 48322, 144851, 75101, 29806, 450 ]
[ 0.07421875, 0.041534423828125, 0.19189453125, 0.0869140625, 0.2255859375, 0.255859375, 0.1146240234375, 0.1627197265625, 0.06591796875, 0.1810302734375, 0.274169921875, 0.135498046875, 0.135009765625, 0.069091796875, 0.1043701171875, 0.0293121337890625, 0.0999755859375, 0.079223632...
embed
44101059_c0
44101059
prolog
0
Title: Using OR operator with different / non existent facts in Prolog Problem title: Using OR operator with different / non existent facts in Prolog Tags: fact, prolog, rule Problem: Using OR operator with different / non existent facts in Prolog I have a fact: loves(romeo, juliet). then i have an 'or' rule: dances(ju...
Using OR operator with different / non existent facts in Prolog Using OR operator with different / non existent facts in Prolog fact prolog rule Using Prolog Using OR operator with different / non existent facts in Prolog I have a fact: then i have an 'or' rule: As you can see dancer fact does not exist but this should...
[ 0.0211181640625, 0.00897216796875, -0.0022735595703125, 0.015869140625, -0.0030670166015625, 0.00787353515625, -0.005615234375, 0.0205078125, -0.00567626953125, -0.0125732421875, -0.01226806640625, -0.0245361328125, 0.006317138671875, -0.0091552734375, 0.010986328125, -0.00634765625, ...
[ 345, 33172, 39933, 678, 12921, 351, 99707, 15824, 7, 1250, 4867, 6953, 248, 502, 79986, 23, 765, 748, 831, 1957, 123, 3443, 14602, 959, 32316, 1284, 5608, 110, 2967, 82393, 461, 51546, 30646, 163, 29568, 175399, 104250, 1119, 6084, 6620, ...
[ 0.0694580078125, 0.307373046875, 0.226318359375, 0.08306884765625, 0.1392822265625, 0.1171875, 0.2197265625, 0.1822509765625, 0.044830322265625, 0.1326904296875, 0.2344970703125, 0.0140533447265625, 0.0186309814453125, 0.1207275390625, 0.1943359375, 0.00006103515625, 0.03543090820312...
embed
43430664_c0
43430664
prolog
0
Title: Prolog calculate sum of 2D list Problem title: Prolog calculate sum of 2D list Tags: prolog Problem: Prolog calculate sum of 2D list I wrote this code: sum_list([], 0). sum_list([H|T], X) :- sum_list(T, Rest), X is H + Rest. It calculates the sum of all list elements. For example if I call: sum_list([1,2,3], X)....
Prolog calculate sum of 2D list Prolog calculate sum of 2D list prolog Prolog sum_list Rest type_error Prolog calculate sum of 2D list I wrote this code: It calculates the sum of all list elements. For example if I call: it returns 6. But I would like to also be able to calculate the sum of 2D list. For example if I pa...
[ 0.01214599609375, 0.01177978515625, 0.01495361328125, -0.0040283203125, -0.0264892578125, 0.00982666015625, -0.00396728515625, 0.01348876953125, 0.01513671875, -0.025390625, 0.0135498046875, -0.017578125, 0.01025390625, -0.0013580322265625, 0.000659942626953125, 0.00579833984375, 0.0...
[ 1250, 4867, 74481, 10554, 111, 116, 397, 5303, 67, 502, 6562, 49756, 10644, 188800, 54397, 18151, 756, 80854, 11782, 30646, 2289, 1884, 19048, 27875, 133063, 82449, 1193, 2046, 4068, 9790, 18499, 44691 ]
[ 0.160400390625, 0.232666015625, 0.1632080078125, 0.2071533203125, 0.0767822265625, 0.1309814453125, 0.12109375, 0.173095703125, 0.003753662109375, 0.1107177734375, 0.1636962890625, 0.1751708984375, 0.0966796875, 0.137939453125, 0.006805419921875, 0.05450439453125, 0.0289764404296875,...
embed
10388109_c0
10388109
prolog
0
Title: Prolog - writing a combination of k numbers in the given list Problem title: Prolog - writing a combination of k numbers in the given list Tags: combinations, prolog Problem: Prolog - writing a combination of k numbers in the given list I am trying to define a function in prolog that takes arguments of the form ...
Prolog - writing a combination of k numbers in the given list Prolog - writing a combination of k numbers in the given list combinations prolog Prolog Prolog - writing a combination of k numbers in the given list I am trying to define a function in prolog that takes arguments of the form combination(3,[a,b,c,d],L) , th...
[ -0.0162353515625, 0.035400390625, 0.0098876953125, -0.006561279296875, -0.0076904296875, 0.022216796875, -0.0201416015625, 0.0030059814453125, -0.0037841796875, -0.004425048828125, -0.00170135498046875, -0.01470947265625, 0.00141143798828125, 0.01409912109375, -0.000583648681640625, 0....
[ 1250, 4867, 32562, 162515, 111, 472, 101935, 23, 34475, 5303, 502, 31577, 61924, 32354, 51776, 10750, 3173, 86827, 11, 275, 238, 71, 866, 16750, 30646, 208124, 28960, 51, 69723, 1653, 2063, 67, 186, 68991, 36126, 29569, 76811, 4358 ]
[ 0.1990966796875, 0.27490234375, 0.2147216796875, 0.24462890625, 0.03509521484375, 0.179443359375, 0.214111328125, 0.06304931640625, 0.11083984375, 0.197998046875, 0.1649169921875, 0.06915283203125, 0.151611328125, 0.196533203125, 0.09521484375, 0.22314453125, 0.1827392578125, 0.167...
embed
71772803_c0
71772803
prolog
0
Title: How to escape a symbol in Prolog using re_replace Problem title: How to escape a symbol in Prolog using re_replace Tags: escaping, prolog Problem: How to escape a symbol in Prolog using re_replace I tried to use re_replace to replace characters in string. For example: ?- re_replace("_"/g, "QW", "a_b_c", Str). St...
How to escape a symbol in Prolog using re_replace How to escape a symbol in Prolog using re_replace escaping prolog re_replace How Prolog a_b_c Str How to escape a symbol in Prolog using re_replace I tried to use re_replace to replace characters in string. For example: Then I tried to replace _ with \_ . The documentat...
[ -0.0137939453125, 0.01031494140625, -0.004730224609375, 0.01239013671875, -0.032470703125, 0.0130615234375, 0.0016632080078125, 0.0260009765625, 0.00124359130859375, 0.00958251953125, 0.006561279296875, -0.0057373046875, 0.010009765625, 0.0027313232421875, 0.01129150390625, 0.004211425...
[ 11249, 144281, 26582, 1250, 4867, 456, 454, 107, 23935, 23, 38940, 10366, 502, 10, 275, 238, 23351, 17368, 37842, 91995, 124850, 79315, 101, 678, 41872, 209806, 98320, 44691, 2046, 1295, 159, 38969, 11389, 3217, 68107 ]
[ 0.0062255859375, 0.2359619140625, 0.2335205078125, 0.1658935546875, 0.2337646484375, 0.1531982421875, 0.0985107421875, 0.120361328125, 0.22265625, 0.03955078125, 0.16064453125, 0.035186767578125, 0.1051025390625, 0.072265625, 0.07012939453125, 0.0712890625, 0.108154296875, 0.012054...
embed
72294298_c0
72294298
prolog
0
Title: Get an element in a list at a specified index Problem title: Get an element in a list at a specified index Tags: prolog Problem: Get an element in a list at a specified index I need to write a program that return an element from a list, using a specified index. We have a list of the English alphabet X = [a, b, c...
Get an element in a list at a specified index Get an element in a list at a specified index prolog Get Get an element in a list at a specified index I need to write a program that return an element from a list, using a specified index. We have a list of the English alphabet X = [a, b, c, d, e, f, g, h, i, j, k, l, m, n...
[ -0.004302978515625, -0.002899169921875, -0.00164031982421875, -0.0035552978515625, -0.0166015625, 0.01544189453125, 0.0150146484375, 0.0045166015625, 0.01153564453125, -0.0244140625, 0.0274658203125, -0.002288818359375, -0.033203125, 0.00958251953125, -0.0125732421875, 0.00176239013671...
[ 20779, 142, 12830, 23, 5303, 99, 10, 58735, 297, 63262, 502, 4867, 3871, 33022, 1528, 30646, 1295, 17368, 765, 14941, 229231, 1193, 2203, 876, 501, 104, 1238, 706, 1096, 17, 1647, 472, 96, 347, 653, 36, 915, 8096, 1690, 91, 808, 75, ...
[ 0.1533203125, 0.07373046875, 0.21337890625, 0.143310546875, 0.19873046875, 0.175048828125, 0.032012939453125, 0.212646484375, 0.07666015625, 0.2490234375, 0.126708984375, 0.1949462890625, 0.083740234375, 0.0938720703125, 0.13671875, 0.2220458984375, 0.1617431640625, 0.0469055175781...
embed
31478457_c0
31478457
prolog
0
Title: SWI-Prolog: splitting text atom into list of characters Problem title: SWI-Prolog: splitting text atom into list of characters Tags: prolog, split, string Problem: SWI-Prolog: splitting text atom into list of characters Very simple question: I know there are plenty of ways to split an atom, eg 'example atom' on ...
SWI-Prolog: splitting text atom into list of characters SWI-Prolog: splitting text atom into list of characters prolog split string SWI-Prolog atomic_list_concat List Atom ERROR Domain non_empty_atom SWI-Prolog: splitting text atom into list of characters Very simple question: I know there are plenty of ways to split a...
[ 0.006256103515625, -0.0081787109375, 0.0096435546875, 0.0174560546875, -0.01470947265625, 0.017578125, 0.0218505859375, -0.01007080078125, -0.006561279296875, -0.025146484375, -0.000537872314453125, -0.00191497802734375, -0.0203857421875, 0.00518798828125, 0.0025787353515625, 0.0034790...
[ 159, 38969, 10752, 4867, 65450, 1916, 7986, 34627, 3934, 5303, 124850, 502, 79315, 6562, 2271, 4460, 32036, 69728, 151206, 24638, 93702, 351, 33548, 939, 11, 5928, 8781, 9655, 3714, 87794, 48322, 47, 142, 3355, 33209, 8, 93343, 30046, 33079...
[ 0.0205078125, 0.1502685546875, 0.078369140625, 0.1728515625, 0.2442626953125, 0.019500732421875, 0.1492919921875, 0.27099609375, 0.061370849609375, 0.1414794921875, 0.19189453125, 0.075439453125, 0.1343994140625, 0.14013671875, 0.008087158203125, 0.1495361328125, 0.1143798828125, 0...
embed
25170868_c2
25170868
prolog
2
), list_to_fdset( [1], T5RunOn ), list_to_fdset( [1,2,5],T7RunOn ), M3 in_set T3RunOn, M4 in_set T4RunOn, M5 in_set T5RunOn, M7 in_set T7RunOn, %Set up constraints of tasks using global resources: %t4 use r1,r2,r3 %t7 use r1 %t15 use r1,r2,r3 %t16 use r2,r3 %t17 use r3 %t20 use r2,r3 ], [limit(1)]), maximum( Maxspan, ...
), list_to_fdset( [1], T5RunOn ), list_to_fdset( [1,2,5],T7RunOn ), M3 in_set T3RunOn, M4 in_set T4RunOn, M5 in_set T5RunOn, M7 in_set T7RunOn, %Set up constraints of tasks using global resources: %t4 use r1,r2,r3 %t7 use r1 %t15 use r1,r2,r3 %t16 use r2,r3 %t17 use r3 %t20 use r2,r3 ], [limit(1)]), maximum( Maxspan, ...
[ 0.00390625, -0.0001621246337890625, -0.002838134765625, 0.00897216796875, 0.00023937225341796875, -0.0205078125, -0.021728515625, 0.006256103515625, -0.000545501708984375, -0.02978515625, 0.02099609375, 0.01043701171875, 0.004150390625, 0.021484375, -0.0030975341796875, 0.0140380859375...
[ 6, 247, 5303, 188, 420, 71, 3509, 132, 17550, 4, 384, 758, 163321, 20320, 68252, 71928, 618, 966, 276, 363, 23, 617, 1745, 294, 126, 1257, 158, 2816, 4288, 111, 66211, 17368, 7964, 65514, 12, 18, 4527, 1690, 418, 42, 304, 1837, 2485...
[ 0.0226898193359375, 0.125244140625, 0.2493896484375, 0.1817626953125, 0.1143798828125, 0.1368408203125, 0.28662109375, 0.0352783203125, 0.107177734375, 0.04730224609375, 0.1558837890625, 0.21240234375, 0.2137451171875, 0.27685546875, 0.00762939453125, 0.1695556640625, 0.10205078125, ...
embed
9814911_c0
9814911
prolog
0
Title: Prolog function iscontained? Problem title: Prolog function iscontained? Tags: dcg, prolog Problem: Prolog function iscontained? I'm trying to make a Prolog predicate iscontained/2 : iscontained(List, Search) where it returns true. if the Search is listed within the given List , false. if not. And if it is a var...
Prolog function iscontained? Prolog function iscontained? dcg prolog Prolog List Search Prolog function iscontained? I'm trying to make a Prolog predicate iscontained/2 : iscontained(List, Search) where it returns true. if the Search is listed within the given List , false. if not. And if it is a variable that is input...
[ 0.00616455078125, -0.00008344650268554688, 0.015625, 0.01397705078125, -0.0064697265625, 0.03076171875, 0.01483154296875, -0.0079345703125, -0.000835418701171875, -0.0244140625, 0.00445556640625, -0.00096893310546875, -0.0172119140625, 0.01031494140625, -0.0005645751953125, 0.012573242...
[ 1250, 4867, 32354, 83, 98102, 73, 297, 238, 177, 502, 32036, 33086, 31577, 3249, 1653, 2063, 67, 12477, 154663, 30646, 29568, 145870, 28032, 98320, 77336, 107730, 105950, 12638, 12830, 5303, 3871, 272, 7108, 48225, 1810, 4358 ]
[ 0.1781005859375, 0.261962890625, 0.215087890625, 0.1256103515625, 0.2012939453125, 0.153076171875, 0.1392822265625, 0.007110595703125, 0.0714111328125, 0.12939453125, 0.1588134765625, 0.2010498046875, 0.032562255859375, 0.003936767578125, 0.130859375, 0.15283203125, 0.020248413085937...
embed
40426825_c0
40426825
prolog
0
Title: Creating sub-list from list in Prolog Problem title: Creating sub-list from list in Prolog Tags: prolog, list Problem: Creating sub-list from list in Prolog I am having trouble understanding a concept in prolog. I have a prolog list: MyList = [item(dog,red), item(cat,black), item(rat,gray)] and I am looking to c...
Creating sub-list from list in Prolog Creating sub-list from list in Prolog prolog list list Creating Prolog MyList Result Creating sub-list from list in Prolog I am having trouble understanding a concept in prolog. I have a prolog list: MyList = [item(dog,red), item(cat,black), item(rat,gray)] and I am looking to crea...
[ 0.003326416015625, -0.003814697265625, 0.00830078125, 0.010009765625, -0.008544921875, 0.007080078125, -0.007171630859375, 0.0238037109375, 0.01116943359375, -0.01611328125, 0.00830078125, -0.0035400390625, -0.006561279296875, 0.011474609375, -0.0021209716796875, 0.010009765625, 0.01...
[ 56781, 1916, 1614, 6562, 1295, 5303, 1250, 4867, 23, 502, 2646, 154663, 126684, 63134, 100094, 23755, 217, 195, 38507, 2822, 35735, 4460, 151675, 2175, 5739, 53, 16487, 47, 28282, 111, 1660, 104988, 29806, 37842, 1884, 19048, 11782, 32354, ...
[ 0.1402587890625, 0.01708984375, 0.2283935546875, 0.244873046875, 0.1170654296875, 0.1768798828125, 0.1551513671875, 0.232666015625, 0.0277862548828125, 0.1197509765625, 0.1212158203125, 0.242919921875, 0.131591796875, 0.0458984375, 0.06396484375, 0.1036376953125, 0.07098388671875, ...
embed
15283482_c0
15283482
prolog
0
Title: Transforming recursion into tail recursion? Problem title: Transforming recursion into tail recursion? Tags: exponentiation, logic-programming, prolog Problem: Transforming recursion into tail recursion? I am trying to write a predicate that recursively finds the nth power of some number [A^n = A * A^(n-1)] and ...
Transforming recursion into tail recursion? Transforming recursion into tail recursion? exponentiation logic-programming prolog Transforming N-1 Transforming recursion into tail recursion? I am trying to write a predicate that recursively finds the nth power of some number [A^n = A * A^(n-1)] and uses the shortcut A^(2...
[ -0.000946044921875, 0.00946044921875, 0.0269775390625, 0.0205078125, 0.028564453125, 0.00799560546875, -0.009033203125, -0.0126953125, 0.0028839111328125, -0.01708984375, 0.0263671875, -0.002227783203125, -0.0169677734375, -0.00726318359375, 0.0291748046875, 0.00848388671875, 0.02770...
[ 11062, 5037, 214, 195625, 1830, 3934, 46741, 78643, 21616, 62775, 28966, 502, 4867, 541, 5759, 31577, 33022, 1653, 2063, 67, 5844, 7413, 653, 927, 14537, 14012, 284, 8353, 19, 62, 661, 110218, 4527, 16610, 19774, 54753, 29806, 2060, 14240, ...
[ 0.1055908203125, 0.209228515625, 0.047027587890625, 0.263671875, 0.1473388671875, 0.1363525390625, 0.30908203125, 0.0927734375, 0.031005859375, 0.0936279296875, 0.0994873046875, 0.0882568359375, 0.148681640625, 0.123779296875, 0.1866455078125, 0.1014404296875, 0.1011962890625, 0.12...
embed
32918211_c0
32918211
prolog
0
Title: Find the max element and its index in a list - Prolog Problem title: Find the max element and its index in a list - Prolog Tags: list, prolog Problem: Find the max element and its index in a list - Prolog I am fresh in Prolog. And I am trying to write a predicate that finds the Max value and its index of a list ...
Find the max element and its index in a list - Prolog Find the max element and its index in a list - Prolog list prolog Find Prolog max_list MAX INDEX Find the max element and its index in a list - Prolog I am fresh in Prolog. And I am trying to write a predicate that finds the Max value and its index of a list of inte...
[ 0.01092529296875, 0.007476806640625, 0.00994873046875, 0.0140380859375, -0.029296875, 0.031005859375, -0.008056640625, 0.0123291015625, 0.01092529296875, -0.0257568359375, 0.00125885009765625, -0.01385498046875, -0.007476806640625, -0.01092529296875, 0.022705078125, -0.01068115234375, ...
[ 26040, 18389, 12830, 136, 6863, 63262, 23, 5303, 1250, 4867, 502, 6562, 85378, 51383, 26939, 70, 63335, 31577, 33022, 1653, 2063, 67, 7413, 9920, 34292, 892, 304, 82449, 1221, 11180, 19388, 107947, 55257, 1747, 12524, 177261, 5465, 118664, ...
[ 0.1124267578125, 0.2410888671875, 0.23046875, 0.0914306640625, 0.052001953125, 0.2352294921875, 0.048980712890625, 0.177734375, 0.136474609375, 0.2054443359375, 0.05487060546875, 0.1923828125, 0.2293701171875, 0.1844482421875, 0.1292724609375, 0.00506591796875, 0.03973388671875, 0....
embed
47025100_c0
47025100
prolog
0
Title: Can't get my results back from recursion in Prolog after reaching base case Problem title: Can't get my results back from recursion in Prolog after reaching base case Tags: reporting, recursion, read-eval-print-loop, prolog Problem: Can't get my results back from recursion in Prolog after reaching base...
Can't get my results back from recursion in Prolog after reaching base case Can't get my results back from recursion in Prolog after reaching base case reporting recursion read-eval-print-loop prolog recursion Can Prolog Tail List Head Head1 InputList Output Call _23538 _23792 Exit _23816 _23840 Can't get my ...
[ 0.004119873046875, 0.021728515625, 0.0164794921875, 0.0157470703125, -0.0030364990234375, 0.0130615234375, -0.01397705078125, -0.0019989013671875, 0.023681640625, -0.00323486328125, -0.0098876953125, -0.00213623046875, -0.005340576171875, 0.0035858154296875, -0.0016021728515625, -0.010...
[ 4171, 3768, 18, 2046, 759, 50339, 4420, 1295, 195625, 1830, 1250, 4867, 7103, 58359, 214, 3647, 7225, 13416, 12301, 1405, 35662, 28354, 502, 1218, 379, 32036, 44816, 418, 360, 7077, 154663, 13538, 26265, 3742, 184479, 186796, 5443, 10991, 2...
[ 0.06610107421875, 0.01312255859375, 0.020263671875, 0.09857177734375, 0.000701904296875, 0.1866455078125, 0.1788330078125, 0.048980712890625, 0.2174072265625, 0.1072998046875, 0.174072265625, 0.250244140625, 0.0794677734375, 0.1907958984375, 0.0831298828125, 0.2000732421875, 0.161254...
embed
16776166_c0
16776166
prolog
0
Title: create something like a for in swi prolog Problem title: create something like a for in swi prolog Tags: prolog, permutation, for-loop Problem: create something like a for in swi prolog i want to create something like a for in swi prolog for(int i=1;i<8;i++) { for(int j=1;j<11;j++) { //do something with i and j ...
create something like a for in swi prolog create something like a for in swi prolog prolog permutation for-loop finishL1 Game Over Player1 create something like a for in swi prolog i want to create something like a for in swi prolog i don't have any ideea how to generate all this permutation i,j in swi prolog please he...
[ 0.00885009765625, 0.0035858154296875, -0.005706787109375, 0.02001953125, -0.00933837890625, -0.0172119140625, -0.01092529296875, 0.00921630859375, -0.0027618408203125, -0.00994873046875, 0.01080322265625, 0.033935546875, 0.0087890625, -0.00921630859375, -0.004669189453125, 0.0017013549...
[ 28282, 9844, 1884, 10, 100, 23, 91, 2452, 502, 4867, 117, 561, 28354, 67229, 866, 418, 13547, 9578, 60560, 3444, 113309, 139392, 756, 903, 22062, 17, 170, 4358, 18151, 12765, 14, 29568, 33022 ]
[ 0.157958984375, 0.088134765625, 0.1265869140625, 0.095947265625, 0.2030029296875, 0.05572509765625, 0.029693603515625, 0.1849365234375, 0.151611328125, 0.203857421875, 0.072998046875, 0.1446533203125, 0.13720703125, 0.196533203125, 0.0736083984375, 0.0579833984375, 0.053955078125, ...
embed
3279780_c0
3279780
prolog
0
Title: Prolog Recursive Rules Wrong Result Problem title: Prolog Recursive Rules Wrong Result Tags: prolog Problem: Prolog Recursive Rules Wrong Result i have define a recursive rule but the result seems incorrect. customer(peter,bank(maybank),customertype(personal), citizen(malaysian),age(62),credit(50000), income(300...
Prolog Recursive Rules Wrong Result Prolog Recursive Rules Wrong Result prolog Prolog Recursive Rules Wrong Result Age Senior Prolog Recursive Rules Wrong Result i have define a recursive rule but the result seems incorrect. But the SWI-Prolog return X = peter; X = peter. Why it return two times rather once ? Please he...
[ 0.015380859375, -0.004058837890625, -0.00136566162109375, 0.0218505859375, -0.004547119140625, 0.0191650390625, -0.006591796875, 0.0213623046875, 0.0185546875, -0.01220703125, 0.022705078125, -0.0167236328125, -0.004486083984375, 0.0068359375, 0.04345703125, -0.0169677734375, 0.01892...
[ 1250, 4867, 853, 48650, 5844, 139118, 601, 35133, 126684, 502, 72944, 49952, 61924, 195625, 79986, 1284, 16750, 37202, 214552, 4966, 159, 38969, 10752, 30646, 1193, 2203, 154643, 74, 44084, 6626, 20028, 43257, 24145, 30607, 4358 ]
[ 0.1424560546875, 0.2347412109375, 0.062225341796875, 0.1837158203125, 0.171142578125, 0.19482421875, 0.036773681640625, 0.1810302734375, 0.183837890625, 0.0904541015625, 0.180419921875, 0.12890625, 0.16162109375, 0.2257080078125, 0.19970703125, 0.023223876953125, 0.1339111328125, 0...
embed
76195820_c0
76195820
prolog
0
Title: Trying to run a chess.pl engine in Sicstus prolog Problem title: Trying to run a chess.pl engine in Sicstus prolog Tags: chess, prolog, unicode-escapes Problem: Trying to run a chess.pl engine in Sicstus prolog I'm trying to run a chess.pl engine in SICStus prolog but I'm getting this error: Which command should...
Trying to run a chess.pl engine in Sicstus prolog Trying to run a chess.pl engine in Sicstus prolog chess prolog unicode-escapes Trying chess.pl Sicstus Instantiation user:_195 Trying to run a chess.pl engine in Sicstus prolog I'm trying to run a chess.pl engine in SICStus prolog but I'm getting this error: Which comma...
[ 0.0115966796875, -0.006866455078125, 0.0185546875, -0.01171875, -0.0101318359375, 0.01324462890625, 0.0012969970703125, -0.0147705078125, -0.00101470947265625, -0.054931640625, 0.006103515625, 0.033203125, -0.01220703125, 0.00090789794921875, 0.0113525390625, -0.00872802734375, 0.003...
[ 40858, 11675, 290, 7, 2424, 87907, 63457, 18253, 502, 4867, 60347, 112, 98224, 166945, 163092, 31577, 5, 159, 102198, 2143, 903, 18499, 130078, 75101, 5608, 87, 71924, 47, 450, 9191, 18151, 37842, 40368, 50717, 43240, 29860, 9969, 1340, 456...
[ 0.083251953125, 0.1339111328125, 0.1669921875, 0.126220703125, 0.1982421875, 0.1839599609375, 0.1453857421875, 0.197021484375, 0.09478759765625, 0.1695556640625, 0.087158203125, 0.0794677734375, 0.1427001953125, 0.004486083984375, 0.10546875, 0.0787353515625, 0.005340576171875, 0.0...
embed
46024548_c0
46024548
prolog
0
Title: predicate that store best solution of comparison Problem title: predicate that store best solution of comparison Tags: prolog Problem: predicate that store best solution of comparison i try to write a code that find the best goal that meets my condition point(1,2). point(1,10). point(2,3). point(5,2). point(4,4)...
predicate that store best solution of comparison predicate that store best solution of comparison prolog Goal keep_greater predicate that store best solution of comparison i try to write a code that find the best goal that meets my condition examples: cant figure out why its not working the code is always crash after k...
[ 0.0013275146484375, 0.0167236328125, 0.012939453125, -0.000858306884765625, 0.0024566650390625, 0.01336669921875, 0.010498046875, -0.028564453125, 0.0211181640625, -0.01251220703125, 0.01348876953125, 0.02685546875, -0.00555419921875, -0.01226806640625, 0.01458740234375, 0.022338867187...
[ 1653, 2063, 67, 450, 4343, 2965, 29806, 111, 225490, 502, 4867, 2016, 289, 13695, 7134, 46429, 9790, 33022, 18151, 7413, 69236, 23356, 35431, 27781, 45767, 26366, 15400, 6863, 959, 20697, 11343, 150631, 7103, 117396, 79986, 4358 ]
[ 0.1669921875, 0.18115234375, 0.121826171875, 0.110107421875, 0.185546875, 0.17529296875, 0.1812744140625, 0.051849365234375, 0.2352294921875, 0.106201171875, 0.16455078125, 0.153564453125, 0.0280303955078125, 0.191162109375, 0.142822265625, 0.162109375, 0.0404052734375, 0.066284179...
embed
15325485_c0
15325485
prolog
0
Title: Testing for package conflicts in Prolog Problem title: Testing for package conflicts in Prolog Tags: recursion, dependencies, linux, package, prolog Problem: Testing for package conflicts in Prolog It's a Prolog program that I want to check for dependencies between Linux packages and if there are conflicts anywh...
Testing for package conflicts in Prolog Testing for package conflicts in Prolog recursion dependencies linux package prolog Testing Prolog gnome1 gcc7 gcc8 Testing for package conflicts in Prolog It's a Prolog program that I want to check for dependencies between Linux packages and if there are conflicts anywhere.
[ 0.00909423828125, -0.033447265625, 0.0177001953125, 0.033203125, -0.0098876953125, -0.00994873046875, -0.009765625, 0.004241943359375, 0.001708984375, -0.00750732421875, 0.00225830078125, 0.003448486328125, -0.01239013671875, 0.013916015625, 0.008056640625, 0.0162353515625, -0.003036...
[ 8647, 214, 100, 98169, 79612, 7, 23, 1250, 4867, 195625, 1830, 42548, 11508, 6077, 502, 706, 64970, 418, 22109, 966, 1019, 1528, 3444, 47, 12765, 117538, 17721, 29908, 2174, 2685, 151107 ]
[ 0.2158203125, 0.070556640625, 0.1131591796875, 0.228271484375, 0.2489013671875, 0.1466064453125, 0.0616455078125, 0.1817626953125, 0.25048828125, 0.1561279296875, 0.0447998046875, 0.197509765625, 0.034759521484375, 0.06695556640625, 0.111328125, 0.002140045166015625, 0.1783447265625,...
embed
49786237_c0
49786237
prolog
0
Title: How to use predicate value inside another predicate Problem title: How to use predicate value inside another predicate Tags: prolog Problem: How to use predicate value inside another predicate My rules looks like this. cars(ferrari, 320). cars(ford, 270). cars(mercedes, 280). cars(toyota, 220). I have a predicat...
How to use predicate value inside another predicate How to use predicate value inside another predicate prolog How is_faster Carmodel How to use predicate value inside another predicate My rules looks like this. I have a predicate in which I want to check if a specific car is faster. So when I write is_faster(ferrari),...
[ -0.0031890869140625, -0.0263671875, -0.0172119140625, 0.0037078857421875, -0.0029296875, 0.0245361328125, 0.0177001953125, 0.002838134765625, 0.01123046875, -0.042236328125, 0.001953125, 0.012451171875, -0.018310546875, -0.01336669921875, 0.0191650390625, -0.006561279296875, -0.01062...
[ 11249, 4527, 1653, 2063, 67, 34292, 46132, 15700, 502, 4867, 83, 1021, 1515, 3980, 51734, 91736, 33342, 12765, 29458, 2258, 4271, 56, 33022, 2875, 105588, 41206, 29568, 144851, 1193, 959, 176377, 130250, 44691, 20949 ]
[ 0.05535888671875, 0.15087890625, 0.1644287109375, 0.2132568359375, 0.119140625, 0.2271728515625, 0.1751708984375, 0.1063232421875, 0.10693359375, 0.177490234375, 0.07012939453125, 0.1329345703125, 0.1414794921875, 0.103515625, 0.267333984375, 0.126220703125, 0.009033203125, 0.14257...
embed
40833437_c0
40833437
prolog
0
Title: Can I use findall to know which item of a list has the smallest price? Problem title: Can I use findall to know which item of a list has the smallest price? Tags: prolog, list Problem: Can I use findall to know which item of a list has the smallest price? I'm implementing an algorithm that puts all the paths bet...
Can I use findall to know which item of a list has the smallest price? Can I use findall to know which item of a list has the smallest price? prolog list Can Can I use findall to know which item of a list has the smallest price? I'm implementing an algorithm that puts all the paths between two cities in a list. This li...
[ -0.006378173828125, -0.0130615234375, 0.014404296875, 0.01251220703125, 0.0074462890625, 0.00604248046875, 0.00543212890625, 0.0062255859375, 0.01531982421875, -0.033447265625, 0.01470947265625, 0.0081787109375, -0.01519775390625, 0.004058837890625, -0.01513671875, 0.0284423828125, 0...
[ 4171, 4527, 7413, 5584, 3714, 35735, 5303, 19336, 525, 27167, 1556, 70, 502, 4867, 87, 47, 3129, 111, 29479, 234873, 60875, 17721, 6626, 162708, 30098, 3622, 35971, 84458, 33342, 1884, 3444, 83, 19713, 135587, 5809, 35978, 3917, 18113, 1638...
[ 0.055419921875, 0.07073974609375, 0.1593017578125, 0.248779296875, 0.13232421875, 0.13916015625, 0.182373046875, 0.165283203125, 0.1566162109375, 0.1781005859375, 0.047271728515625, 0.06182861328125, 0.08319091796875, 0.1741943359375, 0.009765625, 0.0452880859375, 0.0244903564453125,...
embed
25532579_c0
25532579
prolog
0
Title: Prolog - copy a piece of list Problem title: Prolog - copy a piece of list Tags: list, copy, prolog Problem: Prolog - copy a piece of list I need to duplicate list in prolog. I have list: L = [a(string1,value1),a(string2,value2),a(string3,value3),a(string4,value4)]. Output will be: L = [string1, string2, string3...
Prolog - copy a piece of list Prolog - copy a piece of list list copy prolog Prolog string1 value1 string2 value2 string3 value3 string4 value4 copy2 Prolog - copy a piece of list I need to duplicate list in prolog. I have list: Output will be: L = [string1, string2, string3, string4] . How can I do this? I can copy wh...
[ -0.00408935546875, -0.01422119140625, -0.007415771484375, 0.0262451171875, -0.0242919921875, 0.0038299560546875, 0.01708984375, 0.00689697265625, 0.0234375, -0.006805419921875, 0.003997802734375, -0.0034637451171875, 0.010009765625, 0.0030670166015625, 0.006317138671875, 0.003753662109...
[ 1250, 4867, 43658, 63847, 111, 5303, 10, 502, 79315, 418, 34292, 304, 363, 617, 3871, 47, 171763, 67, 23, 765, 13538, 7077, 1221, 186, 339, 2203, 91693, 831, 54, 903, 28271, 390, 18151, 37842, 1884, 959, 4488, 155965, 4734, 7, 1295, 7...
[ 0.173095703125, 0.25244140625, 0.2152099609375, 0.1448974609375, 0.061187744140625, 0.2078857421875, 0.004119873046875, 0.1585693359375, 0.1844482421875, 0.02667236328125, 0.13427734375, 0.058837890625, 0.061920166015625, 0.1190185546875, 0.099365234375, 0.00823974609375, 0.189575195...
embed
17015031_c0
17015031
prolog
0
Title: Prolog - findall function Problem title: Prolog - findall function Tags: prolog Problem: Prolog - findall function How can I use findall function in another function, I mean subset(0, [], []). subset(Len, [E|Tail], [E|NTail]):- succ(PLen, Len),(PLen > 0 -> subset(PLen, Tail, NTail) ; NTail=[]). subset(Len, [_|Ta...
Prolog - findall function Prolog - findall function prolog Prolog Len Tail NTail PLen List Result findall3 Prolog - findall function How can I use findall function in another function, I mean This gives sublist of a list with N elements but I want to keep all result in a list,then I wrote Howewer I get error, I am new ...
[ 0.00994873046875, 0.0130615234375, 0.01446533203125, 0.0133056640625, -0.0026397705078125, 0.0086669921875, 0.000766754150390625, 0.006500244140625, 0.0211181640625, -0.025146484375, 0.006103515625, -0.01263427734375, 0.0010833740234375, -0.0107421875, 0.000614166259765625, 0.000926971...
[ 1250, 4867, 7413, 5584, 32354, 502, 18226, 1218, 379, 25820, 33106, 33, 32036, 126684, 363, 831, 4527, 23, 15700, 76199, 1614, 6562, 5303, 541, 80854, 3444, 13695, 756, 16750, 54397, 11249, 13, 6488, 18499, 3525, 903, 127689, 107003, 113054...
[ 0.1304931640625, 0.251220703125, 0.1689453125, 0.272216796875, 0.1885986328125, 0.08526611328125, 0.0885009765625, 0.046295166015625, 0.0341796875, 0.116455078125, 0.016021728515625, 0.056396484375, 0.10791015625, 0.0927734375, 0.078369140625, 0.0182952880859375, 0.12744140625, 0.0...
embed
36874779_c0
36874779
prolog
0
Title: Prolog formula parser Problem title: Prolog formula parser Tags: prolog Problem: Prolog formula parser I have to write a predicate parse(FIn, FOut) that takes a logical formula containing prolog operands "+", "," and ";" as parameter FIn and a logical formula containing "not", "and" and "or" instead of the prolo...
Prolog formula parser Prolog formula parser prolog Prolog FIn FOut Prolog formula parser I have to write a predicate parse(FIn, FOut) that takes a logical formula containing prolog operands "+", "," and ";" as parameter FIn and a logical formula containing "not", "and" and "or" instead of the prolog operands as paramet...
[ 0.02099609375, -0.0036773681640625, -0.01031494140625, 0.01171875, -0.0267333984375, 0.0120849609375, 0.0021820068359375, -0.0029754638671875, 0.00689697265625, 0.009033203125, -0.00213623046875, -0.022216796875, 0.00396728515625, -0.000392913818359375, -0.002960205078125, 0.0029296875...
[ 1250, 4867, 26168, 366, 2189, 502, 32983, 19, 563, 79858, 765, 33022, 1653, 2063, 67, 184, 22724, 51776, 62775, 70541, 6264, 2208, 1328, 74, 171859, 10869, 2940, 748, 64457, 1556, 30646, 29568, 2174, 136, 183234, 876, 959, 12765, 90584, 3...
[ 0.161376953125, 0.2327880859375, 0.259033203125, 0.164306640625, 0.1123046875, 0.12841796875, 0.171875, 0.1636962890625, 0.100830078125, 0.2498779296875, 0.00390625, 0.09893798828125, 0.1649169921875, 0.19384765625, 0.0946044921875, 0.13037109375, 0.168212890625, 0.0694580078125, ...
embed
44749504_c0
44749504
prolog
0
Title: Prolog internal variable names Problem title: Prolog internal variable names Tags: prolog Problem: Prolog internal variable names I have a large numbers of facts that are already in my file (position(M,P)) , M is the name and P is the position of the player , I am asked to do a player_list(L,N) , L is the list o...
Prolog internal variable names Prolog internal variable names prolog Prolog player_list _9176 _9182 _9188 _9194 Prolog internal variable names I have a large numbers of facts that are already in my file (position(M,P)) , M is the name and P is the position of the player , I am asked to do a player_list(L,N) , L is the ...
[ 0.01611328125, 0.003387451171875, 0.018798828125, 0.0147705078125, -0.0086669921875, 0.017822265625, -0.02294921875, 0.027099609375, 0.0003509521484375, -0.03369140625, 0.01324462890625, 0.00372314453125, 0.0028839111328125, 0.019775390625, 0.0037994384765625, 0.00140380859375, 0.023...
[ 1250, 4867, 70796, 77336, 123055, 502, 58585, 6562, 12183, 11835, 12012, 1126, 112511, 14889, 765, 21334, 101935, 15824, 21771, 759, 11435, 40322, 594, 683, 276, 9351, 436, 19069, 37170, 54, 10, 866, 839, 339, 5303, 92865, 541, 13267, 43240...
[ 0.187744140625, 0.26123046875, 0.206787109375, 0.257080078125, 0.1676025390625, 0.10382080078125, 0.2044677734375, 0.2130126953125, 0.0980224609375, 0.1734619140625, 0.1605224609375, 0.0650634765625, 0.193359375, 0.1553955078125, 0.00250244140625, 0.00531005859375, 0.14453125, 0.13...
embed
43168269_c0
43168269
prolog
0
Title: How to check if the name is in a list that is recognized by its similar term in a predicate? Problem title: How to check if the name is in a list that is recognized by its similar term in a predicate? Tags: prolog Problem: How to check if the name is in a list that is recognized by its similar term in a predicat...
How to check if the name is in a list that is recognized by its similar term in a predicate? How to check if the name is in a list that is recognized by its similar term in a predicate? prolog How Tail How to check if the name is in a list that is recognized by its similar term in a predicate? Suppose, I have a prolog ...
[ -0.00081634521484375, -0.004638671875, 0.0185546875, 0.03466796875, -0.01483154296875, 0.03173828125, 0.006622314453125, 0.018798828125, 0.003143310546875, -0.009033203125, 0.04443359375, 0.00738525390625, 0.0177001953125, -0.016357421875, -0.00921630859375, 0.0111083984375, -0.00653...
[ 11249, 47, 12765, 2174, 9351, 83, 23, 5303, 125296, 21373, 13579, 1653, 2063, 67, 10, 390, 6863, 502, 4867, 1218, 379, 70, 450, 2367, 3444, 209274, 111, 5154, 39644, 30646, 163, 29568, 19612, 2060, 56112, 18, 20697, 32562, 33022, 1511, ...
[ 0.087158203125, 0.07330322265625, 0.2274169921875, 0.10064697265625, 0.1640625, 0.068115234375, 0.1177978515625, 0.193603515625, 0.1407470703125, 0.169921875, 0.1455078125, 0.1407470703125, 0.1741943359375, 0.062408447265625, 0.0252532958984375, 0.043701171875, 0.04547119140625, 0....
embed
43968169_c0
43968169
prolog
0
Title: check if element is repeated in list in prolog Problem title: check if element is repeated in list in prolog Tags: prolog Problem: check if element is repeated in list in prolog multi_available(X):- member(X, [grilled_chicken, jambo_beef, grilled_cheese_sandwich,roast_beef,potato_salad,chicken_rice, jambo_beef, ...
check if element is repeated in list in prolog check if element is repeated in list in prolog prolog multi_available grilled_chicken jambo_beef grilled_cheese_sandwich roast_beef potato_salad chicken_rice service_dish beef_stew potato_corn mushroom_rice check if element is repeated in list in prolog How can I check if ...
[ -0.0196533203125, -0.0033416748046875, 0.0206298828125, 0.0159912109375, -0.0150146484375, 0.0152587890625, 0.0027313232421875, 0.00154876708984375, 0.012451171875, -0.017578125, 0.005950927734375, 0.0032806396484375, 0.01544189453125, -0.00518798828125, -0.00121307373046875, 0.0012741...
[ 12765, 2174, 12830, 83, 119140, 297, 23, 5303, 502, 4867, 6024, 5528, 379, 2886, 28223, 134342, 33, 40538, 372, 4240, 1430, 7717, 69696, 4438, 28647, 20088, 143896, 32512, 4516, 4745, 186, 824, 434, 10517, 79755, 28905, 831, 1250 ]
[ 0.1982421875, 0.1031494140625, 0.2159423828125, 0.08465576171875, 0.3017578125, 0.1842041015625, 0.1005859375, 0.1959228515625, 0.143798828125, 0.2435302734375, 0.094970703125, 0.05706787109375, 0.06842041015625, 0.06201171875, 0.1419677734375, 0.0814208984375, 0.050811767578125, 0...
embed
16205404_c0
16205404
prolog
0
Title: Prolog - negation in predicate Problem title: Prolog - negation in predicate Tags: prolog Problem: Prolog - negation in predicate I'm a prolog programming assignment and I not able to represent the following predicate in prolog form. The Batman who loves to watches soccer and buys ticket from Bill, never plays H...
Prolog - negation in predicate Prolog - negation in predicate prolog Prolog Listname Prolog - negation in predicate I'm a prolog programming assignment and I not able to represent the following predicate in prolog form. The Batman who loves to watches soccer and buys ticket from Bill, never plays Hockey or Cricket in h...
[ -0.00188446044921875, -0.02294921875, 0.00433349609375, 0.0167236328125, -0.012451171875, 0.005126953125, 0.01287841796875, 0.009521484375, 0.00010824203491210938, 0.01348876953125, -0.00179290771484375, -0.0032958984375, -0.0025177001953125, -0.00634765625, -0.0130615234375, 0.0057983...
[ 1250, 4867, 108, 125682, 23, 1653, 2063, 67, 502, 32036, 11627, 56037, 95486, 959, 19048, 33636, 25632, 3173, 581, 82630, 2750, 5161, 47, 39544, 38887, 3443, 22113, 99126, 19893, 8306, 11301, 193171, 707, 203983, 1919, 4092, 1733, 33022, 28...
[ 0.1741943359375, 0.2430419921875, 0.2010498046875, 0.207763671875, 0.083251953125, 0.1561279296875, 0.2264404296875, 0.1219482421875, 0.138671875, 0.1563720703125, 0.10711669921875, 0.0982666015625, 0.078125, 0.01641845703125, 0.0333251953125, 0.14013671875, 0.02496337890625, 0.105...
embed
33923708_c0
33923708
prolog
0
Title: Compare the first item of a list with the last one of another list in prolog Problem title: Compare the first item of a list with the last one of another list in prolog Tags: prolog, swap, list, compare Problem: Compare the first item of a list with the last one of another list in prolog I am trying to compare t...
Compare the first item of a list with the last one of another list in prolog Compare the first item of a list with the last one of another list in prolog prolog swap list compare Compare Compare the first item of a list with the last one of another list in prolog I am trying to compare two different lists, but the comp...
[ -0.00701904296875, 0.00689697265625, -0.002532958984375, 0.003814697265625, -0.018798828125, -0.001007080078125, 0.0002498626708984375, 0.01275634765625, 0.014892578125, 0.0021514892578125, 0.01385498046875, 0.036865234375, 0.00738525390625, 0.0269775390625, 0.0118408203125, -0.0065307...
[ 113307, 13, 5117, 35735, 5303, 678, 4568, 502, 4867, 111, 15700, 202317, 69101, 23, 31577, 47, 6626, 12921, 31898, 1363, 17474, 55769, 105950, 22925, 105274, 8110, 25632, 18151, 214493 ]
[ 0.189697265625, 0.07171630859375, 0.152099609375, 0.1700439453125, 0.1964111328125, 0.09796142578125, 0.140869140625, 0.1610107421875, 0.2030029296875, 0.04437255859375, 0.02606201171875, 0.207275390625, 0.220458984375, 0.004608154296875, 0.0596923828125, 0.01239013671875, 0.07385253...
embed
65085447_c0
65085447
prolog
0
Title: Remove shared items in a list in prolog Problem title: Remove shared items in a list in prolog Tags: sorting, prolog, list Problem: Remove shared items in a list in prolog I have been trying to program a function that takes two lists, and returns a list of the items from list one that DO NOT APPEAR in the list 2...
Remove shared items in a list in prolog Remove shared items in a list in prolog sorting prolog list Remove remove_them List Newhead NewTail NewList Remove shared items in a list in prolog I have been trying to program a function that takes two lists, and returns a list of the items from list one that DO NOT APPEAR in t...
[ -0.004974365234375, 0.0272216796875, 0.014404296875, 0.00732421875, -0.0142822265625, 0.01055908203125, -0.0147705078125, 0.00830078125, 0.0089111328125, 0.00244140625, 0.012939453125, 0.00958251953125, 0.0155029296875, 0.01904296875, 0.00836181640625, 0.007476806640625, 0.0233154296...
[ 181139, 99764, 55769, 23, 5303, 502, 4867, 12096, 87388, 2347, 39, 32036, 2356, 31251, 9874, 379, 154663, 31577, 1528, 32354, 51776, 6626, 30646, 1295, 1632, 6197, 86725, 66440, 127427, 787, 18151, 2060, 33816, 46389, 3934, 26366, 3034, 98320...
[ 0.1607666015625, 0.252197265625, 0.19775390625, 0.06964111328125, 0.20458984375, 0.15771484375, 0.241943359375, 0.1229248046875, 0.19287109375, 0.13525390625, 0.046112060546875, 0.186767578125, 0.040863037109375, 0.1353759765625, 0.083251953125, 0.0731201171875, 0.15771484375, 0.00...
embed
22894620_c0
22894620
prolog
0
Title: How to create a list of fixed length and sums up to a certain number while choosing from its elements from other list Problem title: How to create a list of fixed length and sums up to a certain number while choosing from its elements from other list Tags: prolog, list Problem: How to create a list of fixed leng...
How to create a list of fixed length and sums up to a certain number while choosing from its elements from other list How to create a list of fixed length and sums up to a certain number while choosing from its elements from other list prolog list its other How How to create a list of fixed length and sums up to a cert...
[ -0.00677490234375, 0.01495361328125, 0.0032958984375, 0.00079345703125, -0.013916015625, -0.003997802734375, 0.003570556640625, 0.0189208984375, 0.026123046875, -0.041015625, 0.0029449462890625, -0.025146484375, 0.005523681640625, 0.0106201171875, -0.00506591796875, 0.015869140625, 0...
[ 11249, 28282, 5303, 188347, 140909, 10554, 1257, 14012, 12960, 218873, 80854, 1295, 3789, 47, 10, 111, 136, 7, 24233, 502, 4867, 6863 ]
[ 0.06402587890625, 0.1806640625, 0.2484130859375, 0.2496337890625, 0.178466796875, 0.19970703125, 0.07586669921875, 0.107666015625, 0.05523681640625, 0.14013671875, 0.12158203125, 0.06781005859375, 0.058837890625, 0.0180816650390625, 0.009613037109375, 0.038970947265625, 0.01928710937...
embed
16349670_c0
16349670
prolog
0
Title: SWI-Prolog file executing through Java Problem title: SWI-Prolog file executing through Java Tags: prolog, java, command-line Problem: SWI-Prolog file executing through Java I want to run SWI-Prolog from Java file. I want to read text.pl file and write the output in output.txt file. How can I do that? I'm not pr...
SWI-Prolog file executing through Java SWI-Prolog file executing through Java prolog java command-line SWI-Prolog Java Example SystemCommandsRunner scr.runCommand input.pl output.txt SWI-Prolog file executing through Java I want to run SWI-Prolog from Java file. I want to read text.pl file and write the output in outpu...
[ 0.005767822265625, 0.00162506103515625, 0.00157928466796875, 0.0074462890625, -0.01104736328125, 0.003936767578125, 0.005828857421875, -0.01129150390625, -0.0087890625, -0.0213623046875, 0.01904296875, 0.0400390625, -0.0299072265625, 0.0008392333984375, 0.003570556640625, -0.0166015625...
[ 159, 38969, 9, 10752, 4867, 11435, 71924, 214, 8305, 41925, 502, 79, 330, 75101, 2256, 89536, 12353, 10770, 12018, 163321, 1679, 42, 16428, 107730, 2424, 140992, 124326, 3444, 11675, 1295, 12301, 7986, 33022, 831, 54, 26785, 16031, 13315, 1...
[ 0.1075439453125, 0.26708984375, 0.053497314453125, 0.17041015625, 0.2119140625, 0.1580810546875, 0.1363525390625, 0.044189453125, 0.1180419921875, 0.2298583984375, 0.142578125, 0.10296630859375, 0.1605224609375, 0.134033203125, 0.10675048828125, 0.099609375, 0.0247955322265625, 0.0...
embed
51968349_c0
51968349
prolog
0
Title: Prolog count frequencies Problem title: Prolog count frequencies Tags: prolog Problem: Prolog count frequencies Is it possible to write a predicate which takes an input list and "outputs" (succeeds) an output list with key-value pairs example: freqs([a,b,a,a,b,c],L). L = [(a,3),(b,2),(c,1)] I'd prefer to do this...
Prolog count frequencies Prolog count frequencies prolog Prolog Out Table Prolog count frequencies Is it possible to write a predicate which takes an input list and "outputs" (succeeds) an output list with key-value pairs example: I'd prefer to do this in O(n) if possible. The furthest I've gotten is this more specific...
[ 0.029052734375, -0.0103759765625, 0.005615234375, -0.0198974609375, -0.01153564453125, -0.006317138671875, 0.02001953125, -0.009765625, 0.00064849853515625, -0.02685546875, 0.01458740234375, 0.00067901611328125, 0.0155029296875, 0.045166015625, 0.004791259765625, 0.00244140625, 0.008...
[ 1250, 4867, 54529, 12478, 944, 117538, 502, 13538, 112997, 7722, 33022, 1653, 2063, 67, 51776, 107730, 5303, 136, 6056, 7077, 39884, 140992, 22799, 27494, 80836, 27781, 12601, 180, 132, 19, 91344, 29458, 3642, 158661, 541, 29806, 119591 ]
[ 0.1573486328125, 0.23095703125, 0.2130126953125, 0.162353515625, 0.1094970703125, 0.016143798828125, 0.09619140625, 0.10577392578125, 0.13671875, 0.119140625, 0.13427734375, 0.1785888671875, 0.2386474609375, 0.1177978515625, 0.06951904296875, 0.179443359375, 0.1494140625, 0.0290222...
embed
75597081_c0
75597081
prolog
0
Title: Converting if-then in Prolog to multiple clauses with reification Problem title: Converting if-then in Prolog to multiple clauses with reification Tags: cut, if-statement, prolog Problem: Converting if-then in Prolog to multiple clauses with reification I want to design a top-level interface for Prolog that is n...
Converting if-then in Prolog to multiple clauses with reification Converting if-then in Prolog to multiple clauses with reification cut if-statement prolog Converting Prolog test1 Converting if-then in Prolog to multiple clauses with reification I want to design a top-level interface for Prolog that is not buggy (where...
[ 0.0002288818359375, 0.00689697265625, 0.0177001953125, 0.019775390625, -0.0054931640625, 0.00164031982421875, 0.00640869140625, 0.014892578125, 0.0067138671875, -0.01202392578125, -0.01263427734375, 0.0263671875, -0.03466796875, 0.01019287109375, 0.0272216796875, 0.004730224609375, 0...
[ 1657, 814, 1916, 2174, 9, 92733, 1250, 4867, 47, 48716, 70731, 90, 678, 456, 41274, 23, 59226, 61340, 502, 3034, 418, 3444, 4331, 2663, 67919, 101758, 959, 373, 67192, 711, 65771, 314, 44126, 38496, 216806, 16680, 538, 5809, 96760, 85027,...
[ 0.06207275390625, 0.1640625, 0.0225677490234375, 0.2119140625, 0.03558349609375, 0.280517578125, 0.160888671875, 0.245849609375, 0.10302734375, 0.197021484375, 0.225341796875, 0.08831787109375, 0.02532958984375, 0.0987548828125, 0.216552734375, 0.029327392578125, 0.1214599609375, 0...
embed
14168713_c0
14168713
prolog
0
Title: Prolog looping due to interdependency Problem title: Prolog looping due to interdependency Tags: prolog, infinite-loop Problem: Prolog looping due to interdependency Have to write some prolog rules to represent the geometrical properties about isosceles triangle. First rule is to say angleEqual(angle(A,B,C),angl...
Prolog looping due to interdependency Prolog looping due to interdependency prolog infinite-loop Prolog Prolog looping due to interdependency Have to write some prolog rules to represent the geometrical properties about isosceles triangle. First rule is to say Second rule says But the two rules together will cause a in...
[ 0.02099609375, -0.005096435546875, 0.004302978515625, 0.0157470703125, -0.00848388671875, -0.000370025634765625, 0.0068359375, 0.02294921875, -0.0172119140625, -0.039306640625, -0.001922607421875, 0.006744384765625, -0.00142669677734375, -0.00738525390625, 0.020751953125, 0.01196289062...
[ 1250, 4867, 40956, 214, 4743, 47, 1940, 105254, 33, 2408, 502, 54241, 13, 28354, 33022, 91736, 33636, 70, 84183, 183871, 83, 232, 46873, 7, 1927, 109217, 23972, 79986, 5154, 77648, 6626, 25842, 22304, 136993, 2174, 34475, 15824, 6044, 41, ...
[ 0.18701171875, 0.260986328125, 0.228271484375, 0.14892578125, 0.1151123046875, 0.04364013671875, 0.151123046875, 0.200927734375, 0.08740234375, 0.01361083984375, 0.1612548828125, 0.14404296875, 0.055389404296875, 0.216064453125, 0.048248291015625, 0.149658203125, 0.060455322265625, ...
embed
59642684_c0
59642684
prolog
0
Title: Prolog Recursion | using multiple predicates to calculate sum Problem title: Prolog Recursion | using multiple predicates to calculate sum Tags: prolog Problem: Prolog Recursion | using multiple predicates to calculate sum could someone tell me how do I solve the below question: people_in_capitals(N): N is the t...
Prolog Recursion | using multiple predicates to calculate sum Prolog Recursion | using multiple predicates to calculate sum prolog multiple Prolog Recursion Prolog Recursion | using multiple predicates to calculate sum could someone tell me how do I solve the below question: people_in_capitals(N): N is the total number...
[ -0.009033203125, 0.0009765625, 0.0042724609375, 0.0257568359375, -0.012939453125, 0.00872802734375, 0.007080078125, 0.0191650390625, 0.01470947265625, -0.04931640625, 0.003387451171875, -0.027587890625, -0.0201416015625, -0.0029754638671875, 0.0225830078125, 0.003631591796875, 0.0168...
[ 1250, 4867, 165428, 42, 6889, 17368, 48716, 1653, 2063, 1636, 74481, 67, 10554, 502, 14192, 3642, 86869, 35064, 9655, 3395, 73, 215652, 839, 541, 83, 3622, 14012, 38043, 23, 10323, 162708, 8999, 36836, 23295, 163612, 11338, 32546, 177997, 8...
[ 0.1536865234375, 0.2353515625, 0.137451171875, 0.1324462890625, 0.10003662109375, 0.09881591796875, 0.1951904296875, 0.17578125, 0.1983642578125, 0.10498046875, 0.1982421875, 0.0819091796875, 0.21337890625, 0.12451171875, 0.041259765625, 0.0202789306640625, 0.12939453125, 0.0667724...
embed
72246407_c0
72246407
prolog
0
Title: Return values in Prolog predicate Problem title: Return values in Prolog predicate Tags: prolog Problem: Return values in Prolog predicate My predicate only returns a solution forcibly (when adding write(L)). The result is always an empty list. I ask for help in solving this problem. %:- dynamic myList/2. myList...
Return values in Prolog predicate Return values in Prolog predicate prolog Prolog Return values in Prolog predicate My predicate only returns a solution forcibly (when adding write(L)). The result is always an empty list. I ask for help in solving this problem.
[ 0.00994873046875, 0.000873565673828125, -0.00019168853759765625, -0.000056743621826171875, -0.00933837890625, 0.01007080078125, 0.001495361328125, 0.00159454345703125, 0.004852294921875, -0.014404296875, 0.0152587890625, -0.0074462890625, -0.0059814453125, -0.016845703125, 0.008850097656...
[ 173340, 142424, 1250, 4867, 1653, 2063, 67, 502, 4734, 30646, 29806, 100, 318, 38526, 154107, 33022, 866, 16750, 11343, 201505, 5303, 4358, 2967 ]
[ 0.22705078125, 0.1890869140625, 0.163330078125, 0.2454833984375, 0.1708984375, 0.2012939453125, 0.09124755859375, 0.091552734375, 0.041229248046875, 0.1627197265625, 0.1722412109375, 0.044708251953125, 0.0435791015625, 0.05377197265625, 0.07318115234375, 0.1795654296875, 0.1331787109...
embed
24720738_c1
24720738
prolog
1
Component ]), get_component( Type, Component ), Ls ). selection --> { selection( Ls ) }, html( [ div( select( Ls ))]). selection( Ls ) :- findall( option( [ name = Incident, value = Incident ], Incident ), get_incident( Incident ), Ls ). Now i want to use this information as post parameters. I found 2 solutions, http_...
Component ]), get_component( Type, Component ), Ls ). selection --> { selection( Ls ) }, html( [ div( select( Ls ))]). selection( Ls ) :- findall( option( [ name = Incident, value = Incident ], Incident ), get_incident( Incident ), Ls ). Now i want to use this information as post parameters. I found 2 solutions, http_...
[ -0.0169677734375, 0.014404296875, 0.01007080078125, -0.001434326171875, -0.0179443359375, -0.0019683837890625, 0.00531005859375, 0.000652313232421875, 0.00017642974853515625, -0.058349609375, -0.000492095947265625, -0.0093994140625, -0.01123046875, 0.02392578125, -0.007293701171875, -0...
[ 3288, 54137, 2046, 277, 60457, 339, 7, 132216, 7693, 132, 18221, 36849, 7413, 5584, 35829, 9351, 360, 36079, 34292, 73, 3444, 4527, 903, 4677, 237, 1305, 171859, 14037, 116, 51347, 1621, 6276, 29089, 18113, 136, 32786, 55300, 4594, 853, 7...
[ 0.1246337890625, 0.265869140625, 0.1170654296875, 0.08380126953125, 0.2108154296875, 0.06292724609375, 0.025177001953125, 0.1494140625, 0.17333984375, 0.000152587890625, 0.06591796875, 0.133544921875, 0.0899658203125, 0.146240234375, 0.1905517578125, 0.008819580078125, 0.048217773437...
embed
30895117_c1
30895117
prolog
1
Acc, [Y|T]):- X \= Y. repeat(_, 0, []):- !. % There is no existing predicate, is there? repeat(X, N, [X|T]):- N > 0, N1 is N - 1, repeat(X, N1, T). This code works, but as you might have noticed, the definition of occurs_most/3 looks terrible with all those if-statements. I also want to be able to get all solutions th...
Acc, [Y|T]):- X \= Y. repeat(_, 0, []):- !. % There is no existing predicate, is there? repeat(X, N, [X|T]):- N > 0, N1 is N - 1, repeat(X, N1, T). This code works, but as you might have noticed, the definition of occurs_most/3 looks terrible with all those if-statements. I also want to be able to get all solutions th...
[ 0.006317138671875, 0.018310546875, 0.015625, 0.0026702880859375, 0.0086669921875, 0.010986328125, -0.00555419921875, -0.01611328125, 0.01324462890625, -0.03173828125, 0.01422119140625, -0.000453948974609375, -0.01055908203125, -0.0031890869140625, 0.00157928466796875, 0.001998901367187...
[ 29899, 1723, 58745, 618, 1193, 1369, 990, 119140, 757, 9, 711, 1745, 83, 110, 144573, 1653, 2063, 67, 2685, 1542, 541, 977, 418, 20, 106, 384, 18151, 43240, 80934, 74918, 7, 840, 18, 18113, 33342, 94176, 2174, 61340, 3444, 756, 51347, ...
[ 0.137939453125, 0.0875244140625, 0.07012939453125, 0.092529296875, 0.08856201171875, 0.06732177734375, 0.09454345703125, 0.2427978515625, 0.1226806640625, 0.019256591796875, 0.0821533203125, 0.0692138671875, 0.04632568359375, 0.10076904296875, 0.21728515625, 0.17236328125, 0.20874023...
embed
55704856_c0
55704856
prolog
0
Title: How can I show the max number Problem title: How can I show the max number Tags: prolog Problem: How can I show the max number I know my question will sound silly for you. It's just I can't get this language since it's very different from the languages I know. I need to take the max number of the rating predict ...
How can I show the max number How can I show the max number prolog How How can I show the max number I know my question will sound silly for you. It's just I can't get this language since it's very different from the languages I know. I need to take the max number of the rating predict but I didn't know how to do it. W...
[ 0.015380859375, -0.0003223419189453125, 0.02392578125, 0.000743865966796875, 0.008056640625, 0.0167236328125, -0.0003910064697265625, 0.0252685546875, 0.0076904296875, -0.03662109375, -0.0179443359375, -0.0198974609375, -0.0159912109375, -0.017578125, 0.000308990478515625, -0.003463745...
[ 11249, 831, 7639, 18389, 14012, 87, 70, 502, 4867, 3714, 45730, 12097, 2046, 46876, 12921, 5646, 66038, 92054, 25188, 135179, 5303, 18, 18151, 20594, 50944, 425, 7108 ]
[ 0.05615234375, 0.05987548828125, 0.1806640625, 0.224365234375, 0.1876220703125, 0.05157470703125, 0.03326416015625, 0.1307373046875, 0.16552734375, 0.035369873046875, 0.049072265625, 0.0635986328125, 0.02984619140625, 0.1025390625, 0.0301513671875, 0.0556640625, 0.1982421875, 0.208...
embed
57442899_c0
57442899
prolog
0
Title: How can I localize the reasons for excessive goal expansion? Problem title: How can I localize the reasons for excessive goal expansion? Tags: sicstus-prolog, prolog, dcg Problem: How can I localize the reasons for excessive goal expansion? Code signals: How, print_profile, prolog:wellformed_body_expand, prolog:...
How can I localize the reasons for excessive goal expansion? How can I localize the reasons for excessive goal expansion? sicstus-prolog prolog dcg How print_profile prolog:wellformed_body_expand prolog:call_goal_expansion prolog:choice prolog:in_hook_flag prolog:prolog_catch prolog:wellformed_body_iso prolog:goal_exp ...
[ 0.0255126953125, 0.01446533203125, -0.0206298828125, 0.013427734375, 0.004180908203125, 0.01068115234375, -0.002960205078125, -0.01190185546875, 0.00457763671875, -0.023681640625, 0.01483154296875, -0.00830078125, 0.0023345947265625, -0.02099609375, 0.03271484375, 0.00604248046875, 0...
[ 11249, 831, 87, 39861, 731, 70, 89397, 100, 218527, 69236, 14700, 66, 6889, 26536, 18253, 3454, 4867, 502, 238, 28412, 58395, 13, 19256, 5037, 37873, 83613, 2940, 85763, 519, 3089, 497, 685, 190872, 4460, 16369, 420, 60427, 83279, 30145, ...
[ 0.04864501953125, 0.05157470703125, 0.0144805908203125, 0.225341796875, 0.10791015625, 0.041259765625, 0.2181396484375, 0.051666259765625, 0.2193603515625, 0.275634765625, 0.1092529296875, 0.1884765625, 0.1202392578125, 0.0821533203125, 0.2005615234375, 0.13720703125, 0.2406005859375...
embed
71500398_c0
71500398
prolog
0
Title: (gnu) Prolog statement with &quot;or&quot; simple example Problem title: (gnu) Prolog statement with &quot;or&quot; simple example Tags: prolog, prolog-toplevel Problem: (gnu) Prolog statement with "or" simple example I struggle with a rather simple GNU Prolog example: I have a file (test.pl) cat(muki). dog(roti...
(gnu) Prolog statement with &quot;or&quot; simple example (gnu) Prolog statement with &quot;or&quot; simple example prolog prolog-toplevel Prolog test.pl (gnu) Prolog statement with "or" simple example I struggle with a rather simple GNU Prolog example: I have a file (test.pl) When testing it: Importing via ['test.pl']...
[ 0.0260009765625, 0.003662109375, 0.001983642578125, -0.0024566650390625, -0.0145263671875, -0.004638671875, 0.00124359130859375, 0.0101318359375, -0.003997802734375, -0.024658203125, -0.005889892578125, -0.00537109375, -0.0205078125, 0.006195068359375, 0.0205078125, 0.01251220703125, ...
[ 104155, 1250, 4867, 63805, 678, 748, 41502, 8781, 27781, 502, 13784, 67919, 3034, 2424, 151994, 165132, 11435, 6954, 134234, 92966, 26249, 211209, 14, 30646, 110, 237, 84751, 561, 301, 72272, 516, 118, 29568, 64457, 959, 41206, 26950, 87709, ...
[ 0.164306640625, 0.1595458984375, 0.2529296875, 0.173828125, 0.03076171875, 0.2344970703125, 0.018341064453125, 0.15771484375, 0.19140625, 0.13720703125, 0.03887939453125, 0.1087646484375, 0.1380615234375, 0.1510009765625, 0.07049560546875, 0.1683349609375, 0.111083984375, 0.1700439...
embed
28182044_c0
28182044
prolog
0
Title: Writing a Predicate Problem title: Writing a Predicate Tags: prolog Problem: Writing a Predicate I'm new to Prolog and I'm trying to write a predicate, goodveggies(X,Y) such that the code runs the following way: ?- goodveggies(broc,spinach). true. ?- goodveggies(X,artichoke). X = broc What I've tried: % Define t...
Writing a Predicate Writing a Predicate prolog Writing Predicate Define Now Writing a Predicate I'm new to Prolog and I'm trying to write a predicate, goodveggies(X,Y) such that the code runs the following way: What I've tried: My program runs fine, but the problem that I am having is that my program crashes when I typ...
[ -0.0089111328125, 0.004608154296875, -0.01019287109375, 0.00579833984375, 0.00750732421875, 0.040283203125, -0.007171630859375, -0.0020751953125, 0.0032501220703125, 0.01361083984375, 0.003570556640625, 0.00823974609375, -0.02685546875, -0.020751953125, -0.0146484375, 0.0167236328125, ...
[ 213185, 10, 7145, 2063, 67, 502, 4867, 262, 64552, 14240, 3525, 47, 1250, 31577, 33022, 1653, 4127, 31998, 124308, 1542, 1723, 6044, 18151, 127877, 25632, 3917, 37842, 1528, 5885, 2967, 19441, 150631, 3229, 10644, 9844, 1884, 6369, 238, 168...
[ 0.197998046875, 0.0537109375, 0.2164306640625, 0.25732421875, 0.163818359375, 0.150634765625, 0.2281494140625, 0.0731201171875, 0.1607666015625, 0.1011962890625, 0.06298828125, 0.012237548828125, 0.1534423828125, 0.079345703125, 0.1649169921875, 0.1983642578125, 0.132568359375, 0.1...
embed
26289762_c0
26289762
prolog
0
Title: Prolog compound terms Problem title: Prolog compound terms Tags: prolog Problem: Prolog compound terms I hate to ask basic questions here, but, it seems, good manuals on Prolog are hard to find. I have two terms: woman(alice). woman(janice). Now, I want to make the following compound term: sisters(woman(X), woma...
Prolog compound terms Prolog compound terms prolog Prolog Prolog compound terms I hate to ask basic questions here, but, it seems, good manuals on Prolog are hard to find. I have two terms: Now, I want to make the following compound term: When I run the query sisters(X,Y), I get this mumbo jumbo: X = woman(_G2215), Y =...
[ 0.0135498046875, 0.01239013671875, -0.007354736328125, 0.00799560546875, -0.01361083984375, 0.0233154296875, -0.00095367431640625, 0.00162506103515625, -0.00750732421875, -0.0478515625, -0.00634765625, -0.009033203125, -0.016845703125, 0.010498046875, 0.0035247802734375, 0.02099609375,...
[ 1250, 4867, 217773, 69407, 502, 35463, 23009, 6626, 3444, 3249, 25632, 13579, 11675, 41, 1294, 114015, 7, 1542, 1723, 2046, 903, 842, 7567, 1129, 1193, 46667, 4015, 62155, 990, 59741, 15824, 26818, 40407, 3387, 442, 2843, 29568, 44084, 2202...
[ 0.1412353515625, 0.2454833984375, 0.217529296875, 0.184814453125, 0.1083984375, 0.05474853515625, 0.1197509765625, 0.04840087890625, 0.017608642578125, 0.0693359375, 0.0201873779296875, 0.185302734375, 0.07159423828125, 0.1158447265625, 0.1077880859375, 0.1817626953125, 0.07067871093...
embed
16570776_c1
16570776
prolog
1
scanlist/3 . I assume that the problem here is that SWI's PIO library is trying to construct something to hand to phrase and it's just not intelligent enough. But this is something that comes up for me a lot, using phrase_from_file/2 , and I'm sure there will be other times I want to excavate something from SWI's libra...
scanlist/3 . I assume that the problem here is that SWI's PIO library is trying to construct something to hand to phrase and it's just not intelligent enough. But this is something that comes up for me a lot, using phrase_from_file/2 , and I'm sure there will be other times I want to excavate something from SWI's libra...
[ 0.00130462646484375, 0.0025634765625, 0.0002651214599609375, 0.02783203125, -0.025634765625, -0.00634765625, -0.010498046875, 0.01025390625, 0.0164794921875, -0.0283203125, 0.00714111328125, -0.01708984375, -0.00592041015625, -0.01190185546875, 0.00408935546875, 0.005950927734375, 0....
[ 44954, 6562, 18113, 41591, 2967, 159, 38969, 436, 17780, 35773, 1294, 31577, 64549, 3535, 47, 113860, 54497, 20174, 1257, 5915, 17368, 161063, 29822, 12477, 73427, 3017, 15555, 3917, 40225, 86687, 15644, 7, 72403, 13146, 139109, 28864, 26073, ...
[ 0.1883544921875, 0.263916015625, 0.212158203125, 0.0193023681640625, 0.1068115234375, 0.0290679931640625, 0.197998046875, 0.0703125, 0.201416015625, 0.1683349609375, 0.047607421875, 0.050628662109375, 0.104736328125, 0.0616455078125, 0.005950927734375, 0.2117919921875, 0.119995117187...
embed
5688234_c0
5688234
prolog
0
Title: How do I write every fact of a certain term to a file? Problem title: How do I write every fact of a certain term to a file? Tags: prolog, stream, java, logic, gnu Problem: How do I write every fact of a certain term to a file? I'm trying to write my results to a file. I'm doing this with GNU Prolog (or rather, ...
How do I write every fact of a certain term to a file? How do I write every fact of a certain term to a file? prolog stream java logic gnu How gnuprologstream.test FileStream write_term How do I write every fact of a certain term to a file? I'm trying to write my results to a file. I'm doing this with GNU Prolog (or ra...
[ 0.037353515625, 0.01177978515625, 0.00131988525390625, 0.000850677490234375, 0.000446319580078125, -0.00128936767578125, 0.0068359375, -0.00506591796875, 0.00927734375, -0.03076171875, 0.023681640625, 0.006561279296875, -0.007568359375, 0.017333984375, 0.00494384765625, -0.000261306762...
[ 11249, 54, 87, 33022, 11907, 15824, 111, 24233, 13579, 47, 11435, 502, 4867, 75973, 79, 330, 62775, 104155, 3454, 86429, 6954, 42724, 115061, 32166, 10, 31577, 50339, 165132, 1250, 41925, 5423, 9844, 11, 64113, 3444, 756, 2856, 31895, 4734,...
[ 0.1190185546875, 0.055755615234375, 0.03887939453125, 0.2266845703125, 0.195556640625, 0.240234375, 0.08099365234375, 0.0888671875, 0.2086181640625, 0.1717529296875, 0.2310791015625, 0.0955810546875, 0.213623046875, 0.1776123046875, 0.05499267578125, 0.10400390625, 0.137451171875, ...
embed
43683409_c0
43683409
prolog
0
Title: Sum of Fibonacci series in ProLog program Execution Problem title: Sum of Fibonacci series in ProLog program Execution Tags: fibonacci, prolog, recursion Problem: Sum of Fibonacci series in ProLog program Execution I have just started ProLog programming and trying to write sum of Fibonacci series program. I have...
Sum of Fibonacci series in ProLog program Execution Sum of Fibonacci series in ProLog program Execution fibonacci prolog recursion Sum Fibonacci ProLog Execution N-1 N-2 Sum of Fibonacci series in ProLog program Execution I have just started ProLog programming and trying to write sum of Fibonacci series program. I have...
[ 0.021240234375, -0.01953125, 0.005035400390625, 0.0034332275390625, -0.0196533203125, 0.0135498046875, 0.000843048095703125, 0.01513671875, 0.004974365234375, -0.00141143798828125, 0.00982666015625, -0.01202392578125, -0.0021820068359375, -0.0103759765625, 0.01336669921875, -0.00276184...
[ 36335, 111, 3698, 20990, 52544, 36549, 23, 1250, 113972, 1528, 211603, 809, 502, 4867, 195625, 541, 5759, 5428, 26859, 56037, 31577, 33022, 10554, 9655, 34475, 18151, 35672, 14192, 3642, 132294, 4488, 74644, 9790, 2448, 418, 839, 304, 34292, ...
[ 0.2159423828125, 0.1422119140625, 0.1397705078125, 0.15185546875, 0.1859130859375, 0.1873779296875, 0.010833740234375, 0.132080078125, 0.2139892578125, 0.1180419921875, 0.1473388671875, 0.08642578125, 0.09637451171875, 0.1630859375, 0.121826171875, 0.0703125, 0.10595703125, 0.14416...
embed
50786845_c0
50786845
prolog
0
Title: Prolog add elements Problem title: Prolog add elements Tags: prolog Problem: Prolog add elements My problem is: Write a Prolog program that, given two lists L1 and L2 , outputs two new lists L3 and L4 such that L3 contains the elements of L1 which also belong to L2 , while L4 contains the elements of L1 which do...
Prolog add elements Prolog add elements prolog Prolog Prolog add elements My problem is: And my solution is now: But when I test on the following input, it returns no.. What am I doing wrong?
[ -0.0030975341796875, 0.0234375, -0.006683349609375, 0.009521484375, -0.026123046875, 0.021728515625, -0.005126953125, 0.005950927734375, -0.00098419189453125, -0.028076171875, 0.031982421875, -0.00799560546875, 0.00469970703125, -0.000579833984375, 0.01446533203125, -0.007720947265625,...
[ 1250, 4867, 15190, 80854, 502, 2967, 29806, 5036, 4966, 3229, 3034, 98, 25632, 107730, 30646, 7, 110, 44691 ]
[ 0.1463623046875, 0.2305908203125, 0.1337890625, 0.2261962890625, 0.1143798828125, 0.07965087890625, 0.08905029296875, 0.011016845703125, 0.034210205078125, 0.029693603515625, 0.219970703125, 0.08758544921875, 0.15380859375, 0.2032470703125, 0.1434326171875, 0.001361846923828125, 0.19...
embed
43943525_c0
43943525
prolog
0
Title: Why my function is looping until Prolog crashes Problem title: Why my function is looping until Prolog crashes Tags: recursion, prolog Problem: Why my function is looping until Prolog crashes I can't seem to understand why my function is looping until Prolog crashes: isTerminalRow(_,_,_,Count,10):- Count > 4. is...
Why my function is looping until Prolog crashes Why my function is looping until Prolog crashes recursion prolog Why Prolog Count Index Move Move1 Value Why my function is looping until Prolog crashes I can't seem to understand why my function is looping until Prolog crashes: The call is
[ 0.0244140625, 0.00168609619140625, 0.0125732421875, 0.015380859375, -0.002532958984375, -0.0130615234375, 0.00015735626220703125, -0.00055694580078125, 0.00518798828125, -0.0238037109375, 0.0107421875, 0.0002880096435546875, -0.0223388671875, -0.000736236572265625, 0.028076171875, -0.0...
[ 44084, 759, 32354, 83, 40956, 214, 24189, 1250, 4867, 150631, 90, 195625, 1830, 502, 108210, 31471, 135828, 418, 190060, 28219, 15400, 11782 ]
[ 0.1048583984375, 0.0714111328125, 0.2030029296875, 0.059478759765625, 0.221435546875, 0.114501953125, 0.153564453125, 0.1685791015625, 0.2420654296875, 0.18017578125, 0.0794677734375, 0.160888671875, 0.0229644775390625, 0.121337890625, 0.1490478515625, 0.1719970703125, 0.173583984375...
embed
16067950_c0
16067950
prolog
0
Title: time exceeded exception in prolog, get last value before interupt Problem title: time exceeded exception in prolog, get last value before interupt Tags: prolog, try-catch, time Problem: time exceeded exception in prolog, get last value before interupt i have predicate that counts factorial for number N, but when...
time exceeded exception in prolog, get last value before interupt time exceeded exception in prolog, get last value before interupt prolog try-catch time Value Prev Prevfact call_with_time_limit time_limit_exceeded time exceeded exception in prolog, get last value before interupt i have predicate that counts factorial ...
[ -0.002105712890625, 0.01177978515625, 0.00909423828125, -0.01348876953125, -0.003021240234375, -0.020751953125, 0.009765625, 0.011962890625, -0.00872802734375, -0.0654296875, 0.0093994140625, 0.013671875, -0.02880859375, -0.0123291015625, 0.02880859375, -0.01251220703125, -0.00531005...
[ 1733, 204839, 297, 131527, 502, 4867, 2046, 4568, 34292, 8108, 1940, 2037, 18, 9790, 4460, 206, 190060, 74717, 114700, 11782, 76228, 6032, 93343, 3355, 329, 1653, 2063, 54529, 31461, 15403, 14012, 541, 106, 19216, 3674, 831, 310, 1660 ]
[ 0.1859130859375, 0.2105712890625, 0.1083984375, 0.2191162109375, 0.1396484375, 0.2188720703125, 0.1038818359375, 0.205322265625, 0.211669921875, 0.1387939453125, 0.07476806640625, 0.145751953125, 0.04168701171875, 0.09271240234375, 0.0806884765625, 0.02130126953125, 0.142578125, 0....
embed
4802544_c0
4802544
prolog
0
Title: How to combine PHP and Prolog Problem title: How to combine PHP and Prolog Tags: php, prolog, swi-prolog Problem: How to combine PHP and Prolog I'm trying to call Prolog using a PHP script. I'm using the syntax I found here , which is: $cmd = "nice -n15 /software/bin/pl -f /home/popx/cgi-bin/test.pl -g test,halt...
How to combine PHP and Prolog How to combine PHP and Prolog php prolog swi-prolog How PHP Prolog n15 test.pl How to combine PHP and Prolog I'm trying to call Prolog using a PHP script. I'm using the syntax I found here , which is: The program /bin/pl is where I have Prolog installed, and /home/popx/cgi-bin/test.pl is t...
[ 0.006591796875, 0.0089111328125, -0.003570556640625, 0.0184326171875, -0.0101318359375, 0.0264892578125, 0.0118408203125, -0.01226806640625, 0.005615234375, -0.06640625, 0.003997802734375, 0.056884765625, -0.0196533203125, 0.009033203125, -0.006744384765625, -0.00823974609375, 0.0118...
[ 11249, 47, 70163, 47302, 136, 1250, 4867, 3958, 502, 91, 2452, 3454, 653, 1837, 3034, 2424, 31577, 11782, 17368, 26499, 6002, 86531, 14037, 3688, 1528, 248, 7568, 7440, 20600, 29552, 33554, 425, 735, 6954, 31913, 11435, 147008, 151134, 6087...
[ 0.1207275390625, 0.052734375, 0.238037109375, 0.2734375, 0.153564453125, 0.203369140625, 0.2744140625, 0.1534423828125, 0.1796875, 0.0343017578125, 0.1934814453125, 0.1595458984375, 0.034423828125, 0.1959228515625, 0.18701171875, 0.1666259765625, 0.05914306640625, 0.13134765625, ...
embed
70255788_c0
70255788
prolog
0
Title: PROLOG, Is it possible to collect all result from a predicate to a list, without using built in predicates, such as bagof or findall Problem title: PROLOG, Is it possible to collect all result from a predicate to a list, without using built in predicates, such as bagof or findall Tags: prolog, prolog-findall Pro...
PROLOG, Is it possible to collect all result from a predicate to a list, without using built in predicates, such as bagof or findall PROLOG, Is it possible to collect all result from a predicate to a list, without using built in predicates, such as bagof or findall prolog prolog-findall a built PROLOG PROLOG, Is it pos...
[ 0.01104736328125, 0.0042724609375, -0.0019073486328125, 0.0191650390625, -0.0181884765625, 0.01287841796875, -0.01165771484375, -0.005706787109375, 0.0069580078125, -0.033203125, -0.007171630859375, -0.00469970703125, -0.0203857421875, -0.01397705078125, 0.01141357421875, 0.00318908691...
[ 10514, 47510, 442, 7722, 47, 43799, 756, 16750, 1295, 1653, 2063, 67, 5303, 15490, 17368, 88303, 23, 1636, 41780, 420, 7413, 5584, 502, 4867, 111607, 1250, 335, 34292, 111, 62, 142424, 450, 214493, 3934, 18113 ]
[ 0.1585693359375, 0.220458984375, 0.032379150390625, 0.1744384765625, 0.0843505859375, 0.224609375, 0.127197265625, 0.171875, 0.065673828125, 0.1461181640625, 0.1951904296875, 0.091796875, 0.18115234375, 0.0894775390625, 0.03582763671875, 0.1448974609375, 0.0911865234375, 0.01287841...
embed
35668475_c0
35668475
prolog
0
Title: Prolog vs Erlang (and other functional languages) Problem title: Prolog vs Erlang (and other functional languages) Tags: prolog, functional-programming, erlang Problem: Prolog vs Erlang (and other functional languages) What's wrong with Prolog? Prolog is quite good with lists and pattern matching, and offers bac...
Prolog vs Erlang (and other functional languages) Prolog vs Erlang (and other functional languages) prolog functional-programming erlang Prolog Erlang Prolog vs Erlang (and other functional languages) What's wrong with Prolog? Prolog is quite good with lists and pattern matching, and offers backtracking as a bonus. And...
[ 0.041259765625, 0.006256103515625, 0.01123046875, -0.01129150390625, -0.0155029296875, -0.00482177734375, -0.017333984375, 0.00070953369140625, 0.006500244140625, -0.0216064453125, 0.0130615234375, -0.0162353515625, 0.006805419921875, -0.0030670166015625, 0.01397705078125, -0.003234863...
[ 1250, 4867, 20209, 1004, 3066, 3789, 123309, 46876, 502, 28966, 72, 4865, 44691, 678, 83, 32233, 4127, 5303, 103510, 14858, 64600, 4420, 125728, 214, 9396, 14373, 8, 23662, 47143, 34955, 12960, 29695, 5084, 136, 6024, 62479, 27781, 6002, 86...
[ 0.1983642578125, 0.288818359375, 0.1788330078125, 0.1593017578125, 0.2939453125, 0.01177978515625, 0.2291259765625, 0.22119140625, 0.1510009765625, 0.137939453125, 0.1085205078125, 0.038421630859375, 0.205810546875, 0.094482421875, 0.0360107421875, 0.0908203125, 0.1405029296875, 0....
embed
16367580_c2
16367580
prolog
2
,2),(1,3),(2,1),(2,3)]), ((2,1),[(1,1),(1,2),(2,2)]), ((2,3),[(1,2),(1,3),(2,2)])] (list of pairs where the first element in the pair is a coordinate and the second is list of its neighbours) (*) . I try explain you what I really need (look at my second try in post) : ) https://i.sstatic.net/IapM2.jpg Representation of...
,2),(1,3),(2,1),(2,3)]), ((2,1),[(1,1),(1,2),(2,2)]), ((2,3),[(1,2),(1,3),(2,2)])] (list of pairs where the first element in the pair is a coordinate and the second is list of its neighbours) (*) . I try explain you what I really need (look at my second try in post) : ) https://i.sstatic.net/IapM2.jpg Representation of...
[ -0.00494384765625, 0.0233154296875, 0.0084228515625, -0.0031280517578125, 0.003631591796875, 0.00058746337890625, 0.008056640625, 0.0032196044921875, 0.01708984375, -0.01019287109375, -0.0113525390625, 0.021484375, -0.018798828125, 0.0103759765625, 0.001800537109375, 0.01422119140625, ...
[ 4, 10461, 41600, 21320, 54753, 17727, 155761, 247, 133063, 6562, 111, 80836, 7, 7440, 5117, 12830, 83, 176866, 13, 17932, 5303, 108, 6958, 38648, 80019, 9790, 73342, 6183, 3871, 1305, 201939, 568, 2631, 5442, 25687, 130877, 1363, 23180, 12,...
[ 0.03076171875, 0.1715087890625, 0.0161590576171875, 0.141845703125, 0.034576416015625, 0.08251953125, 0.1939697265625, 0.072509765625, 0.1151123046875, 0.2200927734375, 0.0288543701171875, 0.279052734375, 0.083740234375, 0.0382080078125, 0.14892578125, 0.2166748046875, 0.016647338867...
embed
37362599_c0
37362599
prolog
0
Title: Prolog Same Expression but different result Problem title: Prolog Same Expression but different result Tags: prolog, clpfd Problem: Prolog Same Expression but different result I wrote the following code but need help: kip(A,B) :- A#= 2*B. ?- kip(100,L). L=50 I wrote almost the same thing differently: kip_v1(A,B)...
Prolog Same Expression but different result Prolog Same Expression but different result prolog clpfd Prolog Same Expression kip_v1 _G12699 _G12711 _G12723 _G12753 Prolog Same Expression but different result I wrote the following code but need help: I wrote almost the same thing differently: (B+1)*(B+1) - B*B -1 is 2*B ...
[ 0.01318359375, 0.00897216796875, 0.006103515625, -0.000629425048828125, 0.003936767578125, -0.00159454345703125, -0.005523681640625, 0.01397705078125, 0.01904296875, -0.01507568359375, 0.003082275390625, 0.0174560546875, 0.01007080078125, 0.023681640625, 0.0010223388671875, 0.006347656...
[ 1250, 4867, 99908, 25129, 1284, 12921, 16750, 1830, 502, 39557, 71, 74816, 334, 77344, 5046, 133249, 1662, 3742, 14226, 54397, 25632, 18151, 3871, 4358, 39555, 5701, 571, 21748, 1639, 68940, 116, 100, 959, 8337, 836 ]
[ 0.1427001953125, 0.2283935546875, 0.136962890625, 0.1553955078125, 0.051849365234375, 0.1461181640625, 0.177490234375, 0.048370361328125, 0.09149169921875, 0.00830078125, 0.020965576171875, 0.1756591796875, 0.022369384765625, 0.038665771484375, 0.0589599609375, 0.004852294921875, 0.0...
embed
8100586_c0
8100586
prolog
0
Title: Prolog delete: doesn&#x27;t delete all elements that unify with Element Problem title: Prolog delete: doesn&#x27;t delete all elements that unify with Element Tags: list, prolog Problem: Prolog delete: doesn't delete all elements that unify with Element I'm having an issue with SWI-Prolog's delete/3 predicate. T...
Prolog delete: doesn&#x27;t delete all elements that unify with Element Prolog delete: doesn&#x27;t delete all elements that unify with Element list prolog Prolog Element List List1 Elem List2 Prolog delete: doesn't delete all elements that unify with Element I'm having an issue with SWI-Prolog's delete/3 predicate. Th...
[ 0.00860595703125, 0.017333984375, 0.005950927734375, 0.00799560546875, -0.021728515625, 0.005584716796875, -0.004852294921875, -0.007537841796875, 0.0159912109375, 0.004486083984375, 0.0159912109375, 0.00567626953125, 0.000972747802734375, -0.01019287109375, -0.007049560546875, 0.00607...
[ 1250, 4867, 154109, 22027, 3768, 18, 756, 80854, 51, 40383, 678, 48325, 5303, 502, 32036, 540, 195, 304, 31089, 159, 38969, 10752, 18113, 1653, 2063, 67, 27781, 41206, 10461, 454, 27430, 21130, 44084, 26818, 90 ]
[ 0.165283203125, 0.2183837890625, 0.233154296875, 0.07928466796875, 0.011993408203125, 0.09869384765625, 0.058502197265625, 0.1689453125, 0.110595703125, 0.1156005859375, 0.09246826171875, 0.20458984375, 0.0911865234375, 0.1004638671875, 0.081298828125, 0.00567626953125, 0.06750488281...
embed
40169499_c0
40169499
prolog
0
Title: Sums of the elements in list Problem title: Sums of the elements in list Tags: prolog Problem: Sums of the elements in list I have to say that there is a similar quetion Sum of elements in list in Prolog needs little explanation , but still makes me confused. Here is the following solution which needs some expla...
Sums of the elements in list Sums of the elements in list prolog Sums unknown-1 unknown-2 Sums of the elements in list I have to say that there is a similar quetion Sum of elements in list in Prolog needs little explanation , but still makes me confused. Here is the following solution which needs some explanation. Lets...
[ 0.000431060791015625, 0.0147705078125, 0.01513671875, 0.0208740234375, -0.0281982421875, 0.026611328125, -0.000087738037109375, 0.02001953125, 0.01708984375, -0.0244140625, 0.005706787109375, -0.0306396484375, 0.0067138671875, 0.021240234375, 0.0067138671875, 0.01263427734375, 0.0368...
[ 36335, 7, 111, 80854, 23, 5303, 502, 4867, 51, 69723, 5759, 5428, 21373, 41, 1363, 1250, 187136, 55681, 29806, 54, 10554, 133063, 96386, 1052, 7440, 211394, 15824, 841, 33022, 77336, 4734, 140992, 138, 26950, 19, 3688, 15400 ]
[ 0.2408447265625, 0.054046630859375, 0.08245849609375, 0.225341796875, 0.0704345703125, 0.194580078125, 0.1075439453125, 0.2239990234375, 0.0467529296875, 0.1693115234375, 0.0753173828125, 0.1690673828125, 0.03118896484375, 0.0163421630859375, 0.05462646484375, 0.1397705078125, 0.1335...
embed
42028527_c0
42028527
prolog
0
Title: Prolog retrieving data from a knowledge base and arithmetic operation Problem title: Prolog retrieving data from a knowledge base and arithmetic operation Tags: prolog Problem: Prolog retrieving data from a knowledge base and arithmetic operation Hi this is a question I ran into when I was going through some que...
Prolog retrieving data from a knowledge base and arithmetic operation Prolog retrieving data from a knowledge base and arithmetic operation prolog a Prolog BID Prolog retrieving data from a knowledge base and arithmetic operation Hi this is a question I ran into when I was going through some question sets. The knowledg...
[ 0.02685546875, -0.0128173828125, 0.005615234375, -0.0036773681640625, 0.01007080078125, 0.024169921875, -0.00604248046875, 0.0048828125, 0.036376953125, -0.01055908203125, 0.0087890625, 0.003448486328125, -0.033203125, -0.023193359375, -0.0123291015625, -0.005401611328125, 0.01202392...
[ 1250, 4867, 456, 97351, 2053, 51359, 3647, 8962, 41018, 1295, 282, 502, 335, 7146, 9655, 5423, 34475, 25632, 4677, 17378, 33022, 50491, 54, 54397, 237, 13695, 30646, 214, 163, 26008, 54433, 98320, 6528 ]
[ 0.1939697265625, 0.267578125, 0.034210205078125, 0.111328125, 0.1258544921875, 0.15966796875, 0.187255859375, 0.10601806640625, 0.1468505859375, 0.041656494140625, 0.005950927734375, 0.1129150390625, 0.0657958984375, 0.1142578125, 0.1204833984375, 0.079833984375, 0.0341796875, 0.10...
embed
48635292_c0
48635292
prolog
0
Title: Prolog find non related graph nodes Problem title: Prolog find non related graph nodes Tags: graph-theory, transitive-closure, prolog Problem: Prolog find non related graph nodes I have the following graph: My goal is to get all the direct connections of a certain node and all of the nodes that are not connected...
Prolog find non related graph nodes Prolog find non related graph nodes graph-theory transitive-closure prolog Prolog Prolog find non related graph nodes I have the following graph: My goal is to get all the direct connections of a certain node and all of the nodes that are not connected with a certain node for example...
[ -0.01312255859375, 0.015380859375, 0.009765625, 0.00885009765625, 0.0032501220703125, 0.0034027099609375, -0.01904296875, -0.00445556640625, -0.005859375, -0.037841796875, -0.006622314453125, -0.0167236328125, -0.016845703125, 0.0032501220703125, 0.0126953125, 0.01312255859375, 0.000...
[ 1250, 4867, 7413, 351, 62548, 41382, 110, 988, 2347, 62621, 170224, 502, 25632, 69236, 47, 2046, 756, 8951, 94878, 24233, 112, 959, 162711, 1542, 1193, 76067, 107947, 114997, 910, 235603, 17514, 55257, 18151, 17474, 45767, 54 ]
[ 0.1268310546875, 0.20068359375, 0.1004638671875, 0.16064453125, 0.187255859375, 0.1676025390625, 0.156982421875, 0.1363525390625, 0.006103515625, 0.098876953125, 0.1265869140625, 0.0494384765625, 0.0377197265625, 0.1431884765625, 0.016021728515625, 0.0819091796875, 0.052337646484375,...
embed
5533379_c0
5533379
prolog
0
Title: Cool, visually-transmissible uses of Prolog Problem title: Cool, visually-transmissible uses of Prolog Tags: visualization, prolog, logic-programming Problem: Cool, visually-transmissible uses of Prolog I will be teaching only one lecture on basic Prolog to students with little to no experience in programming. I...
Cool, visually-transmissible uses of Prolog Cool, visually-transmissible uses of Prolog visualization prolog logic-programming Cool Prolog Cool, visually-transmissible uses of Prolog I will be teaching only one lecture on basic Prolog to students with little to no experience in programming. I'd like them to see that pr...
[ 0.0257568359375, 0.000888824462890625, 0.0159912109375, 0.003936767578125, 0.005615234375, 0.0191650390625, -0.0034027099609375, -0.004180908203125, -0.002288818359375, -0.0299072265625, 0.0220947265625, -0.00001895427703857422, -0.0159912109375, 0.00445556640625, 0.01531982421875, -0....
[ 63550, 21176, 30145, 2179, 55356, 4527, 7, 111, 1250, 4867, 47691, 502, 62775, 28966, 128169, 4734, 1632, 59619, 98, 62822, 47, 25921, 10176, 110, 16981, 56037, 1884, 2856, 1957, 449, 136, 831, 11814, 2773, 8999, 95134, 21185, 86997, 53418,...
[ 0.1932373046875, 0.17236328125, 0.0804443359375, 0.0860595703125, 0.1148681640625, 0.1524658203125, 0.00323486328125, 0.04437255859375, 0.1851806640625, 0.259765625, 0.08050537109375, 0.1075439453125, 0.10760498046875, 0.10284423828125, 0.1246337890625, 0.0228424072265625, 0.02046203...
embed
64638801_c0
64638801
prolog
0
Title: The unification algorithm in Prolog Problem title: The unification algorithm in Prolog Tags: prolog Problem: The unification algorithm in Prolog I'm trying to program the unification algorithm in Prolog to verify if two expressions can unify by returning boolean True/False: EDIT. I found this implementation usef...
The unification algorithm in Prolog The unification algorithm in Prolog prolog Prolog ArgsA ArgsB unify_args The unification algorithm in Prolog I'm trying to program the unification algorithm in Prolog to verify if two expressions can unify by returning boolean True/False: EDIT. I found this implementation usefull: fr...
[ 0.031494140625, 0.0038604736328125, 0.0283203125, 0.0162353515625, -0.01031494140625, 0.00714111328125, -0.0169677734375, 0.00469970703125, 0.027587890625, -0.009521484375, -0.0057373046875, 0.017333984375, 0.00823974609375, 0.006866455078125, 0.00482177734375, -0.00003123283386230469,...
[ 581, 51, 41274, 234873, 23, 1250, 4867, 502, 1172, 9405, 284, 571, 40383, 61477, 31577, 1528, 493, 6626, 125195, 831, 30646, 31, 34677, 87599, 17647, 11971, 172864, 208124, 80234, 4902, 93, 1865, 3454, 10135, 36716 ]
[ 0.00653076171875, 0.1998291015625, 0.203857421875, 0.221435546875, 0.059295654296875, 0.1695556640625, 0.2744140625, 0.0980224609375, 0.1163330078125, 0.08203125, 0.068115234375, 0.09332275390625, 0.1773681640625, 0.1527099609375, 0.025909423828125, 0.1141357421875, 0.096435546875, ...
embed
9728591_c0
9728591
prolog
0
Title: Prolog Exists Function Problem title: Prolog Exists Function Tags: prolog Problem: Prolog Exists Function I need to write in prolog these first order statements. How are they to be written? red(X) should return false, green(X) should return false, and green(X) or red(X) should return true I have this code alread...
Prolog Exists Function Prolog Exists Function prolog Prolog Exists Assigning Facts Rules Prolog Exists Function I need to write in prolog these first order statements. How are they to be written? red(X) should return false, green(X) should return false, and green(X) or red(X) should return true I have this code already...
[ 0.02587890625, 0.0011749267578125, -0.000881195068359375, 0.0255126953125, -0.0036163330078125, 0.00982666015625, 0.00732421875, 0.005096435546875, 0.008544921875, 0.0078125, 0.014404296875, -0.000820159912109375, -0.01519775390625, -0.0169677734375, 0.006256103515625, 0.00337219238281...
[ 1250, 4867, 5443, 64370, 28670, 502, 1301, 31304, 132640, 139118, 3871, 33022, 23, 6097, 5117, 12989, 63805, 11249, 47, 186, 59121, 4842, 1542, 5608, 30646, 98320, 50997, 707, 29568, 765, 18151, 21771 ]
[ 0.19677734375, 0.292724609375, 0.1688232421875, 0.1470947265625, 0.1829833984375, 0.1708984375, 0.034912109375, 0.1611328125, 0.174072265625, 0.159912109375, 0.07244873046875, 0.1427001953125, 0.05133056640625, 0.062042236328125, 0.10302734375, 0.21337890625, 0.2196044921875, 0.068...
embed
1648770_c0
1648770
prolog
0
Title: push a list to Stack as one element without brackets Problem title: push a list to Stack as one element without brackets Tags: prolog Problem: push a list to Stack as one element without brackets I have list of elements in a list like [1,2,+] and I want to push them as a one element onto a stack. I can do that b...
push a list to Stack as one element without brackets push a list to Stack as one element without brackets prolog Stack push a list to Stack as one element without brackets I have list of elements in a list like [1,2,+] and I want to push them as a one element onto a stack. I can do that by putting them between square b...
[ 0.007415771484375, 0.02001953125, -0.00506591796875, 0.0042724609375, -0.016357421875, 0.005462646484375, -0.018798828125, -0.000591278076171875, 0.0181884765625, -0.031494140625, 0.0037994384765625, 0.00628662109375, -0.0203857421875, -0.017578125, -0.01068115234375, 0.00970458984375,...
[ 25944, 5303, 47, 6512, 2594, 237, 1632, 12830, 15490, 1620, 27853, 502, 4867, 80854, 133063, 1328, 3444, 98, 188, 177261, 17721, 108047, 108975, 140992, 89536, 10, 2967, 1286, 125195, 8512, 71, 27781, 2046, 1639, 82449, 163846 ]
[ 0.213623046875, 0.2430419921875, 0.111328125, 0.2000732421875, 0.199951171875, 0.056304931640625, 0.133056640625, 0.18212890625, 0.0994873046875, 0.141845703125, 0.1644287109375, 0.1036376953125, 0.170166015625, 0.1663818359375, 0.1439208984375, 0.1533203125, 0.1231689453125, 0.064...
embed
27574187_c0
27574187
prolog
0
Title: Read a file line by line error in prolog Problem title: Read a file line by line error in prolog Tags: prolog, swi-prolog, readfile Problem: Read a file line by line error in prolog For reading a file i'm using below code, but this code reads only lines where there is a '.' in the end of file, is there another w...
Read a file line by line error in prolog Read a file line by line error in prolog prolog swi-prolog readfile Read myFile.txt Str read_file Lines Stream at_end_of_stream Read a file line by line error in prolog For reading a file i'm using below code, but this code reads only lines where there is a '.' in the end of fil...
[ 0.008056640625, -0.00836181640625, 0.0025482177734375, 0.0025634765625, -0.011962890625, -0.01123046875, 0.01190185546875, 0.005157470703125, -0.0198974609375, -0.044189453125, 0.0004100799560546875, -0.0026397705078125, -0.01068115234375, -0.00946044921875, 0.0302734375, -0.0018005371...
[ 4764, 10, 11435, 13315, 390, 18499, 502, 4867, 23, 2452, 3454, 12301, 29822, 759, 174350, 124326, 23351, 16777, 115061, 3611, 4390, 86429, 16454, 35064, 18151, 4734, 124519, 242, 5, 3564, 3917, 8562, 4343, 5303, 1250 ]
[ 0.181396484375, 0.0211639404296875, 0.15966796875, 0.161376953125, 0.1226806640625, 0.1966552734375, 0.15234375, 0.19873046875, 0.01837158203125, 0.10626220703125, 0.13525390625, 0.1815185546875, 0.132568359375, 0.08978271484375, 0.1634521484375, 0.1402587890625, 0.057281494140625, ...
embed
78893068_c0
78893068
prolog
0
Title: Maximum number of atoms in SICStus Prolog 4 Problem title: Maximum number of atoms in SICStus Prolog 4 Tags: prolog, sicstus-prolog Problem: Maximum number of atoms in SICStus Prolog 4 The SICStus Prolog User's Manual states about its Generic Limitations : The number of atoms created may not exceed 1048575 (3355...
Maximum number of atoms in SICStus Prolog 4 Maximum number of atoms in SICStus Prolog 4 prolog sicstus-prolog Maximum SICStus Prolog number_chars atom_chars Maximum number of atoms in SICStus Prolog 4 The SICStus Prolog User's Manual states about its Generic Limitations : So when I ran the following query on my x64-box...
[ -0.0015869140625, 0.004669189453125, 0.00872802734375, 0.01287841796875, -0.01141357421875, 0.002593994140625, 0.0017242431640625, 0.0140380859375, 0.0030059814453125, -0.03662109375, 0.0167236328125, -0.0126953125, -0.004791259765625, -0.0064697265625, 0.035888671875, 0.00059127807617...
[ 46540, 316, 14012, 34627, 7, 23, 159, 102198, 2143, 1250, 4867, 201, 502, 26536, 18253, 3454, 9254, 53400, 111021, 6863, 88342, 125177, 21094, 13028, 41, 1022, 13307, 11728, 52196, 2389, 32233, 144285, 35166, 98, 17475, 959, 59911, 3688 ]
[ 0.1627197265625, 0.035064697265625, 0.1192626953125, 0.2381591796875, 0.1058349609375, 0.057861328125, 0.1051025390625, 0.1019287109375, 0.18896484375, 0.152587890625, 0.20361328125, 0.215087890625, 0.125244140625, 0.0892333984375, 0.147705078125, 0.111083984375, 0.180908203125, 0....
embed
71243539_c0
71243539
prolog
0
Title: How to check place value of each digit in prolog? Problem title: How to check place value of each digit in prolog? Tags: prolog, numbers Problem: How to check place value of each digit in prolog? toword(0,'zero'). toword(1,'one'). toword(10,'ten'). toword(15,'fifteen'). toword(30,'thirty'). toword(100,'one hundr...
How to check place value of each digit in prolog? How to check place value of each digit in prolog? prolog numbers How How to check place value of each digit in prolog? I am trying to get each place value and put it into a list. For example; X = 2531 the list would be [two thousand, five hundred, thirty, one]. I didn't...
[ -0.007598876953125, -0.000514984130859375, -0.007415771484375, -0.00677490234375, -0.01904296875, 0.0091552734375, 0.00531005859375, 0.001800537109375, 0.0179443359375, -0.0184326171875, 0.008544921875, -0.01043701171875, -0.00121307373046875, -0.0106201171875, -0.01385498046875, -0.00...
[ 11249, 47, 12765, 3687, 34292, 111, 12638, 153939, 23, 502, 4867, 101935, 31577, 2046, 3884, 5303, 1193, 2203, 714, 5016, 199823, 43606, 75281, 95037, 939, 1632, 47416, 132, 15824, 1286, 3714, 3642, 134598, 14012 ]
[ 0.0762939453125, 0.06365966796875, 0.1995849609375, 0.216796875, 0.2127685546875, 0.037841796875, 0.132568359375, 0.22900390625, 0.06903076171875, 0.15576171875, 0.236572265625, 0.13818359375, 0.0401611328125, 0.06915283203125, 0.017669677734375, 0.116943359375, 0.130615234375, 0.0...
embed
65873598_c0
65873598
prolog
0
Title: Order of unification in lists when using pipe(|) Problem title: Order of unification in lists when using pipe(|) Tags: prolog-toplevel, prolog Problem: Order of unification in lists when using pipe(|) I am having trouble trying to figure out in what order unification is done. I have the following query: [X, like...
Order of unification in lists when using pipe(|) Order of unification in lists when using pipe(|) prolog-toplevel prolog pipe Order Prolog Order of unification in lists when using pipe(|) I am having trouble trying to figure out in what order unification is done. I have the following query: This gives me the following ...
[ 0.0242919921875, 0.01446533203125, -0.00494384765625, 0.0159912109375, -0.0220947265625, -0.02587890625, -0.0150146484375, -0.00189971923828125, 0.00360107421875, -0.0024261474609375, 0.00811767578125, 0.01544189453125, 0.019775390625, -0.0181884765625, -0.01031494140625, 0.00328063964...
[ 81206, 111, 51, 41274, 23, 5303, 7, 17368, 137158, 502, 4867, 67919, 1250, 63134, 26366, 12989, 16940, 41206, 29458, 27430, 90, 69407, 34698, 68772, 77546, 25343, 34627, 678, 77336 ]
[ 0.203369140625, 0.024871826171875, 0.1796875, 0.185302734375, 0.03155517578125, 0.22021484375, 0.0152587890625, 0.0548095703125, 0.2132568359375, 0.088134765625, 0.25439453125, 0.10302734375, 0.1531982421875, 0.0142669677734375, 0.017425537109375, 0.19775390625, 0.06890869140625, 0...
embed
68594494_c0
68594494
prolog
0
Title: How to fix this recursive addition? Problem title: How to fix this recursive addition? Tags: addition, prolog, recursion, successor-arithmetics Problem: How to fix this recursive addition? I am new to logic programming and Prolog. The following Prolog program defines a predicate add/3 for multiplying the first a...
How to fix this recursive addition? How to fix this recursive addition? addition prolog recursion successor-arithmetics How How to fix this recursive addition? I am new to logic programming and Prolog. The following Prolog program defines a predicate add/3 for multiplying the first argument to the second argument, whic...
[ -0.0120849609375, 0.0225830078125, 0.00482177734375, 0.016357421875, -0.00396728515625, 0.00286865234375, -0.01190185546875, 0.002471923828125, 0.01263427734375, -0.034912109375, 0.0303955078125, -0.013671875, -0.0284423828125, 0.000926971435546875, 0.044189453125, -0.0255126953125, ...
[ 11249, 47, 30022, 903, 195625, 5844, 66044, 502, 4867, 1830, 39457, 42, 8962, 62775, 56037, 1250, 1528, 61924, 1653, 2063, 67, 15190, 18113, 6024, 62479, 5117, 10750, 17932, 50339, 50960, 35509, 5490, 997, 113, 97, 183234, 48768, 4879, 41, ...
[ 0.0916748046875, 0.0406494140625, 0.18505859375, 0.0987548828125, 0.19189453125, 0.149658203125, 0.2138671875, 0.103515625, 0.2213134765625, 0.00848388671875, 0.1468505859375, 0.04681396484375, 0.05706787109375, 0.102783203125, 0.076904296875, 0.158935546875, 0.1192626953125, 0.138...
embed
44013409_c1
44013409
prolog
1
0. ?- V is ^(-1.0,-1.0). V = -1.0. ?- V is ^(-1.0,0.0). V = 1.0. ?- V is ^(-1.0,1.0). V = -1.0. ?- V is ^(-1.0,2.0). V = 1.0. ?- V is ^(-1.0,3.0). V = -1.0. ?- V is **(-1.0,-3.0). V = -1.0. ?- V is **(-1.0,-2.0). V = 1.0. ?- V is **(-1.0,-1.0). V = -1.0. ?- V is **(-1.0,0.0). V = 1.0. ?- V is **(-1.0,1.0). V = -1.0. ?-...
0. ?- V is ^(-1.0,-1.0). V = -1.0. ?- V is ^(-1.0,0.0). V = 1.0. ?- V is ^(-1.0,1.0). V = -1.0. ?- V is ^(-1.0,2.0). V = 1.0. ?- V is ^(-1.0,3.0). V = -1.0. ?- V is **(-1.0,-3.0). V = -1.0. ?- V is **(-1.0,-2.0). V = 1.0. ?- V is **(-1.0,-1.0). V = -1.0. ?- V is **(-1.0,0.0). V = 1.0. ?- V is **(-1.0,1.0). V = -1.0. ?-...
[ -0.0021820068359375, -0.00213623046875, 0.001190185546875, -0.01611328125, 0.0137939453125, 0.00811767578125, 0.005828857421875, 0.000005155801773071289, 0.01611328125, 0.01507568359375, 0.005889892578125, 0.0224609375, -0.02001953125, -0.007659912109375, -0.006927490234375, 0.01184082...
[ 757, 5, 705, 9, 310, 83, 13331, 102107, 4, 194, 2203, 20, 99929, 53855, 73011, 132265, 107419, 159, 38969, 10752, 4867, 48909, 35509, 165132, 48716, 22619, 1830, 8962, 282, 35773, 9088, 8162, 14602, 959, 8060, 27140, 101935, 23577, 111, 6...
[ 0.178466796875, 0.032958984375, 0.1158447265625, 0.1259765625, 0.285400390625, 0.135009765625, 0.0955810546875, 0.2431640625, 0.0228729248046875, 0.0694580078125, 0.121337890625, 0.1043701171875, 0.1988525390625, 0.197021484375, 0.1727294921875, 0.178466796875, 0.07232666015625, 0....
embed
65271510_c0
65271510
prolog
0
Title: Check if a number is between 2 values Problem title: Check if a number is between 2 values Tags: swi-prolog, prolog Problem: Check if a number is between 2 values I am new to prolog and have am trying to write a program that will do the following tell me if a number is between 2 values I can do the following: be...
Check if a number is between 2 values Check if a number is between 2 values swi-prolog prolog Check Check if a number is between 2 values I am new to prolog and have am trying to write a program that will do the following tell me if a number is between 2 values I can do the following: and doing between(1, 3, 5) works, ...
[ -0.006988525390625, -0.000331878662109375, -0.009033203125, 0.01080322265625, -0.0120849609375, 0.029052734375, -0.0086669921875, 0.0019378662109375, -0.004364013671875, -0.0032958984375, 0.01611328125, 0.0038299560546875, -0.006500244140625, 0.011474609375, 0.0203857421875, 0.01770019...
[ 38679, 2174, 14012, 83, 17721, 116, 142424, 91, 2452, 3454, 4867, 502, 10, 3525, 31577, 33022, 1528, 25632, 14192, 163, 20594, 41600, 138, 21162, 43240, 2806, 1884, 19048, 1193, 30646, 756, 70, 2203, 201, 15400, 29806, 27117, 61475, 53418, ...
[ 0.184326171875, 0.1204833984375, 0.20751953125, 0.1080322265625, 0.228515625, 0.1905517578125, 0.2216796875, 0.0267486572265625, 0.174072265625, 0.1151123046875, 0.2130126953125, 0.129150390625, 0.027984619140625, 0.01312255859375, 0.013702392578125, 0.038665771484375, 0.086547851562...
embed
66843178_c0
66843178
prolog
0
Title: Finding most occurrences in set of prolog rules Problem title: Finding most occurrences in set of prolog rules Tags: prolog Problem: Finding most occurrences in set of prolog rules I can't seem to wrap my head around how Prolog actually works. I'm very used to other programming languages like Java and Python but...
Finding most occurrences in set of prolog rules Finding most occurrences in set of prolog rules prolog Finding Finding most occurrences in set of prolog rules I can't seem to wrap my head around how Prolog actually works. I'm very used to other programming languages like Java and Python but Prolog seems to be very diff...
[ 0.0235595703125, -0.000720977783203125, 0.0146484375, 0.006134033203125, 0.0020294189453125, 0.005584716796875, -0.0036468505859375, 0.00063323974609375, 0.017822265625, -0.050537109375, -0.004791259765625, -0.0255126953125, -0.005157470703125, -0.0113525390625, 0.0322265625, -0.000017...
[ 26040, 214, 2684, 74918, 42, 69098, 23, 5423, 502, 4867, 91736, 831, 18, 48903, 137565, 10336, 10932, 3642, 1250, 20653, 43240, 4552, 11814, 3789, 56037, 46876, 41925, 136, 145581, 37202, 12921, 35509, 62775, 63805, 4263, 22008, 73342, 51515,...
[ 0.14697265625, 0.022674560546875, 0.25146484375, 0.196533203125, 0.1539306640625, 0.1114501953125, 0.0638427734375, 0.1610107421875, 0.1781005859375, 0.265869140625, 0.1856689453125, 0.03924560546875, 0.02191162109375, 0.0279693603515625, 0.05206298828125, 0.043121337890625, 0.016967...
embed
32163171_c0
32163171
prolog
0
Title: beginner prolog: data structures Problem title: beginner prolog: data structures Tags: prolog, data-structures Problem: beginner prolog: data structures I'm trying to get my head around Prolog, and I am struggling somewhat with data structures. I want to take a point(X,Y) and reflect it along the "diagonal" X=Y ...
beginner prolog: data structures beginner prolog: data structures prolog data-structures test_answer Wrong beginner prolog: data structures I'm trying to get my head around Prolog, and I am struggling somewhat with data structures. I want to take a point(X,Y) and reflect it along the "diagonal" X=Y , so a point(-5,8) b...
[ 0.02392578125, 0.029296875, 0.01336669921875, -0.0211181640625, -0.0152587890625, 0.01519775390625, -0.0020904541015625, 0.002227783203125, -0.004852294921875, -0.0126953125, 0.0272216796875, 0.0062255859375, -0.019287109375, -0.0003223419189453125, 0.0247802734375, 0.0177001953125, ...
[ 9842, 1679, 502, 4867, 2053, 45646, 137656, 3034, 10133, 35133, 12, 7, 31577, 10336, 10932, 1250, 237875, 208806, 3444, 5646, 6275, 1542, 1723, 136, 44961, 33233, 3390, 6126, 289, 1193, 1369, 9, 141670, 24209, 1019, 10342, 151117, 140992, 1...
[ 0.0970458984375, 0.1055908203125, 0.1461181640625, 0.2359619140625, 0.152587890625, 0.2646484375, 0.2451171875, 0.110595703125, 0.017913818359375, 0.1077880859375, 0.0192718505859375, 0.007080078125, 0.0156097412109375, 0.05657958984375, 0.051666259765625, 0.1494140625, 0.08935546875...
embed
53447044_c0
53447044
prolog
0
Title: Prolog - &#x27;unknown clause&#x27; error message when asking for user input when using PIE (Prolog Interface Engine) Problem title: Prolog - &#x27;unknown clause&#x27; error message when asking for user input when using PIE (Prolog Interface Engine) Tags: prolog Problem: Prolog - 'unknown clause' error message ...
Prolog - &#x27;unknown clause&#x27; error message when asking for user input when using PIE (Prolog Interface Engine) Prolog - &#x27;unknown clause&#x27; error message when asking for user input when using PIE (Prolog Interface Engine) prolog PIE Prolog Interface Engine Unknown X$0 Execution Prolog - 'unknown clause' e...
[ -0.01031494140625, 0.00067138671875, -0.000762939453125, 0.0103759765625, -0.0081787109375, 0.0216064453125, 0.0283203125, -0.01458740234375, -0.00482177734375, -0.05029296875, -0.004180908203125, -0.00092315673828125, -0.0245361328125, 0.0091552734375, 0.029541015625, 0.00552368164062...
[ 1250, 4867, 3768, 309, 69723, 19, 70731, 13, 18499, 26008, 3229, 113292, 100, 38937, 107730, 17368, 137463, 10752, 220237, 90125, 6, 502, 992, 1193, 4369, 2389, 211603, 32562, 18151, 10, 8781, 1528, 140992, 2499, 113860, 11853, 7, 759, 221,...
[ 0.16845703125, 0.26123046875, 0.10504150390625, 0.096923828125, 0.211181640625, 0.007781982421875, 0.198486328125, 0.108642578125, 0.160400390625, 0.10406494140625, 0.01837158203125, 0.123779296875, 0.03302001953125, 0.1405029296875, 0.202392578125, 0.0740966796875, 0.232666015625, ...
embed
34461850_c0
34461850
prolog
0
Title: Sum up a list using Prolog Problem title: Sum up a list using Prolog Tags: clpfd, list, prolog Problem: Sum up a list using Prolog I want to sum all list elements greater than some given number. Here's the description: sumup(L, N, GREATN, GEN) sums up the members of list L which are greater than GREATN to a vari...
Sum up a list using Prolog Sum up a list using Prolog clpfd list prolog Prolog Sum GREATN GEN sum_list Rest Sum up a list using Prolog I want to sum all list elements greater than some given number. Here's the description: Following is my code: I've tried the recursive way but I failed. How can I fix it?
[ -0.0174560546875, 0.01239013671875, 0.01446533203125, -0.0022430419921875, -0.011474609375, 0.005859375, -0.00311279296875, 0.01220703125, 0.02587890625, -0.018798828125, -0.0150146484375, -0.02734375, -0.01129150390625, 0.0024566650390625, 0.020263671875, 0.0079345703125, 0.00939941...
[ 36335, 1257, 5303, 17368, 1250, 4867, 33139, 39557, 71, 502, 41519, 38821, 109141, 10554, 6562, 49756, 3444, 47, 756, 80854, 117396, 3501, 34475, 14012, 76811, 18151, 37842, 195625, 5844, 3917, 165523, 30022 ]
[ 0.2078857421875, 0.15771484375, 0.205322265625, 0.0772705078125, 0.155517578125, 0.2374267578125, 0.031036376953125, 0.060333251953125, 0.11456298828125, 0.100830078125, 0.0738525390625, 0.051025390625, 0.1663818359375, 0.218017578125, 0.193359375, 0.14599609375, 0.10064697265625, ...
embed
16390099_c1
16390099
prolog
1
,I7,I8,I9],[1,2,3,4,5,6,7,8,9]). the above is solve/2 5 ?- solve(X,Y). ERROR: toplevel: Undefined procedure: solve/2 (DWIM could not correct goal) that happened when I tried with 2 normal variables 2 ?- solve(X,[ ,7,2,4, ,_, , ,1, ,8, ,7, , ,3,2, ,6,3,1, ,_, ,7, ,_, , ,_,5,2, , ,1,4, , ,5,9, ,4,6, ,_,8,4, , ,3,7, , ,_,...
,I7,I8,I9],[1,2,3,4,5,6,7,8,9]). the above is solve/2 5 ?- solve(X,Y). ERROR: toplevel: Undefined procedure: solve/2 (DWIM could not correct goal) that happened when I tried with 2 normal variables 2 ?- solve(X,[ ,7,2,4, ,_, , ,1, ,8, ,7, , ,3,2, ,6,3,1, ,_, ,7, ,_, , ,_,5,2, , ,1,4, , ,5,9, ,4,6, ,_,8,4, , ,3,7, , ,_,...
[ 0.003936767578125, 0.00191497802734375, -0.0074462890625, -0.00135040283203125, -0.0257568359375, 0.021484375, -0.0218505859375, 0.002197265625, 0.00311279296875, -0.008544921875, -0.001922607421875, 0.0037841796875, 0.00139617919921875, 0.002227783203125, -0.031494140625, -0.007720947...
[ 568, 966, 1019, 1126, 268, 133063, 363, 80389, 136555, 145180, 36917, 83, 86869, 12477, 190, 705, 9, 132, 1542, 4, 1723, 151206, 24638, 2663, 67919, 79912, 5983, 297, 50491, 397, 38969, 594, 5809, 959, 26785, 69236, 73659, 37842, 678, 116...
[ 0.06353759765625, 0.1448974609375, 0.15283203125, 0.1953125, 0.006011962890625, 0.052703857421875, 0.09783935546875, 0.172607421875, 0.1317138671875, 0.191650390625, 0.1190185546875, 0.041473388671875, 0.25341796875, 0.2685546875, 0.2181396484375, 0.09228515625, 0.056640625, 0.0476...
embed
28820033_c0
28820033
prolog
0
Title: Writing a predicate to balance an equation using some operators Problem title: Writing a predicate to balance an equation using some operators Tags: prolog Problem: Writing a predicate to balance an equation using some operators I'm trying to write a predicate balance(Xs, Eqn) so that e.g. if the list Xs was [2,...
Writing a predicate to balance an equation using some operators Writing a predicate to balance an equation using some operators prolog some Writing Eqn Writing a predicate to balance an equation using some operators I'm trying to write a predicate balance(Xs, Eqn) so that e.g. if the list Xs was [2,3,5,7,11] then some ...
[ 0.01031494140625, 0.014404296875, 0.00787353515625, -0.024169921875, 0.00933837890625, 0.01031494140625, 0.013916015625, -0.0030670166015625, 0.005096435546875, -0.01007080078125, 0.003753662109375, -0.0079345703125, 0.026123046875, -0.003265380859375, -0.01544189453125, 0.007629394531...
[ 213185, 1653, 2063, 67, 47, 40197, 28, 5490, 2320, 17368, 3060, 39933, 502, 4867, 241, 864, 7, 31577, 33022, 1542, 19, 5303, 1193, 509, 155761, 135461, 1662, 22183, 9, 1639, 41872, 1369, 5608, 158012, 17721, 80854, 5701, 12989, 27781, 452...
[ 0.15771484375, 0.1893310546875, 0.208740234375, 0.1087646484375, 0.03179931640625, 0.2734375, 0.053070068359375, 0.231689453125, 0.08154296875, 0.099365234375, 0.0849609375, 0.25390625, 0.1171875, 0.15283203125, 0.0223388671875, 0.1849365234375, 0.049163818359375, 0.05645751953125,...
embed
60247679_c0
60247679
prolog
0
Title: How to generate a list with only two 1s and other 0s of the given length? Problem title: How to generate a list with only two 1s and other 0s of the given length? Tags: prolog, clpfd, list Problem: How to generate a list with only two 1s and other 0s of the given length? I have to generate lists that consist of ...
How to generate a list with only two 1s and other 0s of the given length? How to generate a list with only two 1s and other 0s of the given length? prolog clpfd list How Counter How to generate a list with only two 1s and other 0s of the given length? I have to generate lists that consist of 2 '1's and other elements a...
[ 0.01177978515625, 0.0201416015625, 0.001129150390625, 0.01416015625, 0.00799560546875, 0.027099609375, -0.006622314453125, 0.0147705078125, 0.011474609375, -0.0264892578125, -0.005706787109375, -0.0198974609375, 0.0186767578125, 0.02392578125, 0.017333984375, 0.00152587890625, 0.0225...
[ 11249, 47, 139392, 10, 5303, 678, 4734, 6626, 106, 7, 3789, 757, 34475, 140909, 502, 4867, 33139, 39557, 71, 197956, 136, 58055, 116, 418, 80854, 2389, 37842, 25632, 18151, 959, 4488, 58836, 38543, 856, 13956, 310, 23, 4, 76199, 33720, ...
[ 0.0538330078125, 0.0181427001953125, 0.2322998046875, 0.029998779296875, 0.2484130859375, 0.0875244140625, 0.1392822265625, 0.1866455078125, 0.162353515625, 0.1019287109375, 0.06500244140625, 0.1915283203125, 0.05389404296875, 0.149169921875, 0.09326171875, 0.16064453125, 0.024627685...
embed
43914990_c0
43914990
prolog
0
Title: Prolog fact with a string consisting of letters and numbers not working Problem title: Prolog fact with a string consisting of letters and numbers not working Tags: prolog Problem: Prolog fact with a string consisting of letters and numbers not working I have a fact in the format: noun('08226txt'). and want it t...
Prolog fact with a string consisting of letters and numbers not working Prolog fact with a string consisting of letters and numbers not working prolog Prolog ERROR Syntax Operator Prolog fact with a string consisting of letters and numbers not working I have a fact in the format: and want it to work like my other facts...
[ 0.024169921875, 0.0007781982421875, 0.0093994140625, 0.024169921875, -0.004119873046875, 0.0162353515625, 0.007537841796875, 0.00060272216796875, -0.0064697265625, -0.024169921875, -0.006866455078125, -0.025634765625, -0.0164794921875, -0.01507568359375, 0.00156402587890625, -0.0035705...
[ 1250, 4867, 15824, 678, 79315, 58055, 120820, 136, 101935, 959, 20697, 214, 502, 151206, 24638, 19010, 86531, 150922, 765, 10, 9384, 3444, 4488, 22027, 18, 15490, 81732, 9077, 6863, 6637, 15044, 31330, 18499, 181653, 4358, 77947 ]
[ 0.16796875, 0.2469482421875, 0.230224609375, 0.0848388671875, 0.2254638671875, 0.1142578125, 0.184326171875, 0.13916015625, 0.1790771484375, 0.08709716796875, 0.166015625, 0.02923583984375, 0.13037109375, 0.13427734375, 0.0164337158203125, 0.06390380859375, 0.030792236328125, 0.178...
embed
55866301_c0
55866301
prolog
0
Title: How to install clpq library in swi-prolog Problem title: How to install clpq library in swi-prolog Tags: prolog, clpq Problem: How to install clpq library in swi-prolog I am running SWI-Prolog (Multi-threaded, 64 bits, Version 7.2.3) on Debian Stable Linux. I want to install clpq package for Constraint Logic Pro...
How to install clpq library in swi-prolog How to install clpq library in swi-prolog prolog clpq How SWI-Prolog Multi-threaded Version pack_list Contacting www.swi-prolog.org Warning Unknown search_no_matches How to install clpq library in swi-prolog I am running SWI-Prolog (Multi-threaded, 64 bits, Version 7.2.3) on De...
[ 0.0205078125, 0.0196533203125, 0.0162353515625, 0.0194091796875, -0.023681640625, 0.01214599609375, 0.0096435546875, -0.020263671875, 0.00714111328125, -0.020263671875, 0.0101318359375, -0.02587890625, 0.000629425048828125, -0.00946044921875, -0.008544921875, 0.01153564453125, -0.010...
[ 11249, 20600, 33139, 254, 864, 35773, 1294, 91, 2452, 3454, 4867, 502, 159, 38969, 10752, 19335, 39116, 40647, 43824, 6562, 1478, 69723, 33938, 98753, 23, 51042, 50657, 118, 7911, 4785, 134776, 21320, 262, 62806, 22819, 29908, 3444, 98169, ...
[ 0.038604736328125, 0.1875, 0.149169921875, 0.181640625, 0.205078125, 0.207275390625, 0.09417724609375, 0.0477294921875, 0.2237548828125, 0.1490478515625, 0.199951171875, 0.12060546875, 0.0633544921875, 0.2109375, 0.1600341796875, 0.1202392578125, 0.09375, 0.068359375, 0.175659179...
embed
8650789_c0
8650789
prolog
0
Title: Prolog check if the list is like 1,2,3,4,2,1 Problem title: Prolog check if the list is like 1,2,3,4,2,1 Tags: prolog Problem: Prolog check if the list is like 1,2,3,4,2,1 I need to create a program to check if a list increases then decreases, just like in the example below: [1,2,3,4,5,6,4,3,2,1] and it must be ...
Prolog check if the list is like 1,2,3,4,2,1 Prolog check if the list is like 1,2,3,4,2,1 prolog Prolog Prolog check if the list is like 1,2,3,4,2,1 I need to create a program to check if a list increases then decreases, just like in the example below: and it must be at least a one step increase or decrease. Basically:...
[ 0.007293701171875, 0.0146484375, -0.019775390625, 0.0172119140625, -0.01318359375, 0.036376953125, -0.005889892578125, -0.015625, 0.00433349609375, -0.00579833984375, 0.010498046875, 0.009521484375, -0.017578125, 0.0068359375, 0.013671875, 0.00909423828125, 0.0098876953125, 0.00343...
[ 1250, 4867, 12765, 2174, 5303, 83, 1884, 25568, 82449, 304, 418, 502, 3871, 28282, 1528, 47, 10, 51312, 7, 7068, 227204, 27781, 35064, 8110, 19713, 1632, 29954, 707, 11001, 82800, 944, 134629, 60887, 12638, 149307, 31943, 101935, 5609, 1756...
[ 0.19287109375, 0.2298583984375, 0.202880859375, 0.117919921875, 0.2335205078125, 0.089111328125, 0.1700439453125, 0.18896484375, 0.2305908203125, 0.0904541015625, 0.08551025390625, 0.142333984375, 0.044281005859375, 0.0733642578125, 0.131103515625, 0.01287841796875, 0.014144897460937...
embed
48754346_c0
48754346
prolog
0
Title: Semantic difference between one rule where conditions are seperated with &#x27;;&#x27; (or) and rules written down seperatly Problem title: Semantic difference between one rule where conditions are seperated with &#x27;;&#x27; (or) and rules written down seperatly Tags: prolog, iso-prolog Problem: Semantic diffe...
Semantic difference between one rule where conditions are seperated with &#x27;;&#x27; (or) and rules written down seperatly Semantic difference between one rule where conditions are seperated with &#x27;;&#x27; (or) and rules written down seperatly prolog iso-prolog Semantic Semantic difference between one rule where ...
[ 0.0048828125, 0.01116943359375, -0.005401611328125, 0.032470703125, -0.007659912109375, 0.0086669921875, -0.0145263671875, 0.023681640625, 0.0208740234375, 0.0281982421875, 0.006683349609375, 0.010009765625, 0.0235595703125, 0.0036468505859375, 0.005828857421875, -0.0086669921875, 0....
[ 10232, 109109, 60212, 17721, 1632, 79986, 27289, 40, 1264, 27686, 678, 3768, 748, 91736, 59121, 7565, 143870, 538, 502, 4867, 13882, 3454, 74, 10842, 876, 501, 136, 104, 186, 15824, 707, 20209, 2685, 10, 484, 6626, 80934, 1022, 33153, 188...
[ 0.194580078125, 0.20849609375, 0.214111328125, 0.0821533203125, 0.06640625, 0.1859130859375, 0.2322998046875, 0.04278564453125, 0.15478515625, 0.04913330078125, 0.0452880859375, 0.1282958984375, 0.19677734375, 0.1949462890625, 0.10382080078125, 0.12060546875, 0.1453857421875, 0.056...
embed
61349121_c0
61349121
prolog
0
Title: How do I implement in Prolog the predicate list_for_set Problem title: How do I implement in Prolog the predicate list_for_set Tags: prolog Problem: How do I implement in Prolog the predicate list_for_set How do I implement in Prolog the predicate list_for_set(Xs, Cs) where Cs is a list that contains the same el...
How do I implement in Prolog the predicate list_for_set How do I implement in Prolog the predicate list_for_set prolog How Prolog list_for_set How do I implement in Prolog the predicate list_for_set How do I implement in Prolog the predicate list_for_set(Xs, Cs) where Cs is a list that contains the same elements as Xs,...
[ 0.01373291015625, 0.00799560546875, 0.01483154296875, 0.006256103515625, -0.00494384765625, 0.00390625, -0.0011444091796875, 0.002655029296875, 0.02294921875, -0.010986328125, -0.00531005859375, 0.02587890625, 0.00811767578125, 0.00653076171875, -0.0208740234375, 0.0201416015625, 0.0...
[ 11249, 29479, 23, 1250, 4867, 1653, 2063, 67, 5303, 2472, 3509, 502, 1542, 313, 7, 83, 10, 70541, 5701, 80854, 1193, 12989, 5117, 74918, 14012, 42, 4734, 615, 41, 1294, 96276, 100, 82449, 140217, 8110, 35782, 96362, 63805, 35839, 5423, ...
[ 0.04217529296875, 0.21044921875, 0.0638427734375, 0.1929931640625, 0.2398681640625, 0.1832275390625, 0.2164306640625, 0.09375, 0.2381591796875, 0.1923828125, 0.261474609375, 0.1678466796875, 0.152587890625, 0.116455078125, 0.089599609375, 0.007568359375, 0.0182952880859375, 0.05078...
embed
20010215_c0
20010215
prolog
0
Title: Prolog: inequality operator Problem title: Prolog: inequality operator Tags: prolog-dif, prolog Problem: Prolog: inequality operator I am using SICStus Prolog and have a set of facts: student('John Henry', 'Maths'). student('Jim Henry', 'Maths'). student('John Alan', 'Maths'). student('Alan Smith', 'Computing')....
Prolog: inequality operator Prolog: inequality operator prolog-dif prolog Prolog John Henry Maths Jim Alan Smith Computing Gary Sub Prolog: inequality operator I am using SICStus Prolog and have a set of facts: I want to get the shared subject of two students where both students are different, so I got: However, when I...
[ 0.0224609375, 0.01519775390625, 0.0263671875, 0.02001953125, -0.0184326171875, -0.01092529296875, -0.0184326171875, 0.003875732421875, 0.0001735687255859375, -0.005401611328125, 0.00994873046875, 0.0155029296875, -0.0079345703125, 0.0064697265625, 0.00408935546875, 0.0137939453125, -...
[ 1250, 4867, 12, 23, 13, 161789, 39933, 502, 428, 420, 4939, 45233, 78804, 7, 41994, 44576, 37700, 159415, 214, 135730, 8273, 17368, 159, 102198, 2143, 15824, 3444, 2046, 99764, 28368, 6626, 25921, 15044, 12921, 4163, 33306, 87, 30957, 563, ...
[ 0.19091796875, 0.26513671875, 0.047515869140625, 0.0867919921875, 0.1248779296875, 0.2420654296875, 0.2481689453125, 0.12548828125, 0.038482666015625, 0.1346435546875, 0.1622314453125, 0.281982421875, 0.20263671875, 0.0831298828125, 0.1292724609375, 0.1019287109375, 0.150634765625, ...
embed
66016948_c0
66016948
prolog
0
Title: Inverting a function via CLP(FD) in pure Prolog Problem title: Inverting a function via CLP(FD) in pure Prolog Tags: while-loop, prolog, clpfd, enumerate Problem: Inverting a function via CLP(FD) in pure Prolog Lets take this function: function gcd(a, b) while a ≠ b if a > b a := a − b else b := b − a return a H...
Inverting a function via CLP(FD) in pure Prolog Inverting a function via CLP(FD) in pure Prolog while-loop prolog clpfd enumerate Inverting CLP Prolog Etc Inverting a function via CLP(FD) in pure Prolog Lets take this function: How would we code gcd/3 in pure Prolog, so that it can be inverted. The Prolog predicate sho...
[ -0.000476837158203125, 0.01129150390625, 0.007476806640625, -0.002532958984375, 0.011474609375, 0.0048828125, -0.01104736328125, -0.0135498046875, -0.008056640625, -0.037353515625, 0.0194091796875, 0.0069580078125, -0.0198974609375, 0.02685546875, 0.02392578125, 0.016357421875, 0.016...
[ 148639, 1916, 32354, 1829, 313, 37352, 98553, 34166, 1250, 4867, 12960, 28354, 502, 33139, 39557, 71, 189085, 23, 11249, 2806, 18151, 22109, 18113, 831, 131983, 297, 1653, 2063, 67, 9969, 6743, 155761, 33000, 26458, 2367, 621, 876, 6044, 27...
[ 0.261474609375, 0.08349609375, 0.1932373046875, 0.0948486328125, 0.054412841796875, 0.27490234375, 0.2113037109375, 0.1624755859375, 0.167724609375, 0.237548828125, 0.052276611328125, 0.158203125, 0.1226806640625, 0.0175628662109375, 0.0238800048828125, 0.1827392578125, 0.17626953125...
embed
49826732_c0
49826732
prolog
0
Title: PROLOG store previous outputs/inputs and generate new input based on old Problem title: PROLOG store previous outputs/inputs and generate new input based on old Tags: prolog Problem: PROLOG store previous outputs/inputs and generate new input based on old What im trying to do is: getDiffAnswer/5 getDiffAnswer(Q,...
PROLOG store previous outputs/inputs and generate new input based on old PROLOG store previous outputs/inputs and generate new input based on old prolog PROLOG PROLOG store previous outputs/inputs and generate new input based on old What im trying to do is: getDiffAnswer/5 getDiffAnswer(Q,PQ,PR,CR,R) holds if R is the ...
[ -0.00396728515625, 0.015869140625, -0.0002384185791015625, 0.0179443359375, -0.004974365234375, 0.00213623046875, -0.0211181640625, 0.004974365234375, 0.00946044921875, -0.0113525390625, 0.018310546875, -0.005584716796875, 0.0113525390625, 0.01025390625, -0.0089111328125, -0.0048217773...
[ 10514, 47510, 4343, 96362, 140992, 73, 7077, 139392, 3525, 107730, 35509, 10332, 502, 4867, 98, 31577, 2046, 32920, 7251, 7, 6488, 12147, 397, 2737, 683, 17255, 22578, 1052, 16401, 627, 57553, 5303, 25469, 35166, 25109, 9655, 2396, 83, 6818...
[ 0.1759033203125, 0.232666015625, 0.1859130859375, 0.1431884765625, 0.1905517578125, 0.061767578125, 0.0601806640625, 0.1453857421875, 0.0867919921875, 0.195068359375, 0.10736083984375, 0.09332275390625, 0.130859375, 0.155517578125, 0.0261688232421875, 0.0733642578125, 0.099365234375,...
embed
16929408_c0
16929408
prolog
0
Title: write elements in a list in prolog Problem title: write elements in a list in prolog Tags: prolog, list, element Problem: write elements in a list in prolog I am learning prolog. How do you write elements in a list in prolog where the list may contains elements beginning with a capital letter. for example: I hav...
write elements in a list in prolog write elements in a list in prolog prolog list element Base Recursive write elements in a list in prolog I am learning prolog. How do you write elements in a list in prolog where the list may contains elements beginning with a capital letter. for example: I have the predicate my_write...
[ -0.00897216796875, 0.00897216796875, -0.01318359375, 0.006317138671875, 0.00579833984375, 0.0262451171875, 0.01300048828125, 0.00130462646484375, 0.00921630859375, -0.005279541015625, 0.0087890625, -0.0206298828125, 0.0028228759765625, 0.025390625, 0.01434326171875, 0.00036811828613281...
[ 33022, 80854, 23, 5303, 502, 4867, 12830, 44978, 48650, 5844, 52080, 11249, 1543, 70541, 86595, 678, 10323, 31330, 1653, 2063, 67, 759, 434, 18781, 11583, 7225, 201505, 1052, 1542, 13169, 1176, 853, 11675, 81826, 621, 398, 182434, 1046, 539...
[ 0.208251953125, 0.2432861328125, 0.08984375, 0.2181396484375, 0.160400390625, 0.2412109375, 0.1312255859375, 0.1175537109375, 0.1519775390625, 0.0931396484375, 0.02984619140625, 0.010986328125, 0.030029296875, 0.0670166015625, 0.09063720703125, 0.036346435546875, 0.172119140625, 0....
embed
31326536_c0
31326536
prolog
0
Title: Graph Sudoku Prolog Problem title: Graph Sudoku Prolog Tags: clpfd, prolog Problem: Graph Sudoku Prolog I have an assignment about CLP with CT. I had a look at many block sudoku examples. I learnt how to define the list of rows, columns and boxes. However as I understood my problem is different from classical bl...
Graph Sudoku Prolog Graph Sudoku Prolog clpfd prolog Graph Sudoku Prolog Graph Sudoku Prolog I have an assignment about CLP with CT. I had a look at many block sudoku examples. I learnt how to define the list of rows, columns and boxes. However as I understood my problem is different from classical block sudoku example...
[ -0.006805419921875, 0.01300048828125, 0.005859375, -0.0238037109375, -0.01007080078125, -0.0093994140625, -0.0206298828125, 0.01409912109375, -0.01312255859375, -0.017578125, -0.0101318359375, -0.033447265625, 0.00836181640625, 0.01019287109375, -0.00091552734375, 0.0272216796875, 0....
[ 6524, 11727, 15334, 38067, 1250, 4867, 71, 502, 95486, 674, 313, 37352, 678, 71885, 46389, 8932, 27781, 61924, 5303, 15555, 3365, 316, 16530, 217064, 2967, 12921, 54704, 41382, 527, 1369, 856, 647, 438, 208244, 95378, 5170, 765, 5701, 14012...
[ 0.1737060546875, 0.1544189453125, 0.12744140625, 0.2119140625, 0.1016845703125, 0.1951904296875, 0.054443359375, 0.0404052734375, 0.102783203125, 0.049285888671875, 0.0103759765625, 0.2154541015625, 0.031585693359375, 0.113037109375, 0.1575927734375, 0.1334228515625, 0.1923828125, ...
embed
47728056_c0
47728056
prolog
0
Title: Prolog Sudoku Solver, Solve any quadratic Sudoku, elements not distinct Problem title: Prolog Sudoku Solver, Solve any quadratic Sudoku, elements not distinct Tags: prolog, sudoku, clpfd Problem: Prolog Sudoku Solver, Solve any quadratic Sudoku, elements not distinct Solving any quadratic Sudoku, so Sudoku of si...
Prolog Sudoku Solver, Solve any quadratic Sudoku, elements not distinct Prolog Sudoku Solver, Solve any quadratic Sudoku, elements not distinct prolog sudoku clpfd Prolog Sudoku Solver Solve solve_sudoku Prolog Sudoku Solver, Solve any quadratic Sudoku, elements not distinct Solving any quadratic Sudoku, so Sudoku of s...
[ 0.0050048828125, 0.0140380859375, 0.0189208984375, -0.00958251953125, -0.02001953125, -0.00408935546875, -0.01513671875, -0.00726318359375, 0.0032196044921875, -0.025146484375, -0.0059814453125, -0.0302734375, 0.0108642578125, -0.004974365234375, -0.01055908203125, 0.003936767578125, ...
[ 1250, 4867, 15334, 38067, 6678, 814, 272, 2499, 68587, 9523, 80854, 959, 117781, 502, 8932, 33139, 39557, 71, 86869, 7, 11547, 319, 6496, 221, 13267, 127915, 2485, 2588, 15490, 3871, 7941, 587, 6238, 8382, 81409, 1614, 309, 3638, 44457, 3...
[ 0.16455078125, 0.255126953125, 0.22509765625, 0.26171875, 0.15869140625, 0.2071533203125, 0.1103515625, 0.09033203125, 0.1749267578125, 0.071044921875, 0.1588134765625, 0.0828857421875, 0.1748046875, 0.095947265625, 0.1588134765625, 0.06256103515625, 0.041656494140625, 0.1165771484...
embed
69002380_c0
69002380
prolog
0
Title: Trace how Prolog finds result for query Problem title: Trace how Prolog finds result for query Tags: debugging, prolog, trace Problem: Trace how Prolog finds result for query I am studying for my AI exam I have coming up tomorrow and I was stuck on a particular Prolog question. The question is as follows: Consid...
Trace how Prolog finds result for query Trace how Prolog finds result for query debugging prolog trace Trace Prolog Trace how Prolog finds result for query I am studying for my AI exam I have coming up tomorrow and I was stuck on a particular Prolog question. The question is as follows: Consider the following program: ...
[ 0.0230712890625, 0.01953125, 0.000579833984375, 0.01513671875, -0.01153564453125, -0.002288818359375, -0.0269775390625, 0.005889892578125, -0.01080322265625, -0.0250244140625, 0.01513671875, 0.00201416015625, -0.0223388671875, -0.013427734375, 0.006195068359375, 0.019775390625, 0.012...
[ 4937, 329, 3642, 1250, 4867, 7413, 7, 16750, 100, 41, 1294, 8, 978, 36659, 502, 144851, 38730, 42276, 38162, 127773, 179933, 17311, 9655, 137399, 25632, 1528, 2806, 705, 1690, 418, 189126, 339, 3535, 37629, 19336, 35166, 39933, 98441, 7639,...
[ 0.1795654296875, 0.132080078125, 0.139404296875, 0.18505859375, 0.26220703125, 0.192138671875, 0.0208587646484375, 0.2332763671875, 0.1129150390625, 0.1611328125, 0.123046875, 0.1253662109375, 0.163330078125, 0.0252227783203125, 0.13720703125, 0.2081298828125, 0.137939453125, 0.104...
embed
31357734_c0
31357734
prolog
0
Title: Prolog how to use if / else in this way? Problem title: Prolog how to use if / else in this way? Tags: if-statement, prolog Problem: Prolog how to use if / else in this way? In Prolog, i want to use an if-else statement in the following way: lecture(spanish,monday,at8). lecture(french,monday,at8). lecture(englis...
Prolog how to use if / else in this way? Prolog how to use if / else in this way? if-statement prolog Prolog at8 at10 LectureA LectureB How Prolog how to use if / else in this way? In Prolog, i want to use an if-else statement in the following way: As a result, the function should generate schedules with two lectures w...
[ 0.0159912109375, 0.00579833984375, 0.0169677734375, 0.020263671875, -0.0235595703125, -0.01318359375, -0.004241943359375, 0.00445556640625, -0.0101318359375, -0.0162353515625, -0.01397705078125, 0.0004444122314453125, -0.01177978515625, 0.0152587890625, 0.0123291015625, 0.0014953613281...
[ 1250, 4867, 3642, 47, 4527, 2174, 248, 37076, 903, 3917, 61340, 674, 502, 99, 1019, 963, 75625, 6644, 284, 571, 11249, 3444, 9, 5557, 63805, 25632, 32354, 5608, 139392, 80889, 6626, 59619, 959, 5701, 1733, 24897 ]
[ 0.1661376953125, 0.263916015625, 0.0899658203125, 0.013916015625, 0.1597900390625, 0.2296142578125, 0.1693115234375, 0.2159423828125, 0.058868408203125, 0.097900390625, 0.15625, 0.051239013671875, 0.1346435546875, 0.042724609375, 0.10748291015625, 0.11083984375, 0.1015625, 0.056091...
embed
67930494_c0
67930494
prolog
0
Title: Swi Prolog: how to count the number of elements by using rules (not query) Problem title: Swi Prolog: how to count the number of elements by using rules (not query) Tags: swi-prolog, prolog Problem: Swi Prolog: how to count the number of elements by using rules (not query) As title stated above, how to make this...
Swi Prolog: how to count the number of elements by using rules (not query) Swi Prolog: how to count the number of elements by using rules (not query) swi-prolog prolog rules Swi Prolog Facts parent2 child2 number_of_child Swi Prolog: how to count the number of elements by using rules (not query) As title stated above, ...
[ 0.009521484375, 0.00970458984375, -0.00555419921875, 0.0184326171875, -0.005126953125, 0.00921630859375, -0.0186767578125, 0.01953125, 0.0140380859375, -0.060546875, -0.0050048828125, -0.046142578125, 0.006500244140625, 0.0135498046875, 0.02001953125, -0.0177001953125, 0.000282287597...
[ 105432, 1250, 4867, 3642, 54529, 14012, 80854, 390, 17368, 91736, 10869, 41, 1294, 47, 91, 2452, 3454, 502, 132640, 49129, 304, 29041, 4390, 206, 38472, 3249, 7722, 11249, 29479, 84751, 35166, 990, 7639, 116, 42380, 2685, 136, 10461 ]
[ 0.2137451171875, 0.154296875, 0.2149658203125, 0.06610107421875, 0.212646484375, 0.15966796875, 0.2171630859375, 0.06982421875, 0.1148681640625, 0.239013671875, 0.130126953125, 0.07769775390625, 0.06494140625, 0.008453369140625, 0.01519775390625, 0.1717529296875, 0.0963134765625, 0...
embed
43065343_c0
43065343
prolog
0
Title: rules order in a prolog program Problem title: rules order in a prolog program Tags: prolog Problem: rules order in a prolog program I’m a uni student and working on a AI project, we need to design a program using prolog. we’re a beginner so its gonna be a very basic program, we aren’t required to design any int...
rules order in a prolog program rules order in a prolog program prolog rules order in a prolog program I’m a uni student and working on a AI project, we need to design a program using prolog. we’re a beginner so its gonna be a very basic program, we aren’t required to design any interfaces or things like that. this ide...
[ 0.0272216796875, -0.0027313232421875, -0.0004558563232421875, 0.0218505859375, 0.00041961669921875, 0.015380859375, -0.0159912109375, 0.0223388671875, 0.007232666015625, -0.0322265625, 0.0026092529296875, -0.00640869140625, -0.01239013671875, -0.017822265625, 0.0184326171875, -0.002624...
[ 91736, 12989, 23, 10, 502, 4867, 1528, 87, 39, 19844, 9836, 20697, 38730, 13452, 3871, 4331, 17368, 9842, 1679, 6863, 132294, 4552, 62822, 56065, 101758, 6528, 7639, 38937, 145170, 428, 6635, 163, 96967, 36849, 3444, 42459, 48564, 831, 7228...
[ 0.2496337890625, 0.250732421875, 0.0869140625, 0.03173828125, 0.1744384765625, 0.2479248046875, 0.2205810546875, 0.01214599609375, 0.002777099609375, 0.0648193359375, 0.1024169921875, 0.0294189453125, 0.157958984375, 0.06585693359375, 0.0364990234375, 0.1456298828125, 0.0403747558593...
embed
40845060_c0
40845060
prolog
0
Title: Prolog Recursive Clause Problem title: Prolog Recursive Clause Tags: successor-arithmetics, prolog Problem: Prolog Recursive Clause I've got the following knowledge base, which is supposed to add two arguments and give the results: add(0,X,X). add(succ(X),Y,succ(R)):- add(X,Y,R). Now this is my query: ?- add(suc...
Prolog Recursive Clause Prolog Recursive Clause successor-arithmetics prolog Prolog Recursive Clause Result Prolog Recursive Clause I've got the following knowledge base, which is supposed to add two arguments and give the results: Now this is my query: The 0 does not unify with the first argument so it goes to the sec...
[ 0.022705078125, 0.031005859375, -0.00836181640625, 0.0262451171875, -0.0107421875, 0.019775390625, 0.00121307373046875, 0.0027008056640625, 0.01458740234375, -0.028564453125, 0.00933837890625, -0.00494384765625, -0.0341796875, 0.003692626953125, 0.030517578125, -0.00885009765625, 0.0...
[ 1250, 4867, 853, 48650, 5844, 100700, 13, 39457, 42, 8962, 502, 126684, 51359, 3647, 134598, 15190, 6626, 10750, 50339, 1294, 757, 14602, 959, 51, 40383, 678, 5117, 17932, 18113, 70731, 831, 18, 26366, 1810, 12877, 34440, 628, 32166, 5510, ...
[ 0.1387939453125, 0.2178955078125, 0.039398193359375, 0.1834716796875, 0.114013671875, 0.1583251953125, 0.05242919921875, 0.1636962890625, 0.036041259765625, 0.0751953125, 0.10711669921875, 0.163330078125, 0.0295562744140625, 0.0762939453125, 0.004150390625, 0.104736328125, 0.07885742...
embed
64835191_c0
64835191
prolog
0
Title: Boolean unification in Prolog? Problem title: Boolean unification in Prolog? Tags: constraints, prolog, sat Problem: Boolean unification in Prolog? I am struggling alreay for a long time with the following problem. I want to make the usual unification of Prolog more smart. Basically I want that certain variables...
Boolean unification in Prolog? Boolean unification in Prolog? constraints prolog sat Boolean Prolog Welcome SWI-Prolog use_module Boolean unification in Prolog? I am struggling alreay for a long time with the following problem. I want to make the usual unification of Prolog more smart. Basically I want that certain var...
[ 0.0260009765625, 0.01092529296875, 0.0262451171875, -0.002960205078125, -0.0106201171875, -0.00518798828125, -0.0034027099609375, 0.000789642333984375, 0.006103515625, -0.0262451171875, -0.024658203125, 0.0125732421875, 0.00157928466796875, 0.0030975341796875, 0.006378173828125, -0.000...
[ 73783, 34677, 51, 41274, 23, 1250, 4867, 158, 2816, 4288, 502, 11736, 91334, 38969, 10752, 4527, 83279, 237875, 1283, 4989, 1733, 25632, 2967, 3444, 3249, 115723, 111, 1286, 18775, 24233, 77336, 28219, 27781, 757, 2203, 6780, 418, 136, 106,...
[ 0.1702880859375, 0.253173828125, 0.194091796875, 0.209228515625, 0.08203125, 0.1663818359375, 0.275390625, 0.0172119140625, 0.1248779296875, 0.02740478515625, 0.1024169921875, 0.10052490234375, 0.074951171875, 0.1630859375, 0.137939453125, 0.06982421875, 0.12451171875, 0.0888061523...
embed
1846199_c0
1846199
prolog
0
Title: Reading a string (from a file) in Prolog Problem title: Reading a string (from a file) in Prolog Tags: prolog, swi-prolog Problem: Reading a string (from a file) in Prolog I have written a lexer and a parser in Prolog. It unifies a string with its AST. This is part for a compiler/interpreter project I am working...
Reading a string (from a file) in Prolog Reading a string (from a file) in Prolog prolog swi-prolog a Reading Prolog x.x Reading a string (from a file) in Prolog I have written a lexer and a parser in Prolog. It unifies a string with its AST. This is part for a compiler/interpreter project I am working on. Naturally, I...
[ 0.015625, -0.00958251953125, -0.000732421875, 0.0281982421875, -0.0166015625, 0.01361083984375, 0.01104736328125, -0.004791259765625, -0.00311279296875, -0.064453125, 0.0147705078125, 0.01531982421875, -0.042236328125, -0.025390625, 0.0250244140625, -0.00653076171875, -0.008605957031...
[ 104951, 79315, 161063, 11435, 1250, 4867, 23, 502, 2452, 3454, 425, 59121, 95, 34058, 366, 2189, 51, 27430, 48963, 34759, 158288, 13452, 20697, 12301, 1295, 184, 1653, 2063, 1636, 4734, 34627, 136, 102158, 41929, 68726, 53550, 36272, 3444, ...
[ 0.1973876953125, 0.2276611328125, 0.127685546875, 0.19677734375, 0.1678466796875, 0.22314453125, 0.0256195068359375, 0.115478515625, 0.1365966796875, 0.1029052734375, 0.037628173828125, 0.02081298828125, 0.06060791015625, 0.164794921875, 0.124267578125, 0.09527587890625, 0.0385131835...
embed
50078819_c0
50078819
prolog
0
Title: A predicate that takes a list and repeats each element X amount of times - Prolog Problem title: A predicate that takes a list and repeats each element X amount of times - Prolog Tags: recursion, prolog Problem: A predicate that takes a list and repeats each element X amount of times - Prolog I can get the resul...
A predicate that takes a list and repeats each element X amount of times - Prolog A predicate that takes a list and repeats each element X amount of times - Prolog recursion prolog Prolog Result N-1 A predicate that takes a list and repeats each element X amount of times - Prolog I can get the result to be true, but wh...
[ -0.006011962890625, 0.0115966796875, 0.0019073486328125, 0.008544921875, -0.01446533203125, 0.0194091796875, 0.006744384765625, -0.015869140625, 0.022705078125, -0.016845703125, -0.0018768310546875, -0.000774383544921875, -0.00787353515625, 0.0033111572265625, 0.00897216796875, 0.01684...
[ 1653, 2063, 67, 450, 51776, 5303, 136, 119140, 7, 12638, 12830, 1193, 41170, 20028, 1250, 4867, 62, 10, 195625, 1830, 502, 126684, 541, 5759, 831, 2046, 16750, 29568, 1284, 81887, 3249, 98320, 87, 12319, 1884, 83, 23, 3564, 9393, 40956, ...
[ 0.1912841796875, 0.242919921875, 0.1158447265625, 0.0333251953125, 0.09637451171875, 0.1861572265625, 0.04339599609375, 0.256103515625, 0.034820556640625, 0.04486083984375, 0.1795654296875, 0.10028076171875, 0.1185302734375, 0.17333984375, 0.16845703125, 0.249267578125, 0.01502990722...
embed
13310272_c3
13310272
prolog
3
12/100 * 60, 12 * 2/5,car). edge(c,g,12,12/5 * 60, 12 *0 ,walk). edge(d,e,3,3/500 * 60, 3* 1,plane). edge(d,e,3,3/120 * 60, 3 * 3/4,train). edge(d,e,3,3/80 * 60, 3 * 3/5,bus). edge(d,e,3,3/100 * 60, 3 * 2/5,car). edge(d,e,3,3/5 * 60, 3 * 0,walk). edge(e,f,400,400/500 * 60, 400 * 1,plane). edge(e,f,400,400/120 * 60, 400...
12/100 * 60, 12 * 2/5,car). edge(c,g,12,12/5 * 60, 12 *0 ,walk). edge(d,e,3,3/500 * 60, 3* 1,plane). edge(d,e,3,3/120 * 60, 3 * 3/4,train). edge(d,e,3,3/80 * 60, 3 * 3/5,bus). edge(d,e,3,3/100 * 60, 3 * 2/5,car). edge(d,e,3,3/5 * 60, 3 * 0,walk). edge(e,f,400,400/500 * 60, 400 * 1,plane). edge(e,f,400,400/120 * 60, 400...
[ 0.0137939453125, -0.005096435546875, -0.00653076171875, 0.01397705078125, 0.0240478515625, -0.00872802734375, -0.0306396484375, -0.0072021484375, -0.006103515625, -0.038330078125, -0.01348876953125, -0.033935546875, -0.0225830078125, -0.0003204345703125, -0.0030975341796875, 0.01007080...
[ 427, 83123, 661, 1496, 4, 116, 12147, 3284, 194, 121303, 132, 238, 177, 1530, 2389, 94449, 71, 363, 40061, 4283, 138, 1639, 106, 5868, 13, 20840, 83849, 1517, 4836, 4223, 757, 420, 10700, 4082, 10253, 7607, 162711, 1542, 1723, 397, 618,...
[ 0.193603515625, 0.27783203125, 0.2010498046875, 0.263916015625, 0.10186767578125, 0.0863037109375, 0.235595703125, 0.2254638671875, 0.098388671875, 0.278076171875, 0.03826904296875, 0.08197021484375, 0.119384765625, 0.15185546875, 0.1485595703125, 0.20947265625, 0.12451171875, 0.11...
embed
32530129_c0
32530129
prolog
0
Title: Solving a 4x4 multiplicative puzzle &quot;5040&quot; in Prolog with clp(FD) Problem title: Solving a 4x4 multiplicative puzzle &quot;5040&quot; in Prolog with clp(FD) Tags: prolog, clpfd, puzzle Problem: Solving a 4x4 multiplicative puzzle "5040" in Prolog with clp(FD) Today, I found a puzzle at https://puzzling...
Solving a 4x4 multiplicative puzzle &quot;5040&quot; in Prolog with clp(FD) Solving a 4x4 multiplicative puzzle &quot;5040&quot; in Prolog with clp(FD) prolog clpfd puzzle Solving Prolog use_module m5040_ Mss all_different CPU Lips Solving a 4x4 multiplicative puzzle "5040" in Prolog with clp(FD) Today, I found a puzzl...
[ -0.019775390625, -0.0017852783203125, 0.0172119140625, 0.01348876953125, -0.00836181640625, -0.009765625, -0.0162353515625, 0.0052490234375, -0.007568359375, -0.0390625, -0.006622314453125, 0.00762939453125, 0.00860595703125, 0.0224609375, -0.0027923583984375, 0.00445556640625, -0.00...
[ 6678, 6496, 201, 425, 617, 127664, 4935, 104192, 2525, 2839, 1250, 4867, 33139, 254, 98553, 502, 39557, 71, 4527, 83279, 70802, 756, 238778, 86039, 156903, 14037, 1766, 13894, 2069, 152028, 77212, 2347, 42221, 108047, 5117, 51876, 3115, 17368...
[ 0.1190185546875, 0.07098388671875, 0.085693359375, 0.09283447265625, 0.1829833984375, 0.1378173828125, 0.0545654296875, 0.1925048828125, 0.124267578125, 0.240234375, 0.1202392578125, 0.227294921875, 0.06951904296875, 0.155029296875, 0.1622314453125, 0.0687255859375, 0.0731201171875, ...
embed
43406141_c0
43406141
prolog
0
Title: Find minimum and maximum of a list in Prolog Problem title: Find minimum and maximum of a list in Prolog Tags: prolog Problem: Find minimum and maximum of a list in Prolog Below is my program. Individually.... max and min functions works, but when I combine them using minmax, it is throwing the error. max([H|T],...
Find minimum and maximum of a list in Prolog Find minimum and maximum of a list in Prolog prolog Find Prolog Find minimum and maximum of a list in Prolog Below is my program. Individually.... max and min functions works, but when I combine them using minmax, it is throwing the error. till here max code works individual...
[ 0.01318359375, -0.003936767578125, 0.030029296875, 0.0181884765625, -0.0002384185791015625, 0.022705078125, 0.012451171875, 0.004974365234375, -0.00057220458984375, 0, -0.005889892578125, -0.0145263671875, 0.000705718994140625, -0.014892578125, 0.025634765625, -0.00127410888671875, -...
[ 26040, 15440, 136, 38132, 5303, 1250, 4867, 111, 23, 502, 1528, 154966, 18389, 881, 32354, 43240, 70163, 24084, 104250, 18499, 18151, 11651 ]
[ 0.1005859375, 0.228759765625, 0.11572265625, 0.2078857421875, 0.1697998046875, 0.1473388671875, 0.2286376953125, 0.011993408203125, 0.034271240234375, 0.0986328125, 0.060546875, 0.005462646484375, 0.1639404296875, 0.197509765625, 0.1234130859375, 0.023529052734375, 0.13916015625, 0...
embed