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
29222546_c0
29222546
prolog
0
Title: Manipulate a Rubik's Cube in Prolog Problem title: Manipulate a Rubik's Cube in Prolog Tags: rubiks-cube, prolog Problem: Manipulate a Rubik's Cube in Prolog I want to do some basic rotations on a scrambled Rubik cube in prolog untill it's solved. I am thinking of saving the cube as lists like so: [w,w...
Manipulate a Rubik's Cube in Prolog Manipulate a Rubik's Cube in Prolog rubiks-cube prolog Manipulate Rubik Cube Prolog Manipulate a Rubik's Cube in Prolog I want to do some basic rotations on a scrambled Rubik cube in prolog untill it's solved. I am thinking of saving the cube as lists like so: How can I imp...
[ 0.02294921875, 0.0233154296875, 0.0269775390625, 0.0115966796875, -0.01324462890625, 0.01495361328125, -0.01251220703125, 0.0169677734375, -0.0002231597900390625, 0.0013275146484375, 0.003265380859375, 0.00103759765625, -0.0035858154296875, 0.0004177093505859375, -0.020751953125, 0.008...
[ 221169, 2182, 123099, 92, 3768, 3003, 372, 23, 1250, 4867, 21922, 18070, 1010, 502, 3444, 54, 62822, 47014, 5256, 98, 15182, 40099, 314, 30394, 86869, 47644, 6496, 237, 5303, 1884, 221, 29479, 1052, 1062, 919, 571, 397, 866, 345, 2062, ...
[ 0.2120361328125, 0.0701904296875, 0.1787109375, 0.1468505859375, 0.048828125, 0.1529541015625, 0.1561279296875, 0.053131103515625, 0.1357421875, 0.2232666015625, 0.0750732421875, 0.1055908203125, 0.1181640625, 0.1239013671875, 0.078369140625, 0.0289764404296875, 0.10662841796875, 0...
embed
36556545_c0
36556545
prolog
0
Title: Remove adjacent duplicates in a list with Prolog Problem title: Remove adjacent duplicates in a list with Prolog Tags: prolog Problem: Remove adjacent duplicates in a list with Prolog I found a similar post but it didn't work for me. So please don't try to redirect me to other links. This is the result that I wa...
Remove adjacent duplicates in a list with Prolog Remove adjacent duplicates in a list with Prolog prolog Remove Prolog Remove adjacent duplicates in a list with Prolog I found a similar post but it didn't work for me. So please don't try to redirect me to other links. This is the result that I want: I tried this code: ...
[ -0.00096893310546875, 0.0228271484375, 0.01446533203125, 0.01336669921875, -0.01409912109375, 0.01458740234375, -0.00299072265625, 0.026611328125, 0.003753662109375, -0.03076171875, -0.01513671875, 0.0244140625, -0.0126953125, 0.01043701171875, 0.010009765625, 0.0255126953125, -0.000...
[ 181139, 123594, 16797, 171763, 1636, 5303, 678, 1250, 4867, 23, 502, 4488, 22936, 80581, 22317, 16750, 3444, 37842, 18151, 9790, 1632, 12830, 3674, 5941, 20028, 43240, 3229, 4527, 12921, 80854, 22027, 18, 1957, 2967, 30022, 30607, 3871, 4358 ...
[ 0.1544189453125, 0.1512451171875, 0.201416015625, 0.2498779296875, 0.155029296875, 0.192626953125, 0.042572021484375, 0.1612548828125, 0.21533203125, 0.0419921875, 0.1156005859375, 0.06951904296875, 0.00482177734375, 0.049072265625, 0.054412841796875, 0.006744384765625, 0.03155517578...
embed
12759700_c0
12759700
prolog
0
Title: What does the colon (:) exactly stand for in Swi-Prolog? Problem title: What does the colon (:) exactly stand for in Swi-Prolog? Tags: prolog Problem: What does the colon (:) exactly stand for in Swi-Prolog? I could not find explicitly what (:) stands for in prolog . In interactive mode you can see the following...
What does the colon (:) exactly stand for in Swi-Prolog? What does the colon (:) exactly stand for in Swi-Prolog? prolog What Swi-Prolog a:b a:b:c a:b:REST a:TAIL TAIL b:REST What does the colon (:) exactly stand for in Swi-Prolog? I could not find explicitly what (:) stands for in prolog . In interactive mode you can ...
[ 0.0301513671875, -0.006591796875, 0.0172119140625, 0.0113525390625, -0.00634765625, 0.0062255859375, 0.006988525390625, -0.00640869140625, 0.004425048828125, -0.012939453125, 0.020751953125, -0.021484375, 0.00080108642578125, -0.0024261474609375, 0.006927490234375, -0.00921630859375, ...
[ 4865, 70, 46512, 12, 66161, 9157, 100, 105432, 9, 10752, 4867, 23, 502, 275, 238, 34465, 618, 90259, 866, 12998, 16444, 876, 2367, 7, 212398, 13736, 77950, 1326, 60042, 65508, 442, 1426, 102, 56661, 195625, 5844, 45646, 237, 32036, 90911,...
[ 0.0147552490234375, 0.0361328125, 0.288330078125, 0.1717529296875, 0.0924072265625, 0.1002197265625, 0.0986328125, 0.236083984375, 0.0816650390625, 0.1595458984375, 0.2166748046875, 0.039215087890625, 0.164794921875, 0.05029296875, 0.003814697265625, 0.0819091796875, 0.070556640625, ...
embed
53895118_c0
53895118
prolog
0
Title: Prolog-Splitting an algebraic expression using only "+" into separate lists of atoms and numbers Problem title: Prolog-Splitting an algebraic expression using only "+" into separate lists of atoms and numbers Tags: prolog Problem: Prolog-Splitting an algebraic expression using only "+" into s...
Prolog-Splitting an algebraic expression using only "+" into separate lists of atoms and numbers Prolog-Splitting an algebraic expression using only "+" into separate lists of atoms and numbers prolog only Prolog-Splitting split_exp Prolog-Splitting an algebraic expression using only "+" into separa...
[ 0.0028533935546875, 0.001678466796875, -0.001678466796875, 0.0296630859375, -0.0194091796875, 0.036865234375, 0.0113525390625, 0.0172119140625, 0.017578125, -0.029296875, 0.013671875, -0.01104736328125, -0.001251220703125, 0.00634765625, 0.006439208984375, 0.0177001953125, -0.0025177...
[ 1250, 4867, 31923, 150, 19514, 429, 2844, 125195, 17368, 4734, 41502, 1328, 3934, 84797, 5303, 34627, 136, 101935, 9, 502, 65450, 83613, 31577, 28282, 1653, 2063, 67, 454, 4527, 7477, 18770, 139392, 6626, 1632, 106, 11, 275, 85398, 5608, ...
[ 0.1553955078125, 0.2099609375, 0.057891845703125, 0.1468505859375, 0.06353759765625, 0.047760009765625, 0.0770263671875, 0.188720703125, 0.005584716796875, 0.07623291015625, 0.0213470458984375, 0.1856689453125, 0.0634765625, 0.0797119140625, 0.1685791015625, 0.1627197265625, 0.040222...
embed
43442422_c0
43442422
prolog
0
Title: Prolog rule within a rule Problem title: Prolog rule within a rule Tags: parameters, rules, prolog Problem: Prolog rule within a rule I have a simple prolog program that is trying to determine who trusts who based of the trusts rule and the knows rule. Here it is know(joe,jack). know(joe,sue). know(joe,betty). k...
Prolog rule within a rule Prolog rule within a rule parameters rules prolog Prolog Person DIFFERENT Prolog rule within a rule I have a simple prolog program that is trying to determine who trusts who based of the trusts rule and the knows rule. Here it is The knows rule is symmetric and transitive,and the trusts rule i...
[ 0.013916015625, 0.00921630859375, -0.00124359130859375, 0.02197265625, -0.0013580322265625, 0.0166015625, -0.03271484375, 0.007080078125, 0.01611328125, -0.049072265625, 0.004730224609375, -0.007049560546875, -0.01251220703125, 0.006439208984375, 0.0281982421875, 0.005462646484375, 0...
[ 1250, 4867, 79986, 28032, 10, 171859, 91736, 502, 15270, 5419, 919, 66804, 20157, 8781, 1528, 31577, 47, 83324, 2750, 63207, 7, 35509, 93002, 230612, 238, 136, 62621, 5844, 61924, 87343, 959, 9077, 54, 77336, 163, 4734, 116, 4527, 201, 23...
[ 0.190673828125, 0.274658203125, 0.232666015625, 0.1982421875, 0.02740478515625, 0.194580078125, 0.2271728515625, 0.1553955078125, 0.2037353515625, 0.056640625, 0.0972900390625, 0.1197509765625, 0.03155517578125, 0.07623291015625, 0.1466064453125, 0.05926513671875, 0.01409912109375, ...
embed
59168257_c1
59168257
prolog
1
-1 we return to first problem. Y == X-1 returns false The only solution that I found to work was switching lines and definition order: natural(1). natural(X) :- natural(Y), X is Y+1. Changing last line to = gives "+1+1+1..." results. == just fails. This solution works great in generating X=1; X=2; ... , but when I use ...
-1 we return to first problem. Y == X-1 returns false The only solution that I found to work was switching lines and definition order: natural(1). natural(X) :- natural(Y), X is Y+1. Changing last line to = gives "+1+1+1..." results. == just fails. This solution works great in generating X=1; X=2; ... , but when I use ...
[ 0.01055908203125, 0.03076171875, 0.010009765625, 0.011962890625, 0.01416015625, 0.0238037109375, 0.0118408203125, -0.00090789794921875, 0.0091552734375, -0.03857421875, 0.002716064453125, 0.009033203125, -0.0031890869140625, 0.01190185546875, 0.0250244140625, 0.00701904296875, 0.0249...
[ 68940, 642, 30646, 47, 5117, 2967, 990, 69112, 1193, 5759, 98320, 4734, 29806, 14037, 4488, 101089, 124519, 80934, 12989, 6083, 27750, 1542, 15772, 1723, 83, 21748, 108193, 4568, 13315, 2203, 7673, 50339, 35782, 43240, 6782, 12663, 33000, 552...
[ 0.207275390625, 0.0960693359375, 0.173583984375, 0.0384521484375, 0.01068115234375, 0.14404296875, 0.17626953125, 0.140380859375, 0.1280517578125, 0.22607421875, 0.2169189453125, 0.0338134765625, 0.105224609375, 0.022186279296875, 0.048797607421875, 0.116455078125, 0.122314453125, ...
embed
72519316_c0
72519316
prolog
0
Title: Return values from database - Prolog Problem title: Return values from database - Prolog Tags: prolog, swi-prolog Problem: Return values from database - Prolog Good morning, I'm learning prolog. But I already searched, but I didn't find a solution, it must be very simple, but I got stuck I created a database lik...
Return values from database - Prolog Return values from database - Prolog prolog swi-prolog database Prolog Titanic Jack Dawson Rose DeWitt Bukater James Cameron Hulk Bruce Banner Betty Ross Ang Lee Return values from database - Prolog Good morning, I'm learning prolog. But I already searched, but I didn't find a solut...
[ 0.01104736328125, 0.015869140625, 0.012451171875, 0.004608154296875, -0.0035858154296875, 0.0125732421875, -0.002349853515625, 0.0093994140625, 0.005767822265625, -0.057373046875, -0.0172119140625, -0.0081787109375, -0.0032958984375, -0.01214599609375, -0.0128173828125, 0.027587890625,...
[ 173340, 142424, 1295, 63399, 1250, 4867, 20, 502, 91, 2452, 9, 3454, 213833, 21763, 91162, 1681, 24009, 262, 36119, 3062, 118612, 720, 14631, 100862, 46840, 92, 112297, 196886, 68326, 53, 53434, 2393, 19824, 42141, 52080, 33938, 29806, 8110, ...
[ 0.2724609375, 0.25146484375, 0.152587890625, 0.27978515625, 0.175537109375, 0.271240234375, 0.008941650390625, 0.1328125, 0.037750244140625, 0.170654296875, 0.00390625, 0.1376953125, 0.310546875, 0.135986328125, 0.131591796875, 0.103271484375, 0.1444091796875, 0.068115234375, 0.0...
embed
41915455_c0
41915455
prolog
0
Title: Prolog find indices in a list and output them as a list Problem title: Prolog find indices in a list and output them as a list Tags: list, prolog Problem: Prolog find indices in a list and output them as a list I'm trying to implement a predicate indices_zero(L,R) , which should find all positions of zeros in a ...
Prolog find indices in a list and output them as a list Prolog find indices in a list and output them as a list list prolog Prolog indices_zero Result indizes_zero Prolog find indices in a list and output them as a list I'm trying to implement a predicate indices_zero(L,R) , which should find all positions of zeros in ...
[ -0.01904296875, -0.00139617919921875, 0.00872802734375, 0.0006256103515625, -0.0101318359375, 0.0130615234375, 0.0050048828125, -0.0026397705078125, 0.00762939453125, -0.005096435546875, 0.008544921875, -0.01373291015625, -0.0087890625, 0.0152587890625, 0.0250244140625, 0.0043640136718...
[ 1250, 4867, 7413, 136044, 7, 23, 5303, 140992, 237, 502, 80510, 126684, 13830, 13105, 31577, 29479, 1653, 2063, 67, 866, 1052, 756, 19069, 45234, 183278, 22230, 208124, 18, 4488, 6117, 30541, 70731, 13, 26785, 86869 ]
[ 0.13671875, 0.2230224609375, 0.1181640625, 0.260986328125, 0.1190185546875, 0.09454345703125, 0.2000732421875, 0.177734375, 0.07275390625, 0.09857177734375, 0.2205810546875, 0.1636962890625, 0.145751953125, 0.0927734375, 0.037353515625, 0.135498046875, 0.09588623046875, 0.138061523...
embed
15599042_c0
15599042
prolog
0
Title: Operator priority evaluation order in Prolog Problem title: Operator priority evaluation order in Prolog Tags: prolog Problem: Operator priority evaluation order in Prolog If I define this operator: op(700, yfx, sum). 700: rappresent the priority respect the other operators. yfx: rappresent the precedence of arg...
Operator priority evaluation order in Prolog Operator priority evaluation order in Prolog prolog Operator Prolog Operator priority evaluation order in Prolog If I define this operator: 700: rappresent the priority respect the other operators. yfx: rappresent the precedence of arguments respect the operator itself. This...
[ 0.0172119140625, 0.01220703125, 0.028076171875, 0.020263671875, 0.013916015625, -0.005126953125, 0.0235595703125, 0.0098876953125, -0.00433349609375, -0.01336669921875, 0.000949859619140625, -0.003692626953125, 0.00457763671875, -0.03369140625, 0.00811767578125, 0.0130615234375, 0.00...
[ 150922, 25343, 53, 219836, 12989, 1250, 4867, 502, 61924, 39933, 10044, 29892, 55247, 15072, 3789, 113, 420, 425, 107671, 6620, 111, 10750, 68034, 180346, 70, 23, 55923, 13, 1022, 765, 581, 167375, 7893, 7477, 18770, 42, 4432, 4568, 41018, ...
[ 0.275390625, 0.2305908203125, 0.093017578125, 0.199951171875, 0.1949462890625, 0.1597900390625, 0.243896484375, 0.1162109375, 0.131103515625, 0.2919921875, 0.255126953125, 0.03204345703125, 0.1279296875, 0.1083984375, 0.0258636474609375, 0.087158203125, 0.12451171875, 0.15673828125...
embed
53373924_c0
53373924
prolog
0
Title: IF Statement in Prolog - Conditional Problem title: IF Statement in Prolog - Conditional Tags: prolog Problem: IF Statement in Prolog - Conditional I have just completed passing some variables down to another method and matching them to facts. I now want to add some security in the form of an if statement. I am ...
IF Statement in Prolog - Conditional IF Statement in Prolog - Conditional prolog Statement Prolog Conditional Here Text IF Statement in Prolog - Conditional I have just completed passing some variables down to another method and matching them to facts. I now want to add some security in the form of an if statement. I a...
[ 0.01214599609375, -0.01025390625, 0.000743865966796875, 0.01214599609375, -0.0012359619140625, 0.00124359130859375, 0.015380859375, -0.00909423828125, 0.001556396484375, -0.0022735595703125, -0.007659912109375, -0.00482177734375, -0.02685546875, 0.0120849609375, 0.006622314453125, 0.00...
[ 55449, 22836, 674, 23, 1250, 4867, 46347, 43315, 502, 11853, 24129, 140528, 452, 77336, 7565, 15700, 55300, 14858, 15824, 3444, 15190, 3060, 48031, 3173, 2174, 63805, 156377, 12765, 1957, 107730, 38937, 35604, 14012, 27781, 127887, 18151, 35064...
[ 0.254150390625, 0.201416015625, 0.095947265625, 0.061279296875, 0.1654052734375, 0.2294921875, 0.1929931640625, 0.1683349609375, 0.1063232421875, 0.06494140625, 0.09326171875, 0.07745361328125, 0.051971435546875, 0.179931640625, 0.06488037109375, 0.0008544921875, 0.15234375, 0.0793...
embed
5383028_c0
5383028
prolog
0
Title: Are there any Prolog compilers that can optimize by targeting specific queries? Problem title: Are there any Prolog compilers that can optimize by targeting specific queries? Tags: prolog Problem: Are there any Prolog compilers that can optimize by targeting specific queries? Given a Prolog theory and a small se...
Are there any Prolog compilers that can optimize by targeting specific queries? Are there any Prolog compilers that can optimize by targeting specific queries? prolog Prolog Are there any Prolog compilers that can optimize by targeting specific queries? Given a Prolog theory and a small set of possible queries, it seem...
[ 0.03662109375, 0.02392578125, 0.01214599609375, -0.00738525390625, -0.0242919921875, 0.00933837890625, -0.027587890625, -0.029541015625, -0.01226806640625, -0.0164794921875, -0.00738525390625, -0.0087890625, -0.01385498046875, 0.006439208984375, 0.00946044921875, 0.003448486328125, -...
[ 2499, 1250, 4867, 9969, 34759, 7, 831, 15572, 20650, 30388, 214, 29458, 41, 10484, 2685, 450, 502, 390, 154453, 19336, 7722, 65933, 139392, 56065, 33938, 53201, 41382, 107, 106357, 7565, 72546, 3900, 4271, 59158, 1528, 81273, 31089, 4537, 2...
[ 0.06134033203125, 0.2005615234375, 0.272705078125, 0.1806640625, 0.237548828125, 0.0950927734375, 0.06640625, 0.1754150390625, 0.1143798828125, 0.239501953125, 0.060089111328125, 0.1708984375, 0.14697265625, 0.06732177734375, 0.0265960693359375, 0.0076904296875, 0.13720703125, 0.01...
embed
30214835_c0
30214835
prolog
0
Title: How to get solution X prolog in java Problem title: How to get solution X prolog in java Tags: jpl, prolog, java, ffi Problem: How to get solution X prolog in java I use jpl libraries to connect prolog and java. In prolog, I can execute query : ?- meaning_forms([apple,is,fruit],X). output is : X = [is_a(x1, x2),...
How to get solution X prolog in java How to get solution X prolog in java jpl prolog java ffi How meaning_forms is_a Variable Query Term Atom q4.hasMoreElements java.util.Hashtable Hashtable q4.nextElement System.out.println solution.get How to get solution X prolog in java I use jpl libraries to connect prolog and jav...
[ 0.0164794921875, 0.03173828125, -0.006256103515625, 0.015869140625, -0.00421142578125, 0.0181884765625, 0.01092529296875, 0.00144195556640625, -0.00180816650390625, -0.0216064453125, 0.023193359375, 0.0016021728515625, -0.0255126953125, -0.0113525390625, 0.0003147125244140625, 0.008605...
[ 11249, 2046, 29806, 1193, 502, 4867, 23, 79, 330, 1647, 2424, 24500, 91084, 5037, 7, 83, 84572, 2886, 58836, 2994, 69728, 8096, 617, 10557, 122880, 19929, 22819, 162087, 12353, 6056, 35662, 3794, 35773, 37067, 71924, 41, 140992, 2203, 164, ...
[ 0.0231170654296875, 0.1317138671875, 0.2169189453125, 0.2489013671875, 0.206787109375, 0.260986328125, 0.08538818359375, 0.1568603515625, 0.213623046875, 0.036651611328125, 0.1527099609375, 0.111083984375, 0.0975341796875, 0.21630859375, 0.065673828125, 0.03192138671875, 0.1119384765...
embed
24373896_c0
24373896
prolog
0
Title: Shifting a list to the left N times in Prolog Problem title: Shifting a list to the left N times in Prolog Tags: prolog, failure-slice Problem: Shifting a list to the left N times in Prolog I'm trying to make a relation in Prolog shiftL(L1,N,L2) that shifts L1 to the left N times (rotationally), and the result i...
Shifting a list to the left N times in Prolog Shifting a list to the left N times in Prolog prolog failure-slice Shifting Prolog N-1 ERROR Out Shifting a list to the left N times in Prolog I'm trying to make a relation in Prolog shiftL(L1,N,L2) that shifts L1 to the left N times (rotationally), and the result is L2 , s...
[ -0.0034637451171875, 0.02490234375, 0.01953125, -0.009765625, -0.0033111572265625, -0.03173828125, -0.0284423828125, -0.00244140625, 0.002105712890625, -0.02880859375, 0.0179443359375, 0.017333984375, -0.0037994384765625, 0.015625, 0.00958251953125, 0.02587890625, 0.01055908203125, ...
[ 8294, 2480, 5303, 47, 70, 25737, 541, 20028, 1250, 4867, 502, 137578, 13348, 5759, 151206, 13538, 23, 31577, 41911, 122925, 866, 418, 839, 10461, 339, 516, 16750, 304, 133063, 96386, 116, 29568, 43240, 11343, 13695, 20594, 9844, 37076, 1772...
[ 0.152099609375, 0.1649169921875, 0.198974609375, 0.118408203125, 0.02020263671875, 0.2078857421875, 0.1700439453125, 0.173583984375, 0.17138671875, 0.260986328125, 0.103271484375, 0.169189453125, 0.10498046875, 0.116943359375, 0.1143798828125, 0.077880859375, 0.002655029296875, 0.0...
embed
10065887_c0
10065887
prolog
0
Title: Why this if statment only work at first step Problem title: Why this if statment only work at first step Tags: prolog Problem: Why this if statment only work at first step calculateSum(_, _List, _Row, _Col, []). calculateSum([M|Rest],List,Row,Col,[Y|Tail]):- Col == Row -> Col1 is Col + 1,calculateSum(List,List,R...
Why this if statment only work at first step Why this if statment only work at first step prolog Why _List _Row _Col Rest List Row Col Tail Col1 Row1 Why this if statment only work at first step Why this Col == Row if statement doest work. Is there any other way so that if Row == Col skip that step? EDIT By doing some ...
[ 0.000820159912109375, -0.01361083984375, 0.01507568359375, 0.0078125, -0.0146484375, -0.0230712890625, 0.0091552734375, 0.01312255859375, 0.0274658203125, 0.0030670166015625, -0.003814697265625, -0.019287109375, -0.01385498046875, 0.00007724761962890625, -0.0003204345703125, -0.0053405...
[ 44084, 903, 2174, 13254, 674, 4734, 4488, 99, 5117, 29954, 502, 4867, 154663, 12724, 434, 78457, 49756, 32036, 96190, 11554, 1218, 379, 418, 69112, 63805, 54, 525, 3917, 21658, 450, 1884, 28412, 1810, 4015, 2551, 54241, 538 ]
[ 0.1370849609375, 0.1197509765625, 0.232666015625, 0.2374267578125, 0.1492919921875, 0.132568359375, 0.16357421875, 0.0819091796875, 0.123779296875, 0.210205078125, 0.15576171875, 0.1868896484375, 0.151123046875, 0.07275390625, 0.020111083984375, 0.1365966796875, 0.1812744140625, 0....
embed
33109034_c0
33109034
prolog
0
Title: Prolog: sum of elements of two lists compared to elements in third list Problem title: Prolog: sum of elements of two lists compared to elements in third list Tags: prolog, list Problem: Prolog: sum of elements of two lists compared to elements in third list I am given 3 lists. The first two lists' number of ele...
Prolog: sum of elements of two lists compared to elements in third list Prolog: sum of elements of two lists compared to elements in third list prolog list Prolog List1 List2 List3 Total Head Tail Total1 Prolog: sum of elements of two lists compared to elements in third list I am given 3 lists. The first two lists' num...
[ 0.014404296875, 0.02783203125, -0.005340576171875, 0.0145263671875, -0.01470947265625, 0.004058837890625, 0.004302978515625, 0.00823974609375, 0.03564453125, 0.0076904296875, -0.00052642822265625, 0.0016632080078125, 0.013916015625, 0.017333984375, 0.0233154296875, -0.0118408203125, ...
[ 1250, 4867, 10554, 80854, 6626, 5303, 154186, 50960, 502, 32036, 418, 304, 363, 33867, 44816, 1218, 379, 12, 111, 34475, 138, 5117, 14012, 49814, 1257, 69101, 154663, 21320, 12765, 3622, 40715, 82424, 18499, 83, 21748, 2060 ]
[ 0.1761474609375, 0.246337890625, 0.2235107421875, 0.207275390625, 0.1513671875, 0.2109375, 0.1832275390625, 0.173095703125, 0.1123046875, 0.119873046875, 0.073486328125, 0.058563232421875, 0.0986328125, 0.26416015625, 0.1243896484375, 0.12548828125, 0.1229248046875, 0.0050964355468...
embed
52842638_c0
52842638
prolog
0
Title: About merging lists in Prolog Problem title: About merging lists in Prolog Tags: prolog Problem: About merging lists in Prolog I'm studying prolog right now, but I met some interesting questions. The goal is to print out a list of a family relations, the facts are: parent(john, paul). parent(john, mary). parent(...
About merging lists in Prolog About merging lists in Prolog prolog About Prolog Tmp About merging lists in Prolog I'm studying prolog right now, but I met some interesting questions. The goal is to print out a list of a family relations, the facts are: The goal is to print the list as follow, Here is my code and what I...
[ 0.03662109375, 0.023681640625, 0.00701904296875, 0.0096435546875, -0.008056640625, 0.0101318359375, -0.013916015625, -0.0047607421875, 0.00848388671875, -0.05126953125, 0.00677490234375, 0.00159454345703125, -0.006683349609375, 0.007476806640625, 0.007110595703125, 0.0011138916015625, ...
[ 56888, 1143, 9966, 5303, 7, 23, 1250, 4867, 502, 384, 2676, 35187, 5036, 435, 49041, 17582, 69236, 83, 28412, 1810, 14449, 91582, 15824, 47, 237, 28960, 11853, 18151, 2367, 2046, 72856, 964, 50339, 4358, 77947 ]
[ 0.054534912109375, 0.17919921875, 0.13525390625, 0.2325439453125, 0.03082275390625, 0.030181884765625, 0.1729736328125, 0.256591796875, 0.1278076171875, 0.096923828125, 0.2369384765625, 0.0240936279296875, 0.037933349609375, 0.00909423828125, 0.029754638671875, 0.0153961181640625, 0....
embed
55409063_c1
55409063
prolog
1
value across all 4 iterations, which is inconsistent with its purpose. In isSymmetricList2 , I bind I2 in isSymmetricList2Sub1 , taking it out of the scope of isSymmetricList2 , effectively allowing it to be bound to multiple values (because they're different instances, or however it's said). This works. However, it i...
value across all 4 iterations, which is inconsistent with its purpose. In isSymmetricList2 , I bind I2 in isSymmetricList2Sub1 , taking it out of the scope of isSymmetricList2 , effectively allowing it to be bound to multiple values (because they're different instances, or however it's said). This works. However, it i...
[ -0.017333984375, 0.003936767578125, 0.00933837890625, -0.009521484375, -0.01397705078125, 0.0203857421875, -0.00543212890625, 0.01141357421875, 0.00830078125, -0.00213623046875, 0.0035247802734375, -0.005584716796875, -0.00014972686767578125, -0.01611328125, 0.005035400390625, 0.008483...
[ 34292, 36880, 756, 201, 17, 720, 21094, 23, 25553, 6892, 60042, 83, 294, 4650, 186518, 154663, 304, 68557, 87, 96472, 418, 1810, 70820, 190358, 99091, 47, 48716, 142424, 12921, 110527, 43240, 73106, 29786, 3055, 147306, 1614, 13500, 90, 219...
[ 0.2109375, 0.119384765625, 0.027099609375, 0.147216796875, 0.045013427734375, 0.212890625, 0.09765625, 0.01239013671875, 0.058013916015625, 0.1107177734375, 0.1175537109375, 0.1168212890625, 0.0282745361328125, 0.12646484375, 0.2020263671875, 0.1640625, 0.1905517578125, 0.22265625,...
embed
17667736_c0
17667736
prolog
0
Title: How to add and compare members in a list Problem title: How to add and compare members in a list Tags: prolog, list Problem: How to add and compare members in a list I'm trying to write a predicate is_multi(M) , defined as: every element of M has the form X / N , where X is an atom, and N is an integer greater t...
How to add and compare members in a list How to add and compare members in a list prolog list How is_multi Head Tail How to add and compare members in a list I'm trying to write a predicate is_multi(M) , defined as: every element of M has the form X / N , where X is an atom, and N is an integer greater than 0; M does n...
[ -0.023193359375, -0.0022735595703125, 0.023681640625, 0.00677490234375, -0.02001953125, 0.021484375, 0.0140380859375, -0.0028839111328125, 0.006103515625, -0.01336669921875, 0.0257568359375, 0.000408172607421875, 0.0185546875, 0.000408172607421875, -0.00274658203125, 0.0033721923828125...
[ 11249, 15190, 136, 69101, 43032, 23, 5303, 47, 502, 4867, 83, 144227, 44816, 1218, 379, 31577, 33022, 1653, 2063, 67, 594, 61924, 11907, 12830, 276, 3173, 1193, 248, 541, 34627, 892, 117396, 757, 959, 70541, 6626, 80854, 5701, 214521, 217...
[ 0.08984375, 0.203369140625, 0.1307373046875, 0.253662109375, 0.266845703125, 0.080078125, 0.2337646484375, 0.0256805419921875, 0.1405029296875, 0.1893310546875, 0.158447265625, 0.269775390625, 0.1185302734375, 0.08837890625, 0.11083984375, 0.05364990234375, 0.049285888671875, 0.092...
embed
64654119_c0
64654119
prolog
0
Title: How apply findall to find several fields | Prolog Problem title: How apply findall to find several fields | Prolog Tags: prolog Problem: How apply findall to find several fields | Prolog I'm trying to get 2 values from a knowledge base %code, date, amount values1('AAA', date(02, 03, 2020), 1000). values1('AAA', ...
How apply findall to find several fields | Prolog How apply findall to find several fields | Prolog prolog How Prolog values1 AAA BBB CCC function4 Month Value How apply findall to find several fields | Prolog I'm trying to get 2 values from a knowledge base I want to get the Code and Value by Month in two list. My ide...
[ 0.0079345703125, -0.034912109375, -0.0030670166015625, 0.0341796875, -0.0029449462890625, 0.003936767578125, -0.00052642822265625, 0.02294921875, 0.000347137451171875, -0.015869140625, 0.01153564453125, 0.0162353515625, 0.00102996826171875, -0.0157470703125, 0.007293701171875, -0.01293...
[ 11249, 59911, 7413, 5584, 47, 40368, 44457, 1250, 4867, 7, 502, 142424, 418, 155616, 22312, 134982, 32354, 617, 12982, 127, 190060, 31577, 2046, 116, 51359, 3647, 3444, 28864, 136, 390, 6626, 5303, 6528, 4527, 20028, 959, 30646, 9014, 67660...
[ 0.1024169921875, 0.172119140625, 0.177978515625, 0.250732421875, 0.0618896484375, 0.182861328125, 0.2235107421875, 0.15625, 0.2432861328125, 0.001129150390625, 0.0823974609375, 0.179443359375, 0.00238037109375, 0.1715087890625, 0.1177978515625, 0.0986328125, 0.091064453125, 0.08172...
embed
13726382_c0
13726382
prolog
0
Title: Prolog: take a list of two elements, return true if and only if the first element is same as second Problem title: Prolog: take a list of two elements, return true if and only if the first element is same as second Tags: duplicates, prolog, list Problem: Prolog: take a list of two elements, return true if and on...
Prolog: take a list of two elements, return true if and only if the first element is same as second Prolog: take a list of two elements, return true if and only if the first element is same as second duplicates prolog list Prolog Syntax Operator Prolog: take a list of two elements, return true if and only if the first ...
[ 0.0081787109375, 0.0206298828125, 0.00506591796875, 0.0242919921875, -0.006866455078125, 0.033447265625, 0.002777099609375, 0.015380859375, 0.0021514892578125, -0.01007080078125, 0.0181884765625, 0.013671875, 0.01043701171875, -0.01513671875, 0.005401611328125, -0.006622314453125, 0....
[ 1250, 4867, 12, 5646, 5303, 6626, 80854, 30646, 29568, 2174, 4734, 5117, 12830, 83, 5701, 237, 17932, 171763, 1636, 502, 19010, 86531, 150922, 9014, 77848, 95486, 62822, 1528, 214493, 1193, 21455, 103391, 19336, 10644, 11675, 1379, 2452, 2424...
[ 0.2154541015625, 0.310546875, 0.029205322265625, 0.1014404296875, 0.181640625, 0.1444091796875, 0.1895751953125, 0.1796875, 0.1680908203125, 0.1112060546875, 0.092041015625, 0.108154296875, 0.157470703125, 0.05059814453125, 0.143310546875, 0.061431884765625, 0.1412353515625, 0.1759...
embed
60883113_c0
60883113
prolog
0
Title: Prolog Printing a Tree Problem title: Prolog Printing a Tree Tags: tree, prolog, binary-tree Problem: Prolog Printing a Tree printtree_3( bt(Label,[],[]) ). printtree_3( bt(Label,Left,Right) ) :- printtree_3( Left ), printtree_3( Right ), printlabel( Label ). printlabel( X ) :- write( X ), write( ' ' ). I am att...
Prolog Printing a Tree Prolog Printing a Tree tree prolog binary-tree Prolog Printing Tree printtree_3 Label Left Right Prolog Printing a Tree I am attempting to traverse a tree for the first time in prolog and I thought I would do so by printing a tree with someone else's code to see it work in person. The problem is ...
[ 0.0283203125, -0.0035552978515625, 0.0037689208984375, -0.027099609375, -0.002197265625, 0.02294921875, -0.0096435546875, -0.0108642578125, -0.007171630859375, -0.022705078125, -0.003265380859375, -0.030029296875, 0.00170135498046875, -0.0103759765625, 0.009765625, 0.01104736328125, ...
[ 1250, 4867, 39754, 101344, 53201, 502, 2394, 6635, 62600, 28412, 363, 129214, 2480, 90911, 81887, 37317, 13, 1733, 2448, 1916, 678, 22008, 37076, 18151, 1957, 4488, 3445, 2967, 31577, 11675, 11343, 17647, 11971, 91, 2452, 2424, 9969, 34759, ...
[ 0.1669921875, 0.2308349609375, 0.200439453125, 0.257568359375, 0.223876953125, 0.1376953125, 0.1143798828125, 0.06768798828125, 0.25537109375, 0.14501953125, 0.119384765625, 0.1710205078125, 0.0576171875, 0.1033935546875, 0.038848876953125, 0.1324462890625, 0.035064697265625, 0.010...
embed
16661620_c1
16661620
prolog
1
0,abril). mes(5,31,mayo). mes(6,30,junio). mes(7,31,julio). mes(8,31,agosto). mes(9,30,septiembre). mes(10,31,octubre). mes(11,30,noviembre). mes(12,31,diciembre). signo(Dia,Mes,Signo) :-horoscopo(Signo,D1,M1,D2,M2),((Mes=M1,Dia>=D1,mes(M1,D,_),Dia=<D);(Mes=M2,Dia=<D2,Dia>0)). anio_bisiesto(L) :- partition(es_anio_bisi...
0,abril). mes(5,31,mayo). mes(6,30,junio). mes(7,31,julio). mes(8,31,agosto). mes(9,30,septiembre). mes(10,31,octubre). mes(11,30,noviembre). mes(12,31,diciembre). signo(Dia,Mes,Signo) :-horoscopo(Signo,D1,M1,D2,M2),((Mes=M1,Dia>=D1,mes(M1,D,_),Dia=<D);(Mes=M2,Dia=<D2,Dia>0)). anio_bisiesto(L) :- partition(es_anio_bisi...
[ 0.004730224609375, 0.01226806640625, 0.0021514892578125, 0.01031494140625, -0.0267333984375, -0.00634765625, 0.000576019287109375, 0.0034942626953125, 0.02392578125, 0.00714111328125, -0.000888824462890625, 0.0014495849609375, -0.0034332275390625, 0.0020294189453125, 0.0286865234375, 0...
[ 757, 4, 76102, 194, 2409, 104116, 5016, 192, 1410, 139303, 1197, 461, 5305, 966, 10258, 132, 1019, 11, 182922, 1126, 41185, 14, 36300, 90980, 63292, 1662, 41529, 134186, 44368, 65350, 72838, 113709, 218723, 31, 16, 15772, 5922, 232, 587, ...
[ 0.219482421875, 0.06195068359375, 0.277587890625, 0.1124267578125, 0.284423828125, 0.108154296875, 0.21240234375, 0.1260986328125, 0.1495361328125, 0.0762939453125, 0.1573486328125, 0.0909423828125, 0.1700439453125, 0.00982666015625, 0.1285400390625, 0.0399169921875, 0.066162109375, ...
embed
27449606_c0
27449606
prolog
0
Title: Prolog Picking from a list and Summing specific Values Problem title: Prolog Picking from a list and Summing specific Values Tags: prolog Problem: Prolog Picking from a list and Summing specific Values sumPicker([[]|_], Y, Z). sumPicker([X|X1], Y, Z):- downList(Y, X, Sum), Total is Z, Z is Total + Sum, sumPicker...
Prolog Picking from a list and Summing specific Values Prolog Picking from a list and Summing specific Values prolog a Prolog Picking Summing Values Sum Total Count Number SendCount Prolog Picking from a list and Summing specific Values So this code is basically suppose to take in Two lists sumPicker([3,5], [1,2,3,4,5,...
[ -0.00543212890625, -0.0024261474609375, 0.00494384765625, 0.00811767578125, -0.03173828125, -0.0011138916015625, -0.0201416015625, 0.00836181640625, 0.0296630859375, -0.01318359375, 0.01513671875, -0.0291748046875, -0.0064697265625, -0.018798828125, 0.007720947265625, -0.0050048828125,...
[ 1250, 4867, 122554, 1295, 5303, 1832, 58838, 29458, 190060, 214, 502, 36335, 33867, 108210, 103332, 24044, 18151, 139124, 5646, 23, 32964, 10554, 29348, 11050, 92714, 82449, 104629, 1193, 1528, 51776, 5117, 96819, 34292, 14012, 138, 7413, 50960...
[ 0.164306640625, 0.2269287109375, 0.1702880859375, 0.044586181640625, 0.1683349609375, 0.122802734375, 0.13232421875, 0.190673828125, 0.1746826171875, 0.025299072265625, 0.1318359375, 0.1334228515625, 0.1207275390625, 0.14990234375, 0.09661865234375, 0.09326171875, 0.150390625, 0.08...
embed
28872386_c0
28872386
prolog
0
Title: Execute rest of the goals after successful backtracking Problem title: Execute rest of the goals after successful backtracking Tags: backtracking, prolog Problem: Execute rest of the goals after successful backtracking I can't seem to find this particular construct in prolog. Consider three predicates a/2, b/2 a...
Execute rest of the goals after successful backtracking Execute rest of the goals after successful backtracking backtracking prolog Execute Execute rest of the goals after successful backtracking I can't seem to find this particular construct in prolog. Consider three predicates a/2, b/2 and c/2, such that:- Now the ac...
[ -0.000823974609375, 0.00848388671875, 0.013671875, 0.031005859375, -0.01513671875, 0.0079345703125, 0.0123291015625, 0.002410888671875, 0.004638671875, -0.00927734375, 0.005279541015625, 0.01068115234375, -0.00531005859375, -0.000797271728515625, -0.00174713134765625, 0.01385498046875,...
[ 211603, 13, 10588, 111, 109458, 7103, 65771, 4420, 125728, 502, 4867, 214, 64549, 137399, 17262, 1653, 2063, 1636, 12477, 876, 501, 14240, 8561, 56566, 7154, 959, 66161, 48762, 17721, 104851, 151575, 3229, 276, 99091, 176377, 15044, 50218, 57...
[ 0.19873046875, 0.06243896484375, 0.1849365234375, 0.073974609375, 0.204345703125, 0.1580810546875, 0.1939697265625, 0.146240234375, 0.2169189453125, 0.190673828125, 0.245361328125, 0.041412353515625, 0.166259765625, 0.046783447265625, 0.1123046875, 0.136962890625, 0.1622314453125, ...
embed
37528831_c0
37528831
prolog
0
Title: Prolog recursive program not returning values Problem title: Prolog recursive program not returning values Tags: clpfd, prolog, recursion Problem: Prolog recursive program not returning values I'm still new to Prolog, and I've encountered an error I have no idea how to fix. I've written a simple exponentiation p...
Prolog recursive program not returning values Prolog recursive program not returning values clpfd prolog recursion Prolog Base Exponent Result Exponent-1 Prolog recursive program not returning values I'm still new to Prolog, and I've encountered an error I have no idea how to fix. I've written a simple exponentiation p...
[ 0.0146484375, -0.00092315673828125, 0.000507354736328125, 0.008056640625, 0.0010986328125, 0.031005859375, 0.01806640625, -0.015625, 0.010498046875, 0.005706787109375, 0.0118408203125, -0.006439208984375, -0.0164794921875, 0.012939453125, 0.023193359375, 0.00799560546875, 0.007232666...
[ 1250, 4867, 195625, 5844, 1528, 959, 30646, 214, 142424, 39557, 71, 502, 44978, 5443, 54137, 126684, 5759, 3525, 190647, 18499, 6528, 30022, 59121, 8781, 78643, 21616, 2320, 33342, 1884, 903, 9969, 1340, 5885, 11675, 41, 14700, 54753, 201, ...
[ 0.1810302734375, 0.2442626953125, 0.2164306640625, 0.0802001953125, 0.1844482421875, 0.1083984375, 0.2108154296875, 0.0733642578125, 0.20947265625, 0.0595703125, 0.06622314453125, 0.1295166015625, 0.1240234375, 0.0889892578125, 0.1988525390625, 0.165771484375, 0.09619140625, 0.0087...
embed
48084302_c0
48084302
prolog
0
Title: Prolog - using negation (declarative approach) to define member/2 to only succeed once for each number Problem title: Prolog - using negation (declarative approach) to define member/2 to only succeed once for each number Tags: negation, prolog Problem: Prolog - using negation (declarative approach) to define mem...
Prolog - using negation (declarative approach) to define member/2 to only succeed once for each number Prolog - using negation (declarative approach) to define member/2 to only succeed once for each number negation prolog negation Prolog once_member Prolog - using negation (declarative approach) to define member/2 to o...
[ -0.0164794921875, -0.004180908203125, 0.0224609375, -0.0189208984375, -0.0106201171875, 0.00020313262939453125, 0.01385498046875, 0.0257568359375, 0.021728515625, -0.06494140625, -0.0091552734375, 0.0037689208984375, -0.0021209716796875, 0.007171630859375, 0.026123046875, 0.017578125, ...
[ 1250, 4867, 17368, 108, 125682, 50718, 320, 45023, 51515, 61924, 32786, 12477, 4734, 214493, 24145, 12638, 14012, 502, 39, 27417, 30700, 80934, 1221, 23742, 18, 30646, 57346, 101935, 12830, 18151, 20697, 59226, 59158, 107419, 4527, 21635, 6275 ...
[ 0.162109375, 0.2225341796875, 0.0386962890625, 0.197021484375, 0.199462890625, 0.0677490234375, 0.130126953125, 0.08599853515625, 0.1656494140625, 0.169189453125, 0.2410888671875, 0.24853515625, 0.1204833984375, 0.205322265625, 0.208740234375, 0.080078125, 0.132080078125, 0.1546630...
embed
40710089_c0
40710089
prolog
0
Title: Cover predicate for two lists Problem title: Cover predicate for two lists Tags: prolog, list Problem: Cover predicate for two lists So I'm making a countdown game and I want to check whether a list has elements of another list. Given two lists, checks whether the second list covers the first, that is it checks ...
Cover predicate for two lists Cover predicate for two lists prolog list Cover Yes Head Tail List2 Cover predicate for two lists So I'm making a countdown game and I want to check whether a list has elements of another list. Given two lists, checks whether the second list covers the first, that is it checks whether ever...
[ 0.01611328125, -0.0142822265625, -0.00457763671875, 0.0103759765625, 0.01312255859375, 0.006561279296875, 0.0037994384765625, -0.005889892578125, 0.01312255859375, 0.01025390625, 0.0009918212890625, -0.000766754150390625, 0.00015544891357421875, 0.00543212890625, 0.005859375, 0.0127563...
[ 76417, 1653, 2063, 67, 100, 6626, 5303, 502, 4867, 32635, 44816, 1218, 379, 32036, 304, 54529, 34695, 6712, 12765, 36766, 1556, 80854, 15700, 17932, 29256, 7, 5117, 11907, 35735, 74918, 341, 20028, 19713, 89536, 25632, 15122, 41361, 27781, ...
[ 0.252685546875, 0.1651611328125, 0.1805419921875, 0.0010986328125, 0.06646728515625, 0.1685791015625, 0.23876953125, 0.1102294921875, 0.14697265625, 0.08978271484375, 0.11083984375, 0.07196044921875, 0.053009033203125, 0.1763916015625, 0.10540771484375, 0.102294921875, 0.129638671875...
embed
20939896_c0
20939896
prolog
0
Title: Check if variable is empty or filled Problem title: Check if variable is empty or filled Tags: prolog-setof, variables, prolog Problem: Check if variable is empty or filled I have the following problem: prolog prog: man(thomas, 2010). man(leon, 2011). man(thomas, 2012). man(Man) :- once(man(Man, _). problem: ?- ...
Check if variable is empty or filled Check if variable is empty or filled prolog-setof variables prolog Check Man Check if variable is empty or filled I have the following problem: prolog prog: problem: goal: I do unterstand why this happens, but still want to get the names of all man. So my solution woud be to look if...
[ 0.01806640625, -0.0002231597900390625, -0.00762939453125, 0.0128173828125, -0.01806640625, 0.0224609375, 0.007080078125, 0.01544189453125, -0.0067138671875, -0.022705078125, 0.010986328125, -0.00042724609375, -0.0003948211669921875, 0.00927734375, 0.0238037109375, 0.01470947265625, 0...
[ 38679, 2174, 77336, 83, 201505, 707, 152382, 502, 4867, 3509, 4390, 1572, 2967, 67973, 69236, 5165, 15400, 96276, 7464, 3444, 2046, 123055, 111, 756, 332, 29806, 87971, 6713, 12662, 61475, 29367, 72272, 3501, 191, 329, 78292, 77242, 18151, ...
[ 0.1904296875, 0.08917236328125, 0.27685546875, 0.0841064453125, 0.264892578125, 0.07696533203125, 0.246826171875, 0.106689453125, 0.1826171875, 0.0361328125, 0.0552978515625, 0.168701171875, 0.07220458984375, 0.06549072265625, 0.167236328125, 0.03582763671875, 0.037567138671875, 0....
embed
21534022_c1
21534022
prolog
1
0,70)), %show floor new( @box,box(50,50)), %creates box send( @box,fill_pattern,colour(yellow)), %colours box yellow Frames is Duration*FPS, %how many frames are to be drawn Step is Length/Frames, %what's the distance between steps Delay is 1/FPS, %what is the delay between steps send( @window,display,@box,point(50,20)...
0,70)), %show floor new( @box,box(50,50)), %creates box send( @box,fill_pattern,colour(yellow)), %colours box yellow Frames is Duration*FPS, %how many frames are to be drawn Step is Length/Frames, %what's the distance between steps Delay is 1/FPS, %what is the delay between steps send( @window,display,@box,point(50,20)...
[ -0.000789642333984375, 0.006591796875, -0.00115203857421875, -0.00775146484375, 0.00238037109375, 0.01068115234375, 0.01708984375, 0.01904296875, 0.01068115234375, -0.00994873046875, -0.00131988525390625, -0.01409912109375, -0.0002155303955078125, -0.0004138946533203125, -0.0147705078125...
[ 757, 89149, 247, 1745, 31374, 74912, 3525, 1374, 11728, 2525, 7612, 63614, 16530, 25379, 116115, 4453, 22766, 22796, 474, 1033, 41566, 205811, 42557, 90, 83, 79843, 1639, 919, 9059, 47251, 5941, 2674, 47, 79442, 50478, 77554, 64, 108386, 12...
[ 0.079833984375, 0.1611328125, 0.0254974365234375, 0.059906005859375, 0.179443359375, 0.243408203125, 0.1798095703125, 0.0633544921875, 0.1571044921875, 0.12158203125, 0.1153564453125, 0.0316162109375, 0.1973876953125, 0.1365966796875, 0.138916015625, 0.112548828125, 0.07196044921875,...
embed
74722497_c0
74722497
prolog
0
Title: Spurious attribute_goal/2 in SICStus Prolog 4.7.1 Problem title: Spurious attribute_goal/2 in SICStus Prolog 4.7.1 Tags: prolog, sicstus-prolog Problem: Spurious attribute_goal/2 in SICStus Prolog 4.7.1 Given the following minimalistic "solver" in SICStus Prolog ... :- module(attach, [attach/1]). :- use_module(l...
Spurious attribute_goal/2 in SICStus Prolog 4.7.1 Spurious attribute_goal/2 in SICStus Prolog 4.7.1 prolog sicstus-prolog Spurious attribute_goal SICStus Prolog use_module put_atts verify_attribute get_atts copy_term Xcc Ycc attach:attach Spurious attribute_goal/2 in SICStus Prolog 4.7.1 Given the following minimalisti...
[ -0.010498046875, 0.0281982421875, -0.0203857421875, -0.01068115234375, -0.0257568359375, -0.015869140625, 0.01220703125, -0.00433349609375, -0.0203857421875, -0.0167236328125, 0.005523681640625, 0.004913330078125, -0.0311279296875, 0.0091552734375, 0.0201416015625, -0.0021209716796875,...
[ 68985, 14, 10821, 150380, 13, 519, 289, 12477, 23, 159, 102198, 2143, 1250, 4867, 1398, 165830, 502, 26536, 18253, 3454, 4527, 83279, 3884, 27639, 493, 40383, 257, 191145, 43658, 32166, 10060, 243, 934, 52438, 163504, 1771, 86918, 42, 13999...
[ 0.1998291015625, 0.13525390625, 0.1396484375, 0.217529296875, 0.041656494140625, 0.169677734375, 0.148193359375, 0.26708984375, 0.0173187255859375, 0.0972900390625, 0.08349609375, 0.1978759765625, 0.1224365234375, 0.2239990234375, 0.080322265625, 0.1524658203125, 0.107177734375, 0....
embed
24701920_c0
24701920
prolog
0
Title: using Prolog for deductive database Problem title: using Prolog for deductive database Tags: prolog, database Problem: using Prolog for deductive database I started learning prolog,here is where i am stuck, I have a deductive db as follows, employee(smith, accounting, 30000). employee(jones, accounting, 50000). ...
using Prolog for deductive database using Prolog for deductive database prolog database Prolog manager_higherSalary_biggerDept using Prolog for deductive database I started learning prolog,here is where i am stuck, I have a deductive db as follows, I need a Prolog predicate, manager_higherSalary_biggerDept, , to find t...
[ 0.01080322265625, 0.0081787109375, -0.01141357421875, 0.0076904296875, -0.0289306640625, 0.0140380859375, -0.022705078125, 0.0091552734375, 0.01397705078125, -0.016845703125, 0.0025634765625, 0.003814697265625, 0.004486083984375, -0.0098876953125, 0.0264892578125, 0.0014801025390625, ...
[ 17368, 1250, 4867, 100, 8, 39367, 4935, 63399, 502, 31095, 84396, 56, 52779, 6635, 964, 21407, 4657, 6328, 26859, 52080, 35593, 179933, 40041, 28960, 3871, 1653, 2063, 67, 7413, 123055, 93215, 765, 4559, 1286, 201, 28568, 332, 66398, 130625...
[ 0.065185546875, 0.1781005859375, 0.2470703125, 0.0318603515625, 0.1380615234375, 0.166015625, 0.0848388671875, 0.1759033203125, 0.1356201171875, 0.2017822265625, 0.125732421875, 0.067626953125, 0.1131591796875, 0.067138671875, 0.05487060546875, 0.10357666015625, 0.1378173828125, 0....
embed
34190791_c0
34190791
prolog
0
Title: Prolog - Return the n-th column of a matrix Problem title: Prolog - Return the n-th column of a matrix Tags: matrix, prolog, logic Problem: Prolog - Return the n-th column of a matrix I am trying to write the predicate columnN/3 which returns the "nth" element of a matrix. Example: columnN([[1,2],[3,4],[5,6]], 1...
Prolog - Return the n-th column of a matrix Prolog - Return the n-th column of a matrix matrix prolog logic Prolog I-1 Prolog - Return the n-th column of a matrix I am trying to write the predicate columnN/3 which returns the "nth" element of a matrix. Example: With the help of the community, I was able to try to use t...
[ -0.0086669921875, -0.00897216796875, 0.018798828125, 0.016357421875, -0.0111083984375, -0.003570556640625, 0.00830078125, 0.00885009765625, -0.0002899169921875, -0.01220703125, 0.01324462890625, -0.0225830078125, -0.0302734375, -0.006103515625, -0.0240478515625, 0.0054931640625, 0.02...
[ 1250, 4867, 173340, 653, 927, 3365, 316, 19, 50944, 425, 9, 111, 502, 62775, 87, 5759, 31577, 33022, 1653, 2063, 67, 839, 18113, 30646, 12830, 4358, 26908, 19048, 9790, 4527, 15555, 2046, 1779, 2060, 98320, 43240, 28875, 5885, 568, 133063...
[ 0.1802978515625, 0.251220703125, 0.1968994140625, 0.152587890625, 0.199951171875, 0.142822265625, 0.1611328125, 0.1414794921875, 0.18603515625, 0.08197021484375, 0.0218963623046875, 0.006622314453125, 0.1400146484375, 0.1397705078125, 0.0206756591796875, 0.05810546875, 0.06298828125,...
embed
69988513_c0
69988513
prolog
0
Title: Adding element to beginning of list, without creating a new list Problem title: Adding element to beginning of list, without creating a new list Tags: prolog, list Problem: Adding element to beginning of list, without creating a new list I want to add [Startline, Assumption, assumption] to the beginning of list ...
Adding element to beginning of list, without creating a new list Adding element to beginning of list, without creating a new list prolog list Adding Element List1 CheckedProof Startline Assumption TemporaryCheckedProof Adding element to beginning of list, without creating a new list I want to add [Startline, Assumption...
[ -0.00982666015625, 0.0244140625, 0.00811767578125, 0.0220947265625, -0.017822265625, -0.006378173828125, -0.00811767578125, 0.00433349609375, 0.01263427734375, -0.027587890625, 0.0302734375, 0.01324462890625, -0.024658203125, 0.000316619873046875, 0.0155029296875, -0.002532958984375, ...
[ 62, 59725, 12830, 47, 86595, 111, 5303, 15490, 105233, 3525, 502, 4867, 48325, 32036, 418, 38679, 297, 10752, 4390, 13794, 2256, 1301, 71836, 42748, 3701, 202567, 3444, 15190, 126597, 237259, 76228, 6056, 5117, 18151, 58134, 5701, 16750, 1146...
[ 0.08502197265625, 0.089111328125, 0.175048828125, 0.060455322265625, 0.1588134765625, 0.101318359375, 0.175048828125, 0.07177734375, 0.05010986328125, 0.010284423828125, 0.058380126953125, 0.1396484375, 0.1568603515625, 0.1158447265625, 0.005706787109375, 0.187255859375, 0.0745849609...
embed
33516622_c1
33516622
prolog
1
2d array "maze" which it does fine. When I trace through the code with the tracer I can see that it is finding the correct paths. My issue is that I cannot get the Path to be "returned" to the prolog terminal (I know prolog does not return values but that is essentially my goal here). I am not exactly sure why I my Pa...
2d array "maze" which it does fine. When I trace through the code with the tracer I can see that it is finding the correct paths. My issue is that I cannot get the Path to be "returned" to the prolog terminal (I know prolog does not return values but that is essentially my goal here). I am not exactly sure why I my Pa...
[ 0.0341796875, 0.017578125, -0.000629425048828125, 0.003326416015625, 0.0135498046875, 0.029052734375, 0.0019378662109375, -0.01165771484375, 0.023193359375, -0.01092529296875, 0.021484375, 0.01434326171875, 0.005584716796875, -0.0164794921875, 0.006805419921875, 0.01226806640625, -0....
[ 116, 71, 10298, 53, 192, 731, 442, 14602, 5885, 144851, 18151, 1152, 3443, 1957, 90791, 26785, 60875, 7, 31089, 53418, 2046, 108421, 65395, 14534, 47, 502, 4867, 33949, 959, 30646, 142424, 85590, 69236, 15400, 759, 8035, 176377, 95486, 7733...
[ 0.1383056640625, 0.084716796875, 0.1680908203125, 0.1090087890625, 0.097412109375, 0.234619140625, 0.01898193359375, 0.05438232421875, 0.0858154296875, 0.108154296875, 0.129150390625, 0.10284423828125, 0.1226806640625, 0.019378662109375, 0.0909423828125, 0.11279296875, 0.19384765625,...
embed
39670431_c0
39670431
prolog
0
Title: Removing Contiguous sequence from two list in prolog Problem title: Removing Contiguous sequence from two list in prolog Tags: prolog Problem: Removing Contiguous sequence from two list in prolog I am new to prolog and came across this practice exercise that I need help with. The question is asking to define a p...
Removing Contiguous sequence from two list in prolog Removing Contiguous sequence from two list in prolog prolog two Removing Contiguous Removing Contiguous sequence from two list in prolog I am new to prolog and came across this practice exercise that I need help with. The question is asking to define a predicate remo...
[ 0.013671875, 0.0181884765625, -0.00860595703125, 0.041748046875, 0.004119873046875, 0.0167236328125, 0.005218505859375, 0.0225830078125, 0.019287109375, 0.00384521484375, -0.005706787109375, 0.037109375, -0.00433349609375, 0.0162353515625, 0.00616455078125, 0.00738525390625, 0.021728...
[ 853, 432, 6496, 137425, 1234, 10821, 40, 944, 3956, 1295, 6626, 5303, 502, 4867, 41361, 81979, 61924, 1653, 2063, 67, 87388, 11935, 9348, 284, 4, 571, 33657, 335, 5701, 237, 62, 40494, 110527, 22832, 12282, 31943, 55769, 34390, 1632, 2967...
[ 0.011810302734375, 0.1190185546875, 0.004791259765625, 0.185546875, 0.2108154296875, 0.08489990234375, 0.08251953125, 0.1685791015625, 0.07122802734375, 0.03936767578125, 0.14794921875, 0.1953125, 0.135009765625, 0.191650390625, 0.04010009765625, 0.02740478515625, 0.08856201171875, ...
embed
27861692_c0
27861692
prolog
0
Title: Prolog syntax and predicate logic Problem title: Prolog syntax and predicate logic Tags: prolog Problem: Prolog syntax and predicate logic I have 2 exception at point ( THIS-RTE ) and ( Other-RTE ) i can not manage to fix it can any1 give me a hint about what am i doing wrong, because I'm pretty sure i mess some...
Prolog syntax and predicate logic Prolog syntax and predicate logic prolog Prolog THIS-RTE ERROR Type _G7167 Other-RTE lab1a.pro:47 _G5550 _G5551 _G5552 Prolog syntax and predicate logic I have 2 exception at point ( THIS-RTE ) and ( Other-RTE ) i can not manage to fix it can any1 give me a hint about what am i doing w...
[ -0.007568359375, -0.00167083740234375, 0.0155029296875, -0.01104736328125, 0.0013275146484375, 0.0228271484375, -0.00104522705078125, 0.015869140625, 0.0245361328125, -0.01953125, 0.010009765625, -0.0087890625, -0.008056640625, 0.00689697265625, 0.0174560546875, 0.0026092529296875, 0...
[ 1250, 4867, 6002, 86531, 136, 1653, 2063, 62775, 502, 9956, 1052, 8241, 151206, 24638, 60457, 724, 966, 165066, 64511, 60054, 11, 3454, 33573, 11663, 2525, 87357, 304, 67, 765, 116, 131527, 99, 6275, 12232, 9, 831, 959, 111240, 30022, 833...
[ 0.19580078125, 0.26708984375, 0.144775390625, 0.1783447265625, 0.03863525390625, 0.16162109375, 0.2147216796875, 0.2001953125, 0.138671875, 0.1380615234375, 0.1051025390625, 0.2215576171875, 0.16015625, 0.0689697265625, 0.1182861328125, 0.040740966796875, 0.03173828125, 0.228393554...
embed
33822246_c0
33822246
prolog
0
Title: how do i send data from knowledge base of prolog to text_item element in GUI XPCE Problem title: how do i send data from knowledge base of prolog to text_item element in GUI XPCE Tags: user-interface, prolog Problem: how do i send data from knowledge base of prolog to text_item element in GUI XPCE say for exampl...
how do i send data from knowledge base of prolog to text_item element in GUI XPCE how do i send data from knowledge base of prolog to text_item element in GUI XPCE user-interface prolog knowledge text_item GUI XPCE Teriaka Piazza Aranelli Report SuspectedOrg Suspected Organizations how do i send data from knowledge bas...
[ 0.037353515625, -0.0146484375, 0.0179443359375, 0.0284423828125, 0.0277099609375, 0.0260009765625, 0.00439453125, 0.0157470703125, -0.002716064453125, -0.048095703125, 0.033935546875, -0.018310546875, -0.01422119140625, 0.0086669921875, 0.0091552734375, -0.00171661376953125, 0.033203...
[ 3642, 25379, 2053, 1295, 51359, 3647, 502, 4867, 47, 7986, 217, 195, 12830, 195490, 45005, 10854, 454, 23, 38937, 70044, 9227, 114278, 10463, 92486, 34798, 1832, 16711, 3674, 19060, 173101, 15824, 18151, 7426, 76896, 53299, 33022, 2046, 35484...
[ 0.0272369384765625, 0.1622314453125, 0.1661376953125, 0.051727294921875, 0.167236328125, 0.1826171875, 0.122802734375, 0.207763671875, 0.103515625, 0.142822265625, 0.1368408203125, 0.10546875, 0.1240234375, 0.1673583984375, 0.122802734375, 0.1719970703125, 0.006683349609375, 0.0034...
embed
16344672_c0
16344672
prolog
0
Title: Prolog removing all variables and duplicates Problem title: Prolog removing all variables and duplicates Tags: list, prolog Problem: Prolog removing all variables and duplicates I need a query, which will remove me all variables and duplicates from list. Example: ?- L = [1,2,3,X,Y,3,2], my_awesome_predicate(L, R...
Prolog removing all variables and duplicates Prolog removing all variables and duplicates list prolog Prolog my_awesome_predicate Res remove_variables List Sorted Prolog removing all variables and duplicates I need a query, which will remove me all variables and duplicates from list. Example: Then, Res should be: [1,2,...
[ 0.0064697265625, 0.0159912109375, -0.000553131103515625, -0.0181884765625, -0.006317138671875, 0.004547119140625, -0.00177001953125, -0.003509521484375, -0.00872802734375, -0.0693359375, -0.006195068359375, 0.0247802734375, 0.00022983551025390625, -0.000431060791015625, -0.01318359375, ...
[ 1250, 4867, 49146, 6496, 756, 77336, 136, 171763, 1636, 5303, 502, 759, 1177, 43452, 19714, 2063, 9624, 87388, 21690, 19736, 32036, 53666, 297, 3871, 41, 1294, 163, 1295, 89536, 5608, 186, 155761, 517, 12989, 5809, 66211, 227066, 16940, 427...
[ 0.175048828125, 0.244140625, 0.1181640625, 0.047210693359375, 0.1304931640625, 0.2484130859375, 0.1005859375, 0.2301025390625, 0.107177734375, 0.1754150390625, 0.134765625, 0.07391357421875, 0.05352783203125, 0.1251220703125, 0.13232421875, 0.1414794921875, 0.2001953125, 0.18249511...
embed
70326629_c0
70326629
prolog
0
Title: Need help programming a list in Prolog Problem title: Need help programming a list in Prolog Tags: prolog Problem: Need help programming a list in Prolog I need help coding a program in Prolog that returns true if a list has n number of [a, c] and m number of b. But it must be in this order: a,b,c if there are t...
Need help programming a list in Prolog Need help programming a list in Prolog prolog Need Prolog langage8 Need help programming a list in Prolog I need help coding a program in Prolog that returns true if a list has n number of [a, c] and m number of b. But it must be in this order: a,b,c if there are the letters a,b,c...
[ 0.024658203125, 0.00390625, 0.011962890625, 0.03564453125, -0.01129150390625, 0.02587890625, -0.008056640625, 0.01300048828125, 0.02099609375, -0.0062255859375, 0.010009765625, -0.01171875, -0.01141357421875, 0.00738525390625, 0.003265380859375, -0.01043701171875, 0.0247802734375, ...
[ 52889, 4358, 56037, 449, 10, 5303, 23, 1250, 4867, 502, 1937, 4588, 1019, 3871, 552, 6238, 1528, 30646, 29568, 2174, 1556, 653, 14012, 11, 501, 347, 876, 8110, 903, 12989, 275, 238, 2685, 120820, 101935, 111, 136, 5701, 831, 186, 89778,...
[ 0.1024169921875, 0.1322021484375, 0.187255859375, 0.076904296875, 0.0830078125, 0.256103515625, 0.0853271484375, 0.19921875, 0.26318359375, 0.159423828125, 0.0963134765625, 0.0288238525390625, 0.15478515625, 0.101318359375, 0.1260986328125, 0.07666015625, 0.1693115234375, 0.1446533...
embed
32319035_c1
32319035
prolog
1
; false. In this case, however, it seems appropriate to expect only one correct answer. Here's another, more deterministic approach: whitespace --> [Space], { char_type(Space, space) }, whitespace. whitespace --> []. symbol([Sym|T]) --> letter(Sym), !, symbol(T). symbol([]) --> []. letter(Let) --> [Let], { code_type(L...
; false. In this case, however, it seems appropriate to expect only one correct answer. Here's another, more deterministic approach: whitespace --> [Space], { char_type(Space, space) }, whitespace. whitespace --> []. symbol([Sym|T]) --> letter(Sym), !, symbol(T). symbol([]) --> []. letter(Let) --> [Let], { code_type(L...
[ 0.0054931640625, 0.0027008056640625, -0.0084228515625, 0.00994873046875, -0.0166015625, 0.01068115234375, -0.0025482177734375, 0.003387451171875, 0.01019287109375, -0.015869140625, -0.0035400390625, -0.0027008056640625, -0.0303955078125, 0.007598876953125, -0.0186767578125, 0.015747070...
[ 2819, 98320, 7225, 49903, 37202, 95307, 41206, 4734, 1632, 26785, 35166, 15700, 1286, 72694, 48242, 51515, 35011, 65421, 129908, 141012, 21441, 50986, 32628, 26582, 294, 4650, 58745, 618, 31330, 711, 124480, 18151, 144, 14612, 1745, 21373, 1019...
[ 0.066650390625, 0.254150390625, 0.027984619140625, 0.020233154296875, 0.011688232421875, 0.06610107421875, 0.1689453125, 0.0743408203125, 0.125732421875, 0.17578125, 0.197509765625, 0.01068115234375, 0.00311279296875, 0.116943359375, 0.00762939453125, 0.126953125, 0.1605224609375, ...
embed
69610063_c0
69610063
prolog
0
Title: Returning True if intersection is empty and False otherwise Problem title: Returning True if intersection is empty and False otherwise Tags: prolog Problem: Returning True if intersection is empty and False otherwise I have a function that computes the intersection of two list in prolog. code: list_member(X,[X|_...
Returning True if intersection is empty and False otherwise Returning True if intersection is empty and False otherwise prolog Returning list_member TAIL list_intersect success_fn Returning True if intersection is empty and False otherwise I have a function that computes the intersection of two list in prolog. code: I ...
[ 0.00531005859375, -0.006805419921875, 0.021728515625, 0.00579833984375, -0.0189208984375, 0.017333984375, 0.006927490234375, -0.0167236328125, 0.0228271484375, 0.018310546875, 0.017822265625, 0.0252685546875, 0.000152587890625, 0.000522613525390625, 0.0145263671875, 0.0028228759765625,...
[ 173340, 214, 87599, 2174, 1940, 7, 58994, 201505, 22225, 184, 120262, 502, 4867, 5303, 27417, 12998, 16444, 10433, 24762, 36272, 14783, 32354, 375, 7077, 6626, 18151, 3444, 30646, 29568, 62952, 36917, 6, 83, 37076, 98320, 28864, 37842, 58836,...
[ 0.1685791015625, 0.0288543701171875, 0.164306640625, 0.07977294921875, 0.1806640625, 0.1737060546875, 0.189208984375, 0.2099609375, 0.101318359375, 0.040557861328125, 0.06256103515625, 0.137939453125, 0.2095947265625, 0.16015625, 0.10693359375, 0.0726318359375, 0.0672607421875, 0.1...
embed
30464504_c0
30464504
prolog
0
Title: How to find the Nth element of a list in Prolog Problem title: How to find the Nth element of a list in Prolog Tags: prolog, list Problem: How to find the Nth element of a list in Prolog I am trying to write a Prolog code finding the n -th element of a list. I wrote the below code but it doesn't return the eleme...
How to find the Nth element of a list in Prolog How to find the Nth element of a list in Prolog prolog list How Nth Prolog Elem Tail Num MatchedNumber Counter How to find the Nth element of a list in Prolog I am trying to write a Prolog code finding the n -th element of a list. I wrote the below code but it doesn't ret...
[ -0.0098876953125, 0.013427734375, 0.01202392578125, 0.00518798828125, 0.00008106231689453125, 0.01123046875, -0.005340576171875, 0.010498046875, -0.001800537109375, -0.02880859375, 0.01129150390625, -0.0245361328125, -0.005889892578125, -0.0067138671875, 0.0191650390625, -0.01574707031...
[ 11249, 7413, 70, 541, 927, 12830, 111, 5303, 23, 1250, 4867, 502, 540, 195, 1218, 379, 52782, 67407, 297, 18444, 26278, 197956, 18151, 90791, 653, 20, 35064, 30646, 7108, 50336, 14012, 105950, 105416, 5117, 43581, 77336, 136, 5423, 11343, ...
[ 0.051361083984375, 0.136474609375, 0.04534912109375, 0.2117919921875, 0.24755859375, 0.218505859375, 0.055450439453125, 0.170654296875, 0.048858642578125, 0.1669921875, 0.2314453125, 0.126953125, 0.0675048828125, 0.12841796875, 0.082763671875, 0.0771484375, 0.1422119140625, 0.17431...
embed
48741603_c0
48741603
prolog
0
Title: Differentiating two people prolog Problem title: Differentiating two people prolog Tags: prolog Problem: Differentiating two people prolog I'm new to Prolog, and I'm having trouble understanding the OR operator ";" so this is an example below:- /*attributes(Person,Eats,Footwear).*/ attributes( personA, eats(frie...
Differentiating two people prolog Differentiating two people prolog prolog Differentiating Person Eats Footwear Differentiating two people prolog I'm new to Prolog, and I'm having trouble understanding the OR operator ";" so this is an example below:- so I need to differentiate between personA and personB, eg if I put ...
[ 0.023681640625, 0.01513671875, 0.006103515625, 0.015869140625, -0.0205078125, 0.01953125, -0.03076171875, 0.0166015625, 0.0019683837890625, -0.005584716796875, 0.01483154296875, 0.00124359130859375, 0.02197265625, 0.013671875, 0.002166748046875, -0.016845703125, 0.029052734375, 0.0...
[ 242520, 14, 26518, 6626, 3395, 502, 4867, 15270, 241, 9821, 159020, 87690, 3525, 1250, 19441, 63134, 100094, 33172, 39933, 44, 74, 27781, 35064, 3871, 99710, 2182, 17721, 3445, 284, 136, 571, 3884, 41, 160054, 76017, 14437, 101, 4734, 15038...
[ 0.2008056640625, 0.1810302734375, 0.114013671875, 0.1690673828125, 0.1824951171875, 0.16748046875, 0.267822265625, 0.2225341796875, 0.1328125, 0.08251953125, 0.1385498046875, 0.1329345703125, 0.04833984375, 0.177001953125, 0.00653076171875, 0.073486328125, 0.1024169921875, 0.273193...
embed
59673038_c0
59673038
prolog
0
Title: Prolog logical programming Binary tree predicates Problem title: Prolog logical programming Binary tree predicates Tags: prolog Problem: Prolog logical programming Binary tree predicates I am a total beginner to logic programming and Prolog so the problem is that i am trying to implement a binary tree in Prolog ...
Prolog logical programming Binary tree predicates Prolog logical programming Binary tree predicates prolog Prolog Binary Tree Res Sum TreeIn TreeOut Prolog logical programming Binary tree predicates I am a total beginner to logic programming and Prolog so the problem is that i am trying to implement a binary tree in Pr...
[ 0.0303955078125, 0.01409912109375, -0.0048828125, -0.0108642578125, 0.00799560546875, 0.0211181640625, -0.033447265625, -0.01055908203125, 0.00860595703125, -0.04443359375, -0.017578125, -0.0262451171875, -0.0113525390625, -0.000469207763671875, 0.0257568359375, 0.0294189453125, 0.02...
[ 1250, 4867, 62775, 56037, 54092, 1294, 53201, 1653, 2063, 502, 101344, 9624, 36335, 4153, 79858, 9842, 1679, 2967, 31577, 29479, 2394, 6635, 1884, 3871, 25632, 54529, 1542, 62731, 4332, 5941, 20028, 1193, 34475, 115081, 30646, 10554, 756, 438...
[ 0.1484375, 0.2437744140625, 0.1363525390625, 0.104248046875, 0.1817626953125, 0.051177978515625, 0.220947265625, 0.157470703125, 0.1787109375, 0.10028076171875, 0.1893310546875, 0.1307373046875, 0.17724609375, 0.1688232421875, 0.214111328125, 0.021514892578125, 0.03759765625, 0.065...
embed
27430965_c0
27430965
prolog
0
Title: Backtracking PROLOG:display all sub-sets with aspect of &quot;mountain&quot; Problem title: Backtracking PROLOG:display all sub-sets with aspect of &quot;mountain&quot; Tags: prolog, list, backtracking Problem: Backtracking PROLOG:display all sub-sets with aspect of "mountain" Can you help me with this problem o...
Backtracking PROLOG:display all sub-sets with aspect of &quot;mountain&quot; Backtracking PROLOG:display all sub-sets with aspect of &quot;mountain&quot; prolog list backtracking Backtracking PROLOG:display Pas Nr1 Pas1 Backtracking PROLOG:display all sub-sets with aspect of "mountain" Can you help me with this problem...
[ -0.00677490234375, 0.0281982421875, -0.001983642578125, 0.002838134765625, 0.0059814453125, -0.01007080078125, 0.0068359375, -0.0228271484375, 0.00994873046875, -0.023193359375, 0.015869140625, 0.013671875, -0.0023651123046875, 0.00750732421875, 0.00128173828125, 0.0201416015625, 0.0...
[ 26828, 125728, 214, 10514, 47510, 3827, 20706, 756, 1614, 3509, 678, 43585, 227772, 502, 4867, 5303, 4420, 3805, 9308, 418, 111, 4358, 2967, 23, 1250, 79315, 10, 153, 142, 34475, 58055, 117781, 892, 26255, 56065, 44116, 5423, 2174, 80854, ...
[ 0.1810302734375, 0.27734375, 0.1278076171875, 0.1624755859375, 0.1920166015625, 0.065673828125, 0.140869140625, 0.09527587890625, 0.195556640625, 0.2137451171875, 0.0621337890625, 0.2115478515625, 0.2158203125, 0.1468505859375, 0.2481689453125, 0.1226806640625, 0.2060546875, 0.1199...
embed
58291317_c0
58291317
prolog
0
Title: adding elements one by one to a new list in prolog recursion Problem title: adding elements one by one to a new list in prolog recursion Tags: prolog, recursion Problem: adding elements one by one to a new list in prolog recursion given add(X,InputList,OutputList) where Outputlist is a sequence of X elements fro...
adding elements one by one to a new list in prolog recursion adding elements one by one to a new list in prolog recursion prolog recursion InputList OutputList append2 List2 Result adding elements one by one to a new list in prolog recursion given add(X,InputList,OutputList) where Outputlist is a sequence of X elements...
[ -0.003173828125, 0.018798828125, -0.00023555755615234375, -0.000690460205078125, -0.021240234375, 0.00872802734375, 0.01019287109375, 0.006256103515625, 0.0296630859375, -0.0240478515625, 0.03515625, -0.04248046875, -0.0091552734375, 0.01708984375, 0.021240234375, -0.0247802734375, 0...
[ 154107, 80854, 1632, 390, 47, 3525, 5303, 502, 4867, 195625, 1830, 360, 7077, 154663, 13538, 114689, 304, 32036, 126684, 15190, 1542, 4153, 79858, 6562, 944, 1193, 6, 12301, 54529, 14012, 570, 58359, 32786, 30646, 7228, 13267, 107730, 8561, ...
[ 0.1309814453125, 0.181396484375, 0.1339111328125, 0.114990234375, 0.074462890625, 0.0743408203125, 0.1654052734375, 0.138427734375, 0.1929931640625, 0.1832275390625, 0.06195068359375, 0.04833984375, 0.152587890625, 0.1751708984375, 0.12158203125, 0.10333251953125, 0.09222412109375, ...
embed
72455732_c0
72455732
prolog
0
Title: Verify if a matrix is reduced in ProLog Problem title: Verify if a matrix is reduced in ProLog Tags: matrix, prolog Problem: Verify if a matrix is reduced in ProLog For the ones that I might have reached with my recent questions on my matrix operations project, I can actually confirm that everything is working p...
Verify if a matrix is reduced in ProLog Verify if a matrix is reduced in ProLog matrix prolog Verify ProLog Verify if a matrix is reduced in ProLog For the ones that I might have reached with my recent questions on my matrix operations project, I can actually confirm that everything is working perfectly...except one ce...
[ 0.01123046875, -0.01409912109375, 0.00738525390625, 0.0152587890625, -0.00830078125, -0.0106201171875, -0.01361083984375, -0.0037841796875, -0.0025787353515625, 0.0267333984375, 0.006683349609375, -0.0167236328125, -0.0020904541015625, -0.0283203125, -0.0021820068359375, 0.016479492187...
[ 1446, 40383, 2174, 50944, 425, 34390, 71, 1250, 113972, 502, 4867, 83, 23, 157578, 17582, 41018, 13452, 20653, 39563, 26818, 20697, 169123, 19462, 24233, 15411, 32354, 12765, 47, 96190, 1430, 4759, 15236, 9014, 123309, 137043, 56037, 6183, 26...
[ 0.15234375, 0.1217041015625, 0.0931396484375, 0.201904296875, 0.1298828125, 0.237060546875, 0.1075439453125, 0.16064453125, 0.2474365234375, 0.095947265625, 0.1639404296875, 0.00177001953125, 0.001495361328125, 0.013702392578125, 0.024200439453125, 0.158203125, 0.06134033203125, 0....
embed
46118682_c0
46118682
prolog
0
Title: Prolog. Have an assignment to take 2 lists. check if any members in said lists correspond. And then put these corresponding members in a new list Problem title: Prolog. Have an assignment to take 2 lists. check if any members in said lists correspond. And then put these corresponding members in a new list Tags: ...
Prolog. Have an assignment to take 2 lists. check if any members in said lists correspond. And then put these corresponding members in a new list Prolog. Have an assignment to take 2 lists. check if any members in said lists correspond. And then put these corresponding members in a new list list prolog members Prolog H...
[ 0.006256103515625, -0.00909423828125, 0.0096435546875, 0.017333984375, -0.025390625, 0.0245361328125, 0.0164794921875, 0.0147705078125, 0.007537841796875, -0.02197265625, 0.0167236328125, 0.0230712890625, 0.0118408203125, 0.0034942626953125, -0.00146484375, -0.0005340576171875, 0.015...
[ 1250, 4867, 31901, 95486, 674, 5646, 116, 5303, 12765, 43032, 42518, 3884, 2174, 502, 142, 3525, 26859, 52080, 23, 152363, 5895, 9655, 27781, 5608, 140992, 87, 2809, 31577, 21974, 14373, 831, 18, 2046, 442, 4488, 26366, 1810, 10002, 5809, ...
[ 0.172119140625, 0.269287109375, 0.04425048828125, 0.1522216796875, 0.080322265625, 0.063232421875, 0.0999755859375, 0.1744384765625, 0.1605224609375, 0.1806640625, 0.17041015625, 0.03619384765625, 0.0164337158203125, 0.154541015625, 0.01287841796875, 0.01708984375, 0.002685546875, ...
embed
20916631_c0
20916631
prolog
0
Title: which sentences can this grammar generate? Problem title: which sentences can this grammar generate? Tags: grammar, prolog, dcg Problem: which sentences can this grammar generate? Here is a tiny lexicon and a minigrammar consisting of one syntactic rule, I have to list all the sentences that this grammar can gen...
which sentences can this grammar generate? which sentences can this grammar generate? grammar prolog dcg Word1 Word2 Word3 Word4 Word5 which sentences can this grammar generate? Here is a tiny lexicon and a minigrammar consisting of one syntactic rule, I have to list all the sentences that this grammar can generate in ...
[ 0.0311279296875, 0.0013275146484375, -0.00958251953125, 0.0233154296875, -0.0218505859375, 0.0191650390625, -0.007476806640625, 0.017333984375, 0.004730224609375, -0.02978515625, -0.003753662109375, -0.01409912109375, -0.0198974609375, 0.0166015625, 0.00090789794921875, 0.0089111328125...
[ 3129, 149357, 7, 831, 903, 122092, 147, 139392, 502, 4867, 104, 238, 177, 22543, 418, 304, 363, 617, 758, 57278, 95, 73140, 19, 7665, 107415, 6002, 102, 49086, 79986, 5303, 12989, 1250, 3714, 5117, 2806, 49602, 28, 9821, 10, 7413, 3789,...
[ 0.057891845703125, 0.226806640625, 0.07830810546875, 0.1470947265625, 0.1148681640625, 0.1893310546875, 0.1558837890625, 0.229736328125, 0.1573486328125, 0.2491455078125, 0.03851318359375, 0.0489501953125, 0.1173095703125, 0.0804443359375, 0.041717529296875, 0.06634521484375, 0.05944...
embed
23958087_c0
23958087
prolog
0
Title: How can you count, the amount of backtracks in Prolog SWI or CHR Prolog SWI Problem title: How can you count, the amount of backtracks in Prolog SWI or CHR Prolog SWI Tags: backtracking, swi-prolog, constraint-handling-rules, prolog Problem: How can you count, the amount of backtracks in Prolog SWI or CHR Prolog...
How can you count, the amount of backtracks in Prolog SWI or CHR Prolog SWI How can you count, the amount of backtracks in Prolog SWI or CHR Prolog SWI backtracking swi-prolog constraint-handling-rules prolog How Prolog SWI CHR How can you count, the amount of backtracks in Prolog SWI or CHR Prolog SWI I'm creating sev...
[ 0.01519775390625, 0.015869140625, 0.01611328125, 0.009521484375, -0.00250244140625, -0.00927734375, -0.00014781951904296875, -0.006927490234375, 0.002960205078125, -0.054931640625, -0.00860595703125, -0.0147705078125, 0.00101470947265625, 0.0181884765625, 0.01434326171875, -0.007507324...
[ 11249, 831, 54529, 41170, 4420, 125728, 7, 23, 1250, 4867, 159, 38969, 29562, 2452, 3454, 2816, 4288, 54885, 13500, 502, 104192, 3115, 7864, 193237, 139118, 43240, 1884, 3034, 814, 2965, 4527, 19713, 27571, 7413, 1810, 28412, 1902, 44841, 2...
[ 0.0221099853515625, 0.043487548828125, 0.2052001953125, 0.10546875, 0.205322265625, 0.29150390625, 0.125, 0.034393310546875, 0.1455078125, 0.1761474609375, 0.04290771484375, 0.2049560546875, 0.176513671875, 0.1170654296875, 0.0232086181640625, 0.10443115234375, 0.019744873046875, 0...
embed
9003552_c0
9003552
prolog
0
Title: Neighbour, town, dam, link relationships Problem title: Neighbour, town, dam, link relationships Tags: prolog, list Problem: Neighbour, town, dam, link relationships In a prolog program as stated below: town(a). town(b). town(c). town(d). dam(e). dam(f). link(a,b). link(a,c). link(c,d). link(b,d). link(b,c). lin...
Neighbour, town, dam, link relationships Neighbour, town, dam, link relationships prolog list Neighbour Neighbour, town, dam, link relationships In a prolog program as stated below: Would this be the correct procedure all_neighbours(L,X) which returns a list L of all neighbouring towns to X: all_neighbours(L,X):- town(...
[ 0.0230712890625, 0.0135498046875, 0.007080078125, 0.022216796875, 0.00933837890625, 0.0072021484375, 0.000354766845703125, -0.001007080078125, 0.0224609375, -0.0189208984375, -0.01806640625, -0.021484375, 0.00732421875, 0.004180908203125, 0.010498046875, -0.0009918212890625, 0.006286...
[ 799, 6958, 38648, 59444, 22539, 3126, 151618, 502, 4867, 5303, 1528, 35064, 154559, 903, 26785, 50491, 756, 86, 866, 4, 1542, 30646, 339, 108, 47, 1193, 1723, 7413, 5584, 1556, 454, 6229, 132, 19713, 110, 765, 959, 194 ]
[ 0.0706787109375, 0.1490478515625, 0.172119140625, 0.18115234375, 0.1998291015625, 0.19970703125, 0.21337890625, 0.156005859375, 0.23681640625, 0.173583984375, 0.1656494140625, 0.037353515625, 0.0518798828125, 0.04730224609375, 0.1572265625, 0.1956787109375, 0.1331787109375, 0.08361...
embed
46245547_c0
46245547
prolog
0
Title: How to divide unordered set into subsets in Prolog Problem title: How to divide unordered set into subsets in Prolog Tags: list, prolog, set Problem: How to divide unordered set into subsets in Prolog I need a predicate that splits a given set into subsets What I have so far: divide_set(S, Sd) :- length(S, L), b...
How to divide unordered set into subsets in Prolog How to divide unordered set into subsets in Prolog list prolog set How Prolog divide_set How to divide unordered set into subsets in Prolog I need a predicate that splits a given set into subsets What I have so far: Which gives me these results: So the set is treated a...
[ -0.00689697265625, 0.01416015625, 0.0211181640625, -0.01177978515625, -0.0081787109375, -0.01318359375, -0.01153564453125, -0.00174713134765625, 0.015380859375, -0.0247802734375, 0.01806640625, 0.029052734375, 0.010009765625, 0.01025390625, -0.00494384765625, 0.0059814453125, 0.02075...
[ 11249, 47, 101637, 51, 80596, 297, 5423, 3934, 1614, 3509, 7, 1250, 4867, 5303, 502, 3871, 1653, 2063, 67, 65450, 34475, 191607, 12989, 49903, 3444, 1238, 99201, 65042, 29806 ]
[ 0.049072265625, 0.0174102783203125, 0.1722412109375, 0.08709716796875, 0.1678466796875, 0.0797119140625, 0.17626953125, 0.10540771484375, 0.1737060546875, 0.2220458984375, 0.0189666748046875, 0.12646484375, 0.1934814453125, 0.09942626953125, 0.09344482421875, 0.035614013671875, 0.084...
embed
23464219_c0
23464219
prolog
0
Title: Why does this query unify with this clause in Prolog? Problem title: Why does this query unify with this clause in Prolog? Tags: unification, prolog Problem: Why does this query unify with this clause in Prolog? I think I have a fundamental misunderstanding about unification. Here are my two clauses: test(func(X...
Why does this query unify with this clause in Prolog? Why does this query unify with this clause in Prolog? unification prolog Why Prolog Why does this query unify with this clause in Prolog? I think I have a fundamental misunderstanding about unification. Here are my two clauses: So- If I query test(func(X), Y, D), I ...
[ 0.0089111328125, 0.021728515625, 0.0194091796875, 0.00151824951171875, -0.007232666015625, -0.0067138671875, -0.0146484375, -0.010498046875, 0.0093994140625, 0.0084228515625, -0.01507568359375, 0.00323486328125, -0.007598876953125, -0.01007080078125, -0.00640869140625, 0.0037841796875,...
[ 44084, 14602, 903, 41, 1294, 51, 40383, 678, 70731, 1250, 4867, 41274, 502, 13, 20531, 24658, 144057, 6626, 90, 3034, 16498, 1542, 990, 391, 41206, 13395, 2661, 17932, 757, 5351, 31577, 63284, 1193, 8110, 105950, 47, 5117, 959, 5701, 1756...
[ 0.1131591796875, 0.018096923828125, 0.0697021484375, 0.1319580078125, 0.0889892578125, 0.1739501953125, 0.1658935546875, 0.1524658203125, 0.1456298828125, 0.158447265625, 0.215087890625, 0.1666259765625, 0.12841796875, 0.0328369140625, 0.0182342529296875, 0.030548095703125, 0.0618896...
embed
59046941_c0
59046941
prolog
0
Title: Filter association table prolog Problem title: Filter association table prolog Tags: prolog, meta-predicate Problem: Filter association table prolog I need to write the include_assoc / 3 predicate that filters the associative array (second argument) with the given predicate (first argument) and writes the result...
Filter association table prolog Filter association table prolog prolog meta-predicate Filter include_assoc empty_assoc Filtr Tab Result min_assoc Key Value del_min_assoc Tab1 Key-Value Result1 put_assoc Filter association table prolog I need to write the include_assoc / 3 predicate that filters the associative array (s...
[ 0.010498046875, -0.007293701171875, -0.0179443359375, -0.0040283203125, -0.0020294189453125, -0.00653076171875, 0.028076171875, 0.0037384033203125, 0.004150390625, -0.01611328125, 0.033935546875, 0.0322265625, -0.0341796875, 0.01092529296875, 0.0179443359375, 0.0177001953125, 0.01147...
[ 128896, 125413, 23180, 502, 4867, 23550, 19714, 2063, 26698, 73395, 238, 201505, 134411, 22193, 126684, 881, 26824, 190060, 146, 1249, 856, 50770, 3884, 3871, 33022, 248, 138, 1653, 67, 46312, 166027, 10298, 191633, 10750, 16750, 50960, 4488, ...
[ 0.2247314453125, 0.1724853515625, 0.2120361328125, 0.0897216796875, 0.1279296875, 0.1353759765625, 0.1123046875, 0.17041015625, 0.1405029296875, 0.13525390625, 0.0865478515625, 0.1336669921875, 0.1695556640625, 0.1209716796875, 0.131591796875, 0.0975341796875, 0.0474853515625, 0.10...
embed
73862018_c0
73862018
prolog
0
Title: SWI Prolog, array of arrays to array of strings Problem title: SWI Prolog, array of arrays to array of strings Tags: arrays, string, prolog Problem: SWI Prolog, array of arrays to array of strings I have function that gives me array S = [ publication(12, stout, call), publication(19, jones, wendalissa), publicat...
SWI Prolog, array of arrays to array of strings SWI Prolog, array of arrays to array of strings arrays string prolog SWI Prolog custom_print term_to_atom atomic_list_concat SWI Prolog, array of arrays to array of strings I have function that gives me array and I want to change this array to another This doesn't help me...
[ 0.014892578125, 0.01019287109375, 0.01263427734375, 0.0225830078125, -0.0299072265625, -0.0023040771484375, -0.00439453125, -0.001495361328125, -0.0040283203125, -0.007781982421875, 0.01544189453125, 0.0218505859375, -0.01031494140625, -0.00701904296875, -0.00482177734375, 0.0075378417...
[ 159, 38969, 1250, 4867, 10298, 53, 111, 4778, 47, 79315, 502, 114122, 35662, 13579, 188, 5928, 34627, 6562, 2271, 4460, 32354, 76199, 3444, 15549, 15700, 4358, 11249, 96760, 5303, 10, 23, 3522, 28219 ]
[ 0.044708251953125, 0.21826171875, 0.156005859375, 0.2578125, 0.1573486328125, 0.1204833984375, 0.0933837890625, 0.12451171875, 0.113037109375, 0.275146484375, 0.1038818359375, 0.1236572265625, 0.122802734375, 0.1873779296875, 0.073486328125, 0.14892578125, 0.128173828125, 0.1635742...
embed
26560684_c0
26560684
prolog
0
Title: Strange results for list manipulation Problem title: Strange results for list manipulation Tags: prolog, prolog-dif Problem: Strange results for list manipulation I'm trying to implement some predicates for list manipulation in Prolog. Everything works as desired. For example append([],Ys,Ys). append([X|Xs],Ys,[...
Strange results for list manipulation Strange results for list manipulation prolog prolog-dif Strange _G8975 _G8978 _G8981 BAD Strange results for list manipulation I'm trying to implement some predicates for list manipulation in Prolog. Everything works as desired. For example Sample query: But I'm having trouble with...
[ 0.0009918212890625, 0.0196533203125, 0.01263427734375, -0.013671875, -0.0076904296875, 0.0089111328125, -0.005096435546875, 0.01043701171875, 0.0228271484375, 0.002349853515625, 0.0191650390625, -0.0031280517578125, -0.0194091796875, 0.010986328125, 0.0064697265625, 0.003143310546875, ...
[ 187791, 50339, 100, 5303, 45258, 1363, 502, 4867, 428, 420, 724, 18949, 6873, 19051, 197595, 418, 8678, 397, 31577, 29479, 1653, 2063, 1636, 1250, 171581, 43240, 237, 104851, 947, 33209, 41, 4966, 63134, 8520, 67, 19714, 1294, 678, 6494, ...
[ 0.2274169921875, 0.1634521484375, 0.011871337890625, 0.1922607421875, 0.201171875, 0.0227203369140625, 0.1142578125, 0.2197265625, 0.070556640625, 0.07379150390625, 0.041168212890625, 0.1566162109375, 0.16845703125, 0.1563720703125, 0.191162109375, 0.0350341796875, 0.0960693359375, ...
embed
33490133_c1
33490133
prolog
1
I have paired each odbc_prepare and odbc_execute with a odbc_free_statement in my program; I still get the error after (a lot more) usage. Is there anything else that might be causing this "cursor leak"? I'm aware that there are queries I could run in SQL Plus to try and identify the increase in usage of connection cu...
I have paired each odbc_prepare and odbc_execute with a odbc_free_statement in my program; I still get the error after (a lot more) usage. Is there anything else that might be causing this "cursor leak"? I'm aware that there are queries I could run in SQL Plus to try and identify the increase in usage of connection cu...
[ 0.000156402587890625, 0.0169677734375, -0.0228271484375, 0.00408935546875, 0.00156402587890625, -0.00360107421875, 0.00110626220703125, -0.0093994140625, 0.0208740234375, -0.0322265625, 0.02783203125, -0.0164794921875, -0.0166015625, 0.00848388671875, -0.008056640625, -0.01556396484375...
[ 80836, 12638, 229, 65037, 4692, 16082, 46480, 85691, 32087, 61340, 674, 1528, 7464, 2046, 18499, 7103, 5915, 1286, 127689, 13648, 216806, 86927, 42, 95, 344, 107419, 41, 11675, 80866, 8183, 135812, 51312, 94878, 13810, 4295, 7941, 176866, 165...
[ 0.125732421875, 0.031494140625, 0.139404296875, 0.177978515625, 0.1202392578125, 0.1854248046875, 0.056884765625, 0.1278076171875, 0.1336669921875, 0.17431640625, 0.06787109375, 0.098388671875, 0.0841064453125, 0.016876220703125, 0.215576171875, 0.05072021484375, 0.0938720703125, 0...
embed
47237921_c0
47237921
prolog
0
Title: Variable scope for if / else in Prolog Problem title: Variable scope for if / else in Prolog Tags: if-statement, prolog, scope Problem: Variable scope for if / else in Prolog I'm trying to use the -> operator in GNU Prolog, but I'm having some trouble with variable scope. Here's an example: example(A) :- B = A, ...
Variable scope for if / else in Prolog Variable scope for if / else in Prolog if-statement prolog scope Variable Prolog _282 Variable scope for if / else in Prolog I'm trying to use the -> operator in GNU Prolog, but I'm having some trouble with variable scope. Here's an example: In the Prolog console: When I query exa...
[ 0.032958984375, 0.01275634765625, 0.00836181640625, 0.021240234375, 0.0111083984375, 0.0038604736328125, 0.0059814453125, 0.041015625, -0.004791259765625, 0.0017547607421875, 0.01220703125, -0.01470947265625, -0.009765625, 0.0029144287109375, 0.0284423828125, 0.006866455078125, -0.00...
[ 84572, 2886, 70820, 100, 2174, 248, 37076, 23, 1250, 4867, 61340, 502, 101, 3882, 304, 4527, 33079, 39933, 165132, 63134, 77336, 27781, 130250, 41, 1294, 335, 69112, 116, 214493, 93002, 34292, 28412, 1810, 83, 69829, 35782, 959, 3714, 55681...
[ 0.20751953125, 0.1094970703125, 0.2587890625, 0.053680419921875, 0.1973876953125, 0.1324462890625, 0.171142578125, 0.05133056640625, 0.1800537109375, 0.2318115234375, 0.1123046875, 0.1175537109375, 0.037933349609375, 0.1707763671875, 0.168212890625, 0.027313232421875, 0.1917724609375...
embed
19461494_c0
19461494
prolog
0
Title: Prolog : Comparing a range of times Problem title: Prolog : Comparing a range of times Tags: gnu-prolog, prolog Problem: Prolog : Comparing a range of times Quick rundown, basically, the idea of the prolog program (GNU Prolog) is to search a database containing people with available time slots to a set of times ...
Prolog : Comparing a range of times Prolog : Comparing a range of times gnu-prolog prolog Prolog Comparing Person Prolog : Comparing a range of times Quick rundown, basically, the idea of the prolog program (GNU Prolog) is to search a database containing people with available time slots to a set of times (beginning tim...
[ -0.01202392578125, 0.0145263671875, 0.0137939453125, -0.0062255859375, -0.01336669921875, -0.0048828125, -0.0137939453125, 0.01123046875, -0.0033416748046875, -0.044921875, -0.0011138916015625, 0.037841796875, 0.01458740234375, 0.007415771484375, 0.01007080078125, -0.000097751617431640...
[ 1250, 4867, 113307, 214, 37457, 20028, 152, 111, 104155, 3454, 502, 15270, 89038, 198343, 6528, 1528, 33261, 83, 47, 33938, 63399, 70541, 3395, 19882, 1733, 121892, 5423, 6820, 3564, 30646, 5117, 3445, 2750, 831, 23356, 107730, 6002, 86531, ...
[ 0.1981201171875, 0.257080078125, 0.2347412109375, 0.1053466796875, 0.1756591796875, 0.23486328125, 0.005279541015625, 0.008056640625, 0.1832275390625, 0.1461181640625, 0.171142578125, 0.2041015625, 0.013641357421875, 0.02435302734375, 0.113525390625, 0.121826171875, 0.162109375, 0....
embed
59227612_c0
59227612
prolog
0
Title: Find all in prolog Problem title: Find all in prolog Tags: prolog-findall, prolog Problem: Find all in prolog I have some employees: employee(2,2,'George','Johnson','12/16/1987'). employee(4,3,'Noah','Jones','6/9/1984'). employee(5,4,'Jack','Brown','2/16/1992'). employee(6,6,'Charlie','Davis','3/28/1997'). emplo...
Find all in prolog Find all in prolog prolog-findall prolog Find George Johnson Noah Jones Jack Brown Charlie Davis Leo Miller Jacob Wilson PosId Birth Find all in prolog I have some employees: I want to print of all them. I do it so now: And it works, but it doesn't look ok, I mean, there're too many '_'s and I have t...
[ 0.0203857421875, -0.0034332275390625, -0.00897216796875, 0.01495361328125, -0.01226806640625, 0.0281982421875, -0.0155029296875, 0.0189208984375, -0.00823974609375, -0.03466796875, 0.0106201171875, 0.0159912109375, 0.005340576171875, 0.01025390625, 0.01116943359375, 0.0169677734375, ...
[ 26040, 756, 23, 502, 4867, 9, 111607, 5584, 14787, 59520, 438, 1366, 29304, 21763, 40218, 71305, 104125, 29036, 102617, 30492, 100708, 13498, 568, 71, 2992, 927, 765, 3060, 93215, 3444, 47, 28412, 111, 2856, 5036, 43240, 1284, 22027, 18, ...
[ 0.2161865234375, 0.277587890625, 0.1455078125, 0.1898193359375, 0.269775390625, 0.031768798828125, 0.14453125, 0.2578125, 0.2037353515625, 0.2161865234375, 0.119873046875, 0.135986328125, 0.161376953125, 0.117919921875, 0.128662109375, 0.13330078125, 0.14892578125, 0.1676025390625,...
embed
47113535_c0
47113535
prolog
0
Title: Prolog: calculate variable making pairs in list all distinct Problem title: Prolog: calculate variable making pairs in list all distinct Tags: prolog Problem: Prolog: calculate variable making pairs in list all distinct I have a list with all pairs consist of 1..3 and hope all the pairs in list are distinct with...
Prolog: calculate variable making pairs in list all distinct Prolog: calculate variable making pairs in list all distinct prolog Prolog _4848 Grid is_set Prolog: calculate variable making pairs in list all distinct I have a list with all pairs consist of 1..3 and hope all the pairs in list are distinct with each other....
[ 0.0042724609375, -0.01019287109375, 0.01287841796875, -0.00238037109375, -0.001739501953125, -0.009521484375, -0.0234375, 0.01287841796875, 0.0234375, -0.02197265625, 0.02197265625, 0.015869140625, 0.01495361328125, 0.00408935546875, -0.0228271484375, 0.023681640625, 0.00836181640625...
[ 1250, 4867, 74481, 67, 77336, 20662, 80836, 7, 23, 5303, 756, 117781, 502, 9285, 31945, 71, 83, 3509, 58055, 615, 363, 15673, 678, 3789, 35064, 15824, 84751, 16750, 32354, 37202, 959, 122, 140992, 7464, 20805, 64457, 14012, 787, 91067, 11...
[ 0.1663818359375, 0.250244140625, 0.1923828125, 0.058441162109375, 0.258544921875, 0.12255859375, 0.230224609375, 0.0767822265625, 0.0780029296875, 0.1883544921875, 0.084228515625, 0.2171630859375, 0.125732421875, 0.208984375, 0.1387939453125, 0.053466796875, 0.076171875, 0.15954589...
embed
23070105_c0
23070105
prolog
0
Title: Exhausting a prolog tree without prompting the user, and without returning false. Is it possible? Problem title: Exhausting a prolog tree without prompting the user, and without returning false. Is it possible? Tags: prolog Problem: Exhausting a prolog tree without prompting the user, and without returning false...
Exhausting a prolog tree without prompting the user, and without returning false. Is it possible? Exhausting a prolog tree without prompting the user, and without returning false. Is it possible? prolog Exhausting room1 number2 number3 test2 Location Exhausting a prolog tree without prompting the user, and without retu...
[ 0.009765625, 0.0223388671875, -0.00994873046875, 0.008056640625, 0.00933837890625, 0.0184326171875, -0.0037384033203125, -0.01953125, 0.00909423828125, -0.0181884765625, 0.0068359375, 0.00372314453125, -0.0034332275390625, -0.0037078857421875, 0.0218505859375, 0.0023345947265625, 0.0...
[ 5443, 18391, 1916, 502, 4867, 53201, 15490, 105876, 38937, 30646, 98320, 7722, 17155, 304, 363, 3034, 90788, 1884, 146353, 1250, 62600, 24234, 1957, 11907, 35829, 18151, 140992, 959, 28412, 3564, 314, 35782, 33022, 26818, 24145, 29806 ]
[ 0.0927734375, 0.20751953125, 0.040496826171875, 0.171875, 0.222412109375, 0.2177734375, 0.087890625, 0.138671875, 0.110595703125, 0.05926513671875, 0.1962890625, 0.1463623046875, 0.133056640625, 0.012786865234375, 0.0290679931640625, 0.118408203125, 0.065185546875, 0.01235961914062...
embed
16424293_c0
16424293
prolog
0
Title: how do I interact with the inferior prolog process in emacs? Problem title: how do I interact with the inferior prolog process in emacs? Tags: emacs, read-eval-print-loop, prolog, swi-prolog Problem: how do I interact with the inferior prolog process in emacs? I've installed SWI-Prolog and Emacs' prolog mode. I ...
how do I interact with the inferior prolog process in emacs? how do I interact with the inferior prolog process in emacs? emacs read-eval-print-loop prolog swi-prolog first_steps.pl C-c C-b Inferior Prolog how do I interact with the inferior prolog process in emacs? I've installed SWI-Prolog and Emacs' prolog mode. I h...
[ 0.0260009765625, -0.0155029296875, 0.00157928466796875, 0.002593994140625, -0.0179443359375, 0.034912109375, -0.00067901611328125, -0.001617431640625, -0.004150390625, -0.038330078125, 0.01708984375, 0.004150390625, -0.0302734375, 0.0035858154296875, 0.006591796875, -0.00775146484375, ...
[ 3642, 78974, 678, 44157, 502, 4867, 9433, 352, 2263, 7, 23, 12301, 1405, 35662, 28354, 2452, 3454, 5117, 95528, 2424, 238, 275, 26926, 1250, 54, 20600, 159, 38969, 10752, 85269, 4439, 13736, 11435, 75463, 373, 18234, 9803, 17932, 11675, 1...
[ 0.052978515625, 0.2476806640625, 0.18017578125, 0.294921875, 0.1688232421875, 0.215087890625, 0.155517578125, 0.1041259765625, 0.158935546875, 0.0933837890625, 0.056304931640625, 0.08428955078125, 0.1434326171875, 0.067138671875, 0.10052490234375, 0.14013671875, 0.1497802734375, 0....
embed
53438097_c1
53438097
prolog
1
lingus,5500,480,890). flight(amsterdam,hongkong,klm,7000,660,750). flight(london,hongkong,ba,7500,700,1000). flight(dublin,amsterdam,ryanair,1000,90,60). flight(moscow,newyork,aerflot,9000,720,1000). flight(moscow,hongkong,aerflot,5500,420,500). flight(newyork,chicago,aa,3000,240,430). flight(dublin,london,aerlingus,50...
lingus,5500,480,890). flight(amsterdam,hongkong,klm,7000,660,750). flight(london,hongkong,ba,7500,700,1000). flight(dublin,amsterdam,ryanair,1000,90,60). flight(moscow,newyork,aerflot,9000,720,1000). flight(moscow,hongkong,aerflot,5500,420,500). flight(newyork,chicago,aa,3000,240,430). flight(dublin,london,aerlingus,50...
[ 0.0001659393310546875, 0.0213623046875, 0.0093994140625, 0.007110595703125, 0.000705718994140625, 0.0042724609375, -0.0033721923828125, -0.010498046875, -0.00005984306335449219, -0.00299072265625, -0.004119873046875, -0.0166015625, 0.0020599365234375, -0.022216796875, -0.004852294921875,...
[ 38786, 223, 4, 758, 4283, 104519, 136442, 194, 113014, 132, 302, 1515, 6229, 497, 200766, 15066, 39, 111178, 89709, 58087, 4759, 4445, 402, 966, 15128, 14105, 42629, 2397, 42, 28477, 481, 5039, 88586, 5, 840, 587, 434, 54936, 13437, 92, ...
[ 0.25244140625, 0.256103515625, 0.138916015625, 0.1676025390625, 0.276611328125, 0.2432861328125, 0.249267578125, 0.10498046875, 0.271240234375, 0.0860595703125, 0.05804443359375, 0.122314453125, 0.145263671875, 0.045745849609375, 0.1610107421875, 0.0841064453125, 0.1405029296875, 0...
embed
53701779_c0
53701779
prolog
0
Title: Test in Prolog. How to run a unit test that checks if my output file matches the my text file? Problem title: Test in Prolog. How to run a unit test that checks if my output file matches the my text file? Tags: swi-prolog, prolog, plunit, testing, unit-testing Problem: Test in Prolog. How to run a unit test that...
Test in Prolog. How to run a unit test that checks if my output file matches the my text file? Test in Prolog. How to run a unit test that checks if my output file matches the my text file? swi-prolog prolog plunit testing unit-testing Test Prolog How type_object Test in Prolog. How to run a unit test that checks if my...
[ 0.0205078125, 0.0091552734375, 0.00107574462890625, 0.0162353515625, -0.010009765625, -0.01312255859375, 0.0093994140625, -0.00159454345703125, 0.015380859375, -0.0037078857421875, 0.001373291015625, 0.031005859375, -0.01080322265625, -0.021484375, 0.01025390625, 0.005615234375, 0.02...
[ 8647, 23, 1250, 4867, 11249, 11675, 25072, 3034, 12765, 2174, 140992, 11435, 14858, 90, 7986, 759, 2452, 3454, 502, 12266, 6773, 134234, 6954, 10644, 187694, 70, 29479, 6083, 46876, 145823, 2424, 124326, 113860, 139392, 9384, 4527, 756, 80854...
[ 0.2161865234375, 0.07330322265625, 0.1348876953125, 0.2247314453125, 0.0223236083984375, 0.114990234375, 0.1717529296875, 0.243408203125, 0.1480712890625, 0.042510986328125, 0.171142578125, 0.1312255859375, 0.1650390625, 0.05389404296875, 0.1239013671875, 0.007843017578125, 0.1026611...
embed
50011941_c0
50011941
prolog
0
Title: Unsure about singleton variable warning and unbound variable error Problem title: Unsure about singleton variable warning and unbound variable error Tags: prolog Problem: Unsure about singleton variable warning and unbound variable error Writing a Prolog recursive rule count3(L, P, Z, N) where L is a list of int...
Unsure about singleton variable warning and unbound variable error Unsure about singleton variable warning and unbound variable error prolog Unsure count3 Unsure about singleton variable warning and unbound variable error Writing a Prolog recursive rule count3(L, P, Z, N) where L is a list of integers, P is the number ...
[ 0.00775146484375, 0.005828857421875, -0.0002269744873046875, -0.010009765625, -0.00372314453125, 0.01458740234375, -0.004119873046875, -0.013916015625, 0.0279541015625, -0.011962890625, -0.005401611328125, -0.031005859375, 0.02392578125, 0.00537109375, 0.0263671875, 0.004669189453125, ...
[ 992, 56851, 11001, 1507, 77336, 1631, 592, 51, 99091, 18499, 502, 4867, 54529, 363, 213185, 1250, 195625, 79986, 866, 436, 567, 541, 339, 5303, 892, 14012, 24491, 101935, 45234, 40907, 1542, 1053, 2594, 32359, 85235, 191642, 8962, 125195, 4...
[ 0.037384033203125, 0.1824951171875, 0.1527099609375, 0.16796875, 0.250244140625, 0.124755859375, 0.055328369140625, 0.062744140625, 0.186767578125, 0.1812744140625, 0.0875244140625, 0.1861572265625, 0.1455078125, 0.1728515625, 0.05615234375, 0.1146240234375, 0.10430908203125, 0.145...
embed
72338542_c0
72338542
prolog
0
Title: I have an error on this prolog code line 10 word first I cant figure it out what&#x27;s my mistake plz help me Problem title: I have an error on this prolog code line 10 word first I cant figure it out what&#x27;s my mistake plz help me Tags: prolog, expert-system Problem: I have an error on this prolog code lin...
I have an error on this prolog code line 10 word first I cant figure it out what&#x27;s my mistake plz help me I have an error on this prolog code line 10 word first I cant figure it out what&#x27;s my mistake plz help me prolog expert-system Shall Teachers Staffroom Department Question Response I have an error on this...
[ 0.01312255859375, 0.019775390625, 0.005157470703125, 0.024658203125, -0.0107421875, 0.00011920928955078125, -0.0079345703125, 0.01123046875, -0.008056640625, -0.03857421875, -0.0047607421875, 0.0274658203125, -0.004364013671875, -0.005584716796875, 0.0137939453125, 0.00060272216796875,...
[ 87, 765, 142, 18499, 98, 903, 502, 4867, 18151, 13315, 209, 2565, 5117, 45767, 26366, 1810, 2367, 3768, 759, 121742, 130432, 4358, 163, 26808, 16751, 29907, 165136, 112006, 28905, 63557, 68185, 92748 ]
[ 0.042022705078125, 0.07275390625, 0.05316162109375, 0.2220458984375, 0.065185546875, 0.092529296875, 0.1402587890625, 0.20751953125, 0.185546875, 0.1180419921875, 0.1964111328125, 0.119140625, 0.127197265625, 0.09844970703125, 0.13232421875, 0.096923828125, 0.0499267578125, 0.05917...
embed
24142859_c0
24142859
prolog
0
Title: create circled List in Prolog Problem title: create circled List in Prolog Tags: prolog, list, failure-slice Problem: create circled List in Prolog I'm trying to create this function in Prolog: % Signature: circleList(L1, L2)/2 % Purpose: L2 is a "circled" L1 list. % Precondition: L1 is fully instantiated. % Exa...
create circled List in Prolog create circled List in Prolog prolog list failure-slice List Prolog Signature Purpose Precondition Examples create circled List in Prolog I'm trying to create this function in Prolog: so i did this: but the output is this: this is good but i want to make it stop after the first time i'm do...
[ 0.00567626953125, 0.0084228515625, 0.0152587890625, 0.016845703125, 0.00089263916015625, -0.0042724609375, -0.0224609375, -0.000640869140625, 0.003631591796875, -0.00457763671875, 0.013427734375, 0.021484375, -0.0118408203125, 0.0228271484375, 0.00665283203125, 0.0157470703125, -0.00...
[ 28282, 42154, 6259, 32036, 1250, 4867, 502, 5303, 137578, 13348, 26729, 141762, 16915, 78381, 1914, 126940, 89536, 23, 32354, 140992, 903, 4127, 1284, 3444, 47, 3249, 442, 7279, 7103, 5117, 1733, 20594, 28271, 97370, 2449 ]
[ 0.099609375, 0.182373046875, 0.15234375, 0.2056884765625, 0.138427734375, 0.21923828125, 0.09014892578125, 0.1182861328125, 0.2010498046875, 0.1239013671875, 0.055908203125, 0.053558349609375, 0.076416015625, 0.0169219970703125, 0.0479736328125, 0.1463623046875, 0.054931640625, 0.0...
embed
28572751_c0
28572751
prolog
0
Title: sorting prolog algorithm ¿overflow? Problem title: sorting prolog algorithm ¿overflow? Tags: algorithm, sorting, prolog, overflow Problem: sorting prolog algorithm ¿overflow? I Need help .I've done a small sort algorithm : %give the max Element of a List max([A],A):-!. max([X|Xs],M):- max(Xs,M1), M1 > X , M is M...
sorting prolog algorithm ¿overflow? sorting prolog algorithm ¿overflow? algorithm sorting prolog overflow sorting prolog algorithm ¿overflow? I Need help .I've done a small sort algorithm : %give the max Element of a List %Delete the element M from list and give back Lo %sort a list of number with no repetitions It DOE...
[ -0.0021820068359375, 0.01806640625, 0.006439208984375, -0.00860595703125, -0.01287841796875, -0.00040435791015625, -0.0087890625, -0.001312255859375, 0.01513671875, -0.01080322265625, 0.0028533935546875, 0.000179290771484375, 0.000537872314453125, -0.008544921875, 0.03271484375, -0.025...
[ 12096, 214, 502, 4867, 234873, 3936, 5465, 118664, 32, 645, 52889, 4358, 16940, 19336, 1745, 96259, 18389, 48325, 32036, 4657, 46485, 12830, 276, 5303, 8337, 4420, 2091, 62351, 14012, 678, 110, 57346, 6197, 6706, 43240, 1284, 4734, 100, 483...
[ 0.2418212890625, 0.1114501953125, 0.1865234375, 0.2430419921875, 0.274169921875, 0.1048583984375, 0.202880859375, 0.3056640625, 0.02215576171875, 0.1822509765625, 0.07232666015625, 0.0882568359375, 0.00537109375, 0.108154296875, 0.01763916015625, 0.06915283203125, 0.1865234375, 0.1...
embed
47993926_c1
47993926
prolog
1
,[T1],D1). divide(Start,[T1,T2,T3,T4|Rest],D1,[T3,T4|Rest]):- vocal(T1),consonant(T2),consonant(T3),vocal(T4), append(Start,[T1,T2],D1). divide(Start,[T1|Rest],D1,D2):- append(Start,[T1],S), divide(S,Rest,D1,D2). unvocal('e'). vocal('a'). vocal('e'). vocal('i'). vocal('o'). vocal('u'). vocal('y'). consonant(B):- not(vo...
,[T1],D1). divide(Start,[T1,T2,T3,T4|Rest],D1,[T3,T4|Rest]):- vocal(T1),consonant(T2),consonant(T3),vocal(T4), append(Start,[T1,T2],D1). divide(Start,[T1|Rest],D1,D2):- append(Start,[T1],S), divide(S,Rest,D1,D2). unvocal('e'). vocal('a'). vocal('e'). vocal('i'). vocal('o'). vocal('u'). vocal('y'). consonant(B):- not(vo...
[ -0.01470947265625, 0.018798828125, -0.000118255615234375, 0.0283203125, -0.005889892578125, -0.0048828125, -0.014892578125, -0.0164794921875, 0.0091552734375, -0.015380859375, 0.0137939453125, -0.01708984375, -0.00390625, 0.01263427734375, -0.020751953125, -0.00177764892578125, 0.020...
[ 6, 4, 618, 76172, 397, 17727, 5, 101637, 126597, 418, 304, 363, 617, 1052, 525, 9, 108171, 1681, 1236, 10461, 21320, 965, 29557, 114689, 90173, 132, 294, 51, 13, 11, 14, 31, 34, 53, 158, 571, 959, 79315, 47416, 38, 71713, 841, 58745...
[ 0.031890869140625, 0.083740234375, 0.1319580078125, 0.127685546875, 0.09765625, 0.124267578125, 0.0472412109375, 0.29345703125, 0.1749267578125, 0.0345458984375, 0.021148681640625, 0.06884765625, 0.1270751953125, 0.031097412109375, 0.1331787109375, 0.004425048828125, 0.267333984375, ...
embed
26063489_c0
26063489
prolog
0
Title: Executing Prolog from SWI and using the output in PHP Problem title: Executing Prolog from SWI and using the output in PHP Tags: terminal, swi-prolog, prolog, php, bash Problem: Executing Prolog from SWI and using the output in PHP I have SWI Prolog working in my vm where I'm going to be working on a PHP/HTML we...
Executing Prolog from SWI and using the output in PHP Executing Prolog from SWI and using the output in PHP terminal swi-prolog prolog php bash SWI the Executing Prolog PHP Executing Prolog from SWI and using the output in PHP I have SWI Prolog working in my vm where I'm going to be working on a PHP/HTML website. I've ...
[ 0.033203125, 0.0115966796875, -0.0023956298828125, 0.007110595703125, -0.0166015625, 0.0057373046875, 0.0107421875, -0.00250244140625, -0.006683349609375, -0.02490234375, 0.017333984375, 0.036376953125, -0.017822265625, -0.00075531005859375, 0.0023040771484375, -0.0059814453125, 0.01...
[ 211603, 1250, 4867, 1295, 159, 38969, 17368, 140992, 23, 47302, 33949, 91, 2452, 3454, 502, 3958, 87109, 214, 20697, 759, 81, 39, 127068, 4165, 25632, 17997, 74908, 12706, 16145, 161063, 7693, 40930, 5423, 11435, 53299, 71924, 2967, 19441, ...
[ 0.1806640625, 0.203125, 0.24365234375, 0.1348876953125, 0.1239013671875, 0.287353515625, 0.1016845703125, 0.22216796875, 0.03289794921875, 0.2464599609375, 0.2061767578125, 0.036468505859375, 0.2379150390625, 0.1646728515625, 0.1766357421875, 0.17724609375, 0.169189453125, 0.032287...
embed
10073720_c1
10073720
prolog
1
60],[5,13,18,65],[5,14,19,70],[5,15,20,75],[5,16,21,80],[5,17,22,85],[5,18,23,90],[5,19,24,95],[5,20,25,100],[5,21,26,105],[5,22,27,110], ... EDIT: Ok, so after some editing, here is the latest version of my code. I think it's very close, but there's still something not quite right. It cycles through number pairs, but ...
60],[5,13,18,65],[5,14,19,70],[5,15,20,75],[5,16,21,80],[5,17,22,85],[5,18,23,90],[5,19,24,95],[5,20,25,100],[5,21,26,105],[5,22,27,110], ... EDIT: Ok, so after some editing, here is the latest version of my code. I think it's very close, but there's still something not quite right. It cycles through number pairs, but ...
[ 0.0030517578125, -0.001556396484375, -0.00341796875, -0.00994873046875, 0.0004825592041015625, 0.0159912109375, -0.016357421875, -0.0177001953125, 0.019287109375, 0.01080322265625, 0.0146484375, 0.013916015625, 0.0206298828125, -0.01611328125, -0.0150146484375, 0.0084228515625, -0.00...
[ 1496, 268, 4, 1065, 758, 2681, 1819, 12424, 2592, 2947, 5757, 1837, 1549, 6873, 2485, 3117, 4836, 2489, 4015, 12951, 3742, 5039, 2357, 8821, 2588, 3559, 4046, 46659, 3768, 36053, 153, 27211, 3688, 42850, 11389, 759, 18151, 5351, 442, 7, ...
[ 0.271484375, 0.156982421875, 0.07916259765625, 0.043426513671875, 0.0850830078125, 0.1304931640625, 0.1368408203125, 0.1920166015625, 0.1195068359375, 0.1207275390625, 0.1785888671875, 0.082275390625, 0.0848388671875, 0.169189453125, 0.0914306640625, 0.07037353515625, 0.1500244140625...
embed
37127895_c0
37127895
prolog
0
Title: Using Prolog to Parse Grammar Problem title: Using Prolog to Parse Grammar Tags: prolog, parsing, grammar Problem: Using Prolog to Parse Grammar I would like to use Prolog to parse the following grammar: E -> E + T | E - T |T T -> T * F | T / F | F F -> ( E ) | number | letter Here's a test case that should be t...
Using Prolog to Parse Grammar Using Prolog to Parse Grammar prolog parsing grammar Using Prolog Parse Grammar List1 List2 List Using Prolog to Parse Grammar I would like to use Prolog to parse the following grammar: Here's a test case that should be true (My problem is that it is currently coming out as false): i.e. 34...
[ 0.0220947265625, 0.009521484375, 0.0010528564453125, 0.01239013671875, -0.002288818359375, 0.0135498046875, -0.0242919921875, 0.018798828125, 0.00482177734375, -0.0145263671875, 0.00537109375, -0.00799560546875, -0.01708984375, -0.000598907470703125, 0.007110595703125, 0.00668334960937...
[ 345, 1250, 4867, 47, 2392, 184, 48078, 1727, 6953, 502, 366, 122092, 147, 32036, 304, 1884, 4527, 25632, 3034, 7225, 5608, 29568, 2967, 82424, 1810, 98320, 4442, 661, 4633, 997, 876, 81887 ]
[ 0.03570556640625, 0.176513671875, 0.275146484375, 0.04376220703125, 0.1590576171875, 0.0960693359375, 0.140625, 0.120361328125, 0.0694580078125, 0.1622314453125, 0.1602783203125, 0.1573486328125, 0.0982666015625, 0.12158203125, 0.01788330078125, 0.04034423828125, 0.07623291015625, ...
embed
41184422_c0
41184422
prolog
0
Title: How to set domain of pair variable in CSP in Sicstus Prolog Problem title: How to set domain of pair variable in CSP in Sicstus Prolog Tags: prolog, meta-predicate, clpfd Problem: How to set domain of pair variable in CSP in Sicstus Prolog I'm using Sicstus Prolog, and I'm trying to solve the Domino Puzzle. I ha...
How to set domain of pair variable in CSP in Sicstus Prolog How to set domain of pair variable in CSP in Sicstus Prolog prolog meta-predicate clpfd How CSP Sicstus Prolog R1-C1-D1 R2-C2-D2 R15-C15-D15 R15 C15 D15 How to set domain of pair variable in CSP in Sicstus Prolog I'm using Sicstus Prolog, and I'm trying to sol...
[ -0.011474609375, 0.002716064453125, 0.021240234375, -0.0020904541015625, -0.00628662109375, 0.01153564453125, -0.0164794921875, 0.00958251953125, 0.005859375, -0.033447265625, 0.00665283203125, 0.0101318359375, 0.0140380859375, -0.012451171875, -0.0201416015625, -0.00750732421875, 0....
[ 11249, 5423, 77758, 111, 80836, 77336, 23, 313, 9434, 63457, 18253, 1250, 4867, 502, 23550, 19714, 2063, 39557, 71, 627, 20268, 397, 418, 18504, 304, 1837, 86869, 62687, 179277, 5303, 162738, 933, 3642, 11001, 54, 442, 1556, 80854, 7, 129...
[ 0.060943603515625, 0.173828125, 0.2509765625, 0.10089111328125, 0.251953125, 0.274658203125, 0.007415771484375, 0.085205078125, 0.2193603515625, 0.144287109375, 0.2093505859375, 0.1376953125, 0.2032470703125, 0.1292724609375, 0.118896484375, 0.0892333984375, 0.06475830078125, 0.047...
embed
65432492_c0
65432492
prolog
0
Title: Pure Prolog δλ-Calculus Equality Problem title: Pure Prolog δλ-Calculus Equality Tags: prolog, lambda-calculus, logical-purity Problem: Pure Prolog δλ-Calculus Equality It is not so difficult to conceive an appartness relation for Peano numbers. Its even possible to make a reified eq/3 predicate like here . Ques...
Pure Prolog δλ-Calculus Equality Pure Prolog δλ-Calculus Equality prolog lambda-calculus logical-purity Pure Prolog Calculus Equality Pure Prolog δλ-Calculus Equality It is not so difficult to conceive an appartness relation for Peano numbers. Its even possible to make a reified eq/3 predicate like here . Question is n...
[ 0.005126953125, 0.0245361328125, 0.013427734375, 0.00122833251953125, 0.005767822265625, -0.0107421875, 0.007720947265625, -0.005157470703125, 0.00872802734375, -0.0146484375, 0.00823974609375, 0.003997802734375, -0.013671875, 0.017578125, 0.0233154296875, -0.0023956298828125, 0.0032...
[ 118233, 1250, 4867, 15311, 5970, 94553, 94739, 241, 161789, 502, 6492, 85, 6827, 62775, 4717, 212467, 959, 221, 34844, 29024, 5844, 179886, 7432, 41911, 1460, 3922, 101935, 3853, 7722, 456, 47314, 28, 864, 18113, 1653, 2063, 1884, 3688, 681...
[ 0.32275390625, 0.142578125, 0.243408203125, 0.18798828125, 0.115234375, 0.14404296875, 0.16943359375, 0.1171875, 0.2025146484375, 0.0870361328125, 0.1148681640625, 0.040924072265625, 0.129150390625, 0.1673583984375, 0.1866455078125, 0.1922607421875, 0.038848876953125, 0.04370117187...
embed
23578940_c0
23578940
prolog
0
Title: Simple Multiple Choice Problem title: Simple Multiple Choice Tags: prolog, math Problem: Simple Multiple Choice I want to ask about my multiple choice program that I made. I confuse how to store a value continuously, so I can take a conclusion in the end of program, based on sum of the value that already store. ...
Simple Multiple Choice Simple Multiple Choice prolog math Simple Multiple Choice case1 Right Here Question case2 case3 case_default Wrong Simple Multiple Choice I want to ask about my multiple choice program that I made. I confuse how to store a value continuously, so I can take a conclusion in the end of program, base...
[ -0.00408935546875, 0.0181884765625, 0.01300048828125, 0.03125, 0.00225830078125, -0.0003814697265625, 0.000698089599609375, 0.01165771484375, 0.0274658203125, -0.013671875, -0.0031280517578125, 0.011474609375, -0.0115966796875, 0.006927490234375, 0.0206298828125, 0.00933837890625, 0....
[ 60552, 19335, 8705, 181948, 502, 4867, 48909, 7225, 418, 90911, 11853, 68185, 304, 363, 214810, 35133, 3444, 26458, 759, 48716, 44126, 1528, 87, 7228, 55681, 3642, 4343, 34292, 19686, 5646, 10, 93192, 3564, 35509, 10554, 21771, 1884, 8108 ]
[ 0.176025390625, 0.176513671875, 0.1326904296875, 0.208251953125, 0.1158447265625, 0.1953125, 0.1414794921875, 0.1513671875, 0.0255126953125, 0.08331298828125, 0.14453125, 0.1392822265625, 0.0390625, 0.0728759765625, 0.170166015625, 0.100341796875, 0.05072021484375, 0.108642578125, ...
embed
4616484_c0
4616484
prolog
0
Title: Prolog: Building a completely balanced tree Problem title: Prolog: Building a completely balanced tree Tags: prolog Problem: Prolog: Building a completely balanced tree Does anyone know of any simpler ways of building completely balanced trees in Prolog? Here's one solution I've found but I'm wondering if anyone...
Prolog: Building a completely balanced tree Prolog: Building a completely balanced tree prolog given Prolog Building cbal_tree LeftNode RightNode Prolog: Building a completely balanced tree Does anyone know of any simpler ways of building completely balanced trees in Prolog? Here's one solution I've found but I'm wonde...
[ 0.0257568359375, 0.005889892578125, -0.0005950927734375, -0.0213623046875, 0.013427734375, 0.03515625, -0.005645751953125, 0.000499725341796875, 0.0179443359375, -0.031494140625, -0.01141357421875, -0.0257568359375, 0.002471923828125, -0.00250244140625, 0.00946044921875, 0.005432128906...
[ 1250, 4867, 104919, 64557, 40197, 71, 53201, 12, 502, 34475, 3571, 62600, 2480, 5021, 90911, 35672, 3714, 8781, 42, 48322, 33976, 1360, 90, 23, 1632, 29806, 14037, 149016, 93002, 51347, 3293, 28875, 34739, 10176, 27689, 3642, 43240, 22362 ]
[ 0.171630859375, 0.263427734375, 0.1153564453125, 0.1280517578125, 0.2333984375, 0.114990234375, 0.214599609375, 0.02008056640625, 0.1209716796875, 0.0269012451171875, 0.20703125, 0.232421875, 0.057281494140625, 0.10345458984375, 0.078857421875, 0.0246429443359375, 0.047210693359375, ...
embed
20035609_c0
20035609
prolog
0
Title: How to limit depth of recursion in prolog Problem title: How to limit depth of recursion in prolog Tags: prolog Problem: How to limit depth of recursion in prolog I have a recursion here: located_on(A,B,[move(A,B)|_]). located_on(B,L,[_|S]) :- located_on(B,L,S). When I ask located_on(a,b,X). I get as follows, wh...
How to limit depth of recursion in prolog How to limit depth of recursion in prolog prolog How located_on _G4037 _G4036 _G4040 _G4039 _G4043 _G4042 _G4046 _G4045 _G4049 How to limit depth of recursion in prolog I have a recursion here: When I ask located_on(a,b,X). I get as follows, which is infinite. How can I limit t...
[ 0.004852294921875, 0.016357421875, 0.01165771484375, 0.00732421875, 0.0198974609375, -0.0145263671875, -0.00909423828125, 0.01409912109375, 0.00445556640625, -0.058837890625, 0.005218505859375, -0.01007080078125, -0.0087890625, -0.001922607421875, 0.03564453125, -0.005584716796875, 0...
[ 11249, 17475, 168867, 111, 195625, 1830, 502, 4867, 105866, 191, 724, 2839, 10945, 8659, 9323, 11548, 13023, 9271, 4633, 12977, 23, 3688, 26458, 11, 275, 1542, 28960, 54241, 13, 2046, 94418, 14012, 50339, 1810, 4000, 177261 ]
[ 0.008575439453125, 0.24951171875, 0.239990234375, 0.07598876953125, 0.2120361328125, 0.131591796875, 0.16552734375, 0.2353515625, 0.1942138671875, 0.1842041015625, 0.008941650390625, 0.09515380859375, 0.1201171875, 0.1241455078125, 0.07354736328125, 0.07135009765625, 0.0546875, 0.0...
embed
65748614_c0
65748614
prolog
0
Title: How to write predicate that checks whether for two same X values there are different Y values? Problem title: How to write predicate that checks whether for two same X values there are different Y values? Tags: prolog Problem: How to write predicate that checks whether for two same X values there are different Y...
How to write predicate that checks whether for two same X values there are different Y values? How to write predicate that checks whether for two same X values there are different Y values? prolog How have_different_Y_for_same_X How to write predicate that checks whether for two same X values there are different Y valu...
[ -0.0034942626953125, -0.015625, 0.0089111328125, 0.004638671875, -0.01220703125, 0.007354736328125, 0.0026397705078125, -0.01806640625, 0.00011157989501953125, 0.0250244140625, 0.00567626953125, 0.0439453125, 0.0172119140625, -0.0299072265625, -0.007232666015625, 0.013916015625, -0.0...
[ 11249, 33022, 1653, 2063, 67, 450, 12765, 36766, 100, 6626, 5701, 1193, 142424, 2685, 12921, 990, 47, 621, 502, 4867, 765, 238778, 1723, 2472, 40175, 1542, 1250, 4488, 15824, 5117, 34292, 17932, 83, 54940, 27781, 30646, 29568, 35064, 98320,...
[ 0.075439453125, 0.178466796875, 0.171630859375, 0.2003173828125, 0.1273193359375, 0.00262451171875, 0.187255859375, 0.076171875, 0.06329345703125, 0.1285400390625, 0.1568603515625, 0.1375732421875, 0.1578369140625, 0.035614013671875, 0.1971435546875, 0.21337890625, 0.016143798828125,...
embed
32452350_c1
32452350
prolog
1
it results in No permission to modify static procedure '(;)/2' . Side-note: after declaring the disjunctive fact, the result of ?- foo(a). would be a bit unclear to me from a logical perspective; it is clearly not true , but false does not cover it either -- Prolog simply does not have sufficient information to answer...
it results in No permission to modify static procedure '(;)/2' . Side-note: after declaring the disjunctive fact, the result of ?- foo(a). would be a bit unclear to me from a logical perspective; it is clearly not true , but false does not cover it either -- Prolog simply does not have sufficient information to answer...
[ 0.0111083984375, 0.0026702880859375, 0.017822265625, 0.0174560546875, -0.01348876953125, 0.0164794921875, -0.009765625, -0.005859375, 0.005615234375, -0.010986328125, -0.01275634765625, 0.024169921875, -0.0172119140625, 0.007049560546875, -0.00408935546875, -0.01611328125, 0.01782226...
[ 442, 50339, 438, 168081, 47, 2811, 40383, 201939, 50491, 74, 12477, 5, 8, 18347, 2852, 2837, 461, 8766, 4935, 15824, 16750, 705, 9, 5775, 31, 132, 11, 194, 119488, 62775, 80280, 123019, 959, 29568, 98320, 29256, 1250, 4867, 129980, 4677, ...
[ 0.103759765625, 0.11962890625, 0.09454345703125, 0.249755859375, 0.02880859375, 0.180419921875, 0.1573486328125, 0.220458984375, 0.2060546875, 0.09625244140625, 0.2325439453125, 0.0333251953125, 0.0285797119140625, 0.095947265625, 0.033203125, 0.1046142578125, 0.181396484375, 0.101...
embed
38580501_c0
38580501
prolog
0
Title: Prolog: If a float is input, output prints out error Problem title: Prolog: If a float is input, output prints out error Tags: prolog Problem: Prolog: If a float is input, output prints out error I'm new to SWI-prolog and I'm having trouble with my code. I want it to determine if the input is a multiple of 5 and...
Prolog: If a float is input, output prints out error Prolog: If a float is input, output prints out error prolog Prolog MultOf5 Other ERROR Singleton Type Prolog: If a float is input, output prints out error I'm new to SWI-prolog and I'm having trouble with my code. I want it to determine if the input is a multiple of ...
[ -0.0225830078125, 0.012451171875, 0.01385498046875, -0.01361083984375, 0.01318359375, 0.0194091796875, 0.005859375, -0.00335693359375, -0.000278472900390625, -0.015380859375, -0.007354736328125, -0.06103515625, 0.017333984375, 0.005859375, 0.002716064453125, 0.00469970703125, 0.00781...
[ 1250, 4867, 4263, 21917, 257, 83, 107730, 140992, 28412, 1810, 18499, 10, 502, 81212, 132887, 758, 151206, 24638, 43609, 1507, 60457, 159, 38969, 3454, 63134, 18151, 3444, 83324, 2174, 48716, 111, 190, 959, 3853, 14012, 892, 1505, 26008, 20...
[ 0.1346435546875, 0.2276611328125, 0.1214599609375, 0.218017578125, 0.1485595703125, 0.08843994140625, 0.2305908203125, 0.2314453125, 0.1751708984375, 0.1279296875, 0.230224609375, 0.022125244140625, 0.1014404296875, 0.1165771484375, 0.152099609375, 0.14208984375, 0.1080322265625, 0...
embed
31219303_c0
31219303
prolog
0
Title: can anyone tell me what is wrong with my prolog code? Problem title: can anyone tell me what is wrong with my prolog code? Tags: list, prolog Problem: can anyone tell me what is wrong with my prolog code? Basically, I want to convert two lists each into a number then add the resulting numbers and output a list r...
can anyone tell me what is wrong with my prolog code? can anyone tell me what is wrong with my prolog code? list prolog Num1 List can anyone tell me what is wrong with my prolog code? Basically, I want to convert two lists each into a number then add the resulting numbers and output a list representing the digits. Like...
[ 0.016357421875, 0.00408935546875, 0.0137939453125, 0.0191650390625, -0.0322265625, 0.035888671875, -0.0155029296875, -0.00171661376953125, 0.01153564453125, -0.007537841796875, 0.005401611328125, -0.0142822265625, -0.01470947265625, 0.01446533203125, 0.01336669921875, -0.0220947265625,...
[ 831, 35672, 14192, 2367, 83, 44691, 678, 759, 502, 4867, 18151, 5303, 52782, 418, 32036, 3444, 96760, 6626, 12638, 3934, 14012, 15190, 16750, 101935, 140992, 33636, 153939, 304, 90173, 363, 96386, 1542, 1193, 71928, 125592, 106745, 117176, 47...
[ 0.013458251953125, 0.02691650390625, 0.0711669921875, 0.055694580078125, 0.1529541015625, 0.1873779296875, 0.068115234375, 0.041015625, 0.1846923828125, 0.2305908203125, 0.2161865234375, 0.22900390625, 0.1822509765625, 0.117431640625, 0.1939697265625, 0.0723876953125, 0.1585693359375...
embed
33920611_c0
33920611
prolog
0
Title: Is there a way to write a length/1 predicate using write/1 to print result? Problem title: Is there a way to write a length/1 predicate using write/1 to print result? Tags: prolog-toplevel, prolog, list Problem: Is there a way to write a length/1 predicate using write/1 to print result? I have an assigment for s...
Is there a way to write a length/1 predicate using write/1 to print result? Is there a way to write a length/1 predicate using write/1 to print result? prolog-toplevel prolog list write/1 Is there a way to write a length/1 predicate using write/1 to print result? I have an assigment for school, started learning Prolog ...
[ -0.005859375, 0.033203125, 0.005828857421875, 0.002044677734375, -0.01458740234375, 0.007720947265625, 0.007781982421875, 0.009765625, -0.0089111328125, -0.039306640625, -0.00274658203125, -0.0186767578125, 0.016845703125, 0.01513671875, 0.003326416015625, 0.00157928466796875, 0.0163...
[ 2071, 2685, 10, 3917, 33022, 140909, 11583, 1653, 2063, 67, 17368, 28412, 16750, 47, 502, 4867, 13784, 67919, 5303, 20561, 100, 10696, 52080, 1250, 81979, 80560, 2472, 6183, 110, 29786, 28282, 14602, 903, 18151, 765, 117914, 15504, 30745, 4...
[ 0.01031494140625, 0.03875732421875, 0.041534423828125, 0.106689453125, 0.247314453125, 0.214111328125, 0.227294921875, 0.1785888671875, 0.2232666015625, 0.10015869140625, 0.08282470703125, 0.2098388671875, 0.198974609375, 0.0243988037109375, 0.1102294921875, 0.209228515625, 0.0781860...
embed
47382614_c0
47382614
prolog
0
Title: prolog list insert at any position Problem title: prolog list insert at any position Tags: failure-slice, insert, list, prolog Problem: prolog list insert at any position New to Prolog, trying to write a predicate to give all the options that an element could be inserted in to a list at any position. Ex: ins(a, ...
prolog list insert at any position prolog list insert at any position failure-slice insert list prolog List prolog list insert at any position New to Prolog, trying to write a predicate to give all the options that an element could be inserted in to a list at any position. Ex: ins(a, [b,c], R). should give: which it do...
[ -0.0031280517578125, 0.00787353515625, 0.018798828125, 0.007232666015625, -0.0220947265625, 0.01397705078125, -0.0203857421875, -0.01220703125, 0.01507568359375, -0.0311279296875, 0.0194091796875, -0.01611328125, -0.00860595703125, 0.00041961669921875, 0.01397705078125, 0.031982421875,...
[ 502, 4867, 5303, 183540, 99, 2499, 19069, 137578, 13348, 32036, 1250, 31577, 33022, 1653, 2063, 8337, 756, 50717, 12830, 5809, 23, 7, 11, 275, 238, 627, 3129, 14602, 76199, 18499, 79858, 111, 13453, 177261, 3917, 3249, 1286, 72694, 48242, ...
[ 0.1719970703125, 0.2626953125, 0.20166015625, 0.26123046875, 0.0762939453125, 0.1365966796875, 0.224609375, 0.223388671875, 0.1197509765625, 0.1455078125, 0.1737060546875, 0.05694580078125, 0.1077880859375, 0.1591796875, 0.19970703125, 0.09521484375, 0.06414794921875, 0.19384765625...
embed
72959807_c0
72959807
prolog
0
Title: Different ways of computing list length in Prolog Problem title: Different ways of computing list length in Prolog Tags: clp, clpfd, clpz, prolog Problem: Different ways of computing list length in Prolog Here are 4 different ways of computing list length in Prolog: :- use_module(library(clpz)). list_length2(A, ...
Different ways of computing list length in Prolog Different ways of computing list length in Prolog clp clpfd clpz prolog Different Prolog use_module list_length1 list_length2 list_length3 list_length4 Different ways of computing list length in Prolog Here are 4 different ways of computing list length in Prolog: list_l...
[ -0.0208740234375, 0.021484375, 0.0091552734375, 0.022705078125, 0.000583648681640625, -0.0169677734375, -0.00152587890625, 0.0126953125, 0.0184326171875, -0.0281982421875, -0.00146484375, -0.015380859375, 0.01171875, 0.0223388671875, 0.01220703125, 0.00058746337890625, 0.012573242187...
[ 242520, 48322, 242122, 5303, 140909, 23, 1250, 4867, 33139, 254, 71, 169, 502, 4527, 83279, 23986, 927, 418, 304, 363, 617, 201, 12921, 111, 140363, 80560, 2472, 43240, 756, 48225, 9077, 4127, 100, 75935, 60223, 4568, 11782, 15572, 1632, ...
[ 0.1356201171875, 0.1385498046875, 0.2034912109375, 0.25439453125, 0.244873046875, 0.06005859375, 0.175048828125, 0.25341796875, 0.00482177734375, 0.0941162109375, 0.03271484375, 0.04339599609375, 0.075927734375, 0.088134765625, 0.1357421875, 0.13134765625, 0.0626220703125, 0.059112...
embed
10857202_c0
10857202
prolog
0
Title: Prolog insert, modify and delete facts on a separated database text file Problem title: Prolog insert, modify and delete facts on a separated database text file Tags: prolog, database Problem: Prolog insert, modify and delete facts on a separated database text file I have a prolog database file with lots of fact...
Prolog insert, modify and delete facts on a separated database text file Prolog insert, modify and delete facts on a separated database text file prolog database Prolog knowledge.pl father_of mother_of Prolog insert, modify and delete facts on a separated database text file I have a prolog database file with lots of fa...
[ 0.035888671875, 0.0015411376953125, 0.006439208984375, 0.01177978515625, -0.010009765625, -0.00183868408203125, -0.00927734375, -0.006317138671875, 0.01348876953125, -0.0306396484375, 0.006561279296875, 0.0133056640625, -0.0206298828125, -0.01318359375, 0.0274658203125, -0.005065917968...
[ 1250, 4867, 183540, 2811, 40383, 136, 154109, 15824, 7, 98, 84797, 71, 63399, 7986, 11435, 502, 51359, 2424, 67373, 4390, 42732, 71358, 147008, 147834, 11583, 11907, 1733, 1528, 71924, 13438, 2806, 1884, 19048, 47, 3444, 43452, 105237, 23356,...
[ 0.1876220703125, 0.274169921875, 0.2415771484375, 0.15673828125, 0.143310546875, 0.04937744140625, 0.2340087890625, 0.2149658203125, 0.0970458984375, 0.048065185546875, 0.186279296875, 0.08770751953125, 0.199951171875, 0.1317138671875, 0.1859130859375, 0.157470703125, 0.22119140625, ...
embed
4684889_c0
4684889
prolog
0
Title: Get repeat answers when comparing facts in prolog Problem title: Get repeat answers when comparing facts in prolog Tags: prolog, recursion, logic Problem: Get repeat answers when comparing facts in prolog Working with SWI-Prolog. I have a list of ranks say: rank(London, 3.5). rank(New York, 3.5). rank(Seattle, 2...
Get repeat answers when comparing facts in prolog Get repeat answers when comparing facts in prolog prolog recursion logic Get London York Seattle equal_rank Get repeat answers when comparing facts in prolog Working with SWI-Prolog. I have a list of ranks say: And I am trying to get my head around making a rule that pr...
[ 0.0034027099609375, -0.0037689208984375, 0.013916015625, 0.0079345703125, -0.0126953125, -0.0179443359375, 0.00958251953125, -0.0062255859375, 0.011962890625, -0.0264892578125, 0.018310546875, 0.00543212890625, 0.01092529296875, -0.0198974609375, -0.0133056640625, 0.0118408203125, -0...
[ 20779, 119140, 35166, 7, 37397, 214, 15824, 23, 502, 4867, 195625, 1830, 62775, 9020, 5753, 149493, 105950, 36467, 159, 38969, 10752, 5303, 30648, 10336, 79986, 28412, 65395, 678, 5701, 4420, 619, 2356, 2967, 171763, 1636, 2046, 10422, 43581,...
[ 0.06085205078125, 0.27490234375, 0.185791015625, 0.07708740234375, 0.1585693359375, 0.033782958984375, 0.15966796875, 0.0205535888671875, 0.130126953125, 0.205810546875, 0.1961669921875, 0.111328125, 0.13818359375, 0.18017578125, 0.1845703125, 0.2174072265625, 0.0928955078125, 0.18...
embed
46940406_c0
46940406
prolog
0
Title: Calculate Area Tangent Circumferences - Prolog Problem title: Calculate Area Tangent Circumferences - Prolog Tags: prolog, list, area Problem: Calculate Area Tangent Circumferences - Prolog I have the following function that calculates an area. It receives three parameters, the first is an n representing the num...
Calculate Area Tangent Circumferences - Prolog Calculate Area Tangent Circumferences - Prolog prolog list area Calculate Area Tangent Circumferences Prolog N-1 N1-1 Calculate Area Tangent Circumferences - Prolog I have the following function that calculates an area. It receives three parameters, the first is an n repre...
[ 0.0034332275390625, -0.02294921875, 0.001312255859375, -0.0115966796875, -0.000881195068359375, -0.0184326171875, 0.00518798828125, 0.021728515625, 0.02783203125, -0.00994873046875, 0.010009765625, 0.023193359375, -0.0198974609375, 0.0069580078125, 0.0238037109375, -0.01324462890625, ...
[ 212467, 2182, 79200, 61765, 2517, 79512, 316, 69988, 1250, 4867, 502, 5303, 16128, 541, 5759, 115727, 25632, 32354, 74481, 1636, 53299, 17262, 171859, 5117, 653, 33636, 14012, 50218, 5977, 75723, 138, 4216, 96, 68772, 4420, 16750, 2967, 765, ...
[ 0.2025146484375, 0.1099853515625, 0.22265625, 0.2022705078125, 0.1357421875, 0.1070556640625, 0.11474609375, 0.1689453125, 0.128662109375, 0.2071533203125, 0.0928955078125, 0.1220703125, 0.2239990234375, 0.0382080078125, 0.1112060546875, 0.12109375, 0.04754638671875, 0.172119140625...
embed
60849233_c0
60849233
prolog
0
Title: prolog royal family grandfather/2 and grandmother/2 Problem title: prolog royal family grandfather/2 and grandmother/2 Tags: prolog Problem: prolog royal family grandfather/2 and grandmother/2 I am doing a prolog question and need to make a single predicate (a rule) for grandfather/2 and grandmother/2 that uses ...
prolog royal family grandfather/2 and grandmother/2 prolog royal family grandfather/2 and grandmother/2 prolog prolog royal family grandfather/2 and grandmother/2 I am doing a prolog question and need to make a single predicate (a rule) for grandfather/2 and grandmother/2 that uses the pre-existing father/2 mother/2 fa...
[ 0.00994873046875, 0.01513671875, 0.0025177001953125, 0.01068115234375, -0.01214599609375, 0.0291748046875, -0.00823974609375, 0.0155029296875, 0.0152587890625, -0.043212890625, 0.01123046875, -0.0191650390625, -0.010009765625, -0.0157470703125, 0.0133056640625, -0.0020599365234375, -...
[ 502, 4867, 121678, 14449, 9963, 1021, 9319, 12477, 136, 432, 20594, 9655, 3871, 3249, 11001, 1653, 2063, 67, 11, 79986, 100, 4527, 479, 54376, 67373, 42732, 15824, 10588, 20697, 27781, 179933, 4785, 4488, 12960, 4358 ]
[ 0.14990234375, 0.2020263671875, 0.1588134765625, 0.1356201171875, 0.1162109375, 0.1549072265625, 0.1092529296875, 0.1751708984375, 0.1046142578125, 0.1337890625, 0.020599365234375, 0.0572509765625, 0.0465087890625, 0.026885986328125, 0.08544921875, 0.101318359375, 0.15966796875, 0....
embed
62130357_c0
62130357
prolog
0
Title: Sum, Average of elements and Count the occurence of elements in Lists in Prolog Problem title: Sum, Average of elements and Count the occurence of elements in Lists in Prolog Tags: sum, prolog, count, average Problem: Sum, Average of elements and Count the occurence of elements in Lists in Prolog how can I write...
Sum, Average of elements and Count the occurence of elements in Lists in Prolog Sum, Average of elements and Count the occurence of elements in Lists in Prolog sum prolog count average Sum Average Count Lists Prolog Sum, Average of elements and Count the occurence of elements in Lists in Prolog how can I write three pr...
[ 0.0152587890625, -0.00897216796875, 0.01324462890625, 0.0166015625, -0.0128173828125, 0.02685546875, 0.018310546875, 0.00439453125, 0.021484375, -0.0146484375, -0.00823974609375, -0.03271484375, 0.0029296875, 0.002044677734375, 0.01153564453125, 0.01177978515625, 0.0235595703125, 0...
[ 36335, 40168, 29838, 111, 80854, 108210, 74918, 6620, 32036, 1250, 4867, 10554, 502, 54529, 83080, 3642, 831, 33022, 17262, 1653, 2063, 1636, 23, 54, 8966, 64552, 1542, 541, 67, 29568, 892, 26255, 5303, 1193, 185, 177, 74481, 8962, 756, 1...
[ 0.2117919921875, 0.1968994140625, 0.1082763671875, 0.011199951171875, 0.1904296875, 0.190673828125, 0.143798828125, 0.0362548828125, 0.1689453125, 0.18505859375, 0.2413330078125, 0.2315673828125, 0.1328125, 0.2041015625, 0.2239990234375, 0.0160675048828125, 0.016265869140625, 0.135...
embed
72791160_c0
72791160
prolog
0
Title: Improving Prolog Program with Red Cuts Problem title: Improving Prolog Program with Red Cuts Tags: prolog Problem: Improving Prolog Program with Red Cuts I wrote a Prolog program that calculates the price of a hotel room based on season and type of room. Can this program be improved by using red cuts? season(Mon...
Improving Prolog Program with Red Cuts Improving Prolog Program with Red Cuts prolog Improving Prolog Program Red Cuts Month Season room_price Type Price BasicPrice Improving Prolog Program with Red Cuts I wrote a Prolog program that calculates the price of a hotel room based on season and type of room. Can this progra...
[ 0.00543212890625, 0.004150390625, 0.034912109375, 0.0108642578125, -0.0029144287109375, 0.00994873046875, -0.040283203125, 0.00872802734375, 0.00579833984375, 0.01507568359375, 0.000621795654296875, 0.004547119140625, -0.005279541015625, -0.0244140625, 0.006134033203125, 0.007263183593...
[ 3370, 70628, 1250, 4867, 7663, 678, 6096, 3003, 933, 214, 502, 12982, 85135, 17155, 5293, 60457, 48025, 91692, 33163, 54397, 1528, 74481, 27167, 3018, 35509, 34003, 10644, 4171, 52295, 17368, 4842, 314 ]
[ 0.032958984375, 0.1546630859375, 0.1514892578125, 0.2391357421875, 0.1790771484375, 0.069091796875, 0.20263671875, 0.225341796875, 0.1480712890625, 0.01092529296875, 0.118896484375, 0.0689697265625, 0.1585693359375, 0.1724853515625, 0.08447265625, 0.1534423828125, 0.1351318359375, ...
embed
13903743_c0
13903743
prolog
0
Title: appending strings to lists in prolog Problem title: appending strings to lists in prolog Tags: list, gnu-prolog, prolog Problem: appending strings to lists in prolog i'm a new on Prolog, and i'm already having some problems to understand, the thing is, i was making a test on appending some strings introduced by ...
appending strings to lists in prolog appending strings to lists in prolog list gnu-prolog prolog append_str Adder Head Tail Result sread_str sinput_str Lista List appending strings to lists in prolog i'm a new on Prolog, and i'm already having some problems to understand, the thing is, i was making a test on appending ...
[ 0.00592041015625, 0.0133056640625, 0.000919342041015625, 0.01348876953125, 0.007080078125, -0.000659942626953125, 0.0103759765625, 0.01416015625, 0.01348876953125, -0.01446533203125, 0.0262451171875, -0.0286865234375, -0.017822265625, -0.00138092041015625, 0.01287841796875, -0.01623535...
[ 1747, 96819, 79315, 47, 5303, 7, 502, 4867, 104155, 3454, 114689, 9297, 29117, 56, 44816, 1218, 379, 126684, 39116, 880, 7077, 50085, 32036, 1250, 28219, 3034, 65508, 130250, 11343, 140992, 14012, 1660, 100, 3564, 113292, 1286, 142424, 44691 ...
[ 0.1048583984375, 0.0931396484375, 0.2403564453125, 0.09033203125, 0.1859130859375, 0.028167724609375, 0.1451416015625, 0.208740234375, 0.13037109375, 0.12255859375, 0.128662109375, 0.141357421875, 0.07958984375, 0.066650390625, 0.1153564453125, 0.0748291015625, 0.0396728515625, 0.1...
embed
61462914_c0
61462914
prolog
0
Title: Type Error when assiging string to variable in Prolog Problem title: Type Error when assiging string to variable in Prolog Tags: prolog Problem: Type Error when assiging string to variable in Prolog I am running the following command and receiving the following error: | ?- list('A', List). uncaught exception: er...
Type Error when assiging string to variable in Prolog Type Error when assiging string to variable in Prolog prolog Type Error Prolog List type_error First Last Grade StudentType Exam1 Exam2 Exam3 Type Error when assiging string to variable in Prolog I am running the following command and receiving the following error: ...
[ 0.026123046875, -0.00014400482177734375, -0.005706787109375, 0.024169921875, -0.009521484375, 0.00701904296875, -0.0101318359375, -0.001007080078125, 0.00653076171875, 0.01483154296875, 0.0008087158203125, 0.00037384033203125, 0.01336669921875, -0.00927734375, -0.0196533203125, -0.0002...
[ 60457, 212059, 237, 172, 9966, 79315, 47, 77336, 1250, 4867, 502, 32036, 10644, 188800, 23972, 21672, 22453, 26696, 196707, 89536, 363, 51042, 25632, 75101, 217063, 18499, 1653, 2063, 18822, 38162, 1295, 54, 37878, 112, 83, 284, 44691, 11435,...
[ 0.24560546875, 0.1910400390625, 0.07452392578125, 0.141845703125, 0.0877685546875, 0.1990966796875, 0.114013671875, 0.21484375, 0.150390625, 0.2291259765625, 0.1197509765625, 0.1239013671875, 0.2049560546875, 0.1776123046875, 0.0062255859375, 0.049591064453125, 0.0765380859375, 0.0...
embed
26719064_c0
26719064
prolog
0
Title: Prolog recursive list of lists Problem title: Prolog recursive list of lists Tags: recursion, prolog, list, sorting Problem: Prolog recursive list of lists Right now I am stuck trying to define a predicate ascending/1 that takes a list of lists and determines if the lists are sorted within the list of lists in i...
Prolog recursive list of lists Prolog recursive list of lists recursion prolog list sorting Prolog Prolog recursive list of lists Right now I am stuck trying to define a predicate ascending/1 that takes a list of lists and determines if the lists are sorted within the list of lists in increasing size. I made a helper p...
[ 0.00506591796875, 0.007354736328125, 0.01495361328125, 0.00616455078125, -0.02001953125, 0.03759765625, -0.00830078125, -0.01385498046875, 0.0031890869140625, 0.0084228515625, 0.01458740234375, -0.00408935546875, -0.00665283203125, -0.010498046875, 0.025146484375, -0.01080322265625, ...
[ 1250, 4867, 195625, 5844, 5303, 1830, 502, 12096, 179933, 31577, 61924, 1653, 2063, 67, 82800, 214, 11583, 51776, 83324, 17497, 28032, 118055, 13267, 4358, 56, 164917, 12477, 23, 116, 62, 136, 335, 25, 214493, 40715, 105950, 140909, 35782, ...
[ 0.15576171875, 0.2110595703125, 0.2125244140625, 0.1319580078125, 0.2056884765625, 0.045013427734375, 0.1446533203125, 0.169189453125, 0.0882568359375, 0.03302001953125, 0.1331787109375, 0.1514892578125, 0.1903076171875, 0.05609130859375, 0.1566162109375, 0.0814208984375, 0.113769531...
embed
53807708_c0
53807708
prolog
0
Title: Prolog: put recursive predicates into Variable Problem title: Prolog: put recursive predicates into Variable Tags: prolog, list Problem: Prolog: put recursive predicates into Variable I'm beginner in prolog and I need to resolve the following exercise: Write a 3-predicate prereqchain(P,Q,L) that, given two cours...
Prolog: put recursive predicates into Variable Prolog: put recursive predicates into Variable prolog list Prolog Variable comp085 itec450 comp101 comp281 Prolog: put recursive predicates into Variable I'm beginner in prolog and I need to resolve the following exercise: Write a 3-predicate prereqchain(P,Q,L) that, given...
[ 0.00732421875, 0.001434326171875, -0.0012969970703125, 0.03173828125, -0.005218505859375, 0.034423828125, 0.000537872314453125, 0.011474609375, 0.007049560546875, -0.0478515625, 0.00555419921875, 0.01483154296875, -0.01507568359375, -0.00823974609375, 0.0027618408203125, 0.01416015625,...
[ 1250, 4867, 3884, 195625, 5844, 1653, 2063, 1636, 3934, 84572, 2886, 502, 5303, 9969, 8318, 758, 14656, 60450, 35046, 3882, 9842, 1679, 103608, 81979, 18781, 5691, 19714, 67, 479, 107, 864, 115097, 683, 2737, 866, 34475, 6626, 132073, 436, ...
[ 0.1573486328125, 0.240966796875, 0.09515380859375, 0.2259521484375, 0.15185546875, 0.1907958984375, 0.212646484375, 0.1029052734375, 0.1226806640625, 0.1790771484375, 0.1600341796875, 0.1217041015625, 0.1201171875, 0.0859375, 0.08209228515625, 0.1019287109375, 0.104736328125, 0.177...
embed
55133145_c0
55133145
prolog
0
Title: Remove duplicate from a list but not returning two same results in SWI-Prolog? Problem title: Remove duplicate from a list but not returning two same results in SWI-Prolog? Tags: duplicates, prolog, list Problem: Remove duplicate from a list but not returning two same results in SWI-Prolog? duplicate([],[]). dup...
Remove duplicate from a list but not returning two same results in SWI-Prolog? Remove duplicate from a list but not returning two same results in SWI-Prolog? duplicates prolog list a Remove SWI-Prolog List Remove duplicate from a list but not returning two same results in SWI-Prolog? I wrote this predicate to remove du...
[ 0.007476806640625, 0.037841796875, 0.01904296875, -0.000705718994140625, -0.0038604736328125, -0.0020751953125, 0.00341796875, 0.023193359375, 0.004180908203125, -0.023193359375, -0.0208740234375, -0.00018215179443359375, 0.001251220703125, 0.01385498046875, -0.00341796875, 0.023071289...
[ 181139, 171763, 67, 1295, 5303, 1284, 959, 30646, 6626, 5701, 50339, 159, 38969, 10752, 4867, 1636, 502, 32036, 23, 9, 1653, 2063, 87388, 3034, 3917, 1660, 13695, 1632, 16750, 4734, 107003, 4527, 39933, 2811, 4420, 125728, 33938, 59226, 711...
[ 0.15869140625, 0.279052734375, 0.166015625, 0.0850830078125, 0.20849609375, 0.037261962890625, 0.12353515625, 0.1585693359375, 0.1348876953125, 0.1302490234375, 0.1732177734375, 0.092529296875, 0.23828125, 0.1455078125, 0.2022705078125, 0.07122802734375, 0.11767578125, 0.1771240234...
embed
67531493_c0
67531493
prolog
0
Title: SWI-prolog pure logic programming modules fail Problem title: SWI-prolog pure logic programming modules fail Tags: swi-prolog, prolog, module Problem: SWI-prolog pure logic programming modules fail I am working in SWI-Prolog. We have been asked to do some 'pure logic' implementations, and to do so, some modules ...
SWI-prolog pure logic programming modules fail SWI-prolog pure logic programming modules fail swi-prolog prolog module SWI-prolog Arguments SWI-prolog pure logic programming modules fail I am working in SWI-Prolog. We have been asked to do some 'pure logic' implementations, and to do so, some modules have to be added t...
[ 0.00457763671875, 0.033935546875, 0.00860595703125, 0.0166015625, -0.01275634765625, 0.0220947265625, 0.01324462890625, -0.020263671875, -0.0047607421875, -0.0322265625, 0.015380859375, -0.0159912109375, -0.0142822265625, -0.01055908203125, 0.02880859375, 0.0030670166015625, 0.020263...
[ 159, 38969, 3454, 4867, 34166, 62775, 56037, 88996, 35782, 2452, 502, 112140, 20697, 10752, 4717, 13, 208124, 49814, 18151, 6226, 71924, 454, 1065, 43240, 5885, 15490, 15190, 86595, 959, 129980, 34648, 14, 154107, 201505, 11435, 18499, 2967, ...
[ 0.039093017578125, 0.1988525390625, 0.1263427734375, 0.1591796875, 0.1558837890625, 0.178955078125, 0.107666015625, 0.199462890625, 0.1807861328125, 0.1693115234375, 0.1328125, 0.26220703125, 0.003631591796875, 0.0994873046875, 0.115234375, 0.004150390625, 0.034881591796875, 0.0744...
embed
1736589_c0
1736589
prolog
0
Title: Prolog IntList definition Problem title: Prolog IntList definition Tags: list, prolog Problem: Prolog IntList definition hill(+IntList) succeeds if IntList consists of monotonically increasing >integers followed by monotonically decreasing integers. For example, >[1,2,5,8,11,6,3,-1] is a hill, but [1,2,5,8,11,6,...
Prolog IntList definition Prolog IntList definition list prolog Prolog IntList List Tail Prolog IntList definition This is what I have done so far: But this doesn't work. The logic is: A list of numbers is hill IF it is increasing and then decreasing . How do I say that? This code does increasing and decreasing , but n...
[ -0.0023193359375, 0.006072998046875, 0.004302978515625, 0.0025177001953125, -0.0216064453125, 0.009765625, -0.0155029296875, -0.020263671875, -0.0098876953125, -0.01116943359375, 0.027099609375, 0.004608154296875, -0.017822265625, 0.0294189453125, 0.0186767578125, 0.01055908203125, 0...
[ 1250, 4867, 360, 18, 154663, 80934, 5303, 502, 32036, 1218, 379, 2060, 22027, 4488, 62775, 111, 101935, 83, 130473, 55449, 442, 118055, 7068, 8, 7612, 162, 214, 5154, 18151, 1284, 110, 831 ]
[ 0.16943359375, 0.2822265625, 0.1138916015625, 0.11083984375, 0.25439453125, 0.1575927734375, 0.2177734375, 0.1114501953125, 0.139892578125, 0.10345458984375, 0.144775390625, 0.0251007080078125, 0.02178955078125, 0.0909423828125, 0.1826171875, 0.0709228515625, 0.1776123046875, 0.108...
embed
50191772_c0
50191772
prolog
0
Title: Return List which element belongs to up until the element position Problem title: Return List which element belongs to up until the element position Tags: prolog, list Problem: Return List which element belongs to up until the element position I wanna build a predicate that given a List of lists and a Element wi...
Return List which element belongs to up until the element position Return List which element belongs to up until the element position prolog list List Element ReturnList get_list Rest Return List which element belongs to up until the element position I wanna build a predicate that given a List of lists and a Element wi...
[ -0.008544921875, 0.0242919921875, 0.0021820068359375, -0.0025787353515625, -0.02880859375, 0.01446533203125, 0.01031494140625, 0.00457763671875, 0.01177978515625, -0.0174560546875, 0.0155029296875, 0.005035400390625, -0.000614166259765625, 0.0048828125, 0.004608154296875, -0.0004959106...
[ 173340, 32036, 3129, 12830, 186, 10617, 47, 1257, 24189, 19069, 502, 4867, 5303, 48325, 154663, 2046, 6562, 49756, 6165, 45367, 1653, 2063, 67, 34475, 176866, 1193, 12765, 2174, 2499, 46132, 5201, 30646, 237, 80854, 7440, 14037, 7, 31577, 2...
[ 0.251220703125, 0.2275390625, 0.0211639404296875, 0.205810546875, 0.034271240234375, 0.18212890625, 0.1385498046875, 0.1319580078125, 0.1956787109375, 0.1917724609375, 0.105224609375, 0.1749267578125, 0.149169921875, 0.1490478515625, 0.2337646484375, 0.02783203125, 0.1552734375, 0....
embed
56331911_c0
56331911
prolog
0
Title: Prolog - make list Problem title: Prolog - make list Tags: list, prolog Problem: Prolog - make list Given the argument makelist(A,N,K,M,L) :- , should expand ,and it should return true if A,N,K,M,L>0 Integer numbers with M>=2 and L list : [A^N mod M , A^(N+1) mod M , A^(N+2) mod M , ... , A*(N+K) mod M] Expected...
Prolog - make list Prolog - make list list prolog Prolog Prolog - make list Given the argument makelist(A,N,K,M,L) :- , should expand ,and it should return true if A,N,K,M,L>0 Integer numbers with M>=2 and L list : Expected results : i thought a starting would be implementing the K element of exponent (N+K) by taking t...
[ 0.0223388671875, 0.0113525390625, 0.0037841796875, -0.0031585693359375, 0.0164794921875, 0.0113525390625, -0.01141357421875, 0.0150146484375, 0.0103759765625, -0.00173187255859375, 0.0034027099609375, -0.009521484375, 0.00174713134765625, 0.0118408203125, -0.006744384765625, -0.0075073...
[ 1250, 4867, 3249, 5303, 502, 10750, 6562, 284, 839, 605, 594, 866, 5608, 71062, 30646, 29568, 2174, 62, 2740, 2389, 44401, 101935, 276, 55257, 339, 60075, 13, 50339, 17569, 72134, 29479, 341, 12830, 111, 1119, 54137, 1328, 35971, 1295, 75...
[ 0.1334228515625, 0.2412109375, 0.1651611328125, 0.2340087890625, 0.088623046875, 0.21875, 0.266357421875, 0.0870361328125, 0.1163330078125, 0.157470703125, 0.11279296875, 0.128662109375, 0.0654296875, 0.249755859375, 0.1324462890625, 0.17529296875, 0.047149658203125, 0.087341308593...
embed