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
40969736_c0
40969736
prolog
0
Title: Super noobish prolog arithmetic Problem title: Super noobish prolog arithmetic Tags: compiler-errors, math, prolog Problem: Super noobish prolog arithmetic Very new to prolog. For a program I would like to say A1 = X1 + X2 + X3 + X4 to add up to 16. Also, I want to say that X1 must = 1. Note X1 to Xn are all per...
Super noobish prolog arithmetic Super noobish prolog arithmetic compiler-errors math prolog Super Super noobish prolog arithmetic Very new to prolog. For a program I would like to say A1 = X1 + X2 + X3 + X4 to add up to 16. Also, I want to say that X1 must = 1. Note X1 to Xn are all permuted numbers from 1-9. I wrote t...
[ -0.01104736328125, -0.005157470703125, -0.003448486328125, 0.01287841796875, -0.00811767578125, 0.00909423828125, -0.01300048828125, 0.01092529296875, 0.00958251953125, -0.021728515625, 0.007659912109375, 0.0079345703125, 0.01092529296875, 0.01287841796875, -0.00311279296875, -0.020874...
[ 4265, 110, 3522, 4745, 502, 4867, 8962, 282, 9969, 34759, 188800, 48909, 187, 3525, 1528, 5154, 62, 418, 2203, 1193, 997, 304, 363, 617, 15190, 1257, 47, 6849, 8110, 615, 19, 756, 117, 561, 101935, 1295, 106, 15205, 18151, 18499, 1172, ...
[ 0.1427001953125, 0.068603515625, 0.1171875, 0.1500244140625, 0.150146484375, 0.216796875, 0.14697265625, 0.103271484375, 0.15087890625, 0.2078857421875, 0.15966796875, 0.078369140625, 0.000640869140625, 0.003631591796875, 0.136474609375, 0.073486328125, 0.1217041015625, 0.141479492...
embed
37097524_c0
37097524
prolog
0
Title: How can I select integers from a list in Prolog? Problem title: How can I select integers from a list in Prolog? Tags: prolog, list Problem: How can I select integers from a list in Prolog? I'm trying to create a predicate in Prolog select_integers(X, L) that holds true if L is a list containing every integer in...
How can I select integers from a list in Prolog? How can I select integers from a list in Prolog? prolog list a How Prolog select_integers How can I select integers from a list in Prolog? I'm trying to create a predicate in Prolog select_integers(X, L) that holds true if L is a list containing every integer in X ( X co...
[ -0.02587890625, -0.000759124755859375, 0.00408935546875, 0.0096435546875, -0.01953125, 0.0172119140625, 0.000911712646484375, -0.00457763671875, 0.00341796875, -0.01141357421875, 0.012451171875, -0.009765625, -0.01153564453125, 0.02978515625, 0.01055908203125, 0.007080078125, 0.00787...
[ 11249, 831, 36849, 892, 26255, 1295, 5303, 23, 1250, 4867, 87, 502, 6191, 31577, 28282, 1653, 2063, 67, 1542, 339, 16401, 29568, 2174, 70541, 11907, 1505, 1193, 48716, 52895, 142424, 132283, 52295, 30646, 98320 ]
[ 0.0694580078125, 0.06268310546875, 0.196044921875, 0.169677734375, 0.1588134765625, 0.094970703125, 0.17236328125, 0.06231689453125, 0.1531982421875, 0.225830078125, 0.010711669921875, 0.09454345703125, 0.1622314453125, 0.0235137939453125, 0.05316162109375, 0.0765380859375, 0.1027832...
embed
72457516_c1
72457516
prolog
1
collect arcs in the recursive traversal of a graph by using assertion. But, unless I am mistaken, that's only possible if we have the possible to mix assertion with logical conditions. Thank you very much for your help and guidance in this. UPDATE: I think I might have figured it out: including a Clojure statement is ...
collect arcs in the recursive traversal of a graph by using assertion. But, unless I am mistaken, that's only possible if we have the possible to mix assertion with logical conditions. Thank you very much for your help and guidance in this. UPDATE: I think I might have figured it out: including a Clojure statement is ...
[ -0.01171875, 0.01904296875, -0.0091552734375, 0.039794921875, -0.0040283203125, -0.0018310546875, -0.0024566650390625, 0.00567626953125, 0.002532958984375, -0.0289306640625, 0.000743865966796875, 0.0111083984375, -0.0245361328125, 0.00019359588623046875, 0.041015625, -0.000140190124511...
[ 43799, 46552, 7, 23, 195625, 5844, 37317, 289, 41382, 17368, 10, 16865, 1363, 7722, 17664, 678, 62775, 27289, 4358, 196219, 87, 26366, 26719, 51053, 461, 107, 63805, 5885, 8110, 30646, 29568, 51, 5062, 1250, 4867, 32354, 191082, 1159, 39884...
[ 0.263427734375, 0.263916015625, 0.138916015625, 0.01483154296875, 0.22900390625, 0.1461181640625, 0.2054443359375, 0.08709716796875, 0.21484375, 0.08251953125, 0.088134765625, 0.2435302734375, 0.13232421875, 0.1251220703125, 0.1268310546875, 0.00628662109375, 0.1668701171875, 0.161...
embed
47369389_c0
47369389
prolog
0
Title: Prolog - Why can't you call/1 a clause made with (=..)/2? Problem title: Prolog - Why can't you call/1 a clause made with (=..)/2? Tags: swi-prolog, swi-prolog-for-sharing, prolog Problem: Prolog - Why can't you call/1 a clause made with (=..)/2? The following piece of code: Clause =.. [integer,1], res...
Prolog - Why can't you call/1 a clause made with (=..)/2? Prolog - Why can't you call/1 a clause made with (=..)/2? swi-prolog swi-prolog-for-sharing prolog Prolog Why Clause Prolog - Why can't you call/1 a clause made with (=..)/2? The following piece of code: results in Clause = integer(1) I would expect th...
[ -0.002777099609375, 0.0206298828125, 0.02099609375, 0.012939453125, 0.00115966796875, 0.004547119140625, 0.01904296875, -0.02001953125, 0.017333984375, -0.048828125, -0.00872802734375, 0.01519775390625, -0.016845703125, 0.005767822265625, 0.019287109375, -0.032470703125, 0.0252685546...
[ 1250, 4867, 44084, 831, 3768, 18, 11782, 11583, 70731, 13, 7228, 678, 78690, 5, 12477, 2452, 3454, 2420, 2852, 502, 100700, 18151, 50339, 2203, 892, 1505, 27750, 41206, 17368, 98, 77336, 29568, 38969, 7614, 1234, 9035, 959, 129980, 34648, ...
[ 0.16845703125, 0.2232666015625, 0.1181640625, 0.126220703125, 0.05255126953125, 0.07666015625, 0.212890625, 0.210693359375, 0.238037109375, 0.1090087890625, 0.1011962890625, 0.15673828125, 0.1466064453125, 0.056884765625, 0.263671875, 0.132080078125, 0.08831787109375, 0.0927734375,...
embed
36653220_c1
36653220
prolog
1
terbinafine, warfarin], [terbinafine, warfarin], [terbinafine|...], [...|...]|...]. Edit I've attempted to implement what @false suggested: interacts_with(D1, D2) :- interacts(D1, D2, _) ; interacts(D2, D1, _). print_effects(D1, D2) :- ( interacts_with(D1,D2) -> findall([D1, D2], interacts_with(D1, D2), []) ; write(D1)...
terbinafine, warfarin], [terbinafine, warfarin], [terbinafine|...], [...|...]|...]. Edit I've attempted to implement what @false suggested: interacts_with(D1, D2) :- interacts(D1, D2, _) ; interacts(D2, D1, _). print_effects(D1, D2) :- ( interacts_with(D1,D2) -> findall([D1, D2], interacts_with(D1, D2), []) ; write(D1)...
[ 0.00162506103515625, -0.00799560546875, 0.0012664794921875, 0.0234375, -0.01904296875, 0.033935546875, -0.0185546875, 0.00028228759765625, 0.004638671875, -0.033935546875, 0.01422119140625, 0.01385498046875, -0.00390625, 0.0032501220703125, -0.006195068359375, 0.0186767578125, 0.0098...
[ 704, 19155, 64552, 1631, 3814, 73, 720, 81887, 29479, 8710, 42459, 78974, 7, 76228, 397, 418, 391, 10461, 304, 28412, 171760, 7413, 5584, 33022, 17727, 959, 678, 20949, 705, 98320, 5423, 4390, 30646, 5303, 125694, 115081, 28864, 26073, 2604...
[ 0.15087890625, 0.1812744140625, 0.2484130859375, 0.1077880859375, 0.1895751953125, 0.157470703125, 0.142578125, 0.0692138671875, 0.1572265625, 0.1043701171875, 0.06427001953125, 0.210205078125, 0.043243408203125, 0.16064453125, 0.072998046875, 0.04644775390625, 0.07550048828125, 0....
embed
27216247_c0
27216247
prolog
0
Title: I don't understand what label does in Prolog Problem title: I don't understand what label does in Prolog Tags: sudoku, clpfd, prolog Problem: I don't understand what label does in Prolog I went through the manual and documentation but still don't understand. I'm trying to implement a sudoku solution wh...
I don't understand what label does in Prolog I don't understand what label does in Prolog sudoku clpfd prolog Prolog I don't understand what label does in Prolog I went through the manual and documentation but still don't understand. I'm trying to implement a sudoku solution where after writing out all the ot...
[ 0.01263427734375, 0.01007080078125, 0.01513671875, 0.0145263671875, -0.01531982421875, 0.000629425048828125, -0.00750732421875, 0.01007080078125, -0.0034942626953125, -0.0277099609375, -0.0223388671875, -0.059814453125, 0.01422119140625, 0.00262451171875, 0.01025390625, -0.013488769531...
[ 2301, 3768, 18, 28219, 2367, 67967, 14602, 23, 1250, 4867, 8932, 38067, 39557, 71, 502, 23009, 209806, 7464, 29479, 29806, 32562, 1810, 91736, 6712, 49814, 12647, 5861, 59499, 117914, 167934, 2046, 3642, 442, 43240, 20594, 3789, 158, 2816, ...
[ 0.05230712890625, 0.035247802734375, 0.041229248046875, 0.178466796875, 0.0511474609375, 0.2958984375, 0.0936279296875, 0.07098388671875, 0.1551513671875, 0.238525390625, 0.138427734375, 0.20361328125, 0.00360107421875, 0.0379638671875, 0.118896484375, 0.0657958984375, 0.058471679687...
embed
5494706_c0
5494706
prolog
0
Title: return all levels of a binarytree in prolog Problem title: return all levels of a binarytree in prolog Tags: prolog Problem: return all levels of a binarytree in prolog I'm trying to get a program to return the levels of a BT in the way of a list and I'm stuck at this: nivel(nodo(L,Root,R)) :- nivel(nodo(L,Root,...
return all levels of a binarytree in prolog return all levels of a binarytree in prolog prolog Root return all levels of a binarytree in prolog I'm trying to get a program to return the levels of a BT in the way of a list and I'm stuck at this: An example input-output of what I'm trying is: problem is I don't know how ...
[ 0.01483154296875, 0.00946044921875, -0.00531005859375, -0.0026702880859375, 0.015869140625, 0.018310546875, -0.0174560546875, 0.00173187255859375, -0.0084228515625, -0.03759765625, 0.0216064453125, -0.01953125, -0.0030364990234375, 0.00830078125, 0.01312255859375, -0.00096893310546875,...
[ 30646, 756, 90926, 2394, 6635, 62600, 23, 502, 4867, 111, 150948, 1528, 66145, 3917, 5303, 179933, 27781, 107730, 6056, 7077, 31577, 2967, 3714, 3642, 3249, 2046, 3525, 7 ]
[ 0.1685791015625, 0.1380615234375, 0.235107421875, 0.1318359375, 0.054473876953125, 0.221435546875, 0.065185546875, 0.135986328125, 0.221923828125, 0.010162353515625, 0.2359619140625, 0.1123046875, 0.150634765625, 0.040283203125, 0.0948486328125, 0.05145263671875, 0.091064453125, 0....
embed
29383175_c0
29383175
prolog
0
Title: Prolog : coin change Problem title: Prolog : coin change Tags: coin-change, prolog Problem: Prolog : coin change I am new to prolog, trying to solve this classic coin change problem. change(M,P,N,D) with formula that M>=0 and M = P+5*N+10*D here is my approach change(M,P,N,D) :- M is P+5*N+10*D, P is M - (5*N+10...
Prolog : coin change Prolog : coin change coin-change prolog Prolog Prolog : coin change I am new to prolog, trying to solve this classic coin change problem. change(M,P,N,D) with formula that M>=0 and M = P+5*N+10*D here is my approach couple of test-cases However, if I try it gives me "Arguments are not sufficiently ...
[ -0.014404296875, -0.0023651123046875, -0.00909423828125, 0.010986328125, -0.00274658203125, 0.0244140625, -0.01434326171875, 0.010009765625, 0.000789642333984375, -0.0128173828125, 0.002960205078125, -0.003021240234375, 0.0074462890625, 0.00002491474151611328, 0.01214599609375, 0.01306...
[ 1250, 4867, 43780, 15549, 152, 152028, 502, 3525, 31577, 86869, 54704, 2967, 594, 683, 839, 397, 26168, 276, 2740, 145407, 2203, 436, 131815, 1639, 1328, 963, 3688, 51515, 24941, 3034, 58437, 9790, 76199, 163, 7614, 1234, 9035, 959, 129980,...
[ 0.15966796875, 0.221435546875, 0.1883544921875, 0.2183837890625, 0.015045166015625, 0.171142578125, 0.1375732421875, 0.0684814453125, 0.046539306640625, 0.09283447265625, 0.09552001953125, 0.1429443359375, 0.1204833984375, 0.0830078125, 0.0911865234375, 0.107421875, 0.177001953125, ...
embed
32646685_c1
32646685
prolog
1
and in my Java application i call the query in this way : public static void CallQuery(String t2){ Query q2 = new Query(t2); try{ q2.hasSolution(); } catch (Exception e) { } } t2 is "start" when i call it from the main()! So when i run it, the system give me the "ClassNotFoundException"! Question 1)Can someone give me ...
and in my Java application i call the query in this way : public static void CallQuery(String t2){ Query q2 = new Query(t2); try{ q2.hasSolution(); } catch (Exception e) { } } t2 is "start" when i call it from the main()! So when i run it, the system give me the "ClassNotFoundException"! Question 1)Can someone give me ...
[ 0.0123291015625, 0.0341796875, -0.002716064453125, 0.03369140625, -0.00145721435546875, 0.01416015625, 0.0234375, -0.0142822265625, -0.0023651123046875, -0.04248046875, 0.01397705078125, 0.004791259765625, -0.022216796875, -0.0045166015625, -0.00125885009765625, -0.0019378662109375, ...
[ 136, 23, 759, 41925, 38415, 17, 11782, 41, 1294, 903, 3917, 3835, 201939, 2292, 26265, 41732, 71713, 808, 10461, 58836, 53, 8096, 304, 2203, 3525, 18, 9790, 5442, 10557, 102588, 34, 1363, 51912, 105556, 19279, 63928, 28, 17137, 58, 3229, ...
[ 0.08929443359375, 0.02288818359375, 0.0178375244140625, 0.1951904296875, 0.14697265625, 0.039581298828125, 0.2093505859375, 0.1590576171875, 0.15625, 0.09564208984375, 0.10626220703125, 0.042327880859375, 0.1378173828125, 0.111083984375, 0.183349609375, 0.156982421875, 0.075500488281...
embed
37384598_c0
37384598
prolog
0
Title: Prolog - Check if two lists have the same elements except one Problem title: Prolog - Check if two lists have the same elements except one Tags: list, prolog-dif, prolog Problem: Prolog - Check if two lists have the same elements except one I'm working with two lists of characters and I want to check if they hav...
Prolog - Check if two lists have the same elements except one Prolog - Check if two lists have the same elements except one list prolog-dif prolog Prolog Check Prolog - Check if two lists have the same elements except one I'm working with two lists of characters and I want to check if they have the same elements except...
[ 0.0115966796875, 0.0220947265625, -0.00909423828125, 0.0164794921875, -0.01202392578125, 0.00170135498046875, -0.0023956298828125, 0.007720947265625, 0.01611328125, 0.03369140625, 0.01153564453125, 0.033447265625, 0.0145263671875, 0.0137939453125, -0.0093994140625, -0.009033203125, 0...
[ 1250, 4867, 38679, 2174, 6626, 5303, 7, 765, 5701, 80854, 40494, 1632, 502, 428, 420, 20, 20697, 124850, 3444, 47, 12765, 1836, 19069, 903, 112892, 1029, 3917 ]
[ 0.1708984375, 0.257568359375, 0.218505859375, 0.110107421875, 0.148681640625, 0.215087890625, 0.07232666015625, 0.074951171875, 0.1689453125, 0.1856689453125, 0.166748046875, 0.073974609375, 0.1212158203125, 0.01544189453125, 0.06036376953125, 0.011322021484375, 0.06689453125, 0.16...
embed
11852226_c0
11852226
prolog
0
Title: Sort a list of cards prolog Problem title: Sort a list of cards prolog Tags: bubble-sort, prolog Problem: Sort a list of cards prolog I have a list of card structures such as: [card(ace, spades), card(10, diamonds), card(king, clubs)] can anyone help me understand how to sort these according to face value? I hav...
Sort a list of cards prolog Sort a list of cards prolog bubble-sort prolog Sort Sort a list of cards prolog I have a list of card structures such as: can anyone help me understand how to sort these according to face value? I have this: which works well (its bubble sort) except when you have card(ace, spades) or alike b...
[ 0.0262451171875, 0.0064697265625, -0.006103515625, -0.0198974609375, -0.0091552734375, -0.01019287109375, -0.0189208984375, -0.004150390625, 0.01153564453125, -0.003570556640625, 0.00311279296875, 0.039794921875, -0.007568359375, -0.01470947265625, -0.00060272216796875, -0.033203125, ...
[ 53666, 10, 5303, 111, 126381, 502, 4867, 373, 73163, 62351, 765, 20596, 45646, 4358, 28219, 3642, 47, 12096, 6097, 59499, 2577, 34292, 903, 43240, 5299, 14481, 40494, 8509, 5623, 988, 5062, 329, 83, 959, 14012 ]
[ 0.2222900390625, 0.0246734619140625, 0.1474609375, 0.07086181640625, 0.220947265625, 0.143310546875, 0.202880859375, 0.0662841796875, 0.18212890625, 0.2000732421875, 0.005096435546875, 0.2080078125, 0.154052734375, 0.010650634765625, 0.0701904296875, 0.03662109375, 0.059295654296875,...
embed
29784941_c0
29784941
prolog
0
Title: Emacs can't load swi-prolog with default prolog-mode? Problem title: Emacs can't load swi-prolog with default prolog-mode? Tags: swi-prolog, prolog, emacs24, emacs Problem: Emacs can't load swi-prolog with default prolog-mode? My Gnu Emacs 24.4 on Win 8 can't seem to work with it's default prolog mode....
Emacs can't load swi-prolog with default prolog-mode? Emacs can't load swi-prolog with default prolog-mode? swi-prolog prolog emacs24 emacs Emacs emacs24 Emacs can't load swi-prolog with default prolog-mode? My Gnu Emacs 24.4 on Win 8 can't seem to work with it's default prolog mode. I have the latest version...
[ 0.026123046875, 0.006927490234375, -0.002288818359375, -0.0081787109375, -0.021240234375, 0.0179443359375, -0.013427734375, 0.01312255859375, -0.002532958984375, -0.023193359375, 0.00750732421875, -0.00121307373046875, -0.01513671875, -0.016357421875, 0.0086669921875, -0.0177001953125,...
[ 85269, 4439, 831, 3768, 18, 72367, 91, 2452, 3454, 4867, 678, 114977, 502, 61170, 352, 2263, 2357, 527, 539, 11585, 617, 17686, 382, 48903, 4488, 13736, 11389, 159, 38969, 1250, 10644, 276, 425, 6002, 86531, 127308, 959, 19048, 9969, 1340...
[ 0.1727294921875, 0.1907958984375, 0.07684326171875, 0.000396728515625, 0.07257080078125, 0.17578125, 0.040771484375, 0.260009765625, 0.1751708984375, 0.225830078125, 0.0287017822265625, 0.1893310546875, 0.1783447265625, 0.127685546875, 0.0675048828125, 0.08935546875, 0.16796875, 0....
embed
74734101_c0
74734101
prolog
0
Title: Using member in swi prolog Problem title: Using member in swi prolog Tags: prolog Problem: Using member in swi prolog I am totaly new to prolog and have just started. I am currently learning about the build in function 'member' that seems simple; however, it returns the opposite of what I would expect it to do. ...
Using member in swi prolog Using member in swi prolog prolog Using Using member in swi prolog I am totaly new to prolog and have just started. I am currently learning about the build in function 'member' that seems simple; however, it returns the opposite of what I would expect it to do. I tried printing the output of ...
[ 0.017333984375, 0.0106201171875, 0.01373291015625, -0.0142822265625, -0.0196533203125, 0.00225830078125, 0.0101318359375, 0.0242919921875, 0.005950927734375, -0.0458984375, 0.0296630859375, -0.01116943359375, 0.008056640625, -0.00119781494140625, 0.0150146484375, -0.0174560546875, -0...
[ 345, 32786, 91, 2452, 502, 4867, 23, 6953, 3525, 52080, 45367, 32354, 39, 27417, 37202, 8781, 30646, 198274, 111, 41206, 2448, 1916, 140992, 41, 1294, 509, 22225, 184, 87599, 112730, 73342, 121742, 3638 ]
[ 0.107421875, 0.32080078125, 0.016082763671875, 0.20068359375, 0.137939453125, 0.209228515625, 0.070556640625, 0.05096435546875, 0.0167083740234375, 0.02044677734375, 0.132080078125, 0.1302490234375, 0.1102294921875, 0.251708984375, 0.012176513671875, 0.09295654296875, 0.1427001953125...
embed
46077052_c1
46077052
prolog
1
: 'Albert Einstein' found: 'Elvis Presley' finished parsing Edit : If we remove the recursive call from between/3, the output changes, and doesn't correspond to what I expect: found: 'Albert Einstein' found: 'Albert Einstein</title></page> <page><title>Elvis Presley' found: 'Elvis Presley' finished parsing Code signals...
: 'Albert Einstein' found: 'Elvis Presley' finished parsing Edit : If we remove the recursive call from between/3, the output changes, and doesn't correspond to what I expect: found: 'Albert Einstein' found: 'Albert Einstein</title></page> <page><title>Elvis Presley' found: 'Elvis Presley' finished parsing Code signals...
[ 0.017822265625, 0.0281982421875, 0.00147247314453125, 0.01202392578125, 0.007110595703125, 0.039306640625, -0.01116943359375, -0.00677490234375, 0.007232666015625, -0.03466796875, 0.02197265625, -0.00677490234375, -0.0211181640625, -0.001434326171875, 0.041259765625, 0.006683349609375,...
[ 152, 242, 6210, 16466, 119225, 14037, 7623, 1824, 20703, 4293, 122799, 366, 6953, 4263, 87388, 195625, 5844, 11782, 1295, 17721, 18113, 70, 140992, 65572, 18, 42518, 41206, 25, 12, 5440, 28864, 26073, 6957, 31501, 238, 1916, 1250, 4867, 724...
[ 0.0235595703125, 0.015594482421875, 0.05712890625, 0.1728515625, 0.295654296875, 0.17822265625, 0.099609375, 0.1923828125, 0.2154541015625, 0.2274169921875, 0.23291015625, 0.24169921875, 0.162109375, 0.0177459716796875, 0.1661376953125, 0.2130126953125, 0.14794921875, 0.23217773437...
embed
11172869_c0
11172869
prolog
0
Title: handle error in prolog Problem title: handle error in prolog Tags: visual-prolog, prolog Problem: handle error in prolog /************************** Assignment Statment Module **************************/ assgnStmnt(Clist) :- Clist = [H|T], id(H), conc(Exp, [';'|AnotherStmnt], T), Exp = [Op|Rem], Op = '=', expr(R...
handle error in prolog handle error in prolog visual-prolog prolog Assignment Statment Module Clist Exp AnotherStmnt Rem handle error in prolog This code is to parse assignment statement in complier. But i need to output to user where's the syntax error in his code. like : if he entered : x = x + 1, I want to output th...
[ 0.01708984375, 0.01177978515625, -0.01025390625, 0.021240234375, -0.01507568359375, 0.0017547607421875, 0.004150390625, -0.00186920166015625, 0.00927734375, -0.0167236328125, -0.0029144287109375, -0.004241943359375, 0.0106201171875, -0.00732421875, 0.007171630859375, 0.006866455078125,...
[ 34831, 18499, 502, 4867, 21176, 3454, 31304, 23888, 674, 63014, 6562, 60075, 116267, 38645, 23, 18151, 366, 184, 95486, 63805, 9969, 56786, 3871, 140992, 47, 38937, 7440, 6002, 86531, 1919, 764, 30957, 1022, 2203, 997, 106, 3444, 84751, 74,...
[ 0.2161865234375, 0.2318115234375, 0.1385498046875, 0.236328125, 0.154541015625, 0.08660888671875, 0.182861328125, 0.1187744140625, 0.06964111328125, 0.12255859375, 0.1197509765625, 0.1043701171875, 0.05889892578125, 0.150146484375, 0.0009765625, 0.142822265625, 0.0858154296875, 0.0...
embed
30304004_c0
30304004
prolog
0
Title: Is one serie of constraints a subset of the other? Problem title: Is one serie of constraints a subset of the other? Tags: subset, constraints, prolog Problem: Is one serie of constraints a subset of the other? I have two series of constraints S and S', they describe possibly infinitely large sets. Say for examp...
Is one serie of constraints a subset of the other? Is one serie of constraints a subset of the other? subset constraints prolog Is one serie of constraints a subset of the other? I have two series of constraints S and S', they describe possibly infinitely large sets. Say for example S : x <= 10 and y <= x and S' : x <=...
[ 0.01031494140625, -0.0128173828125, 0.010009765625, 0.0279541015625, -0.0181884765625, -0.006317138671875, -0.0218505859375, -0.00946044921875, 0.01312255859375, -0.00872802734375, -0.0098876953125, 0.038330078125, -0.00421142578125, -0.007781982421875, 0.0091552734375, 0.00927734375, ...
[ 2071, 1632, 6432, 111, 158, 2816, 4288, 10, 1614, 3509, 3789, 7, 502, 4867, 6626, 36549, 159, 136, 25, 98363, 144681, 54241, 21334, 5423, 1022, 209, 113, 387, 47, 3714, 2174, 83, 87, 86869, 959, 294, 7413, 29806, 3884, 215543, 706, 34...
[ 0.04693603515625, 0.0921630859375, 0.2176513671875, 0.0950927734375, 0.1131591796875, 0.185791015625, 0.1566162109375, 0.06060791015625, 0.1939697265625, 0.229248046875, 0.095458984375, 0.0172271728515625, 0.1182861328125, 0.1688232421875, 0.07598876953125, 0.1688232421875, 0.1390380...
embed
42457410_c0
42457410
prolog
0
Title: How to express the allDifferent/6 predicate? Problem title: How to express the allDifferent/6 predicate? Tags: prolog-dif, prolog Problem: How to express the allDifferent/6 predicate? Let allDifferent(A, B, C, D, E, F) be true if and only if ∀ i , j in {1, 2, 3, 4, 5, 6}, the i -th and j -th arguments unify if a...
How to express the allDifferent/6 predicate? How to express the allDifferent/6 predicate? prolog-dif prolog How How to express the allDifferent/6 predicate? Let allDifferent(A, B, C, D, E, F) be true if and only if ∀ i , j in {1, 2, 3, 4, 5, 6}, the i -th and j -th arguments unify if and only if i = j . Thus allDiffere...
[ 0.0172119140625, -0.00628662109375, 0.01531982421875, 0.0028839111328125, -0.010498046875, -0.016845703125, -0.0162353515625, -0.0035247802734375, 0.004058837890625, 0.0002918243408203125, 0.0218505859375, 0.0078125, 0.0140380859375, 0.0040283203125, 0.005645751953125, 0.00750732421875...
[ 11249, 36510, 756, 14055, 18234, 2517, 20155, 1653, 2063, 67, 47, 502, 4867, 428, 420, 10842, 284, 335, 313, 391, 241, 563, 186, 29568, 2174, 4734, 165304, 17, 1647, 116, 138, 201, 190, 305, 927, 136, 10750, 51, 40383, 2203, 86827, 77...
[ 0.0914306640625, 0.217041015625, 0.187255859375, 0.150146484375, 0.254638671875, 0.1824951171875, 0.263916015625, 0.1934814453125, 0.2261962890625, 0.12939453125, 0.006317138671875, 0.0987548828125, 0.2242431640625, 0.031158447265625, 0.0831298828125, 0.03662109375, 0.0638427734375, ...
embed
33704079_c0
33704079
prolog
0
Title: map two lists together in prolog Problem title: map two lists together in prolog Tags: permutation, prolog, list Problem: map two lists together in prolog I have two facts which are x(a, b, c) and g(x, y, z). I want to create a rule to print all possible answers such that if I pick one member from the first fact...
map two lists together in prolog map two lists together in prolog permutation prolog list map two lists together in prolog I have two facts which are x(a, b, c) and g(x, y, z). I want to create a rule to print all possible answers such that if I pick one member from the first fact and match it with a member from the se...
[ 0.006927490234375, 0.01007080078125, 0.0079345703125, 0.0059814453125, -0.0198974609375, 0.0267333984375, -0.01708984375, 0.012939453125, 0.0224609375, -0.0157470703125, 0.011962890625, -0.00116729736328125, 0.017822265625, -0.00640869140625, -0.011474609375, 0.00144195556640625, -0....
[ 22288, 6626, 5303, 25842, 502, 4867, 7, 23, 117, 561, 22062, 15824, 1022, 11, 876, 501, 706, 425, 113, 97, 3444, 28282, 10, 79986, 28412, 756, 7722, 35166, 39580, 1632, 32786, 5117, 14858, 17932, 831, 18, 5701, 8108, 275, 621, 959, 21...
[ 0.2418212890625, 0.1658935546875, 0.2498779296875, 0.21044921875, 0.1788330078125, 0.255859375, 0.0229339599609375, 0.035308837890625, 0.056640625, 0.1573486328125, 0.043304443359375, 0.142578125, 0.0689697265625, 0.0211334228515625, 0.06829833984375, 0.047760009765625, 0.08709716796...
embed
60031359_c0
60031359
prolog
0
Title: Expanding Prolog clauses without parameters Problem title: Expanding Prolog clauses without parameters Tags: swi-prolog, prolog, prolog-toplevel Problem: Expanding Prolog clauses without parameters I am writing a program that transforms other programs by expanding predicates. I usually do this using clause/2, bu...
Expanding Prolog clauses without parameters Expanding Prolog clauses without parameters swi-prolog prolog prolog-toplevel Expanding Prolog set_prolog_flag double_quotes Expanding Prolog clauses without parameters I am writing a program that transforms other programs by expanding predicates. I usually do this using clau...
[ 0.022705078125, 0.0152587890625, 0.003570556640625, 0.037109375, -0.01483154296875, 0.0159912109375, 0.028076171875, -0.0067138671875, 0.00506591796875, -0.0146484375, 0.0078125, 0.0068359375, -0.039306640625, -0.0098876953125, 0.004974365234375, 0.0030517578125, 0.020263671875, 0....
[ 60075, 11, 33770, 1250, 4867, 70731, 15490, 171859, 90, 2452, 3454, 502, 13784, 67919, 5423, 190872, 41929, 68726, 32562, 1528, 27198, 103391, 71062, 1653, 2063, 17368, 13, 12477, 11343, 110, 7722, 1636, 765 ]
[ 0.0853271484375, 0.10565185546875, 0.071044921875, 0.1329345703125, 0.20751953125, 0.2003173828125, 0.09307861328125, 0.1943359375, 0.041229248046875, 0.0968017578125, 0.0950927734375, 0.0943603515625, 0.0484619140625, 0.1234130859375, 0.079833984375, 0.1519775390625, 0.0347595214843...
embed
65593745_c0
65593745
prolog
0
Title: Excluding even numbers in Prolog Problem title: Excluding even numbers in Prolog Tags: logic, prolog Problem: Excluding even numbers in Prolog Let L be a numerical list and consider the following Prolog definition for a predicate g(list,list) with the flow model (input,output): g([],[]). g([H|T],[H|S]):- g(T,S)....
Excluding even numbers in Prolog Excluding even numbers in Prolog logic prolog Excluding Prolog Excluding even numbers in Prolog Let L be a numerical list and consider the following Prolog definition for a predicate g(list,list) with the flow model (input,output): Give the result of the following goal: g([1,2,3],L). Ju...
[ -0.00927734375, 0.033203125, 0.003692626953125, -0.0113525390625, 0.007354736328125, 0.0272216796875, -0.00439453125, 0.006378173828125, 0.00640869140625, 0.0059814453125, 0.0023651123046875, -0.0272216796875, -0.0059814453125, 0.0029449462890625, 0.0177001953125, 0.033447265625, 0.0...
[ 110823, 822, 3853, 101935, 1250, 4867, 62775, 502, 23, 339, 54744, 5303, 80934, 1653, 2063, 67, 706, 6562, 86608, 3299, 16750, 69236, 133063, 96386, 866, 9563, 40383, 35166, 51592, 1221, 68252, 155761, 60899, 4734, 17932, 32845, 142, 6488, ...
[ 0.0826416015625, 0.1131591796875, 0.227783203125, 0.217041015625, 0.194091796875, 0.2646484375, 0.10015869140625, 0.1141357421875, 0.015960693359375, 0.04254150390625, 0.087646484375, 0.1461181640625, 0.083740234375, 0.10400390625, 0.15380859375, 0.00421142578125, 0.087646484375, 0...
embed
14945623_c0
14945623
prolog
0
Title: Prolog if/else statement with &quot;or&quot; condition Problem title: Prolog if/else statement with &quot;or&quot; condition Tags: prolog, if-statement Problem: Prolog if/else statement with "or" condition I'm new to Prolog, and I'm trying to write an if/else statement with an "or" condition. So to demonstrate, ...
Prolog if/else statement with &quot;or&quot; condition Prolog if/else statement with &quot;or&quot; condition prolog if-statement Prolog Prolog if/else statement with "or" condition I'm new to Prolog, and I'm trying to write an if/else statement with an "or" condition. So to demonstrate, I want something like: This imp...
[ 0.02880859375, 0.0142822265625, 0.008056640625, 0.00116729736328125, 0.00665283203125, 0.0128173828125, -0.00958251953125, 0.01507568359375, -0.006011962890625, 0.0079345703125, 0.00909423828125, -0.02197265625, -0.017578125, -0.006988525390625, 0.006195068359375, 0.0096435546875, 0....
[ 1250, 4867, 2174, 64, 5557, 63805, 678, 41502, 748, 35431, 502, 61340, 3525, 31577, 33022, 106804, 3444, 1884, 3293, 208124, 22027, 18, 4488, 49903, 162520, 3917, 959, 20949 ]
[ 0.1478271484375, 0.241455078125, 0.18408203125, 0.1202392578125, 0.177978515625, 0.2197265625, 0.0804443359375, 0.062164306640625, 0.234619140625, 0.229736328125, 0.1241455078125, 0.16455078125, 0.040283203125, 0.054168701171875, 0.1041259765625, 0.1077880859375, 0.08349609375, 0.0...
embed
17110071_c0
17110071
prolog
0
Title: Prolog: Related predicates with permuted arguments Problem title: Prolog: Related predicates with permuted arguments Tags: prolog Problem: Prolog: Related predicates with permuted arguments Is there a way to declare the following in Prolog without being caught in an endless recursion? left([X,Y], Z) :- left([Z,X...
Prolog: Related predicates with permuted arguments Prolog: Related predicates with permuted arguments prolog Prolog Related Prolog: Related predicates with permuted arguments Is there a way to declare the following in Prolog without being caught in an endless recursion? The semantics is that the list represents a vecto...
[ -0.016845703125, 0.01544189453125, 0.0036468505859375, 0.000820159912109375, -0.011962890625, 0.0086669921875, -0.0167236328125, -0.004730224609375, 0.01165771484375, -0.02587890625, 0.0078125, 0.0225830078125, -0.0157470703125, 0.01141357421875, 0.0067138671875, 0.0108642578125, 0.0...
[ 1250, 4867, 148641, 1653, 2063, 678, 117, 561, 10750, 502, 3674, 3917, 47, 159978, 25632, 23, 15490, 156892, 3564, 9393, 195625, 1830, 484, 109109, 5303, 33636, 173, 18770, 34475, 6626, 26847, 17932, 50960, 6275, 16500, 214, 25737, 62548, 8...
[ 0.175048828125, 0.25390625, 0.140869140625, 0.1192626953125, 0.116455078125, 0.00579833984375, 0.033538818359375, 0.1373291015625, 0.240234375, 0.0902099609375, 0.0236968994140625, 0.0655517578125, 0.01239013671875, 0.2015380859375, 0.1248779296875, 0.0191650390625, 0.08392333984375,...
embed
47801828_c0
47801828
prolog
0
Title: Prolog returns numbers instead of words Problem title: Prolog returns numbers instead of words Tags: free-variable, prolog Problem: Prolog returns numbers instead of words I'm trying to get a value returned through the variable A such as loves , however I'm getting a result like _382 instead. Here's the query: ?...
Prolog returns numbers instead of words Prolog returns numbers instead of words free-variable prolog Prolog _382 Result _628 Prolog returns numbers instead of words I'm trying to get a value returned through the variable A such as loves , however I'm getting a result like _382 instead. Here's the query: ?- checksyn(lik...
[ -0.0029144287109375, 0.0166015625, -0.00494384765625, 0.017578125, 0.00016689300537109375, 0.02392578125, 0.00885009765625, 0.007080078125, 0.01361083984375, -0.0257568359375, 0.00250244140625, -0.00946044921875, -0.0025482177734375, 0.01220703125, 0.009765625, 0.00946044921875, 0.00...
[ 1250, 4867, 30646, 101935, 64457, 111, 34153, 7, 4092, 21690, 2886, 502, 10991, 304, 126684, 910, 3882, 31577, 2046, 34292, 176377, 8305, 77336, 62, 5161, 16750, 1884, 41, 1294, 705, 12765, 12654, 5062, 4332, 7136, 2806, 3444, 128239, 18151...
[ 0.198974609375, 0.2802734375, 0.1954345703125, 0.1976318359375, 0.1749267578125, 0.08660888671875, 0.1910400390625, 0.113037109375, 0.1187744140625, 0.1485595703125, 0.0482177734375, 0.1590576171875, 0.1514892578125, 0.149658203125, 0.252197265625, 0.077880859375, 0.2254638671875, ...
embed
23445954_c0
23445954
prolog
0
Title: Basic prolog issue with syntax of statement Problem title: Basic prolog issue with syntax of statement Tags: prolog Problem: Basic prolog issue with syntax of statement I'm sort of a beginner to Prolog and I have a quick question. I've written a sister_of/2 predicate that goes like this: sister_of(X, Y) :- femal...
Basic prolog issue with syntax of statement Basic prolog issue with syntax of statement prolog Basic sister_of Basic prolog issue with syntax of statement I'm sort of a beginner to Prolog and I have a quick question. I've written a sister_of/2 predicate that goes like this: I read this as X is a sister of Y if X is a f...
[ 0.017578125, -0.0081787109375, -0.010009765625, -0.002960205078125, -0.0277099609375, -0.005218505859375, -0.0017547607421875, -0.008544921875, 0.0172119140625, -0.039306640625, -0.00110626220703125, 0.0047607421875, -0.00154876708984375, -0.0106201171875, 0.0224609375, 0.0025329589843...
[ 91692, 502, 4867, 31089, 678, 6002, 86531, 111, 63805, 114015, 4390, 1679, 1250, 63773, 59121, 12477, 1653, 2063, 67, 60899, 1884, 903, 12301, 237, 1193, 83, 10, 990, 2174, 117776, 136, 27863, 567, 601, 5701, 959, 3445, 51042, 8110, 186, ...
[ 0.1527099609375, 0.1322021484375, 0.189697265625, 0.1309814453125, 0.038421630859375, 0.08245849609375, 0.1676025390625, 0.1346435546875, 0.2105712890625, 0.212646484375, 0.183837890625, 0.02423095703125, 0.114501953125, 0.0013427734375, 0.049560546875, 0.202392578125, 0.112915039062...
embed
26970872_c1
26970872
prolog
1
of how it works, but I'm really not sure on the specifics I understand defining the hints as a list of atoms with the first field being first name, second field being last name, and third field being age with underscores showing missing information. However I'm not really sure why this is being called with member onto...
of how it works, but I'm really not sure on the specifics I understand defining the hints as a list of atoms with the first field being first name, second field being last name, and third field being age with underscores showing missing information. However I'm not really sure why this is being called with member onto...
[ 0.0125732421875, 0.002532958984375, 0.00732421875, 0.0142822265625, -0.02392578125, 0.000736236572265625, 0.01397705078125, 0.00897216796875, 0.00179290771484375, 0.006683349609375, 0.0167236328125, 0.00640869140625, 0.03369140625, 0.0281982421875, -0.000606536865234375, -0.00300598144...
[ 111, 3642, 442, 43240, 4, 25, 9077, 29458, 28219, 13204, 449, 70, 5122, 933, 237, 5303, 34627, 7, 5117, 44457, 9351, 17932, 4568, 50960, 32070, 1379, 12064, 141377, 132283, 4677, 15400, 903, 35839, 678, 32786, 188, 6678, 10298, 53, 14602,...
[ 0.001190185546875, 0.080078125, 0.1279296875, 0.1470947265625, 0.031097412109375, 0.009674072265625, 0.055419921875, 0.0369873046875, 0.0662841796875, 0.07366943359375, 0.0276336669921875, 0.045196533203125, 0.234375, 0.209716796875, 0.01129150390625, 0.10015869140625, 0.180908203125...
embed
39549238_c0
39549238
prolog
0
Title: How to reverse a list and join two lists together in prolog Problem title: How to reverse a list and join two lists together in prolog Tags: reverse, prolog, list, append Problem: How to reverse a list and join two lists together in prolog I need to write a program in prolog that accepts a list, reverses that li...
How to reverse a list and join two lists together in prolog How to reverse a list and join two lists together in prolog reverse prolog list append How list_rList RevT How to reverse a list and join two lists together in prolog I need to write a program in prolog that accepts a list, reverses that list and the appends t...
[ 0.005615234375, 0.02294921875, 0.003143310546875, 0.0194091796875, -0.0191650390625, 0.0223388671875, 0.0028076171875, 0.03125, 0.02490234375, -0.022705078125, 0.0242919921875, 0.0069580078125, -0.0068359375, 0.0015411376953125, 0.006256103515625, 0.008544921875, 0.0322265625, 0.01...
[ 11249, 39531, 184, 5303, 136, 33284, 6626, 25842, 23, 502, 4867, 114689, 71, 42, 154663, 80893, 618, 3871, 33022, 1528, 26946, 5908, 3564, 7311, 133063, 96386, 1542, 1193, 363, 111240, 47, 765 ]
[ 0.066650390625, 0.217041015625, 0.1953125, 0.228759765625, 0.042999267578125, 0.19677734375, 0.1175537109375, 0.1749267578125, 0.033599853515625, 0.150634765625, 0.2354736328125, 0.1065673828125, 0.06512451171875, 0.05694580078125, 0.2410888671875, 0.1131591796875, 0.115966796875, ...
embed
34361026_c0
34361026
prolog
0
Title: Define a transitive relation over facts Problem title: Define a transitive relation over facts Tags: prolog, transitive-closure Problem: Define a transitive relation over facts I am new to Prolog and trying to learn it. I want to achieve something like a>b and b>c then a>c which is Transitive relation. I have a ...
Define a transitive relation over facts Define a transitive relation over facts prolog transitive-closure Define Define a transitive relation over facts I am new to Prolog and trying to learn it. I want to achieve something like a>b and b>c then a>c which is Transitive relation. I have a set of following rules. We know...
[ 0.006378173828125, -0.005645751953125, 0.0025634765625, 0.01409912109375, -0.010498046875, -0.0267333984375, -0.00750732421875, 0.0072021484375, 0.0201416015625, 0.000553131103515625, 0.006378173828125, 0.0272216796875, -0.01373291015625, -0.0069580078125, 0.0166015625, 0.016357421875,...
[ 262, 64552, 10, 62621, 5844, 41911, 645, 15824, 502, 4867, 170224, 7, 3525, 1250, 3444, 69307, 2740, 275, 136, 876, 238, 162774, 25632, 91736, 3714, 3163, 68743, 18, 83, 167785, 3501, 14994, 4527, 164917, 1236, 1018, 5608, 30646, 29568, 7...
[ 0.056365966796875, 0.172119140625, 0.059417724609375, 0.2193603515625, 0.194580078125, 0.2261962890625, 0.1566162109375, 0.18115234375, 0.1248779296875, 0.216064453125, 0.20166015625, 0.0592041015625, 0.002777099609375, 0.1199951171875, 0.0582275390625, 0.09381103515625, 0.0609130859...
embed
22349991_c0
22349991
prolog
0
Title: How can I build a qa system to answer yes or no Problem title: How can I build a qa system to answer yes or no Tags: prolog, python, nlp-question-answering, nlp, nltk Problem: How can I build a qa system to answer yes or no I would like to build a question answering system that it can answer only yes or no . Sup...
How can I build a qa system to answer yes or no How can I build a qa system to answer yes or no prolog python nlp-question-answering nlp nltk How How can I build a qa system to answer yes or no I would like to build a question answering system that it can answer only yes or no . Suppose that I have got a question and a...
[ 0.00506591796875, 0.0233154296875, 0.0164794921875, 0.017333984375, -0.0001506805419921875, 0.0289306640625, 0.0111083984375, 0.0201416015625, -0.005828857421875, -0.037353515625, 0.003448486328125, 0.0208740234375, -0.01611328125, -0.01318359375, 0.00445556640625, 0.00567626953125, ...
[ 11249, 831, 45367, 10, 12694, 5426, 47, 35166, 72272, 707, 110, 87, 502, 4867, 17198, 50828, 26775, 7162, 1363, 10133, 144784, 1277, 92, 1884, 9655, 214, 4734, 4163, 7986, 11435, 39495, 93, 58134, 5809, 62163, 136, 107730, 125663, 237, 64...
[ 0.055755615234375, 0.07391357421875, 0.1954345703125, 0.0947265625, 0.233642578125, 0.22216796875, 0.0802001953125, 0.1832275390625, 0.1595458984375, 0.119140625, 0.167724609375, 0.005889892578125, 0.0806884765625, 0.1776123046875, 0.031707763671875, 0.12109375, 0.147216796875, 0.0...
embed
53887198_c1
53887198
prolog
1
8, in <module> (_path, SWI_HOME_DIR) = _findSwipl() File "C:\Users\Coregame\PycharmProjects\Project1\venv\lib\site-packages\pyswip\core.py", line 411, in _findSwipl (path, swiHome) = _findSwiplWin() File "C:\Users\Coregame\PycharmProjects\Project1\venv\lib\site-packages\pyswip\core.py", line 208, in _findSwiplWin match...
8, in <module> (_path, SWI_HOME_DIR) = _findSwipl() File "C:\Users\Coregame\PycharmProjects\Project1\venv\lib\site-packages\pyswip\core.py", line 411, in _findSwipl (path, swiHome) = _findSwiplWin() File "C:\Users\Coregame\PycharmProjects\Project1\venv\lib\site-packages\pyswip\core.py", line 208, in _findSwiplWin match...
[ -0.003692626953125, 0.005035400390625, -0.01025390625, 0.0233154296875, -0.045654296875, 0.006195068359375, -0.00457763671875, -0.0067138671875, -0.01434326171875, -0.010498046875, 0.0167236328125, -0.000843048095703125, -0.00177764892578125, -0.01031494140625, 0.0267333984375, -0.0032...
[ 382, 23, 83279, 13, 128405, 38969, 841, 91245, 123237, 111607, 294, 2452, 2424, 42724, 50886, 35311, 4652, 56859, 223353, 418, 1353, 334, 5612, 11090, 29102, 6493, 7, 254, 30854, 13315, 201, 1662, 91, 55376, 92049, 94236, 14858, 103510, 987...
[ 0.1285400390625, 0.010711669921875, 0.150634765625, 0.011566162109375, 0.1544189453125, 0.176513671875, 0.08819580078125, 0.137939453125, 0.1195068359375, 0.1583251953125, 0.0421142578125, 0.217529296875, 0.2734375, 0.186767578125, 0.0256500244140625, 0.1396484375, 0.023529052734375,...
embed
71551745_c0
71551745
prolog
0
Title: Prolog, predicate returns the correct result, but also false? Problem title: Prolog, predicate returns the correct result, but also false? Tags: prolog, prolog-toplevel Problem: Prolog, predicate returns the correct result, but also false? I found that for most of my predicates, prolog finds multiple solutions, ...
Prolog, predicate returns the correct result, but also false? Prolog, predicate returns the correct result, but also false? prolog prolog-toplevel Prolog More Prolog, predicate returns the correct result, but also false? I found that for most of my predicates, prolog finds multiple solutions, with one of them being the...
[ 0.0220947265625, 0.01141357421875, 0.01904296875, -0.01104736328125, -0.0142822265625, 0.0177001953125, 0.015380859375, -0.0107421875, -0.0185546875, -0.0152587890625, 0.01318359375, -0.001251220703125, 0.0022430419921875, 0.004486083984375, -0.004913330078125, -0.00543212890625, 0.0...
[ 1250, 4867, 1653, 2063, 67, 30646, 26785, 16750, 2843, 98320, 1284, 502, 13784, 67919, 5455, 2684, 7413, 48716, 51347, 3789, 8710, 8, 15477, 17957, 51042, 903, 76199, 73342, 15400, 68772, 184, 66044, 30022 ]
[ 0.1689453125, 0.256591796875, 0.1746826171875, 0.2037353515625, 0.1129150390625, 0.1429443359375, 0.14697265625, 0.156494140625, 0.0478515625, 0.2274169921875, 0.048980712890625, 0.1287841796875, 0.0300140380859375, 0.105224609375, 0.0173187255859375, 0.03887939453125, 0.063659667968...
embed
28760373_c0
28760373
prolog
0
Title: Compiling prolog codes with CHR embedded Problem title: Compiling prolog codes with CHR embedded Tags: chr, prolog Problem: Compiling prolog codes with CHR embedded I have read the user guide for CHRG and I'm having trouble getting my prolog files to work when chrg is embedded. I keep having syntax errors despit...
Compiling prolog codes with CHR embedded Compiling prolog codes with CHR embedded chr prolog Compiling CHR Compiling prolog codes with CHR embedded I have read the user guide for CHRG and I'm having trouble getting my prolog files to work when chrg is embedded. I keep having syntax errors despite following the manual.I...
[ -0.00787353515625, -0.003173828125, 0.02001953125, 0.006988525390625, 0.004730224609375, 0.032958984375, -0.01165771484375, -0.01446533203125, -0.00439453125, -0.04248046875, -0.0101318359375, -0.011962890625, -0.0157470703125, 0.0245361328125, 0.0289306640625, -0.0037384033203125, -...
[ 15612, 49725, 502, 4867, 18151, 678, 313, 29562, 55720, 17656, 69819, 38937, 14045, 48802, 63134, 102158, 4488, 177, 13695, 6002, 86531, 18499, 23009, 17368, 38969, 2289, 156960, 37842, 102198, 57765, 1250, 1398, 48400, 22759, 31344, 20600, 588...
[ 0.142578125, 0.0888671875, 0.1409912109375, 0.1817626953125, 0.1923828125, 0.0955810546875, 0.0206756591796875, 0.2071533203125, 0.1502685546875, 0.140625, 0.09765625, 0.0218963623046875, 0.03924560546875, 0.154296875, 0.059844970703125, 0.07757568359375, 0.044647216796875, 0.15698...
embed
13651942_c0
13651942
prolog
0
Title: how to prevent no in prolog? Problem title: how to prevent no in prolog? Tags: recursion, prolog, prolog-cut, lambda Problem: how to prevent no in prolog? Prolog, recursive function: i want it to print the C with each element of the list for example: C=30 and [H|T]= [-9,-10,-30] myfunc(C,[H|T]):- (\+([H|T]=[])),...
how to prevent no in prolog? how to prevent no in prolog? recursion prolog prolog-cut lambda how to prevent no in prolog? Prolog, recursive function: i want it to print the C with each element of the list for example: C=30 and [H|T]= [-9,-10,-30] i check at the beginning that the head of the list is not empty. it gives...
[ -0.01226806640625, 0.00762939453125, 0.002288818359375, -0.0021514892578125, -0.00506591796875, 0.0093994140625, 0.018310546875, 0.015380859375, 0.011474609375, -0.01904296875, -0.00830078125, -0.023681640625, -0.0220947265625, -0.00007152557373046875, 0.0196533203125, -0.0007209777832...
[ 3642, 47, 56282, 110, 23, 502, 4867, 195625, 1830, 19774, 6492, 85, 1250, 5844, 32354, 3444, 28412, 313, 678, 12638, 12830, 5303, 1197, 841, 618, 15205, 9193, 27000, 12765, 86595, 10336, 959, 201505, 140992, 13319, 157, 3564, 49129, 35782, ...
[ 0.068603515625, 0.0268707275390625, 0.2384033203125, 0.2066650390625, 0.078369140625, 0.172607421875, 0.2430419921875, 0.17236328125, 0.022247314453125, 0.0867919921875, 0.1029052734375, 0.067138671875, 0.1370849609375, 0.09478759765625, 0.112060546875, 0.0552978515625, 0.15173339843...
embed
8843897_c0
8843897
prolog
0
Title: how to handle prolog lists? Problem title: how to handle prolog lists? Tags: prolog-toplevel, prolog Problem: how to handle prolog lists? I have the predicate m(L,L) and I want it to return the list that it takes. The code is this : m([],[]). m([H|T],[H|L]) :- m(T,L). When I try to use it with this example : m([...
how to handle prolog lists? how to handle prolog lists? prolog-toplevel prolog how to handle prolog lists? I have the predicate m(L,L) and I want it to return the list that it takes. The code is this : When I try to use it with this example : I get this as an answer : (I noticed that if I try it with less elements its ...
[ 0.0128173828125, 0.01312255859375, 0.00084686279296875, -0.009765625, -0.01513671875, 0.0166015625, -0.0045166015625, 0.000514984130859375, 0.01116943359375, -0.057373046875, 0.02490234375, -0.00604248046875, -0.00153350830078125, 0.002655029296875, 0.0164794921875, 0.00714111328125, ...
[ 3642, 47, 34831, 502, 4867, 5303, 7, 13784, 67919, 1653, 2063, 67, 347, 866, 4, 3444, 30646, 51776, 18151, 9790, 4527, 27781, 35166, 156672, 678, 40715, 80854, 6863, 3664, 15400, 123087, 51, 48310, 67175, 71864, 110833, 209806 ]
[ 0.07086181640625, 0.057098388671875, 0.214599609375, 0.1976318359375, 0.266357421875, 0.2410888671875, 0.087646484375, 0.0528564453125, 0.1365966796875, 0.1209716796875, 0.1485595703125, 0.041900634765625, 0.1156005859375, 0.12109375, 0.005859375, 0.0238189697265625, 0.126953125, 0...
embed
23039916_c0
23039916
prolog
0
Title: Prolog: Display each element of each sublist Problem title: Prolog: Display each element of each sublist Tags: prolog Problem: Prolog: Display each element of each sublist I have a large list of smaller sublists like: [ [005,Chester,100],[001,Bob,99],[002,Andy,77] ] I'm trying to make a display "function" that l...
Prolog: Display each element of each sublist Prolog: Display each element of each sublist prolog Prolog Display Chester Bob Andy No.1 Name Grade No.2 No.3 Prolog: Display each element of each sublist I have a large list of smaller sublists like: I'm trying to make a display "function" that loops through the entire list...
[ 0.0341796875, 0.003936767578125, 0.000579833984375, 0.004547119140625, 0.002777099609375, 0.0279541015625, 0.00421142578125, 0.0120849609375, 0.0030517578125, 0.005584716796875, 0.006683349609375, -0.02001953125, -0.0228271484375, 0.0023193359375, -0.00848388671875, 0.0027923583984375,...
[ 1250, 4867, 90045, 12638, 12830, 1614, 6562, 502, 5024, 1515, 25027, 99455, 438, 418, 15757, 22453, 13, 304, 363, 765, 21334, 5303, 164917, 31577, 44116, 137175, 40956, 8305, 64194, 1884, 47644, 23, 83, 7941, 20174, 1284, 237875, 195625, 58...
[ 0.197509765625, 0.264892578125, 0.1953125, 0.1478271484375, 0.184814453125, 0.224853515625, 0.2310791015625, 0.159423828125, 0.1162109375, 0.172119140625, 0.1275634765625, 0.1807861328125, 0.05322265625, 0.07061767578125, 0.10986328125, 0.15625, 0.008392333984375, 0.007232666015625...
embed
1153157_c0
1153157
prolog
0
Title: Need to learn Prolog, Haskell for a C# programmer Problem title: Need to learn Prolog, Haskell for a C# programmer Tags: prolog, haskell, c%23 Problem: Need to learn Prolog, Haskell for a C# programmer I am a C# programmer, and after going through some wonderful discussions regarding functional programming and d...
Need to learn Prolog, Haskell for a C# programmer Need to learn Prolog, Haskell for a C# programmer prolog haskell c%23 Need Prolog Haskell Need to learn Prolog, Haskell for a C# programmer I am a C# programmer, and after going through some wonderful discussions regarding functional programming and declarative programm...
[ 0.023193359375, 0.006378173828125, 0.008544921875, 0.007415771484375, -0.00051116943359375, 0.0177001953125, -0.030517578125, -0.0074462890625, 0.006988525390625, -0.0400390625, 0.0012969970703125, -0.027587890625, -0.003448486328125, 0.00885009765625, -0.00567626953125, 0.001861572265...
[ 52889, 47, 30698, 1250, 4867, 4, 20625, 142508, 100, 10, 313, 4904, 77848, 502, 1556, 501, 3742, 444, 58867, 35107, 123309, 56037, 21635, 12319, 87, 959, 4127, 15044, 47644, 72134, 52080, 136, 42459, 3820, 1544, 83259, 563, 30482, 10422, ...
[ 0.1275634765625, 0.0231170654296875, 0.1318359375, 0.1641845703125, 0.2393798828125, 0.0252685546875, 0.171630859375, 0.262939453125, 0.07275390625, 0.0183868408203125, 0.05029296875, 0.17822265625, 0.1634521484375, 0.138427734375, 0.1732177734375, 0.008819580078125, 0.04086303710937...
embed
34463248_c0
34463248
prolog
0
Title: Why does SWI-Prolog only give me the first answer? Problem title: Why does SWI-Prolog only give me the first answer? Tags: prolog, prolog-toplevel Problem: Why does SWI-Prolog only give me the first answer? I'm new to Prolog. I'm just trying simple examples to learn. I have this .pl file with these lines: parent...
Why does SWI-Prolog only give me the first answer? Why does SWI-Prolog only give me the first answer? prolog prolog-toplevel Why SWI-Prolog Why does SWI-Prolog only give me the first answer? I'm new to Prolog. I'm just trying simple examples to learn. I have this .pl file with these lines: After consulting and testing,...
[ 0.01129150390625, 0.00787353515625, 0.00750732421875, 0.014892578125, -0.019287109375, 0.01129150390625, 0.0033721923828125, -0.0010223388671875, -0.0113525390625, -0.024169921875, -0.00567626953125, -0.015380859375, -0.00701904296875, 0.02734375, 0.009521484375, -0.020263671875, 0.0...
[ 44084, 14602, 159, 38969, 9, 10752, 4867, 4734, 8337, 163, 70, 5117, 35166, 502, 13784, 67919, 1250, 27781, 30698, 2424, 11435, 24372, 75463, 134234, 45831, 134598, 162515, 40407, 41911, 49129, 6528, 2967 ]
[ 0.1029052734375, 0.00823974609375, 0.06854248046875, 0.2294921875, 0.045989990234375, 0.1434326171875, 0.2041015625, 0.132568359375, 0.078125, 0.057342529296875, 0.006744384765625, 0.16650390625, 0.222900390625, 0.08392333984375, 0.064697265625, 0.1436767578125, 0.1207275390625, 0....
embed
64835219_c0
64835219
prolog
0
Title: How to remove an element from a multiway tree in Prolog Problem title: How to remove an element from a multiway tree in Prolog Tags: prolog, tree Problem: How to remove an element from a multiway tree in Prolog My friends and I are quite struggling with this task. In any other language this would be easy. We tri...
How to remove an element from a multiway tree in Prolog How to remove an element from a multiway tree in Prolog prolog tree a How Prolog How to remove an element from a multiway tree in Prolog My friends and I are quite struggling with this task. In any other language this would be easy. We tried converting the tree in...
[ 0.00982666015625, 0.03466796875, -0.00390625, 0.00396728515625, -0.0106201171875, 0.0208740234375, -0.0244140625, -0.009521484375, -0.00927734375, -0.0478515625, 0.00274658203125, -0.00970458984375, -0.01373291015625, 0.01312255859375, 0.01385498046875, -0.0028076171875, 0.029296875,...
[ 11249, 87388, 12830, 1295, 6024, 7514, 53201, 1250, 4867, 502, 23, 23902, 237875, 66211, 46876, 23468, 96760, 5303, 33976, 45367, 47, 2831, 29786, 3642, 225876, 51347 ]
[ 0.08087158203125, 0.1929931640625, 0.1995849609375, 0.1087646484375, 0.1607666015625, 0.2003173828125, 0.2325439453125, 0.1375732421875, 0.2191162109375, 0.09478759765625, 0.008331298828125, 0.0150604248046875, 0.040679931640625, 0.001953125, 0.048980712890625, 0.034881591796875, 0.0...
embed
65222113_c0
65222113
prolog
0
Title: Prolog reverse front members of a list Problem title: Prolog reverse front members of a list Tags: reverse, prolog, list Problem: Prolog reverse front members of a list In Prolog i have to reverse a part of a List given the number (member of the list) until which the list is reversed. For example: ?- reverse_fro...
Prolog reverse front members of a list Prolog reverse front members of a list reverse prolog list Prolog Prolog reverse front members of a list In Prolog i have to reverse a part of a List given the number (member of the list) until which the list is reversed. For example: ?- reverse_front(2,[3,2,4,1,5,6],L). L=[2,3,4,...
[ -0.009521484375, 0.034912109375, 0.015869140625, -0.006622314453125, -0.0186767578125, 0.0213623046875, 0.0027008056640625, 0.019775390625, 0.01202392578125, -0.0172119140625, 0.00701904296875, 0.01275634765625, -0.01318359375, 0.034912109375, 0.0172119140625, -0.0137939453125, 0.014...
[ 1250, 4867, 39531, 184, 12912, 43032, 111, 5303, 502, 17, 765, 47, 2831, 32036, 34475, 14012, 39, 27417, 24189, 83, 5281, 20549, 54753, 363, 617, 104629, 866, 339, 82449, 8108, 116, 822, 4958, 114689, 47143, 1126, 57626, 125157, 129678, 1...
[ 0.1849365234375, 0.2607421875, 0.253173828125, 0.2083740234375, 0.227783203125, 0.2373046875, 0.024444580078125, 0.21484375, 0.1014404296875, 0.0223236083984375, 0.035125732421875, 0.011627197265625, 0.1251220703125, 0.1845703125, 0.073486328125, 0.1070556640625, 0.029266357421875, ...
embed
3939639_c0
3939639
prolog
0
Title: How to get the list of values during Prolog backtracking? Problem title: How to get the list of values during Prolog backtracking? Tags: backtracking, prolog Problem: How to get the list of values during Prolog backtracking? Say I have the following piece of code: edge(a, b). edge(a, c). edge(a, d). Now when I d...
How to get the list of values during Prolog backtracking? How to get the list of values during Prolog backtracking? backtracking prolog How Prolog How to get the list of values during Prolog backtracking? Say I have the following piece of code: Now when I do I can get a list of the neighbors printed out to the console....
[ 0.01239013671875, 0.01171875, 0.0218505859375, -0.00579833984375, -0.00238037109375, 0.006317138671875, -0.005859375, 0.007476806640625, -0.00537109375, -0.033203125, -0.0113525390625, -0.00836181640625, -0.01220703125, -0.002685546875, 0.0169677734375, 0.00885009765625, -0.020507812...
[ 11249, 2046, 70, 5303, 111, 142424, 20271, 1250, 4867, 4420, 125728, 214, 502, 18151, 208244, 28412, 1810, 130250, 442, 237, 16750, 4488, 32786, 34831 ]
[ 0.0484619140625, 0.10345458984375, 0.062255859375, 0.17333984375, 0.1046142578125, 0.198974609375, 0.1192626953125, 0.1578369140625, 0.2342529296875, 0.1707763671875, 0.22021484375, 0.10418701171875, 0.096435546875, 0.0697021484375, 0.2320556640625, 0.1273193359375, 0.052978515625, ...
embed
4187632_c1
4187632
prolog
1
51963, 737135, 246842, 22754, 1176800, 1036258, 625628|...], NsS = [0, 1, 3, 5, 8, 10, 12, 14, 16|...]. ... for rsort1 : ?- test_list(Ns), time(rsort1(Ns, NsS)). % 779,895 inferences, 8.310 CPU in 9.011 seconds (92% CPU, 93850 Lips) Ns = [183677, 351963, 737135, 246842, 22754, 1176800, 1036258, 625628|...], NsS = [1234...
51963, 737135, 246842, 22754, 1176800, 1036258, 625628|...], NsS = [0, 1, 3, 5, 8, 10, 12, 14, 16|...]. ... for rsort1 : ?- test_list(Ns), time(rsort1(Ns, NsS)). % 779,895 inferences, 8.310 CPU in 9.011 seconds (92% CPU, 93850 Lips) Ns = [183677, 351963, 737135, 246842, 22754, 1176800, 1036258, 625628|...], NsS = [1234...
[ -0.0208740234375, 0.000053882598876953125, 0.01190185546875, -0.03173828125, -0.0166015625, -0.00537109375, -0.007537841796875, -0.00604248046875, -0.004974365234375, -0.00167083740234375, 0.0213623046875, 0.035400390625, -0.0120849609375, 0.004180908203125, 0.0185546875, -0.0119628906...
[ 190, 161922, 4, 6, 115252, 88622, 744, 187019, 304, 1039, 188609, 534, 11835, 10253, 35389, 10837, 10057, 305, 127892, 3882, 75606, 541, 7, 294, 2203, 2389, 106, 138, 382, 209, 427, 616, 611, 5, 153, 100, 1690, 62351, 418, 152, 705, 9...
[ 0.1734619140625, 0.284423828125, 0.067138671875, 0.0216827392578125, 0.1754150390625, 0.2227783203125, 0.1337890625, 0.1839599609375, 0.1861572265625, 0.0771484375, 0.218505859375, 0.0716552734375, 0.1417236328125, 0.1876220703125, 0.125244140625, 0.0997314453125, 0.1446533203125, ...
embed
29239457_c0
29239457
prolog
0
Title: How to remove a list from a list in prolog? Problem title: How to remove a list from a list in prolog? Tags: list, prolog Problem: How to remove a list from a list in prolog? I want to implement the following problem in prolog: Given L1=[1,2,3,4] and L2=[2,3,4] calling a function named remove_list(L1,L2,L) will ...
How to remove a list from a list in prolog? How to remove a list from a list in prolog? list prolog a How How to remove a list from a list in prolog? I want to implement the following problem in prolog: Given L1=[1,2,3,4] and L2=[2,3,4] calling a function named remove_list(L1,L2,L) will remove L2 from L1 . So L will be...
[ 0.003021240234375, 0.01708984375, -0.0037841796875, 0.0201416015625, -0.02734375, 0.00106048583984375, -0.01177978515625, 0.0115966796875, 0.00823974609375, -0.0205078125, 0.0072021484375, 0.009033203125, -0.007598876953125, 0.000759124755859375, -0.01031494140625, 0.000455856323242187...
[ 11249, 47, 87388, 10, 5303, 1295, 23, 502, 4867, 3444, 29479, 2967, 339, 418, 133063, 82449, 304, 159029, 32354, 6562, 866, 1221, 186, 80854, 116, 2208, 959, 5701, 12989, 152018, 1614, 32036, 363, 80389, 155761, 910, 189126, 90173, 16750, ...
[ 0.0958251953125, 0.04168701171875, 0.2454833984375, 0.06005859375, 0.2548828125, 0.185302734375, 0.09503173828125, 0.195556640625, 0.2491455078125, 0.0165863037109375, 0.084228515625, 0.085205078125, 0.1180419921875, 0.0604248046875, 0.0924072265625, 0.152099609375, 0.156982421875, ...
embed
3279822_c0
3279822
prolog
0
Title: Parsing numbers with multiple digits in Prolog Problem title: Parsing numbers with multiple digits in Prolog Tags: dcg, grammar, prolog Problem: Parsing numbers with multiple digits in Prolog I have the following simple expression parser: expr(+(T,E))-->term(T),"+",expr(E). expr(T)-->term(T). term(*(F,T))-->fact...
Parsing numbers with multiple digits in Prolog Parsing numbers with multiple digits in Prolog dcg grammar prolog Parsing Prolog Parsing numbers with multiple digits in Prolog I have the following simple expression parser: However this only supports 1-digit numbers. How can I parse numbers with multiple digits in this c...
[ 0, -0.00135040283203125, -0.00162506103515625, 0.031494140625, 0.00238037109375, 0.03662109375, -0.0106201171875, 0.00616455078125, 0.0140380859375, -0.0283203125, -0.00665283203125, -0.0174560546875, -0.01312255859375, 0.00567626953125, 0.0179443359375, 0.01202392578125, 0.003326416...
[ 2392, 6953, 101935, 678, 48716, 153939, 23, 1250, 4867, 238, 177, 122092, 147, 502, 25632, 8781, 125195, 366, 2189, 4734, 8060, 4317, 4803, 217, 831, 184 ]
[ 0.1591796875, 0.081787109375, 0.16943359375, 0.09857177734375, 0.1790771484375, 0.1827392578125, 0.038909912109375, 0.1583251953125, 0.2379150390625, 0.00865936279296875, 0.052337646484375, 0.0285797119140625, 0.000038743019104003906, 0.085693359375, 0.00618743896484375, 0.0771484375, ...
embed
71507580_c0
71507580
prolog
0
Title: Delete from a list the non-duplicated items Problem title: Delete from a list the non-duplicated items Tags: list, logical-purity, prolog Problem: Delete from a list the non-duplicated items I need to do an exercise where I must eliminate the elements of a list that are NOT duplicated, previously I made one to e...
Delete from a list the non-duplicated items Delete from a list the non-duplicated items list logical-purity prolog a Delete Delete from a list the non-duplicated items I need to do an exercise where I must eliminate the elements of a list that are NOT duplicated, previously I made one to eliminate the elements of a lis...
[ -0.01611328125, 0.015380859375, 0.00160980224609375, -0.0076904296875, -0.01611328125, 0.015869140625, 0.0228271484375, 0.019287109375, 0.0191650390625, -0.03515625, -0.013427734375, 0.004669189453125, 0.01348876953125, 0.0126953125, -0.03125, 0.0198974609375, 0.02392578125, 0.0212...
[ 262, 46485, 1295, 10, 5303, 70, 351, 693, 52721, 3674, 55769, 62775, 289, 4717, 2481, 502, 4867, 3871, 81979, 8110, 27169, 67, 80854, 621, 86725, 171763, 198395, 6, 23711, 3293, 18151, 23, 3714, 2811, 40383, 139392, 3525, 111, 450, 4171, ...
[ 0.12646484375, 0.1680908203125, 0.146240234375, 0.0333251953125, 0.2052001953125, 0.07135009765625, 0.1734619140625, 0.109375, 0.1685791015625, 0.1002197265625, 0.19091796875, 0.1497802734375, 0.075927734375, 0.129150390625, 0.10443115234375, 0.1248779296875, 0.1368408203125, 0.070...
embed
44015241_c0
44015241
prolog
0
Title: Prolog - days of the week Problem title: Prolog - days of the week Tags: arrays, prolog Problem: Prolog - days of the week I'm new at prolog and it is messing up my head. Could you guys give me a simple example like.. the days of the week! Let's say I have a day(mon, tue, wed, thu, fri). and I wanna know in whic...
Prolog - days of the week Prolog - days of the week arrays prolog Prolog Prolog - days of the week I'm new at prolog and it is messing up my head. Could you guys give me a simple example like.. the days of the week! Let's say I have a and I wanna know in which day of the week I'm on (assuming on start it'll akways be s...
[ 0.02685546875, -0.00433349609375, 0.000644683837890625, 0.0211181640625, -0.025634765625, 0.0244140625, -0.01019287109375, 0.0250244140625, -0.00151824951171875, -0.024169921875, -0.007110595703125, 0.0185546875, -0.035400390625, 0.0135498046875, -0.000568389892578125, -0.0009422302246...
[ 1250, 4867, 13312, 111, 70, 5895, 20, 10298, 4778, 502, 3525, 99, 83, 163, 38001, 1257, 10336, 191147, 51484, 8781, 27781, 1884, 765, 6165, 76, 3714, 23, 5155, 39, 98, 4034, 102966, 5423, 237, 119720, 53, 26366, 3444, 77336, 47, 188, ...
[ 0.1895751953125, 0.267333984375, 0.19677734375, 0.218505859375, 0.06646728515625, 0.2357177734375, 0.00518798828125, 0.074462890625, 0.1114501953125, 0.1683349609375, 0.09844970703125, 0.0235595703125, 0.04296875, 0.061431884765625, 0.0772705078125, 0.0254974365234375, 0.076171875, ...
embed
33882539_c0
33882539
prolog
0
Title: How to multiply result of predicate in prolog? Problem title: How to multiply result of predicate in prolog? Tags: predicate, prolog Problem: How to multiply result of predicate in prolog? How to multiply or divide returned result of predicate in prolog? For example, I have predicate which counts how many times ...
How to multiply result of predicate in prolog? How to multiply result of predicate in prolog? predicate prolog How How to multiply result of predicate in prolog? How to multiply or divide returned result of predicate in prolog? For example, I have predicate which counts how many times some element appears in list. It l...
[ -0.00186920166015625, -0.00653076171875, -0.0020904541015625, -0.005767822265625, -0.0021514892578125, 0.0155029296875, 0.00185394287109375, 0.0032196044921875, -0.0054931640625, -0.06982421875, -0.0002460479736328125, -0.007476806640625, -0.01019287109375, -0.01007080078125, 0.003158569...
[ 11249, 47, 6024, 62479, 16750, 111, 1653, 2063, 67, 23, 502, 4867, 707, 101637, 176377, 54529, 5941, 20028, 12830, 135179, 5303, 33342, 1884, 1193, 618, 541, 107730, 6896, 1542, 33000, 7722, 678, 116, 64457, 2046, 55257, 37842, 15490, 36272...
[ 0.07257080078125, 0.0217437744140625, 0.171630859375, 0.21875, 0.216796875, 0.055908203125, 0.1771240234375, 0.1982421875, 0.0927734375, 0.03619384765625, 0.148681640625, 0.203857421875, 0.009796142578125, 0.156982421875, 0.11328125, 0.129150390625, 0.0709228515625, 0.1383056640625...
embed
54818701_c0
54818701
prolog
0
Title: Prolog - Pattern matching : complex expression linked by operator Problem title: Prolog - Pattern matching : complex expression linked by operator Tags: prolog, pattern-matching, operator-keyword, extract Problem: Prolog - Pattern matching : complex expression linked by operator I am new in prolog and I would li...
Prolog - Pattern matching : complex expression linked by operator Prolog - Pattern matching : complex expression linked by operator prolog pattern-matching operator-keyword extract Prolog Pattern Prolog - Pattern matching : complex expression linked by operator I am new in prolog and I would like to know if there a way...
[ 0.00860595703125, 0.0023956298828125, 0.0034027099609375, 0.0179443359375, 0.0145263671875, 0.0006866455078125, -0.010009765625, 0.022216796875, 0.0216064453125, -0.00052642822265625, 0.0225830078125, 0.004913330078125, -0.0087890625, -0.01226806640625, 0.019287109375, -0.0003681182861...
[ 1250, 4867, 9876, 22766, 14858, 214, 27140, 125195, 3126, 39933, 502, 103510, 98753, 19770, 47416, 125663, 297, 3525, 1884, 3714, 3917, 47, 91995, 2831, 111, 12830, 98363, 450, 27781, 1193, 136, 990, 1284, 13695, 4358 ]
[ 0.1085205078125, 0.21337890625, 0.1239013671875, 0.10406494140625, 0.1964111328125, 0.0777587890625, 0.14306640625, 0.212158203125, 0.079833984375, 0.2408447265625, 0.1070556640625, 0.14697265625, 0.1925048828125, 0.010772705078125, 0.07470703125, 0.1270751953125, 0.00048828125, 0....
embed
61351343_c0
61351343
prolog
0
Title: Split list of strings into list of lists in prolog Problem title: Split list of strings into list of lists in prolog Tags: prolog Problem: Split list of strings into list of lists in prolog I am beggining to learn Prolog and I would like to know how to implements a function that turns a list of strings into an o...
Split list of strings into list of lists in prolog Split list of strings into list of lists in prolog prolog Split Split list of strings into list of lists in prolog I am beggining to learn Prolog and I would like to know how to implements a function that turns a list of strings into an ordered list of lists of charact...
[ 0.01007080078125, -0.015380859375, 0.00311279296875, 0.01226806640625, -0.025634765625, 0.007232666015625, 0.0245361328125, -0.0009918212890625, 0.0079345703125, -0.00128936767578125, 0.00775146484375, 0.006591796875, -0.005279541015625, 0.0034942626953125, 0.002410888671875, 0.0098876...
[ 46474, 5303, 79315, 7, 3934, 111, 502, 4867, 23, 1250, 29479, 32354, 15504, 12989, 124850, 5608, 30646, 4527, 1653, 2063, 1636, 12096, 866, 418, 10461, 34627, 9254, 571, 33022, 18151, 57143, 3884 ]
[ 0.236328125, 0.2291259765625, 0.247802734375, 0.048919677734375, 0.12060546875, 0.0716552734375, 0.144287109375, 0.2198486328125, 0.010162353515625, 0.116943359375, 0.11083984375, 0.1302490234375, 0.07440185546875, 0.1622314453125, 0.15771484375, 0.1590576171875, 0.2376708984375, 0...
embed
50850079_c0
50850079
prolog
0
Title: How to filter in Prolog with SWISH Problem title: How to filter in Prolog with SWISH Tags: filtering, list, prolog Problem: How to filter in Prolog with SWISH I need to make a predicate called fAtomPairs so that given an atom (first argument), and a list of pairs (each pair is in turn a list of two atoms), unify...
How to filter in Prolog with SWISH How to filter in Prolog with SWISH filtering list prolog How Prolog SWISH How to filter in Prolog with SWISH I need to make a predicate called fAtomPairs so that given an atom (first argument), and a list of pairs (each pair is in turn a list of two atoms), unify a third parameter wit...
[ -0.00115203857421875, 0.0208740234375, -0.0023040771484375, -0.0016937255859375, -0.0263671875, 0.006805419921875, -0.00098419189453125, 0.0184326171875, -0.00189208984375, -0.00982666015625, 0.0208740234375, 0.01251220703125, -0.01123046875, -0.01190185546875, 0.0123291015625, 0.00765...
[ 11249, 46312, 23, 1250, 4867, 678, 61595, 79909, 5303, 502, 3871, 3249, 1653, 2063, 1238, 12078, 8335, 481, 34627, 13448, 10750, 80836, 15504, 6626, 51, 40383, 50960, 171859, 36849, 4734, 765, 5117, 82761, 8110, 16750, 831, 54, 903, 20697 ]
[ 0.0615234375, 0.2744140625, 0.0872802734375, 0.16455078125, 0.233642578125, 0.046356201171875, 0.1873779296875, 0.26171875, 0.150146484375, 0.1187744140625, 0.028961181640625, 0.00537109375, 0.1141357421875, 0.1373291015625, 0.084716796875, 0.1849365234375, 0.14453125, 0.1284179687...
embed
25498167_c0
25498167
prolog
0
Title: How to execute SWI-prolog command from shell? Problem title: How to execute SWI-prolog command from shell? Tags: swi-prolog, command-line, prolog, shell Problem: How to execute SWI-prolog command from shell? As a follow up to this , now I am wondering if there is a way to execute/evaluate a prolog predicate/expr...
How to execute SWI-prolog command from shell? How to execute SWI-prolog command from shell? swi-prolog command-line prolog shell shell How SWI-prolog pack_install console.log How to execute SWI-prolog command from shell? As a follow up to this , now I am wondering if there is a way to execute/evaluate a prolog predicat...
[ 0.004302978515625, 0.0137939453125, 0.002105712890625, 0.0189208984375, -0.0247802734375, 0.00885009765625, 0.025146484375, -0.01263427734375, -0.000507354736328125, -0.039306640625, 0.019775390625, 0.01177978515625, -0.0023345947265625, -0.01141357421875, 0.004913330078125, 0.00668334...
[ 11249, 71924, 13, 159, 38969, 9, 3454, 4867, 75101, 1295, 128019, 91, 2452, 2256, 502, 43824, 80383, 130250, 3917, 159258, 1653, 2063, 204629, 80560, 7722, 110, 112, 28175, 72367, 1257, 151575, 125195, 20903, 183234 ]
[ 0.0517578125, 0.17529296875, 0.02001953125, 0.095703125, 0.242919921875, 0.0290679931640625, 0.1795654296875, 0.2288818359375, 0.205810546875, 0.1376953125, 0.241455078125, 0.051971435546875, 0.205322265625, 0.06744384765625, 0.17724609375, 0.1439208984375, 0.11474609375, 0.1479492...
embed
13476012_c0
13476012
prolog
0
Title: Minimal Dominating Vector from a set of N-dimensional vectors in prolog Problem title: Minimal Dominating Vector from a set of N-dimensional vectors in prolog Tags: prolog Problem: Minimal Dominating Vector from a set of N-dimensional vectors in prolog I need to write a program that constructs a minimal dominati...
Minimal Dominating Vector from a set of N-dimensional vectors in prolog Minimal Dominating Vector from a set of N-dimensional vectors in prolog prolog a Minimal Dominating Vector N-dimensional Minimal Dominating Vector from a set of N-dimensional vectors in prolog I need to write a program that constructs a minimal dom...
[ 0.005523681640625, 0.006195068359375, 0.00665283203125, 0.0238037109375, 0.00025177001953125, 0.002227783203125, 0.007598876953125, 0.0115966796875, 0.00830078125, -0.00994873046875, 0.01263427734375, -0.010498046875, -0.0198974609375, -0.005462646484375, -0.0203857421875, 0.0007476806...
[ 119305, 149355, 1916, 2609, 18770, 1295, 5423, 541, 157955, 22834, 22230, 502, 4867, 23, 10, 3871, 33022, 1528, 64549, 20187, 35462, 173, 100, 39330, 62, 159, 111, 61924, 237, 8962, 82761, 117396, 105950, 11907, 17, 17163, 645, 756, 158208,...
[ 0.2454833984375, 0.2110595703125, 0.16748046875, 0.214111328125, 0.202392578125, 0.053924560546875, 0.138916015625, 0.172607421875, 0.1318359375, 0.2091064453125, 0.1053466796875, 0.12890625, 0.20458984375, 0.0069580078125, 0.02130126953125, 0.0374755859375, 0.07086181640625, 0.130...
embed
33021564_c0
33021564
prolog
0
Title: YAP Prolog random&#x27;s lack of randomness Problem title: YAP Prolog random&#x27;s lack of randomness Tags: yap, random, random-seed, prolog Problem: YAP Prolog random's lack of randomness When executing the following Prolog program with YAP, the output is always the same, namely the integer 233. :- use_module(...
YAP Prolog random&#x27;s lack of randomness YAP Prolog random&#x27;s lack of randomness yap random random-seed prolog YAP Prolog use_module test.pl YAP Prolog random's lack of randomness When executing the following Prolog program with YAP, the output is always the same, namely the integer 233. For instance, if I execu...
[ 0.0201416015625, 0.016845703125, 0.0120849609375, -0.004180908203125, 0.00174713134765625, 0.010986328125, 0.003570556640625, -0.00994873046875, -0.01226806640625, -0.05810546875, 0.0233154296875, 0.0206298828125, -0.0267333984375, -0.0018768310546875, 0.027099609375, -0.00628662109375...
[ 128706, 1250, 4867, 96759, 3768, 92635, 111, 7432, 15850, 184, 297, 502, 4527, 83279, 3034, 2424, 71924, 25632, 1528, 678, 140992, 11343, 5701, 892, 1505, 105586, 87109, 26499, 70, 119140, 50491, 17368, 91, 2452, 12921, 12638, 1733, 73342 ]
[ 0.264404296875, 0.180908203125, 0.2353515625, 0.2454833984375, 0.06353759765625, 0.1839599609375, 0.045135498046875, 0.046600341796875, 0.1805419921875, 0.05596923828125, 0.095703125, 0.1170654296875, 0.036407470703125, 0.07257080078125, 0.1116943359375, 0.2178955078125, 0.1394042968...
embed
55462290_c0
55462290
prolog
0
Title: Probability of a disjunction on N dependent events in Prolog Problem title: Probability of a disjunction on N dependent events in Prolog Tags: probability, prolog Problem: Probability of a disjunction on N dependent events in Prolog Does anybody know where to find a Prolog algorithm for computing the probability...
Probability of a disjunction on N dependent events in Prolog Probability of a disjunction on N dependent events in Prolog probability prolog Probability Prolog prob_disjunct Probability of a disjunction on N dependent events in Prolog Does anybody know where to find a Prolog algorithm for computing the probability of a...
[ 0.0087890625, -0.01611328125, -0.0027008056640625, 0.00970458984375, -0.007354736328125, 0.0159912109375, -0.0103759765625, 0.01507568359375, 0.004547119140625, -0.042236328125, -0.001068115234375, 0.01531982421875, 0.006744384765625, -0.00225830078125, -0.01409912109375, 0.00354003906...
[ 152990, 2481, 2837, 17043, 10763, 98, 541, 108750, 47353, 1250, 4867, 37242, 502, 43011, 3827, 23, 37873, 3714, 7413, 234873, 242122, 100, 2203, 116, 436, 647, 418, 33172, 241, 10461, 17727, 997, 661, 5809, 54, 1653, 2063, 4537, 52021, 10...
[ 0.2486572265625, 0.177734375, 0.110107421875, 0.2313232421875, 0.13916015625, 0.032989501953125, 0.13232421875, 0.22607421875, 0.177978515625, 0.1649169921875, 0.258056640625, 0.262939453125, 0.1392822265625, 0.18896484375, 0.0367431640625, 0.003509521484375, 0.017120361328125, 0.0...
embed
42979113_c0
42979113
prolog
0
Title: Check if a system of inequalities entails another system of equalities? Problem title: Check if a system of inequalities entails another system of equalities? Tags: matlab, prolog, python Problem: Check if a system of inequalities entails another system of equalities? I have a system of inequalities, but the pro...
Check if a system of inequalities entails another system of equalities? Check if a system of inequalities entails another system of equalities? matlab prolog python Check Check if a system of inequalities entails another system of equalities? I have a system of inequalities, but the problem is all of the terms in the s...
[ 0.0341796875, 0.017333984375, 0.0036468505859375, 0.041259765625, -0.016845703125, 0.006988525390625, -0.0034332275390625, 0.0137939453125, -0.00640869140625, 0.00311279296875, 0.01324462890625, 0.0230712890625, 0.00653076171875, 0.0181884765625, -0.0023651123046875, 0.021240234375, ...
[ 38679, 2174, 5426, 111, 23, 13, 71723, 31075, 22, 46741, 7, 15700, 105950, 2589, 6114, 502, 4867, 17198, 50828, 2967, 756, 69407, 220, 31304, 77336, 33636, 6083, 101935, 8337, 91736, 26458, 41, 1294, 1884, 8110, 29568, 54, 903 ]
[ 0.192138671875, 0.1204833984375, 0.1787109375, 0.0933837890625, 0.1077880859375, 0.1077880859375, 0.18798828125, 0.1204833984375, 0.0740966796875, 0.2066650390625, 0.04913330078125, 0.1077880859375, 0.1715087890625, 0.066162109375, 0.161376953125, 0.048431396484375, 0.15966796875, ...
embed
26956629_c0
26956629
prolog
0
Title: Execute a fact if the variable of previous fact has no result Problem title: Execute a fact if the variable of previous fact has no result Tags: prolog Problem: Execute a fact if the variable of previous fact has no result I am implementing a Prolog program for trigonometric identities. This is a part of the pro...
Execute a fact if the variable of previous fact has no result Execute a fact if the variable of previous fact has no result prolog Execute simplify_exp Term1 Term2 Execute a fact if the variable of previous fact has no result I am implementing a Prolog program for trigonometric identities. This is a part of the program...
[ 0.027587890625, -0.0035858154296875, -0.005279541015625, 0.041259765625, -0.01025390625, 0.0234375, 0.0322265625, -0.0018768310546875, -0.0028228759765625, 0.034423828125, 0.0108642578125, 0.007415771484375, -0.01611328125, -0.0164794921875, -0.0106201171875, 0.005889892578125, 0.001...
[ 211603, 13, 15824, 2174, 77336, 111, 96362, 1556, 110, 16750, 502, 4867, 112892, 18929, 83613, 2994, 39, 418, 304, 10, 29479, 1250, 1528, 171353, 157, 186518, 31943, 2449, 3444, 71924, 70, 63805, 4734, 990, 34292, 3220, 54015, 29062, 165523...
[ 0.2100830078125, 0.057891845703125, 0.1929931640625, 0.2130126953125, 0.2159423828125, 0.0760498046875, 0.114501953125, 0.08197021484375, 0.1375732421875, 0.1514892578125, 0.1094970703125, 0.205078125, 0.156494140625, 0.13037109375, 0.169677734375, 0.1019287109375, 0.0035400390625, ...
embed
36170456_c0
36170456
prolog
0
Title: Merging two lists into on ordered in Prolog Problem title: Merging two lists into on ordered in Prolog Tags: prolog Problem: Merging two lists into on ordered in Prolog Given two lists: L1 = [1,3,5] and L2 = [1,2,4], I need to write code to merge them in sorted order, so the result would be L3 = [1,1,2,3,4,5] w/...
Merging two lists into on ordered in Prolog Merging two lists into on ordered in Prolog prolog Merging Prolog Rest Merging two lists into on ordered in Prolog Given two lists: L1 = [1,3,5] and L2 = [1,2,4], I need to write code to merge them in sorted order, so the result would be L3 = [1,1,2,3,4,5] w/o using cut opera...
[ 0.00689697265625, 0.0301513671875, 0.01116943359375, -0.00023651123046875, 0.006256103515625, 0.01373291015625, -0.021728515625, 0.0029296875, 0.01129150390625, -0.01171875, 0.0224609375, -0.00274658203125, -0.0022430419921875, -0.005828857421875, 0.00689697265625, 0.0020294189453125, ...
[ 6035, 9966, 6626, 5303, 7, 3934, 98, 12989, 297, 1250, 4867, 502, 49756, 23, 339, 418, 92714, 304, 133063, 617, 3871, 33022, 18151, 42564, 2856, 17497, 16750, 363, 2203, 80389, 31, 17368, 59226, 39933, 35782, 16031, 51515, 2967, 86869, 17...
[ 0.2025146484375, 0.062408447265625, 0.1412353515625, 0.2291259765625, 0.046722412109375, 0.12158203125, 0.19140625, 0.23046875, 0.1326904296875, 0.1759033203125, 0.25146484375, 0.11865234375, 0.189208984375, 0.06494140625, 0.10498046875, 0.049468994140625, 0.16796875, 0.14111328125...
embed
65855334_c0
65855334
prolog
0
Title: How to list more than 1 output on prolog query? Problem title: How to list more than 1 output on prolog query? Tags: prolog-toplevel, prolog Problem: How to list more than 1 output on prolog query? Imagine my siblings, my cousins and me and our total count is 10. So i write this code and when i run it, it just g...
How to list more than 1 output on prolog query? How to list more than 1 output on prolog query? prolog-toplevel prolog How How to list more than 1 output on prolog query? Imagine my siblings, my cousins and me and our total count is 10. So i write this code and when i run it, it just give me 1 output. How can i print a...
[ 0.02392578125, 0.001434326171875, 0.0004730224609375, 0.0157470703125, -0.033203125, 0.00128173828125, 0.01080322265625, 0.00640869140625, 0.010986328125, -0.04296875, 0.006195068359375, -0.0244140625, 0.01123046875, 0.0184326171875, -0.0107421875, 0.005767822265625, 0.01373291015625...
[ 11249, 5303, 1286, 3501, 106, 140992, 98, 502, 4867, 41, 1294, 47, 13784, 67919, 133196, 78, 79298, 193429, 163, 2446, 3622, 54529, 4068, 33022, 18151, 11675, 8337, 831, 17, 28412, 756, 1193, 142424, 11627, 903, 15549, 9351, 5117, 55076, ...
[ 0.07073974609375, 0.200439453125, 0.18896484375, 0.173828125, 0.148193359375, 0.27197265625, 0.0518798828125, 0.14794921875, 0.2232666015625, 0.153564453125, 0.109619140625, 0.00433349609375, 0.076904296875, 0.1507568359375, 0.06060791015625, 0.03887939453125, 0.1331787109375, 0.08...
embed
10861675_c0
10861675
prolog
0
Title: undirected graph Problem title: undirected graph Tags: prolog, path-finding, graph-theory, graph-algorithm Problem: undirected graph How can I find all way to go end in undirected graph ? Graph : Node : S, Y, F, T visualization : S ----- Y ---- T Edge : S --- Y \ / Y --- F \ / S --- F \ / Y --- T F Assume that S...
undirected graph undirected graph prolog path-finding graph-theory graph-algorithm Graph Node Edge Assume Start Finish undirected graph How can I find all way to go end in undirected graph ? I do not want visit one node more than once. If I visit, this problem become one of NP problems. EDIT: input can be any form BUT ...
[ -0.00176239013671875, 0.017822265625, 0.0078125, 0.001312255859375, -0.012451171875, -0.00640869140625, -0.007171630859375, -0.01470947265625, -0.0038604736328125, -0.0245361328125, 0.0087890625, -0.03271484375, -0.004730224609375, 0.0159912109375, -0.006561279296875, 0.013916015625, ...
[ 51, 80581, 297, 41382, 502, 4867, 60875, 111607, 6524, 11727, 438, 112, 69030, 66596, 13794, 13316, 4745, 831, 7413, 756, 3917, 47, 738, 3564, 23, 959, 3444, 19922, 1632, 110, 1286, 3501, 24145, 2967, 28814, 44402, 107730, 2499, 3173, 520...
[ 0.119384765625, 0.2288818359375, 0.135498046875, 0.2291259765625, 0.0653076171875, 0.1446533203125, 0.14501953125, 0.1170654296875, 0.113525390625, 0.098876953125, 0.10400390625, 0.1453857421875, 0.1741943359375, 0.08935546875, 0.06524658203125, 0.09796142578125, 0.09423828125, 0.0...
embed
13101289_c0
13101289
prolog
0
Title: Way of using find_all receiving function? Problem title: Way of using find_all receiving function? Tags: prolog Problem: Way of using find_all receiving function? is there a way of using the findall function receiving another function as a parameter? My problem is something like enemy_area(Enemys,[X|Tail],Area) ...
Way of using find_all receiving function? Way of using find_all receiving function? prolog find_all Way enemy_area Enemys Tail Area Way of using find_all receiving function? is there a way of using the findall function receiving another function as a parameter? My problem is something like (And then should come some ty...
[ 0.000885009765625, 0.00182342529296875, 0.01019287109375, 0.01409912109375, -0.0045166015625, 0.0164794921875, -0.01708984375, 0.0111083984375, 0.0036468505859375, -0.040283203125, 0.01708984375, -0.004852294921875, -0.000396728515625, 0.0024871826171875, 0.01287841796875, -0.013488769...
[ 42261, 111, 17368, 7413, 5584, 217063, 32354, 454, 502, 4867, 22, 195, 3464, 357, 13, 74277, 1218, 379, 79200, 3917, 15700, 237, 171859, 2967, 5608, 10644, 195625, 1830, 123594, 10060, 30646, 756, 16797, 19069, 41097, 32036, 40368, 26847, 5...
[ 0.130615234375, 0.06915283203125, 0.1373291015625, 0.16796875, 0.2349853515625, 0.2225341796875, 0.185302734375, 0.0023193359375, 0.0927734375, 0.1634521484375, 0.048828125, 0.1278076171875, 0.08837890625, 0.05584716796875, 0.099609375, 0.094970703125, 0.0975341796875, 0.0880126953...
embed
31328989_c0
31328989
prolog
0
Title: Storing results in a list in Prolog Problem title: Storing results in a list in Prolog Tags: prolog Problem: Storing results in a list in Prolog I am trying to compute arithmetic calculations and store the results in a new list in Prolog. The function prototype goes as follows: calculation(List1, ListofLists, Re...
Storing results in a list in Prolog Storing results in a list in Prolog prolog Storing Prolog List1 ListofLists ResultList Storing results in a list in Prolog I am trying to compute arithmetic calculations and store the results in a new list in Prolog. The function prototype goes as follows: for the first argument I pr...
[ 0.006317138671875, -0.002288818359375, -0.00011682510375976562, -0.005126953125, -0.0047607421875, 0.005615234375, 0.00946044921875, -0.0087890625, 0.0174560546875, -0.010009765625, -0.0152587890625, -0.0106201171875, -0.0179443359375, -0.0133056640625, 0.0032806396484375, -0.003097534...
[ 23604, 214, 50339, 23, 5303, 1250, 4867, 502, 32036, 1261, 36834, 154663, 126684, 31577, 9969, 6743, 8962, 74481, 4343, 32354, 160469, 13, 10750, 22691, 50960, 16750, 5117, 5, 3642, 831, 33548, 939 ]
[ 0.2037353515625, 0.039031982421875, 0.2322998046875, 0.0826416015625, 0.2176513671875, 0.1734619140625, 0.2491455078125, 0.122802734375, 0.1209716796875, 0.1005859375, 0.05767822265625, 0.1572265625, 0.1727294921875, 0.009185791015625, 0.016265869140625, 0.0614013671875, 0.0549926757...
embed
34046245_c1
34046245
prolog
1
uens(Rest_4,Ab_2,De_2,Pq_2,Xy2,Rest), append(Ab_1,Ab_2,Ab), append(De_1,De_2,De), append(Pq_1,Pq_2,Pq), append(Xy_1,Xy_2,Xy), !. classify_substituens(List,[],[],[],[],List). I want goals like below. ?- classify_substituens([1,2,ab,a,b,xy,as,t,xy,ac],Ab,De,Pq,Xy,Rest). Ab = [1, 2, ab], De = [], Pq = [], Xy = [a,b,xy,as,...
uens(Rest_4,Ab_2,De_2,Pq_2,Xy2,Rest), append(Ab_1,Ab_2,Ab), append(De_1,De_2,De), append(Pq_1,Pq_2,Pq), append(Xy_1,Xy_2,Xy), !. classify_substituens(List,[],[],[],[],List). I want goals like below. ?- classify_substituens([1,2,ab,a,b,xy,as,t,xy,ac],Ab,De,Pq,Xy,Rest). Ab = [1, 2, ab], De = [], Pq = [], Xy = [a,b,xy,as,...
[ -0.0113525390625, 0.00347900390625, 0.01611328125, -0.0068359375, -0.0140380859375, 0.007232666015625, -0.0069580078125, 0.00787353515625, 0.0205078125, 0.039794921875, -0.0029754638671875, -0.01251220703125, 0.0093994140625, 0.004180908203125, -0.01513671875, -0.022216796875, 0.0000...
[ 75, 1755, 1052, 525, 617, 24988, 304, 4657, 683, 864, 1542, 53, 114689, 115187, 4, 711, 18507, 40383, 209828, 154663, 87, 3444, 109458, 1884, 35064, 133063, 2055, 11, 275, 50878, 162, 2263, 3157, 68252, 116, 1563, 262, 436, 1193, 49756, ...
[ 0.12841796875, 0.211181640625, 0.1185302734375, 0.15966796875, 0.166748046875, 0.1187744140625, 0.09674072265625, 0.1629638671875, 0.0035400390625, 0.1240234375, 0.0184326171875, 0.1004638671875, 0.1075439453125, 0.115478515625, 0.002716064453125, 0.04986572265625, 0.1966552734375, ...
embed
61434002_c0
61434002
prolog
0
Title: In Prolog sort two lists relative to each other Problem title: In Prolog sort two lists relative to each other Tags: prolog, list Problem: In Prolog sort two lists relative to each other Is there a way to sort two lists relative to each other . Suppose I have two lists as follows: Age = [14,12,17,15]. Name = ["F...
In Prolog sort two lists relative to each other In Prolog sort two lists relative to each other prolog list Prolog Age Name Frank Micheal Paul Alex In Prolog sort two lists relative to each other Is there a way to sort two lists relative to each other . Suppose I have two lists as follows: Frank's age is 14 while Alex'...
[ 0.024658203125, 0.0225830078125, 0.0211181640625, 0.01348876953125, -0.01397705078125, 0.0174560546875, -0.00933837890625, 0.013916015625, 0.0002918243408203125, -0.006866455078125, 0.01806640625, 0.0186767578125, -0.00738525390625, 0.01190185546875, 0.00665283203125, -0.0166015625, ...
[ 360, 1250, 4867, 12096, 6626, 5303, 7, 35845, 47, 12638, 3789, 502, 72944, 15757, 17819, 84763, 13, 289, 10208, 20984, 3917, 32070, 616, 12960, 6281, 3444, 15549, 12989, 1957, 16750, 157666 ]
[ 0.048187255859375, 0.173095703125, 0.247802734375, 0.257568359375, 0.14892578125, 0.251708984375, 0.0360107421875, 0.1822509765625, 0.1126708984375, 0.06561279296875, 0.129638671875, 0.1290283203125, 0.1544189453125, 0.0880126953125, 0.2088623046875, 0.08990478515625, 0.0476379394531...
embed
10713690_c1
10713690
prolog
1
_vertex(Vertex, Color):- retract(vertex_color(Vertex,_)), asserta(vertex_color(Vertex, Color)). find_vertex_color(Vertex):- vertex_color(Vertex, X). graph_coloring:- location(Current_vertex), vertex_color(Current_vertex, Curr_color), ( Curr_color =:= none -> connections(Current_vertex, Others), vertex_color(Others, Oth...
_vertex(Vertex, Color):- retract(vertex_color(Vertex,_)), asserta(vertex_color(Vertex, Color)). find_vertex_color(Vertex):- vertex_color(Vertex, X). graph_coloring:- location(Current_vertex), vertex_color(Current_vertex, Curr_color), ( Curr_color =:= none -> connections(Current_vertex, Others), vertex_color(Others, Oth...
[ -0.0177001953125, 0.0135498046875, 0.007049560546875, 0.0283203125, 0.000507354736328125, -0.012939453125, -0.01611328125, 0.0234375, 0.0067138671875, -0.0262451171875, -0.003692626953125, -0.0096435546875, -0.005462646484375, -0.01055908203125, -0.0106201171875, 0.0052490234375, 0.0...
[ 101, 814, 24371, 15896, 4, 51193, 2077, 9, 41499, 15390, 46133, 237, 110965, 194, 7413, 493, 1193, 41382, 454, 214, 12, 31913, 474, 15724, 17065, 42, 351, 94878, 64511, 9319, 112518, 11249, 831, 28484, 903, 234873, 1286, 18151, 1379, 2886...
[ 0.043975830078125, 0.1728515625, 0.23583984375, 0.1866455078125, 0.0269927978515625, 0.2216796875, 0.00543212890625, 0.008087158203125, 0.1697998046875, 0.1507568359375, 0.21142578125, 0.0305328369140625, 0.22216796875, 0.00811767578125, 0.111572265625, 0.1434326171875, 0.05969238281...
embed
44296470_c0
44296470
prolog
0
Title: discontiguous not recognized when its inside an included file Problem title: discontiguous not recognized when its inside an included file Tags: prolog Problem: discontiguous not recognized when its inside an included file I am using SWI Prolog 7.4.2 and I am getting warnings from SWI prolog about clauses not be...
discontiguous not recognized when its inside an included file discontiguous not recognized when its inside an included file prolog test1.pro discontiguous not recognized when its inside an included file I am using SWI Prolog 7.4.2 and I am getting warnings from SWI prolog about clauses not being together even though I ...
[ 0.01708984375, -0.017822265625, -0.00836181640625, 0.0189208984375, -0.0166015625, 0.0179443359375, -0.01080322265625, 0.01263427734375, 0.020263671875, -0.047119140625, 0.0004119873046875, 0.03466796875, -0.0157470703125, 0.0024261474609375, 0.029296875, 0.0024871826171875, -0.00320...
[ 20947, 3598, 1234, 10821, 959, 125296, 3229, 6863, 46132, 99201, 11435, 502, 4867, 3034, 418, 3454, 17368, 159, 38969, 1250, 117904, 1631, 70731, 90, 8035, 25842, 159978, 2663, 70541, 75463, 180732, 5442, 72367, 111, 915 ]
[ 0.1121826171875, 0.177978515625, 0.182373046875, 0.109130859375, 0.114013671875, 0.143310546875, 0.0162200927734375, 0.06353759765625, 0.1337890625, 0.200927734375, 0.1580810546875, 0.1339111328125, 0.1695556640625, 0.1656494140625, 0.03302001953125, 0.158447265625, 0.003570556640625...
embed
8537412_c0
8537412
prolog
0
Title: Prolog read compound term and treating it like an expression Problem title: Prolog read compound term and treating it like an expression Tags: gnu-prolog, logic, prolog, swi-prolog Problem: Prolog read compound term and treating it like an expression The following code isn't working :- arithmetic_function(i/2). ...
Prolog read compound term and treating it like an expression Prolog read compound term and treating it like an expression gnu-prolog logic prolog swi-prolog Prolog arithmetic_function Give ESP Prolog read compound term and treating it like an expression The following code isn't working but the following is Why is that?...
[ -0.00037384033203125, -0.00897216796875, -0.009033203125, 0.012451171875, 0.004852294921875, 0.01422119140625, 0.02197265625, 0.00136566162109375, 0.004608154296875, -0.052978515625, 0.0169677734375, -0.0030059814453125, -0.0296630859375, -0.02197265625, 0.0191650390625, -0.02026367187...
[ 1250, 4867, 12301, 217773, 13579, 85689, 1884, 125195, 104155, 3454, 62775, 502, 2452, 8962, 137175, 77878, 57898, 142, 25632, 18151, 18, 20697, 44084, 39116, 32354, 155965 ]
[ 0.1356201171875, 0.24609375, 0.172607421875, 0.2222900390625, 0.1846923828125, 0.07281494140625, 0.098388671875, 0.214599609375, 0.113525390625, 0.08673095703125, 0.0819091796875, 0.0872802734375, 0.091796875, 0.0792236328125, 0.0994873046875, 0.01434326171875, 0.166015625, 0.00405...
embed
71723974_c0
71723974
prolog
0
Title: Variable undeclared Problem title: Variable undeclared Tags: prolog Problem: Variable undeclared I have a function that takes the first item from a list, and checks if that item is one of several items, executes some functions accordingly and recursively executes on the next items on the list. My trouble is that...
Variable undeclared Variable undeclared prolog Variable value1 value2 Variable undeclared I have a function that takes the first item from a list, and checks if that item is one of several items, executes some functions accordingly and recursively executes on the next items on the list. My trouble is that in line 6, th...
[ 0.00037384033203125, -0.0089111328125, -0.00323486328125, -0.0025787353515625, -0.005889892578125, 0.0036773681640625, -0.00811767578125, 0.00958251953125, 0.0031890869140625, 0.01080322265625, 0.0277099609375, 0.0130615234375, -0.0050048828125, 0.000713348388671875, 0.019775390625, 0....
[ 84572, 2886, 9232, 18347, 2822, 502, 4867, 34292, 418, 304, 32354, 51776, 5117, 35735, 1295, 5303, 12765, 2174, 40368, 55769, 71924, 195625, 11737, 63134, 13315, 305, 77336, 34648, 14, 27686, 237, 83, 110, 51713, 61924, 26747, 15400, 20697, ...
[ 0.193115234375, 0.1165771484375, 0.1357421875, 0.1929931640625, 0.096435546875, 0.1431884765625, 0.2095947265625, 0.135498046875, 0.01214599609375, 0.068115234375, 0.157958984375, 0.05950927734375, 0.1429443359375, 0.1622314453125, 0.0135498046875, 0.1514892578125, 0.1568603515625, ...
embed
74393754_c0
74393754
prolog
0
Title: Generate a liste containing all the instances of a variable Problem title: Generate a liste containing all the instances of a variable Tags: prolog Problem: Generate a liste containing all the instances of a variable i am trying to generate a list in Prolog that contains all the instances of a variable. for exem...
Generate a liste containing all the instances of a variable Generate a liste containing all the instances of a variable prolog Generate Generate a liste containing all the instances of a variable i am trying to generate a list in Prolog that contains all the instances of a variable. for exemple: I tried this: but i kno...
[ 0.016845703125, -0.00836181640625, -0.0069580078125, -0.00135040283203125, -0.0050048828125, 0.0140380859375, -0.0177001953125, 0.011962890625, 0.0267333984375, -0.041259765625, -0.0140380859375, 0.006011962890625, 0.00194549560546875, 0.0205078125, 0.00115966796875, 0.00921630859375, ...
[ 155370, 67, 10, 15854, 70541, 756, 110527, 7, 77336, 502, 4867, 214, 31577, 139392, 5303, 1250, 18632, 37842, 903, 3714, 23742, 18, 4488, 110, 3647, 7225, 7279, 195625, 1830, 4358, 22936 ]
[ 0.1650390625, 0.043426513671875, 0.02166748046875, 0.2406005859375, 0.095703125, 0.09149169921875, 0.206298828125, 0.014862060546875, 0.2088623046875, 0.099853515625, 0.193603515625, 0.00531005859375, 0.036895751953125, 0.14794921875, 0.1800537109375, 0.10235595703125, 0.028839111328...
embed
4456778_c0
4456778
prolog
0
Title: GNU Prolog - multiplication table Problem title: GNU Prolog - multiplication table Tags: append, prolog Problem: GNU Prolog - multiplication table I have this: :- dynamic(times/3). mult :- mult([0,1,2,3,4,5,6,7,8,9]). mult(Num) :- append(L1,[X|R1],Num), append(L2,[Y|R2],Num), Prod is X*Y, assertz(times(X,Y,Prod)...
GNU Prolog - multiplication table GNU Prolog - multiplication table append prolog GNU Prolog Num Prod GNU Prolog - multiplication table I have this: Is there a better way to do this. Create a multiplication table per say with the times(X,Y,XY) facts. While this does work, i was wondering if there is a way to do it with...
[ -0.0028533935546875, 0.0255126953125, 0.03662109375, -0.00433349609375, 0.002166748046875, 0.003021240234375, -0.01153564453125, 0.01336669921875, -0.0047607421875, -0.04443359375, -0.005889892578125, 0.006439208984375, -0.01318359375, 0.0069580078125, -0.0123291015625, 0.0113525390625...
[ 165132, 1250, 4867, 127664, 1363, 23180, 114689, 71, 502, 52782, 765, 903, 11522, 3917, 54, 151313, 117, 5154, 678, 20028, 1542, 1723, 143907, 15824, 4488, 149016, 15490, 35782, 1257, 29568, 3444, 8305, 756, 35166, 113292 ]
[ 0.16259765625, 0.1431884765625, 0.198486328125, 0.192138671875, 0.09149169921875, 0.2255859375, 0.10107421875, 0.0205535888671875, 0.0863037109375, 0.099365234375, 0.04461669921875, 0.054443359375, 0.0938720703125, 0.036895751953125, 0.0491943359375, 0.1285400390625, 0.10748291015625...
embed
56810563_c0
56810563
prolog
0
Title: How to solve a knapsack problem in CLP(B) Problem title: How to solve a knapsack problem in CLP(B) Tags: prolog Problem: How to solve a knapsack problem in CLP(B) I wonder if there is a way to solve a knapsack problem in CLP(B). CLP(B) seems to be suitable, since packing an item can be modelled as a Boolean vari...
How to solve a knapsack problem in CLP(B) How to solve a knapsack problem in CLP(B) prolog How CLP How to solve a knapsack problem in CLP(B) I wonder if there is a way to solve a knapsack problem in CLP(B). CLP(B) seems to be suitable, since packing an item can be modelled as a Boolean variable. I am little bit at loss...
[ 0.004638671875, 0.0218505859375, -0.00457763671875, 0.02099609375, -0.01483154296875, 0.035888671875, -0.004974365234375, -0.0089111328125, 0.0130615234375, -0.00022029876708984375, 0.012451171875, -0.00897216796875, -0.00665283203125, 0.021240234375, 0.01025390625, 0.019775390625, 0...
[ 11249, 47, 86869, 98099, 433, 2594, 2967, 23, 313, 37352, 571, 10, 502, 4867, 32195, 3917, 37202, 202319, 43824, 35735, 831, 40030, 73783, 34677, 77336, 26168, 5609, 35431, 84046, 177399, 26279, 159, 38969, 10752, 1556, 57888, 192, 53950, 3...
[ 0.06329345703125, 0.0245208740234375, 0.1942138671875, 0.202392578125, 0.2235107421875, 0.1746826171875, 0.191162109375, 0.04754638671875, 0.06719970703125, 0.2305908203125, 0.1829833984375, 0.008270263671875, 0.1207275390625, 0.2025146484375, 0.00506591796875, 0.04766845703125, 0.02...
embed
76889355_c0
76889355
prolog
0
Title: Why this predicate is written in this way? Problem title: Why this predicate is written in this way? Tags: prolog-findall, prolog Problem: Why this predicate is written in this way? I am having a hard time to understand why the second predicate of findall is written as this instead of collect_found([],L) directl...
Why this predicate is written in this way? Why this predicate is written in this way? prolog-findall prolog Why collect_found Why this predicate is written in this way? I am having a hard time to understand why the second predicate of findall is written as this instead of collect_found([],L) directly. Is there any adva...
[ 0.0123291015625, 0.00130462646484375, 0.004669189453125, 0.0016937255859375, -0.019287109375, 0.007049560546875, 0.0079345703125, -0.00445556640625, 0.0220947265625, -0.038330078125, 0.026611328125, 0.00885009765625, -0.0198974609375, -0.0050048828125, 0.01092529296875, 0.0034942626953...
[ 44084, 903, 1653, 2063, 67, 83, 59121, 3917, 23, 502, 4867, 111607, 5584, 43799, 454, 151645, 28219, 15400, 17932, 7413, 237, 64457, 866, 105237, 92940, 32562 ]
[ 0.1383056640625, 0.0814208984375, 0.1531982421875, 0.2047119140625, 0.0904541015625, 0.0294952392578125, 0.1614990234375, 0.1158447265625, 0.02484130859375, 0.1419677734375, 0.1868896484375, 0.135009765625, 0.210205078125, 0.2286376953125, 0.049468994140625, 0.229736328125, 0.0589904...
embed
15858940_c0
15858940
prolog
0
Title: Prolog (SWI): Conjunction over a list? Problem title: Prolog (SWI): Conjunction over a list? Tags: list, prolog Problem: Prolog (SWI): Conjunction over a list? Say I have a predicate eval(A) that just evaluates to true/false depending on some input Now the thing is, I want another predicate and(List, R) that suc...
Prolog (SWI): Conjunction over a list? Prolog (SWI): Conjunction over a list? list prolog Prolog SWI Conjunction Prolog (SWI): Conjunction over a list? Say I have a predicate eval(A) that just evaluates to true/false depending on some input Now the thing is, I want another predicate and(List, R) that succeeds iff List ...
[ -0.0042724609375, 0.01171875, 0.007598876953125, 0.009765625, 0.0035247802734375, 0.020263671875, 0.01025390625, 0.0086669921875, 0.016845703125, -0.002105712890625, -0.005401611328125, 0.01422119140625, -0.0021209716796875, 0.00537109375, -0.001953125, 0.01019287109375, 0.0060119628...
[ 1250, 4867, 294, 38969, 1657, 17043, 10763, 645, 5303, 502, 10, 765, 1653, 2063, 67, 28, 1405, 284, 151575, 47, 29568, 8710, 96819, 107730, 3444, 15700, 136, 154663, 627, 214493, 32920, 32036, 201505, 158, 11907, 12830, 83, 1902, 55769, 8...
[ 0.1455078125, 0.215576171875, 0.005889892578125, 0.2027587890625, 0.06829833984375, 0.2012939453125, 0.1329345703125, 0.1796875, 0.22021484375, 0.0958251953125, 0.00714111328125, 0.002349853515625, 0.152099609375, 0.1700439453125, 0.0625, 0.0455322265625, 0.2181396484375, 0.0809936...
embed
27389177_c0
27389177
prolog
0
Title: Variable occurrence in a list of variables Problem title: Variable occurrence in a list of variables Tags: iso-prolog, prolog Problem: Variable occurrence in a list of variables Consider a (meta-logical) predicate var_in_vars(Var, Vars) which takes a variable Var and a list of variables Vars and succeeds if Var ...
Variable occurrence in a list of variables Variable occurrence in a list of variables iso-prolog prolog Variable var_in_vars Vars Variable occurrence in a list of variables Consider a (meta-logical) predicate var_in_vars(Var, Vars) which takes a variable Var and a list of variables Vars and succeeds if Var occurs in Va...
[ 0.00095367431640625, -0.006072998046875, -0.0034637451171875, 0.0250244140625, 0.004547119140625, 0.00131988525390625, -0.003662109375, 0.0081787109375, 0.0036468505859375, -0.021240234375, 0.00146484375, 0.00171661376953125, -0.00274658203125, 0.008544921875, -0.005126953125, -0.00506...
[ 84572, 2886, 74918, 42, 23, 5303, 77336, 13882, 3454, 4867, 502, 285, 73, 1961, 3323, 7, 6620, 137399, 35273, 137043, 1653, 2063, 81827, 51776, 136, 214493, 959, 3871, 63284, 83, 2684, 94928, 74413, 21533, 3917, 36510, 17408, 1250, 22751, ...
[ 0.2509765625, 0.1614990234375, 0.2081298828125, 0.15771484375, 0.065185546875, 0.17041015625, 0.28515625, 0.08380126953125, 0.095947265625, 0.2017822265625, 0.08514404296875, 0.26123046875, 0.1292724609375, 0.2498779296875, 0.267578125, 0.110107421875, 0.0296630859375, 0.0458374023...
embed
71856268_c0
71856268
prolog
0
Title: Determine next state predicate prolog Problem title: Determine next state predicate prolog Tags: prolog Problem: Determine next state predicate prolog I have a list with 5 elements, 2 black elements, 2 white, and an empty spot ("v"). I have a state represented by [w, w, v, b, b] with White player and Black playe...
Determine next state predicate prolog Determine next state predicate prolog prolog Determine next_state Determine next state predicate prolog I have a list with 5 elements, 2 black elements, 2 white, and an empty spot ("v"). I have a state represented by [w, w, v, b, b] with White player and Black player. Each player p...
[ -0.0023345947265625, 0.00604248046875, 0.00445556640625, 0.017333984375, -0.007659912109375, 0.0166015625, -0.01092529296875, 0.00836181640625, 0.02001953125, 0.0019989013671875, 0.0103759765625, 0.0230712890625, -0.0013275146484375, -0.00994873046875, -0.02392578125, -0.01385498046875...
[ 262, 30524, 13, 11737, 11341, 1653, 2063, 67, 502, 4867, 61340, 765, 10, 5303, 190, 80854, 22556, 35011, 201505, 13162, 334, 33636, 390, 434, 148, 81, 876, 22392, 58585, 10074, 98423, 11301, 15504, 831, 25813, 1632, 1919, 12830, 40225, 15...
[ 0.0980224609375, 0.195556640625, 0.035064697265625, 0.1533203125, 0.18798828125, 0.1658935546875, 0.2218017578125, 0.1201171875, 0.135986328125, 0.1883544921875, 0.189697265625, 0.0210418701171875, 0.013092041015625, 0.1549072265625, 0.0921630859375, 0.1314697265625, 0.0999755859375,...
embed
46537856_c0
46537856
prolog
0
Title: Prolog: &quot;Vanilla&quot; metainterpreter with builtins Problem title: Prolog: &quot;Vanilla&quot; metainterpreter with builtins Tags: prolog, prolog-metainterpreter Problem: Prolog: "Vanilla" metainterpreter with builtins This answer by Jan Burse shows one of the simplest implementations of a metainterpreter ...
Prolog: &quot;Vanilla&quot; metainterpreter with builtins Prolog: &quot;Vanilla&quot; metainterpreter with builtins prolog prolog-metainterpreter Prolog Vanilla Prolog: "Vanilla" metainterpreter with builtins This answer by Jan Burse shows one of the simplest implementations of a metainterpreter in Prolog: I would like...
[ 0.00299072265625, -0.00030517578125, 0.0238037109375, 0.025634765625, -0.00933837890625, 0.01806640625, -0.00009441375732421875, 0.01055908203125, -0.0069580078125, -0.041259765625, 0.01336669921875, 0.018798828125, -0.022705078125, -0.007080078125, 0.0026092529296875, -0.0126953125, ...
[ 1250, 4867, 90948, 2298, 23550, 158288, 56, 678, 88303, 5425, 502, 35273, 3000, 7362, 184, 30362, 208124, 1884, 65042, 29481, 831, 11782, 131, 1632, 18, 19048, 34831, 86869, 27417, 1542, 133063, 82449, 7722, 17368, 17408, 1653, 2063, 1636, ...
[ 0.171875, 0.22607421875, 0.1903076171875, 0.2373046875, 0.187744140625, 0.240478515625, 0.121826171875, 0.0860595703125, 0.1873779296875, 0.1829833984375, 0.138671875, 0.118408203125, 0.18408203125, 0.022735595703125, 0.04425048828125, 0.0867919921875, 0.10137939453125, 0.039642333...
embed
22750695_c0
22750695
prolog
0
Title: Tree representation of the search process for puzzle Problem title: Tree representation of the search process for puzzle Tags: algorithm, artificial-intelligence, graph-algorithm, optimization, prolog Problem: Tree representation of the search process for puzzle I am supposed to put 1 large and 3 small boxes on ...
Tree representation of the search process for puzzle Tree representation of the search process for puzzle algorithm artificial-intelligence graph-algorithm optimization prolog Tree Tree representation of the search process for puzzle I am supposed to put 1 large and 3 small boxes on the shelves as in the picture bellow...
[ 0.029541015625, 0.01055908203125, -0.00640869140625, 0.01806640625, -0.0125732421875, 0.0034027099609375, -0.0247802734375, -0.020751953125, -0.0084228515625, -0.01397705078125, 0.0014801025390625, -0.00836181640625, 0.01068115234375, 0.0216064453125, -0.001678466796875, 0.008117675781...
[ 101344, 18811, 33938, 9433, 104192, 100, 234873, 66733, 130687, 41382, 100628, 2783, 87235, 502, 4867, 134598, 3884, 106, 21334, 136, 138, 19336, 16530, 98, 2412, 3723, 237, 49726, 41566, 17368, 15440, 41170, 48302, 186351, 140909, 57888, 17262...
[ 0.28759765625, 0.223876953125, 0.22314453125, 0.1724853515625, 0.259033203125, 0.05224609375, 0.1455078125, 0.06103515625, 0.07598876953125, 0.119140625, 0.03662109375, 0.039520263671875, 0.1011962890625, 0.0226593017578125, 0.0819091796875, 0.10546875, 0.104248046875, 0.0072937011...
embed
2607679_c0
2607679
prolog
0
Title: Prolog instantiation error? Problem title: Prolog instantiation error? Tags: prolog Problem: Prolog instantiation error? I'm stuck with some sort of error which i don't really understand in Prolog. I get this error when calling a rule(which seems to work sometimes?) : error(instantiation_error,Var0) Can anyone e...
Prolog instantiation error? Prolog instantiation error? prolog Prolog instantiation_error Var0 Days Prolog instantiation error? I'm stuck with some sort of error which i don't really understand in Prolog. I get this error when calling a rule(which seems to work sometimes?) : error(instantiation_error,Var0) Can anyone e...
[ 0.0230712890625, 0.01068115234375, 0.0126953125, 0.002227783203125, -0.00750732421875, 0.0361328125, -0.01202392578125, 0.00909423828125, 0.0166015625, -0.036865234375, -0.015869140625, 0.007232666015625, -0.00506591796875, 0.0045166015625, 0.022216796875, 0.00194549560546875, 0.0198...
[ 1250, 4867, 34648, 14, 2320, 18499, 32, 502, 188800, 3323, 2389, 97292, 179933, 18, 28219, 23, 903, 159029, 79986, 37202, 4488, 68018, 143034, 81827, 77495, 73342, 26950, 6626, 91736, 5361, 1542, 38937, 7085, 55941, 65918, 1234, 1112, 49814, ...
[ 0.1947021484375, 0.2379150390625, 0.13330078125, 0.1331787109375, 0.07147216796875, 0.2010498046875, 0.005767822265625, 0.1224365234375, 0.2139892578125, 0.169189453125, 0.1700439453125, 0.1842041015625, 0.0382080078125, 0.004913330078125, 0.06451416015625, 0.00555419921875, 0.033691...
embed
19805254_c0
19805254
prolog
0
Title: how to write a recursive routine in prolog? Problem title: how to write a recursive routine in prolog? Tags: prolog Problem: how to write a recursive routine in prolog? i have a to write a routine which lists all descendants so far i wrote descend(X,Y) :- child(X,Y). descend(X,Y) :- child(X,Z), descend(Z,Y). whi...
how to write a recursive routine in prolog? how to write a recursive routine in prolog? prolog how to write a recursive routine in prolog? i have a to write a routine which lists all descendants so far i wrote which works fine so any descendent i need to find i just do descend(X,name). and it keeps giving me descendant...
[ 0.0277099609375, -0.01708984375, 0.0030975341796875, 0.0189208984375, -0.0133056640625, 0.030517578125, -0.0137939453125, 0.01470947265625, 0.021484375, -0.0301513671875, 0.0177001953125, -0.032470703125, 0.0032958984375, 0.00830078125, 0.017578125, 0.0024566650390625, 0.021118164062...
[ 3642, 33022, 195625, 5844, 124374, 23, 502, 4867, 10, 47, 5303, 756, 60887, 10840, 2060, 54397, 43240, 5885, 2499, 2517, 7413, 1542, 11627, 13695, 68772, 9351, 3173, 1193, 1369, 418, 304, 2046, 50339, 24234, 11907, 1733, 31577, 275, 15490, ...
[ 0.0750732421875, 0.19775390625, 0.2283935546875, 0.1712646484375, 0.281005859375, 0.06561279296875, 0.1533203125, 0.2327880859375, 0.05169677734375, 0.0196075439453125, 0.09381103515625, 0.0341796875, 0.1885986328125, 0.078857421875, 0.051422119140625, 0.05322265625, 0.02490234375, ...
embed
66894018_c0
66894018
prolog
0
Title: Prolog: Return a list of facts from a list of atoms Problem title: Prolog: Return a list of facts from a list of atoms Tags: prolog, list Problem: Prolog: Return a list of facts from a list of atoms I highly doubt it is possible, but I'm wondering is there is a way to transform a list of atoms into a list of fac...
Prolog: Return a list of facts from a list of atoms Prolog: Return a list of facts from a list of atoms prolog list a Prolog Mike Frank Julie Prolog: Return a list of facts from a list of atoms I highly doubt it is possible, but I'm wondering is there is a way to transform a list of atoms into a list of fact. It is ass...
[ 0.0224609375, -0.005645751953125, 0.020751953125, 0.00909423828125, -0.01416015625, 0.006103515625, 0.00013065338134765625, -0.00107574462890625, -0.00445556640625, -0.01434326171875, 0.0079345703125, 0.0135498046875, -0.01324462890625, 0.01507568359375, 0.0040283203125, 0.009643554687...
[ 1250, 4867, 173340, 5303, 111, 15824, 7, 1295, 34627, 502, 41576, 17819, 64672, 10, 103210, 92814, 7722, 149016, 3917, 47, 27198, 3934, 41591, 23742, 18, 57346, 1363, 17721, 6626, 134995, 765, 25632, 3444, 11782, 130078, 5608, 30646 ]
[ 0.150390625, 0.2470703125, 0.2265625, 0.22021484375, 0.106689453125, 0.2169189453125, 0.1131591796875, 0.13330078125, 0.2479248046875, 0.13134765625, 0.0687255859375, 0.093994140625, 0.1431884765625, 0.0191650390625, 0.04833984375, 0.1014404296875, 0.1602783203125, 0.070068359375, ...
embed
68812968_c0
68812968
prolog
0
Title: Term expansion before compiling in GNU Prolog Problem title: Term expansion before compiling in GNU Prolog Tags: gnu-prolog, prolog Problem: Term expansion before compiling in GNU Prolog Given the following tuple of directive + predicate: :- web_resource(plaintext/1, [content_type(text/plain)]). plaintext(Result...
Term expansion before compiling in GNU Prolog Term expansion before compiling in GNU Prolog gnu-prolog prolog Term GNU Prolog web_resource content_type Result Content-Type Payload old_plaintext old_payload Term expansion before compiling in GNU Prolog Given the following tuple of directive + predicate: how do I tell gp...
[ 0.0189208984375, 0.021240234375, -0.00958251953125, 0.0172119140625, -0.000362396240234375, -0.0029296875, 0.01055908203125, 0.00714111328125, 0.007415771484375, -0.04833984375, 0.023193359375, 0.0164794921875, -0.0167236328125, 0.01043701171875, 0.0169677734375, 0.0142822265625, 0.0...
[ 2994, 39, 14700, 66, 6889, 8108, 9969, 49725, 165132, 1250, 4867, 104155, 3454, 502, 1467, 60427, 10941, 50986, 126684, 70870, 196707, 17166, 63033, 10332, 7290, 22829, 21284, 8705, 8951, 5844, 997, 1653, 2063, 3642, 14192, 706, 2424, 238, ...
[ 0.1844482421875, 0.068603515625, 0.1199951171875, 0.1689453125, 0.0616455078125, 0.1473388671875, 0.154296875, 0.123779296875, 0.15771484375, 0.141357421875, 0.20458984375, 0.10693359375, 0.102783203125, 0.102783203125, 0.03369140625, 0.095458984375, 0.1173095703125, 0.113037109375...
embed
41599531_c1
41599531
prolog
1
Acc1,PossibilityList). space(Acc, Acc, Space, MaxCapacity) :- Space =< MaxCapacity, Acc \= []. space(Possibility, Acc, Space, MaxCapacity) :- item(Item, ItemSpace), not(member(Item, Acc)), NewSpace is Space + ItemSpace, NewSpace =< MaxCapacity, Acc1 = [Item|Acc], space(Possibility, Acc1, NewSpace, MaxCapacity). I trie...
Acc1,PossibilityList). space(Acc, Acc, Space, MaxCapacity) :- Space =< MaxCapacity, Acc \= []. space(Possibility, Acc, Space, MaxCapacity) :- item(Item, ItemSpace), not(member(Item, Acc)), NewSpace is Space + ItemSpace, NewSpace =< MaxCapacity, Acc1 = [Item|Acc], space(Possibility, Acc1, NewSpace, MaxCapacity). I trie...
[ -0.007080078125, 0.0172119140625, 0.00689697265625, 0.01483154296875, -0.0218505859375, 0.0242919921875, -0.0189208984375, -0.0133056640625, 0.0177001953125, -0.00958251953125, 0.035400390625, 0.0155029296875, 0.0108642578125, 0.00102996826171875, -0.02490234375, 0.0002574920654296875,...
[ 29899, 418, 7192, 12551, 83259, 154663, 32628, 284, 10060, 43045, 9920, 87926, 11, 60089, 16093, 15772, 35735, 2982, 78426, 141012, 959, 27417, 2356, 83, 997, 37842, 101630, 1810, 117, 14311, 21094, 390, 12096, 214, 70, 1528, 7464, 76199, 1...
[ 0.169921875, 0.1070556640625, 0.13232421875, 0.183837890625, 0.19287109375, 0.1766357421875, 0.189208984375, 0.0201416015625, 0.1175537109375, 0.1937255859375, 0.16748046875, 0.1409912109375, 0.0841064453125, 0.09368896484375, 0.04376220703125, 0.00006103515625, 0.201416015625, 0.1...
embed
43454559_c0
43454559
prolog
0
Title: Splitting a list with odd length into two lists equal in length in Prolog Problem title: Splitting a list with odd length into two lists equal in length in Prolog Tags: list, split, prolog Problem: Splitting a list with odd length into two lists equal in length in Prolog I am writing a predicate in Prolog to div...
Splitting a list with odd length into two lists equal in length in Prolog Splitting a list with odd length into two lists equal in length in Prolog list split prolog Splitting Prolog Splitting a list with odd length into two lists equal in length in Prolog I am writing a predicate in Prolog to divide a list into two eq...
[ -0.004241943359375, 0.0286865234375, 0.005126953125, 0.00018978118896484375, -0.01153564453125, 0.01422119140625, -0.00897216796875, 0.002410888671875, 0.005401611328125, -0.005950927734375, 0.014404296875, 0.005767822265625, -0.004791259765625, 0.0189208984375, 0.014892578125, 0.00084...
[ 46474, 1916, 5303, 678, 70270, 140909, 3934, 6626, 105950, 1250, 4867, 23, 65450, 502, 32562, 1653, 2063, 67, 101637, 27489, 18151, 4966, 20697, 4734, 47, 83, 111, 3853, 103608 ]
[ 0.1910400390625, 0.0662841796875, 0.215576171875, 0.0548095703125, 0.2064208984375, 0.1558837890625, 0.111083984375, 0.1387939453125, 0.1663818359375, 0.1619873046875, 0.2100830078125, 0.0146942138671875, 0.195556640625, 0.13037109375, 0.064453125, 0.0968017578125, 0.08837890625, 0...
embed
10066518_c0
10066518
prolog
0
Title: Prolog addition Problem title: Prolog addition Tags: prolog Problem: Prolog addition I am really stuck up with the addition predicate in prolog for long time. Any help will greatly help me.. This is my predicate : p(s(U,I), [s(A,B)|P1], T1,H(N, E), P,C) :- m(s(E,F), p(s(U,I), [s(A,B)|P1], +(C,F) ,H(N,E), P,C). E...
Prolog addition Prolog addition prolog Prolog Prolog addition I am really stuck up with the addition predicate in prolog for long time. Any help will greatly help me.. This is my predicate : p(s(U,I), [s(A,B)|P1], T1,H(N, E), P,C) :- m(s(E,F), p(s(U,I), [s(A,B)|P1], +(C,F) ,H(N,E), P,C). Everything works fine except fo...
[ 0.006256103515625, 0.02197265625, 0.0128173828125, 0.0004138946533203125, -0.0228271484375, 0.0189208984375, -0.01300048828125, -0.010986328125, 0.00830078125, -0.042724609375, 0.0208740234375, -0.0238037109375, -0.0279541015625, -0.01153564453125, 0.01025390625, -0.01458740234375, 0...
[ 1250, 4867, 66044, 502, 444, 6183, 179933, 1257, 1653, 2063, 67, 23, 4989, 1733, 4358, 6782, 915, 132, 7, 1062, 568, 284, 571, 683, 76172, 384, 418, 841, 839, 241, 436, 441, 15772, 347, 919, 997, 171581, 43240, 5885, 40494, 2831, 4, ...
[ 0.181884765625, 0.265380859375, 0.2340087890625, 0.1800537109375, 0.00701904296875, 0.0626220703125, 0.1121826171875, 0.093994140625, 0.1900634765625, 0.24560546875, 0.11865234375, 0.016082763671875, 0.01922607421875, 0.045654296875, 0.1070556640625, 0.028778076171875, 0.115844726562...
embed
19931801_c0
19931801
prolog
0
Title: What is the Prolog operator `^` (&quot;caret&quot;)? Problem title: What is the Prolog operator `^` (&quot;caret&quot;)? Tags: prolog, prolog-setof, lambda, exponentiation, iso-prolog Problem: What is the Prolog operator `^` ("caret")? What is the Prolog operator ^ ? Looking at The Prolog Built-in Directive op g...
What is the Prolog operator `^` (&quot;caret&quot;)? What is the Prolog operator `^` (&quot;caret&quot;)? prolog prolog-setof lambda exponentiation iso-prolog What Prolog What is the Prolog operator `^` ("caret")? What is the Prolog operator ^ ? Looking at The Prolog Built-in Directive op gives a list of the built-in o...
[ 0.0247802734375, -0.0048828125, 0.0189208984375, 0.005218505859375, 0.00014781951904296875, -0.001922607421875, 0.01300048828125, 0.005096435546875, 0.01080322265625, -0.02294921875, -0.0137939453125, -0.0020294189453125, -0.0289306640625, -0.00994873046875, -0.0079345703125, 0.0014190...
[ 4865, 83, 70, 1250, 4867, 39933, 8353, 8804, 18, 502, 3509, 4390, 6492, 85, 78643, 21616, 2320, 13882, 3454, 13331, 667, 24908, 73, 42666, 5844, 233, 88303, 16459, 248, 41872, 707, 1284, 2367, 17262, 43581, 35166, 34292, 73969, 12877, 983...
[ 0.033843994140625, 0.116455078125, 0.0228729248046875, 0.2064208984375, 0.2685546875, 0.26171875, 0.1669921875, 0.16259765625, 0.229248046875, 0.157470703125, 0.043731689453125, 0.080322265625, 0.12890625, 0.06939697265625, 0.153076171875, 0.1197509765625, 0.0400390625, 0.076782226...
embed
48528590_c0
48528590
prolog
0
Title: Disable auto indentation in Emacs on Windows Problem title: Disable auto indentation in Emacs on Windows Tags: emacs, prolog, auto-indent, windows, indentation Problem: Disable auto indentation in Emacs on Windows I'm currently using emacs-25.3_1 and using emacs to edit prolog files. The end of every line ends w...
Disable auto indentation in Emacs on Windows Disable auto indentation in Emacs on Windows emacs prolog auto-indent windows indentation Disable Emacs Windows Disable auto indentation in Emacs on Windows I'm currently using emacs-25.3_1 and using emacs to edit prolog files. The end of every line ends with '.' instead of ...
[ 0.021484375, -0.00177001953125, 0.01470947265625, -0.01055908203125, -0.02490234375, 0.027099609375, -0.01422119140625, 0.01177978515625, -0.0113525390625, -0.00860595703125, -0.00579833984375, 0.0244140625, -0.019287109375, 0.01446533203125, 0.0089111328125, -0.01129150390625, 0.012...
[ 6206, 2886, 1809, 18597, 22062, 85269, 4439, 3773, 23, 98, 352, 2263, 502, 4867, 21704, 54825, 17368, 7, 28174, 363, 115187, 27211, 102158, 3564, 11907, 13315, 678, 242, 5, 64457, 74, 933, 759, 124519, 2837, 51347, 217, 583, 11435, 959, ...
[ 0.1005859375, 0.1943359375, 0.2236328125, 0.20947265625, 0.1541748046875, 0.1778564453125, 0.2198486328125, 0.182861328125, 0.060546875, 0.00909423828125, 0.1009521484375, 0.1541748046875, 0.1226806640625, 0.172607421875, 0.1446533203125, 0.154541015625, 0.039947509765625, 0.132934...
embed
78025800_c1
78025800
prolog
1
) ? 4 4 Exit: list_length([],0) ? 5 4 Call: _177 is 0+1 ? 5 4 Exit: 1 is 0+1 ? 3 3 Exit: list_length([_109],1) ? 6 3 Call: _206 is 1+1 ? 6 3 Exit: 2 is 1+1 ? 2 2 Exit: list_length([_83,_109],2) ? I don't quite understand what's happening in the trace, especially after X = [_] ? ; . I do understand why list_length([],0)...
) ? 4 4 Exit: list_length([],0) ? 5 4 Call: _177 is 0+1 ? 5 4 Exit: 1 is 0+1 ? 3 3 Exit: list_length([_109],1) ? 6 3 Call: _206 is 1+1 ? 6 3 Exit: 2 is 1+1 ? 2 2 Exit: list_length([_83,_109],2) ? I don't quite understand what's happening in the trace, especially after X = [_] ? ; . I do understand why list_length([],0)...
[ -0.00567626953125, 0.017578125, -0.00238037109375, 0.02392578125, -0.01312255859375, 0.0159912109375, 0.0009002685546875, 0.0022735595703125, 0.023681640625, -0.00909423828125, 0.01153564453125, -0.004119873046875, -0.0103759765625, 0.01043701171875, 0.0157470703125, 0.0032958984375, ...
[ 1388, 705, 201, 5443, 217, 12, 5303, 23986, 927, 1065, 77495, 190, 26265, 101, 144283, 83, 757, 21748, 106, 138, 106000, 17727, 305, 139652, 179898, 116, 17168, 10461, 2301, 18, 32233, 28219, 2367, 123087, 23, 70, 144851, 7103, 1193, 2203...
[ 0.0753173828125, 0.052337646484375, 0.1995849609375, 0.1756591796875, 0.1641845703125, 0.018829345703125, 0.236572265625, 0.1607666015625, 0.1009521484375, 0.0718994140625, 0.2093505859375, 0.1099853515625, 0.2183837890625, 0.0294189453125, 0.263427734375, 0.0706787109375, 0.11901855...
embed
43187131_c0
43187131
prolog
0
Title: Check if a tree is a min heap Problem title: Check if a tree is a min heap Tags: tree, min-heap, prolog Problem: Check if a tree is a min heap How do I get a predicate in prolog to return a value? I need to find a node of a tree and also check if its a min heap or not. I'm guessing it goes something like this:- ...
Check if a tree is a min heap Check if a tree is a min heap tree min-heap prolog Check Node Val Check if a tree is a min heap How do I get a predicate in prolog to return a value? I need to find a node of a tree and also check if its a min heap or not. I'm guessing it goes something like this:- My code so far is this I...
[ 0.008056640625, -0.019775390625, 0.0031585693359375, -0.0020904541015625, 0.00665283203125, 0.024169921875, 0.00445556640625, -0.023681640625, -0.00726318359375, -0.0263671875, -0.00482177734375, 0.006103515625, 0.005523681640625, -0.019287109375, 0.022216796875, 0.0021514892578125, ...
[ 38679, 2174, 53201, 83, 10, 881, 764, 2631, 1106, 502, 4867, 438, 112, 4769, 2046, 1653, 2063, 67, 23, 30646, 34292, 3871, 7413, 110, 12765, 6863, 959, 57767, 1884, 903, 18151, 2060, 360, 7077, 10644, 13538, 5608, 29568 ]
[ 0.163330078125, 0.09124755859375, 0.2276611328125, 0.1214599609375, 0.0704345703125, 0.2587890625, 0.1741943359375, 0.193603515625, 0.1357421875, 0.1456298828125, 0.2100830078125, 0.1220703125, 0.124267578125, 0.1673583984375, 0.046417236328125, 0.141357421875, 0.1817626953125, 0.1...
embed
5018512_c0
5018512
prolog
0
Title: Beginner prolog programming Problem title: Beginner prolog programming Tags: prolog Problem: Beginner prolog programming I'm trying to learn prolog. I want to write in prolog a code for a general list of numbers. So far I have pick_numbers_general(List, N, NumList) , where List is a general list (including neste...
Beginner prolog programming Beginner prolog programming prolog Beginner pick_numbers_general List NumList Beginner prolog programming I'm trying to learn prolog. I want to write in prolog a code for a general list of numbers. So far I have pick_numbers_general(List, N, NumList) , where List is a general list (including...
[ -0.0205078125, 0.01300048828125, 0.007415771484375, -0.0159912109375, 0.003692626953125, 0.032470703125, -0.009765625, -0.00946044921875, 0.023681640625, -0.028564453125, 0.00093841552734375, -0.036376953125, -0.0166015625, 0.00384521484375, 0.00811767578125, -0.01263427734375, 0.008...
[ 67053, 56, 502, 4867, 56037, 449, 39580, 2606, 1297, 180300, 32036, 52782, 154663, 31577, 30698, 3444, 33022, 23, 18151, 4537, 5303, 101935, 2060, 454, 541, 8512, 83, 14012, 1653, 2063, 67, 214493, 117396, 170894, 12989, 6562, 5701, 339, 17...
[ 0.135986328125, 0.056640625, 0.164794921875, 0.206298828125, 0.1163330078125, 0.0186920166015625, 0.194091796875, 0.1728515625, 0.1729736328125, 0.1748046875, 0.163818359375, 0.2091064453125, 0.2391357421875, 0.0286102294921875, 0.05615234375, 0.041015625, 0.1129150390625, 0.013366...
embed
44850621_c0
44850621
prolog
0
Title: How can I write a rule that finds a number using integer/1? Problem title: How can I write a rule that finds a number using integer/1? Tags: prolog Problem: How can I write a rule that finds a number using integer/1? I am writing a rule that is looking for a particular integer. I assumed I can write something li...
How can I write a rule that finds a number using integer/1? How can I write a rule that finds a number using integer/1? prolog integer/1 How find_number NumList How can I write a rule that finds a number using integer/1? I am writing a rule that is looking for a particular integer. I assumed I can write something like ...
[ -0.0220947265625, -0.00164794921875, 0.006011962890625, 0.01251220703125, 0.00909423828125, 0.04150390625, -0.01239013671875, 0.01300048828125, 0.0078125, -0.03955078125, -0.004150390625, -0.03076171875, -0.01141357421875, 0.0250244140625, 0.0311279296875, -0.0042724609375, 0.0113525...
[ 11249, 831, 33022, 10, 79986, 7413, 14012, 17368, 892, 1505, 11583, 87, 450, 7, 502, 4867, 2606, 1297, 52782, 154663, 32562, 16487, 100, 17311, 41591, 1884, 41206, 16750, 41, 1294, 47, 1542, 1193, 55257, 76067, 107947, 98320, 175399, 2046, ...
[ 0.05853271484375, 0.06317138671875, 0.1790771484375, 0.04278564453125, 0.2291259765625, 0.158203125, 0.203125, 0.091796875, 0.1290283203125, 0.129150390625, 0.191162109375, 0.0208282470703125, 0.000823974609375, 0.03314208984375, 0.107177734375, 0.1641845703125, 0.180419921875, 0.1...
embed
27335105_c0
27335105
prolog
0
Title: Walking through the recursive factorial program in Prolog? Problem title: Walking through the recursive factorial program in Prolog? Tags: factorial, recursion, prolog Problem: Walking through the recursive factorial program in Prolog? I'm really having a hard time understanding how the recursion works in Prolog...
Walking through the recursive factorial program in Prolog? Walking through the recursive factorial program in Prolog? factorial recursion prolog Walking Prolog N-1 Walking through the recursive factorial program in Prolog? I'm really having a hard time understanding how the recursion works in Prolog. I understand the f...
[ -0.00069427490234375, -0.004486083984375, -0.0091552734375, 0.0108642578125, 0.0196533203125, -0.00579833984375, 0.0019073486328125, -0.01446533203125, -0.007049560546875, -0.00726318359375, 0.003173828125, -0.025390625, -0.032958984375, -0.004302978515625, 0.01348876953125, -0.0114135...
[ 167992, 8305, 195625, 5844, 31461, 15403, 1528, 23, 1250, 4867, 1830, 502, 541, 5759, 7941, 100094, 3642, 43240, 28219, 2831, 3647, 7225, 3564, 9454, 55681, 5908, 171859, 17932, 11782, 839, 418, 563, 17727, 73342, 98441, 26818, 83, 71924, 7...
[ 0.2049560546875, 0.098388671875, 0.2171630859375, 0.1253662109375, 0.18603515625, 0.156005859375, 0.1729736328125, 0.0640869140625, 0.177978515625, 0.26220703125, 0.1434326171875, 0.136962890625, 0.087158203125, 0.130859375, 0.00030517578125, 0.0772705078125, 0.05560302734375, 0.15...
embed
49121266_c1
49121266
prolog
1
], [2, 2], [1, 3]]. I'm close, but I think my main problem is that I'm trying to code it like I would a C++ or Java while-loop. However, that doesn't seem to be the proper way to go about it in Prolog. Any help would be much appreciated! EDIT I figured it out! After a little bit more reading, it seemed I was missing my...
], [2, 2], [1, 3]]. I'm close, but I think my main problem is that I'm trying to code it like I would a C++ or Java while-loop. However, that doesn't seem to be the proper way to go about it in Prolog. Any help would be much appreciated! EDIT I figured it out! After a little bit more reading, it seemed I was missing my...
[ -0.0010833740234375, 0.01251220703125, -0.0216064453125, 0.00836181640625, -0.01708984375, 0.0185546875, -0.0157470703125, 0.01446533203125, 0.0155029296875, -0.0098876953125, 0.0091552734375, -0.0157470703125, -0.019287109375, -0.00023365020751953125, -0.0012969970703125, -0.009094238...
[ 10114, 4, 378, 304, 116, 268, 68252, 138, 86245, 20903, 1284, 5351, 5201, 2967, 31577, 18151, 442, 1884, 2806, 37223, 707, 41925, 12960, 9, 28354, 48903, 27798, 3917, 1672, 23, 1250, 4867, 4358, 186, 77947, 172864, 26366, 16454, 115058, 1...
[ 0.1346435546875, 0.064697265625, 0.0297698974609375, 0.1468505859375, 0.16259765625, 0.036651611328125, 0.12451171875, 0.1888427734375, 0.093994140625, 0.2060546875, 0.007598876953125, 0.0233001708984375, 0.085693359375, 0.1275634765625, 0.10107421875, 0.1943359375, 0.035797119140625...
embed
37879704_c0
37879704
prolog
0
Title: SWI-Prolog, writing backwards Problem title: SWI-Prolog, writing backwards Tags: prolog Problem: SWI-Prolog, writing backwards This is a predicate that is supposed to write backwards out of a list, but since 'tab(-2)' doesn't work I was wondering if there are other predicates, or a different way of using'tab/1' ...
SWI-Prolog, writing backwards SWI-Prolog, writing backwards prolog SWI-Prolog Counter1 Counter2 Counter1-1 SWI-Prolog, writing backwards This is a predicate that is supposed to write backwards out of a list, but since 'tab(-2)' doesn't work I was wondering if there are other predicates, or a different way of using'tab/...
[ 0.020751953125, 0.01409912109375, -0.01116943359375, 0.008544921875, -0.01080322265625, 0.010986328125, 0.00848388671875, 0.01458740234375, 0.006805419921875, 0.01483154296875, 0.0157470703125, 0.0224609375, 0.004913330078125, -0.0198974609375, 0.01336669921875, 0.00653076171875, 0.0...
[ 159, 38969, 9, 10752, 4867, 32562, 4420, 19364, 502, 197956, 418, 304, 115727, 1653, 2063, 67, 134598, 33022, 1810, 5303, 9843, 132, 10461, 22027, 18, 4488, 149016, 3789, 12921, 3917, 17368, 11583, 25813, 107, 37676, 12477, 35829, 15673, 71...
[ 0.06573486328125, 0.215576171875, 0.09765625, 0.1541748046875, 0.1951904296875, 0.171142578125, 0.18408203125, 0.21533203125, 0.1390380859375, 0.1732177734375, 0.0611572265625, 0.076416015625, 0.1346435546875, 0.1585693359375, 0.2012939453125, 0.069091796875, 0.0830078125, 0.167602...
embed
46676080_c0
46676080
prolog
0
Title: Prolog - How to remove N number of members from a list Problem title: Prolog - How to remove N number of members from a list Tags: prolog, list Problem: Prolog - How to remove N number of members from a list So I'm making a predicate called removeN(List1, N, List2). It should basically function like this: remove...
Prolog - How to remove N number of members from a list Prolog - How to remove N number of members from a list prolog list a Prolog How List2 Prolog - How to remove N number of members from a list So I'm making a predicate called removeN(List1, N, List2). It should basically function like this: The first argument is a l...
[ 0.01275634765625, 0.0020599365234375, 0.008056640625, 0.0201416015625, -0.0234375, 0.0216064453125, 0.00555419921875, 0.01348876953125, 0.0150146484375, -0.00787353515625, 0.0033721923828125, -0.00115203857421875, -0.005584716796875, -0.003509521484375, 0, -0.0011138916015625, 0.0181...
[ 1250, 4867, 11249, 87388, 541, 14012, 43032, 1295, 5303, 47, 502, 32036, 304, 20662, 1653, 2063, 67, 839, 154663, 418, 10461, 5608, 198343, 32354, 1884, 903, 5117, 10750, 5701, 31, 36, 17932, 6165, 76, 50960, 184750, 1672, 47644, 140909 ]
[ 0.140869140625, 0.200927734375, 0.07281494140625, 0.2037353515625, 0.177490234375, 0.1556396484375, 0.2313232421875, 0.0809326171875, 0.206298828125, 0.012451171875, 0.110595703125, 0.161376953125, 0.0989990234375, 0.023529052734375, 0.103759765625, 0.109130859375, 0.058197021484375,...
embed
27346128_c0
27346128
prolog
0
Title: Prolog Range of Numbers Problem title: Prolog Range of Numbers Tags: prolog Problem: Prolog Range of Numbers I came across this question where someone could generate a range of numbers from Low to High. I am Very new to prolog so I am having a hard time understanding exactly how the solution works. So I was wond...
Prolog Range of Numbers Prolog Range of Numbers prolog Prolog Range Numbers Prolog Range of Numbers I came across this question where someone could generate a range of numbers from Low to High. I am Very new to prolog so I am having a hard time understanding exactly how the solution works. So I was wondering if someone...
[ 0.00830078125, 0.0186767578125, 0.00970458984375, -0.00726318359375, 0.0081787109375, 0.0198974609375, -0.0118408203125, 0.004364013671875, 0.0020751953125, -0.01123046875, -0.00787353515625, -0.017822265625, -0.0015716552734375, 0.0021820068359375, 0.0177001953125, -0.01324462890625, ...
[ 1250, 4867, 142462, 111, 103332, 502, 36880, 9655, 22008, 5809, 139392, 37457, 101935, 1295, 61187, 47, 19694, 99342, 3525, 7941, 1733, 100094, 29806, 43240, 149016, 8562, 35691, 183037, 4420, 125728, 214, 29481, 56, 51347, 28282, 1653, 2063, ...
[ 0.1964111328125, 0.271240234375, 0.241943359375, 0.076171875, 0.18505859375, 0.1513671875, 0.009918212890625, 0.01959228515625, 0.003173828125, 0.0579833984375, 0.205322265625, 0.26220703125, 0.1959228515625, 0.0426025390625, 0.1893310546875, 0.10247802734375, 0.174072265625, 0.003...
embed
47744557_c0
47744557
prolog
0
Title: Finding a path in a graph in prolog Problem title: Finding a path in a graph in prolog Tags: prolog Problem: Finding a path in a graph in prolog Let's assume I have facts in Prolog as follows: path(a,b). path(a,c). and I want to code the the function ispath(X,Y) which returns true if there is a path from X to Y ...
Finding a path in a graph in prolog Finding a path in a graph in prolog prolog Finding Finding a path in a graph in prolog Let's assume I have facts in Prolog as follows: and I want to code the the function ispath(X,Y) which returns true if there is a path from X to Y in one or more steps. It fails if X=Y . Assume an a...
[ 0.008056640625, 0.00799560546875, 0.00665283203125, 0.01129150390625, -0.0184326171875, 0.013427734375, -0.0017852783203125, -0.006500244140625, 0.00653076171875, -0.017333984375, 0.0167236328125, 0.002044677734375, -0.0311279296875, 0.003631591796875, 0.018798828125, 0.0107421875, 0...
[ 26040, 10, 60875, 23, 41382, 502, 4867, 41591, 15824, 1250, 18151, 32354, 83, 128405, 132, 1542, 4, 1723, 30646, 29568, 2174, 2685, 1295, 1193, 47, 990, 1632, 1286, 98441, 35782, 1369, 187830, 12830, 627, 5117, 11782, 118201, 110, 113, 17...
[ 0.1307373046875, 0.038299560546875, 0.26513671875, 0.0572509765625, 0.2039794921875, 0.1630859375, 0.237548828125, 0.01214599609375, 0.04571533203125, 0.1429443359375, 0.11962890625, 0.13671875, 0.1156005859375, 0.273193359375, 0.009857177734375, 0.08349609375, 0.0276031494140625, ...
embed
54219090_c0
54219090
prolog
0
Title: How do I add empty spaces in &#x27;SWISH&#x27; &#x27;Prolog&#x27;? Problem title: How do I add empty spaces in &#x27;SWISH&#x27; &#x27;Prolog&#x27;? Tags: prolog, swi-prolog-for-sharing, swi-prolog Problem: How do I add empty spaces in 'SWISH' 'Prolog'? I am using SWISH and I want to print Hanoi Towers but I don...
How do I add empty spaces in &#x27;SWISH&#x27; &#x27;Prolog&#x27;? How do I add empty spaces in &#x27;SWISH&#x27; &#x27;Prolog&#x27;? prolog swi-prolog-for-sharing swi-prolog How SWISH Prolog disk:-html background-color:powderblue ___ _____ How do I add empty spaces in 'SWISH' 'Prolog'? I am using SWISH and I want to p...
[ 0.0003986358642578125, 0.00994873046875, 0.0002231597900390625, 0.013427734375, -0.0230712890625, 0.017333984375, -0.0007476806640625, -0.0135498046875, 0.0118408203125, -0.01019287109375, 0.032470703125, -0.0010833740234375, -0.01239013671875, 0.0009307861328125, -0.00372314453125, 0....
[ 11249, 87, 15190, 201505, 32628, 7, 23, 89023, 79909, 10752, 4867, 502, 91, 2452, 3454, 2420, 2852, 61595, 1250, 28338, 7693, 76615, 46133, 434, 820, 143802, 17368, 28412, 2548, 5380, 68718, 47, 2967, 42844, 44691, 3917, 195, 7008, 4488, ...
[ 0.052032470703125, 0.00347900390625, 0.14599609375, 0.2325439453125, 0.2548828125, 0.0855712890625, 0.0439453125, 0.1546630859375, 0.20556640625, 0.1402587890625, 0.2132568359375, 0.096923828125, 0.01300048828125, 0.1829833984375, 0.1136474609375, 0.11865234375, 0.094482421875, 0.1...
embed
8297574_c0
8297574
prolog
0
Title: Difference between logic programming and functional programming Problem title: Difference between logic programming and functional programming Tags: prolog, haskell, functional-programming Problem: Difference between logic programming and functional programming I have been reading many articles trying to underst...
Difference between logic programming and functional programming Difference between logic programming and functional programming prolog haskell functional-programming Difference Difference between logic programming and functional programming I have been reading many articles trying to understand the difference between f...
[ 0.025390625, 0.01385498046875, 0.004058837890625, -0.0037841796875, 0.006103515625, 0.0279541015625, -0.011474609375, -0.0079345703125, 0.00616455078125, -0.021728515625, -0.00106048583984375, -0.0185546875, 0.00096893310546875, -0.00213623046875, 0.00860595703125, 0.006561279296875, ...
[ 803, 18234, 6620, 17721, 62775, 56037, 449, 136, 123309, 502, 4867, 1556, 142508, 28966, 16454, 5941, 28219, 60212, 8, 77391, 2060, 61924, 103391, 8305, 140363, 125195, 13580, 959, 137272, 2806, 6183, 77947, 22729, 67175 ]
[ 0.07110595703125, 0.169677734375, 0.058319091796875, 0.10272216796875, 0.245361328125, 0.229248046875, 0.1334228515625, 0.0712890625, 0.2314453125, 0.0926513671875, 0.1636962890625, 0.0887451171875, 0.2010498046875, 0.1932373046875, 0.029693603515625, 0.00311279296875, 0.063049316406...
embed
24366453_c0
24366453
prolog
0
Title: Prolog - How do I catch an error of incorrect arity? Problem title: Prolog - How do I catch an error of incorrect arity? Tags: try-catch, error-handling, prolog, prolog-toplevel, iso-prolog Problem: Prolog - How do I catch an error of incorrect arity? Not sure if the question is worded correctly or not, my apolo...
Prolog - How do I catch an error of incorrect arity? Prolog - How do I catch an error of incorrect arity? try-catch error-handling prolog prolog-toplevel iso-prolog Prolog How Data Please Prolog - How do I catch an error of incorrect arity? Not sure if the question is worded correctly or not, my apologies. Basically wh...
[ 0.003875732421875, 0.0286865234375, -0.013916015625, -0.000919342041015625, -0.01318359375, 0.020263671875, 0.00098419189453125, 0.006866455078125, -0.01373291015625, -0.00848388671875, 0.00051116943359375, -0.038330078125, -0.0157470703125, 0.017822265625, 0.0400390625, -0.01153564453...
[ 1250, 4867, 11249, 87, 105556, 18499, 111, 214552, 187, 2481, 142, 9790, 4460, 206, 54885, 502, 13784, 67919, 13882, 3454, 11809, 30607, 54, 18709, 3444, 28282, 8562, 45064, 23, 38937, 41, 1294, 8180, 765, 7228, 30646, 26008, 124519 ]
[ 0.1845703125, 0.240234375, 0.0928955078125, 0.0423583984375, 0.25, 0.2314453125, 0.0882568359375, 0.2203369140625, 0.14599609375, 0.1629638671875, 0.06573486328125, 0.0855712890625, 0.14697265625, 0.0703125, 0.1834716796875, 0.1087646484375, 0.0318603515625, 0.119873046875, 0.024...
embed
53750562_c0
53750562
prolog
0
Title: Generate a 3d List Problem title: Generate a 3d List Tags: prolog Problem: Generate a 3d List I am trying to make a List of Lists of Lists without values. If N_meses = 4 I want List =[[[A,B,C,D]]]. I get what I want ( List = [[[]]] ) but every lists have the same values as you can see in the print I attached. Ho...
Generate a 3d List Generate a 3d List prolog Generate List generate_table Num_investigadores Num_actividades N_Meses Tabela Row Generate a 3d List I am trying to make a List of Lists of Lists without values. If N_meses = 4 I want List =[[[A,B,C,D]]]. I get what I want ( List = [[[]]] ) but every lists have the same val...
[ 0.00543212890625, 0.01495361328125, -0.00286865234375, 0.01171875, -0.0198974609375, -0.005645751953125, -0.0027618408203125, -0.005645751953125, 0.0125732421875, 0.0067138671875, -0.001678466796875, -0.0004100799560546875, 0.0021514892578125, 0.034423828125, -0.015625, 0.0185546875, ...
[ 155370, 67, 10, 138, 71, 32036, 502, 4867, 139392, 22819, 52782, 42232, 1758, 7685, 71234, 15418, 541, 113709, 90, 85534, 11, 96190, 31577, 3249, 111, 15490, 142424, 3716, 201, 3444, 2203, 571, 441, 397, 2046, 2367, 1065, 1284, 11907, 530...
[ 0.17529296875, 0.032562255859375, 0.0517578125, 0.185302734375, 0.1478271484375, 0.248779296875, 0.08282470703125, 0.1490478515625, 0.1988525390625, 0.20458984375, 0.1395263671875, 0.0469970703125, 0.1080322265625, 0.0579833984375, 0.1015625, 0.012664794921875, 0.078125, 0.15783691...
embed
28116244_c0
28116244
prolog
0
Title: How Prolog&#x27;s logical update view works for assert and retract? Problem title: How Prolog&#x27;s logical update view works for assert and retract? Tags: iso-prolog, prolog, prolog-assert Problem: How Prolog's logical update view works for assert and retract? Can someone please explain the Prolog logical view...
How Prolog&#x27;s logical update view works for assert and retract? How Prolog&#x27;s logical update view works for assert and retract? iso-prolog prolog prolog-assert How Prolog How Prolog's logical update view works for assert and retract? Can someone please explain the Prolog logical view about assert and retract in...
[ 0.01007080078125, 0.0213623046875, 0.0216064453125, 0.0150146484375, 0.005218505859375, 0.0142822265625, -0.004180908203125, 0.0079345703125, 0.003204345703125, 0.0147705078125, 0.00994873046875, 0.01708984375, -0.0167236328125, -0.0107421875, 0.044677734375, 0.007080078125, 0.021728...
[ 11249, 1250, 4867, 3768, 62775, 289, 28350, 21455, 43240, 100, 237, 33657, 136, 41499, 15390, 13882, 3454, 502, 162, 73342, 1672, 41653, 18151, 5117, 11675, 30646, 29568, 221419, 127877, 98320, 3714, 15400, 110965, 86, 29062, 7030, 3559, 4040...
[ 0.060455322265625, 0.1844482421875, 0.261474609375, 0.040496826171875, 0.1895751953125, 0.1141357421875, 0.1773681640625, 0.2216796875, 0.1395263671875, 0.0577392578125, 0.08489990234375, 0.2236328125, 0.1002197265625, 0.17578125, 0.1419677734375, 0.05120849609375, 0.083984375, 0.0...
embed
54427643_c0
54427643
prolog
0
Title: how to make a clause in pyswip Problem title: how to make a clause in pyswip Tags: swi-prolog, python, prolog Problem: how to make a clause in pyswip can any one here help me to make prolog clauses inside python using pyswip like this database: man(peter). woman(adam). man(jonathan). man(paul). woman(cloe). fath...
how to make a clause in pyswip how to make a clause in pyswip swi-prolog python prolog how to make a clause in pyswip can any one here help me to make prolog clauses inside python using pyswip like this database: these are functions how can i define these prolog functions inside python through pyswip
[ 0.02197265625, 0.020751953125, -0.0135498046875, 0.0128173828125, -0.02880859375, -0.0045166015625, -0.0030517578125, -0.006256103515625, -0.006011962890625, -0.038330078125, -0.0084228515625, -0.0277099609375, -0.01007080078125, -0.01611328125, 0.00927734375, 0.006683349609375, 0.00...
[ 3642, 3249, 10, 70731, 13, 23, 57756, 2452, 254, 3454, 4867, 17198, 50828, 502, 47, 90, 46132, 63399, 32354, 61924 ]
[ 0.03167724609375, 0.10797119140625, 0.05548095703125, 0.2332763671875, 0.158203125, 0.037017822265625, 0.1429443359375, 0.2103271484375, 0.1842041015625, 0.050201416015625, 0.174072265625, 0.0509033203125, 0.09588623046875, 0.11004638671875, 0.01220703125, 0.07659912109375, 0.0539550...
embed
22545726_c0
22545726
prolog
0
Title: prolog two lists are exactly the same Problem title: prolog two lists are exactly the same Tags: list, prolog Problem: prolog two lists are exactly the same I want to write a function that returns true if two lists are exactly the same(order of elements matters). I tried it this way: same([ ], [ ]). same([H1|R1]...
prolog two lists are exactly the same prolog two lists are exactly the same list prolog prolog two lists are exactly the same I want to write a function that returns true if two lists are exactly the same(order of elements matters). I tried it this way: It returns true while two lists are the same, also I expect if I h...
[ 0.0031890869140625, 0.0205078125, 0.003173828125, -0.00384521484375, -0.000919342041015625, 0.0235595703125, -0.0224609375, 0.0184326171875, 0.00927734375, -0.03564453125, 0.03076171875, 0.0145263671875, -0.00970458984375, 0.0185546875, 0.0028076171875, -0.00518798828125, 0.013610839...
[ 502, 4867, 6626, 5303, 7, 621, 66161, 70, 5701, 3444, 33022, 32354, 30646, 29568, 2174, 80596, 111, 80854, 26866, 37842, 12960, 41206, 765, 4488, 107730, 121413, 140992, 30022 ]
[ 0.14794921875, 0.2122802734375, 0.1688232421875, 0.2178955078125, 0.050537109375, 0.0379638671875, 0.1773681640625, 0.0540771484375, 0.1796875, 0.0323486328125, 0.0802001953125, 0.1473388671875, 0.1536865234375, 0.1666259765625, 0.062164306640625, 0.140380859375, 0.010986328125, 0....
embed