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
68720761_c0
68720761
prolog
0
Title: Replicating findall in Prolog Problem title: Replicating findall in Prolog Tags: prolog Problem: Replicating findall in Prolog I'm attempting to have some code that will return a single list of positions/indices where elements are found in some base list. After much searching, copying, tweaking, etc. The followi...
Replicating findall in Prolog Replicating findall in Prolog prolog Replicating Prolog Replicating findall in Prolog I'm attempting to have some code that will return a single list of positions/indices where elements are found in some base list. After much searching, copying, tweaking, etc. The following code is what I ...
[ -0.0130615234375, 0.01251220703125, -0.002532958984375, 0.019287109375, -0.022705078125, 0.0238037109375, -0.004364013671875, 0.0084228515625, 0.0098876953125, -0.037109375, 0.00133514404296875, -0.008544921875, -0.003936767578125, 0.009033203125, -0.006072998046875, 0.00335693359375, ...
[ 853, 52721, 1916, 7413, 5584, 1250, 4867, 23, 502, 81887, 18151, 30646, 11001, 5303, 19069, 19904, 5170, 7440, 80854, 14037, 3647, 157318, 25632, 2060, 43240, 61595, 79909, 144570, 5962, 11737, 40368, 20028, 77681, 2046, 756, 33938, 297, 100,...
[ 0.07550048828125, 0.215576171875, 0.0693359375, 0.171142578125, 0.2117919921875, 0.1556396484375, 0.2509765625, 0.033294677734375, 0.10400390625, 0.033660888671875, 0.129638671875, 0.117431640625, 0.1190185546875, 0.1480712890625, 0.1591796875, 0.0909423828125, 0.041961669921875, 0...
embed
27788739_c0
27788739
prolog
0
Title: Binary to decimal - prolog Problem title: Binary to decimal - prolog Tags: clpfd, prolog, decimal, binary Problem: Binary to decimal - prolog I found this on stack: reversible "binary to number" predicate But I don't understand :- use_module(library(clpfd)). binary_number(Bs0, N) :- reverse(Bs0, Bs), binary_numb...
Binary to decimal - prolog Binary to decimal - prolog clpfd prolog decimal binary Binary use_module binary_number Bs0 Binary to decimal - prolog I found this on stack: reversible "binary to number" predicate But I don't understand Example queries: Could somebody explain me the code Especialy this : binary_number([], _,...
[ -0.0023956298828125, 0.01495361328125, 0.00445556640625, 0.0211181640625, 0.0033111572265625, 0.0211181640625, 0.00823974609375, -0.0022735595703125, 0.013916015625, -0.03515625, -0.02392578125, -0.0234375, -0.01348876953125, 0.0247802734375, 0.01318359375, 0.01263427734375, 0.033691...
[ 54092, 1294, 47, 32380, 2749, 502, 4867, 33139, 39557, 71, 2394, 4527, 83279, 6635, 2606, 1297, 335, 7, 2389, 14037, 903, 177261, 39531, 55356, 19155, 14012, 1653, 2063, 67, 2301, 18, 28219, 89536, 41, 176256, 73342, 163, 18151, 60975, 13...
[ 0.193115234375, 0.1793212890625, 0.1988525390625, 0.173095703125, 0.1605224609375, 0.114501953125, 0.1766357421875, 0.0297088623046875, 0.1044921875, 0.149658203125, 0.190185546875, 0.0594482421875, 0.0889892578125, 0.178466796875, 0.1650390625, 0.154052734375, 0.08038330078125, 0....
embed
7336615_c0
7336615
prolog
0
Title: Prolog frequently used rules and facts Problem title: Prolog frequently used rules and facts Tags: ontology, predicate, prolog Problem: Prolog frequently used rules and facts Is there any standard predicate library for Prolog? I am working on a chat bot which will have common sense. Besides mathematical rules an...
Prolog frequently used rules and facts Prolog frequently used rules and facts ontology predicate prolog Prolog Prolog frequently used rules and facts Is there any standard predicate library for Prolog? I am working on a chat bot which will have common sense. Besides mathematical rules and facts I also need some English...
[ 0.029052734375, 0.01055908203125, 0.004364013671875, -0.01116943359375, -0.0068359375, 0.0174560546875, 0.00384521484375, -0.009033203125, -0.0023345947265625, -0.049560546875, 0.0172119140625, -0.015869140625, -0.00537109375, -0.01513671875, 0.0262451171875, 0.0031280517578125, 0.01...
[ 1250, 4867, 195409, 11814, 91736, 136, 15824, 3283, 25443, 1653, 2063, 502, 2499, 5570, 67, 35773, 1294, 100, 20697, 3245, 13820, 10422, 140363, 3871, 14941, 62822, 2806, 33600, 12447, 21373, 42486, 84797, 44457, 41911, 48909, 51359 ]
[ 0.1656494140625, 0.251953125, 0.1690673828125, 0.135986328125, 0.1900634765625, 0.05126953125, 0.1693115234375, 0.083251953125, 0.1209716796875, 0.17041015625, 0.22021484375, 0.1175537109375, 0.00653076171875, 0.1510009765625, 0.1239013671875, 0.1883544921875, 0.1280517578125, 0.01...
embed
74578054_c0
74578054
prolog
0
Title: How to call a predicate inside a loop in prolog? Problem title: How to call a predicate inside a loop in prolog? Tags: swi-prolog, prolog Problem: How to call a predicate inside a loop in prolog? I am trying to the find the sum of a list of predicates, I have defined function that would find the sum for a list o...
How to call a predicate inside a loop in prolog? How to call a predicate inside a loop in prolog? swi-prolog prolog How list_sum Head Tail TotalSum Sum1 How to call a predicate inside a loop in prolog? I am trying to the find the sum of a list of predicates, I have defined function that would find the sum for a list of...
[ 0.00860595703125, -0.00238037109375, 0.0035552978515625, 0.0133056640625, -0.016845703125, 0.0223388671875, 0.0087890625, 0.0218505859375, 0.01519775390625, -0.052001953125, 0.0179443359375, -0.004486083984375, -0.01397705078125, -0.004150390625, 0.0380859375, 0.00994873046875, 0.025...
[ 11249, 47, 11782, 1653, 2063, 67, 46132, 40956, 23, 502, 4867, 2452, 3454, 5303, 11832, 44816, 1218, 379, 33867, 294, 316, 36335, 418, 31577, 7413, 10554, 1636, 61924, 32354, 101935, 237875, 30646, 14012, 34292, 82424, 892, 26255, 34475, 13...
[ 0.07470703125, 0.035491943359375, 0.2042236328125, 0.2005615234375, 0.2332763671875, 0.1458740234375, 0.158203125, 0.2197265625, 0.04156494140625, 0.15185546875, 0.228271484375, 0.1217041015625, 0.110595703125, 0.13427734375, 0.20654296875, 0.08740234375, 0.05096435546875, 0.083618...
embed
48937374_c0
48937374
prolog
0
Title: CLP: Constraints on structured variables? Problem title: CLP: Constraints on structured variables? Tags: clp, structure, prolog Problem: CLP: Constraints on structured variables? Lets have the following hypothetical scenario ... a grid with 5x5 and let say 3 figures. We want to define constraint on the positions...
CLP: Constraints on structured variables? CLP: Constraints on structured variables? clp structure prolog CLP Constraints Fig1X Fig1Y Fig1 CLP: Constraints on structured variables? Lets have the following hypothetical scenario ... a grid with 5x5 and let say 3 figures. We want to define constraint on the positions. In C...
[ 0.010498046875, -0.0004138946533203125, 0.0137939453125, 0.00897216796875, 0.0040283203125, 0.006591796875, 0.0150146484375, -0.0019683837890625, 0.0074462890625, -0.00616455078125, -0.0164794921875, 0.040283203125, 0.01806640625, -0.005615234375, 0.013916015625, 0.0040283203125, -0....
[ 313, 37352, 1657, 2816, 4288, 98, 45646, 71, 77336, 7, 33139, 254, 502, 4867, 119895, 1542, 1723, 12, 170933, 106117, 120067, 678, 190, 425, 758, 138, 26366, 3444, 61924, 158, 19069, 3638, 892, 26255, 1632, 3917, 84797, 11907, 136, 990, ...
[ 0.06781005859375, 0.265869140625, 0.12353515625, 0.239013671875, 0.19970703125, 0.1239013671875, 0.2451171875, 0.115966796875, 0.261474609375, 0.054473876953125, 0.07452392578125, 0.150634765625, 0.049713134765625, 0.1219482421875, 0.0858154296875, 0.034576416015625, 0.0692138671875,...
embed
66718825_c0
66718825
prolog
0
Title: Prolog - transforming to tail recursion Problem title: Prolog - transforming to tail recursion Tags: prolog, accumulator Problem: Prolog - transforming to tail recursion As a newbie in Prolog, I learned that tail recursion is optimized. Therefore, I am trying to convert the following program to tail-recursive on...
Prolog - transforming to tail recursion Prolog - transforming to tail recursion prolog accumulator Prolog List Sum sum1 Element Accumulator NewAccumulator Prolog - transforming to tail recursion As a newbie in Prolog, I learned that tail recursion is optimized. Therefore, I am trying to convert the following program to...
[ -0.001495361328125, 0.01708984375, 0.026123046875, 0.0177001953125, -0.000415802001953125, 0.01312255859375, -0.0233154296875, 0.00299072265625, 0.01373291015625, -0.023193359375, 0.03515625, -0.01275634765625, -0.015869140625, 0.004913330078125, 0.0169677734375, 0.004638671875, 0.02...
[ 1250, 4867, 27198, 214, 47, 46741, 195625, 1830, 502, 183278, 1290, 32036, 36335, 10554, 418, 48325, 29899, 316, 129073, 2356, 39450, 10591, 3525, 9014, 97384, 15572, 29367, 31577, 96760, 25632, 1528, 9, 107, 48650, 5844, 64333, 37842, 162520...
[ 0.1923828125, 0.26806640625, 0.1881103515625, 0.079345703125, 0.11767578125, 0.2802734375, 0.234375, 0.1029052734375, 0.138427734375, 0.2064208984375, 0.0726318359375, 0.1383056640625, 0.1339111328125, 0.14453125, 0.052490234375, 0.15625, 0.046295166015625, 0.1173095703125, 0.195...
embed
58418729_c0
58418729
prolog
0
Title: Write executes after read Problem title: Write executes after read Tags: prolog, input Problem: Write executes after read I'm making a prolog program to play 'the game of nim', and the program is working fine. I am trying to make a user interface to play the game, where at first, the user has to say he wants the...
Write executes after read Write executes after read prolog input Write List Enter Write executes after read I'm making a prolog program to play 'the game of nim', and the program is working fine. I am trying to make a user interface to play the game, where at first, the user has to say he wants the initial state of the...
[ -0.00885009765625, 0.0107421875, 0.0087890625, 0.0166015625, 0.00157928466796875, 0.0086669921875, 0.0014190673828125, -0.01220703125, -0.007110595703125, -0.002716064453125, 0.01446533203125, 0.014404296875, -0.0120849609375, -0.00128173828125, 0.0086669921875, 0.0020294189453125, 0...
[ 601, 18781, 71924, 90, 7103, 12301, 502, 4867, 107730, 32036, 60816, 20662, 1528, 11301, 6712, 111, 15993, 20697, 5885, 31577, 3249, 38937, 101758, 5117, 1556, 5154, 764, 86171, 61475, 11341, 47, 186, 33306, 3229, 18151, 127887, 93, 58134, ...
[ 0.1422119140625, 0.2281494140625, 0.267578125, 0.15234375, 0.1998291015625, 0.25537109375, 0.1605224609375, 0.2259521484375, 0.205078125, 0.1580810546875, 0.1170654296875, 0.050201416015625, 0.121826171875, 0.08929443359375, 0.110107421875, 0.1650390625, 0.2093505859375, 0.06359863...
embed
77234170_c0
77234170
prolog
0
Title: Running a single non-interactive swi-prolog query Problem title: Running a single non-interactive swi-prolog query Tags: prolog, transitive-closure Problem: Running a single non-interactive swi-prolog query I'm trying to run the following query: edge(1,2). edge(2,3). edge(3,4). connected(X,Y) :- edge(X,Y). conne...
Running a single non-interactive swi-prolog query Running a single non-interactive swi-prolog query prolog transitive-closure Running stand_alone main.pl ERROR Format ERRORs Running a single non-interactive swi-prolog query I'm trying to run the following query: But when I try to compile and run, I get inside an infini...
[ 0.0030364990234375, 0.007568359375, 0.01171875, 0.005096435546875, -0.02099609375, -0.005615234375, 0.001861572265625, 0.004852294921875, 0.0087890625, -0.0625, 0.0098876953125, -0.01220703125, -0.0257568359375, 0.00160980224609375, 0.0223388671875, 0.0093994140625, 0.019775390625, ...
[ 28398, 592, 11001, 351, 10433, 71232, 91, 2452, 3454, 4867, 41, 1294, 502, 62621, 5844, 170224, 9157, 51684, 5201, 2424, 151206, 24638, 60972, 31577, 11675, 25632, 9790, 9969, 1340, 2046, 46132, 54241, 40956, 148641, 15759, 4759, 17678, 96704...
[ 0.1068115234375, 0.0265350341796875, 0.167236328125, 0.1092529296875, 0.072021484375, 0.10205078125, 0.031829833984375, 0.1995849609375, 0.1279296875, 0.21728515625, 0.1419677734375, 0.11669921875, 0.1456298828125, 0.1202392578125, 0.06207275390625, 0.1763916015625, 0.041778564453125...
embed
36768200_c0
36768200
prolog
0
Title: Basic prolog program. I can't find my error Problem title: Basic prolog program. I can't find my error Tags: prolog Problem: Basic prolog program. I can't find my error when i type write(jk,hp). ,it doesn't work , it says "ERROR: write/2: stream `jk' does not exist". i know that am a beginner so what i...
Basic prolog program. I can't find my error Basic prolog program. I can't find my error prolog Basic Basic prolog program. I can't find my error when i type write(jk,hp). ,it doesn't work , it says "ERROR: write/2: stream `jk' does not exist". i know that am a beginner so what is wrong with it? The relationsh...
[ 0.0108642578125, 0.017333984375, -0.0067138671875, 0.0111083984375, -0.0028533935546875, 0.0113525390625, -0.01177978515625, -0.006866455078125, 0.0107421875, -0.019775390625, 0.01019287109375, -0.00372314453125, -0.00665283203125, 0.0036468505859375, 0.0166015625, -0.000640869140625, ...
[ 91692, 502, 4867, 1528, 831, 3768, 18, 7413, 759, 18499, 10644, 33022, 132, 49622, 4, 127, 254, 22027, 4488, 12501, 14255, 1052, 12477, 12, 75973, 14602, 959, 32316, 3714, 9842, 1679, 44691, 76755, 17721, 42179, 136, 12877, 28960, 7, 284,...
[ 0.1839599609375, 0.193115234375, 0.2489013671875, 0.1749267578125, 0.0791015625, 0.05755615234375, 0.08477783203125, 0.1519775390625, 0.08477783203125, 0.2415771484375, 0.1881103515625, 0.2254638671875, 0.0272369384765625, 0.254638671875, 0.10003662109375, 0.07080078125, 0.1091308593...
embed
20591116_c0
20591116
prolog
0
Title: List in certain range Problem title: List in certain range Tags: prolog Problem: List in certain range I have a predicate that is supposed to form a list from list, taking into a new list only these numbers that are in a certain range. The predicate works, but suppose that I want to get a list not including boun...
List in certain range List in certain range prolog List List in certain range I have a predicate that is supposed to form a list from list, taking into a new list only these numbers that are in a certain range. The predicate works, but suppose that I want to get a list not including bounds. So I change the condition A ...
[ -0.01214599609375, 0.00677490234375, 0.01141357421875, -0.003021240234375, -0.00762939453125, 0.0208740234375, -0.005615234375, 0.024658203125, 0.01068115234375, 0.02001953125, 0.0184326171875, -0.0025787353515625, -0.02001953125, 0.0113525390625, 0.029541015625, 0.0213623046875, 0.0...
[ 32036, 23, 24233, 37457, 502, 4867, 1653, 2063, 67, 134598, 3173, 5303, 1295, 3934, 3525, 4734, 101935, 43240, 139124, 3444, 2046, 959, 26719, 99091, 7, 15549, 35431, 62, 977, 339, 627, 47, 4426, 618, 882, 13, 1250, 140992, 33720, 5809, ...
[ 0.1982421875, 0.121826171875, 0.18994140625, 0.251220703125, 0.150146484375, 0.261962890625, 0.15673828125, 0.1978759765625, 0.10205078125, 0.064208984375, 0.09063720703125, 0.2110595703125, 0.03521728515625, 0.03692626953125, 0.032470703125, 0.046783447265625, 0.1297607421875, 0.0...
embed
68071901_c0
68071901
prolog
0
Title: Prolog cut and fail not working as expected Problem title: Prolog cut and fail not working as expected Tags: swi-prolog, prolog Problem: Prolog cut and fail not working as expected I'm learning prolog and I've come across the "cut and fail" combination, and from my understanding they could be used as guard claus...
Prolog cut and fail not working as expected Prolog cut and fail not working as expected swi-prolog prolog Prolog person1 person2 person3 person4 possible_employee Prolog cut and fail not working as expected I'm learning prolog and I've come across the "cut and fail" combination, and from my understanding they could be ...
[ 0.0208740234375, 0.0419921875, 0.0284423828125, 0.015380859375, -0.0078125, 0.01446533203125, -0.02978515625, 0.00023937225341796875, 0.01080322265625, -0.0299072265625, -0.0106201171875, -0.0103759765625, 0.0020599365234375, 0.015625, 0.01190185546875, 0.000202178955078125, 0.010437...
[ 1250, 4867, 59226, 136, 35782, 959, 20697, 237, 84751, 2452, 3454, 502, 3445, 304, 363, 617, 7722, 109308, 1033, 52080, 36880, 19774, 162515, 100094, 5809, 11814, 56050, 70731, 37842, 28007, 22027, 18, 4488, 27781, 36917, 5608, 120337, 1810, ...
[ 0.175048828125, 0.25537109375, 0.18798828125, 0.1556396484375, 0.266357421875, 0.052032470703125, 0.1446533203125, 0.095947265625, 0.1405029296875, 0.1446533203125, 0.12353515625, 0.1165771484375, 0.09423828125, 0.000457763671875, 0.0455322265625, 0.107666015625, 0.1759033203125, 0...
embed
16431498_c0
16431498
prolog
0
Title: Prolog - Extract a Sublist Problem title: Prolog - Extract a Sublist Tags: list, prolog Problem: Prolog - Extract a Sublist sublist(L1,L2,I,J) I have a list, L1 being passed in, along with 2 indices I and J , and I want L2 to be the inclusive sublist containing the elements between I and J . If J is outside of t...
Prolog - Extract a Sublist Prolog - Extract a Sublist list prolog Prolog Extract Sublist Length Prolog - Extract a Sublist sublist(L1,L2,I,J) I have a list, L1 being passed in, along with 2 indices I and J , and I want L2 to be the inclusive sublist containing the elements between I and J . If J is outside of the bound...
[ 0.00023365020751953125, -0.004791259765625, 0.02099609375, 0.00860595703125, -0.0101318359375, 0.0107421875, -0.01287841796875, 0.024169921875, 0.01904296875, 0.00439453125, -0.0018310546875, -0.01123046875, -0.0252685546875, 0.01397705078125, 0.00848388671875, 0.0216064453125, 0.032...
[ 1250, 4867, 31501, 15390, 8273, 6562, 10, 5303, 502, 77554, 1614, 866, 418, 304, 568, 1375, 339, 115081, 23, 116, 136044, 87, 136, 821, 3444, 186, 70, 55128, 70541, 80854, 17721, 4263, 50782, 111, 99091, 71, 1884, 738, 1295, 3564, 40715...
[ 0.1318359375, 0.2049560546875, 0.1646728515625, 0.1025390625, 0.206298828125, 0.25244140625, 0.004547119140625, 0.1707763671875, 0.07232666015625, 0.09527587890625, 0.191650390625, 0.0889892578125, 0.0889892578125, 0.1856689453125, 0.07293701171875, 0.1690673828125, 0.10595703125, ...
embed
31029619_c0
31029619
prolog
0
Title: Using Prolog to make a prediction based on the data in a Relational Database Problem title: Using Prolog to make a prediction based on the data in a Relational Database Tags: prediction, prolog, sql-server, expert-system, swi-prolog Problem: Using Prolog to make a prediction based on the data in a Relational Dat...
Using Prolog to make a prediction based on the data in a Relational Database Using Prolog to make a prediction based on the data in a Relational Database prediction prolog sql-server expert-system swi-prolog Using Prolog Relational Database Day Weather Taken Umbrella Monday Cloudy Yes Tuesday Sunny Wednesday Rain Thurs...
[ 0.03662109375, 0.0038604736328125, 0.00262451171875, 0.028076171875, -0.00970458984375, 0.0223388671875, -0.016845703125, 0.00118255615234375, -0.006988525390625, -0.06396484375, 0.0030670166015625, -0.003021240234375, -0.01068115234375, -0.016845703125, 0.012451171875, -0.002151489257...
[ 345, 6953, 1250, 4867, 3249, 92054, 1830, 35509, 2053, 116822, 289, 187781, 502, 99247, 39642, 26808, 16751, 2452, 3454, 10013, 214526, 2561, 2793, 4134, 1165, 68318, 48316, 53, 32635, 97001, 151197, 64227, 82507, 103616, 36880, 2527, 14537, ...
[ 0.05181884765625, 0.008392333984375, 0.1846923828125, 0.27099609375, 0.058563232421875, 0.1998291015625, 0.1513671875, 0.09759521484375, 0.1253662109375, 0.16357421875, 0.0758056640625, 0.1767578125, 0.14208984375, 0.1341552734375, 0.10101318359375, 0.09442138671875, 0.09747314453125...
embed
20196003_c0
20196003
prolog
0
Title: Learning prolog, some list functions Problem title: Learning prolog, some list functions Tags: prolog Problem: Learning prolog, some list functions I am working on an assignment that deals with lists in prolog. The basic idea is that given a list, prolog should be able to determine if a value is repeated at all,...
Learning prolog, some list functions Learning prolog, some list functions prolog Learning list_count repeated_in List Num Learning prolog, some list functions I am working on an assignment that deals with lists in prolog. The basic idea is that given a list, prolog should be able to determine if a value is repeated at ...
[ -0.0030670166015625, 0.002105712890625, 0.0107421875, 0.00775146484375, 0.01263427734375, 0.0106201171875, -0.019775390625, -0.0126953125, 0.0169677734375, -0.020751953125, -0.01318359375, -0.0228271484375, -0.001739501953125, 0.010009765625, 0.0115966796875, 0.0098876953125, 0.01696...
[ 114344, 502, 4867, 3060, 5303, 32354, 71013, 119140, 297, 73, 32036, 52782, 20697, 95486, 62822, 6528, 34475, 19048, 47, 83324, 2174, 34292, 756, 4734, 24145, 186351, 17569, 30362, 29806, 54529, 14012, 20028, 74918, 3642, 5941, 442, 5117, 165...
[ 0.129638671875, 0.1414794921875, 0.2178955078125, 0.01373291015625, 0.18212890625, 0.16015625, 0.1884765625, 0.24560546875, 0.0970458984375, 0.048553466796875, 0.171630859375, 0.164306640625, 0.04437255859375, 0.0814208984375, 0.05419921875, 0.052154541015625, 0.032318115234375, 0....
embed
34168676_c0
34168676
prolog
0
Title: Prolog - Select the greater value in a list Problem title: Prolog - Select the greater value in a list Tags: prolog, logic Problem: Prolog - Select the greater value in a list I'm newbie in prolog, my problem is very simple, I just want to take an element from a list in prolog, the elements are like: [[List],Cos...
Prolog - Select the greater value in a list Prolog - Select the greater value in a list prolog logic Prolog Select List Cost Set point1 point2 point3 point4 Prolog - Select the greater value in a list I'm newbie in prolog, my problem is very simple, I just want to take an element from a list in prolog, the elements are...
[ 0.0191650390625, 0.00946044921875, -0.00811767578125, 0.01068115234375, -0.00274658203125, 0.005523681640625, -0.0013885498046875, 0.01214599609375, 0.0172119140625, -0.0184326171875, 0.01507568359375, 0.0126953125, -0.0228271484375, -0.0238037109375, 0.00152587890625, -0.0028839111328...
[ 1250, 4867, 20, 51620, 70, 117396, 34292, 23, 5303, 502, 62775, 32036, 63099, 19943, 6275, 304, 363, 617, 3525, 9014, 2967, 4552, 8781, 1660, 3444, 47, 5646, 12830, 1295, 80854, 1884, 27781, 1632, 4358, 113054, 756, 135587, 3630, 117, 220...
[ 0.1988525390625, 0.271240234375, 0.0411376953125, 0.20849609375, 0.04620361328125, 0.1820068359375, 0.2103271484375, 0.051544189453125, 0.2122802734375, 0.1724853515625, 0.1640625, 0.1939697265625, 0.2005615234375, 0.204833984375, 0.1212158203125, 0.0650634765625, 0.03802490234375, ...
embed
7734537_c0
7734537
prolog
0
Title: How do I create a list of atom pairs from two lists in prolog? Problem title: How do I create a list of atom pairs from two lists in prolog? Tags: prolog Problem: How do I create a list of atom pairs from two lists in prolog? I am new to prolog. Let me show you what I want below as comment.. % ?-pair([1,2],[a,b]...
How do I create a list of atom pairs from two lists in prolog? How do I create a list of atom pairs from two lists in prolog? prolog two How Result How do I create a list of atom pairs from two lists in prolog? I am new to prolog. Let me show you what I want below as comment.. and what I did is.. with this code I reach...
[ 0.00848388671875, 0.01220703125, 0.003692626953125, 0.018798828125, -0.0034027099609375, 0.01513671875, -0.0196533203125, -0.00098419189453125, 0.002105712890625, -0.0250244140625, 0.021240234375, 0.0014190673828125, 0.00994873046875, -0.01361083984375, -0.004638671875, -0.006103515625...
[ 11249, 28282, 5303, 34627, 80836, 7, 1295, 6626, 502, 4867, 126684, 54, 87, 10, 111, 23, 3525, 3444, 35064, 6868, 18151, 58359, 16750, 756, 1632, 13315, 15490, 57346 ]
[ 0.047882080078125, 0.1575927734375, 0.18115234375, 0.203125, 0.2144775390625, 0.05889892578125, 0.06072998046875, 0.1436767578125, 0.14599609375, 0.2083740234375, 0.1029052734375, 0.004180908203125, 0.006622314453125, 0.00543212890625, 0.0213165283203125, 0.086669921875, 0.0000915527...
embed
9560244_c0
9560244
prolog
0
Title: How to use additional fonts under XPCE in SWI-Prolog under Microsoft Windows? Problem title: How to use additional fonts under XPCE in SWI-Prolog under Microsoft Windows? Tags: prolog, fonts, swi-prolog, windows, xpce Problem: How to use additional fonts under XPCE in SWI-Prolog under Microsoft Windows? SWI-Prol...
How to use additional fonts under XPCE in SWI-Prolog under Microsoft Windows? How to use additional fonts under XPCE in SWI-Prolog under Microsoft Windows? prolog fonts swi-prolog windows xpce How XPCE SWI-Prolog Microsoft Windows How to use additional fonts under XPCE in SWI-Prolog under Microsoft Windows? SWI-Prolog ...
[ 0.0086669921875, 0.0106201171875, -0.0106201171875, 0.0042724609375, -0.0242919921875, -0.00872802734375, 0.0198974609375, -0.0023956298828125, 0.003997802734375, -0.0037994384765625, 0.01470947265625, -0.01104736328125, 0.00885009765625, 0.00384521484375, 0.013916015625, -0.0148315429...
[ 11249, 4527, 78301, 12401, 1379, 45005, 10854, 159, 38969, 10752, 4867, 7244, 3773, 502, 2452, 3454, 54825, 254, 329, 9, 23, 24, 195490, 35773, 10846, 5426, 24990, 151138, 53400, 222495, 27781, 180346, 51, 4084, 171859, 79315, 75635, 1428, ...
[ 0.038177490234375, 0.113525390625, 0.1474609375, 0.2054443359375, 0.10003662109375, 0.134521484375, 0.185791015625, 0.05560302734375, 0.238525390625, 0.1268310546875, 0.17822265625, 0.0977783203125, 0.164306640625, 0.0814208984375, 0.1666259765625, 0.071044921875, 0.0726318359375, ...
embed
10593666_c0
10593666
prolog
0
Title: PROLOG Sum of a list created from facts Problem title: PROLOG Sum of a list created from facts Tags: list, prolog Problem: PROLOG Sum of a list created from facts I want to create a list from the facts. And the list should contains only one of the arity in the facts. For example : %facts abc(a, b, c). abc(d, e, ...
PROLOG Sum of a list created from facts PROLOG Sum of a list created from facts list prolog facts PROLOG Sum Vaughn Cato Sum1 PROLOG Sum of a list created from facts I want to create a list from the facts. And the list should contains only one of the arity in the facts. For example : Sample : EDIT : Using the suggestio...
[ 0.0252685546875, -0.000843048095703125, 0.01031494140625, 0.037109375, -0.019775390625, 0.00738525390625, 0.0125732421875, 0.034912109375, 0.02001953125, -0.03955078125, -0.01434326171875, -0.0035858154296875, -0.00141143798828125, 0.00555419921875, 0.00494384765625, 0.0050048828125, ...
[ 10514, 47510, 36335, 111, 5303, 75935, 1295, 15824, 7, 502, 4867, 3453, 58968, 19, 2041, 188, 418, 3444, 28282, 70, 5608, 70541, 4734, 1632, 187, 2481, 23, 33209, 199015, 18151, 1284, 3642, 47, 10554, 1257, 62, 107730, 41, 1294, 144573, ...
[ 0.1556396484375, 0.2120361328125, 0.2440185546875, 0.13134765625, 0.2381591796875, 0.1585693359375, 0.1614990234375, 0.214111328125, 0.123291015625, 0.111083984375, 0.1947021484375, 0.027130126953125, 0.05181884765625, 0.04669189453125, 0.0899658203125, 0.14306640625, 0.0250549316406...
embed
47998789_c0
47998789
prolog
0
Title: count elements before last spacebars Problem title: count elements before last spacebars Tags: prolog Problem: count elements before last spacebars I want to count the number of elements before last spacebars. For example, I have a list [a,b,_,_,f,g,h,_,_,_] and the final result would X=3 . last_word(String, Wor...
count elements before last spacebars count elements before last spacebars prolog last_word Word TailString Char Buff Elem count elements before last spacebars I want to count the number of elements before last spacebars. For example, I have a list [a,b,_,_,f,g,h,_,_,_] and the final result would X=3 .
[ 0.004058837890625, 0.0135498046875, -0.0169677734375, 0.0296630859375, -0.0213623046875, 0.0302734375, 0.00130462646484375, -0.006103515625, -0.0015411376953125, -0.03466796875, 0.01080322265625, -0.0322265625, -0.00982666015625, -0.001953125, -0.00439453125, 0.002685546875, 0.007598...
[ 54529, 80854, 8108, 4568, 32628, 1299, 7, 502, 4867, 47416, 22543, 1218, 379, 71713, 21656, 667, 4902, 540, 195, 3444, 47, 14012, 27781, 5303, 275, 420, 177, 127, 2704, 16750, 1193, 76067 ]
[ 0.1923828125, 0.2274169921875, 0.159912109375, 0.1837158203125, 0.1353759765625, 0.214111328125, 0.0380859375, 0.08575439453125, 0.1429443359375, 0.1097412109375, 0.054443359375, 0.056182861328125, 0.011810302734375, 0.086181640625, 0.07257080078125, 0.04248046875, 0.1697998046875, ...
embed
74419500_c0
74419500
prolog
0
Title: How to generate all permutations from positional value-lists in Prolog? Problem title: How to generate all permutations from positional value-lists in Prolog? Tags: combinations, prolog Problem: How to generate all permutations from positional value-lists in Prolog? I have a list of lists and I'd like to generat...
How to generate all permutations from positional value-lists in Prolog? How to generate all permutations from positional value-lists in Prolog? combinations prolog positional How Prolog magic_function Ans How to generate all permutations from positional value-lists in Prolog? I have a list of lists and I'd like to gene...
[ -0.0118408203125, 0.01806640625, 0.006988525390625, -0.0030517578125, -0.017333984375, 0.00811767578125, -0.0228271484375, -0.012451171875, -0.004852294921875, -0.0218505859375, -0.0038909912109375, 0.0361328125, 0.024169921875, 0.006866455078125, -0.021484375, -0.0172119140625, 0.00...
[ 11249, 47, 139392, 756, 117, 14311, 21094, 1295, 19069, 289, 34292, 6562, 1250, 4867, 162515, 502, 49846, 137175, 893, 23, 5303, 1884, 7722, 5117, 12830, 38162, 1614, 17932, 5570, 6528, 80234 ]
[ 0.0716552734375, 0.050872802734375, 0.2147216796875, 0.1314697265625, 0.1541748046875, 0.238037109375, 0.1478271484375, 0.0701904296875, 0.1856689453125, 0.09637451171875, 0.1741943359375, 0.1708984375, 0.154541015625, 0.22705078125, 0.126220703125, 0.09051513671875, 0.1585693359375,...
embed
66787624_c0
66787624
prolog
0
Title: How to solve this Prolog question by filtering out the atoms? Problem title: How to solve this Prolog question by filtering out the atoms? Tags: prolog Problem: How to solve this Prolog question by filtering out the atoms? so I am given the expression with the description We can, in fact, specify in Prolog what ...
How to solve this Prolog question by filtering out the atoms? How to solve this Prolog question by filtering out the atoms? prolog How Prolog How to solve this Prolog question by filtering out the atoms? so I am given the expression with the description And the question asks Write a predicate no_atoms/1 which succeeds ...
[ -0.00225830078125, 0.0201416015625, 0.000827789306640625, 0.0157470703125, -0.0001811981201171875, 0.037109375, 0.0037078857421875, 0.0101318359375, -0.0086669921875, -0.007568359375, 0.0074462890625, -0.013916015625, -0.01019287109375, 0.0078125, 0.016357421875, 0.01611328125, 0.007...
[ 11249, 47, 86869, 903, 1250, 4867, 9655, 390, 46312, 214, 1810, 34627, 7, 502, 70, 34475, 125195, 76811, 26458, 601, 18781, 1653, 2063, 67, 110, 257, 28016, 11583, 214493, 2174, 10750, 15490, 2499, 104116, 9, 86827, 1328, 425, 5608, 35782...
[ 0.08984375, 0.0540771484375, 0.194580078125, 0.109619140625, 0.171142578125, 0.2274169921875, 0.1431884765625, 0.04827880859375, 0.2315673828125, 0.05511474609375, 0.19580078125, 0.2457275390625, 0.072998046875, 0.08392333984375, 0.0153961181640625, 0.011505126953125, 0.192138671875,...
embed
49929991_c0
49929991
prolog
0
Title: Prolog Singleton variable warning Problem title: Prolog Singleton variable warning Tags: graph-theory, prolog Problem: Prolog Singleton variable warning I am new to Prolog, I am trying to make a rule that gives me a given path from a node to another and also gives me the total weight of the path. It runs perfect...
Prolog Singleton variable warning Prolog Singleton variable warning graph-theory prolog Prolog Singleton Visited Prolog Singleton variable warning I am new to Prolog, I am trying to make a rule that gives me a given path from a node to another and also gives me the total weight of the path. It runs perfectly but I get ...
[ 0.01318359375, 0.0191650390625, 0.007232666015625, 0.016357421875, -0.0145263671875, 0.033203125, -0.02587890625, -0.0159912109375, 0.0108642578125, -0.0478515625, -0.00860595703125, -0.01318359375, -0.00848388671875, -0.0030517578125, 0.004150390625, 0.01275634765625, 0.010986328125...
[ 1250, 4867, 43609, 1507, 77336, 1631, 592, 41382, 2347, 502, 98684, 3525, 31577, 79986, 34475, 60875, 1295, 110, 47, 15700, 3622, 57888, 127877, 169123, 1284, 284, 136, 1542, 683, 4358, 86869 ]
[ 0.142333984375, 0.2119140625, 0.2120361328125, 0.2252197265625, 0.26904296875, 0.1474609375, 0.08184814453125, 0.1324462890625, 0.02294921875, 0.054290771484375, 0.1510009765625, 0.017242431640625, 0.02154541015625, 0.123779296875, 0.003448486328125, 0.141357421875, 0.042816162109375...
embed
62682035_c0
62682035
prolog
0
Title: How do i get a list of elements that I extracted from a knowledge base in Prolog? Problem title: How do i get a list of elements that I extracted from a knowledge base in Prolog? Tags: prolog Problem: How do i get a list of elements that I extracted from a knowledge base in Prolog? % Given a knowledge base of th...
How do i get a list of elements that I extracted from a knowledge base in Prolog? How do i get a list of elements that I extracted from a knowledge base in Prolog? prolog a findall How Prolog Given city_name city1 city2 city3 get_city How do i get a list of elements that I extracted from a knowledge base in Prolog? How...
[ 0.025390625, -0.00421142578125, 0.015869140625, 0.004547119140625, 0.000732421875, 0.01312255859375, -0.006134033203125, 0.0126953125, 0.0205078125, -0.0341796875, 0.0299072265625, 0.0167236328125, -0.033935546875, -0.01361083984375, -0.00469970703125, 0.0184326171875, 0.009826660156...
[ 11249, 17, 2046, 5303, 80854, 125663, 297, 51359, 3647, 1250, 4867, 54, 111, 87, 1295, 502, 10, 7413, 5584, 77878, 26349, 11627, 304, 363, 60089, 450, 28484, 756, 16750, 1193, 162708, 52768, 35064, 159399, 16200 ]
[ 0.0462646484375, 0.03271484375, 0.13134765625, 0.1654052734375, 0.1634521484375, 0.19775390625, 0.062744140625, 0.14697265625, 0.176513671875, 0.1597900390625, 0.2418212890625, 0.01275634765625, 0.006103515625, 0.010009765625, 0.05755615234375, 0.0946044921875, 0.008453369140625, 0...
embed
60549341_c0
60549341
prolog
0
Title: Switching arguments in Prolog Problem title: Switching arguments in Prolog Tags: prolog Problem: Switching arguments in Prolog I have this little Prolog program. It multiplies two numbers only doing addition. mult(0, _, 0). mult(1, X, X). mult(X, Y, R) :- X > 1, X1 is X - 1, mult(X1, Y, R1), R is Y+R1. Now I tho...
Switching arguments in Prolog Switching arguments in Prolog prolog Switching Prolog Switching arguments in Prolog I have this little Prolog program. It multiplies two numbers only doing addition. Now I thought of optimizing this by reordering the arguments, so that X is always the smaller of the two arguments and there...
[ -0.00347900390625, 0.0213623046875, 0.0137939453125, 0.003662109375, -0.00099945068359375, 0.01220703125, -0.01275634765625, -0.01153564453125, -0.00787353515625, 0.0125732421875, 0.0123291015625, 0.0064697265625, -0.02294921875, -0.00250244140625, 0.0169677734375, 0.000942230224609375...
[ 106101, 214, 10750, 7, 23, 1250, 4867, 502, 10176, 1528, 118126, 6626, 101935, 4734, 20594, 66044, 17569, 15572, 456, 80596, 1193, 11343, 164917, 40715, 195625, 1830, 49814, 13315, 3293, 14602, 959, 4488, 28219, 15400, 3869, 86827, 757, 35166...
[ 0.2279052734375, 0.03912353515625, 0.276611328125, 0.07830810546875, 0.00933837890625, 0.1715087890625, 0.264404296875, 0.107666015625, 0.0322265625, 0.11474609375, 0.1732177734375, 0.1192626953125, 0.1273193359375, 0.048858642578125, 0.0254058837890625, 0.1588134765625, 0.0301361083...
embed
20607420_c0
20607420
prolog
0
Title: Java, C# and Prolog reflection mechanisms Problem title: Java, C# and Prolog reflection mechanisms Tags: reflection, prolog, java, c%23 Problem: Java, C# and Prolog reflection mechanisms i am preparing for my finals and came across this question: Learn about the reflection mechanisms of Java, C# and Prolog, all ...
Java, C# and Prolog reflection mechanisms Java, C# and Prolog reflection mechanisms reflection prolog java c%23 Java Prolog Java, C# and Prolog reflection mechanisms i am preparing for my finals and came across this question: Why is this question asked in terms of symbol table? Can i write the same solution that i writ...
[ 0.023681640625, 0.0211181640625, 0.0166015625, 0.0205078125, -0.0244140625, 0.031982421875, -0.006561279296875, -0.00799560546875, -0.014892578125, -0.01495361328125, -0.007415771484375, -0.004974365234375, -0.031005859375, 0.0201416015625, 0.01239013671875, 0.00897216796875, 0.00817...
[ 41925, 4904, 136, 1250, 4867, 44961, 1830, 191619, 4, 502, 79, 330, 3742, 58172, 2704, 44084, 9655, 37170, 69407, 26582, 23180, 4171, 33022, 5701, 29806, 61112, 36746, 15969, 4865, 83, 15400, 442, 80234 ]
[ 0.1956787109375, 0.139404296875, 0.044464111328125, 0.08782958984375, 0.1767578125, 0.26806640625, 0.15869140625, 0.179443359375, 0.000457763671875, 0.052978515625, 0.077392578125, 0.10748291015625, 0.081787109375, 0.0235443115234375, 0.0999755859375, 0.1063232421875, 0.0337829589843...
embed
15977010_c0
15977010
prolog
0
Title: Solving a system of equations in Prolog Problem title: Solving a system of equations in Prolog Tags: constraint-programming, prolog, equation-solving Problem: Solving a system of equations in Prolog Assume I have a number X and I wish to solve system of equations, say Y+Z=X, Z*Y = 1. Now, this has solutions Y=1/...
Solving a system of equations in Prolog Solving a system of equations in Prolog constraint-programming prolog equation-solving Solving Prolog X-4 Solving a system of equations in Prolog Assume I have a number X and I wish to solve system of equations, say Y+Z=X, Z*Y = 1. Now, this has solutions Y=1/Z and Z = (sqrt(X*X-...
[ 0.00811767578125, 0.006927490234375, -0.002838134765625, 0.01446533203125, -0.0140380859375, 0.00250244140625, -0.0203857421875, 0.004180908203125, 0.00946044921875, -0.0146484375, 0.0013580322265625, 0.017578125, 0, -0.0185546875, 0.005584716796875, 0.00830078125, 0.0025482177734375...
[ 6678, 6496, 5426, 13722, 5256, 1250, 4867, 2816, 28966, 502, 5490, 132944, 1193, 11565, 111, 23, 66596, 765, 14012, 32599, 86869, 28, 990, 1328, 1511, 1542, 567, 1639, 1723, 2203, 615, 1556, 51347, 33000, 64, 136, 864, 3198, 12477, 831, ...
[ 0.1104736328125, 0.0294647216796875, 0.172119140625, 0.1910400390625, 0.0478515625, 0.1712646484375, 0.2371826171875, 0.1060791015625, 0.0335693359375, 0.0843505859375, 0.11474609375, 0.0968017578125, 0.1204833984375, 0.1904296875, 0.0845947265625, 0.017303466796875, 0.04183959960937...
embed
22179081_c0
22179081
prolog
0
Title: Adding output from different rules in prolog Problem title: Adding output from different rules in prolog Tags: prolog Problem: Adding output from different rules in prolog my_list([this,is,a,dog,.,what,is,your,name,?,i,simply,adore,you,!]). count(_, [], 0) :- !. count(X, [X|Q], N) :- !, count(X, Q, N1), N is N1+...
Adding output from different rules in prolog Adding output from different rules in prolog prolog different Adding my_list number_of_sentence Adding output from different rules in prolog in the above code there are three types of sentences in the list(my_list) 1 affirmative, 1 question and 1 exclamatory and when i do th...
[ 0.01385498046875, 0.01708984375, -0.00299072265625, 0.0128173828125, -0.0062255859375, -0.0038909912109375, 0.00885009765625, 0.021484375, 0.013671875, -0.0341796875, 0.00592041015625, -0.027099609375, 0.0274658203125, 0.01409912109375, 0.01806640625, -0.00848388671875, -0.0069274902...
[ 62, 59725, 140992, 1295, 12921, 91736, 502, 4867, 759, 6562, 14012, 4390, 12832, 18151, 17262, 52895, 149357, 5303, 1176, 261, 23044, 4935, 9655, 60397, 4597, 15190, 142424, 541, 7639, 188, 1803, 2203, 138, 4358, 22936 ]
[ 0.08087158203125, 0.0472412109375, 0.21923828125, 0.04888916015625, 0.15234375, 0.1444091796875, 0.121337890625, 0.210693359375, 0.049560546875, 0.1832275390625, 0.06317138671875, 0.03948974609375, 0.083251953125, 0.03076171875, 0.0941162109375, 0.149169921875, 0.210693359375, 0.14...
embed
55139547_c0
55139547
prolog
0
Title: Write a Prolog program to solve this problem Problem title: Write a Prolog program to solve this problem Tags: zebra-puzzle, prolog Problem: Write a Prolog program to solve this problem I am new to Prolog kindly assist. Hunter, Laura, Jim, Sally, and Jack work in the same building with five adjacent offices. Hun...
Write a Prolog program to solve this problem Write a Prolog program to solve this problem zebra-puzzle prolog Write Prolog Write a Prolog program to solve this problem I am new to Prolog kindly assist. Hunter, Laura, Jim, Sally, and Jack work in the same building with five adjacent offices. Hunter doesn’t work in the 5...
[ 0.0050048828125, 0.0224609375, -0.005615234375, 0.01275634765625, -0.0225830078125, 0.0240478515625, -0.03271484375, 0.0234375, 0.0057373046875, -0.00970458984375, -0.00185394287109375, 0.003448486328125, -0.002716064453125, 0.004791259765625, 0.01806640625, 0.021484375, 0.0006370544...
[ 601, 18781, 10, 1250, 4867, 1528, 47, 86869, 903, 2967, 116232, 1766, 13894, 133, 502, 3525, 8562, 538, 30793, 134327, 4, 41193, 41994, 6565, 136, 21763, 4488, 5701, 33976, 43606, 123594, 16797, 23179, 22027, 18, 190, 927, 5117, 4568, 959...
[ 0.08221435546875, 0.1142578125, 0.0257415771484375, 0.166015625, 0.255615234375, 0.2249755859375, 0.02252197265625, 0.1724853515625, 0.1358642578125, 0.188232421875, 0.259033203125, 0.1082763671875, 0.1416015625, 0.10498046875, 0.1317138671875, 0.0439453125, 0.0271148681640625, 0.1...
embed
72019735_c0
72019735
prolog
0
Title: Returning false if item is not in list (PROLOG) Problem title: Returning false if item is not in list (PROLOG) Tags: recursion, list, prolog Problem: Returning false if item is not in list (PROLOG) Below is the code to remove a key (A) from a list if it is there. If it isn't there, it currently returns the entir...
Returning false if item is not in list (PROLOG) Returning false if item is not in list (PROLOG) recursion list prolog Returning PROLOG my_delete Returning false if item is not in list (PROLOG) Below is the code to remove a key (A) from a list if it is there. If it isn't there, it currently returns the entire list. I wo...
[ -0.0008697509765625, 0.0322265625, 0.020263671875, -0.01422119140625, -0.0194091796875, 0.01055908203125, 0.01519775390625, 0.0023345947265625, 0.02294921875, 0.00165557861328125, 0.034912109375, -0.00640869140625, -0.0030059814453125, 0.018798828125, 0.00396728515625, 0.0130615234375,...
[ 173340, 98320, 2174, 35735, 83, 959, 23, 5303, 47970, 47510, 214, 195625, 1830, 502, 4867, 10514, 759, 8520, 67, 17336, 18151, 87388, 22799, 284, 1295, 442, 2685, 4263, 56112, 18, 82424, 30646, 64194, 1884, 64457, 8710, 184, 33209, 140992, ...
[ 0.14208984375, 0.2066650390625, 0.12890625, 0.12548828125, 0.1036376953125, 0.125, 0.1099853515625, 0.1802978515625, 0.07427978515625, 0.1583251953125, 0.019287109375, 0.1357421875, 0.043060302734375, 0.083251953125, 0.16943359375, 0.100830078125, 0.052734375, 0.130859375, 0.0950...
embed
24045310_c0
24045310
prolog
0
Title: Start from a different element when operating on a list in prolog Problem title: Start from a different element when operating on a list in prolog Tags: list, prolog Problem: Start from a different element when operating on a list in prolog In prolog is it possible to start from an nth element rather than the fi...
Start from a different element when operating on a list in prolog Start from a different element when operating on a list in prolog list prolog a the Start Start from a different element when operating on a list in prolog In prolog is it possible to start from an nth element rather than the first in a list. I have a fu...
[ -0.007354736328125, 0.01434326171875, -0.006683349609375, -0.0125732421875, -0.0172119140625, 0.0012969970703125, 0.0244140625, 0.01043701171875, 0.01300048828125, -0.023193359375, 0.01556396484375, 0.0224609375, 0.004608154296875, -0.0031890869140625, 0.006622314453125, -0.00598144531...
[ 13794, 1295, 12921, 12830, 172852, 98, 5303, 502, 4867, 23, 7722, 4034, 653, 927, 43257, 5117, 32354, 3630, 6626, 107, 160018, 43606, 86595, 7158, 26783, 11343, 3444, 2837, 42077 ]
[ 0.17724609375, 0.1790771484375, 0.16455078125, 0.208251953125, 0.1903076171875, 0.048248291015625, 0.1800537109375, 0.1585693359375, 0.2235107421875, 0.00732421875, 0.139892578125, 0.1787109375, 0.15576171875, 0.1810302734375, 0.06243896484375, 0.1229248046875, 0.13232421875, 0.027...
embed
41621414_c1
41621414
prolog
1
log has exhausted the first two clauses, so it winds up in split(X^Y, ...) again, unifying my Y with X'^Y' , essentially. I am just not sure what I need to do to close off that path except at the outset where I have the structure ^/2 . I'd also like this to work with nested structures, so I can't just eliminate the rec...
log has exhausted the first two clauses, so it winds up in split(X^Y, ...) again, unifying my Y with X'^Y' , essentially. I am just not sure what I need to do to close off that path except at the outset where I have the structure ^/2 . I'd also like this to work with nested structures, so I can't just eliminate the rec...
[ -0.005340576171875, 0.01416015625, -0.005401611328125, -0.00112152099609375, -0.00982666015625, 0.0247802734375, 0.006683349609375, -0.00628662109375, 0.036865234375, -0.00885009765625, -0.01068115234375, 0.0198974609375, -0.00823974609375, 0.00970458984375, 0.017333984375, 0.007720947...
[ 12684, 1556, 146353, 297, 5117, 6626, 70731, 90, 32382, 1257, 65450, 1542, 8353, 1723, 13438, 51, 151138, 759, 990, 678, 1193, 25, 85590, 9077, 3871, 54, 47, 20903, 5773, 450, 60875, 1810, 3509, 45646, 13331, 12477, 1884, 4488, 8512, 2716...
[ 0.2225341796875, 0.043304443359375, 0.2161865234375, 0.075927734375, 0.013275146484375, 0.033233642578125, 0.155029296875, 0.043701171875, 0.0802001953125, 0.0231475830078125, 0.1944580078125, 0.06903076171875, 0.0810546875, 0.1474609375, 0.0787353515625, 0.1031494140625, 0.098999023...
embed
11060355_c1
11060355
prolog
1
--> [q1, A*b] [q1, b, b] --> [q1, lambda] [q1, w, w] --> [q1, lambda] [q1, x, x] --> [q1, lambda] [q1, y, y] --> [q1, lambda] [q1, lambda, z0] --> [q2, z0] I have to implement this algorithm in Prolog (getting a grammar from user and returning the delta function) and I'm confused because this is my first time using a ...
--> [q1, A*b] [q1, b, b] --> [q1, lambda] [q1, w, w] --> [q1, lambda] [q1, x, x] --> [q1, lambda] [q1, y, y] --> [q1, lambda] [q1, lambda, z0] --> [q2, z0] I have to implement this algorithm in Prolog (getting a grammar from user and returning the delta function) and I'm confused because this is my first time using a ...
[ 0.0113525390625, -0.007293701171875, 0.0025787353515625, 0.00012063980102539062, -0.0218505859375, 0.029296875, -0.003570556640625, -0.005157470703125, -0.019775390625, -0.017578125, 0.02099609375, -0.0023345947265625, -0.0206298828125, -0.0179443359375, -0.004058837890625, -0.00549316...
[ 129908, 864, 418, 4, 62, 1639, 275, 876, 21, 6492, 85, 148, 1022, 113, 97, 2389, 29479, 903, 234873, 23, 1250, 4867, 429, 122092, 147, 38937, 30646, 40703, 32354, 55681, 5117, 1733, 17368, 62775, 56037, 46876, 17569, 5809, 51139, 3900, ...
[ 0.2080078125, 0.1181640625, 0.1124267578125, 0.035552978515625, 0.083984375, 0.0838623046875, 0.1064453125, 0.1229248046875, 0.050872802734375, 0.1640625, 0.1119384765625, 0.163330078125, 0.05230712890625, 0.0731201171875, 0.058380126953125, 0.0877685546875, 0.0858154296875, 0.0427...
embed
54298844_c0
54298844
prolog
0
Title: Usage of readLine predicate in Prolog Problem title: Usage of readLine predicate in Prolog Tags: swi-prolog, prolog, nlp Problem: Usage of readLine predicate in Prolog In "Representation and Inference for Natural Language - A First Course in Computational Semantics" by Blackburn and Bos they give the following p...
Usage of readLine predicate in Prolog Usage of readLine predicate in Prolog swi-prolog prolog nlp Usage Prolog Sentence LambdaExpression Formula Bob Usage of readLine predicate in Prolog In "Representation and Inference for Natural Language - A First Course in Computational Semantics" by Blackburn and Bos they give the...
[ 0.006744384765625, 0.01220703125, 0.0027008056640625, 0.0245361328125, -0.01080322265625, 0.01190185546875, 0.0206298828125, 0.0169677734375, -0.00714111328125, -0.048583984375, -0.00640869140625, -0.0027618408203125, -0.0284423828125, -0.0244140625, 0.0247802734375, -0.00555419921875,...
[ 70166, 12301, 93232, 1653, 2063, 67, 1250, 4867, 23, 2452, 3454, 502, 26775, 63999, 122930, 85, 178752, 72791, 25027, 55247, 69988, 24955, 83658, 154162, 159415, 10232, 109109, 105236, 26854, 1650, 134598, 173969, 9433, 366, 6953, 149357, 10523...
[ 0.1221923828125, 0.247802734375, 0.282470703125, 0.2039794921875, 0.259765625, 0.0966796875, 0.1822509765625, 0.26318359375, 0.03656005859375, 0.119873046875, 0.0963134765625, 0.0926513671875, 0.09490966796875, 0.043609619140625, 0.083740234375, 0.038177490234375, 0.06298828125, 0....
embed
6003758_c0
6003758
prolog
0
Title: Prolog: Reverse every second list elements in a list Problem title: Prolog: Reverse every second list elements in a list Tags: prolog Problem: Prolog: Reverse every second list elements in a list I have to write a program that will get lists in a list, and should reverse every second list, then return the result...
Prolog: Reverse every second list elements in a list Prolog: Reverse every second list elements in a list prolog Prolog Reverse Rev Prolog: Reverse every second list elements in a list I have to write a program that will get lists in a list, and should reverse every second list, then return the result. Something like t...
[ -0.0123291015625, 0.0250244140625, 0.01434326171875, 0.00537109375, -0.0184326171875, 0.0220947265625, 0.00677490234375, 0.01007080078125, 0.00537109375, -0.012451171875, 0.01171875, 0.021484375, -0.006683349609375, -0.0013275146484375, 0.0118408203125, 0.01806640625, 0.0004673004150...
[ 1250, 4867, 853, 37676, 11907, 17932, 5303, 80854, 23, 502, 80893, 12, 33022, 1528, 39531, 184, 30646, 16750, 2060, 2967, 720, 2320, 15190, 32354, 35782, 142837, 53383, 7311, 70541, 4734, 1632, 3564 ]
[ 0.1448974609375, 0.2333984375, 0.07989501953125, 0.256103515625, 0.1158447265625, 0.18017578125, 0.1766357421875, 0.15283203125, 0.019927978515625, 0.1080322265625, 0.2401123046875, 0.01019287109375, 0.0703125, 0.1209716796875, 0.1978759765625, 0.1483154296875, 0.10272216796875, 0....
embed
40529307_c0
40529307
prolog
0
Title: Prolog - How can obtain the prefix form of a math calculation given its usual form? Problem title: Prolog - How can obtain the prefix form of a math calculation given its usual form? Tags: prolog, expression, dcg Problem: Prolog - How can obtain the prefix form of a math calculation given its usual form? I'm new...
Prolog - How can obtain the prefix form of a math calculation given its usual form? Prolog - How can obtain the prefix form of a math calculation given its usual form? prolog expression dcg Prolog How Prolog - How can obtain the prefix form of a math calculation given its usual form? I'm new in prolog and I would like ...
[ 0.0201416015625, -0.0003032684326171875, -0.00946044921875, -0.00848388671875, 0.0072021484375, 0.014404296875, 0.000051975250244140625, 0.01348876953125, 0.010986328125, -0.03173828125, -0.0118408203125, -0.01348876953125, -0.01348876953125, -0.0291748046875, 0, 0.01287841796875, -0...
[ 1250, 4867, 11249, 831, 113054, 70, 183114, 3173, 48909, 74481, 1363, 34475, 115723, 502, 125195, 104, 238, 177, 6863, 3525, 1884, 1528, 154993, 1653, 2063, 9433, 8962, 282, 59121, 73, 55923, 80854, 37769, 3934, 1614, 6562, 138, 206469, 135...
[ 0.175537109375, 0.268310546875, 0.09375, 0.074462890625, 0.1749267578125, 0.0130615234375, 0.27783203125, 0.1995849609375, 0.1767578125, 0.2059326171875, 0.05377197265625, 0.0743408203125, 0.1246337890625, 0.1385498046875, 0.1895751953125, 0.017578125, 0.03253173828125, 0.078002929...
embed
22594363_c0
22594363
prolog
0
Title: how to stop prolog from examining impossible solutions infinitely? Problem title: how to stop prolog from examining impossible solutions infinitely? Tags: backtracking, successor-arithmetics, prolog, failure-slice Problem: how to stop prolog from examining impossible solutions infinitely? suppose the following p...
how to stop prolog from examining impossible solutions infinitely? how to stop prolog from examining impossible solutions infinitely? backtracking successor-arithmetics prolog failure-slice examining how to stop prolog from examining impossible solutions infinitely? suppose the following program: it works great for add...
[ 0.0198974609375, 0.03173828125, -0.0019683837890625, 0.023681640625, -0.0001163482666015625, -0.00146484375, -0.0146484375, -0.00909423828125, 0.010009765625, -0.054443359375, -0.000949859619140625, -0.0159912109375, -0.00958251953125, -0.0150146484375, 0.031494140625, 0.01312255859375...
[ 3642, 47, 7279, 502, 4867, 1295, 42276, 14653, 69201, 51347, 54241, 21286, 4420, 125728, 214, 39457, 42, 8962, 282, 137578, 13348, 139124, 25632, 1528, 43240, 6782, 154107, 6626, 101935, 1284, 81887, 41, 12096, 60899, 98, 33938, 7722, 142424,...
[ 0.0972900390625, 0.056182861328125, 0.2275390625, 0.2008056640625, 0.27001953125, 0.126708984375, 0.1689453125, 0.1134033203125, 0.1961669921875, 0.18359375, 0.1304931640625, 0.09326171875, 0.100830078125, 0.1732177734375, 0.0469970703125, 0.1617431640625, 0.07470703125, 0.08483886...
embed
74193155_c0
74193155
prolog
0
Title: Termination of prolog query using using dcgs Problem title: Termination of prolog query using using dcgs Tags: dcg, non-termination, prolog Problem: Termination of prolog query using using dcgs Given the program foo([]) --> []. foo([Start|Rest]) --> alphanum(Start), foo(Rest). alphanum(Ch) --> [Ch], { char_type(...
Termination of prolog query using using dcgs Termination of prolog query using using dcgs dcg non-termination prolog using Termination Start Rest char_type SWI-Prolog x86_64-linux Termination of prolog query using using dcgs Given the program How can I make the query length(I, 2), phrase(foo(C), I), false. terminate? I...
[ 0.02587890625, 0.020263671875, -0.006591796875, 0.01019287109375, -0.006072998046875, -0.0018768310546875, -0.0096435546875, 0.0147705078125, -0.005035400390625, -0.052001953125, -0.0035247802734375, -0.0147705078125, -0.005035400390625, 0.0174560546875, 0.0027618408203125, 0.017333984...
[ 27366, 2320, 502, 4867, 41, 1294, 17368, 104, 238, 9405, 177, 351, 720, 91407, 13794, 49756, 21441, 50986, 159, 38969, 10752, 15276, 13307, 2397, 6077, 1528, 831, 3249, 140909, 568, 4958, 113860, 3584, 441, 87, 98320, 121011, 13, 3217, 15...
[ 0.216552734375, 0.0689697265625, 0.1558837890625, 0.224365234375, 0.1549072265625, 0.12646484375, 0.04156494140625, 0.0709228515625, 0.112548828125, 0.2069091796875, 0.1239013671875, 0.119384765625, 0.154296875, 0.125, 0.120361328125, 0.1678466796875, 0.1226806640625, 0.06048583984...
embed
74594677_c0
74594677
prolog
0
Title: How to check a condition and add to list in prolog Problem title: How to check a condition and add to list in prolog Tags: prolog Problem: How to check a condition and add to list in prolog I am trying to define a predicate where given a list "C" and budget "B", it will check the items in the list and output a l...
How to check a condition and add to list in prolog How to check a condition and add to list in prolog prolog How catalogue_budget Head Tail How to check a condition and add to list in prolog I am trying to define a predicate where given a list "C" and budget "B", it will check the items in the list and output a list "I...
[ 0.01055908203125, -0.0032196044921875, 0.0017242431640625, 0.01055908203125, -0.013427734375, 0.029052734375, -0.0086669921875, 0.017822265625, 0.01165771484375, -0.0057373046875, 0.0186767578125, -0.0281982421875, -0.010498046875, -0.00154876708984375, -0.02587890625, 0.0009765625, ...
[ 11249, 12765, 35431, 136, 15190, 47, 5303, 23, 502, 4867, 10, 221636, 199387, 44816, 1218, 379, 31577, 61924, 1653, 2063, 67, 441, 20334, 571, 55769, 140992, 568, 831, 59038, 34475, 35064, 91582, 11034, 12638, 35735, 237875, 29479, 154107, ...
[ 0.060394287109375, 0.2354736328125, 0.26806640625, 0.060791015625, 0.1640625, 0.07421875, 0.1951904296875, 0.0238189697265625, 0.1591796875, 0.2291259765625, 0.002777099609375, 0.2064208984375, 0.20751953125, 0.12451171875, 0.1097412109375, 0.10467529296875, 0.008026123046875, 0.10...
embed
36985169_c2
36985169
prolog
2
Tail]) :- play([A, B, 111, 45, 45|Tail]). % XXX-ooXXXXXX play( [A, B, C, 45, 111, 111|Tail]) :- play([A, B, C, 111, 45, 45|Tail]). % XXXX-ooXXXXX play( [A, B, C, D, 45, 111, 111|Tail]) :- play([A, B, C, D, 111, 45, 45|Tail]). % XXXXX-ooXXXX play( [A, B, C, D, E, 45, 111, 111|Tail]) :- play([A, B, C, D, E, 111, 45, 45|T...
Tail]) :- play([A, B, 111, 45, 45|Tail]). % XXX-ooXXXXXX play( [A, B, C, 45, 111, 111|Tail]) :- play([A, B, C, 111, 45, 45|Tail]). % XXXX-ooXXXXX play( [A, B, C, D, 45, 111, 111|Tail]) :- play([A, B, C, D, 111, 45, 45|Tail]). % XXXXX-ooXXXX play( [A, B, C, D, E, 45, 111, 111|Tail]) :- play([A, B, C, D, E, 111, 45, 45|T...
[ -0.008544921875, 0.006683349609375, 0.0223388671875, 0.0162353515625, 0.010498046875, 0.0123291015625, -0.0152587890625, -0.0181884765625, 0.04296875, 0.002166748046875, 0.01129150390625, 0.0245361328125, 0.0103759765625, -0.015380859375, -0.0033111572265625, -0.0115966796875, 0.0095...
[ 1218, 379, 268, 16, 15772, 11301, 132, 284, 335, 4, 36682, 2678, 58745, 9874, 194, 1745, 44585, 9, 16635, 42918, 205378, 313, 391, 1193, 241, 14214, 115469, 563, 527, 6, 1542, 572, 87, 119057, 442, 75, 110608, 33306, 3229, 11782, 7413, ...
[ 0.2398681640625, 0.227294921875, 0.1041259765625, 0.043548583984375, 0.159912109375, 0.245849609375, 0.10174560546875, 0.05029296875, 0.1187744140625, 0.039581298828125, 0.219482421875, 0.2646484375, 0.0185394287109375, 0.2239990234375, 0.01104736328125, 0.0848388671875, 0.1115722656...
embed
49731097_c0
49731097
prolog
0
Title: Prolog prob with "list" dont know why Problem title: Prolog prob with "list" dont know why Tags: prolog Problem: Prolog prob with "list" dont know why I have another problem now communs(piece(C1, F1, T1, Co1),piece(C2, F2, T2, Co2)) :- C1 = C2; F1 = F2; T1 = T2; Co1 = Co2. line((A,_),(A_,_)) ...
Prolog prob with "list" dont know why Prolog prob with "list" dont know why prolog Prolog Co1 Co2 win_line Reste selct_line select_line Prolog prob with "list" dont know why I have another problem now and i actually want to do something but i don't now how : i want to get a list with only coordinate...
[ 0.00121307373046875, -0.00091552734375, 0.01611328125, 0.01611328125, -0.033203125, -0.0072021484375, 0.00677490234375, 0.011474609375, 0.01007080078125, -0.04052734375, 0.0064697265625, 0.01123046875, 0.00689697265625, 0.0125732421875, -0.0205078125, -0.00018310546875, 0.02209472656...
[ 1250, 4867, 43011, 678, 6562, 13319, 3714, 15400, 41502, 502, 1311, 418, 304, 19916, 2256, 49756, 13, 8731, 36849, 2967, 20653, 3444, 54, 9844, 3642, 2046, 10, 5303, 4734, 176866, 1295, 5701, 13315, 17727, 133063, 21320, 37842, 903, 26785 ]
[ 0.1644287109375, 0.2607421875, 0.1727294921875, 0.028289794921875, 0.221923828125, 0.0158843994140625, 0.060943603515625, 0.05718994140625, 0.0001220703125, 0.121337890625, 0.1103515625, 0.0263824462890625, 0.057708740234375, 0.10400390625, 0.1573486328125, 0.08660888671875, 0.125610...
embed
64823521_c0
64823521
prolog
0
Title: Building a list of float achieved with "Type error: `character' expected, found `0.0' (a float)" Problem title: Building a list of float achieved with "Type error: `character' expected, found `0.0' (a float)" Tags: prolog Problem: Building a list of float achieved with "Ty...
Building a list of float achieved with "Type error: `character' expected, found `0.0' (a float)" Building a list of float achieved with "Type error: `character' expected, found `0.0' (a float)" prolog Building Type TmpLocs Locs FloorsMax FloorsCount Loc Count Call _2732 _3158 Exi...
[ 0.0218505859375, 0.00095367431640625, -0.018798828125, -0.0162353515625, 0.006256103515625, 0.000713348388671875, 0.005218505859375, -0.0091552734375, 0.0111083984375, -0.007293701171875, 0.00909423828125, -0.015869140625, 0.0031890869140625, -0.000804901123046875, 0.019775390625, -0.0...
[ 104919, 5303, 111, 21917, 257, 69307, 678, 196707, 18499, 9254, 2263, 720, 3768, 84751, 14037, 99929, 11, 502, 4867, 60457, 384, 2676, 15363, 88784, 177542, 71346, 108210, 26265, 6460, 363, 137197, 5443, 71041, 10289, 180695, 99263, 4046, 133...
[ 0.2081298828125, 0.244140625, 0.00018310546875, 0.227294921875, 0.134521484375, 0.2071533203125, 0.06524658203125, 0.2415771484375, 0.2333984375, 0.0826416015625, 0.131103515625, 0.08135986328125, 0.1405029296875, 0.252685546875, 0.14990234375, 0.2352294921875, 0.06134033203125, 0....
embed
55276284_c0
55276284
prolog
0
Title: Prolog Code outputs False instead of Variable value Problem title: Prolog Code outputs False instead of Variable value Tags: prolog, recursion, list Problem: Prolog Code outputs False instead of Variable value A predicate that would return the sum of even numbers in the list: sumsq_even([], 0). sumsq_even([First...
Prolog Code outputs False instead of Variable value Prolog Code outputs False instead of Variable value prolog recursion list Prolog Variable sumsq_even FirstNum RestOfNums Total TotalRest Add Dont Prolog Code outputs False instead of Variable value A predicate that would return the sum of even numbers in the list: Fir...
[ -0.0033721923828125, 0.029052734375, 0.0026702880859375, 0.0052490234375, -0.01092529296875, 0.022216796875, 0.00152587890625, 0.0118408203125, 0.0022125244140625, -0.0191650390625, 0.0076904296875, -0.0152587890625, 0.00139617919921875, -0.0103759765625, 0.0260009765625, 0.01495361328...
[ 1250, 4867, 28864, 140992, 22225, 184, 64457, 84572, 2886, 34292, 502, 195625, 5303, 10554, 864, 26301, 23972, 316, 49756, 132887, 10321, 33867, 1052, 525, 29117, 7650, 1653, 2063, 30646, 3853, 101935, 18151, 9969, 1340, 6002, 86531, 18499, 3...
[ 0.1480712890625, 0.2310791015625, 0.1693115234375, 0.1251220703125, 0.1627197265625, 0.1085205078125, 0.09173583984375, 0.1434326171875, 0.08544921875, 0.1474609375, 0.0989990234375, 0.1085205078125, 0.1534423828125, 0.18017578125, 0.0992431640625, 0.14306640625, 0.046844482421875, ...
embed
8774417_c0
8774417
prolog
0
Title: prolog check list Problem title: prolog check list Tags: prolog, list Problem: prolog check list I have the following code: check([],[]). check([X], [Y]) :- X > 0, Y is 1. check([X], [Y]) :- X =:= 0, Y is 0. check([L1|Tail], [L2|Tail2]) :- L1 > 0, L2 is 1, check(Tail,Tail2). check([L1|Tail], [L2|Tail2]) :- L1 =:...
prolog check list prolog check list prolog list Tail Tail2 prolog check list I have the following code: the predicate check creates a table that replace all the items bigger than 0 into 1 . this predicate works for a simple list like this L = [3,4,5,6,0] and produces a list L1 = [1,1,1,1,0] . I need to make the predica...
[ 0.0126953125, -0.00714111328125, -0.0079345703125, 0.005157470703125, -0.01177978515625, 0.01446533203125, -0.0101318359375, -0.01422119140625, 0.021484375, 0.02099609375, 0.0211181640625, -0.00396728515625, -0.002777099609375, -0.00909423828125, 0.007232666015625, 0.015869140625, 0....
[ 502, 4867, 12765, 5303, 1218, 379, 304, 25632, 18151, 1653, 2063, 67, 28282, 23180, 91995, 756, 55769, 167785, 757, 3934, 106, 43240, 8781, 339, 80389, 188636, 27489, 418, 206808, 3871, 3249, 26946, 765, 237, 138, 201, 305, 758, 111, 5941...
[ 0.16650390625, 0.228271484375, 0.268310546875, 0.197021484375, 0.154052734375, 0.1533203125, 0.1396484375, 0.03656005859375, 0.15478515625, 0.197509765625, 0.2164306640625, 0.1326904296875, 0.1158447265625, 0.184326171875, 0.159912109375, 0.0186920166015625, 0.163818359375, 0.09082...
embed
65215605_c0
65215605
prolog
0
Title: Passing from append to difference list on prolog Problem title: Passing from append to difference list on prolog Tags: prolog Problem: Passing from append to difference list on prolog could someone help me on transforming this code with appends into one using difference of list? leaves(nil,[]). leaves(t(X,nil,ni...
Passing from append to difference list on prolog Passing from append to difference list on prolog prolog append Passing BinTree Leaves leaves_dl X-X C-F C-A Passing from append to difference list on prolog could someone help me on transforming this code with appends into one using difference of list? I tried with this,...
[ 0.0274658203125, 0.0107421875, 0.005279541015625, -0.00616455078125, 0.02685546875, 0.0069580078125, -0.01953125, 0.0025482177734375, 0.0240478515625, -0.044921875, 0.01556396484375, 0.0010986328125, 0.0003261566162109375, 0.0146484375, 0.0084228515625, 0.01080322265625, 0.0349121093...
[ 28872, 214, 1295, 114689, 71, 47, 60212, 5303, 98, 502, 4867, 16666, 62731, 64819, 31358, 20469, 1193, 1542, 9, 919, 284, 4358, 27198, 18151, 6468, 3934, 1632, 17368, 111, 37842, 442, 22027, 18, 4488, 3714, 15400, 77947, 187136, 60042, 90...
[ 0.1427001953125, 0.0186767578125, 0.1204833984375, 0.22021484375, 0.1904296875, 0.131591796875, 0.264404296875, 0.22265625, 0.04925537109375, 0.154541015625, 0.2374267578125, 0.12646484375, 0.2174072265625, 0.2047119140625, 0.17724609375, 0.1102294921875, 0.038238525390625, 0.09777...
embed
12289113_c0
12289113
prolog
0
Title: Filtering list of words Problem title: Filtering list of words Tags: filtering, list, prolog Problem: Filtering list of words Goal: Filter out all words in a list not starting with the specified character. The words starting with specified character should be stored in a new list without its first character. Pro...
Filtering list of words Filtering list of words filtering list prolog Filtering filter_word Char Rest Word Words Filtering list of words Goal: Filter out all words in a list not starting with the specified character. The words starting with specified character should be stored in a new list without its first character....
[ -0.00008296966552734375, 0.0064697265625, -0.005157470703125, 0.0025787353515625, -0.004791259765625, 0.0004253387451171875, 0.006622314453125, 0.01434326171875, 0.01611328125, 0.0302734375, -0.002166748046875, 0.00750732421875, -0.014404296875, 0.0216064453125, -0.0264892578125, 0.011...
[ 128896, 214, 5303, 111, 34153, 46312, 502, 4867, 47416, 21656, 49756, 22543, 2016, 289, 12, 1810, 756, 23, 959, 72134, 678, 58735, 62816, 5608, 4343, 3525, 15490, 5117, 15649, 107003, 43240, 237, 179140, 2565, 12765, 35782, 84751, 82230, 16...
[ 0.2900390625, 0.1165771484375, 0.2099609375, 0.106689453125, 0.2357177734375, 0.255859375, 0.116943359375, 0.1790771484375, 0.1544189453125, 0.1456298828125, 0.2156982421875, 0.1866455078125, 0.1728515625, 0.1392822265625, 0.044158935546875, 0.13134765625, 0.0755615234375, 0.031951...
embed
53474479_c0
53474479
prolog
0
Title: Prolog If statement fact Problem title: Prolog If statement fact Tags: prolog Problem: Prolog If statement fact I want to state a unique fact in my Prolog data base to change the outcome of my if statement. My code is as follows: suspect(Killer, mrBoddy) :- affair(mrBoddy, Y), married(X,Y), write('Killer= '), wr...
Prolog If statement fact Prolog If statement fact prolog Prolog Killer motive_to_kill_affair motive_to_kill_greed Prolog If statement fact I want to state a unique fact in my Prolog data base to change the outcome of my if statement. My code is as follows: The output is My Facts I want to add a fact that will change th...
[ 0.018310546875, 0.00653076171875, 0.00909423828125, 0.000759124755859375, -0.00154876708984375, 0.017822265625, 0.0164794921875, 0.00927734375, 0.0033111572265625, -0.0167236328125, -0.0206298828125, -0.002227783203125, -0.0096435546875, 0.00506591796875, 0.021484375, 0.0101318359375, ...
[ 1250, 4867, 4263, 63805, 15824, 502, 104431, 56, 53250, 188, 119261, 93771, 7134, 3444, 47, 11341, 10, 36998, 23, 2053, 3647, 15549, 184345, 2174, 18151, 140992, 83, 2646, 132640, 15190, 450, 1221, 4734, 1632, 605, 33150, 26866, 2750, 69307...
[ 0.1846923828125, 0.268798828125, 0.2305908203125, 0.22900390625, 0.2398681640625, 0.1380615234375, 0.2015380859375, 0.098876953125, 0.2413330078125, 0.14306640625, 0.1781005859375, 0.1043701171875, 0.136474609375, 0.1109619140625, 0.0552978515625, 0.1837158203125, 0.05108642578125, ...
embed
20803863_c0
20803863
prolog
0
Title: How can I Execute one line of code for once in Prolog? Problem title: How can I Execute one line of code for once in Prolog? Tags: prolog Problem: How can I Execute one line of code for once in Prolog? I have a code which reverse the equation from infix notation into postfix notation .. also that code does Evalu...
How can I Execute one line of code for once in Prolog? How can I Execute one line of code for once in Prolog? prolog How Execute Prolog Equation How can I Execute one line of code for once in Prolog? I have a code which reverse the equation from infix notation into postfix notation .. also that code does Evaluate the e...
[ 0.018310546875, 0.006744384765625, 0.0250244140625, 0.0269775390625, 0.00640869140625, -0.00064849853515625, 0.0299072265625, 0.00885009765625, 0.00775146484375, -0.040283203125, -0.003173828125, 0.0234375, -0.007659912109375, -0.01611328125, 0.0137939453125, 0.003143310546875, 0.003...
[ 11249, 831, 87, 211603, 13, 1632, 13315, 111, 18151, 100, 24145, 23, 1250, 4867, 502, 241, 5490, 2320, 39531, 184, 1295, 55923, 110, 22062, 3934, 1305, 151228, 67, 28, 2967, 15190, 219836, 1723, 83, 1528, 30646, 163, 26785, 7, 44691 ]
[ 0.080078125, 0.0966796875, 0.0692138671875, 0.226318359375, 0.1173095703125, 0.166748046875, 0.180419921875, 0.1065673828125, 0.23974609375, 0.1544189453125, 0.2318115234375, 0.1043701171875, 0.2061767578125, 0.272705078125, 0.1365966796875, 0.07861328125, 0.204833984375, 0.0697021...
embed
30018186_c0
30018186
prolog
0
Title: Prolog Wordcounter function something wrong Problem title: Prolog Wordcounter function something wrong Tags: prolog Problem: Prolog Wordcounter function something wrong When I test this string"No, I am definitely not a pie! I get 6 back as count words but 7 is the right answer. I something case I forgot. But I g...
Prolog Wordcounter function something wrong Prolog Wordcounter function something wrong prolog Prolog Wordcounter is_alpha Prolog Wordcounter function something wrong When I test this string"No, I am definitely not a pie! I get 6 back as count words but 7 is the right answer. I something case I forgot. But I get the ri...
[ 0.0037689208984375, -0.01434326171875, -0.0030059814453125, 0.0230712890625, -0.00335693359375, 0.0164794921875, 0.01385498046875, -0.0091552734375, 0.0185546875, -0.0284423828125, -0.006195068359375, -0.0040283203125, 0.01422119140625, 0.0076904296875, 0.01312255859375, 0.002105712890...
[ 1250, 4867, 22543, 71013, 56, 32354, 9844, 44691, 502, 83, 289, 14612, 3034, 903, 79315, 5021, 87, 444, 58621, 959, 10, 2158, 305, 4420, 54529, 34153, 361, 7108, 35166, 7225, 9904, 2389, 434, 6044, 363, 29062, 3060, 3293, 35299, 101935 ]
[ 0.162109375, 0.259521484375, 0.1846923828125, 0.2222900390625, 0.106689453125, 0.2041015625, 0.115234375, 0.22412109375, 0.10760498046875, 0.026947021484375, 0.0572509765625, 0.18701171875, 0.1514892578125, 0.004241943359375, 0.1781005859375, 0.0633544921875, 0.06842041015625, 0.15...
embed
53383843_c0
53383843
prolog
0
Title: Prolog if sentence conditions Problem title: Prolog if sentence conditions Tags: prolog Problem: Prolog if sentence conditions So basically I am trying to check in the middle of a rule if certain conditions are met but the condition depends on another variable. In my case if the Num1 is 10, then the Num2 can't b...
Prolog if sentence conditions Prolog if sentence conditions prolog Prolog Num1 Num2 do_function Prolog if sentence conditions So basically I am trying to check in the middle of a rule if certain conditions are met but the condition depends on another variable. In my case if the Num1 is 10, then the Num2 can't be 1 - if...
[ 0.014404296875, -0.0022430419921875, -0.00078582763671875, 0.01190185546875, -0.0001964569091796875, 0.0169677734375, -0.01116943359375, 0.007080078125, -0.0019683837890625, -0.0179443359375, 0.0027618408203125, -0.000579833984375, -0.01416015625, 0.0130615234375, 0.0257568359375, 0.02...
[ 1250, 4867, 2174, 149357, 27289, 502, 52782, 418, 304, 54, 137175, 198343, 31577, 12765, 86991, 79986, 24233, 621, 435, 70, 35431, 56566, 15700, 77336, 209, 831, 18, 186, 106, 35782, 387, 787, 581, 41, 1294, 43240, 678, 7225, 33022, 5117,...
[ 0.1566162109375, 0.223388671875, 0.1470947265625, 0.232421875, 0.259033203125, 0.13720703125, 0.148681640625, 0.0819091796875, 0.1507568359375, 0.072021484375, 0.1339111328125, 0.0137939453125, 0.01470947265625, 0.15283203125, 0.1026611328125, 0.1510009765625, 0.01348876953125, 0.0...
embed
42907912_c0
42907912
prolog
0
Title: read filename from post method using prolog Problem title: read filename from post method using prolog Tags: html, prolog Problem: read filename from post method using prolog I created a HTML form to browse a csv fil. in 'analyse.prolog' i need a prolog code to get the file name to put it as input to loadCSV fun...
read filename from post method using prolog read filename from post method using prolog html prolog post prolog analyse.prolog Fichier color:rgb border-color:rgb border-style:solid Analyser read filename from post method using prolog I created a HTML form to browse a csv fil. in 'analyse.prolog' i need a prolog code to...
[ 0.048095703125, -0.0252685546875, 0.00128936767578125, 0.005126953125, -0.0036163330078125, 0.006011962890625, -0.00970458984375, 0.0174560546875, -0.017822265625, -0.046142578125, 0.0107421875, -0.004913330078125, -0.035888671875, -0.025390625, -0.000896453857421875, -0.00089645385742...
[ 12301, 11435, 11627, 1295, 1305, 55300, 17368, 502, 4867, 7693, 51422, 3454, 3698, 56, 10576, 275, 132988, 46133, 40946, 97281, 105275, 42, 75935, 19097, 3173, 140773, 184, 20763, 334, 12879, 58345, 3871, 18151, 2046, 9351, 3884, 237, 107730,...
[ 0.184814453125, 0.1900634765625, 0.189208984375, 0.1339111328125, 0.181884765625, 0.200439453125, 0.056060791015625, 0.1776123046875, 0.253173828125, 0.1307373046875, 0.226806640625, 0.123291015625, 0.007415771484375, 0.032958984375, 0.1048583984375, 0.004119873046875, 0.068054199218...
embed
25320771_c0
25320771
prolog
0
Title: Appending a list in Prolog Problem title: Appending a list in Prolog Tags: prolog Problem: Appending a list in Prolog I'm just starting logic programming(in Prolog), and it's very different from procedure/OO. Please help out: male(a). male(b). male(c). female(x). female(y). append([],X,X). append([X|Y],Z,[X|W]):...
Appending a list in Prolog Appending a list in Prolog prolog Appending Prolog MyList Output Appending a list in Prolog I'm just starting logic programming(in Prolog), and it's very different from procedure/OO. Please help out: I'm trying to write a predicate getAllPartners(MyList, Output) that outputs a list including ...
[ -0.002197265625, 0.021728515625, 0.0020599365234375, 0.0137939453125, -0.013916015625, 0.01092529296875, -0.01263427734375, -0.00162506103515625, 0.0167236328125, -0.0238037109375, 0.01287841796875, -0.01312255859375, 0, 0.006378173828125, 0, 0.0020751953125, 0.0140380859375, 0.012...
[ 5787, 96819, 10, 5303, 23, 1250, 4867, 502, 2646, 154663, 13538, 72134, 62775, 56037, 4552, 12921, 50491, 30563, 4358, 31577, 33022, 1653, 2063, 67, 2046, 43512, 219006, 31852, 7077, 140992, 756, 7722, 162515, 89543, 7086, 757, 7, 26366, 95...
[ 0.1510009765625, 0.112548828125, 0.00970458984375, 0.225341796875, 0.033050537109375, 0.17529296875, 0.258544921875, 0.122314453125, 0.1390380859375, 0.25439453125, 0.1170654296875, 0.0380859375, 0.128662109375, 0.0655517578125, 0.01953125, 0.068603515625, 0.1119384765625, 0.099304...
embed
41791493_c0
41791493
prolog
0
Title: How to find two numbers where a restriction is applied Problem title: How to find two numbers where a restriction is applied Tags: prolog Problem: How to find two numbers where a restriction is applied Let's say that I want to find two numbers where the sum of these are 8, are from 1-9 and must be different(it i...
How to find two numbers where a restriction is applied How to find two numbers where a restriction is applied prolog How dif_list check1_9 find_number ERROR Arguments How to find two numbers where a restriction is applied Let's say that I want to find two numbers where the sum of these are 8, are from 1-9 and must be d...
[ -0.0064697265625, 0.00005125999450683594, 0.0106201171875, 0.020263671875, -0.005645751953125, 0.02392578125, -0.0103759765625, 0.03662109375, 0.016357421875, -0.01104736328125, 0.0059814453125, -0.0262451171875, 0.00823974609375, 0.005340576171875, 0.0157470703125, -0.00164794921875, ...
[ 11249, 47, 7413, 6626, 101935, 7440, 10, 185190, 83, 190659, 502, 4867, 45755, 6562, 12765, 1126, 2606, 1297, 151206, 24638, 112140, 3444, 10554, 6097, 382, 1295, 106, 15205, 8110, 12921, 162520, 19107, 17727, 139303, 10461, 54397, 26458, 692...
[ 0.060546875, 0.040374755859375, 0.1611328125, 0.1751708984375, 0.195068359375, 0.1539306640625, 0.0977783203125, 0.295166015625, 0.1226806640625, 0.194580078125, 0.1341552734375, 0.1839599609375, 0.181396484375, 0.1639404296875, 0.115234375, 0.1912841796875, 0.1307373046875, 0.0798...
embed
4308283_c0
4308283
prolog
0
Title: please help with a simple Prolog question Problem title: please help with a simple Prolog question Tags: prolog Problem: please help with a simple Prolog question I have the following Prolog code in my program: conn([oxford_circus, baker_street], 4). conn([baker_street, kings_cross], 5). conn([oxford_circus, war...
please help with a simple Prolog question please help with a simple Prolog question prolog Prolog oxford_circus baker_street kings_cross warren_street please help with a simple Prolog question I have the following Prolog code in my program: Now I call the s predicate as s(oxford_circus, M, C). , but unfortunately it do...
[ 0.00020599365234375, 0.007293701171875, 0.0166015625, 0.017578125, -0.0032196044921875, 0.00323486328125, -0.0125732421875, -0.003448486328125, 0.017822265625, -0.056640625, 0.005523681640625, -0.0146484375, -0.022216796875, -0.0250244140625, 0.002899169921875, -0.0045166015625, 0.00...
[ 22936, 4358, 678, 8781, 1250, 4867, 9655, 502, 36, 425, 13534, 82063, 223, 3472, 56, 5967, 126, 60097, 7, 95665, 1631, 982, 70, 25632, 18151, 1528, 11782, 91, 1653, 2063, 67, 237, 17574, 276, 313, 104272, 14602, 35782, 64457, 128219, 27...
[ 0.05401611328125, 0.10516357421875, 0.0699462890625, 0.16748046875, 0.1793212890625, 0.2384033203125, 0.1072998046875, 0.15478515625, 0.0721435546875, 0.1173095703125, 0.2052001953125, 0.162353515625, 0.15478515625, 0.135498046875, 0.0924072265625, 0.1634521484375, 0.034912109375, ...
embed
13810495_c0
13810495
prolog
0
Title: sumList predicate needs to check to see if their Sum is equal to the sum of all the elements in the list Problem title: sumList predicate needs to check to see if their Sum is equal to the sum of all the elements in the list Tags: prolog Problem: sumList predicate needs to check to see if their Sum is equal to t...
sumList predicate needs to check to see if their Sum is equal to the sum of all the elements in the list sumList predicate needs to check to see if their Sum is equal to the sum of all the elements in the list prolog Sum List Xrest Sum1 sumList predicate needs to check to see if their Sum is equal to the sum of all the...
[ 0.00396728515625, 0.00017833709716796875, 0.00958251953125, 0.0185546875, -0.037841796875, 0.01336669921875, -0.0021514892578125, 0.017822265625, 0.0223388671875, -0.003936767578125, 0.01904296875, -0.0012664794921875, 0.003570556640625, 0.0086669921875, 0.001617431640625, 0.0299072265...
[ 10554, 154663, 1653, 2063, 67, 27117, 12765, 1957, 2174, 36335, 105950, 47, 756, 80854, 5303, 502, 4867, 32036, 1193, 56644, 418, 2363, 29479, 55300, 34475, 136, 15190, 23, 31577, 44691, 5351, 2967 ]
[ 0.237060546875, 0.232666015625, 0.1351318359375, 0.153564453125, 0.0262298583984375, 0.04351806640625, 0.1923828125, 0.06976318359375, 0.03668212890625, 0.24169921875, 0.146728515625, 0.0731201171875, 0.0574951171875, 0.1519775390625, 0.182861328125, 0.0877685546875, 0.117431640625, ...
embed
61553805_c0
61553805
prolog
0
Title: Three Prolog questions include grandparent Problem title: Three Prolog questions include grandparent Tags: prolog Problem: Three Prolog questions include grandparent This program will be tested using SWI Prolog. Family.pl contains facts about family members, who is married to whom, sorts of things. Rules must be...
Three Prolog questions include grandparent Three Prolog questions include grandparent prolog grandparent Three Prolog Three Prolog questions include grandparent This program will be tested using SWI Prolog. Family.pl contains facts about family members, who is married to whom, sorts of things. Rules must be added at th...
[ 0.00946044921875, 0.0277099609375, 0.01385498046875, 0.00048828125, -0.01470947265625, 0.0191650390625, -0.0012664794921875, 0.0162353515625, 0.006134033203125, -0.0191650390625, 0.00762939453125, -0.0177001953125, -0.01483154296875, -0.003936767578125, 0.00848388671875, 0.015625, 0....
[ 129335, 1250, 4867, 17582, 26698, 9963, 99547, 502, 1528, 3034, 17368, 159, 38969, 59745, 5, 2424, 70541, 15824, 1672, 14449, 43032, 2750, 83, 139505, 47, 136565, 12096, 8966, 139118, 8110, 49814, 103136, 137447, 73197, 11435, 601, 18781, 427...
[ 0.2015380859375, 0.1771240234375, 0.24755859375, 0.189453125, 0.07122802734375, 0.1781005859375, 0.254638671875, 0.151611328125, 0.168701171875, 0.1748046875, 0.061309814453125, 0.029815673828125, 0.186767578125, 0.167236328125, 0.00103759765625, 0.1973876953125, 0.054473876953125, ...
embed
16240456_c0
16240456
prolog
0
Title: If satisfiable, cut before, otherwise fail Problem title: If satisfiable, cut before, otherwise fail Tags: prolog Problem: If satisfiable, cut before, otherwise fail Please see this code snipped: ..., findall(X, predicate(Input1, X), XS), XS \== [], !, member(X, XS), ... That will find all solutions for predicat...
If satisfiable, cut before, otherwise fail If satisfiable, cut before, otherwise fail prolog Input1 Uses If satisfiable, cut before, otherwise fail Please see this code snipped: That will find all solutions for predicate(_, X) in XS , cut, then "iterate" over the X in XS. Is it possible to replace findall/3 in here? Mo...
[ 0.000965118408203125, 0.00885009765625, 0.002105712890625, 0.01409912109375, -0.01202392578125, 0.007659912109375, 0.021484375, -0.000972747802734375, 0.0150146484375, -0.03271484375, 0.01416015625, 0.0137939453125, -0.01177978515625, 0.003631591796875, 0.0128173828125, 0.0126953125, ...
[ 4263, 40407, 14, 2886, 59226, 8108, 120262, 35782, 502, 4867, 360, 7077, 418, 36836, 18151, 7413, 756, 51347, 1653, 2063, 67, 1193, 23, 112720, 1486, 17957, 645, 7722, 91995, 5584, 18113, 3688, 60892, 3714, 2174, 442, 100, 21342, 16487, 9...
[ 0.098876953125, 0.2236328125, 0.1212158203125, 0.191650390625, 0.20556640625, 0.1927490234375, 0.119140625, 0.1962890625, 0.1253662109375, 0.156494140625, 0.08538818359375, 0.1378173828125, 0.058349609375, 0.1043701171875, 0.03466796875, 0.142822265625, 0.0926513671875, 0.187744140...
embed
51909612_c0
51909612
prolog
0
Title: How to stop backtracking and end the recursion in Prolog Problem title: How to stop backtracking and end the recursion in Prolog Tags: prolog Problem: How to stop backtracking and end the recursion in Prolog I'm currently learning SWI-Prolog. I want to implement a function factorable(X) which is true if X can be...
How to stop backtracking and end the recursion in Prolog How to stop backtracking and end the recursion in Prolog prolog How Prolog How to stop backtracking and end the recursion in Prolog I'm currently learning SWI-Prolog. I want to implement a function factorable(X) which is true if X can be written as X = n*b. This ...
[ 0.0169677734375, 0.0189208984375, 0.0205078125, 0.011474609375, 0.003082275390625, 0.0025787353515625, -0.007598876953125, -0.0079345703125, 0.00168609619140625, -0.0245361328125, -0.0030059814453125, -0.0101318359375, 0.003265380859375, -0.003143310546875, 0.0186767578125, 0.001487731...
[ 11249, 7279, 4420, 125728, 214, 136, 3564, 195625, 1830, 1250, 4867, 502, 23, 159, 38969, 10752, 29479, 32354, 31461, 2886, 1542, 29568, 1193, 59121, 237, 2203, 1639, 275, 28219, 3642, 678, 35782, 15490, 59226, 12447, 1256, 10476, 34759, 15...
[ 0.053497314453125, 0.1973876953125, 0.1624755859375, 0.232666015625, 0.08935546875, 0.0275115966796875, 0.184326171875, 0.1888427734375, 0.1197509765625, 0.1683349609375, 0.2249755859375, 0.1207275390625, 0.03033447265625, 0.001495361328125, 0.125732421875, 0.09429931640625, 0.057922...
embed
60919189_c0
60919189
prolog
0
Title: Prolog Remove element from list Problem title: Prolog Remove element from list Tags: prolog, list Problem: Prolog Remove element from list I have the following fact to remove all occurences of a element in a list. Although the output is correct, the element is just replaced for a blank space remover( _, [], [])....
Prolog Remove element from list Prolog Remove element from list prolog list list Prolog Remove Res remover_primeira Prolog Remove element from list I have the following fact to remove all occurences of a element in a list. Although the output is correct, the element is just replaced for a blank space When I call remove...
[ 0.00390625, 0.024169921875, -0.001617431640625, 0.0201416015625, -0.00885009765625, 0.005126953125, -0.0108642578125, 0.0025787353515625, 0.009765625, -0.02197265625, 0.00579833984375, -0.000629425048828125, -0.00897216796875, -0.009765625, 0.003509521484375, 0.0033721923828125, 0.03...
[ 1250, 4867, 181139, 12830, 1295, 5303, 502, 9624, 87388, 42, 114654, 2634, 25632, 15824, 756, 74918, 69098, 23, 140992, 26785, 91995, 71, 44237, 32628, 11782, 4734, 5117, 6620, 5701, 36917, 444, 20594, 44691 ]
[ 0.125732421875, 0.2220458984375, 0.1776123046875, 0.183837890625, 0.12841796875, 0.2056884765625, 0.07421875, 0.09912109375, 0.219482421875, 0.1602783203125, 0.06884765625, 0.10986328125, 0.0248565673828125, 0.1375732421875, 0.0928955078125, 0.154541015625, 0.1195068359375, 0.01123...
embed
57661999_c0
57661999
prolog
0
Title: Lists size multiplication Problem title: Lists size multiplication Tags: prolog, successor-arithmetics Problem: Lists size multiplication I'm new to Prolog and I'm trying to get my head around lists. The problem I'm struggling with is: Given numbers in the form of lists (1 : [x], 3: [x, x, x]), implement the 'ti...
Lists size multiplication Lists size multiplication prolog successor-arithmetics Lists Lists size multiplication I'm new to Prolog and I'm trying to get my head around lists. The problem I'm struggling with is: Given numbers in the form of lists (1 : [x], 3: [x, x, x]), implement the 'times' predicate /3. E.g.: times([...
[ 0.004730224609375, 0.0230712890625, 0.0135498046875, 0.005126953125, -0.016357421875, -0.0125732421875, -0.0198974609375, 0.013427734375, 0.00469970703125, -0.022216796875, 0.013916015625, -0.00177001953125, -0.013671875, 0.0186767578125, -0.007659912109375, -0.002105712890625, 0.023...
[ 32036, 13267, 127664, 7, 502, 4867, 39457, 42, 8962, 282, 3525, 1250, 10336, 10932, 5303, 2967, 237875, 77878, 101935, 3173, 425, 22408, 1022, 29479, 70141, 1653, 2063, 67, 18113, 20028, 627, 2203, 1001, 1636, 116, 96362, 26847, 81979, 1736...
[ 0.2210693359375, 0.15576171875, 0.197265625, 0.0221710205078125, 0.1282958984375, 0.220947265625, 0.203857421875, 0.09521484375, 0.1005859375, 0.0247039794921875, 0.0226593017578125, 0.1326904296875, 0.0367431640625, 0.00714111328125, 0.226318359375, 0.1092529296875, 0.0638427734375,...
embed
8965308_c0
8965308
prolog
0
Title: My first prolog tiny program doesn't work Problem title: My first prolog tiny program doesn't work Tags: prolog Problem: My first prolog tiny program doesn't work I've thrown a glance at Prolog, and this is my first little try at writing it: it directly bugs at my first queries. (in the example below i...
My first prolog tiny program doesn't work My first prolog tiny program doesn't work prolog Yes ERROR Out Exception _L147 My first prolog tiny program doesn't work I've thrown a glance at Prolog, and this is my first little try at writing it: it directly bugs at my first queries. (in the example below i asked ...
[ 0.0145263671875, 0.0089111328125, 0.00982666015625, 0.01220703125, -0.005401611328125, 0.032470703125, -0.0091552734375, 0.0167236328125, -0.0003719329833984375, -0.042724609375, 0.00213623046875, 0.029052734375, 0.0002536773681640625, -0.000347137451171875, 0.01385498046875, 0.0103759...
[ 2646, 5117, 502, 4867, 57278, 1528, 22027, 3768, 18, 4488, 32635, 151206, 24638, 13538, 5443, 63928, 866, 128497, 104250, 67233, 1250, 10176, 9790, 32562, 105237, 54608, 7, 99, 41, 10484, 27781, 37170, 2565, 6954, 131148, 11341, 11583, 55109,...
[ 0.0238494873046875, 0.1717529296875, 0.1766357421875, 0.260498046875, 0.2386474609375, 0.1942138671875, 0.0921630859375, 0.11962890625, 0.12646484375, 0.1671142578125, 0.0736083984375, 0.0889892578125, 0.052276611328125, 0.1407470703125, 0.0382080078125, 0.0819091796875, 0.0693359375...
embed
35088686_c0
35088686
prolog
0
Title: changing and removing lines from text file using swi-prolog Problem title: changing and removing lines from text file using swi-prolog Tags: database, prolog, text-files Problem: changing and removing lines from text file using swi-prolog I'm using text files as a database for saving users' information for a gam...
changing and removing lines from text file using swi-prolog changing and removing lines from text file using swi-prolog database prolog text-files text swi-prolog Name Password Age Points changing and removing lines from text file using swi-prolog I'm using text files as a database for saving users' information for a g...
[ 0.01806640625, 0.004119873046875, 0.007659912109375, 0.013916015625, -0.007293701171875, -0.01068115234375, -0.00531005859375, 0.0269775390625, 0.0091552734375, -0.01446533203125, -0.015869140625, 0.01611328125, -0.0142822265625, -0.0103759765625, 0.0322265625, 0.00421142578125, 0.03...
[ 151134, 136, 49146, 124519, 1295, 7986, 11435, 17368, 91, 2452, 3454, 4867, 63399, 502, 29822, 15757, 170461, 72944, 41097, 102158, 237, 6496, 72095, 4677, 6712, 7228, 57, 1884, 38937, 163612, 139117, 47416, 429, 147534, 3444, 15549, 15490, 4...
[ 0.1854248046875, 0.0389404296875, 0.1151123046875, 0.2139892578125, 0.10986328125, 0.1875, 0.18310546875, 0.07037353515625, 0.039886474609375, 0.2215576171875, 0.1510009765625, 0.2015380859375, 0.1348876953125, 0.1278076171875, 0.140625, 0.050048828125, 0.130859375, 0.1197509765625...
embed
71204495_c1
71204495
prolog
1
on the feasibility of such features as well : Systematically characterize and describe those recursions, such that, when one is detected, a user-defined predicate or clause could be called that matches this specific form of recursion. Detect patterns that result in an exponential number of combinatorial choices, preve...
on the feasibility of such features as well : Systematically characterize and describe those recursions, such that, when one is detected, a user-defined predicate or clause could be called that matches this specific form of recursion. Detect patterns that result in an exponential number of combinatorial choices, preve...
[ 0.000820159912109375, 0.00946044921875, 0.00653076171875, 0.042236328125, 0.0240478515625, -0.0009002685546875, -0.002716064453125, -0.004180908203125, 0.01458740234375, -0.023681640625, 0.017822265625, 0.0194091796875, -0.007293701171875, 0.002777099609375, 0.007354736328125, 0.007049...
[ 98, 3820, 1544, 83259, 6044, 66139, 5299, 152, 12353, 257, 71407, 62816, 20650, 98363, 8382, 195625, 17514, 96391, 38937, 112, 5983, 1653, 2063, 67, 70731, 5809, 35839, 14858, 29458, 3173, 1830, 579, 24762, 103510, 7, 16750, 78643, 14012, 2...
[ 0.06170654296875, 0.1436767578125, 0.1300048828125, 0.118896484375, 0.0743408203125, 0.2000732421875, 0.000274658203125, 0.003204345703125, 0.121337890625, 0.0625, 0.032958984375, 0.1461181640625, 0.1036376953125, 0.12255859375, 0.00799560546875, 0.2471923828125, 0.130615234375, 0....
embed
16157813_c0
16157813
prolog
0
Title: Function doesn't stop after first result - Prolog Problem title: Function doesn't stop after first result - Prolog Tags: prolog Problem: Function doesn't stop after first result - Prolog I don't understand why the function doesn't stop after first result in this: getNo(A, [[A,X]|_], X). getNo(A, [_|Tai...
Function doesn't stop after first result - Prolog Function doesn't stop after first result - Prolog prolog Prolog Tail Function doesn't stop after first result - Prolog I don't understand why the function doesn't stop after first result in this: And example inputs: The full stop works when the element is not ...
[ -0.00015544891357421875, 0.0205078125, 0.0157470703125, 0.0031585693359375, -0.0155029296875, -0.0023345947265625, 0.013427734375, -0.0003204345703125, 0.0133056640625, -0.01507568359375, 0.0081787109375, -0.01495361328125, -0.01214599609375, -0.0191650390625, 0.0172119140625, 0.002304...
[ 28670, 10763, 22027, 3768, 18, 7279, 7103, 5117, 16750, 1250, 4867, 502, 1218, 379, 28219, 15400, 32354, 903, 27781, 107730, 4393, 43240, 12830, 959, 10298, 53, 100, 44084, 8337, 6626, 35166, 11, 4568, 13315, 113660, 442, 831, 2685, 38, 8...
[ 0.162109375, 0.1270751953125, 0.060791015625, 0.051605224609375, 0.0821533203125, 0.239990234375, 0.119140625, 0.1361083984375, 0.2064208984375, 0.1099853515625, 0.2158203125, 0.063720703125, 0.1136474609375, 0.1259765625, 0.0904541015625, 0.091796875, 0.199951171875, 0.03747558593...
embed
56175460_c0
56175460
prolog
0
Title: Generate list and check if the values are increasing Problem title: Generate list and check if the values are increasing Tags: prolog Problem: Generate list and check if the values are increasing Currently, I'm generating a list, in which each element has a value equal to the square of the preceding element plus...
Generate list and check if the values are increasing Generate list and check if the values are increasing prolog Generate N-1 generate_list Generate list and check if the values are increasing Currently, I'm generating a list, in which each element has a value equal to the square of the preceding element plus the value...
[ 0.0009918212890625, 0.00128173828125, -0.01611328125, 0.0029449462890625, 0.00372314453125, 0.001922607421875, -0.01708984375, -0.022216796875, 0.019775390625, -0.006317138671875, 0.019287109375, 0.0203857421875, -0.005035400390625, -0.0186767578125, 0.0086669921875, -0.001968383789062...
[ 155370, 67, 5303, 12765, 2174, 142424, 621, 118055, 70, 502, 4867, 541, 5759, 139392, 6562, 12663, 1916, 12638, 12830, 34292, 105950, 108047, 107671, 214, 1001, 567, 47, 12989, 297, 959, 29479, 130250, 31577, 48281, 30646, 11343, 98320, 29568...
[ 0.1949462890625, 0.027313232421875, 0.2318115234375, 0.20166015625, 0.08087158203125, 0.186767578125, 0.0406494140625, 0.220458984375, 0.006103515625, 0.1058349609375, 0.1922607421875, 0.059967041015625, 0.123779296875, 0.220703125, 0.214599609375, 0.1510009765625, 0.03607177734375, ...
embed
76139099_c2
76139099
prolog
2
louise_victoria). parents(edwardVII, alexandra, maud). parents(albert, victoriaI, victoria1). parents(albert, victoriaI, edwardVII). parents(albert, victoriaI, alice). parents(albert, victoriaI, alfred). parents(albert, victoriaI, helena). parents(albert, victoriaI, arthur). parents(albert, victoriaI, leopold). parent...
louise_victoria). parents(edwardVII, alexandra, maud). parents(albert, victoriaI, victoria1). parents(albert, victoriaI, edwardVII). parents(albert, victoriaI, alice). parents(albert, victoriaI, alfred). parents(albert, victoriaI, helena). parents(albert, victoriaI, arthur). parents(albert, victoriaI, leopold). parent...
[ 0.005523681640625, 0.01361083984375, 0.01300048828125, 0.0191650390625, 0.016357421875, -0.004638671875, -0.0201416015625, 0.0108642578125, 0.003204345703125, -0.04541015625, -0.004241943359375, -0.0125732421875, -0.0159912109375, 0.0216064453125, 0.00830078125, -0.0146484375, -0.000...
[ 459, 34, 3075, 454, 21605, 13333, 194, 27863, 132, 297, 19364, 83223, 4, 662, 52821, 291, 1674, 289, 16466, 88927, 568, 17727, 5, 2223, 10, 13348, 41347, 2923, 76, 126536, 5877, 42659, 32512, 95022, 1108, 26561, 2506, 53, 1478, 15583, 4...
[ 0.08740234375, 0.193115234375, 0.234619140625, 0.04888916015625, 0.1712646484375, 0.2685546875, 0.1165771484375, 0.259765625, 0.051788330078125, 0.0836181640625, 0.1697998046875, 0.20849609375, 0.010833740234375, 0.010009765625, 0.1461181640625, 0.0293731689453125, 0.1419677734375, ...
embed
4569685_c0
4569685
prolog
0
Title: Prolog character stream error Problem title: Prolog character stream error Tags: prolog Problem: Prolog character stream error My code is supposed to stop when it finds stop in the file its reading from, but its not. I keep getting an error: % reads in a character and then checks whether this character is a blan...
Prolog character stream error Prolog character stream error prolog Prolog Word Rest word_to_number Symbol NewX atom_to_term Calculating Result Prolog character stream error My code is supposed to stop when it finds stop in the file its reading from, but its not. I keep getting an error: Any help would be greatly apprec...
[ 0.01458740234375, -0.00823974609375, 0.0028839111328125, -0.0184326171875, 0.0034027099609375, 0.01220703125, 0.01312255859375, -0.015869140625, 0.01190185546875, -0.0213623046875, -0.0026092529296875, -0.0196533203125, -0.0047607421875, -0.01409912109375, 0.00531005859375, 0.017944335...
[ 1250, 4867, 62816, 75973, 18499, 502, 22543, 49756, 2565, 188, 2606, 131899, 2356, 1542, 34627, 32166, 212467, 126684, 18151, 134598, 7279, 3229, 7413, 23, 11435, 6863, 16454, 1295, 1284, 959, 13695, 20949, 28541, 4358, 2806, 77947 ]
[ 0.1922607421875, 0.254150390625, 0.201171875, 0.2724609375, 0.1966552734375, 0.134765625, 0.08514404296875, 0.1810302734375, 0.0850830078125, 0.1112060546875, 0.0626220703125, 0.1480712890625, 0.09405517578125, 0.1318359375, 0.1650390625, 0.1484375, 0.1300048828125, 0.129638671875,...
embed
59450679_c0
59450679
prolog
0
Title: Sublists of consecutive similar elements from a list in Prolog Problem title: Sublists of consecutive similar elements from a list in Prolog Tags: list, prolog, grouping Problem: Sublists of consecutive similar elements from a list in Prolog I'm new to Prolog and trying to do this question. We have a list List =...
Sublists of consecutive similar elements from a list in Prolog Sublists of consecutive similar elements from a list in Prolog list prolog grouping a Sublists Prolog List Pack Arithmetic _1608 _1688 _1762 Sublists of consecutive similar elements from a list in Prolog I'm new to Prolog and trying to do this question. We ...
[ 0.017333984375, 0.00112152099609375, 0.00933837890625, 0.002899169921875, -0.0224609375, 0.028076171875, -0.0155029296875, 0.0164794921875, 0.0224609375, 0.0133056640625, 0.0181884765625, 0.0194091796875, 0.000244140625, 0.0050048828125, -0.01251220703125, 0.0235595703125, 0.02270507...
[ 8273, 6562, 148390, 21373, 80854, 1295, 5303, 1250, 4867, 502, 21115, 32036, 56607, 8962, 2485, 8318, 12772, 2489, 10837, 23, 43824, 3934, 1614, 5608, 8337, 37842, 2060, 17336, 18499, 129745, 31577, 86869, 44402, 436, 5046, 56740, 36743, 839,...
[ 0.2152099609375, 0.251708984375, 0.17431640625, 0.2159423828125, 0.1849365234375, 0.0565185546875, 0.1468505859375, 0.1463623046875, 0.232666015625, 0.113525390625, 0.15771484375, 0.111572265625, 0.1439208984375, 0.0543212890625, 0.0755615234375, 0.148681640625, 0.1419677734375, 0....
embed
75264751_c0
75264751
prolog
0
Title: Why are solutions in the wrong order? Problem title: Why are solutions in the wrong order? Tags: prolog Problem: Why are solutions in the wrong order? I have been asked to define a predicate subseq/2 , with signature subseq(-,+) , which is true when both its arguments are lists, and its first argument can be con...
Why are solutions in the wrong order? Why are solutions in the wrong order? prolog Why Why are solutions in the wrong order? I have been asked to ... with intended solution order: My code: My code's solution order: How do I achieve the intended solution order?
[ 0.0152587890625, 0.0128173828125, 0.01397705078125, 0.0137939453125, -0.0242919921875, 0.003753662109375, -0.01458740234375, 0.000125885009765625, 0.00762939453125, 0.017578125, 0.009765625, 0.004302978515625, -0.008056640625, 0.00201416015625, 0.00537109375, 0.00127410888671875, 0.0...
[ 44084, 621, 51347, 23, 70, 44691, 12989, 502, 4867, 37170, 47, 678, 179140, 29806, 2646, 18151, 11249, 69307 ]
[ 0.1722412109375, 0.0987548828125, 0.2490234375, 0.123779296875, 0.07037353515625, 0.1793212890625, 0.2039794921875, 0.05718994140625, 0.09649658203125, 0.0203399658203125, 0.0016183853149414062, 0.0762939453125, 0.1453857421875, 0.1944580078125, 0.0439453125, 0.12335205078125, 0.0457...
embed
37197704_c0
37197704
prolog
0
Title: How do I append the sum of list within given list in prolog? Problem title: How do I append the sum of list within given list in prolog? Tags: prolog Problem: How do I append the sum of list within given list in prolog? I'm trying to append the sum of a list within the given list, but not getting exactly what I ...
How do I append the sum of list within given list in prolog? How do I append the sum of list within given list in prolog? prolog How list_sum Lname Lvalues List Sum Out list1 list2 How do I append the sum of list within given list in prolog? I'm trying to append the sum of a list within the given list, but not getting ...
[ 0.00189208984375, 0.01287841796875, 0.00848388671875, 0.0023956298828125, -0.0181884765625, 0.0172119140625, -0.0034942626953125, 0.0177001953125, 0.0240478515625, 0.0115966796875, 0.0225830078125, -0.0103759765625, -0.0028228759765625, 0.005645751953125, 0.007049560546875, 0.008850097...
[ 11249, 114689, 71, 10554, 111, 5303, 28032, 34475, 502, 4867, 11832, 11627, 27494, 32036, 36335, 13538, 304, 70, 23, 31577, 3871, 107730, 140992, 41206, 27781, 6626, 62163, 124632 ]
[ 0.03662109375, 0.1634521484375, 0.109375, 0.2186279296875, 0.0899658203125, 0.186279296875, 0.162109375, 0.08282470703125, 0.1331787109375, 0.1983642578125, 0.1943359375, 0.09881591796875, 0.113037109375, 0.1156005859375, 0.1746826171875, 0.05816650390625, 0.0269775390625, 0.046813...
embed
37926483_c0
37926483
prolog
0
Title: Prolog existence_error for predicate in generated prolog file Problem title: Prolog existence_error for predicate in generated prolog file Tags: prolog Problem: Prolog existence_error for predicate in generated prolog file I'm having a problem with a program that I'm writing. The program takes an input and gener...
Prolog existence_error for predicate in generated prolog file Prolog existence_error for predicate in generated prolog file prolog Prolog existence_error Prolog existence_error for predicate in generated prolog file I'm having a problem with a program that I'm writing. The program takes an input and generates a prolog ...
[ 0.01708984375, 0.01123046875, -0.0038909912109375, 0.0191650390625, 0.0002994537353515625, 0.0257568359375, 0.003753662109375, 0.006011962890625, -0.0032806396484375, -0.037109375, 0.006256103515625, 0.00616455078125, -0.0145263671875, -0.0142822265625, 0.030029296875, -0.0091552734375...
[ 1250, 4867, 116311, 188800, 100, 1653, 2063, 67, 139392, 502, 11435, 23, 2967, 1528, 32562, 107730, 35509, 68018, 110, 158, 71, 571, 1405, 151107, 80934, 3034, 9790, 26458, 15190, 61924, 98320, 142424, 10750, 59090, 110833 ]
[ 0.157470703125, 0.2208251953125, 0.220947265625, 0.2352294921875, 0.0277099609375, 0.1546630859375, 0.2054443359375, 0.0390625, 0.150390625, 0.13916015625, 0.133056640625, 0.033203125, 0.064453125, 0.1083984375, 0.0311737060546875, 0.091796875, 0.0452880859375, 0.05059814453125, ...
embed
40854620_c0
40854620
prolog
0
Title: Remove duplicates in backtracking Problem title: Remove duplicates in backtracking Tags: prolog Problem: Remove duplicates in backtracking I have a predicate next which essentially removes numbers from a list, in the attempt to decrease the overall size of the list. So for example I have a list: [3,2,1] next wil...
Remove duplicates in backtracking Remove duplicates in backtracking prolog Remove Tin Tout Remove duplicates in backtracking I have a predicate next which essentially removes numbers from a list, in the attempt to decrease the overall size of the list. So for example I have a list: next will remove certain values from ...
[ 0.00970458984375, 0.0303955078125, 0.026611328125, 0.006591796875, -0.007232666015625, -0.00933837890625, -0.0019989013671875, 0.01190185546875, 0.013427734375, -0.02880859375, -0.0205078125, 0.0244140625, 0.015869140625, 0.005401611328125, -0.0123291015625, 0.0279541015625, 0.005737...
[ 181139, 171763, 1636, 23, 4420, 125728, 214, 502, 4867, 8081, 31051, 1653, 2063, 67, 11737, 85590, 87388, 101935, 1295, 5303, 81887, 47, 227204, 128512, 13267, 24233, 142424, 30646, 1884, 51042, 26499, 7413, 756, 7722, 25813, 2967, 119140, 11...
[ 0.1485595703125, 0.25, 0.1497802734375, 0.0215911865234375, 0.1885986328125, 0.251708984375, 0.1090087890625, 0.1197509765625, 0.213623046875, 0.12841796875, 0.14599609375, 0.160888671875, 0.183837890625, 0.1314697265625, 0.2393798828125, 0.025177001953125, 0.15478515625, 0.1376953...
embed
42959139_c0
42959139
prolog
0
Title: Rule in Prolog with Variable Problem title: Rule in Prolog with Variable Tags: prolog Problem: Rule in Prolog with Variable Like the answer in How to define simple rule in prolog i define the following programm: should(X, go_to(X, toilet)) :- full_bladder(X). ?- assert(full_bladder(bob)). true. ?- should(bob, Ac...
Rule in Prolog with Variable Rule in Prolog with Variable prolog Rule Prolog Variable go_to full_bladder Action empty_bladder Rule in Prolog with Variable Like the answer in How to define simple rule in prolog i define the following programm: I add now the facts: How can I now define the rule for: "when currentlocation...
[ 0.00008058547973632812, -0.00994873046875, 0.00299072265625, 0.02490234375, 0.0062255859375, 0.022216796875, -0.0035400390625, 0.0198974609375, 0.0031890869140625, -0.032470703125, 0.009033203125, -0.000926971435546875, -0.006927490234375, -0.00604248046875, 0.0087890625, -0.0054626464...
[ 139118, 23, 1250, 4867, 678, 84572, 2886, 502, 738, 188, 4393, 22877, 820, 57945, 201505, 61924, 8781, 79986, 25632, 28966, 15824, 3220, 43581, 87632, 64848, 136, 7068, 47, 4568, 15673 ]
[ 0.1981201171875, 0.0176849365234375, 0.13818359375, 0.20263671875, 0.07568359375, 0.1533203125, 0.088623046875, 0.09228515625, 0.097412109375, 0.12890625, 0.158447265625, 0.16796875, 0.1253662109375, 0.1214599609375, 0.1878662109375, 0.1451416015625, 0.08660888671875, 0.18286132812...
embed
75637252_c0
75637252
prolog
0
Title: Format ignore non important underscore variables Problem title: Format ignore non important underscore variables Tags: prolog Problem: Format ignore non important underscore variables I'm trying to print the results as a form of aX^2+bX+c and I don't want the variables to be printed if it's value is non importan...
Format ignore non important underscore variables Format ignore non important underscore variables prolog coefficients Format polynomial_string PolyString Generate Sg2 Coef2 Var2 Expo2 Sg1 Coef1 Var1 Sg0 Coef0 Build Format ignore non important underscore variables I'm trying to print the results as a form of aX^2+bX+c a...
[ -0.00165557861328125, 0.0091552734375, -0.00188446044921875, -0.003570556640625, -0.0172119140625, 0.015380859375, 0.0269775390625, -0.000743865966796875, 0.00714111328125, 0.04052734375, 0.0322265625, -0.018798828125, -0.01031494140625, 0.00128173828125, 0.0025482177734375, 0.01733398...
[ 60972, 124962, 351, 5526, 1379, 30854, 77336, 502, 4867, 552, 4240, 35874, 1687, 15403, 91693, 63306, 71713, 155370, 304, 3323, 45434, 2389, 121137, 7, 31577, 28412, 50339, 3173, 1542, 8353, 1328, 238, 2301, 18, 3444, 2174, 34292, 83, 17137...
[ 0.2666015625, 0.2354736328125, 0.1287841796875, 0.202392578125, 0.1546630859375, 0.100830078125, 0.2296142578125, 0.091552734375, 0.1654052734375, 0.011138916015625, 0.077880859375, 0.117431640625, 0.08453369140625, 0.08111572265625, 0.1607666015625, 0.125, 0.1204833984375, 0.08996...
embed
74664262_c0
74664262
prolog
0
Title: How do I implement a function to traverse a nested list in Prolog? Problem title: How do I implement a function to traverse a nested list in Prolog? Tags: nested-lists, prolog Problem: How do I implement a function to traverse a nested list in Prolog? Let's say we have a nested list that looks like this: X = [ [...
How do I implement a function to traverse a nested list in Prolog? How do I implement a function to traverse a nested list in Prolog? nested-lists prolog How Prolog nested_lists Head State How do I implement a function to traverse a nested list in Prolog? Let's say we have a nested list that looks like this: X = [ [ 1,...
[ -0.02197265625, 0.00823974609375, 0.005462646484375, -0.0009765625, 0.00531005859375, 0.041259765625, 0.0008544921875, -0.01806640625, 0.004730224609375, -0.0162353515625, 0.00421142578125, -0.015625, -0.000946044921875, 0.01953125, 0.005279541015625, -0.005523681640625, 0.0268554687...
[ 11249, 29479, 32354, 37317, 13, 8512, 71, 5303, 23, 1250, 4867, 10, 6562, 502, 44816, 22836, 33342, 1884, 1193, 2203, 106, 116, 138, 190, 305, 966, 382, 757, 3444, 9077, 4734, 98423, 892, 26255, 1632, 70541, 45234, 6649, 5117, 1505, 321...
[ 0.04669189453125, 0.216552734375, 0.21435546875, 0.23193359375, 0.1170654296875, 0.285888671875, 0.1700439453125, 0.2568359375, 0.050262451171875, 0.18505859375, 0.26318359375, 0.011199951171875, 0.21923828125, 0.09326171875, 0.1402587890625, 0.11572265625, 0.138916015625, 0.045745...
embed
34891204_c1
34891204
prolog
1
). song(a3, 'Legacy', 3.14). song(a3, 'Inheritance', 4.13). song(a4, 'How did I do it?', 4.05). And I want a query that asks if an album is a single (Got only one song). recentSingle(+AlbumId). recentSingle(a1) ? No recentSingle(a4) ? Yes How do I search in the whole KB and check if it only appears once? ANSWER: recent...
). song(a3, 'Legacy', 3.14). song(a3, 'Inheritance', 4.13). song(a4, 'How did I do it?', 4.05). And I want a query that asks if an album is a single (Got only one song). recentSingle(+AlbumId). recentSingle(a1) ? No recentSingle(a4) ? Yes How do I search in the whole KB and check if it only appears once? ANSWER: recent...
[ -0.01446533203125, 0.0108642578125, 0.007232666015625, 0.02490234375, -0.03076171875, 0.00933837890625, 0.00726318359375, 0.0003490447998046875, 0.0004749298095703125, -0.003387451171875, -0.036865234375, -0.006134033203125, -0.004791259765625, -0.016357421875, -0.00958251953125, 0.000...
[ 194, 11531, 11, 363, 5267, 208, 2408, 1031, 65283, 4153, 3334, 217, 7154, 1398, 63258, 617, 81826, 6777, 87, 54, 442, 32, 117930, 3444, 41, 1294, 26458, 2174, 142, 7156, 83, 10, 11001, 17903, 4734, 1632, 17309, 213039, 1328, 116317, 316...
[ 0.047088623046875, 0.2197265625, 0.07427978515625, 0.010894775390625, 0.067138671875, 0.0987548828125, 0.06182861328125, 0.043121337890625, 0.060211181640625, 0.021240234375, 0.113525390625, 0.018524169921875, 0.035797119140625, 0.06805419921875, 0.026763916015625, 0.07611083984375, ...
embed
65337793_c0
65337793
prolog
0
Title: Is there any difference between an N-ary function in Curry and an N+1-ary relation in Prolog? Problem title: Is there any difference between an N-ary function in Curry and an N+1-ary relation in Prolog? Tags: curry, functional-programming, lambda-prolog, logic-programming, prolog Problem: Is there any difference...
Is there any difference between an N-ary function in Curry and an N+1-ary relation in Prolog? Is there any difference between an N-ary function in Curry and an N+1-ary relation in Prolog? curry functional-programming lambda-prolog logic-programming prolog N-ary Curry Prolog Is there any difference between an N-ary func...
[ 0.0208740234375, -0.00830078125, 0.023681640625, -0.00579833984375, 0.005218505859375, -0.00165557861328125, 0.00701904296875, -0.0216064453125, 0.007080078125, -0.0185546875, 0.00335693359375, -0.019775390625, -0.013427734375, -0.00133514404296875, 0.0146484375, -0.027587890625, 0.0...
[ 60212, 17721, 541, 9, 6635, 32354, 17065, 1294, 21748, 41911, 1250, 4867, 2499, 142, 198555, 123309, 28966, 6492, 85, 3454, 62775, 502, 23, 136, 5062, 193429, 20625, 142508, 114864, 8337, 48716, 142424, 14602, 4420, 125728, 33938, 88898, 1791...
[ 0.2022705078125, 0.0635986328125, 0.182861328125, 0.04681396484375, 0.229736328125, 0.198974609375, 0.18408203125, 0.25927734375, 0.1988525390625, 0.1785888671875, 0.164306640625, 0.2236328125, 0.03216552734375, 0.00164794921875, 0.210205078125, 0.127685546875, 0.0975341796875, 0.1...
embed
74257987_c2
74257987
prolog
2
0). edge(vm, vq, 80). edge(vm, vn, 60). edge(vn, vm, 60). edge(vn, vq, 60). edge(vn, vk, 30). edge(vn, vp, 80). edge(vq, vn, 60). edge(vq, vj, 30). edge(vq, vm, 80). edge(vq, vp, 30). edge(vp, vq, 30). edge(vp, vi, 60). edge(vp, vh, 120). edge(vp, vn, 80). coordinate(va, 90, 160). % used for calculating straight line d...
0). edge(vm, vq, 80). edge(vm, vn, 60). edge(vn, vm, 60). edge(vn, vq, 60). edge(vn, vk, 30). edge(vn, vp, 80). edge(vq, vn, 60). edge(vq, vj, 30). edge(vq, vm, 80). edge(vq, vp, 30). edge(vp, vq, 30). edge(vp, vi, 60). edge(vp, vh, 120). edge(vp, vn, 80). coordinate(va, 90, 160). % used for calculating straight line d...
[ 0.016845703125, 0.0284423828125, 0.014892578125, 0.0213623046875, 0.003753662109375, -0.0234375, -0.01397705078125, -0.00592041015625, -0.002593994140625, -0.027587890625, 0.01092529296875, -0.01611328125, -0.0004215240478515625, -0.0035858154296875, -0.029541015625, -0.0123291015625, ...
[ 757, 194, 121303, 334, 39, 4, 81, 864, 2248, 19, 1496, 18734, 92, 496, 132, 170, 254, 279, 127, 5390, 176866, 330, 2510, 13442, 1745, 11814, 74481, 1916, 80560, 13315, 62488, 13, 275, 2358, 12664, 66357, 1112, 59805, 272, 11777, 420, ...
[ 0.1424560546875, 0.055206298828125, 0.255615234375, 0.125732421875, 0.1099853515625, 0.02227783203125, 0.0960693359375, 0.1336669921875, 0.1993408203125, 0.033447265625, 0.1617431640625, 0.1080322265625, 0.0592041015625, 0.1297607421875, 0.010986328125, 0.0843505859375, 0.02182006835...
embed
67355280_c0
67355280
prolog
0
Title: Hi everyone, I'm trying to code this formula in prolog, any help is appreciated :) Problem title: Hi everyone, I'm trying to code this formula in prolog, any help is appreciated :) Tags: prolog, recursion Problem: Hi everyone, I'm trying to code this formula in prolog, any help is appreciated :) I'm tr...
Hi everyone, I'm trying to code this formula in prolog, any help is appreciated :) Hi everyone, I'm trying to code this formula in prolog, any help is appreciated :) prolog recursion Base Res Long Size Res1 Hi everyone, I'm trying to code this formula in prolog, any help is appreciated :) I'm trying to code t...
[ 0.0169677734375, 0.00201416015625, 0.0023651123046875, 0.006134033203125, 0.00799560546875, -0.00714111328125, 0.00421142578125, -0.00162506103515625, 0.032958984375, -0.0198974609375, -0.0028228759765625, -0.015869140625, -0.0111083984375, 0.006591796875, 0, 0.01251220703125, 0.0187...
[ 2673, 30309, 3768, 31577, 18151, 903, 26168, 23, 502, 4867, 2499, 4358, 77947, 195625, 1830, 44978, 9624, 14407, 80378, 418, 9297, 83, 107730, 14012, 237, 79315, 37382, 3647, 111, 126684, 2389, 7704, 1977, 76172, 997, 90173, 96386, 3525, 50...
[ 0.0325927734375, 0.083251953125, 0.046173095703125, 0.0899658203125, 0.198974609375, 0.06170654296875, 0.224365234375, 0.0269927978515625, 0.1522216796875, 0.2359619140625, 0.00787353515625, 0.10888671875, 0.04248046875, 0.202880859375, 0.061065673828125, 0.2186279296875, 0.207763671...
embed
20469563_c0
20469563
prolog
0
Title: inorder traversal modified for range query in BST prolog Problem title: inorder traversal modified for range query in BST prolog Tags: prolog, binary-search-tree Problem: inorder traversal modified for range query in BST prolog This is the pretty known code for an inorder traversal in a generic binary tree in PR...
inorder traversal modified for range query in BST prolog inorder traversal modified for range query in BST prolog prolog binary-search-tree BST List inorder traversal modified for range query in BST prolog This is the pretty known code for an inorder traversal in a generic binary tree in PROLOG: if the input binary tre...
[ 0.00909423828125, 0.0123291015625, 0.025634765625, -0.0252685546875, 0.0263671875, 0.037841796875, -0.0279541015625, -0.0059814453125, -0.010009765625, -0.01190185546875, 0.0031585693359375, -0.006622314453125, -0.01519775390625, -0.00927734375, 0.0255126953125, 0.01446533203125, 0.0...
[ 23, 80596, 37317, 289, 73197, 297, 100, 37457, 41, 1294, 335, 8545, 502, 4867, 2394, 6635, 86250, 62600, 32036, 28875, 51529, 18151, 189534, 53201, 10514, 47510, 107730, 33938, 571, 3444, 2811, 40383, 19922, 110, 988, 15440, 44841, 7413, 12...
[ 0.1187744140625, 0.24560546875, 0.1861572265625, 0.1181640625, 0.176025390625, 0.000152587890625, 0.0634765625, 0.17919921875, 0.10791015625, 0.038604736328125, 0.02880859375, 0.132568359375, 0.140380859375, 0.195068359375, 0.1246337890625, 0.0634765625, 0.1444091796875, 0.15295410...
embed
27350677_c0
27350677
prolog
0
Title: Permutation Prolog Problem title: Permutation Prolog Tags: prolog, list, permutation Problem: Permutation Prolog I am trying to make a list*list of all permutations from 1 to N Example: perm(3, X). -> X = [[1, 2, 3], [1, 3, 2], [2, 1, 3], [2, 3, 1], [3, 1, 2], [3, 2, 1]] I am instead getting X = [1, 2, 3] X = [1...
Permutation Prolog Permutation Prolog prolog list permutation Permutation Prolog List Finish Rest N-1 Permutation Prolog I am trying to make a list*list of all permutations from 1 to N Example: perm(3, X). -> X = [[1, 2, 3], [1, 3, 2], [2, 1, 3], [2, 3, 1], [3, 1, 2], [3, 2, 1]] I am instead getting X = [1, 2, 3] X = [...
[ 0.0008697509765625, 0.0107421875, 0.00677490234375, -0.01043701171875, -0.0137939453125, 0.0194091796875, -0.01611328125, -0.01324462890625, 0.01373291015625, -0.0216064453125, 0.015380859375, 0.005615234375, 0.01422119140625, 0.0018768310546875, -0.015380859375, 0.01611328125, 0.005...
[ 908, 561, 22062, 1250, 4867, 502, 5303, 117, 32036, 13316, 4745, 49756, 541, 5759, 31577, 3249, 10, 6562, 111, 756, 14311, 21094, 1295, 106, 47, 89536, 39, 86827, 1193, 2203, 418, 116, 138, 304, 64457, 20949, 68252, 19441, 13695, 5962, ...
[ 0.1015625, 0.1934814453125, 0.05511474609375, 0.1500244140625, 0.1929931640625, 0.12744140625, 0.2095947265625, 0.18359375, 0.15283203125, 0.086181640625, 0.04290771484375, 0.1400146484375, 0.09930419921875, 0.1121826171875, 0.0755615234375, 0.03448486328125, 0.003082275390625, 0.1...
embed
61520427_c0
61520427
prolog
0
Title: Predicate giving different output than the one intended Problem title: Predicate giving different output than the one intended Tags: list, prolog, recursion Problem: Predicate giving different output than the one intended I have a predicate called stop_when_equal that works like this: stop_when_equal(L1, L2):- P...
Predicate giving different output than the one intended Predicate giving different output than the one intended list prolog recursion Predicate stop_when_equal Pred1 Predicate giving different output than the one intended I have a predicate called stop_when_equal that works like this: Basically it keeps applying Pred1 ...
[ 0.004730224609375, -0.0018310546875, 0.013916015625, 0.0137939453125, -0.01068115234375, 0.0208740234375, -0.0234375, -0.01220703125, 0.00058746337890625, -0.00848388671875, 0.0206298828125, 0.026123046875, 0.01434326171875, -0.00107574462890625, 0.0291748046875, -0.0021209716796875, ...
[ 7145, 2063, 67, 68772, 12921, 140992, 3501, 1632, 179140, 5303, 502, 4867, 195625, 7279, 3220, 13, 71723, 418, 1653, 434, 43240, 13695, 59911, 47, 339, 24189, 110, 65572, 7228, 4527, 33022, 141, 19, 132, 3688, 2367, 83, 1284, 1810, 20697,...
[ 0.2247314453125, 0.2210693359375, 0.1083984375, 0.0777587890625, 0.1878662109375, 0.2147216796875, 0.078857421875, 0.011932373046875, 0.2149658203125, 0.10595703125, 0.08612060546875, 0.1300048828125, 0.1123046875, 0.2039794921875, 0.1768798828125, 0.03125, 0.237060546875, 0.092773...
embed
76498625_c2
76498625
prolog
2
ro(Titolo, Autore, CopieDisponibili)), assertz(libro(Titolo, Autore, NuoveCopieDisponibili)). % Predicato per controllare i Code signals: Prolog, GNU, trim_whitespace, Input, Output, atom_string, InputAtom, string_codes, InputCodes, trimmed_string, OutputCodes, OutputAtom, code_type, Definizioni, Signore, Anelli, J.R.R...
ro(Titolo, Autore, CopieDisponibili)), assertz(libro(Titolo, Autore, NuoveCopieDisponibili)). % Predicato per controllare i Code signals: Prolog, GNU, trim_whitespace, Input, Output, atom_string, InputAtom, string_codes, InputCodes, trimmed_string, OutputCodes, OutputAtom, code_type, Definizioni, Signore, Anelli, J.R.R...
[ -0.0023345947265625, -0.00009202957153320312, -0.00927734375, 0.02587890625, -0.0023345947265625, 0.01312255859375, -0.000453948974609375, 0.00156402587890625, 0.0048828125, -0.013671875, 0.01611328125, -0.00958251953125, 0.00958251953125, -0.005218505859375, 0.016357421875, 0.01770019...
[ 2062, 16734, 58940, 11328, 13, 1311, 5066, 44456, 5416, 36584, 237, 33657, 169, 138385, 24451, 272, 10625, 1745, 7145, 2063, 188, 117, 195891, 28864, 26073, 1250, 4867, 165132, 85247, 454, 148477, 65421, 360, 7077, 13538, 34627, 91693, 12078,...
[ 0.2117919921875, 0.058197021484375, 0.15087890625, 0.13525390625, 0.1378173828125, 0.06671142578125, 0.13427734375, 0.055694580078125, 0.1483154296875, 0.185791015625, 0.093017578125, 0.2301025390625, 0.181640625, 0.1533203125, 0.0093994140625, 0.0587158203125, 0.06365966796875, 0....
embed
34557364_c0
34557364
prolog
0
Title: Modules are not being loaded/consulted? Problem title: Modules are not being loaded/consulted? Tags: module, prolog Problem: Modules are not being loaded/consulted? I need to use modules in my application, however they are not being consulted. In program.pl I have the following code: use_module("/modules/schedul...
Modules are not being loaded/consulted? Modules are not being loaded/consulted? module prolog Modules program.pl use_module schedule_printer.pl schedule_printer Modules are not being loaded/consulted? I need to use modules in my application, however they are not being consulted. In program.pl I have the following code:...
[ 0.0213623046875, 0.00506591796875, 0.009033203125, 0.0191650390625, -0.0390625, 0.00701904296875, 0.0034332275390625, -0.00830078125, -0.01251220703125, -0.056396484375, -0.015869140625, -0.0238037109375, -0.00286865234375, -0.03466796875, -0.00244140625, -0.01171875, 0.0010604858398...
[ 63014, 90, 959, 8035, 72367, 297, 147834, 88996, 502, 4867, 1528, 2424, 4527, 83279, 80889, 35662, 56, 621, 3871, 38415, 147008, 18151, 10644, 75463, 18749, 3714, 17368, 1653, 2063, 144570, 11417, 7560, 693, 133, 43240, 3444, 23009, 11907, ...
[ 0.2318115234375, 0.0938720703125, 0.1158447265625, 0.081298828125, 0.17236328125, 0.026458740234375, 0.2052001953125, 0.241455078125, 0.1080322265625, 0.1590576171875, 0.1414794921875, 0.125, 0.0999755859375, 0.1695556640625, 0.24853515625, 0.158203125, 0.09478759765625, 0.00207519...
embed
47288638_c0
47288638
prolog
0
Title: Build up a list, but mind the previous elements Problem title: Build up a list, but mind the previous elements Tags: prolog, list Problem: Build up a list, but mind the previous elements I've stuck with the following problem: I want to build up a list one-by-one from head to tail. But I have a condition, which d...
Build up a list, but mind the previous elements Build up a list, but mind the previous elements prolog list Build Sofar Element Element2 NewElement Build up a list, but mind the previous elements I've stuck with the following problem: I want to build up a list one-by-one from head to tail. But I have a condition, which...
[ -0.0159912109375, 0.00970458984375, -0.012451171875, 0.006011962890625, -0.0255126953125, 0.0181884765625, -0.01708984375, 0.012939453125, 0.0230712890625, -0.033935546875, 0.00274658203125, -0.0025787353515625, 0.015380859375, 0.0177001953125, 0.01025390625, 0.0184326171875, 0.01446...
[ 121137, 1257, 10, 5303, 1284, 7086, 70, 96362, 80854, 502, 4867, 1061, 3814, 48325, 304, 2356, 647, 19929, 179933, 25632, 2967, 3444, 45367, 1272, 3630, 1295, 10336, 47, 46741, 35431, 56566, 21771, 183540, 5526, 20537, 8110, 959, 70541, 237...
[ 0.150390625, 0.1534423828125, 0.018768310546875, 0.2254638671875, 0.1390380859375, 0.1904296875, 0.01239013671875, 0.161865234375, 0.1890869140625, 0.111083984375, 0.176025390625, 0.06768798828125, 0.2327880859375, 0.2001953125, 0.098388671875, 0.1170654296875, 0.07794189453125, 0....
embed
35120332_c0
35120332
prolog
0
Title: Prolog delayed evaluation: LIFO or FIFO wake-up? Problem title: Prolog delayed evaluation: LIFO or FIFO wake-up? Tags: prolog-coroutining, sicstus-prolog, concurrency, swi-prolog, prolog Problem: Prolog delayed evaluation: LIFO or FIFO wake-up? Many Prolog systems have a freeze/2 predicate, a predicate that shou...
Prolog delayed evaluation: LIFO or FIFO wake-up? Prolog delayed evaluation: LIFO or FIFO wake-up? prolog-coroutining sicstus-prolog concurrency swi-prolog prolog Prolog LIFO FIFO Prolog delayed evaluation: LIFO or FIFO wake-up? Many Prolog systems have a freeze/2 predicate, a predicate that should possibly have the nam...
[ 0.04052734375, 0.010009765625, -0.002960205078125, 0.0191650390625, 0.00323486328125, -0.0169677734375, -0.0001697540283203125, 0.00994873046875, 0.00445556640625, -0.004791259765625, 0.007781982421875, 0.02587890625, -0.0125732421875, 0.00830078125, 0.0142822265625, 0.017822265625, ...
[ 1250, 4867, 8, 5259, 219836, 16970, 51980, 707, 32983, 9908, 2037, 297, 502, 6056, 14653, 26536, 18253, 3454, 108636, 982, 2452, 52455, 76519, 10, 4092, 731, 12477, 1653, 2063, 5608, 144681, 9351, 700, 603, 26868, 8108, 10001, 66596, 35431,...
[ 0.164794921875, 0.2705078125, 0.1119384765625, 0.193115234375, 0.1842041015625, 0.1256103515625, 0.2432861328125, 0.0728759765625, 0.1578369140625, 0.1881103515625, 0.1461181640625, 0.0297698974609375, 0.1312255859375, 0.0635986328125, 0.06207275390625, 0.0189666748046875, 0.16125488...
embed
44339290_c0
44339290
prolog
0
Title: How to get all the clauses defined/loaded from a file in Prolog Problem title: How to get all the clauses defined/loaded from a file in Prolog Tags: swi-prolog, prolog Problem: How to get all the clauses defined/loaded from a file in Prolog I am using SWI Prolog and am surprised to find no obvious way to do this...
How to get all the clauses defined/loaded from a file in Prolog How to get all the clauses defined/loaded from a file in Prolog swi-prolog prolog a How Prolog current_predicate Arity absolute_file_name filname.pl AbsFileName predicate_property How to get all the clauses defined/loaded from a file in Prolog I am using S...
[ 0.01953125, 0.003936767578125, 0.00518798828125, 0.017578125, -0.01104736328125, 0.00653076171875, 0.0234375, 0.004180908203125, 0.01470947265625, -0.05615234375, -0.01361083984375, 0.0179443359375, -0.0361328125, -0.01446533203125, 0.0078125, 0.032470703125, 0.0079345703125, 0.001...
[ 11249, 2046, 756, 70, 70731, 90, 61924, 63033, 297, 1295, 11435, 1250, 4867, 64, 23, 2452, 3454, 502, 43581, 19714, 2063, 1172, 2481, 89931, 29822, 12879, 11627, 2424, 27174, 174350, 163612, 1653, 56, 159, 38969, 7103, 13, 12477, 114864, ...
[ 0.03143310546875, 0.1131591796875, 0.1429443359375, 0.055633544921875, 0.263671875, 0.1546630859375, 0.201416015625, 0.1922607421875, 0.072021484375, 0.1119384765625, 0.1903076171875, 0.1795654296875, 0.23583984375, 0.011871337890625, 0.0411376953125, 0.1490478515625, 0.113037109375,...
embed
28102602_c0
28102602
prolog
0
Title: Get only one solution for sibling pairs in family tree Problem title: Get only one solution for sibling pairs in family tree Tags: prolog Problem: Get only one solution for sibling pairs in family tree I have the following Prolog code, modified from Wikipedia: mother_child(trude, sally). father_child(tom, sally)...
Get only one solution for sibling pairs in family tree Get only one solution for sibling pairs in family tree prolog Get mother_child father_child parent_child Get only one solution for sibling pairs in family tree I have the following Prolog code, modified from Wikipedia: I get the following: Is it possible to modify ...
[ 0.0091552734375, 0.00909423828125, 0.017333984375, -0.00323486328125, -0.0133056640625, -0.0021209716796875, -0.01708984375, -0.00787353515625, 0.0017547607421875, -0.0263671875, 0.01092529296875, -0.0157470703125, -0.0004730224609375, 0.00823974609375, 0.0106201171875, 0.0137939453125...
[ 20779, 4734, 1632, 29806, 100, 78, 79298, 80836, 7, 23, 14449, 53201, 502, 4867, 42732, 206, 38472, 67373, 49129, 25632, 1250, 18151, 73197, 8162, 7722, 2811, 40383, 1542, 990, 47, 30646, 1193, 2203, 57, 12097, 113, 72, 2063, 98320, 3444,...
[ 0.0843505859375, 0.160400390625, 0.1826171875, 0.2071533203125, 0.0296478271484375, 0.1549072265625, 0.2459716796875, 0.224609375, 0.05609130859375, 0.042449951171875, 0.08184814453125, 0.2109375, 0.12841796875, 0.1689453125, 0.08331298828125, 0.044189453125, 0.1033935546875, 0.131...
embed
34592449_c0
34592449
prolog
0
Title: Append elements of List1 that are different from List2 Different elements from in prolog Problem title: Append elements of List1 that are different from List2 Different elements from in prolog Tags: prolog Problem: Append elements of List1 that are different from List2 Different elements from in prolog I am curr...
Append elements of List1 that are different from List2 Different elements from in prolog Append elements of List1 that are different from List2 Different elements from in prolog prolog List2 in Append List1 Different Append elements of List1 that are different from List2 Different elements from in prolog I am currently...
[ 0.01141357421875, 0.0108642578125, 0.00799560546875, -0.0029754638671875, 0.00836181640625, 0.00823974609375, -0.003326416015625, 0.02490234375, 0.0157470703125, 0.00128173828125, 0.0072021484375, -0.00299072265625, 0.0037384033203125, 0.01171875, -0.0014801025390625, 0.02099609375, ...
[ 5659, 3611, 80854, 32036, 418, 621, 12921, 1295, 304, 242520, 23, 502, 4867, 31577, 7413, 756, 7, 339, 136, 12638, 3789, 114689, 3934, 37842, 2046, 201505, 5303, 41, 1294, 25632, 2203, 617, 104629, 456, 434, 18781, 15824, 47, 4488 ]
[ 0.11767578125, 0.1339111328125, 0.1907958984375, 0.18505859375, 0.0709228515625, 0.0008544921875, 0.20703125, 0.0894775390625, 0.1474609375, 0.1849365234375, 0.0081787109375, 0.119384765625, 0.193359375, 0.047882080078125, 0.0916748046875, 0.0279083251953125, 0.01953125, 0.11132812...
embed
22009161_c0
22009161
prolog
0
Title: creating a menu in prolog? Problem title: creating a menu in prolog? Tags: prolog Problem: creating a menu in prolog? menu :- repeat, write(' '),nl, write(' 1.the number of hello '),nl, write(' '),nl, write('enter your choice:'),nl, read(Choice), Choice>0, Choice =<6, doit(Choice),Choice=6. doit(1):- numberofhel...
creating a menu in prolog? creating a menu in prolog? prolog Choice my_list creating a menu in prolog? now in the code above after compile buffer when I ask Prolog for a menu the menu appears with one choice and when i enter 1 for number of hello in the list(my_list) i don't get any answer and i get a singleton variabl...
[ -0.0113525390625, 0.0032196044921875, 0.00909423828125, 0.0260009765625, -0.015380859375, 0.004364013671875, -0.009033203125, -0.0033721923828125, 0.020263671875, -0.03369140625, -0.00933837890625, -0.051513671875, 0.01373291015625, -0.00958251953125, 0.0223388671875, -0.00601196289062...
[ 105233, 8026, 23, 502, 4867, 10, 181948, 759, 6562, 18151, 9969, 1340, 373, 18234, 26458, 1250, 100, 135179, 1632, 44126, 30957, 106, 14012, 33600, 31, 5303, 1176, 35166, 11001, 1507, 77336, 1631, 592, 49725, 4358 ]
[ 0.1270751953125, 0.263671875, 0.053375244140625, 0.1224365234375, 0.233642578125, 0.049835205078125, 0.1427001953125, 0.04791259765625, 0.1546630859375, 0.010467529296875, 0.1021728515625, 0.1259765625, 0.03179931640625, 0.1552734375, 0.0650634765625, 0.1151123046875, 0.0180816650390...
embed
31225617_c0
31225617
prolog
0
Title: Generate list - geometric progression Problem title: Generate list - geometric progression Tags: list, prolog Problem: Generate list - geometric progression I'd like to generate a geometric progression list using a predicate with 4 parameters - the list where the progression will be generated, the length of this...
Generate list - geometric progression Generate list - geometric progression list prolog Generate Tail Generate list - geometric progression I'd like to generate a geometric progression list using a predicate with 4 parameters - the list where the progression will be generated, the length of this list, the start element...
[ 0.000640869140625, 0.0257568359375, 0.001251220703125, 0.0108642578125, -0.01409912109375, 0.0223388671875, -0.01348876953125, 0.016845703125, -0.006195068359375, -0.034912109375, 0.01495361328125, 0.01123046875, 0.0023651123046875, -0.01513671875, -0.005584716796875, -0.00555419921875...
[ 155370, 67, 5303, 84183, 238, 187735, 502, 4867, 1218, 379, 1884, 139392, 10, 17368, 1653, 2063, 678, 201, 171859, 7440, 140909, 4034, 12830, 118126, 56, 16940, 2060, 19441, 4734, 5691, 6276, 29089, 15490, 7279, 10366, 41, 1294, 76199, 756,...
[ 0.194580078125, 0.096435546875, 0.2374267578125, 0.2144775390625, 0.1019287109375, 0.227783203125, 0.09124755859375, 0.1324462890625, 0.115234375, 0.1241455078125, 0.12255859375, 0.219970703125, 0.0267486572265625, 0.0628662109375, 0.141357421875, 0.181640625, 0.0509033203125, 0.15...
embed
12549735_c0
12549735
prolog
0
Title: Qn on the book Learn Prolog Now Problem title: Qn on the book Learn Prolog Now Tags: prolog, predicate Problem: Qn on the book Learn Prolog Now The part of the book I'm referring to is here, http://cs.union.edu/~striegnk/learn-prolog-now/html/node4.html listensToMusic(mia). happy(yolanda). playsAirGuitar(mia) :-...
Qn on the book Learn Prolog Now Qn on the book Learn Prolog Now prolog predicate Learn Prolog Now Qn on the book Learn Prolog Now The part of the book I'm referring to is here, http://cs.union.edu/~striegnk/learn-prolog-now/html/node4.html I understand the first part where it says that the happy predicate is defined us...
[ 0.00677490234375, 0.01495361328125, 0.0108642578125, 0.0167236328125, -0.007080078125, 0.028564453125, 0.0008392333984375, -0.00848388671875, 0.01025390625, -0.049560546875, 0.00174713134765625, -0.02099609375, -0.00799560546875, -0.01513671875, 0.0023651123046875, 0.014404296875, 0....
[ 2396, 19, 12877, 134031, 1250, 4867, 14240, 502, 1653, 2063, 98, 2831, 87046, 15246, 7570, 147, 3454, 35613, 7693, 28219, 17723, 67, 61924, 17368, 11001, 70731, 15824, 44632, 7, 7763, 158257, 136, 11301, 60044, 22769, 30188, 12638, 6626 ]
[ 0.105224609375, 0.08203125, 0.1025390625, 0.1253662109375, 0.1312255859375, 0.2000732421875, 0.1640625, 0.1014404296875, 0.1925048828125, 0.2279052734375, 0.011871337890625, 0.03558349609375, 0.0283660888671875, 0.002716064453125, 0.01153564453125, 0.047149658203125, 0.080810546875, ...
embed
9095983_c0
9095983
prolog
0
Title: AllegroGraph check existing triple Problem title: AllegroGraph check existing triple Tags: allegrograph, prolog Problem: AllegroGraph check existing triple I am using AllegroGraph 4. I have a triple store, and I am trying to add new triples only if they don't already exist. Here is my Prolog query: (select (?new...
AllegroGraph check existing triple AllegroGraph check existing triple allegrograph prolog AllegroGraph tst:has-annotation tst:Test Fails AllegroGraph check existing triple I am using AllegroGraph 4. I have a triple store, and I am trying to add new triples only if they don't already exist. Here is my Prolog query: wher...
[ -0.003692626953125, 0.019775390625, 0.01104736328125, 0.0068359375, -0.0120849609375, -0.006866455078125, -0.0018463134765625, -0.0033721923828125, 0.0146484375, -0.0361328125, 0.0289306640625, 0.038330078125, 0.0030059814453125, -0.0079345703125, 0.0093994140625, 0.0029754638671875, ...
[ 4344, 8407, 37878, 11727, 12765, 144573, 162738, 747, 41382, 502, 4867, 271, 10557, 11071, 22062, 111337, 190355, 17368, 1398, 4343, 15190, 3525, 7, 18, 21771, 32316, 1250, 41, 1294, 71909, 100, 35431, 217, 43240, 5885, 10, 9, 61924, 1884, ...
[ 0.1292724609375, 0.173583984375, 0.14404296875, 0.1214599609375, 0.2005615234375, 0.2149658203125, 0.2685546875, 0.0760498046875, 0.132568359375, 0.091064453125, 0.16796875, 0.1031494140625, 0.0806884765625, 0.116455078125, 0.05267333984375, 0.146728515625, 0.16455078125, 0.0186157...
embed
45068331_c0
45068331
prolog
0
Title: Read from file in Prolog Problem title: Read from file in Prolog Tags: prolog Problem: Read from file in Prolog i ve used 'read' to read the stream, however, when i invoke read_input('myFile.txt', N, K, B, Steps, Broken) my interpreter answers false. here is my code: read_input('myFile.txt', N, K, B, Steps, Brok...
Read from file in Prolog Read from file in Prolog prolog file Read Prolog read_input myFile.txt Steps Broken Stream read_line List read_line_to_codes Line atom_codes atomic_list_concat atom_number Read from file in Prolog i ve used 'read' to read the stream, however, when i invoke read_input('myFile.txt', N, K, B, Step...
[ -0.00531005859375, -0.01171875, 0.007598876953125, 0.003936767578125, -0.00069427490234375, 0.00982666015625, 0.010986328125, 0.012451171875, 0.005767822265625, -0.045166015625, -0.003448486328125, -0.003631591796875, -0.0267333984375, -0.01092529296875, 0.004150390625, -0.0166015625, ...
[ 4764, 1295, 11435, 1250, 4867, 23, 502, 12301, 73, 7077, 759, 174350, 124326, 50478, 13177, 1098, 115061, 2256, 32036, 188, 40899, 16777, 34627, 7, 6562, 2271, 4460, 2606, 173, 11814, 39116, 75973, 23253, 1176, 541, 341, 335, 29481, 56, 3...
[ 0.1881103515625, 0.2486572265625, 0.16015625, 0.147216796875, 0.199951171875, 0.01409912109375, 0.1163330078125, 0.1671142578125, 0.085205078125, 0.09906005859375, 0.06671142578125, 0.1676025390625, 0.1697998046875, 0.141845703125, 0.131103515625, 0.14697265625, 0.1568603515625, 0....
embed
27342014_c0
27342014
prolog
0
Title: Prolog: Adding elements to list through read/1 Problem title: Prolog: Adding elements to list through read/1 Tags: input, prolog, list Problem: Prolog: Adding elements to list through read/1 I am trying to add user input to a list with add_read_list/2 until the word "end." is encountered. This is how the output ...
Prolog: Adding elements to list through read/1 Prolog: Adding elements to list through read/1 input prolog list Prolog Adding add_read_list Resultlist Entrylist Input Prolog: Adding elements to list through read/1 I am trying to add user input to a list with add_read_list/2 until the word "end." is encountered. This is...
[ -0.005279541015625, 0.007080078125, 0.00860595703125, -0.001800537109375, -0.0162353515625, 0.017578125, 0.0050048828125, 0.01416015625, 0.00011110305786132812, -0.041259765625, 0.033203125, -0.030517578125, -0.017333984375, 0.0067138671875, 0.019287109375, -0.0177001953125, 0.022216...
[ 1250, 4867, 62, 59725, 80854, 47, 5303, 8305, 12301, 11583, 107730, 502, 15190, 39116, 6562, 126684, 357, 15123, 31577, 38937, 12477, 24189, 2565, 3611, 1242, 190647, 140992, 134598, 6713, 2060, 765, 1380, 11907, 17932, 7158, 48398, 20594, 44...
[ 0.1231689453125, 0.20263671875, 0.08941650390625, 0.124755859375, 0.165283203125, 0.093505859375, 0.182373046875, 0.089599609375, 0.179443359375, 0.09844970703125, 0.2353515625, 0.07867431640625, 0.1527099609375, 0.19140625, 0.1810302734375, 0.1048583984375, 0.002593994140625, 0.07...
embed
34257968_c0
34257968
prolog
0
Title: Prolog: handling cycles in graph traversal Problem title: Prolog: handling cycles in graph traversal Tags: cycle, graph-theory, graph-traversal, prolog Problem: Prolog: handling cycles in graph traversal road(london, paris, 135). road(paris, london, 135). road(paris, madrid, 250). road(madrid, paris, 250). road(...
Prolog: handling cycles in graph traversal Prolog: handling cycles in graph traversal cycle graph-theory graph-traversal prolog Prolog Prolog: handling cycles in graph traversal This is a sample code of the problem I am facing. My test input is This input will keep re-iterating through london-paris and paris-london, ho...
[ 0.00994873046875, 0.0206298828125, 0.00933837890625, 0.00732421875, 0.00946044921875, -0.00848388671875, -0.00921630859375, 0.00262451171875, 0.00482177734375, -0.05859375, -0.0019073486328125, 0.00439453125, -0.0400390625, -0.0010223388671875, 0.0172119140625, 0.046630859375, -0.008...
[ 1250, 4867, 45064, 105823, 7, 41382, 37317, 289, 2347, 814, 2317, 502, 121413, 18151, 2967, 7808, 3034, 107730, 1221, 13695, 456, 1486, 98767, 8305, 134442, 9, 24980, 136, 366, 164, 4759, 4445, 156672, 7413, 36439, 1295, 1299, 329, 59664, ...
[ 0.149658203125, 0.251220703125, 0.1702880859375, 0.271484375, 0.027130126953125, 0.17041015625, 0.1556396484375, 0.054351806640625, 0.0111083984375, 0.114501953125, 0.04425048828125, 0.083251953125, 0.07568359375, 0.13720703125, 0.08642578125, 0.046844482421875, 0.1348876953125, 0....
embed
71745177_c0
71745177
prolog
0
Title: What is the simple way to find the max length of a list in prolog? Problem title: What is the simple way to find the max length of a list in prolog? Tags: prolog Problem: What is the simple way to find the max length of a list in prolog? I'm new to learn the Prolog, I have a list, which looks like -> [[6, 7, 8,9...
What is the simple way to find the max length of a list in prolog? What is the simple way to find the max length of a list in prolog? prolog What Rest Max Maxrest What is the simple way to find the max length of a list in prolog? I'm new to learn the Prolog, I have a list, which looks like -> [[6, 7, 8,9], [6, 7, 8, 9]...
[ 0.01043701171875, 0.00909423828125, 0.0257568359375, 0.0380859375, -0.003570556640625, 0.010986328125, 0.00012111663818359375, 0.035400390625, 0.0177001953125, -0.037109375, 0.00592041015625, -0.0086669921875, 0.003936767578125, 0.000728607177734375, 0.021240234375, -0.01708984375, 0...
[ 8781, 3917, 7413, 18389, 140909, 111, 5303, 23, 502, 4867, 4865, 49756, 9920, 56644, 47, 70, 3525, 30698, 1250, 33342, 910, 361, 145180, 382, 483, 104629, 966, 3444, 756, 30646, 136555, 5809, 4734, 1632, 86869, 1653, 2063, 96704, 90, 7477...
[ 0.164306640625, 0.0684814453125, 0.1202392578125, 0.2359619140625, 0.22802734375, 0.047332763671875, 0.2325439453125, 0.05340576171875, 0.16162109375, 0.23291015625, 0.008392333984375, 0.1873779296875, 0.2298583984375, 0.2406005859375, 0.012939453125, 0.0440673828125, 0.0122375488281...
embed
69701075_c0
69701075
prolog
0
Title: Prolog - Filter list with only even numbers Problem title: Prolog - Filter list with only even numbers Tags: prolog, list Problem: Prolog - Filter list with only even numbers I have que next Prolog function that only multiply any number (F) you enter with every element in the list[], for example input: multiplyf...
Prolog - Filter list with only even numbers Prolog - Filter list with only even numbers prolog list Prolog Filter Prolog - Filter list with only even numbers I have que next Prolog function that only multiply any number (F) you enter with every element in the list[], for example input: multiplyf(2, [5,4,8], N). output:...
[ -0.0009918212890625, 0.01611328125, 0.0101318359375, -0.017333984375, -0.0067138671875, 0.009521484375, -0.00439453125, 0.014892578125, 0.0184326171875, 0.005096435546875, -0.00628662109375, -0.0255126953125, -0.0118408203125, 0.013427734375, -0.005950927734375, 0.0172119140625, 0.02...
[ 1250, 4867, 128896, 5303, 4734, 3853, 101935, 502, 41, 11737, 32354, 6024, 62479, 2499, 14012, 919, 30957, 678, 11907, 12830, 107730, 420, 54753, 758, 116574, 541, 140992, 1019, 2485, 43240, 155965, 9790, 3871, 46312, 70, 3869, 53, 563, 120...
[ 0.1533203125, 0.2318115234375, 0.2666015625, 0.1856689453125, 0.109375, 0.217041015625, 0.1973876953125, 0.101318359375, 0.0736083984375, 0.125732421875, 0.172607421875, 0.126220703125, 0.180419921875, 0.070556640625, 0.1488037109375, 0.125732421875, 0.1353759765625, 0.037963867187...
embed
16004609_c0
16004609
prolog
0
Title: why does this prolog code return only one result? Problem title: why does this prolog code return only one result? Tags: prolog Problem: why does this prolog code return only one result? I'm studying Prolog for a final exam, and I can't figure out what I did wrong on this assignment question from early in the co...
why does this prolog code return only one result? why does this prolog code return only one result? prolog Write List Result why does this prolog code return only one result? I'm studying Prolog for a final exam, and I can't figure out what I did wrong on this assignment question from early in the course. This isn't ex...
[ -0.006256103515625, 0.0115966796875, 0.0228271484375, 0.01043701171875, 0.00311279296875, 0.04443359375, 0.00164794921875, -0.004852294921875, 0.0162353515625, 0.0107421875, 0.007781982421875, -0.0169677734375, -0.0179443359375, -0.0064697265625, -0.0034332275390625, 0.00921630859375, ...
[ 15400, 903, 502, 4867, 18151, 30646, 4734, 1632, 16750, 601, 18781, 32036, 126684, 14602, 1250, 2704, 42276, 26366, 6777, 44691, 95486, 9655, 18244, 35166, 29806, 34292, 627, 959, 6626, 20594 ]
[ 0.108642578125, 0.04217529296875, 0.1636962890625, 0.2171630859375, 0.1903076171875, 0.201904296875, 0.1510009765625, 0.18701171875, 0.215087890625, 0.020294189453125, 0.1102294921875, 0.1629638671875, 0.1414794921875, 0.0054931640625, 0.1065673828125, 0.036895751953125, 0.0433654785...
embed
35856958_c0
35856958
prolog
0
Title: Prolog Finding middle element in List Problem title: Prolog Finding middle element in List Tags: list, prolog Problem: Prolog Finding middle element in List I am trying to make use of prolog predicates and find middle element of a given list. My idea was to cut first and last element of list using recursion.Unfo...
Prolog Finding middle element in List Prolog Finding middle element in List list prolog Prolog Finding List delete_last delete_first check_len LEN delete_both MidElement Prolog Finding middle element in List I am trying to make use of prolog predicates and find middle element of a given list. My idea was to cut first a...
[ -0.005523681640625, 0.018310546875, 0.0220947265625, -0.0004730224609375, 0.000247955322265625, 0.0098876953125, -0.0019683837890625, 0.0001125335693359375, 0.020263671875, -0.0233154296875, 0.01397705078125, -0.006927490234375, -0.005767822265625, -0.0150146484375, 0.0169677734375, -0...
[ 1250, 4867, 26040, 214, 86991, 12830, 23, 32036, 5303, 502, 154109, 19777, 13448, 271, 12765, 1977, 47214, 837, 927, 23166, 647, 19929, 31577, 4527, 1653, 2063, 1636, 7413, 6528, 59226, 5117, 136, 4568, 17368, 195625, 1830, 104272, 13319, 3...
[ 0.16650390625, 0.230712890625, 0.125244140625, 0.0248565673828125, 0.259765625, 0.2081298828125, 0.0521240234375, 0.1982421875, 0.1778564453125, 0.132568359375, 0.1795654296875, 0.1575927734375, 0.052093505859375, 0.055145263671875, 0.1502685546875, 0.1395263671875, 0.150634765625, ...
embed
40443755_c0
40443755
prolog
0
Title: Eagerly evaluating all predicate calls in Prolog Problem title: Eagerly evaluating all predicate calls in Prolog Tags: prolog Problem: Eagerly evaluating all predicate calls in Prolog Reading the SWI-Prolog documentation on meta-predicates , I initially assumed that call(f, ...) is equivalent to f(...) , where f...
Eagerly evaluating all predicate calls in Prolog Eagerly evaluating all predicate calls in Prolog prolog Eagerly Prolog Eagerly evaluating all predicate calls in Prolog Reading the SWI-Prolog documentation on meta-predicates , I initially assumed that call(f, ...) is equivalent to f(...) , where f is some predicate. Bu...
[ 0.0108642578125, 0.017333984375, 0.0135498046875, 0.0086669921875, 0.0040283203125, -0.004608154296875, 0.0240478515625, -0.0006561279296875, -0.000213623046875, -0.044189453125, 0.01141357421875, 0.0147705078125, -0.023193359375, -0.011962890625, 0.0255126953125, -0.00994873046875, ...
[ 241, 33730, 151575, 756, 1653, 2063, 67, 11782, 1250, 4867, 502, 538, 159, 38969, 10752, 209806, 23550, 19714, 1636, 41591, 420, 153, 183234, 47, 1238, 139666, 83, 139999, 123166, 6626, 20653, 45, 74789, 51359, 3647, 96853, 70731, 177, 132,...
[ 0.0482177734375, 0.188720703125, 0.1507568359375, 0.0994873046875, 0.1654052734375, 0.215576171875, 0.050018310546875, 0.177490234375, 0.1629638671875, 0.217529296875, 0.1085205078125, 0.037017822265625, 0.0193023681640625, 0.154296875, 0.110595703125, 0.03692626953125, 0.1630859375,...
embed