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
37195074_c0
37195074
prolog
0
Title: Scramble a list of elements in Prolog using a particular predicate? Problem title: Scramble a list of elements in Prolog using a particular predicate? Tags: prolog Problem: Scramble a list of elements in Prolog using a particular predicate? so I have the following predicate which inserts an item at random into a...
Scramble a list of elements in Prolog using a particular predicate? Scramble a list of elements in Prolog using a particular predicate? prolog a Scramble Prolog Scramble a list of elements in Prolog using a particular predicate? so I have the following predicate which inserts an item at random into a list to give multi...
[ -0.0126953125, 0.004302978515625, 0.01373291015625, -0.0012359619140625, -0.006500244140625, 0.025146484375, -0.032470703125, -0.007110595703125, -0.006744384765625, -0.047119140625, 0.0257568359375, 0.00848388671875, -0.0036163330078125, 0.00836181640625, -0.002532958984375, 0.0097045...
[ 38213, 11, 40099, 5303, 80854, 23, 1250, 4867, 17368, 17311, 1653, 2063, 67, 502, 10, 25632, 183540, 35735, 96759, 8337, 48716, 51347, 3444, 33022, 15700, 9023, 2198, 13566, 30646, 35773, 1294, 32354, 1264, 561, 22062, 35509, 5773, 10002, 3...
[ 0.17333984375, 0.1671142578125, 0.22705078125, 0.1636962890625, 0.18798828125, 0.034027099609375, 0.1739501953125, 0.246826171875, 0.0753173828125, 0.1300048828125, 0.169677734375, 0.205322265625, 0.1104736328125, 0.12109375, 0.028533935546875, 0.027496337890625, 0.1043701171875, 0...
embed
67771845_c0
67771845
prolog
0
Title: PROLOG - Get a list of all the rules an entity verifies Problem title: PROLOG - Get a list of all the rules an entity verifies Tags: predicate, linguistics, prolog Problem: PROLOG - Get a list of all the rules an entity verifies I'm formalizing linguistic data into predicates and entities and doing some reasonin...
PROLOG - Get a list of all the rules an entity verifies PROLOG - Get a list of all the rules an entity verifies predicate linguistics prolog PROLOG Get PROLOG - Get a list of all the rules an entity verifies I'm formalizing linguistic data into predicates and entities and doing some reasoning in prolog. Imagine I begin...
[ 0.0235595703125, -0.013916015625, -0.0023956298828125, 0.031494140625, -0.00921630859375, 0.0098876953125, 0.01385498046875, 0.0184326171875, 0.004180908203125, -0.056884765625, 0.0233154296875, 0.0076904296875, -0.016357421875, -0.010009765625, 0.00138092041015625, 0.029052734375, 0...
[ 10514, 47510, 20, 20779, 5303, 111, 756, 70, 91736, 77630, 939, 173, 58726, 90, 1653, 2063, 67, 147158, 41637, 502, 4867, 10, 23113, 84382, 9523, 2053, 3934, 31635, 133196, 9842, 831, 2046, 20174, 1884, 136, 8560, 12765, 3642, 5941, 14099...
[ 0.2166748046875, 0.270263671875, 0.0143890380859375, 0.13623046875, 0.1932373046875, 0.07977294921875, 0.1339111328125, 0.06884765625, 0.2216796875, 0.153076171875, 0.10711669921875, 0.20947265625, 0.2208251953125, 0.139404296875, 0.1727294921875, 0.2113037109375, 0.01190185546875, ...
embed
29846343_c0
29846343
prolog
0
Title: Maximum # of up-to-date Prolog implementations with minimum overhead Problem title: Maximum # of up-to-date Prolog implementations with minimum overhead Tags: updates, prolog, installation Problem: Maximum # of up-to-date Prolog implementations with minimum overhead This is not directly a question regarding Prol...
Maximum # of up-to-date Prolog implementations with minimum overhead Maximum # of up-to-date Prolog implementations with minimum overhead updates prolog installation Maximum Prolog Maximum # of up-to-date Prolog implementations with minimum overhead This is not directly a question regarding Prolog code, but rather abou...
[ 0.02197265625, 0.00836181640625, 0.016357421875, 0.01513671875, -0.01190185546875, 0.025634765625, -0.0016021728515625, -0.0089111328125, 0.017333984375, -0.022705078125, -0.0020751953125, -0.00762939453125, -0.010009765625, -0.004486083984375, 0.0303955078125, -0.00543212890625, -0....
[ 46540, 316, 468, 111, 1257, 188, 17489, 1250, 4867, 208124, 7, 678, 15440, 645, 31251, 114419, 502, 59720, 9655, 18151, 20600, 87498, 56464, 41143, 2367, 3444, 47, 765, 98, 36279, 83, 1301, 5941, 12921, 7722, 756, 2684, 43581, 229815, 113...
[ 0.171630859375, 0.009857177734375, 0.1209716796875, 0.01141357421875, 0.0985107421875, 0.0672607421875, 0.083740234375, 0.223876953125, 0.292724609375, 0.1990966796875, 0.0382080078125, 0.05303955078125, 0.16552734375, 0.1160888671875, 0.17333984375, 0.1600341796875, 0.1710205078125,...
embed
27077880_c0
27077880
prolog
0
Title: Not in Prolog and use of Bagof Problem title: Not in Prolog and use of Bagof Tags: prolog Problem: Not in Prolog and use of Bagof I have database like this: movie(matrix,wachowski,thriller). movie(terminator, cameron, thriller). movie(Gladiator, scott, costume). movie(star wars, lucas, fantasy). movie(star trek,...
Not in Prolog and use of Bagof Not in Prolog and use of Bagof prolog Not Prolog Bagof Gladiator Director Not in Prolog and use of Bagof I have database like this: And I want to know who direct fantasy film except Abrams. I suppose I need to use 'not' predicate, but I don't know exactly how it works. But unfortunately i...
[ 0.0067138671875, 0.013427734375, 0.007720947265625, 0.01177978515625, -0.0172119140625, 0.007476806640625, -0.0032196044921875, 0.00555419921875, -0.010498046875, -0.0284423828125, -0.02587890625, -0.0034942626953125, 0.004547119140625, -0.00958251953125, 0.0029449462890625, 0.01025390...
[ 11205, 23, 1250, 4867, 4527, 111, 19413, 4390, 502, 90040, 14, 4597, 31068, 63399, 3444, 3714, 2750, 8951, 115135, 1346, 40494, 168044, 7, 3871, 10869, 1653, 2063, 67, 43240, 104272, 22027, 18, 4488, 41, 8562, 54180, 83, 959, 10, 133995, ...
[ 0.16748046875, 0.10888671875, 0.13916015625, 0.204345703125, 0.09814453125, 0.03338623046875, 0.17578125, 0.246826171875, 0.1085205078125, 0.1522216796875, 0.1549072265625, 0.1710205078125, 0.150146484375, 0.14111328125, 0.048583984375, 0.06884765625, 0.058197021484375, 0.197753906...
embed
8400025_c0
8400025
prolog
0
Title: SICStus multidimensional arrays Problem title: SICStus multidimensional arrays Tags: prolog, arrays, sicstus-prolog Problem: SICStus multidimensional arrays I want to create a multidimensional array in SICStus which woudld do pretty much the same thing as the ECLiPSe Dim function. For that I made this code, but ...
SICStus multidimensional arrays SICStus multidimensional arrays prolog arrays sicstus-prolog SICStus Array Final Count List Count1 mult2 SICStus multidimensional arrays I want to create a multidimensional array in SICStus which woudld do pretty much the same thing as the ECLiPSe Dim function. For that I made this code,...
[ 0.0301513671875, 0.01483154296875, -0.010498046875, 0.013916015625, -0.013916015625, 0.0013580322265625, -0.0142822265625, 0.005584716796875, 0.008056640625, -0.01007080078125, 0.00775146484375, -0.01239013671875, 0.0030670166015625, -0.00433349609375, 0.000629425048828125, -0.00689697...
[ 159, 102198, 2143, 6024, 157955, 10298, 4778, 502, 4867, 26536, 18253, 3454, 69253, 27188, 108210, 32036, 3869, 304, 3444, 28282, 53, 59947, 9506, 9059, 13, 45247, 32354, 903, 18151, 17883, 11343, 30957, 23, 142, 54241, 40956, 30022, 2967 ]
[ 0.111328125, 0.109375, 0.245849609375, 0.118896484375, 0.179931640625, 0.18115234375, 0.1162109375, 0.087890625, 0.1611328125, 0.0970458984375, 0.2037353515625, 0.061187744140625, 0.1539306640625, 0.0928955078125, 0.1446533203125, 0.11181640625, 0.0872802734375, 0.03375244140625, ...
embed
4625811_c0
4625811
prolog
0
Title: Prolog DCGs: Converting from programming notation to logical notation Problem title: Prolog DCGs: Converting from programming notation to logical notation Tags: dcg, prolog Problem: Prolog DCGs: Converting from programming notation to logical notation I'm trying to convert from this notation: A and (B or C) equ ...
Prolog DCGs: Converting from programming notation to logical notation Prolog DCGs: Converting from programming notation to logical notation dcg prolog programming Prolog DCGs Converting convert1 test_convert1 Prolog DCGs: Converting from programming notation to logical notation I'm trying to convert from this notation:...
[ 0.0186767578125, -0.00390625, -0.005126953125, 0.01544189453125, -0.00469970703125, 0.024169921875, -0.0177001953125, -0.01348876953125, -0.00201416015625, -0.034423828125, -0.00823974609375, 0.005340576171875, -0.0169677734375, -0.00933837890625, 0.00994873046875, 0.0098876953125, -...
[ 1250, 4867, 391, 56367, 1657, 814, 1916, 1295, 56037, 110, 22062, 47, 62775, 289, 177, 502, 96760, 418, 3034, 2271, 11549, 7, 449, 31577, 903, 5570, 8966, 1884, 136, 571, 707, 108, 132, 284, 17569, 26267, 3917, 17368, 41361, 25647, 1540...
[ 0.1334228515625, 0.20849609375, 0.0869140625, 0.2059326171875, 0.05157470703125, 0.132080078125, 0.035400390625, 0.1334228515625, 0.1055908203125, 0.17333984375, 0.097412109375, 0.1048583984375, 0.1883544921875, 0.050384521484375, 0.1248779296875, 0.0789794921875, 0.18359375, 0.044...
embed
20105324_c0
20105324
prolog
0
Title: Prolog Postorder Traversal in a general tree using univ Problem title: Prolog Postorder Traversal in a general tree using univ Tags: tree, prolog, postorder Problem: Prolog Postorder Traversal in a general tree using univ I am trying to traverse a general tree in prolog in a postorder way. I found a lot of binar...
Prolog Postorder Traversal in a general tree using univ Prolog Postorder Traversal in a general tree using univ tree prolog postorder univ Prolog Postorder Traversal List Prolog Postorder Traversal in a general tree using univ I am trying to traverse a general tree in prolog in a postorder way. I found a lot of binary ...
[ 0.021240234375, 0.0079345703125, 0.00506591796875, -0.008544921875, 0.002716064453125, 0.005340576171875, -0.0054931640625, -0.0072021484375, -0.002685546875, -0.049072265625, -0.0025482177734375, 0.00139617919921875, 0.007232666015625, -0.034423828125, -0.00146484375, 0.0172119140625,...
[ 1250, 4867, 2795, 80596, 4937, 814, 2317, 23, 4537, 53201, 17368, 51, 4371, 502, 1305, 32036, 31577, 37317, 13, 3917, 14037, 5915, 2394, 6635, 16765, 4527, 60042, 54397, 1528, 4734, 28412, 39531, 3642, 30957, 107730, 18151, 145755, 959, 289...
[ 0.134521484375, 0.227783203125, 0.1673583984375, 0.2431640625, 0.1202392578125, 0.162353515625, 0.1292724609375, 0.0177001953125, 0.155029296875, 0.234619140625, 0.05316162109375, 0.07769775390625, 0.167724609375, 0.1138916015625, 0.140869140625, 0.1121826171875, 0.048065185546875, ...
embed
56835776_c1
56835776
prolog
1
equal number of queens from black and white army of queens placed on chessboard :-use_module(library(clpfd)),use_module(library(lists)). queens(Mat,Dim,N):- Dim > 2, Ls is Dim*Dim, length(Sol, Ls), N #> 0, N #< Ls/4, domain(Sol, -1,1), list_to_matrix(Sol, Dim, Mat), row(Mat, 1, Row1), domain(Row1, -1, 0), column(Mat, ...
equal number of queens from black and white army of queens placed on chessboard :-use_module(library(clpfd)),use_module(library(lists)). queens(Mat,Dim,N):- Dim > 2, Ls is Dim*Dim, length(Sol, Ls), N #> 0, N #< Ls/4, domain(Sol, -1,1), list_to_matrix(Sol, Dim, Mat), row(Mat, 1, Row1), domain(Row1, -1, 0), column(Mat, ...
[ 0.01092529296875, -0.0111083984375, 0.0218505859375, -0.01025390625, 0.001190185546875, -0.01422119140625, 0.00579833984375, 0.01214599609375, 0.001373291015625, -0.0159912109375, -0.0035247802734375, -0.005126953125, 0.00909423828125, -0.01055908203125, -0.022216796875, -0.00048065185...
[ 105950, 14012, 111, 41, 1755, 1295, 22556, 136, 35011, 187, 1176, 158012, 98, 290, 7, 24351, 15772, 4032, 83279, 13, 150, 2844, 1294, 34937, 39557, 71, 6562, 79520, 397, 464, 839, 45247, 977, 116, 339, 83, 1639, 140909, 102588, 541, 757...
[ 0.1414794921875, 0.100341796875, 0.06549072265625, 0.1971435546875, 0.2054443359375, 0.0927734375, 0.163818359375, 0.1722412109375, 0.2099609375, 0.143310546875, 0.1636962890625, 0.1607666015625, 0.077392578125, 0.193603515625, 0.117431640625, 0.237060546875, 0.043060302734375, 0.1...
embed
65281031_c0
65281031
prolog
0
Title: Prolog - compare 2 lists that contain other lists as elements Problem title: Prolog - compare 2 lists that contain other lists as elements Tags: prolog, list, equality Problem: Prolog - compare 2 lists that contain other lists as elements I' m new to PROLOG and I find it quite challenging. I need to return T/F i...
Prolog - compare 2 lists that contain other lists as elements Prolog - compare 2 lists that contain other lists as elements prolog list equality Prolog Prolog - compare 2 lists that contain other lists as elements I' m new to PROLOG and I find it quite challenging. I need to return T/F if 2 lists have the same elements...
[ 0.0115966796875, 0.0093994140625, -0.00396728515625, 0.0205078125, -0.0137939453125, 0.0194091796875, -0.001983642578125, -0.001953125, 0.0023040771484375, 0.005584716796875, 0.0185546875, -0.003997802734375, 0.0033111572265625, 0.00506591796875, -0.0026092529296875, -0.00811767578125,...
[ 1250, 4867, 69101, 116, 5303, 7, 70541, 3789, 237, 80854, 502, 28, 161789, 3525, 10514, 47510, 7413, 32233, 223920, 47, 30646, 384, 64, 919, 2174, 5701, 105950, 19069, 72546, 58055, 124850, 79315, 101935, 136, 33172, 25647, 29479, 6044, 766...
[ 0.156494140625, 0.244384765625, 0.2088623046875, 0.1263427734375, 0.2261962890625, 0.026611328125, 0.1053466796875, 0.0830078125, 0.043609619140625, 0.164794921875, 0.135986328125, 0.05755615234375, 0.154296875, 0.03680419921875, 0.1456298828125, 0.224609375, 0.0155487060546875, 0....
embed
39222368_c0
39222368
prolog
0
Title: Datalog code not working in DrRacket Problem title: Datalog code not working in DrRacket Tags: datalog, prolog, scheme, racket Problem: Datalog code not working in DrRacket I am trying to run this prolog code in DrRacket: http://www.anselm.edu/homepage/mmalita/culpro/graf1.html #lang datalog arc(a,b). arc(b,c). ...
Datalog code not working in DrRacket Datalog code not working in DrRacket datalog prolog scheme racket Datalog DrRacket Datalog code not working in DrRacket I am trying to run this prolog code in DrRacket: http://www.anselm.edu/homepage/mmalita/culpro/graf1.html However, it is giving following error: I suspect '|' symb...
[ 0.0281982421875, 0.02392578125, -0.01019287109375, 0.049560546875, -0.0081787109375, 0.030029296875, -0.019775390625, -0.01007080078125, -0.01275634765625, -0.044677734375, -0.0072021484375, -0.022705078125, -0.03076171875, -0.0164794921875, 0.0201416015625, -0.0166015625, 0.00222778...
[ 11809, 4867, 18151, 959, 20697, 1773, 12248, 27853, 2053, 502, 150370, 673, 23, 31577, 11675, 1428, 39, 15246, 18023, 29939, 8972, 3454, 26583, 418, 7693, 68772, 25632, 18499, 92610, 58745, 26582, 8035, 12301, 237, 10336, 46741, 38310, 748, ...
[ 0.1055908203125, 0.1951904296875, 0.193359375, 0.06134033203125, 0.1348876953125, 0.114501953125, 0.1171875, 0.195068359375, 0.0555419921875, 0.1375732421875, 0.0977783203125, 0.044952392578125, 0.0286712646484375, 0.00933837890625, 0.0626220703125, 0.0552978515625, 0.0706787109375, ...
embed
13204768_c1
13204768
prolog
1
(MoviesIn,LenMoviesIn),%Sees how many movies there are. ( LenMoviesIn ==0; ( append(ActorsName,ActorList,UpdatedActorList),%this causes errors! globalStartingActor(GSAName),%asserted starting actor assert(connectedActors(GSAName,ActorsName,MovieList)), %says that the GSAName is connected to ActorsName by a list of movi...
(MoviesIn,LenMoviesIn),%Sees how many movies there are. ( LenMoviesIn ==0; ( append(ActorsName,ActorList,UpdatedActorList),%this causes errors! globalStartingActor(GSAName),%asserted starting actor assert(connectedActors(GSAName,ActorsName,MovieList)), %says that the GSAName is connected to ActorsName by a list of movi...
[ -0.000408172607421875, 0.02978515625, 0.01409912109375, 0.01953125, 0.0024871826171875, 0.01385498046875, -0.00811767578125, 0.0361328125, 0.0322265625, -0.047119140625, 0.0179443359375, -0.0140380859375, -0.002105712890625, 0.0123291015625, 0.0225830078125, 0.004058837890625, 0.0189...
[ 187430, 7, 4153, 866, 33, 3949, 4233, 90, 3642, 5941, 72304, 2685, 621, 18226, 2203, 145407, 114689, 71, 39450, 22230, 163612, 284, 18770, 154663, 152872, 100231, 113660, 18499, 38, 7964, 126597, 214, 724, 35429, 15516, 16865, 72134, 39329, ...
[ 0.2076416015625, 0.06134033203125, 0.2452392578125, 0.09747314453125, 0.14404296875, 0.040740966796875, 0.16796875, 0.10235595703125, 0.07501220703125, 0.112548828125, 0.2091064453125, 0.08209228515625, 0.0863037109375, 0.1904296875, 0.003173828125, 0.1575927734375, 0.26416015625, ...
embed
27211579_c0
27211579
prolog
0
Title: Prolog - true if binary relation is symmetric Problem title: Prolog - true if binary relation is symmetric Tags: symmetric, relation, prolog Problem: Prolog - true if binary relation is symmetric I have binary relations and I want to get result true if all binary relations are symmetric, otherwise false. So far ...
Prolog - true if binary relation is symmetric Prolog - true if binary relation is symmetric symmetric relation prolog Prolog Prolog - true if binary relation is symmetric I have binary relations and I want to get result true if all binary relations are symmetric, otherwise false. So far I have this: Where the result is...
[ -0.01019287109375, 0.0111083984375, 0.0235595703125, 0.003082275390625, 0.00107574462890625, 0.00848388671875, -0.011474609375, 0.011474609375, -0.00921630859375, -0.021728515625, -0.013671875, 0.01287841796875, -0.0186767578125, 0.0023193359375, 0.004058837890625, 0.010009765625, 0....
[ 1250, 4867, 29568, 2174, 2394, 6635, 41911, 83, 230612, 238, 502, 765, 91582, 3444, 47, 2046, 16750, 756, 120262, 98320, 2060, 2685, 110, 139505, 5928, 1108, 55501, 65557, 165304, 1052, 244033, 425, 237, 17368, 159, 38969, 10752 ]
[ 0.1649169921875, 0.2232666015625, 0.1834716796875, 0.0850830078125, 0.20849609375, 0.16845703125, 0.2186279296875, 0.0457763671875, 0.2481689453125, 0.1114501953125, 0.10479736328125, 0.02484130859375, 0.1998291015625, 0.06536865234375, 0.021697998046875, 0.0654296875, 0.139526367187...
embed
30830979_c0
30830979
prolog
0
Title: Use of conditionals in Prolog Problem title: Use of conditionals in Prolog Tags: prolog, syntax Problem: Use of conditionals in Prolog I am confused about how conditionals are used in prolog. While Example 1 is the case for a conditional, Example 2 shows a case where it says NewPos = Exit on the other side of th...
Use of conditionals in Prolog Use of conditionals in Prolog prolog syntax Use Prolog NewPos Exit Current Cost backtrack_path Visited RPath Use of conditionals in Prolog I am confused about how conditionals are used in prolog. While Example 1 is the case for a conditional, Example 2 shows a case where it says NewPos = E...
[ 0.0191650390625, 0.004547119140625, 0.01544189453125, 0.0177001953125, -0.030029296875, 0.040771484375, 0.0157470703125, -0.007476806640625, 0.00341796875, -0.0023345947265625, 0.006805419921875, 0.004669189453125, -0.000701904296875, 0.00016307830810546875, 0.002471923828125, -0.00271...
[ 36836, 35431, 16765, 23, 1250, 4867, 502, 6002, 86531, 2356, 7192, 7, 5443, 217, 114063, 63099, 4420, 125728, 128405, 98684, 10519, 55681, 3642, 621, 11814, 89536, 7225, 289, 116, 3789, 5609, 39933, 175199, 105950, 34292, 95486, 142424, 62822...
[ 0.124755859375, 0.256103515625, 0.2291259765625, 0.05523681640625, 0.190185546875, 0.2490234375, 0.1556396484375, 0.0723876953125, 0.0911865234375, 0.151123046875, 0.1788330078125, 0.1280517578125, 0.1339111328125, 0.1298828125, 0.117919921875, 0.130859375, 0.0618896484375, 0.13146...
embed
38208601_c0
38208601
prolog
0
Title: Getting all siblings together in Prolog Problem title: Getting all siblings together in Prolog Tags: prolog Problem: Getting all siblings together in Prolog I am trying to get all siblings together in following code: father_child(tom, sally). father_child(john, alfred). father_child(george, peter). father_child(...
Getting all siblings together in Prolog Getting all siblings together in Prolog prolog Getting Prolog father_child Getting all siblings together in Prolog I am trying to get all siblings together in following code: But it gives only pairs. If I did not know how many siblings are there and I want have a list of lists of...
[ 0.000885009765625, -0.00555419921875, -0.00555419921875, 0.00244140625, -0.02490234375, 0.003753662109375, -0.01171875, 0.00994873046875, 0.00775146484375, -0.04833984375, 0.0211181640625, -0.0159912109375, -0.01025390625, -0.00494384765625, 0.0057373046875, 0.014892578125, -0.003204...
[ 210732, 756, 78, 79298, 7, 25842, 1250, 4867, 23, 502, 67373, 206, 38472, 31577, 2046, 25632, 18151, 76199, 4734, 80836, 959, 3714, 5941, 2685, 765, 5303, 28960, 111240 ]
[ 0.08966064453125, 0.16357421875, 0.136962890625, 0.2337646484375, 0.0965576171875, 0.20166015625, 0.1463623046875, 0.229736328125, 0.0238189697265625, 0.1024169921875, 0.1378173828125, 0.080078125, 0.1124267578125, 0.0267486572265625, 0.0882568359375, 0.00946044921875, 0.084838867187...
embed
7548662_c0
7548662
prolog
0
Title: Require help understanding a prolog method for appending list elements Problem title: Require help understanding a prolog method for appending list elements Tags: list, prolog Problem: Require help understanding a prolog method for appending list elements append([],Xs,Xs). append([Head|Tail],List2,[Head|Tail2]):...
Require help understanding a prolog method for appending list elements Require help understanding a prolog method for appending list elements list prolog Require Head Tail List2 Tail2 Require help understanding a prolog method for appending list elements The upper append method adds elements from first two parameter sl...
[ 0.00567626953125, 0.0177001953125, 0.01251220703125, 0.00958251953125, 0.003448486328125, 0.0286865234375, -0.006927490234375, -0.00092315673828125, 0.0303955078125, 0.00034332275390625, 0.0213623046875, -0.03564453125, -0.0162353515625, 0.00823974609375, 0.002044677734375, -0.00811767...
[ 3181, 4358, 100094, 502, 4867, 55300, 1747, 96819, 5303, 80854, 44816, 1218, 379, 32036, 304, 1407, 56, 114689, 71, 15190, 7, 1295, 5117, 6626, 171859, 121892, 50960, 121, 39, 77336, 3917, 1957, 98441, 25793, 78458, 44691, 54753, 17550, 824...
[ 0.10302734375, 0.06353759765625, 0.09326171875, 0.13818359375, 0.20849609375, 0.16455078125, 0.07623291015625, 0.116455078125, 0.1683349609375, 0.1983642578125, 0.069580078125, 0.0382080078125, 0.0408935546875, 0.1190185546875, 0.0673828125, 0.1435546875, 0.107421875, 0.23022460937...
embed
34119675_c0
34119675
prolog
0
Title: Unable to use user-defined operator in Prolog Problem title: Unable to use user-defined operator in Prolog Tags: operators, user-defined, prolog Problem: Unable to use user-defined operator in Prolog I've been stuck for quite some time on this issue, my Prolog program has the following line within its operator d...
Unable to use user-defined operator in Prolog Unable to use user-defined operator in Prolog operators user-defined prolog Unable Prolog ERROR Thread pdt_console_client_0_Default Process Undefined DWIM Unable to use user-defined operator in Prolog I've been stuck for quite some time on this issue, my Prolog program has ...
[ 0.0179443359375, -0.001922607421875, 0.0322265625, 0.020751953125, -0.008056640625, 0.005340576171875, -0.000438690185546875, 0.01513671875, -0.01287841796875, -0.0478515625, -0.00958251953125, -0.0218505859375, -0.002777099609375, -0.01708984375, 0.0026702880859375, -0.002899169921875...
[ 992, 2886, 4527, 38937, 112, 5983, 297, 39933, 23, 1250, 4867, 502, 151206, 136719, 13384, 40777, 222978, 2389, 187423, 11, 123996, 79912, 30439, 17199, 179933, 1528, 25632, 13315, 80934, 15824, 9790, 17378, 442, 9232, 959, 28219, 15400, 9050...
[ 0.036285400390625, 0.12158203125, 0.12158203125, 0.1705322265625, 0.1004638671875, 0.206298828125, 0.0212860107421875, 0.26904296875, 0.038055419921875, 0.162353515625, 0.2359619140625, 0.1236572265625, 0.08612060546875, 0.1297607421875, 0.1195068359375, 0.09490966796875, 0.130493164...
embed
47586185_c0
47586185
prolog
0
Title: How can I loop this function through the same list multiple times? Problem title: How can I loop this function through the same list multiple times? Tags: loops, prolog Problem: How can I loop this function through the same list multiple times? I have this code to iterate through a list a replace characters in i...
How can I loop this function through the same list multiple times? How can I loop this function through the same list multiple times? loops prolog How I-1 Line Index NumElm Elm NLine BLine Index1 NumElm1 NumElm-1 How can I loop this function through the same list multiple times? I have this code to iterate through a li...
[ -0.00323486328125, 0.0029754638671875, 0.011474609375, 0.00714111328125, -0.00750732421875, -0.00070953369140625, -0.0024261474609375, 0.00640869140625, 0.0311279296875, 0.00970458984375, 0.00592041015625, 0.00135040283203125, -0.001007080078125, -0.00994873046875, 0.00732421875, 0.017...
[ 11249, 831, 87, 40956, 903, 32354, 8305, 5701, 5303, 48716, 20028, 7, 502, 4867, 5759, 16777, 31471, 52782, 7623, 39, 540, 93232, 18151, 8560, 91995, 124850, 8337, 10, 2046, 990, 2203, 275, 1690, 876, 54, 24145, 25632 ]
[ 0.045196533203125, 0.0692138671875, 0.0260467529296875, 0.2352294921875, 0.074951171875, 0.1746826171875, 0.142822265625, 0.119140625, 0.1986083984375, 0.227783203125, 0.22802734375, 0.053253173828125, 0.09747314453125, 0.1600341796875, 0.074951171875, 0.0924072265625, 0.128173828125...
embed
48156852_c0
48156852
prolog
0
Title: Replacing atom with corresponding value from a list in Prolog Problem title: Replacing atom with corresponding value from a list in Prolog Tags: list, prolog Problem: Replacing atom with corresponding value from a list in Prolog I have the following code. I pass in an atom as the first argument a list of equalit...
Replacing atom with corresponding value from a list in Prolog Replacing atom with corresponding value from a list in Prolog list prolog a Replacing Prolog VariablesIn Answer exp_symbols VariablesOut Args ArgsSWithSym Replacing atom with corresponding value from a list in Prolog I have the following code. I pass in an a...
[ -0.000946044921875, 0.00335693359375, 0.014404296875, 0.01531982421875, 0.0031890869140625, 0.006500244140625, 0.0185546875, 0.021240234375, 0.0035247802734375, -0.004974365234375, 0.01104736328125, 0.0174560546875, 0.016357421875, -0.010009765625, 0.011962890625, -0.002655029296875, ...
[ 853, 133266, 214, 34627, 678, 42518, 34292, 1295, 5303, 1250, 4867, 502, 111477, 13566, 4153, 130373, 14700, 176726, 79858, 1172, 194583, 4650, 23, 25632, 18151, 27875, 5117, 10750, 105950, 31075, 17932, 3444, 30646, 59499, 11782, 114149, 10, ...
[ 0.06292724609375, 0.15283203125, 0.021148681640625, 0.239990234375, 0.08935546875, 0.1107177734375, 0.1722412109375, 0.081787109375, 0.18603515625, 0.1431884765625, 0.221435546875, 0.10888671875, 0.131591796875, 0.057861328125, 0.004669189453125, 0.1527099609375, 0.1444091796875, 0...
embed
64613890_c0
64613890
prolog
0
Title: Prolog unification broken when argument order is changed Problem title: Prolog unification broken when argument order is changed Tags: logic, unification, prolog Problem: Prolog unification broken when argument order is changed I can’t seem to wrap my head around this. Consider the following dummy predicate: foo...
Prolog unification broken when argument order is changed Prolog unification broken when argument order is changed logic unification prolog Prolog Redo test:foo Prolog unification broken when argument order is changed I can’t seem to wrap my head around this. Consider the following dummy predicate: When consulting: I am...
[ 0.0174560546875, -0.00104522705078125, 0.019775390625, 0.00201416015625, -0.016357421875, -0.005706787109375, -0.0107421875, 0.0015106201171875, 0.0103759765625, 0.0296630859375, -0.002471923828125, 0.011962890625, -0.00909423828125, -0.01434326171875, 0.0101318359375, -0.024658203125,...
[ 1250, 4867, 51, 41274, 148431, 3229, 10750, 12989, 98816, 62775, 502, 6096, 31, 3034, 3584, 10336, 8473, 1176, 1653, 2063, 75463, 28219, 44126, 6275, 75935, 109954, 6626, 7722, 5775, 76755, 40383, 144851, 58072, 1019, 10, 35782, 55681, 15400,...
[ 0.1671142578125, 0.2247314453125, 0.1685791015625, 0.158203125, 0.168212890625, 0.045562744140625, 0.224853515625, 0.1915283203125, 0.16845703125, 0.12646484375, 0.0775146484375, 0.1328125, 0.154052734375, 0.1588134765625, 0.1038818359375, 0.006988525390625, 0.048431396484375, 0.05...
embed
23815952_c0
23815952
prolog
0
Title: Prolog - Arguments are not sufficiently instantiated Problem title: Prolog - Arguments are not sufficiently instantiated Tags: arguments, instantiation-error, prolog Problem: Prolog - Arguments are not sufficiently instantiated I am writing a little program which counts how many elements in a list are not number...
Prolog - Arguments are not sufficiently instantiated Prolog - Arguments are not sufficiently instantiated arguments instantiation-error prolog Prolog Arguments not_number Tail Result ERROR Exception _G247 Prolog - Arguments are not sufficiently instantiated I am writing a little program which counts how many elements i...
[ 0.0098876953125, 0.0162353515625, 0.01361083984375, -0.00531005859375, 0.01397705078125, 0.028564453125, 0.00153350830078125, -0.020263671875, 0.014404296875, -0.000537872314453125, 0.017578125, -0.048583984375, 0, 0.02587890625, 0.0198974609375, -0.0027618408203125, 0.03369140625, ...
[ 1250, 4867, 112140, 7, 621, 959, 129980, 538, 34648, 14, 27686, 10750, 188800, 502, 2606, 1297, 1218, 379, 126684, 151206, 24638, 5443, 63928, 724, 142430, 32562, 10176, 1528, 54529, 3642, 5941, 80854, 5303, 101935, 18151, 71924, 1884, 903, ...
[ 0.178955078125, 0.2425537109375, 0.262451171875, 0.0858154296875, 0.092041015625, 0.159423828125, 0.1839599609375, 0.052520751953125, 0.1474609375, 0.126953125, 0.078369140625, 0.196044921875, 0.1600341796875, 0.12744140625, 0.09454345703125, 0.0343017578125, 0.1116943359375, 0.109...
embed
16878008_c0
16878008
prolog
0
Title: Correctly building up a list in Prolog Problem title: Correctly building up a list in Prolog Tags: recursion, prolog, list Problem: Correctly building up a list in Prolog I'm attempting to write a predicate to remove elements from an ordered list in Prolog. This is part of a homework assignment and I'm very conf...
Correctly building up a list in Prolog Correctly building up a list in Prolog recursion prolog list Correctly Prolog Correctly building up a list in Prolog I'm attempting to write a predicate to remove elements from an ordered list in Prolog. This is part of a homework assignment and I'm very confused about how Prolog'...
[ -0.023193359375, 0.0289306640625, 0.0191650390625, -0.00830078125, -0.016845703125, 0.026123046875, -0.019775390625, 0.006591796875, 0.01129150390625, -0.0091552734375, 0.0185546875, -0.0036163330078125, 0.0045166015625, 0.00677490234375, 0.0033416748046875, 0.023193359375, 0.0095825...
[ 46348, 15390, 33976, 1257, 5303, 23, 1250, 4867, 195625, 1830, 502, 81887, 33022, 1653, 2063, 67, 87388, 80854, 1295, 12989, 5368, 18244, 95486, 55681, 484, 109109, 4488, 9790, 32354, 69236, 4216, 2037, 133063, 339, 98320, 144851, 959, 134598...
[ 0.1107177734375, 0.08441162109375, 0.184814453125, 0.1588134765625, 0.2001953125, 0.0538330078125, 0.1734619140625, 0.2493896484375, 0.1771240234375, 0.0286865234375, 0.11572265625, 0.0211639404296875, 0.0135498046875, 0.0875244140625, 0.10498046875, 0.022979736328125, 0.129028320312...
embed
17741804_c0
17741804
prolog
0
Title: Construct clause step by step Problem title: Construct clause step by step Tags: prolog Problem: Construct clause step by step I would like to construct a clause after a series of steps. For instance, if i verify a condition then i assert a part of a clause. If "the pen is red" i obtain: color(pen, red) if "the ...
Construct clause step by step Construct clause step by step prolog Construct Construct clause step by step I would like to construct a clause after a series of steps. For instance, if i verify a condition then i assert a part of a clause. If "the pen is red" i obtain: if "the pen is on the table": if "the table is blue...
[ 0.01336669921875, 0.005828857421875, -0.0216064453125, 0.0279541015625, -0.01190185546875, 0.01129150390625, 0.0016021728515625, 0.003936767578125, 0.015380859375, -0.0216064453125, -0.01007080078125, 0.0179443359375, -0.006744384765625, -0.00616455078125, 0.0205078125, 0.0131225585937...
[ 1657, 36716, 70731, 13, 29954, 390, 502, 4867, 1884, 64549, 10, 7103, 36549, 98441, 2174, 493, 40383, 35431, 237, 33657, 2831, 2347, 5551, 83, 4842, 113054, 98, 23180, 57571, 3564, 2046, 183540, 2704, 23, 173591, 11435, 7986, 21373, 8, 77...
[ 0.08892822265625, 0.2305908203125, 0.26416015625, 0.1864013671875, 0.1326904296875, 0.047760009765625, 0.1004638671875, 0.154296875, 0.1058349609375, 0.2398681640625, 0.0268402099609375, 0.1015625, 0.08135986328125, 0.1728515625, 0.00396728515625, 0.1387939453125, 0.15478515625, 0....
embed
19392126_c0
19392126
prolog
0
Title: Acessing position i,j in prolog (joining predicates) Problem title: Acessing position i,j in prolog (joining predicates) Tags: matrix, prolog, list, indexing Problem: Acessing position i,j in prolog (joining predicates) Can anyone tell how can I join these two predicates, listAt([L1|L2], 0, L) :- L = L1. listAt(...
Acessing position i,j in prolog (joining predicates) Acessing position i,j in prolog (joining predicates) matrix prolog list indexing list Acessing Acessing position i,j in prolog (joining predicates) Can anyone tell how can I join these two predicates, , so I can acess element [i][j] from list of lists? I can do it ma...
[ -0.011474609375, -0.0033721923828125, 0.005401611328125, -0.00775146484375, -0.008544921875, 0.0186767578125, -0.0021209716796875, 0.038818359375, 0.01007080078125, -0.0439453125, 0.0186767578125, 0.00469970703125, -0.01116943359375, -0.037109375, -0.0086669921875, 0.005889892578125, ...
[ 70280, 38001, 19069, 17, 4, 170, 23, 502, 4867, 513, 14653, 1653, 2063, 1636, 50944, 5303, 63262, 14192, 3642, 831, 33284, 6097, 6626, 10, 26531, 12830, 14, 29839, 1295, 23009, 32562, 5, 2424, 11435, 33022, 120592 ]
[ 0.1492919921875, 0.1732177734375, 0.1871337890625, 0.13232421875, 0.053558349609375, 0.216552734375, 0.04351806640625, 0.1353759765625, 0.21142578125, 0.1256103515625, 0.0694580078125, 0.17041015625, 0.1962890625, 0.09796142578125, 0.104736328125, 0.1630859375, 0.053863525390625, 0...
embed
67446830_c2
67446830
prolog
2
uzzle(Puzzle, Espacos). And the expected result is: Puzzle = [[[0, 0], [0, 0], [0, 0], [17, 0], [10, 0]], [[0, 0], [24, 0], [11, 3], P24, P25], [[0, 16], P32, P33, P34, P35], [[0, 26], P42, P43, P44, P45], [[0, 17], P52, P53, [...|...]|...]], Espacos = [espaco(3, [P24, P25]), espaco(16, [P32, P33, P34, P35]), espaco(26...
uzzle(Puzzle, Espacos). And the expected result is: Puzzle = [[[0, 0], [0, 0], [0, 0], [17, 0], [10, 0]], [[0, 0], [24, 0], [11, 3], P24, P25], [[0, 16], P32, P33, P34, P35], [[0, 26], P42, P43, P44, P45], [[0, 17], P52, P53, [...|...]|...]], Espacos = [espaco(3, [P24, P25]), espaco(16, [P32, P33, P34, P35]), espaco(26...
[ 0.0004367828369140625, -0.01348876953125, -0.01263427734375, 0.0247802734375, -0.026611328125, 0.002777099609375, -0.0179443359375, -0.0086669921875, 0.014892578125, 0.01068115234375, 0.01239013671875, 0.004486083984375, 0.0169677734375, 0.00482177734375, -0.015380859375, -0.0032348632...
[ 958, 51418, 132, 27559, 13894, 133, 4, 75760, 7840, 194, 3493, 70, 84751, 16750, 83, 12, 179277, 2203, 2389, 757, 2489, 963, 2357, 1662, 138, 436, 2588, 611, 6460, 9185, 10289, 5843, 1381, 13023, 11548, 12465, 4633, 729, 12744, 14226, 7...
[ 0.1473388671875, 0.290771484375, 0.04583740234375, 0.1702880859375, 0.217529296875, 0.1883544921875, 0.004974365234375, 0.2332763671875, 0.237060546875, 0.03033447265625, 0.0557861328125, 0.02789306640625, 0.228515625, 0.173583984375, 0.06781005859375, 0.0023193359375, 0.32470703125,...
embed
28010736_c0
28010736
prolog
0
Title: List less in Prolog Problem title: List less in Prolog Tags: prolog Problem: List less in Prolog I want to write a predicate for 2 lists list_less(L1, L2) that is true if the list L1 is less than the list L2 with respect to the ordering below: list_less(L1, L2) iff Let L1' := complement(L1,L2), L2' := complement...
List less in Prolog List less in Prolog prolog List Prolog list_less max_list Max Rest List less in Prolog I want to write a predicate for 2 lists list_less(L1, L2) that is true if the list L1 is less than the list L2 with respect to the ordering below: and the output something like this : I started with this :
[ -0.015625, 0.01171875, 0.01080322265625, 0.019287109375, -0.01495361328125, 0.0106201171875, 0.00830078125, -0.00579833984375, 0.0166015625, 0.00157928466796875, 0.0198974609375, 0.0277099609375, 0.01300048828125, 0.006591796875, 0.0093994140625, -0.0030517578125, 0.005584716796875, ...
[ 32036, 40715, 23, 1250, 4867, 502, 5303, 9393, 18389, 6562, 9920, 49756, 3444, 33022, 1653, 2063, 67, 116, 7, 866, 418, 339, 10461, 29568, 83, 3501, 304, 12989, 214, 35064, 140992 ]
[ 0.1893310546875, 0.286865234375, 0.0303955078125, 0.150634765625, 0.219970703125, 0.11383056640625, 0.1881103515625, 0.2335205078125, 0.1279296875, 0.1661376953125, 0.118896484375, 0.1614990234375, 0.035980224609375, 0.07891845703125, 0.1268310546875, 0.1612548828125, 0.0921630859375...
embed
33589493_c0
33589493
prolog
0
Title: What is this prolog output trying to say? Problem title: What is this prolog output trying to say? Tags: prolog Problem: What is this prolog output trying to say? Years ago in college,I tinkered with some prolog, but that's long forgotten, so I count as a complete beginnner again (humbling!) Anyway, I was playin...
What is this prolog output trying to say? What is this prolog output trying to say? prolog What Solution What is this prolog output trying to say? Years ago in college,I tinkered with some prolog, but that's long forgotten, so I count as a complete beginnner again (humbling!) Anyway, I was playing with some of Bruce Ta...
[ 0.0174560546875, -0.00167083740234375, 0.004608154296875, 0.00457763671875, -0.017578125, 0.01361083984375, -0.026611328125, -0.01324462890625, 0.00933837890625, 0.0179443359375, -0.00946044921875, -0.0159912109375, -0.00665283203125, -0.01092529296875, -0.009033203125, 0.0049743652343...
[ 4865, 83, 903, 502, 4867, 140992, 31577, 47, 5154, 187895, 42552, 6650, 23, 40466, 49947, 240764, 54529, 28484, 9842, 13857, 13438, 79298, 75169, 678, 112297, 1218, 67, 18151, 17569, 8932, 38067, 3115, 814, 4393, 23817, 425, 1126, 6712, 116...
[ 0.11865234375, 0.069091796875, 0.12646484375, 0.1949462890625, 0.25634765625, 0.2421875, 0.1744384765625, 0.0828857421875, 0.153076171875, 0.2296142578125, 0.0212249755859375, 0.0181427001953125, 0.01055908203125, 0.10369873046875, 0.03558349609375, 0.03570556640625, 0.04302978515625...
embed
38479214_c0
38479214
prolog
0
Title: How to use member predicate to specify constraints in prolog Problem title: How to use member predicate to specify constraints in prolog Tags: prolog, constraint-programming, clpfd Problem: How to use member predicate to specify constraints in prolog I'm trying to write a Prolog program which does the following:...
How to use member predicate to specify constraints in prolog How to use member predicate to specify constraints in prolog prolog constraint-programming clpfd How Relations TargetFeat Result One How to use member predicate to specify constraints in prolog I'm trying to write a Prolog program which does the following: I ...
[ -0.0031890869140625, -0.015625, 0.0235595703125, -0.0000934600830078125, 0.006072998046875, -0.007720947265625, -0.009033203125, 0.0157470703125, -0.00445556640625, -0.052001953125, 0.0037994384765625, -0.0018463134765625, -0.002716064453125, -0.0037841796875, 0.015380859375, -0.011901...
[ 11249, 4527, 32786, 1653, 2063, 67, 40140, 18929, 158, 2816, 4288, 502, 4867, 28966, 71, 116822, 160017, 30154, 257, 126684, 6561, 23, 33022, 1250, 1528, 91582, 61924, 5303, 420, 418, 76172, 26950, 27117, 91, 17727, 66139, 21320, 133291, 28...
[ 0.0106201171875, 0.0831298828125, 0.2587890625, 0.166748046875, 0.1790771484375, 0.05804443359375, 0.1531982421875, 0.0643310546875, 0.09991455078125, 0.19482421875, 0.171142578125, 0.1474609375, 0.2291259765625, 0.0924072265625, 0.003997802734375, 0.15478515625, 0.1937255859375, 0...
embed
7386833_c0
7386833
prolog
0
Title: Prolog - Formatting crossword Problem title: Prolog - Formatting crossword Tags: crossword, formatting, prolog Problem: Prolog - Formatting crossword I've written a predicate called solve_crossword that looks like this: solve_crossword(X,C):- C= [A1,A2,A3,A4,A5, B1,' ',B3, ' ', B5, C1, C2,C3,C4,C5, D1,' ',D3,' '...
Prolog - Formatting crossword Prolog - Formatting crossword crossword formatting prolog Prolog Formatting solve_crossword write_crossword DITCH DITTO EARLY DISTR DITTY DODGE EARED EARTH EASEL HONOR HOOEY HORDE TUQUE TURPS TUTOR TWAIN Prolog - Formatting crossword I've written a predicate called solve_crossword that loo...
[ -0.01104736328125, 0.004791259765625, 0.0012664794921875, 0.0029449462890625, -0.00830078125, 0.0235595703125, -0.01116943359375, 0.01116943359375, 0.007537841796875, 0.0308837890625, 0.0211181640625, -0.005218505859375, 0.006317138671875, 0.00052642822265625, -0.0224609375, 0.01843261...
[ 1250, 4867, 60972, 1916, 41421, 47416, 9384, 502, 86869, 95665, 33022, 5419, 142481, 391, 6371, 8727, 127427, 19917, 94539, 27143, 6197, 397, 11679, 55483, 48321, 23415, 68341, 21997, 178753, 670, 53253, 80217, 8399, 16512, 53966, 70436, 9059, ...
[ 0.1617431640625, 0.255615234375, 0.2183837890625, 0.10687255859375, 0.141357421875, 0.1976318359375, 0.220703125, 0.12255859375, 0.21435546875, 0.1767578125, 0.18994140625, 0.1224365234375, 0.211669921875, 0.046600341796875, 0.09521484375, 0.26123046875, 0.098388671875, 0.10546875,...
embed
32141168_c1
32141168
prolog
1
/3 ?- add_import_module(apply,user,end). true. ?- import_module(apply,M), M=user. % sic! M = user . % `?- import_module(apply,user).` fails! ?- phrase(apply:foldl(a,[s(0),s(s(0))]),[a,a,a]). true . What's going on? The way I see it is this: Module expansion of the goal passed to foldl/4 is limited. Quoting from the SWI...
/3 ?- add_import_module(apply,user,end). true. ?- import_module(apply,M), M=user. % sic! M = user . % `?- import_module(apply,user).` fails! ?- phrase(apply:foldl(a,[s(0),s(s(0))]),[a,a,a]). true . What's going on? The way I see it is this: Module expansion of the goal passed to foldl/4 is limited. Quoting from the SWI...
[ -0.00174713134765625, -0.0106201171875, 0.0016937255859375, 0.0260009765625, -0.01104736328125, 0.012451171875, -0.00494384765625, -0.00714111328125, 0.00994873046875, -0.0478515625, 0.0128173828125, -0.00555419921875, -0.014404296875, 0.0172119140625, 0.0029296875, -0.0208740234375, ...
[ 18113, 15190, 60270, 83279, 13, 9007, 538, 65918, 3611, 29568, 24927, 594, 276, 26536, 2203, 38937, 35782, 38, 113860, 42822, 141, 11, 177609, 7730, 98, 1957, 903, 63014, 14700, 66, 6889, 69236, 115081, 47, 18344, 20469, 17357, 83, 84046, ...
[ 0.139404296875, 0.124267578125, 0.25146484375, 0.23486328125, 0.0784912109375, 0.13232421875, 0.1710205078125, 0.1591796875, 0.1177978515625, 0.13818359375, 0.2259521484375, 0.0643310546875, 0.0872802734375, 0.0777587890625, 0.0338134765625, 0.1678466796875, 0.1781005859375, 0.0104...
embed
24712157_c0
24712157
prolog
0
Title: Prolog DCG for parsing escaped sequences Problem title: Prolog DCG for parsing escaped sequences Tags: prolog, swi-prolog, parsing, dcg Problem: Prolog DCG for parsing escaped sequences I need to parse the string ^borrow$ ^\$500$ into the list [borrow, $500] . The grammar I wrote so far is :- use_module(library(...
Prolog DCG for parsing escaped sequences Prolog DCG for parsing escaped sequences prolog swi-prolog parsing dcg Prolog DCG use_module write_list atom_codes Grammar Tag Rest tag_contents Prolog DCG for parsing escaped sequences I need to parse the string ^borrow$ ^\$500$ into the list [borrow, $500] . The grammar I wrot...
[ 0.0286865234375, 0.01397705078125, -0.0093994140625, 0.0098876953125, -0.0081787109375, 0.0299072265625, -0.00011920928955078125, 0.00933837890625, 0.0137939453125, -0.0174560546875, -0.006439208984375, -0.0091552734375, -0.0291748046875, 0.01434326171875, 0.014404296875, 0.02490234375...
[ 1250, 4867, 391, 56367, 366, 6953, 144281, 71, 40, 26513, 502, 2452, 3454, 177, 4527, 83279, 33022, 6562, 34627, 40899, 48078, 1727, 4837, 49756, 7909, 69246, 3871, 184, 79315, 3422, 15555, 4283, 3934, 5303, 122092, 147, 2060, 43240, 2301, ...
[ 0.1298828125, 0.2186279296875, 0.056396484375, 0.222412109375, 0.15869140625, 0.08251953125, 0.2119140625, 0.0872802734375, 0.037261962890625, 0.17626953125, 0.08343505859375, 0.108642578125, 0.0948486328125, 0.001434326171875, 0.008087158203125, 0.057647705078125, 0.03314208984375, ...
embed
43104866_c0
43104866
prolog
0
Title: How would I create a DCG to parse queries about a database? Problem title: How would I create a DCG to parse queries about a database? Tags: dcg, database, prolog Problem: How would I create a DCG to parse queries about a database? I'm just playing around with learning Prolog and am trying to build a database of...
How would I create a DCG to parse queries about a database? How would I create a DCG to parse queries about a database? dcg database prolog How DCG How would I create a DCG to parse queries about a database? I'm just playing around with learning Prolog and am trying to build a database of information and then use natur...
[ 0.03125, 0.0029754638671875, 0.0029754638671875, 0.030029296875, 0.004547119140625, 0.0262451171875, -0.01141357421875, -0.0230712890625, 0.0133056640625, -0.0576171875, -0.0057373046875, -0.02294921875, -0.01153564453125, 0.006256103515625, -0.00079345703125, 0.0240478515625, -0.003...
[ 11249, 2806, 87, 28282, 10, 391, 56367, 47, 366, 184, 41, 10484, 1672, 63399, 104, 238, 177, 502, 4867, 75169, 10932, 52080, 1250, 31577, 45367, 4677, 4527, 6083, 14941, 151618, 89536, 3444, 26458, 3060, 497, 17582, 83, 49129, 111, 5527, ...
[ 0.114990234375, 0.089111328125, 0.05615234375, 0.1749267578125, 0.08160400390625, 0.1258544921875, 0.254638671875, 0.049102783203125, 0.1505126953125, 0.10595703125, 0.137939453125, 0.1226806640625, 0.07208251953125, 0.2188720703125, 0.0548095703125, 0.0633544921875, 0.11083984375, ...
embed
25470468_c1
25470468
prolog
1
|--------|----------| | | Sunday | Monday | Tuesday | Wednesday | Thursday | Friday | Saturday | |--------|--------|--------|---------|-----------|----------|--------|----------| | A | | | X | X | | | X | |--------|--------|--------|---------|-----------|----------|--------|----------| | B | X | X | | | X | X | | |----...
|--------|----------| | | Sunday | Monday | Tuesday | Wednesday | Thursday | Friday | Saturday | |--------|--------|--------|---------|-----------|----------|--------|----------| | A | | | X | X | | | X | |--------|--------|--------|---------|-----------|----------|--------|----------| | B | X | X | | | X | X | | |----...
[ 0.011474609375, 0.005615234375, 0.0186767578125, 0.037109375, -0.02685546875, -0.007110595703125, -0.0245361328125, 0.0101318359375, 0.005035400390625, 0.0228271484375, -0.0010833740234375, -0.005615234375, 0.0003833770751953125, 0.00390625, -0.009033203125, 0.00201416015625, 0.01385...
[ 6, 58745, 110405, 195626, 52305, 68318, 97001, 64227, 103616, 41626, 72864, 62, 1193, 335, 581, 38132, 642, 831, 2046, 83, 190, 26847, 5, 2685, 25, 110, 29806, 4393, 16188, 111, 361, 12960, 40407, 756, 91736, 68185, 765, 11249, 5423, 678,...
[ 0.1263427734375, 0.088623046875, 0.0948486328125, 0.101318359375, 0.227294921875, 0.206298828125, 0.19970703125, 0.1875, 0.2086181640625, 0.189697265625, 0.1878662109375, 0.102783203125, 0.0855712890625, 0.060546875, 0.064697265625, 0.2293701171875, 0.0887451171875, 0.15478515625, ...
embed
29289228_c0
29289228
prolog
0
Title: Anomaly in GNU Prolog `delete/3` predicate? Problem title: Anomaly in GNU Prolog `delete/3` predicate? Tags: prolog Problem: Anomaly in GNU Prolog `delete/3` predicate? I found an inconsistency in behavior in the GNU Prolog (version 1.4.2) delete/3 predicate: | ?- delete([a,b,c], b, R). R = [a,c] yes | ?- delete...
Anomaly in GNU Prolog `delete/3` predicate? Anomaly in GNU Prolog `delete/3` predicate? prolog Anomaly GNU Prolog Anomaly in GNU Prolog `delete/3` predicate? I found an inconsistency in behavior in the GNU Prolog (version 1.4.2) delete/3 predicate: All of the above results I expected, except for that of, delete([(a,_),...
[ -0.0084228515625, 0.01544189453125, 0.01165771484375, -0.0098876953125, -0.018310546875, 0.0023193359375, 0.006317138671875, -0.00167083740234375, 0.0068359375, 0.0162353515625, 0.0159912109375, 0.01318359375, -0.0159912109375, -0.01031494140625, 0.01055908203125, 0.005218505859375, ...
[ 31079, 538, 165132, 1250, 4867, 8520, 67, 18113, 1653, 2063, 23, 502, 25553, 6892, 123166, 46354, 48733, 10461, 154109, 50339, 84751, 132, 454, 238, 275, 627, 11675, 5701, 5423, 41, 10484, 159, 38969, 11180, 19388, 2806, 41206, 158288, 5460...
[ 0.1473388671875, 0.09698486328125, 0.2008056640625, 0.17041015625, 0.2139892578125, 0.170654296875, 0.1087646484375, 0.2734375, 0.1431884765625, 0.1888427734375, 0.0176239013671875, 0.10125732421875, 0.068115234375, 0.13037109375, 0.105224609375, 0.01806640625, 0.1441650390625, 0.1...
embed
55566559_c0
55566559
prolog
0
Title: Problem in performing translation of list of numbers to words such as [1,2,3] to [one,two,three] Problem title: Problem in performing translation of list of numbers to words such as [1,2,3] to [one,two,three] Tags: prolog Problem: Problem in performing translation of list of numbers to words such as [1,2,3] to [...
Problem in performing translation of list of numbers to words such as [1,2,3] to [one,two,three] Problem in performing translation of list of numbers to words such as [1,2,3] to [one,two,three] prolog Problem Head Tail Head1 Tail1 Problem in performing translation of list of numbers to words such as [1,2,3] to [one,two...
[ 0.01483154296875, 0.00013637542724609375, 0.004241943359375, -0.00860595703125, -0.00555419921875, 0.01446533203125, -0.01507568359375, -0.005615234375, 0.01519775390625, -0.01513671875, 0.00084686279296875, -0.0169677734375, 0.00089263916015625, 0.0037841796875, 0, 0.0045166015625, ...
[ 15649, 51339, 153648, 5303, 101935, 47, 34153, 68252, 155761, 3630, 55547, 107, 502, 4867, 44816, 1218, 379, 418, 35378, 30309, 31577, 3900, 19309, 111, 62775, 37202, 26785, 9844, 44691, 140992, 17368, 91, 2452, 9, 3454, 4727, 3229, 30957, ...
[ 0.16455078125, 0.115966796875, 0.2352294921875, 0.199462890625, 0.235595703125, 0.1446533203125, 0.1778564453125, 0.0703125, 0.2314453125, 0.083251953125, 0.1435546875, 0.1356201171875, 0.119384765625, 0.2149658203125, 0.1407470703125, 0.069580078125, 0.061370849609375, 0.062683105...
embed
66779861_c0
66779861
prolog
0
Title: Monadic Parser in Prolog (Example DIMACS files) Problem title: Monadic Parser in Prolog (Example DIMACS files) Tags: lexer, parsing, prolog Problem: Monadic Parser in Prolog (Example DIMACS files) Lets say we want to realize a monadic parser(*) in Prolog that only uses standard DCG and provides a lexer level and...
Monadic Parser in Prolog (Example DIMACS files) Monadic Parser in Prolog (Example DIMACS files) lexer parsing prolog Monadic Parser Prolog Example DIMACS current_input read_dimacs Monadic Parser in Prolog (Example DIMACS files) Lets say we want to realize a monadic parser(*) in Prolog that only uses standard DCG and pr...
[ 0.01226806640625, 0.00098419189453125, -0.019287109375, 0.03564453125, -0.005462646484375, 0.0283203125, -0.004913330078125, -0.006591796875, -0.00445556640625, -0.05810546875, 0.004364013671875, 0.0040283203125, -0.021484375, -0.012451171875, 0.00543212890625, 0.0025787353515625, -0...
[ 60331, 18403, 2392, 2189, 23, 1250, 4867, 19279, 11, 33209, 391, 27770, 19283, 102158, 95, 34058, 366, 6953, 502, 89536, 43581, 73, 12301, 428, 35572, 3444, 92154, 2667, 4527, 5570, 56367, 17366, 4488, 25842, 1884, 184, 55331, 41274, 959, ...
[ 0.184326171875, 0.175537109375, 0.17138671875, 0.194091796875, 0.0408935546875, 0.1646728515625, 0.234130859375, 0.046905517578125, 0.1068115234375, 0.051727294921875, 0.0943603515625, 0.183837890625, 0.1751708984375, 0.137939453125, 0.09124755859375, 0.18310546875, 0.162353515625, ...
embed
44490034_c0
44490034
prolog
0
Title: Prolog - generate fibonacci series Problem title: Prolog - generate fibonacci series Tags: fibonacci, prolog Problem: Prolog - generate fibonacci series I want to write predicate that generates the Fibonacci series for given N. fibon(6, X) -> X = [0,1,1,2,3,5]. I have a predicate to generate the N-th element of ...
Prolog - generate fibonacci series Prolog - generate fibonacci series fibonacci prolog Prolog at_the_end Out Out1 Prolog - generate fibonacci series I want to write predicate that generates the Fibonacci series for given N. I have a predicate to generate the N-th element of the Fibonacci series: And I try to write fibo...
[ 0.005767822265625, 0.00146484375, -0.000476837158203125, -0.013427734375, -0.0302734375, 0.0196533203125, -0.0022125244140625, 0.000701904296875, 0.0140380859375, -0.0478515625, 0.0113525390625, 0.02197265625, -0.0181884765625, 0.00946044921875, 0.0059814453125, -0.00032806396484375, ...
[ 1250, 4867, 139392, 809, 20990, 52544, 36549, 502, 3611, 13538, 418, 3444, 33022, 1653, 2063, 67, 7, 3698, 100, 34475, 541, 9, 927, 12830, 9790, 8345, 12477, 1284, 22027, 18, 4488, 86869, 1884 ]
[ 0.1722412109375, 0.261474609375, 0.2158203125, 0.1336669921875, 0.14990234375, 0.186279296875, 0.1739501953125, 0.1158447265625, 0.104736328125, 0.138427734375, 0.04425048828125, 0.06243896484375, 0.1298828125, 0.1326904296875, 0.17041015625, 0.08770751953125, 0.01129150390625, 0.1...
embed
28418049_c0
28418049
prolog
0
Title: Pass list as input parameter to predicate to calculate sum Problem title: Pass list as input parameter to predicate to calculate sum Tags: parameters, prolog Problem: Pass list as input parameter to predicate to calculate sum As the title suggests, its baby steps for me in the world of prolog . I am passing a li...
Pass list as input parameter to predicate to calculate sum Pass list as input parameter to predicate to calculate sum parameters prolog Pass solve_dots Sum Tail Temp Pass list as input parameter to predicate to calculate sum As the title suggests, its baby steps for me in the world of prolog . I am passing a list of in...
[ 0.00147247314453125, 0.013916015625, 0.00787353515625, -0.000766754150390625, -0.041015625, 0.000728607177734375, 0.00823974609375, 0.008056640625, 0.0020599365234375, -0.022705078125, 0.001678466796875, -0.0078125, 0.007293701171875, -0.0034027099609375, -0.00762939453125, -0.00088500...
[ 28872, 5303, 237, 107730, 171859, 47, 1653, 2063, 67, 74481, 10554, 502, 4867, 86869, 15464, 36335, 1218, 379, 37446, 98441, 8999, 452, 892, 26255, 115081, 15700, 28412, 16750, 18151, 360, 7077, 13538, 11343, 98320, 7225, 35064, 43240, 5885, ...
[ 0.1708984375, 0.201416015625, 0.00762939453125, 0.18994140625, 0.2161865234375, 0.07421875, 0.1861572265625, 0.21875, 0.105224609375, 0.17333984375, 0.2237548828125, 0.1256103515625, 0.1973876953125, 0.1417236328125, 0.136962890625, 0.1773681640625, 0.0997314453125, 0.0701904296875...
embed
53296522_c0
53296522
prolog
0
Title: Getting a list of children for a node in Prolog Problem title: Getting a list of children for a node in Prolog Tags: prolog, search, tree Problem: Getting a list of children for a node in Prolog I'm trying to do a simple tree search in Prolog, and I need a function that would return a list of children for a give...
Getting a list of children for a node in Prolog Getting a list of children for a node in Prolog prolog search tree Getting Prolog Kids node_matches Criteria Head Tail search_node Node Getting a list of children for a node in Prolog I'm trying to do a simple tree search in Prolog, and I need a function that would return...
[ 0.028076171875, -0.01055908203125, 0.01708984375, -0.0004329681396484375, -0.0101318359375, 0.0087890625, -0.001617431640625, -0.007232666015625, 0.01324462890625, -0.05859375, 0.00531005859375, -0.004241943359375, -0.041015625, -0.0030975341796875, 0.0198974609375, -0.006866455078125,...
[ 210732, 5303, 111, 20020, 100, 110, 112, 1250, 4867, 502, 33938, 53201, 71930, 98753, 26315, 26206, 44816, 1218, 379, 157, 438, 8781, 32354, 30646, 18151, 20949, 18499, 79912, 5983, 50491, 11583, 10422, 29479, 106, 10750 ]
[ 0.05596923828125, 0.1727294921875, 0.0628662109375, 0.2254638671875, 0.0748291015625, 0.1513671875, 0.122802734375, 0.1531982421875, 0.240478515625, 0.08905029296875, 0.1138916015625, 0.12939453125, 0.1971435546875, 0.1180419921875, 0.04132080078125, 0.07940673828125, 0.0450439453125...
embed
17391823_c0
17391823
prolog
0
Title: Getting false instead of true in ProLog Problem title: Getting false instead of true in ProLog Tags: prolog, logic Problem: Getting false instead of true in ProLog I have a database of product information in a shop, which looks like this: product(Barcode, ProductName, Category, Refrigerated, VendorName) . I am t...
Getting false instead of true in ProLog Getting false instead of true in ProLog prolog logic Getting ProLog Barcode ProductName Category Refrigerated VendorName code1 code2 fire_ltd Getting false instead of true in ProLog I have a database of product information in a shop, which looks like this: product(Barcode, Produc...
[ 0.0166015625, 0.0257568359375, 0.0123291015625, 0.01190185546875, 0.0135498046875, -0.0030975341796875, -0.00555419921875, 0.0079345703125, 0.002349853515625, -0.007293701171875, 0.01171875, 0.02490234375, -0.0152587890625, -0.00164031982421875, -0.0123291015625, -0.0106201171875, 0....
[ 210732, 98320, 64457, 29568, 1250, 113972, 502, 4867, 62775, 3253, 40899, 73111, 163612, 49057, 7151, 1505, 10146, 18151, 304, 11476, 1277, 10, 63399, 12996, 4677, 23, 19927, 33342, 25267, 1846, 33022, 62822, 41018, 12765, 6626, 38742, 765, 5...
[ 0.04656982421875, 0.2734375, 0.1534423828125, 0.2196044921875, 0.1781005859375, 0.236328125, 0.1201171875, 0.2099609375, 0.10491943359375, 0.0838623046875, 0.1790771484375, 0.0955810546875, 0.117431640625, 0.1072998046875, 0.0770263671875, 0.0894775390625, 0.055816650390625, 0.1315...
embed
28605913_c2
28605913
prolog
2
1, length(L, Len), label([Fst,Lst]), L ins Fst..Lst, all_different(L). after i set the 3 constraints, i filter my whole inputlist to labeling only white fields: exclude(isBlack,List,ExcludedList) %check if black isBlack([Variable|IsBlack]):- IsBlack=:=1. %create one dimensional list from two dimensional list for label...
1, length(L, Len), label([Fst,Lst]), L ins Fst..Lst, all_different(L). after i set the 3 constraints, i filter my whole inputlist to labeling only white fields: exclude(isBlack,List,ExcludedList) %check if black isBlack([Variable|IsBlack]):- IsBlack=:=1. %create one dimensional list from two dimensional list for label...
[ 0.00165557861328125, -0.01287841796875, -0.0068359375, 0.0213623046875, -0.00165557861328125, -0.0050048828125, -0.00579833984375, 0.016845703125, 0.0142822265625, 0.0079345703125, 0.015869140625, 0.01092529296875, 0.0145263671875, 0.002899169921875, -0.0038909912109375, -0.00114440917...
[ 106, 140909, 866, 18226, 67967, 271, 339, 23, 756, 238778, 194, 7103, 17, 5423, 138, 158, 2816, 4288, 46312, 759, 28271, 107730, 6562, 214, 4734, 35011, 44457, 39041, 164, 97732, 154663, 29786, 78292, 2174, 22556, 83, 81827, 2886, 29598, ...
[ 0.068603515625, 0.187744140625, 0.1099853515625, 0.183349609375, 0.2626953125, 0.050567626953125, 0.07513427734375, 0.032745361328125, 0.1025390625, 0.2109375, 0.003814697265625, 0.013580322265625, 0.06036376953125, 0.1002197265625, 0.150634765625, 0.0970458984375, 0.1876220703125, ...
embed
49243643_c0
49243643
prolog
0
Title: How to use SWI-Prolog ./2 function? Problem title: How to use SWI-Prolog ./2 function? Tags: prolog, swi-prolog Problem: How to use SWI-Prolog ./2 function? Need example using SWI-Prolog ./2 . The signature is .(+Int,[]) Also if there is a name for this operator it would be nice to know. Searching for '.' is sen...
How to use SWI-Prolog ./2 function? How to use SWI-Prolog ./2 function? prolog swi-prolog How SWI-Prolog List ERROR Type type_error _5812 Note Re-run How to use SWI-Prolog ./2 function? Need example using SWI-Prolog ./2 . The signature is Also if there is a name for this operator it would be nice to know. Searching for...
[ 0.0252685546875, -0.009765625, 0.00933837890625, 0.00726318359375, -0.026611328125, -0.00592041015625, 0.01324462890625, 0.005950927734375, 0.01123046875, -0.0260009765625, 0.000560760498046875, -0.0098876953125, -0.0299072265625, -0.01312255859375, -0.009521484375, -0.01708984375, 0...
[ 11249, 47, 4527, 159, 38969, 9, 10752, 4867, 5, 12477, 32354, 502, 91, 2452, 3454, 32036, 151206, 24638, 60457, 10644, 188800, 101, 10057, 1530, 18622, 853, 16428, 52889, 27781, 17368, 138256, 83, 9351, 903, 39933, 3714, 33086, 100, 10422, ...
[ 0.0528564453125, 0.017333984375, 0.1474609375, 0.0924072265625, 0.251953125, 0.0286102294921875, 0.1715087890625, 0.2264404296875, 0.158935546875, 0.2626953125, 0.196533203125, 0.1240234375, 0.05926513671875, 0.207763671875, 0.134765625, 0.091064453125, 0.0926513671875, 0.056549072...
embed
40761566_c0
40761566
prolog
0
Title: Prolog - Searching two lists for same element Problem title: Prolog - Searching two lists for same element Tags: prolog Problem: Prolog - Searching two lists for same element I have a set of rules; family(Mother,Father,Children) where children is a list, and person/6 , I am trying to make two clauses, one to ens...
Prolog - Searching two lists for same element Prolog - Searching two lists for same element prolog Prolog Searching Mother Father Children bad_children F-1 bad_child Prolog - Searching two lists for same element I have a set of rules; family(Mother,Father,Children) where children is a list, and person/6 , I am trying t...
[ 0.02001953125, 0.01153564453125, -0.003082275390625, 0.0078125, -0.01300048828125, 0.01806640625, -0.005889892578125, 0.0084228515625, 0.028564453125, -0.05029296875, 0.005889892578125, 0.0037994384765625, -0.0021209716796875, 0.0086669921875, -0.007476806640625, -0.0162353515625, -0...
[ 1250, 4867, 33086, 214, 6626, 5303, 100, 5701, 12830, 502, 115217, 160960, 91345, 6494, 237052, 563, 5759, 206, 38472, 765, 10, 5423, 91736, 14449, 594, 126340, 17647, 9319, 102656, 982, 20020, 83, 3445, 20155, 31577, 3249, 70731, 63284, 29...
[ 0.16357421875, 0.2354736328125, 0.1834716796875, 0.05615234375, 0.16357421875, 0.211669921875, 0.0882568359375, 0.1759033203125, 0.199462890625, 0.124755859375, 0.1075439453125, 0.1580810546875, 0.149169921875, 0.1593017578125, 0.175537109375, 0.0966796875, 0.1317138671875, 0.07519...
embed
6184662_c0
6184662
prolog
0
Title: Prolog Counter Problem Problem title: Prolog Counter Problem Tags: prolog Problem: Prolog Counter Problem I am trying to write a procedure order(List,Result) that has a List as input and returns a list Result of ordered pairs such that: the first element of the ordered pair is the position of the pair in the lis...
Prolog Counter Problem Prolog Counter Problem prolog Prolog Counter Problem List Result Accum Total Head Tail NewTail NewCount Count Prolog Counter Problem I am trying to write a procedure order(List,Result) that has a List as input and returns a list Result of ordered pairs such that: the first element of the ordered ...
[ 0.0201416015625, 0.00390625, 0.0022430419921875, 0.0091552734375, 0.00799560546875, 0.020751953125, -0.025146484375, -0.0087890625, 0.0115966796875, -0.030517578125, 0.005035400390625, -0.005645751953125, 0.01318359375, -0.0018157958984375, 0.0164794921875, 0.001434326171875, 0.00225...
[ 1250, 4867, 197956, 15649, 502, 32036, 126684, 29899, 316, 33867, 44816, 1218, 379, 2356, 9874, 108210, 31577, 33022, 50491, 12989, 154663, 4332, 7, 7136, 237, 107730, 30646, 5303, 297, 80836, 5117, 12830, 83, 19069, 17932, 653, 42518, 89536,...
[ 0.1800537109375, 0.266357421875, 0.288818359375, 0.1910400390625, 0.1209716796875, 0.189697265625, 0.2252197265625, 0.07342529296875, 0.156005859375, 0.11767578125, 0.1217041015625, 0.1036376953125, 0.039398193359375, 0.0986328125, 0.109619140625, 0.19921875, 0.07421875, 0.11254882...
embed
19637063_c0
19637063
prolog
0
Title: How to generate a rule to tell that this simple facts go both ways? Problem title: How to generate a rule to tell that this simple facts go both ways? Tags: prolog Problem: How to generate a rule to tell that this simple facts go both ways? So I have a couple of facts: %bridge(Name,From,To). bridge(a,1,2). bridg...
How to generate a rule to tell that this simple facts go both ways? How to generate a rule to tell that this simple facts go both ways? prolog How Name How to generate a rule to tell that this simple facts go both ways? So I have a couple of facts: Edit:changed to atoms So this reads like "bridge A crosses from zone 1 ...
[ 0.00860595703125, 0.0169677734375, -0.00225830078125, 0.0244140625, -0.0087890625, 0.0191650390625, 0.005157470703125, 0.0006561279296875, -0.000919342041015625, -0.0185546875, 0.0191650390625, -0.01171875, 0.01080322265625, 0.00994873046875, 0.00653076171875, -0.005523681640625, -0....
[ 11249, 47, 139392, 10, 79986, 14192, 450, 903, 8781, 15824, 7, 738, 15044, 48322, 502, 4867, 15757, 24941, 42079, 152028, 71, 34627, 12301, 80728, 62, 41421, 90, 1295, 20288, 106, 116, 23, 37676, 29568, 59132, 615, 163, 43576, 1528, 21768...
[ 0.09716796875, 0.10162353515625, 0.262451171875, 0.084228515625, 0.256103515625, 0.176513671875, 0.032073974609375, 0.0904541015625, 0.216552734375, 0.21337890625, 0.1177978515625, 0.090087890625, 0.18701171875, 0.1785888671875, 0.1326904296875, 0.210693359375, 0.0592041015625, 0.0...
embed
13678106_c0
13678106
prolog
0
Title: Getting unbound list tail in Prolog Problem title: Getting unbound list tail in Prolog Tags: prolog Problem: Getting unbound list tail in Prolog I'm trying to write a predicate that will take a list, a number, and a variable that will then give the first N elements of the list to the variable. I'm able to do thi...
Getting unbound list tail in Prolog Getting unbound list tail in Prolog prolog Getting Prolog Head Tail Number Result _G2028 Getting unbound list tail in Prolog I'm trying to write a predicate that will take a list, a number, and a variable that will then give the first N elements of the list to the variable. I'm able ...
[ 0.0247802734375, 0.0118408203125, 0.0242919921875, -0.015869140625, -0.00579833984375, 0.01177978515625, 0.01324462890625, -0.01104736328125, 0.014892578125, -0.0211181640625, 0.0189208984375, -0.014404296875, -0.004791259765625, 0.0057373046875, 0.00634765625, 0.0135498046875, 0.028...
[ 210732, 51, 99091, 5303, 46741, 1250, 4867, 502, 44816, 1218, 379, 103332, 126684, 3882, 31577, 33022, 1653, 2063, 67, 5646, 14012, 77336, 8337, 5117, 541, 80854, 110677, 7279, 58359, 3564, 757, 20949, 3671, 402, 429, 176377, 18151, 9790, 4...
[ 0.0743408203125, 0.0887451171875, 0.193359375, 0.1785888671875, 0.266357421875, 0.1563720703125, 0.229248046875, 0.10626220703125, 0.1468505859375, 0.169189453125, 0.1278076171875, 0.1256103515625, 0.19482421875, 0.1812744140625, 0.010650634765625, 0.0240936279296875, 0.1015014648437...
embed
40443161_c0
40443161
prolog
0
Title: Prolog. Combining predicates Problem title: Prolog. Combining predicates Tags: prolog Problem: Prolog. Combining predicates I have to make a predicate/2 which takes a list of "correct" numbers as validation, and a function which needs to be validated. The numbers in the function (represented as number(X) ) has t...
Prolog. Combining predicates Prolog. Combining predicates prolog Prolog Combining ValidationList Prolog. Combining predicates I have to make a predicate/2 which takes a list of "correct" numbers as validation, and a function which needs to be validated. The numbers in the function (represented as number(X) ) has to be ...
[ -0.0174560546875, 0.0068359375, 0.0242919921875, 0.0184326171875, -0.0003757476806640625, 0.02490234375, 0.00830078125, 0.0091552734375, -0.0028228759765625, -0.02880859375, 0.0025787353515625, -0.00408935546875, 0.0101318359375, 0.0166015625, -0.007049560546875, -0.0111083984375, 0....
[ 1250, 4867, 106935, 592, 1653, 2063, 1636, 502, 25447, 85, 154663, 3249, 67, 12477, 51776, 5303, 32399, 15390, 101935, 44622, 32354, 27117, 55247, 14012, 1542, 5701, 24209, 9774, 2967, 20662, 6626, 143870, 11583, 26785, 35166, 25612, 40899, 3...
[ 0.15771484375, 0.2073974609375, 0.243896484375, 0.039642333984375, 0.201171875, 0.2076416015625, 0.10028076171875, 0.0899658203125, 0.15380859375, 0.07659912109375, 0.1256103515625, 0.0328369140625, 0.1148681640625, 0.170166015625, 0.028350830078125, 0.1353759765625, 0.0760498046875,...
embed
26966055_c0
26966055
prolog
0
Title: Understanding Difference Lists Problem title: Understanding Difference Lists Tags: difference-lists, prolog Problem: Understanding Difference Lists I'm trying to understand difference lists in Prolog, but I'm struggling to actually implement one properly, everytime I try to do it, I get a list of lists, but that...
Understanding Difference Lists Understanding Difference Lists difference-lists prolog Understanding Difference Lists Hole Understanding Difference Lists I'm trying to understand difference lists in Prolog, but I'm struggling to actually implement one properly, everytime I try to do it, I get a list of lists, but that's...
[ 0.020263671875, 0.0118408203125, 0.0003223419189453125, 0.0169677734375, -0.01507568359375, 0.03955078125, -0.00592041015625, 0.006134033203125, 0.0263671875, -0.01324462890625, 0.0185546875, -0.01123046875, -0.0142822265625, 0.0106201171875, 0.009765625, 0.00070953369140625, 0.01684...
[ 9626, 144057, 803, 18234, 6620, 32036, 60212, 6562, 502, 4867, 14355, 13, 31577, 28219, 5303, 7, 23, 1250, 237875, 20653, 29479, 1632, 155965, 11907, 6032, 9790, 3444, 114689, 71, 1653, 2063, 67, 10176, 84434, 2060, 4221, 81887, 18, 4488, ...
[ 0.119873046875, 0.1431884765625, 0.1112060546875, 0.20703125, 0.1270751953125, 0.2261962890625, 0.2646484375, 0.1934814453125, 0.1221923828125, 0.21826171875, 0.126220703125, 0.042144775390625, 0.01214599609375, 0.1241455078125, 0.2269287109375, 0.072998046875, 0.0247344970703125, ...
embed
35880837_c0
35880837
prolog
0
Title: How to do the summation of numbers in different facts? Problem title: How to do the summation of numbers in different facts? Tags: prolog Problem: How to do the summation of numbers in different facts? Let's say I have a game with a hero and several monsters. Each monster will give a certain amount of points if ...
How to do the summation of numbers in different facts? How to do the summation of numbers in different facts? prolog How total_score Hero Score Monster Points How to do the summation of numbers in different facts? Let's say I have a game with a hero and several monsters. Each monster will give a certain amount of point...
[ 0.00482177734375, 0.01544189453125, 0.000007987022399902344, 0.0299072265625, 0.0015106201171875, -0.0093994140625, 0.0074462890625, 0.01043701171875, 0.00933837890625, -0.0128173828125, 0.01458740234375, 0.007110595703125, -0.022705078125, 0.01025390625, 0.0303955078125, -0.0079345703...
[ 11249, 47, 54, 70, 29334, 1363, 111, 101935, 23, 12921, 15824, 502, 4867, 3622, 7, 30854, 56889, 168071, 89715, 41097, 6712, 678, 40814, 40368, 84392, 98423, 8337, 24233, 41170, 26847, 8, 88981, 22690, 50336, 1884, 35166, 64457, 15549, 4488...
[ 0.1051025390625, 0.0670166015625, 0.10400390625, 0.0171356201171875, 0.23291015625, 0.1529541015625, 0.070556640625, 0.2073974609375, 0.09857177734375, 0.1640625, 0.2000732421875, 0.057220458984375, 0.10125732421875, 0.1732177734375, 0.07122802734375, 0.1729736328125, 0.152587890625,...
embed
64130756_c0
64130756
prolog
0
Title: Prolog recursion code returning false, add in variables as input to recursive list parse Problem title: Prolog recursion code returning false, add in variables as input to recursive list parse Tags: prolog Problem: Prolog recursion code returning false, add in variables as input to recursive list parse Im writin...
Prolog recursion code returning false, add in variables as input to recursive list parse Prolog recursion code returning false, add in variables as input to recursive list parse prolog Prolog N-1 LIST Prolog recursion code returning false, add in variables as input to recursive list parse Im writing prolog to print out...
[ 0.00096893310546875, 0.02294921875, -0.00958251953125, 0.006744384765625, -0.01239013671875, 0.0269775390625, -0.01141357421875, -0.0017852783203125, 0.00927734375, -0.00531005859375, 0.005828857421875, -0.0257568359375, 0.006011962890625, -0.00762939453125, 0.00787353515625, 0.0106811...
[ 1250, 4867, 195625, 1830, 18151, 30646, 98320, 15190, 23, 77336, 107730, 5844, 5303, 366, 502, 541, 5759, 195977, 32562, 28412, 1810, 12638, 12830, 4989, 105416, 977, 757, 138, 80836, 5117, 13695, 20949, 71924, 2046, 154663 ]
[ 0.1585693359375, 0.223388671875, 0.189697265625, 0.034454345703125, 0.1514892578125, 0.1357421875, 0.2186279296875, 0.0714111328125, 0.05316162109375, 0.169677734375, 0.120361328125, 0.0869140625, 0.1417236328125, 0.0562744140625, 0.1688232421875, 0.0545654296875, 0.109130859375, 0...
embed
9554420_c0
9554420
prolog
0
Title: How do you show the contents of a list in prolog? Problem title: How do you show the contents of a list in prolog? Tags: lambda, list, prolog Problem: How do you show the contents of a list in prolog? I have the following code: born(person1,1991). born(person2,1965). born(person3,1966). born(person4,1967). born(...
How do you show the contents of a list in prolog? How do you show the contents of a list in prolog? lambda list prolog How person1 person2 person3 person4 person5 person6 print_List How do you show the contents of a list in prolog? I have the following code: I have the predicate order([X,Y|L) that is true if the list i...
[ 0.0005645751953125, 0.0106201171875, 0.006744384765625, 0.01025390625, -0.01129150390625, 0.0206298828125, -0.01171875, 0.003875732421875, 0.005126953125, -0.0302734375, 0.0125732421875, -0.0267333984375, -0.008544921875, -0.01226806640625, 0.00714111328125, 0.00109100341796875, -0.0...
[ 11249, 7639, 10941, 7, 111, 5303, 23, 502, 4867, 21, 6492, 85, 3445, 363, 617, 758, 910, 28412, 154663, 54, 10, 18151, 1653, 2063, 67, 12989, 1542, 1723, 866, 29568, 5117, 12830, 10332, 525, 4568, 27150, 3642, 11583, 114864, 27781, 4488...
[ 0.057952880859375, 0.210205078125, 0.2313232421875, 0.089599609375, 0.043792724609375, 0.2476806640625, 0.0633544921875, 0.190185546875, 0.2568359375, 0.017974853515625, 0.1475830078125, 0.110595703125, 0.1148681640625, 0.013671875, 0.042022705078125, 0.060089111328125, 0.09387207031...
embed
18806739_c0
18806739
prolog
0
Title: Why is SWI-Prolog only giving one solution? Problem title: Why is SWI-Prolog only giving one solution? Tags: logical-purity, prolog-dif, prolog Problem: Why is SWI-Prolog only giving one solution? I'll be honest, I'm a Prolog newbie, so please excuse my ignorance. I have a simple predicate to count the occurence...
Why is SWI-Prolog only giving one solution? Why is SWI-Prolog only giving one solution? logical-purity prolog-dif prolog Why SWI-Prolog Why is SWI-Prolog only giving one solution? I'll be honest, I'm a Prolog newbie, so please excuse my ignorance. I have a simple predicate to count the occurences of an atom in a list, ...
[ 0.01458740234375, 0.01434326171875, 0.01611328125, 0.0185546875, -0.005462646484375, 0.00244140625, -0.01239013671875, -0.01324462890625, 0.0025634765625, -0.0299072265625, -0.0247802734375, -0.01611328125, 0.002655029296875, 0.00909423828125, 0.0177001953125, -0.00095367431640625, -...
[ 44084, 83, 159, 38969, 9, 10752, 4867, 4734, 68772, 1632, 29806, 62775, 289, 4717, 2481, 502, 428, 420, 42551, 1250, 9014, 133207, 80523, 8781, 1653, 2063, 54529, 74918, 69098, 34627, 5303, 41, 10484, 30646, 26785, 9790, 7413, 756, 7722, ...
[ 0.1285400390625, 0.0289764404296875, 0.09332275390625, 0.2374267578125, 0.060150146484375, 0.1451416015625, 0.185302734375, 0.15283203125, 0.12646484375, 0.2025146484375, 0.2469482421875, 0.1063232421875, 0.05206298828125, 0.123291015625, 0.056396484375, 0.1068115234375, 0.0412292480...
embed
65386107_c0
65386107
prolog
0
Title: Code not working. Printing out a few specific elements from a list Problem title: Code not working. Printing out a few specific elements from a list Tags: prolog Problem: Code not working. Printing out a few specific elements from a list Task: pirmieji(S,K,R) R is the first K elements of S Example: ?- pirmieji([...
Code not working. Printing out a few specific elements from a list Code not working. Printing out a few specific elements from a list prolog a Printing Head Tail Code not working. Printing out a few specific elements from a list Task: pirmieji(S,K,R) R is the first K elements of S Example: ?- pirmieji([a,b,c,d,e],3,R)....
[ 0.0034637451171875, 0.03369140625, 0.0196533203125, 0.0059814453125, -0.0024261474609375, 0.01129150390625, -0.01153564453125, 0.00054168701171875, 0.0091552734375, -0.0047607421875, 0.0294189453125, -0.010986328125, -0.0235595703125, -0.004058837890625, 0.004791259765625, 0.0024871826...
[ 28864, 959, 20697, 39754, 214, 1810, 10846, 29458, 80854, 1295, 5303, 502, 4867, 44816, 1218, 379, 9598, 92, 29977, 47300, 294, 605, 1052, 627, 83, 70, 5117, 341, 111, 159, 89536, 705, 132, 238, 71, 363, 2203, 275, 18151, 2646, 22027, ...
[ 0.22705078125, 0.1214599609375, 0.177001953125, 0.1851806640625, 0.06915283203125, 0.1212158203125, 0.104736328125, 0.178466796875, 0.201416015625, 0.0858154296875, 0.1912841796875, 0.1519775390625, 0.19970703125, 0.1380615234375, 0.13818359375, 0.1217041015625, 0.156005859375, 0.0...
embed
6207152_c0
6207152
prolog
0
Title: Prolog permutation extracting solutions Problem title: Prolog permutation extracting solutions Tags: list, prolog, permutation Problem: Prolog permutation extracting solutions permutation([], []). permutation(L, [X|Xs]) :- select(X, L, Rest), permutation(Rest, Xs). If I type permutation([1,2,3],R) , the first so...
Prolog permutation extracting solutions Prolog permutation extracting solutions list prolog permutation Prolog Rest go_perm Prolog permutation extracting solutions If I type permutation([1,2,3],R) , the first solution is "[1,2,3]" but how to get to the second one without using ";" or "fail". I need to use the 2nd solut...
[ -0.0017547607421875, 0.0206298828125, 0.0242919921875, 0.004852294921875, -0.0234375, -0.00099945068359375, -0.0303955078125, -0.00909423828125, 0.026611328125, -0.04736328125, 0.017333984375, -0.0020599365234375, 0.008544921875, 0.00628662109375, -0.0240478515625, 0.0245361328125, -...
[ 1250, 4867, 117, 561, 22062, 125663, 51347, 214, 5303, 502, 49756, 738, 1264, 39, 10644, 133063, 96386, 1052, 5117, 29806, 3642, 2046, 47, 17932, 1632, 15490, 17368, 74, 120540, 4527, 70, 116, 2208, 363, 90173, 69101, 339, 2203, 436, 6722...
[ 0.1671142578125, 0.213134765625, 0.1103515625, 0.2010498046875, 0.1109619140625, 0.16259765625, 0.176025390625, 0.06170654296875, 0.1134033203125, 0.10504150390625, 0.175048828125, 0.0706787109375, 0.1214599609375, 0.04608154296875, 0.1446533203125, 0.1553955078125, 0.148193359375, ...
embed
62132704_c0
62132704
prolog
0
Title: Times, Quotient and Remainder predicates in Prolog Problem title: Times, Quotient and Remainder predicates in Prolog Tags: successor-arithmetics, prolog Problem: Times, Quotient and Remainder predicates in Prolog how can I do the following. I needed to define the predicate shownumber (X,N) , which is true when t...
Times, Quotient and Remainder predicates in Prolog Times, Quotient and Remainder predicates in Prolog successor-arithmetics prolog Times Quotient Remainder Prolog Times, Quotient and Remainder predicates in Prolog how can I do the following. I needed to define the predicate shownumber (X,N) , which is true when the sym...
[ -0.0030364990234375, 0.01708984375, 0.0047607421875, -0.00726318359375, -0.0096435546875, -0.003173828125, 0.004486083984375, -0.0005645751953125, -0.00811767578125, -0.024169921875, -0.00872802734375, -0.001312255859375, -0.034423828125, 0.0181884765625, 0.002349853515625, 0.006195068...
[ 19114, 43851, 118, 2517, 136, 853, 24931, 820, 1653, 2063, 1250, 4867, 1636, 23, 39457, 42, 8962, 502, 3642, 831, 54, 25632, 44841, 61924, 67, 7639, 2606, 1297, 1542, 4, 839, 29568, 26582, 1193, 42518, 6083, 14012, 541, 7, 80510, 17727,...
[ 0.2127685546875, 0.124267578125, 0.1280517578125, 0.1136474609375, 0.033416748046875, 0.0875244140625, 0.16748046875, 0.1488037109375, 0.1912841796875, 0.2198486328125, 0.176025390625, 0.259521484375, 0.07232666015625, 0.052032470703125, 0.135498046875, 0.0149688720703125, 0.07391357...
embed
26028640_c0
26028640
prolog
0
Title: Prolog ~ Resolution involving the negation of some other statement? Problem title: Prolog ~ Resolution involving the negation of some other statement? Tags: negation, prolog Problem: Prolog ~ Resolution involving the negation of some other statement? I have the following code, where I define is_max as the negati...
Prolog ~ Resolution involving the negation of some other statement? Prolog ~ Resolution involving the negation of some other statement? negation prolog Prolog Resolution is_below is_max Prolog ~ Resolution involving the negation of some other statement? I have the following code, where I define is_max as the negation o...
[ -0.00439453125, 0.005645751953125, 0.0230712890625, 0.00933837890625, -0.030517578125, -0.007659912109375, -0.004669189453125, 0.001190185546875, 0.00787353515625, -0.003570556640625, -0.0052490234375, -0.009765625, 0.000690460205078125, -0.00732421875, 0.00823974609375, -0.00321960449...
[ 1250, 4867, 853, 166589, 3784, 108, 125682, 3789, 63805, 502, 83, 372, 17336, 24084, 25632, 18151, 61924, 454, 237, 29568, 2174, 1193, 35064, 22008, 69407, 30648, 3445, 167375, 98320, 41, 1294, 3293, 36917, 1108, 53, 1129, 66, 35254, 19, ...
[ 0.14697265625, 0.2135009765625, 0.087646484375, 0.2330322265625, 0.04486083984375, 0.180908203125, 0.158203125, 0.09381103515625, 0.18310546875, 0.1119384765625, 0.1622314453125, 0.134521484375, 0.265869140625, 0.243408203125, 0.013641357421875, 0.161865234375, 0.10382080078125, 0....
embed
22074679_c0
22074679
prolog
0
Title: Cuts in recursion of Prolog Problem title: Cuts in recursion of Prolog Tags: prolog Problem: Cuts in recursion of Prolog I am learning Prolog myself and recently came across a piece of notes:- Example: nth/3 for example, to find the nth element of a list we could use nth([X|_],0,X). nth([_|L],N,X) :- N1 is N - 1...
Cuts in recursion of Prolog Cuts in recursion of Prolog prolog Cuts Prolog Cuts in recursion of Prolog I am learning Prolog myself and recently came across a piece of notes:- However, when I use the trace function in Prolog, I found out that the calling sequences of these 2 pieces of codes are exactly the same. Should ...
[ 0.01470947265625, 0.014404296875, 0.035400390625, 0.012939453125, 0.00439453125, 0.01239013671875, 0.0020751953125, -0.013427734375, 0.002655029296875, -0.017822265625, 0.002899169921875, -0.0260009765625, -0.0194091796875, -0.0167236328125, 0.0179443359375, -0.0027923583984375, 0.01...
[ 3003, 933, 23, 195625, 1830, 1250, 4867, 502, 52080, 35978, 36880, 111, 73048, 4527, 144851, 32354, 14037, 159029, 40, 26513, 6097, 116, 126371, 18151, 621, 66161, 5701, 151117, 3884, 70, 711, 16188, 28960, 64457 ]
[ 0.2176513671875, 0.115966796875, 0.04864501953125, 0.2161865234375, 0.113525390625, 0.18896484375, 0.263427734375, 0.1298828125, 0.0472412109375, 0.033905029296875, 0.00921630859375, 0.0197906494140625, 0.1185302734375, 0.0147705078125, 0.245849609375, 0.142333984375, 0.0005493164062...
embed
65666366_c0
65666366
prolog
0
Title: Predicate that, if we input 6 as argument, generates A = 6, B = 0... A = 4, B = 2... A = 2, B = 4... A = 0, B = 6 and ends Problem title: Predicate that, if we input 6 as argument, generates A = 6, B = 0... A = 4, B = 2... A = 2, B = 4... A = 0, B = 6 and ends Tags: prolog Problem: Predicate that, if we input 6 ...
Predicate that, if we input 6 as argument, generates A = 6, B = 0... A = 4, B = 2... A = 2, B = 4... A = 0, B = 6 and ends Predicate that, if we input 6 as argument, generates A = 6, B = 0... A = 4, B = 2... A = 2, B = 4... A = 0, B = 6 and ends prolog Predicate Count Aa-2 Predicate that, if we input 6 as argument, gen...
[ 0.0166015625, -0.00026702880859375, -0.0164794921875, 0.004241943359375, -0.00014495849609375, 0.01312255859375, 0.00811767578125, -0.008544921875, 0.02880859375, 0.00909423828125, -0.001922607421875, -0.00653076171875, 0.01220703125, -0.007080078125, 0.04248046875, -0.00927734375, -...
[ 7145, 2063, 67, 2174, 107730, 305, 237, 10750, 139392, 62, 2203, 335, 757, 201, 116, 3564, 450, 642, 502, 4867, 108210, 11, 5428, 765, 3444, 390, 140992, 47, 186, 12, 20949, 1284, 7068, 29481, 56, 1660, 13695, 7730, 127877, 1810, 111, ...
[ 0.15673828125, 0.179931640625, 0.040496826171875, 0.057373046875, 0.196044921875, 0.215576171875, 0.0994873046875, 0.267333984375, 0.1937255859375, 0.08978271484375, 0.06634521484375, 0.10748291015625, 0.09918212890625, 0.1580810546875, 0.03436279296875, 0.1500244140625, 0.0769042968...
embed
65945554_c0
65945554
prolog
0
Title: Use Prolog with C# (Unity) Problem title: Use Prolog with C# (Unity) Tags: c%23, unity-game-engine, swi-prolog, prolog, interface Problem: Use Prolog with C# (Unity) I would like to know if there is an "easy" way to call Prolog (preferably SWI-Prolog) code from C# code (in a Unity context). I have already tried ...
Use Prolog with C# (Unity) Use Prolog with C# (Unity) c%23 unity-game-engine swi-prolog prolog interface Use Prolog Unity Use Prolog with C# (Unity) I would like to know if there is an "easy" way to call Prolog (preferably SWI-Prolog) code from C# code (in a Unity context). I have already tried to use the SWI-Prolog - ...
[ 0.0223388671875, 0.0162353515625, 0.0159912109375, 0.01116943359375, -0.0157470703125, -0.00634765625, 0.0021209716796875, 0.009765625, 0.006134033203125, -0.06689453125, -0.0096435546875, -0.004669189453125, -0.005889892578125, 0.00372314453125, 0.0224609375, -0.004486083984375, 0.0...
[ 36836, 1250, 4867, 678, 313, 4904, 14256, 2481, 3742, 51, 35311, 128897, 91, 2452, 3454, 502, 101758, 172904, 1884, 3714, 13, 162, 53, 3917, 47, 11782, 159, 38969, 9, 10752, 18151, 1295, 43701, 37842, 4527, 76104, 831, 18, 4488, 4568, 1...
[ 0.1219482421875, 0.197509765625, 0.28515625, 0.1558837890625, 0.0924072265625, 0.2396240234375, 0.138427734375, 0.1611328125, 0.0111083984375, 0.11083984375, 0.061614990234375, 0.1414794921875, 0.03509521484375, 0.20166015625, 0.151123046875, 0.146240234375, 0.1884765625, 0.2355957...
embed
63096034_c0
63096034
prolog
0
Title: Here is a problem with the factorial code that I made with Prolog Problem title: Here is a problem with the factorial code that I made with Prolog Tags: recursion, prolog, factorial Problem: Here is a problem with the factorial code that I made with Prolog I concocted two codes to calculate the factorial with Pr...
Here is a problem with the factorial code that I made with Prolog Here is a problem with the factorial code that I made with Prolog recursion prolog factorial Here Prolog Result Interim sum_2 sum_f Here is a problem with the factorial code that I made with Prolog I concocted two codes to calculate the factorial with Pr...
[ 0.0167236328125, 0.0072021484375, 0.00775146484375, 0.0164794921875, 0.0155029296875, -0.0191650390625, 0.00121307373046875, 0.0098876953125, 0.0159912109375, -0.0294189453125, 0.00872802734375, -0.022216796875, -0.01611328125, -0.005615234375, 0.017822265625, 0.005035400390625, 0.01...
[ 2967, 31461, 15403, 18151, 7228, 678, 1250, 4867, 195625, 1830, 502, 11853, 126684, 5337, 464, 10554, 304, 420, 587, 6626, 74481, 70, 17932, 5117, 177261, 645, 118664, 18499, 13028, 3638, 25632, 3034, 36917, 71924, 28219, 15400, 77947 ]
[ 0.143798828125, 0.1759033203125, 0.2193603515625, 0.1973876953125, 0.06610107421875, 0.037628173828125, 0.148681640625, 0.24462890625, 0.1536865234375, 0.0244140625, 0.12158203125, 0.0374755859375, 0.1390380859375, 0.118408203125, 0.0458984375, 0.131103515625, 0.111572265625, 0.139...
embed
41467588_c0
41467588
prolog
0
Title: Prolog concatenation confusion Problem title: Prolog concatenation confusion Tags: prolog Problem: Prolog concatenation confusion Okay so I've got some code which concatenates two lists. There's no problem with the code at all, rather, just me struggling to understand how it works. I understand this will be triv...
Prolog concatenation confusion Prolog concatenation confusion prolog Prolog Step Now Prolog concatenation confusion Okay so I've got some code which concatenates two lists. There's no problem with the code at all, rather, just me struggling to understand how it works. I understand this will be trivial to the most of yo...
[ 0.0079345703125, 0.004791259765625, 0.01470947265625, 0.00457763671875, -0.01263427734375, 0.01165771484375, -0.021240234375, 0.0186767578125, 0.01361083984375, -0.025146484375, -0.0021209716796875, -0.007080078125, -0.0101318359375, 0.006500244140625, 0.01385498046875, -0.005828857421...
[ 1250, 4867, 158, 4460, 33, 169463, 2320, 502, 50478, 14240, 18151, 33478, 76, 6626, 5303, 237875, 28219, 3642, 43240, 686, 765, 116, 122101, 201, 1126, 483, 1884, 67, 90791, 55681, 6953, 8110, 16487, 44691, 339, 304, 24765, 201939, 87420, ...
[ 0.173583984375, 0.2362060546875, 0.1209716796875, 0.171630859375, 0.1317138671875, 0.234130859375, 0.02471923828125, 0.1099853515625, 0.142578125, 0.1795654296875, 0.1605224609375, 0.198974609375, 0.120361328125, 0.1187744140625, 0.2069091796875, 0.064697265625, 0.119384765625, 0.0...
embed
35819681_c0
35819681
prolog
0
Title: Can between/3 not be recursive? Problem title: Can between/3 not be recursive? Tags: instantiation-error, prolog Problem: Can between/3 not be recursive? I've seen the Prolog Prologue definition of between/3 : between(Lower, Upper, Lower) :- Lower =< Upper. between(Lower1, Upper, X) :- Lower1 < Upper, Lower2 is ...
Can between/3 not be recursive? Can between/3 not be recursive? instantiation-error prolog Can Lower Upper Lower1 Lower2 Something instantiation_error Can between/3 not be recursive? I've seen the Prolog Prologue definition of between/3 : I don't understand why it requires recursion. A logical definition of between cou...
[ -0.0025177001953125, 0.0228271484375, 0.0250244140625, -0.004150390625, 0.01458740234375, 0.01019287109375, 0.001220703125, -0.017578125, 0.015380859375, -0.034912109375, 0.018310546875, -0.0179443359375, 0.00238037109375, 0.00616455078125, 0.04541015625, 0.00191497802734375, 0.02221...
[ 4171, 17721, 18113, 959, 195625, 5844, 186, 34648, 14, 188800, 502, 4867, 61187, 56, 26655, 304, 200905, 1250, 15853, 179554, 80934, 28219, 15400, 144570, 1830, 62775, 3454, 41, 77336, 26366, 27117, 91067, 14012, 51, 40383, 26548, 91190, 1125...
[ 0.0242919921875, 0.287353515625, 0.272216796875, 0.1068115234375, 0.198486328125, 0.153076171875, 0.031494140625, 0.06671142578125, 0.06219482421875, 0.1715087890625, 0.103515625, 0.181396484375, 0.1072998046875, 0.017791748046875, 0.09075927734375, 0.0283660888671875, 0.004608154296...
embed
75327364_c0
75327364
prolog
0
Title: no permission to redefine imported_procedure &#x27;lists:union prolog Problem title: no permission to redefine imported_procedure &#x27;lists:union prolog Tags: swi-prolog, prolog Problem: no permission to redefine imported_procedure 'lists:union prolog im trying to define a predicate in prolog that would return...
no permission to redefine imported_procedure &#x27;lists:union prolog no permission to redefine imported_procedure &#x27;lists:union prolog swi-prolog prolog imported_procedure lists:union set_operations Enter Club1 Club2 Club no permission to redefine imported_procedure 'lists:union prolog im trying to define a predic...
[ 0.01513671875, 0.027587890625, 0.01141357421875, 0.00860595703125, -0.0076904296875, 0.005279541015625, -0.01483154296875, 0.000701904296875, 0.0162353515625, -0.032958984375, -0.000835418701171875, 0.01348876953125, -0.00732421875, -0.0120849609375, 0.0189208984375, -0.0107421875, 0...
[ 110, 168081, 15265, 64552, 76242, 71, 232578, 3768, 6562, 87046, 502, 4867, 2452, 3454, 5303, 5423, 21473, 60816, 7687, 304, 31577, 61924, 1653, 2063, 67, 30646, 69941, 6626, 566, 7808, 25632, 18499 ]
[ 0.0677490234375, 0.208251953125, 0.12939453125, 0.20849609375, 0.23828125, 0.053070068359375, 0.182373046875, 0.019500732421875, 0.1595458984375, 0.161376953125, 0.1441650390625, 0.2012939453125, 0.1378173828125, 0.108154296875, 0.099365234375, 0.1832275390625, 0.1383056640625, 0.0...
embed
36651637_c1
36651637
prolog
1
. Rick didn’t order the blueberry bagel but he did get Columbian coffee. The Amaretto coffee was ordered with the cheddar bagel but not by Walt. The cream cheese did not come with the blueberry bagel but it did come with a large coffee. The sesame bagel came with butter but Carlos didn’t order it. The Prolog code I hav...
. Rick didn’t order the blueberry bagel but he did get Columbian coffee. The Amaretto coffee was ordered with the cheddar bagel but not by Walt. The cream cheese did not come with the blueberry bagel but it did come with a large coffee. The sesame bagel came with butter but Carlos didn’t order it. The Prolog code I hav...
[ 0.0021820068359375, -0.007232666015625, 0.00958251953125, 0.0208740234375, -0.0074462890625, 0.0086669921875, -0.026123046875, -0.01806640625, -0.0016937255859375, 0.018310546875, -0.01953125, 0.017578125, 0.0111083984375, -0.0233154296875, -0.0213623046875, 0.01214599609375, -0.0093...
[ 6, 5, 94069, 15935, 26, 18, 12989, 70, 57571, 53623, 961, 2679, 1284, 6777, 2046, 121328, 19, 79497, 581, 28665, 25158, 297, 678, 290, 71788, 959, 121672, 24709, 96967, 1380, 21334, 40, 40175, 21449, 125688, 24856, 1250, 4867, 18151, 87, ...
[ 0.01812744140625, 0.07568359375, 0.24853515625, 0.061920166015625, 0.039825439453125, 0.0718994140625, 0.1966552734375, 0.0347900390625, 0.0872802734375, 0.198486328125, 0.1190185546875, 0.2041015625, 0.0360107421875, 0.015289306640625, 0.097412109375, 0.1370849609375, 0.050109863281...
embed
20355910_c0
20355910
prolog
0
Title: Gerrit Prolog Rules: Getting started Problem title: Gerrit Prolog Rules: Getting started Tags: gerrit, prolog Problem: Gerrit Prolog Rules: Getting started I would like to alter the commit rules for gerrit but somehow I am seemingly unable to follow the steps described in the cookbook (for example here: http://s...
Gerrit Prolog Rules: Getting started Gerrit Prolog Rules: Getting started gerrit prolog Gerrit Prolog Rules Getting localhost:29418 config:config Couldn Gerrit Prolog Rules: Getting started I would like to alter the commit rules for gerrit but somehow I am seemingly unable to follow the steps described in the cookbook ...
[ 0.01409912109375, 0.01953125, 0.0002079010009765625, -0.00579833984375, -0.00958251953125, 0.004669189453125, -0.007568359375, 0.00182342529296875, 0.0113525390625, -0.0093994140625, 0.0262451171875, 0.000823974609375, -0.0179443359375, -0.00052642822265625, 0.025390625, 0.000226974487...
[ 8022, 2783, 1250, 4867, 139118, 7, 210732, 26859, 4155, 502, 4000, 40294, 29223, 617, 1819, 153837, 191147, 1884, 47, 37264, 70, 375, 4007, 91736, 100, 48903, 2886, 28960, 98441, 151552, 110309, 14137, 4100, 232, 177149, 64357, 3125, 112, 1...
[ 0.17333984375, 0.296142578125, 0.1595458984375, 0.258056640625, 0.2176513671875, 0.00439453125, 0.1636962890625, 0.19482421875, 0.1171875, 0.0999755859375, 0.1024169921875, 0.1656494140625, 0.0662841796875, 0.0280914306640625, 0.1131591796875, 0.1773681640625, 0.0416259765625, 0.06...
embed
28226568_c1
28226568
prolog
1
correct, but it's in a format that's useless to me, since I need it to be a variable of its own to do further computations. Then the solution is to use bagof or findall, right? So I remove the fail clause from the main part of the program and then change the test to this test(Bag) :- needs(N), resources(R), bagof(List...
correct, but it's in a format that's useless to me, since I need it to be a variable of its own to do further computations. Then the solution is to use bagof or findall, right? So I remove the fail clause from the main part of the program and then change the test to this test(Bag) :- needs(N), resources(R), bagof(List...
[ -0.00421142578125, 0.012939453125, 0.0115966796875, 0.0135498046875, 0.000606536865234375, 0.033935546875, -0.0203857421875, 0.00099945068359375, 0.016357421875, 0.00970458984375, -0.0162353515625, -0.003753662109375, -0.0152587890625, -0.022705078125, -0.0027008056640625, 0.0146484375...
[ 26785, 442, 23, 9384, 4527, 9393, 3871, 77336, 111, 10002, 53333, 181135, 29806, 41780, 420, 7413, 5584, 87388, 35782, 70731, 5201, 2831, 1528, 15549, 3034, 903, 192996, 27117, 839, 65514, 154663, 55898, 34833, 1284, 139392, 329, 5843, 1549, ...
[ 0.07989501953125, 0.01739501953125, 0.030670166015625, 0.178955078125, 0.0670166015625, 0.105712890625, 0.07037353515625, 0.20556640625, 0.040863037109375, 0.10699462890625, 0.00799560546875, 0.1173095703125, 0.13330078125, 0.06500244140625, 0.142578125, 0.1153564453125, 0.1790771484...
embed
34434038_c0
34434038
prolog
0
Title: Prolog, on start executing write something Problem title: Prolog, on start executing write something Tags: prolog-toplevel, prolog, swi-prolog Problem: Prolog, on start executing write something I want to display a string on terminal when the user executes it. But, I want to do this without calling any predicate...
Prolog, on start executing write something Prolog, on start executing write something prolog-toplevel prolog swi-prolog Prolog print_sth Ready some_predicate do_sth Prolog, on start executing write something I want to display a string on terminal when the user executes it. But, I want to do this without calling any pre...
[ 0.005157470703125, 0.0223388671875, -0.0128173828125, -0.001739501953125, -0.0146484375, 0.0123291015625, 0.0218505859375, -0.0123291015625, 0.005523681640625, -0.03466796875, -0.00058746337890625, -0.00035858154296875, -0.032958984375, 0.00421142578125, 0.0135498046875, -0.00236511230...
[ 1250, 4867, 98, 4034, 71924, 214, 33022, 9844, 502, 13784, 67919, 2452, 3454, 28412, 927, 4764, 19714, 2063, 54, 3444, 47, 44116, 79315, 33949, 3229, 38937, 15490, 159029, 1653, 18151, 1884, 4734, 2174, 143726, 11782, 111, 75463, 1528, 2145...
[ 0.1859130859375, 0.2470703125, 0.0792236328125, 0.176513671875, 0.2103271484375, 0.06976318359375, 0.1407470703125, 0.05596923828125, 0.1541748046875, 0.058746337890625, 0.110595703125, 0.126220703125, 0.148681640625, 0.1693115234375, 0.1353759765625, 0.1212158203125, 0.1162109375, ...
embed
40788631_c0
40788631
prolog
0
Title: Prolog get list from different relations Problem title: Prolog get list from different relations Tags: graph-theory, prolog Problem: Prolog get list from different relations i´d like to get a list from a graph. The variables with two letters are the points and the one letter is a line. Each line can contain mult...
Prolog get list from different relations Prolog get list from different relations graph-theory prolog different Prolog Line First _Second Rest Prolog get list from different relations i´d like to get a list from a graph. The variables with two letters are the points and the one letter is a line. Each line can contain m...
[ -0.0037689208984375, -0.0057373046875, 0.0012359619140625, 0.0164794921875, -0.01458740234375, -0.0042724609375, -0.00408935546875, 0.00958251953125, 0.00921630859375, -0.0498046875, -0.00927734375, -0.0186767578125, -0.0230712890625, -0.00083160400390625, -0.0120849609375, 0.008056640...
[ 1250, 4867, 2046, 5303, 1295, 12921, 91582, 41382, 2347, 502, 16777, 23972, 2271, 49756, 1884, 77336, 6626, 120820, 26847, 1632, 31330, 13315, 98423, 831, 70541, 48716, 3444, 47, 678, 756, 66165, 81551, 11417, 214, 17, 2806, 41206, 37842, 1...
[ 0.1485595703125, 0.252685546875, 0.1015625, 0.22900390625, 0.13720703125, 0.1964111328125, 0.2088623046875, 0.2147216796875, 0.025360107421875, 0.1099853515625, 0.1605224609375, 0.046417236328125, 0.02862548828125, 0.1370849609375, 0.0792236328125, 0.20263671875, 0.058746337890625, ...
embed
61447216_c0
61447216
prolog
0
Title: Returning multiple objects from a predicate Problem title: Returning multiple objects from a predicate Tags: prolog Problem: Returning multiple objects from a predicate I have a basic Prolog fact base consisting of entrees, sides, and ingredients. I wish to write a predicate called meal(X,Y) that takes in either...
Returning multiple objects from a predicate Returning multiple objects from a predicate prolog a Returning Facts Rules Returning multiple objects from a predicate I have a basic Prolog fact base consisting of entrees, sides, and ingredients. I wish to write a predicate called meal(X,Y) that takes in either lunch/dinner...
[ -0.00193023681640625, -0.00421142578125, -0.0019989013671875, 0.0181884765625, -0.01953125, 0.01904296875, 0.0026092529296875, -0.0089111328125, 0.01806640625, -0.0302734375, 0.0038909912109375, 0.0015411376953125, -0.0005035400390625, -0.009521484375, 0.01190185546875, 0.0036926269531...
[ 173340, 214, 48716, 36746, 7, 1295, 1653, 2063, 67, 502, 4867, 132640, 139118, 62822, 1250, 15824, 3647, 58055, 111, 1148, 5609, 145170, 32599, 33022, 35839, 109911, 1542, 1723, 51776, 23, 40781, 64, 428, 13857, 100, 171859, 1022, 136, 3064...
[ 0.232421875, 0.09246826171875, 0.24072265625, 0.2288818359375, 0.0977783203125, 0.148193359375, 0.1640625, 0.224609375, 0.1044921875, 0.1270751953125, 0.2041015625, 0.200927734375, 0.1622314453125, 0.0894775390625, 0.1177978515625, 0.13525390625, 0.1427001953125, 0.012176513671875,...
embed
68215755_c0
68215755
prolog
0
Title: Testing a too general program Problem title: Testing a too general program Tags: debugging, declarative, prolog Problem: Testing a too general program Suppose the correct definition of a predicate would be len([],0). len([_|T],N) :- len(T,X), N is X+1. However, we end up with the following erroneous definition i...
Testing a too general program Testing a too general program debugging declarative prolog Testing len2 Testing a too general program Suppose the correct definition of a predicate would be However, we end up with the following erroneous definition in stead. as user mjano314 observes . How is it possible to detect such an...
[ -0.0028228759765625, 0.0159912109375, -0.004852294921875, 0.01422119140625, 0.00799560546875, 0.0101318359375, 0.01031494140625, 0.013671875, 0.0216064453125, -0.022705078125, 0.0029449462890625, -0.00927734375, 0.006805419921875, -0.01123046875, 0.040771484375, 0.0125732421875, 0.00...
[ 8647, 5792, 4537, 1528, 8, 978, 36659, 21635, 502, 4867, 3098, 304, 26785, 80934, 111, 10, 1653, 2063, 67, 2806, 3564, 25632, 70426, 86, 10821, 23, 2288, 712, 157, 2592, 139999, 11249, 7722, 47, 96391, 6044, 18499, 12477, 36917, 4527, 1...
[ 0.200927734375, 0.1517333984375, 0.255859375, 0.182373046875, 0.07525634765625, 0.1253662109375, 0.00274658203125, 0.0924072265625, 0.086181640625, 0.1529541015625, 0.1607666015625, 0.114990234375, 0.124755859375, 0.197265625, 0.021392822265625, 0.00164794921875, 0.1845703125, 0.24...
embed
37296008_c0
37296008
prolog
0
Title: Sorting list with only two elements in prolog Problem title: Sorting list with only two elements in prolog Tags: prolog, failure-slice Problem: Sorting list with only two elements in prolog firstly look at following example: ?- fp(X,[b,a,b]). false Ok, because second argument must be two-elements sorted list. (I...
Sorting list with only two elements in prolog Sorting list with only two elements in prolog prolog failure-slice Sorting AccA AccB Sorting list with only two elements in prolog firstly look at following example: false Ok, because second argument must be two-elements sorted list. (In my program I assume that a<b ) Yeah,...
[ 0.017333984375, -0.00130462646484375, 0.02099609375, -0.0240478515625, -0.01422119140625, 0.0186767578125, -0.004425048828125, 0.009521484375, 0.0174560546875, -0.0126953125, 0.041748046875, 0.01385498046875, -0.010009765625, 0.0079345703125, 0.00160980224609375, -0.004974365234375, ...
[ 53666, 214, 5303, 678, 4734, 6626, 80854, 502, 4867, 137578, 13348, 29899, 284, 571, 27781, 98320, 17932, 10750, 8110, 62766, 17497, 71, 1528, 41591, 16093, 275, 119057, 26785, 16750, 84751, 11853, 40956, 3917, 35142, 903, 36272, 4358 ]
[ 0.19140625, 0.12841796875, 0.2001953125, 0.0679931640625, 0.1539306640625, 0.207275390625, 0.201171875, 0.1610107421875, 0.2474365234375, 0.1602783203125, 0.0882568359375, 0.0279998779296875, 0.0380859375, 0.0828857421875, 0.0758056640625, 0.157958984375, 0.1036376953125, 0.1931152...
embed
8748526_c0
8748526
prolog
0
Title: Check list and database [Prolog] Problem title: Check list and database [Prolog] Tags: prolog, fact, list Problem: Check list and database [Prolog] I need to develop a predicate in Prolog able to compare a list against fact. In other words, if the names of the products residing in the list are all in the databas...
Check list and database [Prolog] Check list and database [Prolog] prolog fact list Check Prolog Enciam Llet Formatge Name Goal Check list and database [Prolog] I need to develop a predicate in Prolog able to compare a list against fact. In other words, if the names of the products residing in the list are all in the da...
[ -0.00007867813110351562, -0.00421142578125, 0.0150146484375, 0.028564453125, -0.01348876953125, 0.0262451171875, -0.026611328125, 0.005401611328125, 0.01153564453125, -0.0025482177734375, 0.0118408203125, 0.0152587890625, -0.002471923828125, -0.0111083984375, -0.0264892578125, -0.00169...
[ 38679, 5303, 63399, 10752, 4867, 136, 502, 15824, 1250, 357, 1883, 39, 1974, 60972, 429, 15757, 2016, 289, 3871, 85493, 1653, 2063, 67, 19048, 47, 69101, 26548, 2174, 123055, 38742, 3332, 86675, 756, 23, 114700, 5299, 17763, 5154, 63736, ...
[ 0.1805419921875, 0.2041015625, 0.2132568359375, 0.1422119140625, 0.241943359375, 0.008697509765625, 0.1375732421875, 0.1868896484375, 0.171142578125, 0.055145263671875, 0.1165771484375, 0.1134033203125, 0.1751708984375, 0.1595458984375, 0.099609375, 0.1131591796875, 0.126953125, 0....
embed
66925661_c0
66925661
prolog
0
Title: Prolog: Finding the cheapest combination of N facts Problem title: Prolog: Finding the cheapest combination of N facts Tags: prolog Problem: Prolog: Finding the cheapest combination of N facts For the following facts: % item (number, price) item(1, 40); item(2, 50); item(3, 45); item(4, 65); item(5, 15); How can...
Prolog: Finding the cheapest combination of N facts Prolog: Finding the cheapest combination of N facts prolog Prolog Finding Rem Prolog: Finding the cheapest combination of N facts For the following facts: How can I determine what is the cheapest combination of N element in Prolog ? for example For now I can form a li...
[ -0.0130615234375, 0.00848388671875, 0.0194091796875, 0.0137939453125, -0.004302978515625, 0.0223388671875, 0.0019378662109375, -0.00421142578125, 0.00408935546875, -0.038818359375, -0.01177978515625, 0.008056640625, 0.0086669921875, 0.0155029296875, -0.01904296875, 0.005615234375, 0....
[ 1250, 4867, 26040, 64720, 525, 162515, 541, 15824, 502, 38645, 25632, 11249, 831, 83324, 70, 12830, 23, 27781, 5036, 3173, 5303, 18151, 3714, 45258, 10554, 46132, 125663, 15440 ]
[ 0.1617431640625, 0.26416015625, 0.077880859375, 0.2135009765625, 0.175048828125, 0.2274169921875, 0.1514892578125, 0.13916015625, 0.082275390625, 0.2025146484375, 0.0325927734375, 0.00372314453125, 0.004547119140625, 0.1328125, 0.056640625, 0.2152099609375, 0.009521484375, 0.004760...
embed
23579792_c0
23579792
prolog
0
Title: Prolog: Palindrome predicate never succeeds Problem title: Prolog: Palindrome predicate never succeeds Tags: palindrome, prolog Problem: Prolog: Palindrome predicate never succeeds I developed a palindrome checking algorithm that simply reverses a given list of elements; using naive reversing. The program then c...
Prolog: Palindrome predicate never succeeds Prolog: Palindrome predicate never succeeds palindrome prolog Prolog Palindrome ReversedList RevT GivenList e.g is_palindrome Prolog: Palindrome predicate never succeeds I developed a palindrome checking algorithm that simply reverses a given list of elements; using naive rev...
[ -0.000705718994140625, 0.01385498046875, 0.004150390625, 0.0025787353515625, -0.006591796875, 0.023193359375, 0.0203857421875, 0.004150390625, 0.0157470703125, -0.037109375, 0.039794921875, 0.001434326171875, -0.009033203125, -0.007598876953125, -0.0048828125, 0.00933837890625, 0.018...
[ 1250, 4867, 12530, 73, 102851, 1653, 2063, 67, 8306, 214493, 17923, 19, 502, 7864, 154663, 80893, 618, 77878, 83, 5007, 126809, 175199, 234873, 39531, 5908, 34475, 5303, 80854, 24, 5844, 6953, 1528, 12765, 11180, 19388, 5701, 959, 2967, 263...
[ 0.1414794921875, 0.203857421875, 0.14208984375, 0.107666015625, 0.2069091796875, 0.1337890625, 0.1851806640625, 0.0460205078125, 0.1220703125, 0.20361328125, 0.1453857421875, 0.09033203125, 0.08740234375, 0.1578369140625, 0.117431640625, 0.0771484375, 0.0753173828125, 0.02764892578...
embed
2917182_c0
2917182
prolog
0
Title: Prolog: find all numbers of unique digits that can be formed from a list of digits Problem title: Prolog: find all numbers of unique digits that can be formed from a list of digits Tags: list, digits, prolog, numbers Problem: Prolog: find all numbers of unique digits that can be formed from a list of digits The ...
Prolog: find all numbers of unique digits that can be formed from a list of digits Prolog: find all numbers of unique digits that can be formed from a list of digits list digits prolog numbers a Prolog List Prolog: find all numbers of unique digits that can be formed from a list of digits The best thing I could come up...
[ -0.01470947265625, 0.0177001953125, 0.01123046875, -0.0169677734375, -0.0068359375, 0.006072998046875, 0.00738525390625, 0.01171875, 0.019287109375, -0.0240478515625, -0.01129150390625, -0.0079345703125, -0.00180816650390625, 0.0164794921875, 0.00179290771484375, -0.006622314453125, ...
[ 1250, 4867, 7413, 756, 101935, 36998, 153939, 7, 831, 100, 4806, 1295, 5303, 502, 32036, 450, 2965, 13580, 5809, 1380, 1257, 678, 2060, 903, 32354, 7440, 11583, 493, 151138, 2174, 34627, 83, 32380, 2749, 14012, 168407, 154663, 541, 304, 1...
[ 0.1561279296875, 0.2264404296875, 0.1365966796875, 0.1103515625, 0.1907958984375, 0.2080078125, 0.2171630859375, 0.049285888671875, 0.1302490234375, 0.1514892578125, 0.114501953125, 0.07476806640625, 0.2054443359375, 0.134521484375, 0.1798095703125, 0.00848388671875, 0.09295654296875...
embed
47665092_c0
47665092
prolog
0
Title: how to update the list in prolog? Problem title: how to update the list in prolog? Tags: prolog Problem: how to update the list in prolog? When the user adds an item then display the list, the program will output the list without considering the user's added items It seems to me that the items aren't really adde...
how to update the list in prolog? how to update the list in prolog? prolog SHOPPING LIST Display Add Exit Enter how to update the list in prolog? When the user adds an item then display the list, the program will output the list without considering the user's added items It seems to me that the items aren't really adde...
[ -0.005096435546875, 0.0128173828125, 0.0269775390625, -0.00494384765625, 0.0019073486328125, 0.0185546875, -0.0208740234375, 0.021240234375, 0.000053882598876953125, -0.003143310546875, 0.025634765625, 0.0089111328125, -0.0218505859375, 0.0089111328125, 0.0262451171875, 0.01025390625, ...
[ 3642, 47, 28350, 70, 5303, 23, 502, 4867, 134540, 212003, 195977, 90045, 29117, 5443, 217, 60816, 38937, 15190, 35735, 44116, 1528, 140992, 15490, 179635, 49814, 55769, 18, 6183, 3871, 4358, 51484, 4527, 41499, 15390, 35778, 52295, 18151, 131...
[ 0.06878662109375, 0.030548095703125, 0.1971435546875, 0.045379638671875, 0.2169189453125, 0.07464599609375, 0.1583251953125, 0.241943359375, 0.101318359375, 0.1019287109375, 0.16357421875, 0.1370849609375, 0.09442138671875, 0.0906982421875, 0.048980712890625, 0.07244873046875, 0.0696...
embed
53585489_c0
53585489
prolog
0
Title: Prolog | Can I continue execution after a false? Problem title: Prolog | Can I continue execution after a false? Tags: prolog Problem: Prolog | Can I continue execution after a false? Using prolog, can I continue execution after a line returns false? I have to create a tic-tac-toe game. I want to check for a win...
Prolog | Can I continue execution after a false? Prolog | Can I continue execution after a false? prolog Prolog Can PosX PosY Gameboard Token Newboard Prolog | Can I continue execution after a false? Using prolog, can I continue execution after a line returns false? I have to create a tic-tac-toe game. I want to check ...
[ 0.01190185546875, 0.0257568359375, 0.03515625, 0.00860595703125, -0.0010986328125, 0.0108642578125, 0.00958251953125, 0.007354736328125, 0.003875732421875, 0.0098876953125, 0.00390625, 0.0179443359375, -0.01190185546875, -0.0111083984375, -0.02001953125, 0.000453948974609375, 0.03369...
[ 1250, 4867, 4171, 87, 21342, 71924, 1830, 7103, 10, 98320, 502, 13498, 1542, 1723, 13547, 24351, 717, 1098, 345, 831, 13315, 30646, 7, 28282, 96212, 102, 238, 51890, 6712, 3444, 12765, 100, 69986, 11341, 12638, 58585, 15504, 9494, 29568, ...
[ 0.1434326171875, 0.2347412109375, 0.0977783203125, 0.040283203125, 0.2030029296875, 0.1939697265625, 0.119384765625, 0.1614990234375, 0.089111328125, 0.2763671875, 0.1370849609375, 0.1046142578125, 0.1290283203125, 0.093994140625, 0.002105712890625, 0.1864013671875, 0.041748046875, ...
embed
55386265_c0
55386265
prolog
0
Title: Prolog: List of sublists Problem title: Prolog: List of sublists Tags: prolog Problem: Prolog: List of sublists i have a task to create a list of sublists where the elements are sorted in consecutive order. I'm having difficulties because when it iterates through the list and returns multiple lists with a list, ...
Prolog: List of sublists Prolog: List of sublists prolog Prolog List Prolog: List of sublists i have a task to create a list of sublists where the elements are sorted in consecutive order. I'm having difficulties because when it iterates through the list and returns multiple lists with a list, thats not what i want. My...
[ 0.0164794921875, 0.0017852783203125, 0.022705078125, -0.004364013671875, -0.0162353515625, 0.0213623046875, -0.01025390625, -0.002960205078125, 0.009765625, -0.001953125, 0.00848388671875, -0.00689697265625, 0.0064697265625, 0.01025390625, -0.0098876953125, 0.0201416015625, 0.0291748...
[ 1250, 4867, 32036, 111, 1614, 6562, 502, 7, 66211, 28282, 5303, 80854, 17497, 148390, 12989, 19441, 34844, 3387, 8560, 8305, 30646, 48716, 959, 3444, 69236, 140909, 1031, 27781, 28412, 1810, 11907, 11001, 645, 201950, 13580, 1193, 2203, 454, ...
[ 0.156494140625, 0.2261962890625, 0.1466064453125, 0.0477294921875, 0.2340087890625, 0.2471923828125, 0.1019287109375, 0.0258331298828125, 0.138916015625, 0.0911865234375, 0.1719970703125, 0.1202392578125, 0.155029296875, 0.0750732421875, 0.1317138671875, 0.0199432373046875, 0.0536193...
embed
21891436_c0
21891436
prolog
0
Title: SWI Prolog ignores discontiguous predicate Problem title: SWI Prolog ignores discontiguous predicate Tags: prolog Problem: SWI Prolog ignores discontiguous predicate I'm struggling to understand how to properly use the discontiguous/1 predicate in (SWI) Prolog. Let buumi.pl be this little file of pseudo-facts: d...
SWI Prolog ignores discontiguous predicate SWI Prolog ignores discontiguous predicate prolog SWI Prolog buumi.pl Buumi.prolog Warning Buumi.prolog:5 Clauses PredicateIndicator SWI Prolog ignores discontiguous predicate I'm struggling to understand how to properly use the discontiguous/1 predicate in (SWI) Prolog. Let b...
[ 0.013427734375, -0.01007080078125, 0.01153564453125, 0.00885009765625, -0.025390625, 0.0240478515625, -0.0023040771484375, -0.002410888671875, 0.0067138671875, -0.0262451171875, -0.003448486328125, 0.01416015625, -0.015869140625, -0.013427734375, 0.004425048828125, 0.000180244445800781...
[ 159, 38969, 1250, 4867, 124962, 20947, 3598, 1234, 1653, 2063, 502, 373, 8289, 2424, 667, 3454, 5550, 758, 100700, 90, 7145, 67, 159310, 408, 155965, 4527, 10821, 11583, 294, 10176, 11435, 74189, 114700, 28398, 2452, 20, 7, 1631, 592, 209...
[ 0.03021240234375, 0.207763671875, 0.13525390625, 0.19140625, 0.134765625, 0.0867919921875, 0.1328125, 0.1429443359375, 0.1295166015625, 0.1895751953125, 0.06890869140625, 0.0274505615234375, 0.2205810546875, 0.1597900390625, 0.09539794921875, 0.042205810546875, 0.0621337890625, 0.1...
embed
23038033_c0
23038033
prolog
0
Title: Is it possible to get these memory addresses in gnu prolog? Problem title: Is it possible to get these memory addresses in gnu prolog? Tags: gnu-prolog, prolog Problem: Is it possible to get these memory addresses in gnu prolog? Basically I am trying to simulate C pointer dereference using gnu-prolog. Here is th...
Is it possible to get these memory addresses in gnu prolog? Is it possible to get these memory addresses in gnu prolog? gnu-prolog prolog Val gprolog.h string.h PlBool PL_FALSE PL_TRUE Is it possible to get these memory addresses in gnu prolog? Basically I am trying to simulate C pointer dereference using gnu-prolog. H...
[ 0.0235595703125, 0.0294189453125, 0.00787353515625, 0.016845703125, -0.0006561279296875, 0.005615234375, -0.01470947265625, 0.00445556640625, 0.004486083984375, -0.05224609375, 0.0091552734375, 0.025390625, -0.0113525390625, 0.0196533203125, 0.02734375, -0.01104736328125, 0.006774902...
[ 2071, 442, 7722, 2046, 6097, 98323, 29823, 90, 23, 104155, 502, 4867, 3454, 4769, 706, 127, 79315, 29016, 12647, 929, 33106, 919, 7842, 28981, 37066, 40226, 313, 6275, 56, 8, 239879, 1250, 198343, 44691, 27037, 42, 1660, 20805, 77336, 98,...
[ 0.0233001708984375, 0.0203094482421875, 0.1763916015625, 0.123779296875, 0.100341796875, 0.240478515625, 0.2015380859375, 0.11328125, 0.05035400390625, 0.2218017578125, 0.1729736328125, 0.2281494140625, 0.173095703125, 0.1602783203125, 0.0252227783203125, 0.128662109375, 0.1624755859...
embed
51051699_c0
51051699
prolog
0
Title: Error when defining length in SWI Prolog Problem title: Error when defining length in SWI Prolog Tags: swi-prolog, prolog Problem: Error when defining length in SWI Prolog I have defined a procedure named length in a file named test.pl : % Finds the length of a list. length([], 0). length([_ | Tail], N) :- lengt...
Error when defining length in SWI Prolog Error when defining length in SWI Prolog swi-prolog prolog Error SWI Prolog test.pl Finds Tail test.pl:2 Defined init.pl:3496 test.pl:3 Error when defining length in SWI Prolog I have defined a procedure named length in a file named test.pl : When the program is run using SWI-Pr...
[ 0.000331878662109375, 0.03076171875, 0.0263671875, 0.006134033203125, -0.0038604736328125, -0.0166015625, -0.01470947265625, 0.01226806640625, 0.01153564453125, -0.03564453125, -0.005340576171875, -0.0027313232421875, -0.005859375, 0.0037384033203125, 0.04345703125, 0.002532958984375, ...
[ 212059, 3229, 13204, 449, 140909, 23, 159, 38969, 1250, 4867, 91, 2452, 3454, 502, 3034, 2424, 26040, 1218, 379, 304, 5983, 217, 30197, 11648, 363, 61924, 50491, 4806, 11435, 1528, 11675, 17368, 10752, 25632, 18499, 135179, 37842, 151134, 9...
[ 0.17236328125, 0.0579833984375, 0.2215576171875, 0.05987548828125, 0.252685546875, 0.06280517578125, 0.08331298828125, 0.228271484375, 0.1826171875, 0.178955078125, 0.051300048828125, 0.18701171875, 0.110595703125, 0.1365966796875, 0.1876220703125, 0.13427734375, 0.07421875, 0.1281...
embed
37513413_c0
37513413
prolog
0
Title: Assigning a value to a variable from a given list in Prolog Problem title: Assigning a value to a variable from a given list in Prolog Tags: prolog Problem: Assigning a value to a variable from a given list in Prolog I want to assign a value to a variable, both are given in a list by my parser. So basically when...
Assigning a value to a variable from a given list in Prolog Assigning a value to a variable from a given list in Prolog prolog a Assigning Prolog assign_value R1-1 nth0 Result Length ListBefore ListAfter Initial Final Assigning a value to a variable from a given list in Prolog I want to assign a value to a variable, bo...
[ -0.00119781494140625, 0.011962890625, 0.011962890625, 0.00173187255859375, -0.0030364990234375, -0.00482177734375, -0.0155029296875, 0.0228271484375, 0.0157470703125, -0.003692626953125, 0.01422119140625, 0.01116943359375, 0.0022735595703125, -0.00189208984375, -0.00124359130859375, -0...
[ 1301, 31304, 34292, 47, 77336, 1295, 34475, 5303, 1250, 4867, 23, 502, 214, 95486, 27494, 627, 115727, 927, 2389, 126684, 77554, 32036, 89700, 46327, 27188, 3444, 15044, 366, 2189, 2046, 425, 2203, 116, 1022, 31577, 13695, 160, 26783, 98320...
[ 0.07421875, 0.258056640625, 0.2100830078125, 0.1439208984375, 0.273681640625, 0.07232666015625, 0.1046142578125, 0.185302734375, 0.1700439453125, 0.255126953125, 0.0259246826171875, 0.1287841796875, 0.010650634765625, 0.2509765625, 0.189208984375, 0.0482177734375, 0.0966796875, 0.0...
embed
22177931_c1
22177931
prolog
1
: Clauses of father/2 are not together in the source-file Warning: /home/moose/Desktop/family.pl:14: Clauses of mother/2 are not together in the source-file % family compiled 0.00 sec, 17 clauses true. I don't understand what is the problem here. I've found some results that mentioned that - cannot be used in identifie...
: Clauses of father/2 are not together in the source-file Warning: /home/moose/Desktop/family.pl:14: Clauses of mother/2 are not together in the source-file % family compiled 0.00 sec, 17 clauses true. I don't understand what is the problem here. I've found some results that mentioned that - cannot be used in identifie...
[ 0.022705078125, 0.0181884765625, 0.000713348388671875, 0.00014495849609375, -0.0291748046875, 0.0004425048828125, 0.0026397705078125, -0.0017852783203125, 0.006439208984375, -0.01422119140625, -0.0164794921875, -0.0135498046875, 0.00145721435546875, -0.01153564453125, 0.0126953125, 0.0...
[ 100700, 90, 111, 67373, 12477, 621, 959, 25842, 23, 31344, 29822, 5550, 592, 29552, 432, 8364, 4657, 1042, 13784, 212122, 2424, 22635, 42732, 1745, 14449, 375, 5974, 37509, 19216, 729, 70731, 29568, 28219, 2967, 53418, 11814, 42485, 1314, 1...
[ 0.216064453125, 0.14453125, 0.14111328125, 0.2244873046875, 0.250244140625, 0.073974609375, 0.189208984375, 0.24072265625, 0.042999267578125, 0.2054443359375, 0.190673828125, 0.1414794921875, 0.0770263671875, 0.0946044921875, 0.091796875, 0.1861572265625, 0.1319580078125, 0.1021118...
embed
16821832_c0
16821832
prolog
0
Title: How to define variables for the following scenario in CLPFD? Problem title: How to define variables for the following scenario in CLPFD? Tags: clpfd, prolog, sicstus-prolog Problem: How to define variables for the following scenario in CLPFD? I have a set of variables T_1, T_2, ..., T_N and I would like to rewri...
How to define variables for the following scenario in CLPFD? How to define variables for the following scenario in CLPFD? clpfd prolog sicstus-prolog How CLPFD T_1 T_2 T_N all_different FOREACH T_3 THEN Slot_x ENDFOREACH Slot_0 Slot_1 How to define variables for the following scenario in CLPFD? I have a set of variable...
[ -0.01300048828125, 0.003448486328125, -0.006744384765625, 0.00885009765625, 0.0019073486328125, -0.0145263671875, 0.0021209716796875, 0.003570556640625, -0.007080078125, -0.0252685546875, -0.00933837890625, -0.0135498046875, 0.006317138671875, 0.033935546875, 0.012939453125, 0.00674438...
[ 11249, 47, 61924, 77336, 7, 100, 25632, 106117, 23, 46323, 41265, 397, 33139, 39557, 71, 502, 4867, 26536, 18253, 3454, 384, 115187, 304, 839, 756, 238778, 37672, 363, 69623, 425, 2389, 5423, 456, 434, 18781, 74189, 40899, 54529, 122446, ...
[ 0.04974365234375, 0.006866455078125, 0.2225341796875, 0.2900390625, 0.1224365234375, 0.051361083984375, 0.1141357421875, 0.18896484375, 0.004486083984375, 0.1103515625, 0.1490478515625, 0.1868896484375, 0.0672607421875, 0.10546875, 0.137939453125, 0.0970458984375, 0.152587890625, 0...
embed
50282594_c0
50282594
prolog
0
Title: Compare and remove elements from list Problem title: Compare and remove elements from list Tags: prolog Problem: Compare and remove elements from list So i want to make a program that, given a list and an element, returns only the list until said element appears,like this: propaga( [(1,1),(1,2),(1,3),(1,4)],(1,3...
Compare and remove elements from list Compare and remove elements from list prolog list Compare Tail Tail1 propaga_aux Compare and remove elements from list So i want to make a program that, given a list and an element, returns only the list until said element appears,like this: Currently i have this: Adiciona adds an ...
[ 0.001495361328125, 0.01483154296875, 0.013427734375, 0.01446533203125, -0.0225830078125, 0.00634765625, -0.015380859375, -0.001251220703125, 0.0164794921875, -0.01165771484375, 0.0123291015625, 0.0203857421875, -0.007476806640625, -0.0047607421875, -0.0003070831298828125, 0.00689697265...
[ 113307, 13, 136, 87388, 80854, 1295, 5303, 502, 4867, 1218, 379, 175648, 10442, 3444, 3249, 1528, 34475, 12830, 30646, 7, 4734, 24189, 135179, 5062, 114063, 29150, 6447, 11, 15190, 47, 3564, 111, 13695, 98320, 2967, 4527, 1653, 2063, 67, ...
[ 0.2001953125, 0.0517578125, 0.05511474609375, 0.174072265625, 0.1988525390625, 0.134521484375, 0.178955078125, 0.0986328125, 0.1807861328125, 0.08935546875, 0.09130859375, 0.177490234375, 0.1405029296875, 0.06768798828125, 0.04046630859375, 0.1500244140625, 0.03851318359375, 0.1384...
embed
23717792_c0
23717792
prolog
0
Title: How to use the labeling function of Prolog (ECLIPSE program) within the SEND+MORE = MONEY program? Problem title: How to use the labeling function of Prolog (ECLIPSE program) within the SEND+MORE = MONEY program? Tags: prolog, eclipse-clp, cryptarithmetic-puzzle Problem: How to use the labeling function of Prolo...
How to use the labeling function of Prolog (ECLIPSE program) within the SEND+MORE = MONEY program? How to use the labeling function of Prolog (ECLIPSE program) within the SEND+MORE = MONEY program? prolog eclipse-clp cryptarithmetic-puzzle How Prolog ECLIPSE SEND MORE MONEY List diff_list shallow_backtrack Tail Yes How...
[ 0.0115966796875, 0.00494384765625, 0.0189208984375, 0.02392578125, -0.02197265625, 0.0208740234375, -0.019287109375, 0.0223388671875, 0.000652313232421875, -0.0291748046875, 0.0267333984375, -0.019775390625, 0.01446533203125, 0.01092529296875, 0.01409912109375, -0.005523681640625, 0....
[ 11249, 4527, 67967, 214, 32354, 1250, 4867, 16546, 175909, 9127, 1528, 28032, 159, 39015, 1328, 594, 54003, 2203, 11507, 206688, 502, 106371, 184, 26775, 136791, 8962, 1766, 13894, 59947, 195879, 32036, 71337, 6562, 35299, 8770, 12620, 125728, ...
[ 0.07861328125, 0.1187744140625, 0.27099609375, 0.156005859375, 0.1649169921875, 0.1748046875, 0.277587890625, 0.0635986328125, 0.1927490234375, 0.196533203125, 0.1639404296875, 0.0877685546875, 0.05352783203125, 0.13818359375, 0.1334228515625, 0.0672607421875, 0.19189453125, 0.0780...
embed
67498190_c0
67498190
prolog
0
Title: How to instantiate Y for a digit-counting predicate? Problem title: How to instantiate Y for a digit-counting predicate? Tags: prolog Problem: How to instantiate Y for a digit-counting predicate? I have a method that goes through a number X, and counts how many of its digits are even (which is the purpose of the...
How to instantiate Y for a digit-counting predicate? How to instantiate Y for a digit-counting predicate? prolog How count_even How to instantiate Y for a digit-counting predicate? I have a method that goes through a number X, and counts how many of its digits are even (which is the purpose of the Y parameter) of cours...
[ 0.006439208984375, 0.00958251953125, -0.00238037109375, -0.01123046875, 0.01055908203125, 0.0283203125, -0.00408935546875, -0.0150146484375, 0.02734375, -0.0400390625, 0.0027313232421875, -0.052734375, 0.002044677734375, 0.000629425048828125, 0.02685546875, 0.00174713134765625, -0.00...
[ 11249, 47, 34648, 101426, 990, 100, 153939, 71013, 214, 1653, 2063, 67, 502, 4867, 54529, 454, 26301, 55300, 8305, 14012, 1193, 5941, 111, 6863, 3853, 60042, 171859, 23468, 2046, 50339, 159029, 183540, 2499, 757, 15190, 33022, 53, 3647, 722...
[ 0.099853515625, 0.0286407470703125, 0.1778564453125, 0.231201171875, 0.255615234375, 0.10107421875, 0.181884765625, 0.1690673828125, 0.02239990234375, 0.14892578125, 0.1846923828125, 0.0594482421875, 0.043121337890625, 0.06622314453125, 0.18359375, 0.018951416015625, 0.193603515625, ...
embed
70018595_c0
70018595
prolog
0
Title: Prolog: geting false instead of a list Problem title: Prolog: geting false instead of a list Tags: prolog Problem: Prolog: geting false instead of a list my knowlegde base is something like this user (USERID, USERNAME, [Tags]) for exameple no(1,ana,[natureza,pintura,musica,sw,porto]). no(11,antonio,[natureza,pin...
Prolog: geting false instead of a list Prolog: geting false instead of a list prolog Prolog USERID USERNAME Tags USER list_length Prolog: geting false instead of a list my knowlegde base is something like this for exameple I'm trying to get the users with X common tags with an user I have this code but it returns false...
[ 0.00860595703125, 0.003936767578125, 0.0172119140625, -0.00787353515625, -0.006866455078125, 0.0179443359375, -0.00098419189453125, 0.00762939453125, 0.0299072265625, -0.0625, 0.01226806640625, 0.01214599609375, 0.0032501220703125, 0.00701904296875, 0.0247802734375, 0.0087890625, 0.0...
[ 1250, 4867, 2046, 214, 98320, 64457, 111, 5303, 502, 78441, 150331, 345, 50184, 182512, 12298, 23986, 3714, 2828, 112, 3647, 31577, 72095, 678, 1193, 39210, 69141, 38937, 18151, 30646, 4358, 22936, 1733 ]
[ 0.157958984375, 0.242919921875, 0.0743408203125, 0.0245361328125, 0.255126953125, 0.15673828125, 0.05975341796875, 0.19580078125, 0.09771728515625, 0.052703857421875, 0.1138916015625, 0.06256103515625, 0.0902099609375, 0.047149658203125, 0.1458740234375, 0.0802001953125, 0.0397338867...
embed
26849346_c0
26849346
prolog
0
Title: SWI-Prolog threads with stream output Problem title: SWI-Prolog threads with stream output Tags: prolog, multithreading, swi-prolog Problem: SWI-Prolog threads with stream output If I have a program like the one below, does prolog try to prove maximum/3 all three times in parallel? i.e does each thread get its o...
SWI-Prolog threads with stream output SWI-Prolog threads with stream output prolog multithreading swi-prolog SWI-Prolog Stream thread_exit File thread_create thread_join SWI-Prolog threads with stream output If I have a program like the one below, does prolog try to prove maximum/3 all three times in parallel? i.e does...
[ 0.01397705078125, -0.00038909912109375, 0.00141143798828125, 0.000179290771484375, -0.00732421875, 0.01165771484375, 0.00665283203125, -0.01129150390625, 0.00439453125, -0.043701171875, 0.01708984375, 0.022705078125, -0.0084228515625, -0.01068115234375, 0.020751953125, -0.01171875, 0...
[ 159, 38969, 10752, 4867, 86997, 678, 75973, 140992, 502, 3869, 65847, 91, 2452, 3454, 115061, 13, 23399, 42724, 7612, 513, 1528, 1884, 35064, 14602, 9790, 23534, 38132, 18113, 756, 17262, 20028, 95103, 12638, 2046, 6863, 10002, 56458, 19882, ...
[ 0.057891845703125, 0.216796875, 0.153564453125, 0.2322998046875, 0.2156982421875, 0.0145416259765625, 0.1903076171875, 0.177490234375, 0.1754150390625, 0.0804443359375, 0.1658935546875, 0.00921630859375, 0.1654052734375, 0.1190185546875, 0.18994140625, 0.013671875, 0.1256103515625, ...
embed
53745648_c1
53745648
prolog
1
/lib/" is added to VM arguments in run configuration . Anyway, when I want to compile it I've got an error: Exception in thread "main" java.lang.UnsatisfiedLinkError: jpl.fli.Prolog.thread_self()I at jpl.fli.Prolog.thread_self(Native Method) at jpl.Query.open(Query.java:286) at jpl.Query.hasMoreSolutions(Query.java:256...
/lib/" is added to VM arguments in run configuration . Anyway, when I want to compile it I've got an error: Exception in thread "main" java.lang.UnsatisfiedLinkError: jpl.fli.Prolog.thread_self()I at jpl.fli.Prolog.thread_self(Native Method) at jpl.Query.open(Query.java:286) at jpl.Query.hasMoreSolutions(Query.java:256...
[ 0.00148773193359375, 0.00927734375, -0.00701904296875, 0.022216796875, -0.033935546875, -0.005340576171875, -0.004547119140625, 0.0086669921875, -0.012451171875, -0.064453125, -0.002777099609375, -0.00738525390625, -0.0111083984375, 0.002410888671875, 0.000965118408203125, -0.011352539...
[ 248, 5612, 64, 49814, 47, 43084, 10750, 11675, 180346, 126786, 3444, 9969, 1340, 442, 18499, 5443, 63928, 23, 86997, 24931, 79, 330, 3066, 14256, 50958, 1029, 297, 64287, 18468, 31611, 1647, 2424, 36361, 10752, 4867, 39116, 39379, 568, 99, ...
[ 0.090576171875, 0.2607421875, 0.1068115234375, 0.160888671875, 0.0223846435546875, 0.2509765625, 0.220703125, 0.138671875, 0.1912841796875, 0.011383056640625, 0.032196044921875, 0.1519775390625, 0.1376953125, 0.050567626953125, 0.194091796875, 0.060516357421875, 0.1844482421875, 0....
embed
43967759_c0
43967759
prolog
0
Title: How to print function result after pressing a button in XPCE Problem title: How to print function result after pressing a button in XPCE Tags: swi-prolog, xpce, prolog Problem: How to print function result after pressing a button in XPCE I am trying to print a function result via pressing a button in XPCE. Here ...
How to print function result after pressing a button in XPCE How to print function result after pressing a button in XPCE swi-prolog xpce prolog How XPCE Max max_square use_module Test How to print function result after pressing a button in XPCE I am trying to print a function result via pressing a button in XPCE. Here...
[ 0.0069580078125, 0.000736236572265625, 0.01251220703125, 0.0194091796875, 0.01190185546875, 0.0245361328125, 0.0096435546875, 0.001922607421875, 0.0018463134765625, -0.0380859375, 0.0184326171875, -0.003265380859375, -0.0038604736328125, -0.02685546875, 0.01092529296875, -0.02709960937...
[ 11249, 47, 28412, 32354, 16750, 7103, 24234, 214, 77679, 45005, 10854, 23, 2452, 3454, 4867, 1022, 254, 329, 502, 9920, 18389, 108047, 4527, 83279, 8647, 31577, 1829, 18151, 18499, 201939, 605, 25687, 30022, 7722, 26519, 76896 ]
[ 0.034912109375, 0.0182647705078125, 0.2275390625, 0.1883544921875, 0.191162109375, 0.1248779296875, 0.1458740234375, 0.0821533203125, 0.1939697265625, 0.1551513671875, 0.2039794921875, 0.05499267578125, 0.1431884765625, 0.07293701171875, 0.1375732421875, 0.0143280029296875, 0.0245819...
embed
32321263_c0
32321263
prolog
0
Title: Do I need &quot;base step&quot; to make a recursion on Prolog? Problem title: Do I need &quot;base step&quot; to make a recursion on Prolog? Tags: prolog, transitive-closure Problem: Do I need "base step" to make a recursion on Prolog? I'm learning Prolog at my university and I'm stuck with a question. Note that...
Do I need &quot;base step&quot; to make a recursion on Prolog? Do I need &quot;base step&quot; to make a recursion on Prolog? prolog transitive-closure Prolog recur_disciplinas Do I need "base step" to make a recursion on Prolog? I'm learning Prolog at my university and I'm stuck with a question. Note that I'm a newbie...
[ 0.01470947265625, 0.00640869140625, 0.00092315673828125, 0.027099609375, -0.00921630859375, -0.004425048828125, -0.0247802734375, -0.00091552734375, 0.0101318359375, -0.041015625, 0.0166015625, -0.006103515625, -0.01287841796875, 0.019287109375, 0.018798828125, 0.009521484375, 0.0319...
[ 3871, 37382, 29954, 3249, 195625, 1830, 98, 1250, 4867, 87, 502, 62621, 5844, 170224, 43852, 42, 141223, 10, 52080, 152363, 179933, 9014, 26785, 10010, 80854, 61924, 79986, 2424, 11435, 38679, 20697, 96276, 159978, 5701, 882, 133, 9351, 162, ...
[ 0.1812744140625, 0.25537109375, 0.26611328125, 0.0648193359375, 0.2457275390625, 0.1749267578125, 0.0692138671875, 0.187744140625, 0.2685546875, 0.02862548828125, 0.0987548828125, 0.0904541015625, 0.0809326171875, 0.1583251953125, 0.1356201171875, 0.05328369140625, 0.1392822265625, ...
embed
52560623_c0
52560623
prolog
0
Title: N-queen problem in prolog. How to optimize the queen choice to be more efficient? Problem title: N-queen problem in prolog. How to optimize the queen choice to be more efficient? Tags: prolog, n-queens Problem: N-queen problem in prolog. How to optimize the queen choice to be more efficient? I implemented the N-...
N-queen problem in prolog. How to optimize the queen choice to be more efficient? N-queen problem in prolog. How to optimize the queen choice to be more efficient? prolog n-queens N-queen How Rest Queen Y1-Y X1-X Y-Y1 X-X1 Please N-2 N-queen problem in prolog. How to optimize the queen choice to be more efficient? I im...
[ -0.0079345703125, -0.00390625, 0.03173828125, 0.0201416015625, -0.0093994140625, -0.00823974609375, 0.0036468505859375, -0.00018787384033203125, 0.0028228759765625, -0.0201416015625, 0.01214599609375, 0.011474609375, -0.0035400390625, -0.03369140625, -0.02294921875, 0.0074462890625, ...
[ 541, 9, 944, 33, 2967, 23, 502, 4867, 11249, 15572, 20650, 41, 44126, 1286, 93766, 653, 1755, 49756, 44109, 990, 20268, 1723, 1193, 1542, 418, 30607, 5428, 29479, 159, 38969, 1250, 3444, 18151, 3917, 15549, 17721, 839, 111, 17678, 54497 ]
[ 0.2177734375, 0.041015625, 0.205322265625, 0.202392578125, 0.1695556640625, 0.052032470703125, 0.1514892578125, 0.216064453125, 0.046356201171875, 0.1419677734375, 0.0767822265625, 0.1640625, 0.1646728515625, 0.079833984375, 0.16357421875, 0.1427001953125, 0.0982666015625, 0.169067...
embed
42987913_c0
42987913
prolog
0
Title: Prolog rewriting equations Problem title: Prolog rewriting equations Tags: prolog Problem: Prolog rewriting equations I am trying to create a rewrite predicate in SWI-Prolog that checks if an equation can be simplified then replaces the old one with the new one. I have tried to do the following: Lets say I have ...
Prolog rewriting equations Prolog rewriting equations prolog Prolog simplify_exp y-1 Prolog rewriting equations I am trying to create a rewrite predicate in SWI-Prolog that checks if an equation can be simplified then replaces the old one with the new one. I have tried to do the following: Lets say I have the following...
[ -0.00616455078125, 0.006378173828125, 0.00052642822265625, 0.0289306640625, 0.01123046875, 0.0034637451171875, 0.01202392578125, 0.0030975341796875, -0.00139617919921875, 0.010009765625, 0.002960205078125, 0.00921630859375, -0.00311279296875, -0.00830078125, 0.00726318359375, 0.0119628...
[ 1250, 4867, 456, 199332, 28, 13722, 502, 112892, 18929, 83613, 113, 5759, 31577, 28282, 434, 18781, 1653, 2063, 67, 159, 38969, 10752, 12765, 5490, 2320, 831, 1029, 91995, 10332, 678, 3525, 37842, 25632, 1022, 138790, 3444, 107, 442, 1542, ...
[ 0.1619873046875, 0.2186279296875, 0.142822265625, 0.1763916015625, 0.07269287109375, 0.1859130859375, 0.1090087890625, 0.1983642578125, 0.1639404296875, 0.135986328125, 0.0628662109375, 0.0811767578125, 0.0389404296875, 0.080322265625, 0.1396484375, 0.1973876953125, 0.1214599609375, ...
embed
30529406_c0
30529406
prolog
0
Title: `nth0/3` behaviour when N is unbound Problem title: `nth0/3` behaviour when N is unbound Tags: swi-prolog, prolog, iso-prolog Problem: `nth0/3` behaviour when N is unbound If I type in SWI Prolog a "nth0" query, the result is: ?- nth0(N,X,a). N = 0, X = [a|_G282] ; N = 1, X = [_G281, a|_G285] ; N = 2, X = [_G281...
`nth0/3` behaviour when N is unbound `nth0/3` behaviour when N is unbound swi-prolog prolog iso-prolog nth0 _G282 _G281 _G285 _G284 _G288 Errors type_error Index `nth0/3` behaviour when N is unbound If I type in SWI Prolog a "nth0" query, the result is: however, the SWI manual says: so, if my understanding of this text...
[ 0.0009613037109375, 0.0107421875, 0.022705078125, -0.0172119140625, -0.01397705078125, -0.00506591796875, 0.039794921875, -0.0068359375, -0.001129150390625, -0.0228271484375, 0.00885009765625, -0.0294189453125, -0.01080322265625, 0.0022735595703125, -0.0035858154296875, -0.01171875, ...
[ 927, 2389, 18113, 224833, 3229, 541, 83, 51, 99091, 91, 2452, 3454, 4867, 502, 13882, 653, 3882, 304, 418, 101800, 617, 103064, 212059, 10644, 188800, 31471, 159, 38969, 1250, 19, 41, 1294, 23009, 100094, 7986, 26785, 37202, 18499, 5608, ...
[ 0.1728515625, 0.2030029296875, 0.264892578125, 0.1934814453125, 0.06866455078125, 0.1466064453125, 0.064697265625, 0.073486328125, 0.2154541015625, 0.00262451171875, 0.1708984375, 0.115966796875, 0.204833984375, 0.0972900390625, 0.086669921875, 0.0160064697265625, 0.145263671875, 0...
embed
67962858_c0
67962858
prolog
0
Title: Can not get first node in the visited nodes of prolog graph traversal Problem title: Can not get first node in the visited nodes of prolog graph traversal Tags: python, prolog Problem: Can not get first node in the visited nodes of prolog graph traversal I found a path finding algorithm based on Prolog. This is ...
Can not get first node in the visited nodes of prolog graph traversal Can not get first node in the visited nodes of prolog graph traversal python prolog Can path_aux prolog.query Can not get first node in the visited nodes of prolog graph traversal I found a path finding algorithm based on Prolog. This is the content ...
[ 0.0098876953125, 0.01043701171875, 0.01043701171875, 0.029052734375, -0.0076904296875, 0.0115966796875, -0.01495361328125, -0.01446533203125, -0.0032958984375, -0.0849609375, 0.0191650390625, 0.01385498046875, -0.0220947265625, 0.00008392333984375, 0.010498046875, 0.0000094175338745117...
[ 4171, 959, 2046, 5117, 110, 112, 36997, 988, 502, 4867, 41382, 37317, 289, 23, 17198, 50828, 60875, 10442, 944, 1294, 90791, 234873, 1250, 10941, 1517, 814, 2317, 683, 11435, 5303, 46552, 3173, 80836, 41, 35064, 35735, 285, 41206, 86869 ]
[ 0.056640625, 0.1207275390625, 0.1146240234375, 0.1451416015625, 0.15283203125, 0.1705322265625, 0.1602783203125, 0.101318359375, 0.1357421875, 0.2193603515625, 0.1492919921875, 0.1558837890625, 0.05230712890625, 0.00457763671875, 0.010498046875, 0.0516357421875, 0.158203125, 0.1846...
embed
32611228_c0
32611228
prolog
0
Title: Is it possible to declare an ascending list? Problem title: Is it possible to declare an ascending list? Tags: clpfd, list, prolog Problem: Is it possible to declare an ascending list? I can make lists of ascending integer like so: ?- findall(L,between(1,5,L),List). I know I can also generate values using: ?- le...
Is it possible to declare an ascending list? Is it possible to declare an ascending list? clpfd list prolog List use_module list_to_n all_different list_to_n2 Is it possible to declare an ascending list? I can make lists of ascending integer like so: I know I can also generate values using: But I don't think I can use ...
[ 0.0140380859375, 0.003509521484375, 0.001434326171875, 0.0022430419921875, -0.01275634765625, 0.01025390625, 0.004791259765625, -0.01507568359375, 0.0218505859375, -0.033203125, 0.00714111328125, -0.016357421875, 0.00506591796875, 0.016845703125, 0.0064697265625, -0.004486083984375, ...
[ 2071, 442, 7722, 47, 159978, 142, 82800, 214, 5303, 33139, 39557, 71, 502, 4867, 32036, 4527, 83279, 188, 19, 756, 238778, 304, 831, 3249, 111, 892, 1505, 1884, 221, 139392, 142424, 17368, 7413, 5584, 40956, 10, 4568, 55300, 37202, 2965, ...
[ 0.0153656005859375, 0.035552978515625, 0.18896484375, 0.045440673828125, 0.25537109375, 0.0406494140625, 0.22021484375, 0.1678466796875, 0.256103515625, 0.059478759765625, 0.06396484375, 0.1258544921875, 0.102783203125, 0.192626953125, 0.110595703125, 0.08978271484375, 0.122436523437...
embed
50615716_c1
50615716
prolog
1
the provided links? linked(_, []). linked(List, [Elem]) :- swapped(Elem, Alt), member_or(Elem, Alt, List). % Is the item valid? linked(List, [First|Ring]) :- swapped(First, Alt), member_or(First, Alt, List), % Is the first item valid? Ring = [Second|_], adjacent(First, Second), % Can the next item be adjacent? linked(...
the provided links? linked(_, []). linked(List, [Elem]) :- swapped(Elem, Alt), member_or(Elem, Alt, List). % Is the item valid? linked(List, [First|Ring]) :- swapped(First, Alt), member_or(First, Alt, List), % Is the first item valid? Ring = [Second|_], adjacent(First, Second), % Can the next item be adjacent? linked(...
[ -0.0225830078125, -0.0022125244140625, 0.01495361328125, 0.0137939453125, -0.0225830078125, -0.0107421875, -0.01397705078125, 0.01092529296875, 0.01263427734375, -0.0291748046875, -0.004119873046875, 0.0240478515625, 0.0067138671875, 0.0130615234375, -0.01904296875, 0.0032958984375, ...
[ 62952, 22317, 32, 3126, 297, 454, 194, 154663, 7623, 195, 15772, 68062, 48398, 10544, 32786, 748, 32036, 1745, 2071, 35735, 35604, 207263, 1052, 214, 5117, 21434, 2203, 4233, 2271, 123594, 16797, 77648, 4171, 11737, 5701, 41018, 29568, 1632, ...
[ 0.142333984375, 0.2418212890625, 0.001922607421875, 0.23876953125, 0.1556396484375, 0.03973388671875, 0.0322265625, 0.201904296875, 0.0784912109375, 0.155517578125, 0.071044921875, 0.1661376953125, 0.108154296875, 0.1593017578125, 0.1697998046875, 0.10107421875, 0.1156005859375, 0....
embed
68085548_c0
68085548
prolog
0
Title: How to use Prolog&#x27;s foreach/2 loop Problem title: How to use Prolog&#x27;s foreach/2 loop Tags: eclipse-clp, prolog Problem: How to use Prolog's foreach/2 loop I am trying to get the foreach/2 loop to work in Prolog (using tkeclipse). I understand it needs an element in the first argument and a list to sear...
How to use Prolog&#x27;s foreach/2 loop How to use Prolog&#x27;s foreach/2 loop eclipse-clp prolog How Prolog british_museum List How to use Prolog's foreach/2 loop I am trying to get the foreach/2 loop to work in Prolog (using tkeclipse). I understand it needs an element in the first argument and a list to search for ...
[ 0.0052490234375, 0.004180908203125, 0.011962890625, 0.025634765625, 0.00982666015625, 0.0233154296875, -0.00506591796875, -0.007293701171875, 0.0113525390625, -0.06689453125, 0.04296875, 0.00970458984375, -0.01043701171875, -0.00506591796875, 0.0033721923828125, 0.0004730224609375, 0...
[ 11249, 47, 4527, 1250, 4867, 3768, 100, 41581, 12477, 40956, 106371, 184, 26775, 502, 22473, 4745, 78909, 32036, 31577, 4488, 23, 223, 35640, 27117, 12830, 5117, 10750, 5303, 33938, 28032, 17932, 2967, 18151, 51347, 25632, 9790, 33022, 1653, ...
[ 0.09271240234375, 0.025665283203125, 0.156005859375, 0.1748046875, 0.25390625, 0.057769775390625, 0.095458984375, 0.2481689453125, 0.235107421875, 0.2125244140625, 0.16552734375, 0.128662109375, 0.123779296875, 0.09283447265625, 0.1754150390625, 0.1328125, 0.2158203125, 0.191894531...
embed
63786318_c0
63786318
prolog
0
Title: Prolog: is there any way to generate the following items from a list? Problem title: Prolog: is there any way to generate the following items from a list? Tags: prolog, list Problem: Prolog: is there any way to generate the following items from a list? I want to develop a predicate in prolog called next, which g...
Prolog: is there any way to generate the following items from a list? Prolog: is there any way to generate the following items from a list? prolog list a Prolog Res next3 Prolog: is there any way to generate the following items from a list? I want to develop a predicate in prolog called next, which given a list returns...
[ 0.003173828125, 0.0206298828125, 0.007781982421875, 0.007659912109375, -0.0010528564453125, 0.0078125, 0.000408172607421875, 0.00011348724365234375, 0.032470703125, -0.03564453125, -0.002655029296875, -0.01116943359375, 0.00335693359375, 0.0164794921875, -0.000316619873046875, -0.00415...
[ 1250, 4867, 2499, 3917, 139392, 25632, 55769, 1295, 5303, 2685, 47, 10, 502, 9624, 11737, 363, 3444, 85493, 1653, 2063, 67, 34475, 30646, 541, 80854, 4568, 34292, 13267, 5201, 133063, 82449, 627, 104629, 136005, 1662, 2681, 2592, 1837, 2485...
[ 0.1591796875, 0.2354736328125, 0.0924072265625, 0.1424560546875, 0.24560546875, 0.14208984375, 0.188720703125, 0.150390625, 0.2186279296875, 0.03814697265625, 0.03802490234375, 0.014190673828125, 0.136962890625, 0.0941162109375, 0.259765625, 0.1351318359375, 0.046966552734375, 0.11...
embed
14934585_c0
14934585
prolog
0
Title: Prolog reassigning operators Problem title: Prolog reassigning operators Tags: iso-prolog, prolog, operators, redefine Problem: Prolog reassigning operators I'm new to prolog and I'm trying to reassign operators in prolog by changing their precedence. I'm running into 4 errors for the following: :-op(1000,yf,+)....
Prolog reassigning operators Prolog reassigning operators iso-prolog prolog operators redefine Prolog permission_error Prolog reassigning operators I'm new to prolog and I'm trying to reassign operators in prolog by changing their precedence. I'm running into 4 errors for the following: The first two give me a similar ...
[ 0.01409912109375, -0.00274658203125, 0.024658203125, 0.0152587890625, 0.0133056640625, -0.014892578125, -0.007049560546875, 0.0184326171875, -0.0022735595703125, -0.00970458984375, 0.0002613067626953125, -0.01611328125, 0.0147705078125, -0.01068115234375, 0.00604248046875, 0.0201416015...
[ 1250, 4867, 456, 162, 31304, 39933, 13882, 3454, 502, 15265, 64552, 168081, 188800, 3525, 31577, 7, 151134, 107671, 6620, 51042, 3934, 201, 18499, 25632, 163, 21373, 903, 140807, 1632, 12921, 92610, 134598, 155648, 1745, 66747, 99710, 2182, 6...
[ 0.14892578125, 0.236083984375, 0.10888671875, 0.100830078125, 0.2003173828125, 0.2427978515625, 0.09161376953125, 0.1024169921875, 0.133544921875, 0.081298828125, 0.1260986328125, 0.1920166015625, 0.1619873046875, 0.031280517578125, 0.008514404296875, 0.06707763671875, 0.107299804687...
embed