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
7787593_c0
7787593
prolog
0
Title: Prolog: DRY way of creating lists declaratively Problem title: Prolog: DRY way of creating lists declaratively Tags: prolog, dry Problem: Prolog: DRY way of creating lists declaratively I'm doing some experiments with Prolog and having difficulties with the following rule: row(Row, Matrix, [R1,R2,R3,R4]) :- cell...
Prolog: DRY way of creating lists declaratively Prolog: DRY way of creating lists declaratively prolog dry Prolog DRY Row Matrix Prolog: DRY way of creating lists declaratively I'm doing some experiments with Prolog and having difficulties with the following rule: This rule extracts one row from a matrix, given its row...
[ 0.00225830078125, 0.01043701171875, 0.0216064453125, 0.0111083984375, 0.00299072265625, -0.0252685546875, -0.0001888275146484375, 0.0181884765625, 0.004547119140625, -0.0201416015625, -0.0172119140625, -0.01507568359375, -0.034912109375, -0.000286102294921875, -0.0111083984375, 0.00411...
[ 1250, 4867, 391, 34388, 3917, 105233, 5303, 21635, 4935, 502, 36898, 96190, 194234, 7, 28007, 34844, 79986, 125663, 1632, 15555, 1295, 50944, 34475, 14012, 4197, 163, 71358, 57346, 1363, 18151, 67229, 201, 425, 617, 35142, 483, 1126, 64333, ...
[ 0.155029296875, 0.2469482421875, 0.13525390625, 0.269287109375, 0.07159423828125, 0.1385498046875, 0.22900390625, 0.173828125, 0.09576416015625, 0.1072998046875, 0.2496337890625, 0.2138671875, 0.204345703125, 0.029632568359375, 0.135009765625, 0.077880859375, 0.172119140625, 0.1781...
embed
78437481_c1
78437481
prolog
1
Which team specialized in which subject and where did they all finish?" When you have correctly programmed the given facts and consulted your program, you should be able to make the following query: ?- quiz_quest(Teams). Teams = [(numbskulls, pop_music), (rhubarb_pickers, cookery), (garden_gang, current_affairs), (lose...
Which team specialized in which subject and where did they all finish?" When you have correctly programmed the given facts and consulted your program, you should be able to make the following query: ?- quiz_quest(Teams). Teams = [(numbskulls, pop_music), (rhubarb_pickers, cookery), (garden_gang, current_affairs), (lose...
[ 0.01190185546875, 0.01806640625, -0.01123046875, -0.005340576171875, -0.0238037109375, -0.000118255615234375, -0.006439208984375, 0.0087890625, 0.009033203125, 0.0302734375, 0.00086212158203125, -0.002838134765625, -0.0000762939453125, 0.000118255615234375, -0.035400390625, 0.021118164...
[ 130078, 7175, 5361, 29367, 23, 3129, 28368, 7440, 1836, 756, 67229, 2953, 26785, 26693, 34475, 15824, 147008, 1528, 5608, 19048, 3249, 25632, 41, 1294, 705, 81758, 75616, 101409, 11399, 2606, 16145, 77684, 7426, 94922, 32102, 75555, 18695, 25...
[ 0.045745849609375, 0.251220703125, 0.226318359375, 0.1357421875, 0.06719970703125, 0.0167388916015625, 0.22802734375, 0.0726318359375, 0.002899169921875, 0.07696533203125, 0.20166015625, 0.01263427734375, 0.0784912109375, 0.1622314453125, 0.06298828125, 0.12109375, 0.07098388671875, ...
embed
42215378_c0
42215378
prolog
0
Title: Generate Successive Number Pairs - Prolog Problem title: Generate Successive Number Pairs - Prolog Tags: list, prolog Problem: Generate Successive Number Pairs - Prolog I have some code that takes a given list of pairs of numbers and solves for chains of 7. However, it takes an obnoxious amount of time to solve ...
Generate Successive Number Pairs - Prolog Generate Successive Number Pairs - Prolog list prolog Generate Successive Number Pairs Prolog LEN nth1 Generate Successive Number Pairs - Prolog I have some code that takes a given list of pairs of numbers and solves for chains of 7. However, it takes an obnoxious amount of tim...
[ -0.002777099609375, 0.00095367431640625, 0.011474609375, 0.0166015625, 0.001983642578125, 0.00927734375, -0.029296875, 0.0001811981201171875, 0.007049560546875, -0.03857421875, 0.0064697265625, 0.0172119140625, -0.01806640625, -0.0203857421875, -0.005096435546875, 0.00885009765625, 0...
[ 155370, 67, 144053, 5844, 103332, 37897, 4295, 1250, 4867, 5303, 502, 47214, 927, 418, 18151, 51776, 34475, 80836, 101935, 86869, 100, 121293, 111, 2861, 995, 157, 78697, 41170, 1733, 3853, 1632, 38246, 106, 14373, 2809, 11522, 17678, 93766, ...
[ 0.18505859375, 0.0657958984375, 0.1754150390625, 0.1285400390625, 0.14306640625, 0.2291259765625, 0.1414794921875, 0.1544189453125, 0.2064208984375, 0.16796875, 0.0882568359375, 0.1507568359375, 0.1317138671875, 0.049957275390625, 0.142333984375, 0.10186767578125, 0.0282135009765625,...
embed
5993713_c0
5993713
prolog
0
Title: finding exact variable in tho list on prolog Problem title: finding exact variable in tho list on prolog Tags: prolog, list Problem: finding exact variable in tho list on prolog I think this question must be solved :)) concert(dtatu, [jack, volker, rachel]). concert(tmegadeth, [volker, rachel]). concert(ssoad, [...
finding exact variable in tho list on prolog finding exact variable in tho list on prolog prolog list finding exact variable in tho list on prolog I think this question must be solved :)) I want to implement the predicate audiance(L1, L2). returns the list of all people(L2) who have watched all the concerts in L1. The ...
[ 0.0107421875, -0.0191650390625, -0.005126953125, 0.0225830078125, -0.00634765625, 0.015380859375, -0.00074005126953125, 0.0291748046875, 0.005615234375, -0.0419921875, 0.00994873046875, 0.011962890625, 0.027587890625, 0.001953125, 0.01470947265625, 0.0005950927734375, 0.026123046875,...
[ 90791, 24763, 77336, 23, 14461, 5303, 98, 502, 4867, 5351, 8110, 86869, 32559, 3444, 29479, 1653, 2063, 67, 20461, 7154, 866, 418, 339, 10461, 30646, 111, 756, 3395, 2750, 765, 192509, 70, 20428, 304, 70541, 171763, 4552, 7941, 3714 ]
[ 0.12158203125, 0.234375, 0.289794921875, 0.10205078125, 0.22998046875, 0.24267578125, 0.09521484375, 0.16357421875, 0.253173828125, 0.029876708984375, 0.009979248046875, 0.078369140625, 0.006805419921875, 0.06524658203125, 0.13134765625, 0.11572265625, 0.157958984375, 0.05389404296...
embed
73611934_c0
73611934
prolog
0
Title: What is "prolog style" in Scala? Problem title: What is "prolog style" in Scala? Tags: prolog, scala-3, scala, implicit Problem: What is "prolog style" in Scala? The Scala 3 reference at https://docs.scala-lang.org/scala3/reference/metaprogramming/compiletime-ops.html mentions some "Prolog-li...
What is "prolog style" in Scala? What is "prolog style" in Scala? prolog scala-3 scala implicit What Scala scala-3 What is "prolog style" in Scala? The Scala 3 reference at https://docs.scala-lang.org/scala3/reference/metaprogramming/compiletime-ops.html mentions some "Prolog-like programming style"...
[ 0.0269775390625, -0.0028076171875, 0.011474609375, 0.0203857421875, -0.0086669921875, -0.0014495849609375, 0.0068359375, 0.01519775390625, 0.0048828125, -0.0400390625, 0.00531005859375, -0.003448486328125, -0.0179443359375, -0.01068115234375, 0.01708984375, -0.0028228759765625, -0.00...
[ 4865, 3454, 4867, 20623, 23, 152653, 11, 502, 146232, 8316, 165164, 83, 138, 91067, 62309, 3066, 40061, 35273, 28966, 58875, 1340, 6032, 68818, 10752, 5062, 56037, 449, 7722, 2720, 214, 128431, 9969, 123166, 195, 13566, 1250, 43240, 4488 ]
[ 0.006439208984375, 0.1600341796875, 0.233154296875, 0.234375, 0.031890869140625, 0.198486328125, 0.1456298828125, 0.1065673828125, 0.1878662109375, 0.18505859375, 0.154541015625, 0.0150604248046875, 0.182373046875, 0.0498046875, 0.1766357421875, 0.02569580078125, 0.04583740234375, ...
embed
10611585_c0
10611585
prolog
0
Title: Get list of sets where the sum of each set is X Problem title: Get list of sets where the sum of each set is X Tags: prolog, clpfd Problem: Get list of sets where the sum of each set is X I'm trying to figure out how to generate a list of sets, where each set has a length of N and the sum of each set is X. I fou...
Get list of sets where the sum of each set is X Get list of sets where the sum of each set is X prolog clpfd Get num_split List get_combos Sum Length Get list of sets where the sum of each set is X I'm trying to figure out how to generate a list of sets, where each set has a length of N and the sum of each set is X. I ...
[ -0.01141357421875, 0.029541015625, 0.0152587890625, 0.0040283203125, -0.0157470703125, 0.0155029296875, 0.0004596710205078125, 0.0030364990234375, 0.01129150390625, -0.0255126953125, -0.007171630859375, 0.00170135498046875, 0.014892578125, -0.005859375, 0.004913330078125, 0.0244140625,...
[ 20779, 5303, 111, 5423, 7, 7440, 10554, 12638, 83, 1193, 502, 4867, 33139, 39557, 71, 13269, 4353, 32036, 2046, 277, 16091, 36335, 77554, 31577, 26366, 139392, 140909, 541, 14037, 18151, 4527, 678, 2967, 117, 14311, 21094, 16487, 100, 16251...
[ 0.1112060546875, 0.1754150390625, 0.055999755859375, 0.2181396484375, 0.001312255859375, 0.04022216796875, 0.2213134765625, 0.050567626953125, 0.035675048828125, 0.177001953125, 0.0941162109375, 0.1671142578125, 0.01220703125, 0.043182373046875, 0.0897216796875, 0.1259765625, 0.10986...
embed
28086167_c1
28086167
prolog
1
wish to extend my cordial greetings and best wishes As you can see they're delimited by tabs. What I want to do is create normal definite clauses from this data, rendering them as: 'attend by'('some # guests','the grand hall of the hong kong convention'). 'take part in'('the ceremony','both countries'). be('representi...
wish to extend my cordial greetings and best wishes As you can see they're delimited by tabs. What I want to do is create normal definite clauses from this data, rendering them as: 'attend by'('some # guests','the grand hall of the hong kong convention'). 'take part in'('the ceremony','both countries'). be('representi...
[ 0.01397705078125, 0.0106201171875, 0.0032806396484375, 0.02587890625, -0.0157470703125, 0.01544189453125, 0.016357421875, 0.0125732421875, -0.005096435546875, -0.0255126953125, -0.0050048828125, -0.0067138671875, -0.010498046875, -0.003448486328125, 0.0140380859375, 0.0257568359375, ...
[ 32599, 47, 65042, 759, 183840, 3514, 126, 5180, 136, 2965, 90, 1957, 8, 93343, 297, 390, 20928, 3444, 28282, 3638, 71496, 13, 70731, 1295, 903, 2053, 89159, 237, 68918, 43452, 468, 138931, 9963, 23664, 30434, 13568, 101805, 78219, 2831, 2...
[ 0.248291015625, 0.0789794921875, 0.2305908203125, 0.0968017578125, 0.1580810546875, 0.131591796875, 0.10650634765625, 0.1466064453125, 0.04473876953125, 0.12353515625, 0.1346435546875, 0.005340576171875, 0.0421142578125, 0.1646728515625, 0.0115966796875, 0.196044921875, 0.16784667968...
embed
52529515_c0
52529515
prolog
0
Title: How to get value from a matrix in Prolog? Problem title: How to get value from a matrix in Prolog? Tags: prolog Problem: How to get value from a matrix in Prolog? I'm a beginner in Prolog, so I'm still confused on how to form a recursive function in Prolog. Let say I have a matrix: S: [ 5 6 3 4 ] Represented in ...
How to get value from a matrix in Prolog? How to get value from a matrix in Prolog? prolog a How Prolog use_module cell_values Values nth0 Row How to get value from a matrix in Prolog? I'm a beginner in Prolog, so I'm still confused on how to form a recursive function in Prolog. Let say I have a matrix: Represented in ...
[ -0.00787353515625, 0.0155029296875, 0.0091552734375, 0.0010223388671875, 0.0091552734375, -0.01318359375, 0.0137939453125, 0.0126953125, -0.006256103515625, -0.008544921875, -0.00128173828125, -0.00946044921875, -0.037109375, 0.000896453857421875, 0.00994873046875, -0.00762939453125, ...
[ 11249, 47, 2046, 34292, 1295, 50944, 425, 23, 1250, 4867, 502, 4527, 83279, 38750, 27494, 190060, 927, 2389, 96190, 1679, 55681, 3173, 195625, 5844, 32354, 55247, 159, 2203, 104629, 82449, 31577, 33022, 88510, 194234, 30646, 5303, 142424, 635...
[ 0.0660400390625, 0.018585205078125, 0.1378173828125, 0.24853515625, 0.154052734375, 0.2216796875, 0.1573486328125, 0.054351806640625, 0.1578369140625, 0.25830078125, 0.09521484375, 0.03546142578125, 0.10546875, 0.174072265625, 0.172119140625, 0.187744140625, 0.1077880859375, 0.1132...
embed
16600255_c0
16600255
prolog
0
Title: How can I search a list with the underscore variable? (Prolog) Problem title: How can I search a list with the underscore variable? (Prolog) Tags: list, prolog Problem: How can I search a list with the underscore variable? (Prolog) here's my problem I receive various lists with the underscore variable in them (f...
How can I search a list with the underscore variable? (Prolog) How can I search a list with the underscore variable? (Prolog) list prolog How Prolog How can I search a list with the underscore variable? (Prolog) here's my problem I receive various lists with the underscore variable in them (for example: [ _, _, A, _, _...
[ 0.0019989013671875, 0.0096435546875, 0.0147705078125, 0.01019287109375, -0.0189208984375, 0.01611328125, 0.00439453125, 0.0169677734375, 0.00811767578125, -0.00154876708984375, 0.002349853515625, -0.019775390625, 0.00543212890625, 0.00823974609375, 0.007781982421875, -0.00848388671875,...
[ 11249, 831, 33938, 5303, 678, 1379, 7, 30854, 77336, 10752, 4867, 502, 1250, 87, 10, 2967, 53299, 67842, 335, 3871, 47, 100, 142424, 26866, 62, 136, 7722, 86869, 43701, 29786, 37421, 10644, 1528, 92865, 7413, 162882, 56, 3444, 1632, 11907...
[ 0.056884765625, 0.04998779296875, 0.232421875, 0.23291015625, 0.1121826171875, 0.2366943359375, 0.076416015625, 0.2008056640625, 0.2381591796875, 0.118408203125, 0.1973876953125, 0.0927734375, 0.1353759765625, 0.009765625, 0.016845703125, 0.043365478515625, 0.06561279296875, 0.0365...
embed
34409508_c0
34409508
prolog
0
Title: How to append numbers in a specific range to a list in prolog Problem title: How to append numbers in a specific range to a list in prolog Tags: append, list, prolog, visual-prolog Problem: How to append numbers in a specific range to a list in prolog I'm trying to append some numbers to a list, these numbers is...
How to append numbers in a specific range to a list in prolog How to append numbers in a specific range to a list in prolog append list prolog visual-prolog How Upper Lower Numbers Same Result How to append numbers in a specific range to a list in prolog I'm trying to append some numbers to a list, these numbers is in ...
[ -0.018798828125, 0.0157470703125, 0.0164794921875, -0.003173828125, 0.00726318359375, 0.031005859375, -0.01153564453125, 0.0255126953125, 0.020751953125, 0.00408935546875, 0.00079345703125, -0.019287109375, -0.0038909912109375, 0.0096435546875, 0.024658203125, -0.01531982421875, 0.00...
[ 11249, 114689, 71, 101935, 23, 10, 29458, 37457, 47, 5303, 502, 4867, 21176, 3454, 26655, 56, 61187, 103332, 99908, 126684, 31577, 1295, 1193, 990, 92319, 99091, 1407, 30098, 139392, 37842, 3034, 69236, 5021, 187895, 44691 ]
[ 0.0635986328125, 0.1885986328125, 0.12744140625, 0.2186279296875, 0.08294677734375, 0.00238037109375, 0.1932373046875, 0.248046875, 0.083740234375, 0.213623046875, 0.17041015625, 0.245849609375, 0.1627197265625, 0.1114501953125, 0.09814453125, 0.034393310546875, 0.1217041015625, 0....
embed
36310568_c0
36310568
prolog
0
Title: Maximum Subarray (Kadane's algorithm) - Tail recursion Problem title: Maximum Subarray (Kadane's algorithm) - Tail recursion Tags: tail-recursion, prolog, kadanes-algorithm Problem: Maximum Subarray (Kadane's algorithm) - Tail recursion i am trying to implement Kadane's Algorithm in Prolog. One of the ...
Maximum Subarray (Kadane's algorithm) - Tail recursion Maximum Subarray (Kadane's algorithm) - Tail recursion tail-recursion prolog kadanes-algorithm Maximum Subarray Kadane Tail max_sum NewH NewS Call _G8907 Exit _G8991 Fail Redo _G8994 _G8997 _G8998 _G9000 _G9003 _G9004 _G9006 _G9009 _G9010 NewF Maximum Sub...
[ 0.01409912109375, 0.00714111328125, 0.0230712890625, -0.00188446044921875, -0.0189208984375, 0.01495361328125, -0.01519775390625, 0.008056640625, 0.001922607421875, 0.0026092529296875, 0.01446533203125, -0.006866455078125, -0.015625, -0.00537109375, 0.04345703125, -0.004608154296875, ...
[ 46540, 316, 8273, 19305, 53, 8139, 95860, 3768, 234873, 1218, 379, 195625, 1830, 54764, 46741, 107, 48650, 502, 4867, 7410, 1444, 100628, 2783, 30613, 86, 18389, 11832, 2356, 841, 294, 26265, 136442, 5443, 168524, 190355, 6096, 158931, 147061...
[ 0.1981201171875, 0.1339111328125, 0.18701171875, 0.126220703125, 0.06591796875, 0.1202392578125, 0.230712890625, 0.08172607421875, 0.191650390625, 0.1895751953125, 0.1583251953125, 0.18896484375, 0.09130859375, 0.015838623046875, 0.2415771484375, 0.06378173828125, 0.17822265625, 0....
embed
59105476_c0
59105476
prolog
0
Title: Is it possible to get elapsed time in microseconds in Swi-Prolog? Problem title: Is it possible to get elapsed time in microseconds in Swi-Prolog? Tags: prolog, swi-prolog, time Problem: Is it possible to get elapsed time in microseconds in Swi-Prolog? Simple question. I need to calculate how long it takes to ex...
Is it possible to get elapsed time in microseconds in Swi-Prolog? Is it possible to get elapsed time in microseconds in Swi-Prolog? prolog swi-prolog time Swi-Prolog Executing Time Is it possible to get elapsed time in microseconds in Swi-Prolog? Simple question. I need to calculate how long it takes to execute predica...
[ -0.006744384765625, -0.01318359375, 0.01513671875, 0.0155029296875, -0.01251220703125, 0.01104736328125, 0.00897216796875, -0.02099609375, 0.00183868408203125, -0.051025390625, 0.0206298828125, 0.03759765625, -0.0068359375, -0.005401611328125, -0.007537841796875, 0.005584716796875, 0...
[ 2071, 442, 7722, 2046, 28, 127966, 71, 1733, 23, 11948, 191633, 105432, 9, 10752, 4867, 47, 502, 91, 2452, 3454, 211603, 19055, 60552, 3871, 74481, 4989, 51776, 71924, 1653, 2063, 67, 1193, 54397, 903, 114864, 8877, 2965, 61689, 219, 1403...
[ 0.0283660888671875, 0.033905029296875, 0.1937255859375, 0.1248779296875, 0.111083984375, 0.257568359375, 0.0660400390625, 0.2418212890625, 0.0811767578125, 0.2080078125, 0.281494140625, 0.26953125, 0.0828857421875, 0.1724853515625, 0.2254638671875, 0.0355224609375, 0.12939453125, 0...
embed
43807987_c1
43807987
prolog
1
, C is 0, Num is 0, Usedlist = ["Garbage data1", "More garbage data"], prologwhile(Num, A, B, C, Usedlist). prologwhile(Num, A, B, C, Usedlist) :- Num < 9 , F = [["time of day", 1], ["Season", 5], ["Yesterdays weather", 2], ["Month of last big storm", 2], ["Randomly generated riddle", 9], ["A captcha", 1], ['Current da...
, C is 0, Num is 0, Usedlist = ["Garbage data1", "More garbage data"], prologwhile(Num, A, B, C, Usedlist). prologwhile(Num, A, B, C, Usedlist) :- Num < 9 , F = [["time of day", 1], ["Season", 5], ["Yesterdays weather", 2], ["Month of last big storm", 2], ["Randomly generated riddle", 9], ["A captcha", 1], ['Current da...
[ 0.0220947265625, -0.00762939453125, 0.0169677734375, 0.000896453857421875, -0.004364013671875, 0.006195068359375, -0.013671875, 0.0263671875, 0.017822265625, -0.03369140625, -0.005859375, 0.0118408203125, -0.0283203125, 0.018310546875, 0.00732421875, 0.000030994415283203125, -0.00049...
[ 4, 313, 83, 757, 52782, 345, 5281, 6562, 2203, 82166, 402, 429, 2053, 418, 122880, 3671, 502, 4867, 204610, 839, 316, 62, 335, 194, 15772, 4426, 483, 563, 6032, 5155, 106, 11, 1681, 190, 91480, 720, 5636, 92949, 146794, 4568, 6957, 77...
[ 0.022796630859375, 0.122314453125, 0.05511474609375, 0.1390380859375, 0.2171630859375, 0.158447265625, 0.1622314453125, 0.2421875, 0.078369140625, 0.0941162109375, 0.1978759765625, 0.1318359375, 0.1759033203125, 0.004608154296875, 0.10400390625, 0.0977783203125, 0.1602783203125, 0....
embed
4640656_c0
4640656
prolog
0
Title: How do I make a recursive list that checks company rankings? Problem title: How do I make a recursive list that checks company rankings? Tags: recursion, prolog, list Problem: How do I make a recursive list that checks company rankings? I have a set of companies in rank order. I want my rule to check if the comp...
How do I make a recursive list that checks company rankings? How do I make a recursive list that checks company rankings? recursion prolog list How COM1 COM2 How do I make a recursive list that checks company rankings? I have a set of companies in rank order. I want my rule to check if the companies in a specified list...
[ 0.007049560546875, -0.019287109375, -0.01123046875, 0.017333984375, 0.001251220703125, 0.017822265625, -0.022216796875, -0.0034332275390625, 0.01953125, 0.01434326171875, 0.007080078125, -0.0159912109375, 0.000385284423828125, -0.0185546875, -0.0146484375, -0.01190185546875, -0.00106...
[ 11249, 54, 87, 3249, 10, 195625, 5844, 5303, 12765, 7, 14380, 77918, 450, 1830, 502, 4867, 31436, 418, 304, 5423, 53095, 23, 30648, 12989, 3444, 79986, 47, 2174, 58735, 43852, 24189, 756, 82424, 25632, 959, 48903, 4488, 160193, 60899, 98,...
[ 0.0946044921875, 0.045196533203125, 0.025054931640625, 0.1368408203125, 0.06268310546875, 0.245849609375, 0.1884765625, 0.2467041015625, 0.23193359375, 0.1004638671875, 0.1602783203125, 0.256591796875, 0.028411865234375, 0.1163330078125, 0.1324462890625, 0.1993408203125, 0.0789794921...
embed
8966488_c0
8966488
prolog
0
Title: Prolog and ancestor relationship Problem title: Prolog and ancestor relationship Tags: prolog Problem: Prolog and ancestor relationship I have to write a small prolog program which checks if a given person is a ancestor of a second one. These are the facts and rules: mother(tim, anna). mother(anna, fanny). mothe...
Prolog and ancestor relationship Prolog and ancestor relationship prolog Prolog Prolog and ancestor relationship I have to write a small prolog program which checks if a given person is a ancestor of a second one. These are the facts and rules: The test if a person is an ancestor of another person is easy: But now I ha...
[ 0.01611328125, 0.01123046875, 0.0054931640625, 0.0257568359375, -0.0167236328125, 0.0189208984375, -0.0007781982421875, 0.0133056640625, -0.0054931640625, -0.025146484375, 0.0137939453125, -0.015869140625, -0.0108642578125, 0.000438690185546875, 0.0166015625, -0.00494384765625, 0.015...
[ 1250, 4867, 136, 60502, 1290, 76755, 502, 765, 33022, 19336, 1528, 12765, 2174, 34475, 3445, 83, 10, 111, 17932, 1632, 70, 15824, 91736, 3034, 142, 15700, 23468, 5036, 55300, 1542, 1723, 1511, 2843, 28412, 1810, 17721, 6626, 5608, 6713, 1...
[ 0.1695556640625, 0.263916015625, 0.053375244140625, 0.197998046875, 0.2039794921875, 0.2236328125, 0.144775390625, 0.012298583984375, 0.12109375, 0.077880859375, 0.151123046875, 0.164306640625, 0.0933837890625, 0.00982666015625, 0.1104736328125, 0.1175537109375, 0.0631103515625, 0....
embed
75686600_c0
75686600
prolog
0
Title: Arguments not sufficiently instantiated in Prolog error Problem title: Arguments not sufficiently instantiated in Prolog error Tags: transitive-closure, prolog, path, instantiation-error Problem: Arguments not sufficiently instantiated in Prolog error As the title suggests, I am having an error I don't really kn...
Arguments not sufficiently instantiated in Prolog error Arguments not sufficiently instantiated in Prolog error transitive-closure prolog path instantiation-error Arguments Prolog Path Visited Instantiated Arguments not sufficiently instantiated in Prolog error As the title suggests, I am having an error I don't really...
[ 0.0284423828125, 0.016357421875, 0.01055908203125, 0.005035400390625, 0.01123046875, 0.0185546875, -0.013916015625, -0.01153564453125, -0.00063323974609375, -0.030517578125, 0.014404296875, -0.0205078125, -0.00653076171875, 0.0172119140625, 0.0186767578125, 0.00665283203125, 0.012756...
[ 112140, 7, 959, 129980, 538, 34648, 14, 27686, 1250, 4867, 18499, 62621, 5844, 170224, 502, 60875, 188800, 108421, 98684, 166945, 42459, 19441, 3714, 30022, 3525, 6275, 29806, 18151, 7413, 17721, 24233, 26847, 212059, 26008, 9790, 9969, 1340, ...
[ 0.286376953125, 0.142333984375, 0.1490478515625, 0.2059326171875, 0.0936279296875, 0.149658203125, 0.140625, 0.100830078125, 0.1478271484375, 0.2200927734375, 0.1578369140625, 0.11279296875, 0.00018310546875, 0.1312255859375, 0.115966796875, 0.2149658203125, 0.1370849609375, 0.1514...
embed
69743575_c0
69743575
prolog
0
Title: How to eliminate from a list [b,a] if already exist [a,b] Problem title: How to eliminate from a list [b,a] if already exist [a,b] Tags: prolog Problem: How to eliminate from a list [b,a] if already exist [a,b] what I want to do is really simple: I already have a "function" that starting with a list (i.e. [a,b,c...
How to eliminate from a list [b,a] if already exist [a,b] How to eliminate from a list [b,a] if already exist [a,b] prolog a How List Res TRIED ADD How to eliminate from a list [b,a] if already exist [a,b] what I want to do is really simple: I already have a "function" that starting with a list (i.e. [a,b,c,d]) produce...
[ -0.02001953125, 0.0081787109375, 0.0142822265625, 0.008056640625, -0.0057373046875, -0.00616455078125, -0.00775146484375, 0.0146484375, 0.0140380859375, -0.0146484375, 0.0106201171875, 0.01904296875, 0.026611328125, -0.00616455078125, -0.013916015625, 0.008544921875, 0.0062255859375,...
[ 11249, 47, 27169, 67, 1295, 10, 5303, 275, 11, 2174, 21771, 32316, 502, 4867, 32036, 9624, 94536, 17610, 62, 24057, 3444, 54, 6183, 8781, 137175, 72134, 678, 71, 27489, 11907, 162515, 6626, 12921, 12830, 23, 3871, 12765, 154109, 1556, 570...
[ 0.083251953125, 0.038238525390625, 0.26318359375, 0.173828125, 0.21875, 0.06195068359375, 0.2484130859375, 0.13720703125, 0.09503173828125, 0.157958984375, 0.2398681640625, 0.2626953125, 0.09375, 0.125, 0.1619873046875, 0.18505859375, 0.07965087890625, 0.01861572265625, 0.0385131...
embed
69960140_c0
69960140
prolog
0
Title: How can I save and load data files in Prolog? Problem title: How can I save and load data files in Prolog? Tags: prolog, file Problem: How can I save and load data files in Prolog? How can I quickly save and load data files in Prolog, for use with games? Save files with save(File_name,Term), where File_name is t...
How can I save and load data files in Prolog? How can I save and load data files in Prolog? prolog file How Prolog file_name.txt player_name Harold key_word Queenie Term writeln1 How can I save and load data files in Prolog? How can I quickly save and load data files in Prolog, for use with games? Save files with save(...
[ 0.046875, 0.00836181640625, 0.005950927734375, 0.020751953125, -0.01519775390625, 0.01153564453125, 0.0035247802734375, 0.01275634765625, 0.007293701171875, -0.040771484375, 0.00119781494140625, 0.009033203125, -0.02685546875, -0.004302978515625, 0.0167236328125, -0.005096435546875, ...
[ 11249, 831, 87, 30098, 136, 72367, 2053, 102158, 23, 1250, 4867, 502, 11435, 11627, 124326, 58585, 1950, 18345, 22799, 47416, 5813, 2597, 2994, 39, 33022, 19, 418, 69405, 100, 4527, 678, 27528, 64944, 174350, 35484, 42724, 9351, 78303, 2177...
[ 0.0653076171875, 0.08624267578125, 0.0484619140625, 0.2110595703125, 0.11328125, 0.2215576171875, 0.1673583984375, 0.206787109375, 0.09649658203125, 0.2149658203125, 0.286376953125, 0.1629638671875, 0.182861328125, 0.1058349609375, 0.18994140625, 0.15673828125, 0.08154296875, 0.199...
embed
55750733_c0
55750733
prolog
0
Title: Is the graph a tree in prolog Problem title: Is the graph a tree in prolog Tags: graph-theory, tree, prolog Problem: Is the graph a tree in prolog I am learning Prolog and I have this code which should determine if the graph is a tree. The Graph is Tree if there is no cycle and edges are connected. My question i...
Is the graph a tree in prolog Is the graph a tree in prolog graph-theory tree prolog Graph Tree Node1 Node2 Node Set Is the graph a tree in prolog I am learning Prolog and I have this code which should determine if the graph is a tree. The Graph is Tree if there is no cycle and edges are connected. My question is: How ...
[ 0.01043701171875, -0.0001430511474609375, -0.01220703125, 0.0079345703125, -0.0096435546875, -0.00799560546875, -0.0240478515625, -0.0169677734375, -0.000766754150390625, -0.029052734375, -0.01043701171875, 0.0037689208984375, -0.025634765625, 0.006378173828125, 0.001190185546875, 0.02...
[ 2071, 70, 41382, 10, 53201, 23, 502, 4867, 2347, 30675, 6524, 11727, 101344, 438, 112, 418, 304, 19943, 52080, 1250, 18151, 83324, 83, 110, 105823, 121303, 162711, 2046, 29806, 9, 71, 43240 ]
[ 0.03472900390625, 0.040985107421875, 0.27490234375, 0.083251953125, 0.273681640625, 0.07818603515625, 0.15234375, 0.228271484375, 0.0240631103515625, 0.003326416015625, 0.1746826171875, 0.170166015625, 0.2486572265625, 0.08819580078125, 0.05987548828125, 0.007415771484375, 0.02949523...
embed
10702531_c0
10702531
prolog
0
Title: How can I include an interpreter in a .NET project? Problem title: How can I include an interpreter in a .NET project? Tags: prolog, interpreter, dsl, c%23, .net Problem: How can I include an interpreter in a .NET project? I'm looking to produce an educational tool to be used in a Code Club for teenagers. My eve...
How can I include an interpreter in a .NET project? How can I include an interpreter in a .NET project? prolog interpreter dsl c%23 .net an How NET How can I include an interpreter in a .NET project? I'm looking to produce an educational tool to be used in a Code Club for teenagers. My eventual goal is to produce a rul...
[ 0.01361083984375, 0.00640869140625, 0.0062255859375, 0.01513671875, -0.01458740234375, -0.0023956298828125, 0.021728515625, 0.004425048828125, -0.00098419189453125, -0.0419921875, -0.00102996826171875, 0.01202392578125, -0.0380859375, -0.0038909912109375, 0.012939453125, -0.00778198242...
[ 11249, 831, 87, 26698, 142, 29481, 56, 23, 5, 17777, 13452, 502, 4867, 104, 24861, 3949, 3742, 1179, 10, 16487, 27489, 162807, 55516, 11814, 28864, 7687, 166513, 57693, 69236, 79986, 77007, 351, 48461, 114479, 146365, 36497, 33493, 166635, ...
[ 0.1143798828125, 0.098876953125, 0.013031005859375, 0.2132568359375, 0.09271240234375, 0.271484375, 0.2408447265625, 0.082275390625, 0.05712890625, 0.21826171875, 0.162353515625, 0.1351318359375, 0.22900390625, 0.00750732421875, 0.162353515625, 0.00396728515625, 0.08740234375, 0.15...
embed
33526063_c0
33526063
prolog
0
Title: How to determine the sum of 2 numbers written in list representation prolog Problem title: How to determine the sum of 2 numbers written in list representation prolog Tags: prolog Problem: How to determine the sum of 2 numbers written in list representation prolog I'm trying to print the sum of 2 numbers written...
How to determine the sum of 2 numbers written in list representation prolog How to determine the sum of 2 numbers written in list representation prolog prolog How add_final L1i L2i How to determine the sum of 2 numbers written in list representation prolog I'm trying to print the sum of 2 numbers written in list repres...
[ 0.00151824951171875, 0.01416015625, 0.00946044921875, 0.01226806640625, -0.0302734375, 0.0024566650390625, -0.0196533203125, 0.009765625, 0.016845703125, -0.00653076171875, 0.017333984375, -0.01495361328125, 0.002899169921875, 0.025390625, -0.0024566650390625, -0.002166748046875, 0.0...
[ 11249, 83324, 10554, 111, 116, 101935, 59121, 5303, 18811, 502, 4867, 23, 15190, 33870, 339, 418, 14, 304, 47, 31577, 28412, 1363, 16750, 1528, 2060, 140992, 30022 ]
[ 0.04150390625, 0.1485595703125, 0.2225341796875, 0.046234130859375, 0.138671875, 0.1768798828125, 0.1556396484375, 0.1551513671875, 0.1898193359375, 0.13427734375, 0.1907958984375, 0.0304107666015625, 0.111083984375, 0.140625, 0.06097412109375, 0.0241851806640625, 0.037872314453125, ...
embed
70303996_c0
70303996
prolog
0
Title: How to code a program in prolog based like this Problem title: How to code a program in prolog based like this Tags: prolog Problem: How to code a program in prolog based like this I'm trying to code a program in prolog that uses only the letters {a,b,c} and takes l number of a, m number of b and n number of c. ...
How to code a program in prolog based like this How to code a program in prolog based like this prolog How langage7 How to code a program in prolog based like this I'm trying to code a program in prolog that uses only the letters {a,b,c} and takes l number of a, m number of b and n number of c. But it has to be in the ...
[ 0.0167236328125, -0.0003223419189453125, 0.00023651123046875, 0.033203125, -0.01251220703125, 0.015869140625, -0.0093994140625, 0.00830078125, 0.0091552734375, -0.0250244140625, 0.0146484375, -0.0003833770751953125, -0.022705078125, -0.004791259765625, 0.00494384765625, -0.005157470703...
[ 11249, 47, 18151, 10, 1528, 23, 502, 4867, 35509, 1884, 903, 1937, 4588, 966, 31577, 4527, 4734, 120820, 11, 275, 238, 51776, 96, 14012, 347, 876, 653, 501, 4966, 1556, 186, 12989, 89536, 29568, 98320, 5701, 60899, 88949, 83, 44691, 378...
[ 0.10687255859375, 0.07672119140625, 0.2587890625, 0.054473876953125, 0.2423095703125, 0.1142578125, 0.212890625, 0.262451171875, 0.2427978515625, 0.21630859375, 0.2210693359375, 0.1483154296875, 0.1478271484375, 0.174072265625, 0.1007080078125, 0.1202392578125, 0.1182861328125, 0.2...
embed
39106092_c0
39106092
prolog
0
Title: Prolog - ASP &#x27;not&#x27; to Prolog negate Problem title: Prolog - ASP &#x27;not&#x27; to Prolog negate Tags: answer-set-programming, negate, logic-programming, prolog Problem: Prolog - ASP 'not' to Prolog negate I have an example problem in Answer Set Programming (ASP). When I try to make the equivalent code...
Prolog - ASP &#x27;not&#x27; to Prolog negate Prolog - ASP &#x27;not&#x27; to Prolog negate answer-set-programming negate logic-programming prolog Prolog ASP Prolog - ASP 'not' to Prolog negate I have an example problem in Answer Set Programming (ASP). When I try to make the equivalent code in Prolog, I keep getting st...
[ 0.0072021484375, 0.01123046875, 0.0234375, 0.005615234375, -0.01031494140625, 0.01031494140625, 0.005889892578125, -0.007415771484375, 0.00885009765625, -0.028076171875, -0.007415771484375, 0.0155029296875, 0.0011749267578125, 0.01171875, 0.006683349609375, 0.00897216796875, 0.000333...
[ 1250, 4867, 147153, 3768, 10869, 47, 90584, 13, 35166, 3509, 28966, 62775, 502, 27781, 2967, 130373, 19943, 27958, 284, 9434, 9790, 3249, 183234, 18151, 13695, 20949, 179933, 959, 46389, 22648, 7804, 7, 6229, 6488, 820, 1297, 2397, 61475, 1...
[ 0.1839599609375, 0.27197265625, 0.23583984375, 0.06842041015625, 0.2406005859375, 0.08349609375, 0.2138671875, 0.122802734375, 0.177734375, 0.134765625, 0.0924072265625, 0.07354736328125, 0.088134765625, 0.115478515625, 0.0673828125, 0.145263671875, 0.15673828125, 0.13330078125, ...
embed
28368798_c0
28368798
prolog
0
Title: How to connect JPL with SWI-Prolog in Mac OS X Problem title: How to connect JPL with SWI-Prolog in Mac OS X Tags: swi-prolog, prolog, macos, java, eclipse Problem: How to connect JPL with SWI-Prolog in Mac OS X Hi i have a problem with a jpl interface. I want connect JPL with swi-prolog installed with mac-ports...
How to connect JPL with SWI-Prolog in Mac OS X How to connect JPL with SWI-Prolog in Mac OS X swi-prolog prolog macos java eclipse How JPL SWI-Prolog Mac How to connect JPL with SWI-Prolog in Mac OS X Hi i have a problem with a jpl interface. I want connect JPL with swi-prolog installed with mac-ports with eclipse. I h...
[ 0.005279541015625, 0.032470703125, -0.00799560546875, 0.0189208984375, -0.0189208984375, -0.00787353515625, -0.01068115234375, -0.00885009765625, -0.0247802734375, 0.0030670166015625, -0.01123046875, -0.002899169921875, -0.00946044921875, -0.011474609375, 0, -0.017578125, 0.000385284...
[ 11249, 37067, 821, 21130, 678, 159, 38969, 9, 10752, 4867, 4727, 11787, 1193, 23, 91, 2452, 3454, 502, 7840, 79, 330, 106371, 184, 2967, 1647, 2424, 101758, 20600, 19138, 6982, 28, 3403, 24927, 35125, 11435, 45367, 60875, 18499, 157, 150,...
[ 0.05291748046875, 0.195068359375, 0.178955078125, 0.273193359375, 0.1107177734375, 0.0933837890625, 0.263671875, 0.04400634765625, 0.156982421875, 0.2269287109375, 0.137939453125, 0.1263427734375, 0.110107421875, 0.08447265625, 0.0584716796875, 0.2420654296875, 0.1484375, 0.1444091...
embed
49246935_c0
49246935
prolog
0
Title: Sibling relation that just doesn&#x27;t seem to cover all cases Problem title: Sibling relation that just doesn&#x27;t seem to cover all cases Tags: prolog Problem: Sibling relation that just doesn't seem to cover all cases I've been tasked with creating a sister relation in prolog, among other basic relations. ...
Sibling relation that just doesn&#x27;t seem to cover all cases Sibling relation that just doesn&#x27;t seem to cover all cases prolog Sibling Sibling relation that just doesn't seem to cover all cases I've been tasked with creating a sister relation in prolog, among other basic relations. The issue is that my assertio...
[ 0.0201416015625, 0.003082275390625, 0.01214599609375, -0.012939453125, -0.00604248046875, -0.010986328125, -0.0009765625, -0.0025787353515625, 0.00897216796875, -0.01287841796875, 0.004150390625, -0.004425048828125, -0.0133056640625, 0.00665283203125, 0.0130615234375, 0.00726318359375,...
[ 602, 79298, 41911, 450, 1660, 22027, 3768, 18, 48903, 29256, 756, 50218, 502, 4867, 66211, 105233, 114015, 62822, 91582, 31089, 10, 16865, 5256, 13319, 55291, 89397, 2046, 18151, 43240, 5885, 134234, 1727, 5083, 71723, 29568, 1021, 9319, 9832...
[ 0.118408203125, 0.2132568359375, 0.18505859375, 0.005218505859375, 0.05126953125, 0.035491943359375, 0.051025390625, 0.0621337890625, 0.09033203125, 0.12646484375, 0.0858154296875, 0.1419677734375, 0.10595703125, 0.1561279296875, 0.026824951171875, 0.0218353271484375, 0.2333984375, ...
embed
38689589_c0
38689589
prolog
0
Title: Formulating Effect axiom Problem title: Formulating Effect axiom Tags: artificial-intelligence, clpfd, axiom, logic, prolog Problem: Formulating Effect axiom How to write correctly the effect axiom for empty(b,t)-action using the predicate contains(b,l,t) The predicate evaluates True , if the bucket b holds l li...
Formulating Effect axiom Formulating Effect axiom artificial-intelligence clpfd axiom logic prolog Formulating Effect Formulating Effect axiom How to write correctly the effect axiom for empty(b,t)-action using the predicate contains(b,l,t) The predicate evaluates True , if the bucket b holds l liters of water at time ...
[ 0.012451171875, 0.0003528594970703125, -0.016845703125, 0.01068115234375, -0.006256103515625, 0.009033203125, 0.0029449462890625, 0.01031494140625, -0.0166015625, 0.024658203125, 0.0257568359375, -0.0023193359375, -0.0233154296875, -0.0040283203125, 0.0140380859375, -0.00421142578125, ...
[ 72791, 1916, 129297, 10, 5134, 306, 66733, 130687, 39557, 71, 62775, 502, 4867, 33022, 26785, 538, 21543, 201505, 275, 18, 44713, 17368, 1653, 2063, 67, 70541, 7, 141, 151575, 87599, 6, 2174, 373, 27853, 876, 16401, 96, 15659, 7401, 1733,...
[ 0.1884765625, 0.0870361328125, 0.2264404296875, 0.077880859375, 0.1578369140625, 0.1795654296875, 0.06280517578125, 0.05712890625, 0.004974365234375, 0.0265350341796875, 0.050628662109375, 0.009368896484375, 0.0247344970703125, 0.170654296875, 0.1427001953125, 0.0152587890625, 0.2534...
embed
71102728_c0
71102728
prolog
0
Title: Understanding Prolog exercise (removes all duplicates from a list) Problem title: Understanding Prolog exercise (removes all duplicates from a list) Tags: prolog Problem: Understanding Prolog exercise (removes all duplicates from a list) I'm exercising for an exam and I'm having a hard time understanding the pro...
Understanding Prolog exercise (removes all duplicates from a list) Understanding Prolog exercise (removes all duplicates from a list) prolog a Understanding Prolog Rest Understanding Prolog exercise (removes all duplicates from a list) I'm exercising for an exam and I'm having a hard time understanding the process of h...
[ -0.0069580078125, 0.0244140625, 0.0177001953125, 0.0011444091796875, -0.00946044921875, 0.01507568359375, 0.00009632110595703125, 0.00634765625, 0.0169677734375, -0.0299072265625, 0.0015411376953125, -0.0120849609375, 0.0152587890625, -0.0023956298828125, -0.01336669921875, 0.020385742...
[ 9626, 144057, 1250, 4867, 81979, 26973, 3132, 756, 171763, 1636, 1295, 5303, 502, 10, 49756, 56785, 42276, 100094, 9433, 3642, 43240, 73342, 50155, 903, 601, 18781, 1528, 87388, 30646, 67, 32087, 339, 418, 275, 304, 12989, 80854, 26866, 883...
[ 0.10400390625, 0.116943359375, 0.1846923828125, 0.274169921875, 0.16943359375, 0.10125732421875, 0.05902099609375, 0.09967041015625, 0.222412109375, 0.119140625, 0.07037353515625, 0.174560546875, 0.1412353515625, 0.00067138671875, 0.1212158203125, 0.06024169921875, 0.0860595703125, ...
embed
32938245_c0
32938245
prolog
0
Title: Prolog: Transaction like functionality? Problem title: Prolog: Transaction like functionality? Tags: prolog, database, transactions Problem: Prolog: Transaction like functionality? I have app that modifies the fact db. I want to have the ability to roll-back the changes i.e. return to original state if rule fail...
Prolog: Transaction like functionality? Prolog: Transaction like functionality? prolog database transactions Prolog Transaction Prolog: Transaction like functionality? I have app that modifies the fact db. I want to have the ability to roll-back the changes i.e. return to original state if rule fails at some point in b...
[ 0.019775390625, 0.020751953125, 0.00408935546875, 0.0029449462890625, 0.00799560546875, -0.0106201171875, -0.005828857421875, 0.01025390625, 0.00909423828125, -0.018310546875, 0.00518798828125, 0.03515625, -0.0185546875, 0.0093994140625, 0.02197265625, -0.006011962890625, 0.022338867...
[ 1250, 4867, 12, 11062, 44713, 1884, 123309, 2481, 32, 502, 63399, 124161, 765, 4027, 73197, 15824, 40041, 3444, 81273, 47, 21972, 9, 12620, 65572, 30646, 7311, 11341, 2174, 79986, 35782, 3060, 6275, 17721, 18852, 57976, 22691, 9844, 33233, ...
[ 0.1968994140625, 0.28369140625, 0.059967041015625, 0.1807861328125, 0.181396484375, 0.18896484375, 0.204345703125, 0.0987548828125, 0.004974365234375, 0.1724853515625, 0.1771240234375, 0.2490234375, 0.057373046875, 0.1878662109375, 0.201171875, 0.1944580078125, 0.1605224609375, 0.1...
embed
33186653_c0
33186653
prolog
0
Title: Tree leaf traversal in Prolog Problem title: Tree leaf traversal in Prolog Tags: prolog, prolog-defaulty Problem: Tree leaf traversal in Prolog I experience some issues when I'm training prolog exercises,the problem below is, The predicate defines what it means to be a tree, and can be used to test whether a ter...
Tree leaf traversal in Prolog Tree leaf traversal in Prolog prolog prolog-defaulty Tree Prolog Tree leaf traversal in Prolog I experience some issues when I'm training prolog exercises,the problem below is, The predicate defines what it means to be a tree, and can be used to test whether a term is a tree: By using this...
[ 0.029052734375, 0.0311279296875, -0.0167236328125, -0.00079345703125, 0.0164794921875, 0.01806640625, -0.03271484375, -0.009033203125, -0.0189208984375, -0.052978515625, -0.01202392578125, 0.00872802734375, -0.0033111572265625, 0.00823974609375, 0.01495361328125, 0.022216796875, 0.01...
[ 101344, 95, 2407, 37317, 289, 1250, 4867, 23, 502, 214810, 53, 16981, 37348, 23189, 81979, 2967, 35064, 1653, 2063, 67, 61924, 2367, 26950, 47, 186, 53201, 11814, 3034, 36766, 13579, 83, 10, 17368, 7413, 12830, 85763, 6626, 33022, 80854, ...
[ 0.2216796875, 0.08953857421875, 0.2032470703125, 0.1912841796875, 0.07598876953125, 0.1522216796875, 0.2161865234375, 0.032806396484375, 0.11767578125, 0.1591796875, 0.042755126953125, 0.0195159912109375, 0.05059814453125, 0.0484619140625, 0.0682373046875, 0.14208984375, 0.0227966308...
embed
19863352_c0
19863352
prolog
0
Title: How to loop through a set (not a list) of rules in prolog Problem title: How to loop through a set (not a list) of rules in prolog Tags: prolog Problem: How to loop through a set (not a list) of rules in prolog first off thank you for taking the time to consider my question. I'm writing an adventure-style game i...
How to loop through a set (not a list) of rules in prolog How to loop through a set (not a list) of rules in prolog prolog How i_am_at melba_market_square Exits melba_armory melba_main_st_s melba_sidra_alley_s How to loop through a set (not a list) of rules in prolog first off thank you for taking the time to consider ...
[ 0.0262451171875, -0.000675201416015625, 0.005218505859375, 0.020263671875, 0.004150390625, 0.01031494140625, -0.005859375, -0.010009765625, 0.01324462890625, -0.061279296875, 0.01092529296875, 0.0089111328125, -0.00616455078125, -0.0107421875, 0.0057373046875, 0.0103759765625, 0.0235...
[ 11249, 47, 40956, 8305, 5423, 10869, 5303, 91736, 23, 502, 4867, 111, 17, 302, 257, 21501, 402, 55637, 108047, 5443, 14481, 56859, 30675, 24931, 271, 3041, 13474, 53, 32562, 156578, 40946, 6712, 18151, 26366, 3642, 54, 3355, 75101, 30646, ...
[ 0.08013916015625, 0.043701171875, 0.241455078125, 0.2431640625, 0.191162109375, 0.0958251953125, 0.1136474609375, 0.1763916015625, 0.05364990234375, 0.155029296875, 0.24951171875, 0.063720703125, 0.07275390625, 0.1082763671875, 0.10693359375, 0.07391357421875, 0.190185546875, 0.158...
embed
15649793_c0
15649793
prolog
0
Title: I wrote some prolog logic, how do I write a script that uses it? Problem title: I wrote some prolog logic, how do I write a script that uses it? Tags: prolog, swi-prolog Problem: I wrote some prolog logic, how do I write a script that uses it? I'm writing an assignment for a prolog class and I'm stuck on somethi...
I wrote some prolog logic, how do I write a script that uses it? I wrote some prolog logic, how do I write a script that uses it? prolog swi-prolog question1.pl test1 test2 I wrote some prolog logic, how do I write a script that uses it? I'm writing an assignment for a prolog class and I'm stuck on something simple. I'...
[ 0.03125, 0.0184326171875, -0.0181884765625, 0.018798828125, -0.034912109375, -0.00136566162109375, 0.006011962890625, 0.0021820068359375, 0.00994873046875, -0.037841796875, 0.0155029296875, 0.01312255859375, -0.01104736328125, -0.0059814453125, 0.00872802734375, -0.00439453125, 0.011...
[ 87, 54397, 502, 4867, 62775, 3642, 33022, 26499, 4527, 442, 91, 2452, 3454, 9655, 418, 2424, 3034, 304, 32562, 95486, 18507, 179933, 8781, 59121, 147306, 11435, 17368, 159, 38969, 4727, 11787, 1193, 99, 75101, 105876, 72367, 6954, 18151, 20...
[ 0.004364013671875, 0.0887451171875, 0.1458740234375, 0.200439453125, 0.1806640625, 0.039306640625, 0.1629638671875, 0.2420654296875, 0.1024169921875, 0.06256103515625, 0.007659912109375, 0.1751708984375, 0.10888671875, 0.1485595703125, 0.061126708984375, 0.1177978515625, 0.1466064453...
embed
30835838_c0
30835838
prolog
0
Title: Prolog rules and query Problem title: Prolog rules and query Tags: prolog Problem: Prolog rules and query I need some help to find the rules and/or query for knowledgebase in Prolog with information about Costumers in a supermarket. For example I have: Customer(Name,Age,Sex,Wage). customer(John,30,M,2000). custo...
Prolog rules and query Prolog rules and query prolog Prolog Customer Name Age Sex Wage John Mary Mark Number CostumerName Product Price Potatoes Tomatoes Soap Detergent Food CleanProd Prolog rules and query I need some help to find the rules and/or query for knowledgebase in Prolog with information about Costumers in a...
[ 0.033935546875, 0.01031494140625, 0.004730224609375, 0.036376953125, 0.00677490234375, 0.005828857421875, -0.029296875, 0.0174560546875, 0.01300048828125, -0.0296630859375, 0.014404296875, 0.01434326171875, 0.0023651123046875, 0.029052734375, 0.006439208984375, 0.01068115234375, 0.00...
[ 1250, 4867, 91736, 136, 41, 1294, 502, 124765, 15757, 72944, 3621, 3316, 4939, 23213, 7880, 103332, 63099, 316, 56, 163612, 73111, 48025, 663, 28647, 175557, 31, 1061, 2631, 579, 46825, 34562, 73133, 10752, 71, 3871, 4358, 7413, 51359, 3738...
[ 0.1854248046875, 0.293701171875, 0.2154541015625, 0.1339111328125, 0.1734619140625, 0.156005859375, 0.1246337890625, 0.232177734375, 0.0931396484375, 0.11376953125, 0.1287841796875, 0.130615234375, 0.11474609375, 0.1204833984375, 0.158935546875, 0.0960693359375, 0.131103515625, 0.1...
embed
9337074_c1
9337074
prolog
1
nextstate(Grid, Row, Col, 1, NS) :- neightotal(Grid, Row, Col, Total), ((Total =:= 2; Total =:=3) -> NS = 1; NS = 0). % State of all surrounding neighbours %------------------------------------- neightotal(Grid, Row, Col, TotalSum) :- % Immediately neighbours X, Y XM1 is Col - 1, XP1 is Col + 1, YM1 is Row - 1, YP1 is...
nextstate(Grid, Row, Col, 1, NS) :- neightotal(Grid, Row, Col, Total), ((Total =:= 2; Total =:=3) -> NS = 1; NS = 0). % State of all surrounding neighbours %------------------------------------- neightotal(Grid, Row, Col, TotalSum) :- % Immediately neighbours X, Y XM1 is Col - 1, XP1 is Col + 1, YM1 is Row - 1, YP1 is...
[ -0.000652313232421875, 0.00555419921875, 0.000522613525390625, -0.004180908203125, 0.00347900390625, -0.005584716796875, 0.00946044921875, 0.0045166015625, 0.00830078125, 0.0032806396484375, -0.003997802734375, 0.0201416015625, -0.0228271484375, 0.0125732421875, -0.0126953125, 0.004455...
[ 11737, 61340, 132, 724, 19040, 96190, 11554, 106, 52700, 15772, 108, 22553, 31, 1803, 33867, 169473, 116, 76067, 757, 22836, 756, 206990, 6958, 38648, 294, 316, 1745, 12333, 1193, 990, 594, 418, 83, 45005, 997, 65311, 94588, 375, 13409, 2...
[ 0.2239990234375, 0.2469482421875, 0.0157012939453125, 0.0282745361328125, 0.186279296875, 0.216796875, 0.159912109375, 0.0892333984375, 0.167724609375, 0.10064697265625, 0.125244140625, 0.1396484375, 0.069091796875, 0.2264404296875, 0.1795654296875, 0.1710205078125, 0.066650390625, ...
embed
15580140_c0
15580140
prolog
0
Title: Atom escaping rules in Prolog Problem title: Atom escaping rules in Prolog Tags: iso-prolog, prolog Problem: Atom escaping rules in Prolog I need to export to a file a Prolog program expressed using an arbitrary term representation in Java. The idea is that a Prolog interpreter should be able to consult the gene...
Atom escaping rules in Prolog Atom escaping rules in Prolog iso-prolog prolog Atom Prolog Atom escaping rules in Prolog I need to export to a file a Prolog program expressed using an arbitrary term representation in Java. The idea is that a Prolog interpreter should be able to consult the generated file afterwards. My ...
[ 0.03515625, 0.0191650390625, -0.0003948211669921875, 0.01495361328125, -0.015869140625, 0.01116943359375, 0.0076904296875, 0.03564453125, -0.0196533203125, 0.0224609375, 0.01470947265625, 0.00084686279296875, -0.01025390625, 0.0137939453125, 0.017822265625, 0.01904296875, -0.00091934...
[ 69728, 38940, 10366, 91736, 1250, 4867, 23, 13882, 3454, 502, 3871, 31255, 47, 11435, 1528, 36510, 61799, 13579, 18811, 41925, 6528, 29481, 56, 75463, 139392, 9655, 26785, 3917, 33022, 23351, 5180, 33636, 34627, 69407, 79315, 1556, 32628, 869...
[ 0.2308349609375, 0.2137451171875, 0.1129150390625, 0.1986083984375, 0.1612548828125, 0.2236328125, 0.05029296875, 0.08953857421875, 0.098388671875, 0.1019287109375, 0.023712158203125, 0.1666259765625, 0.0152130126953125, 0.1658935546875, 0.133544921875, 0.05914306640625, 0.0709228515...
embed
11599549_c1
11599549
prolog
1
can calculate however how many combination of this one rectangle I get. It also take too much time to calculate and obviously I don't want to finish at the rectangle level. I thought about sorting the elements. I can sort vertices in a segment. But if I want to sort segments in a rectangle the constraints are no longe...
can calculate however how many combination of this one rectangle I get. It also take too much time to calculate and obviously I don't want to finish at the rectangle level. I thought about sorting the elements. I can sort vertices in a segment. But if I want to sort segments in a rectangle the constraints are no longe...
[ -0.0211181640625, 0.0177001953125, -0.005584716796875, 0.0250244140625, -0.006317138671875, -0.007720947265625, -0.01446533203125, 0.0017242431640625, 0.0235595703125, -0.00677490234375, -0.0081787109375, -0.0206298828125, 0.017578125, 0.01531982421875, 0.001861572265625, -0.0163574218...
[ 831, 74481, 67, 49903, 3642, 5941, 162515, 903, 1632, 148734, 449, 133, 2046, 5646, 5792, 5045, 1733, 3444, 67229, 17366, 17569, 12096, 80854, 95378, 5170, 33180, 7, 23, 158, 2816, 4288, 51713, 35604, 41382, 24209, 8951, 177229, 6626, 91582...
[ 0.023834228515625, 0.1939697265625, 0.059844970703125, 0.02410888671875, 0.0172882080078125, 0.0928955078125, 0.2310791015625, 0.045928955078125, 0.0577392578125, 0.169921875, 0.123779296875, 0.1162109375, 0.0968017578125, 0.0155181884765625, 0.012237548828125, 0.022247314453125, 0.0...
embed
27079076_c0
27079076
prolog
0
Title: How do i prove my Best-first search in prolog Problem title: How do i prove my Best-first search in prolog Tags: greedy, algorithm, prolog, search Problem: How do i prove my Best-first search in prolog I have the following problem. I need to do a Best-First Search on the above graph in prolog for Node A to Node ...
How do i prove my Best-first search in prolog How do i prove my Best-first search in prolog greedy algorithm prolog search How Best-first How do i prove my Best-first search in prolog I have the following problem. I need to do a Best-First Search on the above graph in prolog for Node A to Node E I have done it by hand ...
[ 0.0255126953125, 0.004638671875, -0.00157928466796875, 0.030029296875, -0.01904296875, 0.01043701171875, 0.0003032684326171875, -0.0201416015625, 0.009521484375, -0.02392578125, 0.006866455078125, 0.00518798828125, -0.0198974609375, -0.0001373291015625, -0.00151824951171875, -0.0042419...
[ 11249, 54, 17, 23534, 759, 11345, 9, 13448, 271, 33938, 23, 502, 4867, 3514, 297, 53, 234873, 25632, 2967, 3871, 207263, 33086, 36917, 41382, 438, 112, 62, 47, 241, 3535, 201, 60875, 177609, 169073, 222104, 63258, 60978, 62155, 82839, 854...
[ 0.08453369140625, 0.017791748046875, 0.046417236328125, 0.2183837890625, 0.0599365234375, 0.1826171875, 0.013763427734375, 0.1724853515625, 0.1436767578125, 0.238037109375, 0.05181884765625, 0.15869140625, 0.233154296875, 0.12158203125, 0.08135986328125, 0.112060546875, 0.14001464843...
embed
52633334_c1
52633334
prolog
1
(PRONOUN, Q, P). vp(vp(V, NP), Q) --> v(V, Q), np(NP, _, object). vp(vp(V), Q) --> v(V, Q). det(det(W), Q) --> [W], {lex(W, det, Q)}. pronoun(pronoun(W), Q, P) --> [W], {lex(W, pronoun, Q, P)}. n(n(W), Q) --> [W], {lex(W, n, Q)}. v(v(W), Q) --> [W], {lex(W, v, Q)}. when I test it with s(X,[he,eats,the,apple],[]). I wan...
(PRONOUN, Q, P). vp(vp(V, NP), Q) --> v(V, Q), np(NP, _, object). vp(vp(V), Q) --> v(V, Q). det(det(W), Q) --> [W], {lex(W, det, Q)}. pronoun(pronoun(W), Q, P) --> [W], {lex(W, pronoun, Q, P)}. n(n(W), Q) --> [W], {lex(W, n, Q)}. v(v(W), Q) --> [W], {lex(W, v, Q)}. when I test it with s(X,[he,eats,the,apple],[]). I wan...
[ -0.0120849609375, 0.02099609375, -0.005401611328125, -0.005279541015625, 0.001800537109375, 0.01214599609375, 0.00921630859375, 0.0020904541015625, 0.031005859375, -0.0267333984375, 0.0242919921875, 0.0135498046875, -0.0218505859375, -0.0208740234375, 0.005157470703125, 0.0123291015625...
[ 47970, 8575, 14006, 2396, 436, 81, 254, 334, 856, 28814, 25037, 36746, 149, 3667, 1456, 74070, 97160, 309, 3454, 157, 653, 19, 3034, 678, 91, 1542, 1106, 13, 9821, 2347, 9007, 133, 3444, 2046, 140992, 1193, 2203, 83018, 67824, 28368, 80...
[ 0.10015869140625, 0.0950927734375, 0.10791015625, 0.181884765625, 0.122314453125, 0.1544189453125, 0.07244873046875, 0.156005859375, 0.1475830078125, 0.1439208984375, 0.1182861328125, 0.168212890625, 0.211181640625, 0.2049560546875, 0.149658203125, 0.11962890625, 0.18505859375, 0.1...
embed
32699313_c0
32699313
prolog
0
Title: How to create family relation logic? Problem title: How to create family relation logic? Tags: graph-theory, sql, prolog, logic, neo4j Problem: How to create family relation logic? I'm trying to make this but for a different language. In this language there are different kinds of names for uncles and aunts. We c...
How to create family relation logic? How to create family relation logic? graph-theory sql prolog logic neo4j How n-1 Father Mother neo4j How to create family relation logic? I'm trying to make this but for a different language. In this language there are different kinds of names for uncles and aunts. We call paternal ...
[ 0.00970458984375, 0.006805419921875, 0.00531005859375, 0.0140380859375, -0.019775390625, -0.01220703125, -0.006683349609375, -0.01202392578125, -0.004669189453125, -0.038330078125, 0.0029754638671875, -0.01385498046875, 0.003692626953125, 0.00592041015625, 0.00689697265625, -0.00196838...
[ 11249, 47, 28282, 14449, 41911, 62775, 41382, 2347, 30675, 99247, 502, 4867, 16169, 617, 170, 653, 5759, 160960, 115217, 31577, 3249, 1284, 100, 12921, 46876, 903, 8562, 123055, 51, 66695, 136, 531, 16037, 11782, 78840, 6236, 10, 9109, 9844...
[ 0.1136474609375, 0.091552734375, 0.2177734375, 0.21142578125, 0.25146484375, 0.2919921875, 0.2125244140625, 0.0526123046875, 0.0288848876953125, 0.1778564453125, 0.09283447265625, 0.161376953125, 0.1744384765625, 0.1575927734375, 0.172119140625, 0.0711669921875, 0.170654296875, 0.1...
embed
37672163_c0
37672163
prolog
0
Title: how to find neighbors for cell in akari by prolog Problem title: how to find neighbors for cell in akari by prolog Tags: prolog Problem: how to find neighbors for cell in akari by prolog I try to solve akari/light-up game in prolog . Firstly I want to find the four cells around a cell by neighbors() but it gives...
how to find neighbors for cell in akari by prolog how to find neighbors for cell in akari by prolog prolog X-1 Y-1 how to find neighbors for cell in akari by prolog I try to solve akari/light-up game in prolog . Firstly I want to find the four cells around a cell by neighbors() but it gives one cell only ... After that...
[ -0.0093994140625, -0.0027618408203125, 0.0155029296875, 0.01513671875, -0.006622314453125, 0.0057373046875, -0.0162353515625, 0.0247802734375, -0.0172119140625, -0.005157470703125, -0.01092529296875, 0.0108642578125, -0.0279541015625, -0.009765625, 0.0185546875, -0.0027618408203125, ...
[ 3642, 47, 7413, 208244, 7, 100, 38750, 23, 10, 11488, 390, 502, 4867, 1193, 5759, 990, 9790, 86869, 20016, 2037, 6712, 3444, 22759, 10932, 76199, 1632, 4734, 756, 113, 678, 422, 6958, 3422, 4358, 80234, 18151 ]
[ 0.03570556640625, 0.003082275390625, 0.137939453125, 0.241943359375, 0.1572265625, 0.0802001953125, 0.2205810546875, 0.049560546875, 0.0882568359375, 0.218017578125, 0.0633544921875, 0.127197265625, 0.18212890625, 0.06927490234375, 0.11474609375, 0.10552978515625, 0.00775146484375, ...
embed
13410516_c0
13410516
prolog
0
Title: Prolog With Java Query Problem title: Prolog With Java Query Tags: prolog Problem: Prolog With Java Query Hi Somebody can Help me with this problem, i need the follow tables in prolog and i need todo some query to this table like the follow. 2.1 Get the plate, number of doors, model, reference and name of the ow...
Prolog With Java Query Prolog With Java Query prolog Prolog Java Query Prolog With Java Query Hi Somebody can Help me with this problem, i need the follow tables in prolog and i need todo some query to this table like the follow. 2.1 Get the plate, number of doors, model, reference and name of the owner vehicles having...
[ 0.0185546875, 0.013671875, -0.002410888671875, 0.01226806640625, -0.00714111328125, 0.0087890625, -0.0206298828125, 0.006866455078125, 0.01080322265625, -0.046142578125, 0.0020294189453125, -0.002410888671875, -0.021728515625, -0.006256103515625, -0.0069580078125, 0.0081787109375, 0....
[ 1250, 4867, 17106, 41925, 58836, 53, 502, 2673, 37873, 831, 39527, 163, 2967, 3871, 28960, 23180, 23, 1973, 3060, 41, 1294, 903, 1884, 34513, 20779, 37385, 14012, 1911, 3299, 91067, 9351, 101785, 117001, 34475, 23935, 41187, 148272, 18264, ...
[ 0.1793212890625, 0.2509765625, 0.1832275390625, 0.2364501953125, 0.181884765625, 0.08251953125, 0.16259765625, 0.03387451171875, 0.033447265625, 0.03515625, 0.0833740234375, 0.016998291015625, 0.0765380859375, 0.114990234375, 0.2318115234375, 0.2288818359375, 0.0386962890625, 0.168...
embed
61526198_c0
61526198
prolog
0
Title: Getting all the combinations of colors in a list? Problem title: Getting all the combinations of colors in a list? Tags: search, logic, prolog Problem: Getting all the combinations of colors in a list? I have three possible colors: red, green, blue. I have an initial list: [blue, blue, blue, blue]. I essentially...
Getting all the combinations of colors in a list? Getting all the combinations of colors in a list? search logic prolog Getting Find Node Next Getting all the combinations of colors in a list? I have three possible colors: red, green, blue. I have an initial list: [blue, blue, blue, blue]. I essentially need to create ...
[ -0.015380859375, 0.0174560546875, 0.0005645751953125, 0.023681640625, -0.0126953125, -0.0002918243408203125, -0.01416015625, 0.010986328125, 0.00482177734375, -0.0169677734375, -0.0208740234375, 0.01068115234375, 0.01263427734375, 0.0098876953125, -0.0074462890625, 0.0125732421875, -...
[ 210732, 756, 70, 162515, 7, 111, 104988, 23, 10, 5303, 32, 33938, 62775, 502, 4867, 26040, 438, 112, 4997, 765, 17262, 7722, 4842, 50997, 57571, 142, 61475, 143802, 85590, 3871, 28282, 234873, 7413, 34475, 70541, 22759, 182355, 191, 33342, ...
[ 0.1728515625, 0.158935546875, 0.097900390625, 0.234619140625, 0.1412353515625, 0.1297607421875, 0.2491455078125, 0.1146240234375, 0.0667724609375, 0.2364501953125, 0.00079345703125, 0.208251953125, 0.138916015625, 0.08056640625, 0.1309814453125, 0.1925048828125, 0.16015625, 0.18554...
embed
22209621_c1
22209621
prolog
1
have so far, have you got any suggestions as to what I'm missing/doing wrong? #!/usr/bin/env swipl -q -g main -s subsets_contain_item(_, []). subsets_contain_item(Item, [H|T]) :- member(Item, H), subsets_contain_item(Item, T). subsets_length([], _). subsets_length([H|T], Len) :- length(H, Len), subsets_length(T, Len)....
have so far, have you got any suggestions as to what I'm missing/doing wrong? #!/usr/bin/env swipl -q -g main -s subsets_contain_item(_, []). subsets_contain_item(Item, [H|T]) :- member(Item, H), subsets_contain_item(Item, T). subsets_length([], _). subsets_length([H|T], Len) :- length(H, Len), subsets_length(T, Len)....
[ -0.0093994140625, 0.0247802734375, 0.013916015625, -0.0033111572265625, -0.0233154296875, 0.0113525390625, 0.000213623046875, -0.017333984375, 0.007476806640625, -0.0030517578125, 0.0224609375, 0.01214599609375, 0.00689697265625, 0.020263671875, -0.0003299713134765625, 0.00933837890625...
[ 765, 2060, 157666, 132283, 246, 44691, 38, 223, 42, 7568, 33, 334, 91, 2452, 2424, 20, 864, 177, 5201, 7, 1614, 3509, 98102, 73, 217, 195, 454, 194, 2982, 841, 58745, 618, 15772, 32786, 572, 384, 23986, 18226, 140909, 756, 1046, 39, ...
[ 0.078857421875, 0.1131591796875, 0.1240234375, 0.1024169921875, 0.021942138671875, 0.1258544921875, 0.0318603515625, 0.0836181640625, 0.06744384765625, 0.2086181640625, 0.1370849609375, 0.25390625, 0.04205322265625, 0.2371826171875, 0.2322998046875, 0.01324462890625, 0.114501953125, ...
embed
8241704_c0
8241704
prolog
0
Title: PROLOG: Check if first list contains 3 times less of each element than second list Problem title: PROLOG: Check if first list contains 3 times less of each element than second list Tags: prolog Problem: PROLOG: Check if first list contains 3 times less of each element than second list I need to check if each ele...
PROLOG: Check if first list contains 3 times less of each element than second list PROLOG: Check if first list contains 3 times less of each element than second list prolog PROLOG Check NewA NewB NewT NewAA NewAAA NewTF PROLOG: Check if first list contains 3 times less of each element than second list I need to check i...
[ -0.01416015625, 0.00567626953125, 0.01300048828125, 0.0017547607421875, -0.014892578125, 0.000804901123046875, 0.003021240234375, 0.012451171875, 0.012939453125, 0.005401611328125, 0.01300048828125, 0.0185546875, 0.004669189453125, 0.0115966796875, 0.0029144287109375, -0.01953125, 0....
[ 10514, 47510, 38679, 2174, 5117, 5303, 70541, 138, 20028, 40715, 12638, 12830, 17932, 3501, 502, 4867, 2356, 284, 571, 618, 15467, 30992, 3871, 12765, 23, 1556, 1286, 110527, 7068, 5701, 32354, 30646, 98320, 756, 1733, 3714, 449, 44691, 181...
[ 0.1533203125, 0.1888427734375, 0.20703125, 0.08392333984375, 0.1295166015625, 0.2069091796875, 0.0916748046875, 0.1636962890625, 0.172607421875, 0.1971435546875, 0.0499267578125, 0.18017578125, 0.184814453125, 0.03466796875, 0.1368408203125, 0.2022705078125, 0.0745849609375, 0.0257...
embed
23339724_c0
23339724
prolog
0
Title: SWI-Prolog compare value from list with constant, but getting error character expected Problem title: SWI-Prolog compare value from list with constant, but getting error character expected Tags: prolog Problem: SWI-Prolog compare value from list with constant, but getting error character expected I want to write...
SWI-Prolog compare value from list with constant, but getting error character expected SWI-Prolog compare value from list with constant, but getting error character expected prolog list SWI-Prolog Name Subject Result Head Tail Subject2 ERROR Type SWI-Prolog compare value from list with constant, but getting error chara...
[ -0.00494384765625, 0.00171661376953125, 0.00677490234375, 0.002166748046875, 0.005645751953125, -0.01153564453125, 0.00640869140625, 0.0123291015625, 0.017822265625, 0.025146484375, 0.004913330078125, 0.00133514404296875, 0.00115966796875, -0.0198974609375, -0.01190185546875, -0.001098...
[ 159, 38969, 9, 10752, 4867, 69101, 34292, 1295, 5303, 678, 53697, 1284, 20949, 18499, 62816, 84751, 502, 15757, 94341, 126684, 44816, 1218, 379, 304, 151206, 60457, 3444, 33022, 1528, 109921, 16750, 92319, 3501, 40401, 27875, 1884, 903, 16361...
[ 0.080078125, 0.248046875, 0.01129150390625, 0.1475830078125, 0.2066650390625, 0.1732177734375, 0.1331787109375, 0.0655517578125, 0.17333984375, 0.07379150390625, 0.166748046875, 0.032318115234375, 0.031463623046875, 0.193359375, 0.16162109375, 0.18701171875, 0.1339111328125, 0.0483...
embed
10750316_c0
10750316
prolog
0
Title: Prolog XPCE dialog return a list of selections Problem title: Prolog XPCE dialog return a list of selections Tags: prolog, swi-prolog, xpce Problem: Prolog XPCE dialog return a list of selections i have another Problem with Prolog where i cant find a clue how to solve it. here is my code list(Q):- new(D,dialog('...
Prolog XPCE dialog return a list of selections Prolog XPCE dialog return a list of selections prolog swi-prolog xpce Prolog XPCE Sehenswuerdigkeiten send_list Von Los sw.pl Prolog XPCE dialog return a list of selections i have another Problem with Prolog where i cant find a clue how to solve it. here is my code I need ...
[ 0.004669189453125, 0.004669189453125, -0.0042724609375, 0.0301513671875, -0.01336669921875, 0.0201416015625, -0.001983642578125, 0.00714111328125, 0.016845703125, -0.025146484375, 0.0194091796875, -0.0089111328125, -0.0091552734375, 0.0208740234375, -0.003387451171875, 0.0130615234375,...
[ 1250, 4867, 45005, 10854, 26519, 30646, 5303, 111, 132216, 502, 2452, 3454, 1022, 254, 329, 503, 3220, 16612, 24069, 26496, 25379, 6562, 7, 15649, 45767, 29786, 86869, 18151, 3871, 15044, 105823, 4034, 32354, 9803, 43824, 214, 41018, 2967, ...
[ 0.1409912109375, 0.2078857421875, 0.16162109375, 0.213623046875, 0.189208984375, 0.1331787109375, 0.12646484375, 0.050048828125, 0.19775390625, 0.10174560546875, 0.1146240234375, 0.083740234375, 0.0550537109375, 0.047332763671875, 0.106201171875, 0.06146240234375, 0.0753173828125, ...
embed
16907623_c0
16907623
prolog
0
Title: gprolog include directive not working Problem title: gprolog include directive not working Tags: gnu-prolog, prolog Problem: gprolog include directive not working I am running gprolog version 1.4.2 on a Fedora 17 Linux machine. I wrote a small prolog program which runs fine. I defined a few predicates in it that...
gprolog include directive not working gprolog include directive not working gnu-prolog prolog directive gprolog tools.pro existence_error top_level gprolog include directive not working I am running gprolog version 1.4.2 on a Fedora 17 Linux machine. I wrote a small prolog program which runs fine. I defined a few predi...
[ 0.01239013671875, 0.01373291015625, 0.00153350830078125, 0.023193359375, -0.021728515625, 0.01397705078125, 0.0010223388671875, 0.0108642578125, -0.016845703125, -0.056396484375, 0.0213623046875, 0.0211181640625, -0.0291748046875, -0.000637054443359375, 0.015625, -0.007049560546875, ...
[ 706, 3454, 4867, 26698, 8951, 5844, 959, 20697, 104155, 502, 72977, 116311, 188800, 2663, 67919, 51042, 11389, 615, 117904, 4221, 11606, 729, 29908, 36279, 54397, 19336, 1528, 127877, 5885, 61924, 10846, 1653, 2063, 739, 1419, 1810, 4527, 103...
[ 0.07684326171875, 0.2017822265625, 0.2291259765625, 0.2274169921875, 0.202392578125, 0.152099609375, 0.06951904296875, 0.1722412109375, 0.1295166015625, 0.1239013671875, 0.1929931640625, 0.1795654296875, 0.1845703125, 0.091064453125, 0.113037109375, 0.03594970703125, 0.01754760742187...
embed
10181409_c0
10181409
prolog
0
Title: Prolog logic flow Problem title: Prolog logic flow Tags: prolog, logic Problem: Prolog logic flow I'm completely new to Prolog and working on a homework assignment. My program is supposed to take two lists of equal length, and perform D = sqrt((X1-Y1)^2 + (X2-Y2)^2 + ... + (XN-YN)^2). I've written the code to ge...
Prolog logic flow Prolog logic flow prolog logic Prolog A-B Prolog logic flow I'm completely new to Prolog and working on a homework assignment. My program is supposed to take two lists of equal length, and perform D = sqrt((X1-Y1)^2 + (X2-Y2)^2 + ... + (XN-YN)^2). I've written the code to get the correct answer, but i...
[ 0.025634765625, -0.0025634765625, 0.01165771484375, 0.0001621246337890625, -0.002716064453125, 0.00360107421875, 0.00191497802734375, -0.0106201171875, 0.018798828125, -0.00823974609375, 0.00579833984375, -0.000732421875, -0.01416015625, -0.033447265625, -0.021484375, -0.00604248046875...
[ 1250, 4867, 62775, 86608, 502, 62, 571, 64557, 3525, 20697, 5368, 18244, 95486, 1528, 134598, 5646, 6626, 5303, 105950, 140909, 51339, 391, 2203, 91, 864, 3198, 1542, 20268, 1723, 17727, 8353, 997, 18504, 10461, 153, 9, 58640, 59121, 18151,...
[ 0.1907958984375, 0.267578125, 0.231689453125, 0.2496337890625, 0.147705078125, 0.047027587890625, 0.144775390625, 0.02423095703125, 0.0709228515625, 0.054473876953125, 0.0340576171875, 0.10296630859375, 0.07958984375, 0.1474609375, 0.1385498046875, 0.0660400390625, 0.10601806640625, ...
embed
50107037_c0
50107037
prolog
0
Title: extending a list of lists by a single element Problem title: extending a list of lists by a single element Tags: prolog Problem: extending a list of lists by a single element I am trying to solve the following question in ProLog. I am a beginner. Define a predicate extend such that if Xss and Yss are lists of li...
extending a list of lists by a single element extending a list of lists by a single element prolog Xss Yss Firstxss Restxss extending a list of lists by a single element I am trying to solve the following question in ProLog. I am a beginner. Define a predicate extend such that if Xss and Yss are lists of lists then ext...
[ 0.0155029296875, 0.03173828125, 0.01019287109375, 0.0135498046875, -0.018798828125, 0.0096435546875, -0.00830078125, 0.00537109375, -0.002044677734375, -0.0206298828125, 0.039306640625, -0.012939453125, 0.008056640625, -0.01287841796875, -0.0177001953125, 0.0035400390625, 0.029785156...
[ 65042, 214, 5303, 111, 7, 390, 11001, 12830, 502, 4867, 1193, 990, 23972, 425, 49756, 86869, 1250, 113972, 1679, 262, 64552, 1653, 2063, 67, 136, 1542, 16401, 2174, 831, 113054, 154107, 70, 3564, 11907, 81887, 18499, 26008, 107730, 25632, ...
[ 0.2445068359375, 0.0184478759765625, 0.2003173828125, 0.0428466796875, 0.130126953125, 0.1060791015625, 0.1707763671875, 0.178466796875, 0.1429443359375, 0.18896484375, 0.1351318359375, 0.1495361328125, 0.08111572265625, 0.0950927734375, 0.1396484375, 0.03546142578125, 0.144409179687...
embed
34686786_c0
34686786
prolog
0
Title: bagof/3 giving weird results Problem title: bagof/3 giving weird results Tags: prolog, swi-prolog, collections, logic Problem: bagof/3 giving weird results I'm working in goal/prolog (prolog swi 6.0.0) and have a situation where I would like to do the following: I have the following things in my belief base: ele...
bagof/3 giving weird results bagof/3 giving weird results prolog swi-prolog collections logic agent0 agent1 agent2 Elevator Elevators agent3 bagof/3 giving weird results I'm working in goal/prolog (prolog swi 6.0.0) and have a situation where I would like to do the following: I have the following things in my belief ba...
[ 0.011962890625, 0.00225830078125, 0.005126953125, 0.00106048583984375, -0.01361083984375, 0.01904296875, -0.021484375, -0.02392578125, 0.0142822265625, -0.0233154296875, 0.0005645751953125, 0.0196533203125, 0.005645751953125, -0.0322265625, -0.00518798828125, -0.023681640625, -0.0108...
[ 41780, 420, 18113, 68772, 179459, 50339, 502, 4867, 2452, 3454, 42486, 62775, 23882, 96129, 4597, 363, 20697, 69236, 91, 2289, 99929, 16648, 144239, 3647, 71924, 25632, 41, 1294, 43257, 84751, 16750, 7, 8035, 5303, 83, 6528, 20594, 44691 ]
[ 0.1051025390625, 0.1678466796875, 0.1998291015625, 0.0634765625, 0.1715087890625, 0.1737060546875, 0.1085205078125, 0.18212890625, 0.1712646484375, 0.0992431640625, 0.154541015625, 0.11572265625, 0.1495361328125, 0.1923828125, 0.1717529296875, 0.0184783935546875, 0.048126220703125, ...
embed
67645585_c0
67645585
prolog
0
Title: Prolog: Why do I keep getting a operator expected error, how can I fix this? Problem title: Prolog: Why do I keep getting a operator expected error, how can I fix this? Tags: syntax-error, prolog, clpfd Problem: Prolog: Why do I keep getting a operator expected error, how can I fix this? Operator Expected error ...
Prolog: Why do I keep getting a operator expected error, how can I fix this? Prolog: Why do I keep getting a operator expected error, how can I fix this? syntax-error prolog clpfd Prolog Why Checks SumOfCells RowIndex-ColIndex RowIndex Row ColIndex CellVal NewSum Prolog: Why do I keep getting a operator expected error,...
[ -0.00811767578125, 0.01373291015625, 0.01373291015625, 0.0250244140625, 0.00543212890625, -0.0185546875, -0.00909423828125, 0.017578125, 0.010009765625, -0.025634765625, -0.00396728515625, -0.0135498046875, 0.0068359375, -0.0247802734375, 0.0157470703125, 0.00628662109375, -0.0101928...
[ 1250, 4867, 44084, 13695, 20949, 39933, 84751, 18499, 30022, 6002, 86531, 188800, 502, 39557, 71, 38679, 36335, 132887, 441, 88510, 96190, 39659, 78457, 11554, 80743, 42272, 2356, 294, 316, 903, 150922, 60075, 13, 89829, 3525, 18151, 3371, 10...
[ 0.136962890625, 0.2203369140625, 0.077880859375, 0.1207275390625, 0.0343017578125, 0.246826171875, 0.21337890625, 0.2022705078125, 0.0909423828125, 0.0257110595703125, 0.17236328125, 0.1282958984375, 0.1148681640625, 0.017181396484375, 0.026763916015625, 0.11865234375, 0.143798828125...
embed
67061653_c1
67061653
prolog
1
Goal), ( Goal >= 25 -> solve_multiply(HeadRow,Solution), write(Solution) ; ( solve_sum(HeadRow,Solution), write(Solution) ; solve_multiply(HeadRow,Solution), write(Solution)) ),solve_row_sum_or_multiply(Matrix,Solution). When I use the solve_row_sum_or_multiply([[14,_,_,_],[15,_,_,_],[28,_,_,_]],X) , it will give me th...
Goal), ( Goal >= 25 -> solve_multiply(HeadRow,Solution), write(Solution) ; ( solve_sum(HeadRow,Solution), write(Solution) ; solve_multiply(HeadRow,Solution), write(Solution)) ),solve_row_sum_or_multiply(Matrix,Solution). When I use the solve_row_sum_or_multiply([[14,_,_,_],[15,_,_,_],[28,_,_,_]],X) , it will give me th...
[ -0.02099609375, 0.0306396484375, 0.0157470703125, 0.0166015625, -0.0322265625, 0.0023040771484375, -0.0181884765625, 0.00054931640625, 0.02099609375, 0.00628662109375, 0.00909423828125, -0.001922607421875, 0.002960205078125, 0.00750732421875, -0.0257568359375, 0.00994873046875, 0.006...
[ 2016, 289, 247, 977, 714, 33079, 86869, 144227, 62479, 13025, 712, 12724, 434, 102588, 34, 33022, 1363, 11832, 86918, 15555, 748, 87427, 14847, 4527, 2592, 1837, 3882, 1542, 8337, 163, 7722, 162515, 33306, 3229, 418, 26038, 98320, 29806, 10...
[ 0.2044677734375, 0.1844482421875, 0.025360107421875, 0.0755615234375, 0.25146484375, 0.0197906494140625, 0.209228515625, 0.1280517578125, 0.161865234375, 0.09228515625, 0.06787109375, 0.18017578125, 0.08233642578125, 0.16845703125, 0.13623046875, 0.1329345703125, 0.072265625, 0.202...
embed
20750873_c0
20750873
prolog
0
Title: Define a cube and three intervals in Prolog Problem title: Define a cube and three intervals in Prolog Tags: clpq, topology, prolog Problem: Define a cube and three intervals in Prolog I need to define a cube and three intervals Cx, Cy, and Cz as the projections of the cuboid on the x-, y-, and z-axes, respectiv...
Define a cube and three intervals in Prolog Define a cube and three intervals in Prolog clpq topology prolog Define Prolog interval_dur Define a cube and three intervals in Prolog I need to define a cube and three intervals Cx, Cy, and Cz as the projections of the cuboid on the x-, y-, and z-axes, respectively. I'm sup...
[ 0.0272216796875, -0.0167236328125, 0.00958251953125, 0.03515625, -0.0028076171875, -0.0096435546875, -0.004547119140625, 0.00982666015625, 0.00469970703125, -0.0166015625, 0.0078125, -0.00665283203125, -0.01611328125, 0.003814697265625, -0.0025787353515625, 0.01239013671875, -0.00439...
[ 262, 64552, 314, 372, 136, 17262, 51514, 7, 1250, 4867, 864, 2663, 502, 3020, 61924, 425, 27939, 169, 237, 13452, 17514, 837, 532, 98, 113, 97, 49335, 1653, 2063, 29569, 160463, 3003 ]
[ 0.044891357421875, 0.157470703125, 0.1839599609375, 0.2266845703125, 0.0478515625, 0.16162109375, 0.275390625, 0.02874755859375, 0.1400146484375, 0.236328125, 0.058868408203125, 0.04510498046875, 0.06585693359375, 0.19775390625, 0.1519775390625, 0.123046875, 0.12548828125, 0.138671...
embed
52235282_c0
52235282
prolog
0
Title: Prolog - can I find all cases which would make a predicate true? Problem title: Prolog - can I find all cases which would make a predicate true? Tags: prolog Problem: Prolog - can I find all cases which would make a predicate true? If I have two rules like this: hasproperty(X, wet) :- hasproperty(X, was_in_rain)...
Prolog - can I find all cases which would make a predicate true? Prolog - can I find all cases which would make a predicate true? prolog Prolog was_in_rain Prolog - can I find all cases which would make a predicate true? If I have two rules like this: How can I ask - which properties X might have, so that it is wet. In...
[ 0.024658203125, -0.000782012939453125, 0.018798828125, 0.0167236328125, 0.00982666015625, 0.000274658203125, 0.005859375, 0.006011962890625, 0.00154876708984375, -0.0361328125, 0.01806640625, 0.01513671875, -0.005462646484375, -0.00274658203125, -0.0030670166015625, 0.0303955078125, ...
[ 1250, 4867, 831, 87, 7413, 756, 50218, 3129, 2806, 3249, 1653, 2063, 67, 29568, 502, 509, 73, 50256, 765, 6626, 91736, 1884, 903, 11249, 26458, 183871, 1193, 13648, 221, 83, 36311, 27781, 3444, 2046, 136, 5252, 21693, 60892, 90791, 57266,...
[ 0.1536865234375, 0.2454833984375, 0.1009521484375, 0.054718017578125, 0.14697265625, 0.135986328125, 0.192626953125, 0.043975830078125, 0.08404541015625, 0.0753173828125, 0.168701171875, 0.2171630859375, 0.1171875, 0.196533203125, 0.1197509765625, 0.170654296875, 0.158203125, 0.229...
embed
37375133_c0
37375133
prolog
0
Title: Prolog Compare elements of list Problem title: Prolog Compare elements of list Tags: list, prolog-dif, prolog Problem: Prolog Compare elements of list When given some input list, I want to build a new list and it should: Always add h in front of the new list Compare every two consecutive elements of the input li...
Prolog Compare elements of list Prolog Compare elements of list list prolog-dif prolog Prolog Compare Prolog Compare elements of list When given some input list, I want to build a new list and it should: Always add h in front of the new list Compare every two consecutive elements of the input list, and, if they are equ...
[ 0.00640869140625, 0.00457763671875, -0.005462646484375, 0.0174560546875, -0.011962890625, 0.00872802734375, -0.0032196044921875, 0.0098876953125, 0.0162353515625, 0.0096435546875, 0.002349853515625, 0.00726318359375, -0.004669189453125, -0.0025787353515625, -0.00445556640625, 0.0195312...
[ 1250, 4867, 113307, 13, 80854, 111, 5303, 502, 428, 420, 34475, 107730, 3444, 45367, 3525, 5608, 203623, 15190, 1096, 12912, 11907, 6626, 148390, 2174, 105950, 114689, 71, 113, 47, 959, 1022, 89536, 18151, 2060, 20697, 26785 ]
[ 0.1710205078125, 0.2298583984375, 0.2061767578125, 0.06201171875, 0.201416015625, 0.04901123046875, 0.198486328125, 0.1341552734375, 0.058258056640625, 0.118408203125, 0.0295257568359375, 0.1376953125, 0.046142578125, 0.1302490234375, 0.068115234375, 0.037872314453125, 0.109375, 0....
embed
40847629_c0
40847629
prolog
0
Title: Prolog raises out of local stack for no good reason Problem title: Prolog raises out of local stack for no good reason Tags: non-termination, failure-slice, prolog, levenshtein-distance Problem: Prolog raises out of local stack for no good reason I'm trying to implement Levenshtein distance in Prolog. The implem...
Prolog raises out of local stack for no good reason Prolog raises out of local stack for no good reason non-termination failure-slice prolog levenshtein-distance Prolog atom_length Returns sub_atom These Integer ERROR Out SWIPL Mac Sierra Prolog raises out of local stack for no good reason I'm trying to implement Leven...
[ 0.0244140625, 0.0272216796875, -0.0108642578125, 0.01806640625, 0.00128936767578125, -0.00139617919921875, -0.0026702880859375, -0.01129150390625, 0.006622314453125, -0.04638671875, 0.021240234375, 0.003204345703125, 0.021484375, 0.005126953125, 0.036376953125, 0.00762939453125, 0.02...
[ 1250, 4867, 138804, 1810, 111, 4000, 177261, 110, 4127, 31635, 351, 720, 91407, 137578, 13348, 502, 22485, 39899, 73, 56883, 34627, 23986, 173340, 1614, 5928, 32255, 44401, 151206, 13538, 159, 38969, 21130, 4727, 130454, 31577, 29479, 636, 13...
[ 0.1925048828125, 0.28515625, 0.2176513671875, 0.1661376953125, 0.1201171875, 0.1256103515625, 0.1968994140625, 0.062225341796875, 0.10577392578125, 0.1658935546875, 0.09002685546875, 0.078369140625, 0.10699462890625, 0.1932373046875, 0.1285400390625, 0.125732421875, 0.116943359375, ...
embed
33353640_c0
33353640
prolog
0
Title: Prolog backtracking policy Problem title: Prolog backtracking policy Tags: prolog-toplevel, prolog Problem: Prolog backtracking policy SWI-Prolog, version 6.6.6. Consider the following facts: p(a, a). p(a, b). It results in the following answer: ?- p(a, a). true ; false. But if I slightly change the data: p(a, a...
Prolog backtracking policy Prolog backtracking policy prolog-toplevel prolog Prolog Prolog backtracking policy SWI-Prolog, version 6.6.6. Consider the following facts: It results in the following answer: But if I slightly change the data: I get a slightly different answer... It seems that backtracking in the second cas...
[ 0.0322265625, 0.03466796875, 0.035400390625, -0.00049591064453125, -0.0164794921875, 0.0155029296875, 0.0257568359375, 0.00482177734375, 0.00640869140625, -0.0137939453125, -0.001373291015625, 0.01324462890625, 0.0027008056640625, -0.00787353515625, 0.017333984375, 0.00445556640625, ...
[ 1250, 4867, 4420, 125728, 214, 44930, 502, 13784, 67919, 38969, 10752, 11389, 2289, 156960, 50339, 161549, 15549, 2053, 12921, 35166, 17932, 7225, 959, 74918, 5117, 171859, 1653, 2063, 9655, 51, 678, 70731, 41206, 29568, 98320, 12638, 87907, ...
[ 0.1514892578125, 0.2332763671875, 0.20556640625, 0.296630859375, 0.1256103515625, 0.181640625, 0.09954833984375, 0.0161895751953125, 0.07427978515625, 0.1260986328125, 0.1217041015625, 0.031463623046875, 0.054168701171875, 0.146240234375, 0.008087158203125, 0.096435546875, 0.11926269...
embed
60800828_c1
60800828
prolog
1
direction(north). direction(south). direction(east). direction(west). opposite(north,south). opposite(south,north). opposite(east,west). opposite(west,east). notopposite(D1,D2) :- opposite(D1,D3), dif(D2,D3). % D2 =\= D3. % <- original was commented I can make query and get the answer: ?- plan(west,D1,W1,D2,W2). D1 = ...
direction(north). direction(south). direction(east). direction(west). opposite(north,south). opposite(south,north). opposite(east,west). opposite(west,east). notopposite(D1,D2) :- opposite(D1,D3), dif(D2,D3). % D2 =\= D3. % <- original was commented I can make query and get the answer: ?- plan(west,D1,W1,D2,W2). D1 = ...
[ 0.0010986328125, 0.0137939453125, 0.00482177734375, 0.006744384765625, -0.0155029296875, -0.0031890869140625, -0.0028533935546875, 0.000499725341796875, 0.0093994140625, -0.01055908203125, -0.0133056640625, 0.0228271484375, -0.00762939453125, -0.0113525390625, -0.00262451171875, 0.0173...
[ 48225, 157, 65158, 194, 49760, 927, 4438, 25617, 198274, 92702, 34241, 11090, 397, 418, 10461, 15772, 21320, 45755, 304, 391, 2203, 363, 1745, 7311, 6868, 831, 41, 1294, 2046, 35166, 705, 1774, 132, 1456, 601, 127067, 65272, 31577, 144851, ...
[ 0.2548828125, 0.078125, 0.1553955078125, 0.049224853515625, 0.05841064453125, 0.0634765625, 0.1112060546875, 0.1744384765625, 0.21337890625, 0.08770751953125, 0.185546875, 0.18310546875, 0.090087890625, 0.08697509765625, 0.1588134765625, 0.015533447265625, 0.1251220703125, 0.163574...
embed
63424113_c1
63424113
prolog
1
, t2, ..., tn) where p is a predicate symbol and ts are terms. Unification: Two atoms unify if they are the same Two numbers unify if they are the same A variable unifies with any kind of term Two compounds unify if (1) they have the same name, (2) the same number of arguments, (3) all of their arguments unify, (4) the...
, t2, ..., tn) where p is a predicate symbol and ts are terms. Unification: Two atoms unify if they are the same Two numbers unify if they are the same A variable unifies with any kind of term Two compounds unify if (1) they have the same name, (2) the same number of arguments, (3) all of their arguments unify, (4) the...
[ 0.02099609375, 0.03662109375, 0.0125732421875, -0.0106201171875, 0.00151824951171875, 0.0025482177734375, -0.00421142578125, -0.0015106201171875, 0.004608154296875, -0.013671875, -0.003143310546875, 0.00469970703125, 0.01409912109375, -0.0016326904296875, -0.00946044921875, 0.018432617...
[ 808, 304, 153, 19, 7440, 915, 1653, 2063, 67, 26582, 61636, 621, 69407, 992, 41274, 12, 32964, 34627, 7, 51, 40383, 2174, 1836, 5701, 101935, 77336, 27430, 90, 678, 2499, 8562, 13579, 217773, 765, 9351, 10750, 756, 3971, 34648, 74729, 2...
[ 0.0850830078125, 0.129150390625, 0.061614990234375, 0.1038818359375, 0.035980224609375, 0.1192626953125, 0.1119384765625, 0.1346435546875, 0.0210113525390625, 0.2288818359375, 0.1495361328125, 0.06060791015625, 0.25634765625, 0.275146484375, 0.268798828125, 0.054443359375, 0.16967773...
embed
46635945_c1
46635945
prolog
1
,B) ; knows(B,A). % Check if P knows anyone in the list. True or false. hasFriend(P, Lst):- not(hasFriendHelp(P, Lst)). % Return true if P doesn't know anybody in the list. hasFriendHelp(_, []). hasFriendHelp(P, [H|T]):- not(friend(P, H)), hasFriendHelp(P, T). % Takes the spiders friends and returns a list with persons...
,B) ; knows(B,A). % Check if P knows anyone in the list. True or false. hasFriend(P, Lst):- not(hasFriendHelp(P, Lst)). % Return true if P doesn't know anybody in the list. hasFriendHelp(_, []). hasFriendHelp(P, [H|T]):- not(friend(P, H)), hasFriendHelp(P, T). % Takes the spiders friends and returns a list with persons...
[ 0.013671875, 0.00518798828125, 0.004852294921875, 0.037841796875, -0.001251220703125, -0.0025482177734375, 0.00439453125, -0.026611328125, 0.01025390625, -0.016357421875, 0.00013637542724609375, 0.00689697265625, -0.0218505859375, 0.0322265625, 0, 0.01287841796875, 0.0286865234375, ...
[ 4, 571, 2819, 93002, 284, 194, 1745, 38679, 2174, 436, 35672, 23, 5303, 87599, 707, 98320, 1556, 919, 416, 3611, 683, 271, 959, 10557, 60785, 173340, 29568, 22027, 18, 3714, 37873, 841, 84240, 572, 384, 2561, 16195, 14202, 23902, 30646, ...
[ 0.0001220703125, 0.09478759765625, 0.039581298828125, 0.2376708984375, 0.050018310546875, 0.011383056640625, 0.10638427734375, 0.180419921875, 0.093505859375, 0.0888671875, 0.1494140625, 0.08251953125, 0.222900390625, 0.1697998046875, 0.021514892578125, 0.210205078125, 0.10693359375,...
embed
23978292_c1
23978292
prolog
1
up with this code which works fine thanks to you :) Will add check for user input also. wood(oak, leafed). wood(oak, hard). wood(oak, gray_brown). wood(oak, smalltexture). wood(beech, leafed). wood(beech, hard). wood(beech, soft_red). wood(beech, largetexture). wood(yew, leafed). wood(yew, veryhard). wood(yew, dark). ...
up with this code which works fine thanks to you :) Will add check for user input also. wood(oak, leafed). wood(oak, hard). wood(oak, gray_brown). wood(oak, smalltexture). wood(beech, leafed). wood(beech, hard). wood(beech, soft_red). wood(beech, largetexture). wood(yew, leafed). wood(yew, veryhard). wood(yew, dark). ...
[ -0.005706787109375, -0.009521484375, -0.0147705078125, 0.019287109375, 0.00982666015625, 0.0264892578125, -0.0224609375, 0.005035400390625, 0.0009765625, -0.04052734375, -0.000782012939453125, 0.0008087158203125, -0.00173187255859375, -0.0023040771484375, -0.001251220703125, -0.0053100...
[ 1257, 903, 18151, 43240, 5885, 45458, 1094, 15190, 12765, 38937, 107730, 5, 109412, 132, 26079, 95, 11, 44571, 194, 7941, 4224, 53, 140773, 19336, 22829, 3408, 372, 7101, 4, 32977, 2822, 1033, 434, 4552, 25612, 43334, 2367, 25876, 284, 33...
[ 0.06781005859375, 0.07427978515625, 0.2462158203125, 0.127685546875, 0.0936279296875, 0.011505126953125, 0.0045166015625, 0.017364501953125, 0.163330078125, 0.1236572265625, 0.1680908203125, 0.0018310546875, 0.273193359375, 0.0166168212890625, 0.1983642578125, 0.03826904296875, 0.007...
embed
10434002_c0
10434002
prolog
0
Title: Writing A Prolog Parser Problem title: Writing A Prolog Parser Tags: parsing, dcg, prolog Problem: Writing A Prolog Parser I'm trying to write a simple parser for a grammar. The parser does not need to create a parse tree, only recognize if a sentence matches the grammar. So far, I have the following predicates,...
Writing A Prolog Parser Writing A Prolog Parser parsing dcg prolog Writing Prolog Parser stmt_list term_tail add_op factor_tail mult_op Writing A Prolog Parser I'm trying to write a simple parser for a grammar. The parser does not need to create a parse tree, only recognize if a sentence matches the grammar. So far, I ...
[ 0.0201416015625, 0.00408935546875, -0.0120849609375, 0.01470947265625, -0.003204345703125, 0.0242919921875, -0.01092529296875, -0.0157470703125, 0.006500244140625, -0.02880859375, -0.000782012939453125, -0.0213623046875, -0.02294921875, -0.005462646484375, 0.0108642578125, 0.0132446289...
[ 213185, 62, 1250, 4867, 2392, 2189, 366, 6953, 104, 238, 177, 502, 6138, 18, 6562, 13579, 46741, 15190, 2146, 31461, 3869, 31577, 33022, 8781, 122092, 147, 184, 53201, 125296, 149357, 14858, 2060, 1653, 2063, 391, 56367, 110, 22062, 345, ...
[ 0.149169921875, 0.1368408203125, 0.167236328125, 0.225341796875, 0.174072265625, 0.194580078125, 0.1455078125, 0.0251312255859375, 0.018402099609375, 0.01556396484375, 0.1015625, 0.1138916015625, 0.028778076171875, 0.0164794921875, 0.1346435546875, 0.1143798828125, 0.2021484375, 0....
embed
43392057_c0
43392057
prolog
0
Title: PROLOG result vs true Problem title: PROLOG result vs true Tags: prolog-toplevel, prolog Problem: PROLOG result vs true I have the next code in a file called "testing.pl": fact(1). fact(2). fact(3). funcA(X) :- funcB(X). funcB(X) :- fact(X). testing :- funcA(_X). Then, in SWI-Prolog interpreter I query funcA(X)....
PROLOG result vs true PROLOG result vs true prolog-toplevel prolog PROLOG PROLOG result vs true I have the next code in a file called "testing.pl": Then, in SWI-Prolog interpreter I query funcA(X). and the output is: But, whenever I query testing. the output is: So, my questions is: How can I use the conclusion of a ru...
[ 0.037841796875, 0.01708984375, 0.029541015625, 0.023193359375, -0.01080322265625, -0.00127410888671875, 0.01385498046875, -0.00360107421875, 0.006683349609375, -0.0245361328125, 0.001922607421875, 0.0115966796875, -0.0220947265625, 0.01458740234375, 0.017333984375, -0.011474609375, 0...
[ 10514, 47510, 16750, 20209, 29568, 502, 4867, 13784, 67919, 11737, 18151, 11435, 6954, 214, 2424, 159, 38969, 10752, 29481, 56, 41, 1294, 7477, 284, 1542, 140992, 217684, 134234, 11249, 831, 4527, 93192, 111, 79986, 237, 64881, 13, 15700, 2...
[ 0.1810302734375, 0.2442626953125, 0.212646484375, 0.1717529296875, 0.2408447265625, 0.135986328125, 0.20068359375, 0.0188140869140625, 0.07110595703125, 0.0229034423828125, 0.10418701171875, 0.0850830078125, 0.1451416015625, 0.099853515625, 0.1162109375, 0.003448486328125, 0.15917968...
embed
72986023_c0
72986023
prolog
0
Title: Why is my prolog predicate returning &#x27;true&#x27; rather than the desired list? Problem title: Why is my prolog predicate returning &#x27;true&#x27; rather than the desired list? Tags: list, prolog, recursion Problem: Why is my prolog predicate returning 'true' rather than the desired list? append_green([],[...
Why is my prolog predicate returning &#x27;true&#x27; rather than the desired list? Why is my prolog predicate returning &#x27;true&#x27; rather than the desired list? list prolog recursion Why append_green Final Green CorrectHead CorrectTail GuessHead GuessTail Grn _FinalGreen FinalGrn I-1 Call _25506 Exit Fail Redo _...
[ -0.01171875, 0.0042724609375, 0.00537109375, -0.00823974609375, 0.009033203125, 0.00775146484375, -0.005462646484375, 0.013427734375, 0.020263671875, 0.0301513671875, 0.036865234375, 0.01348876953125, -0.013671875, 0.00360107421875, 0.0203857421875, 0.01153564453125, 0.0211181640625,...
[ 44084, 83, 759, 502, 4867, 1653, 2063, 67, 30646, 214, 3768, 9774, 13, 43257, 3501, 104851, 71, 5303, 54764, 195625, 1830, 114689, 99433, 27188, 15497, 46348, 13025, 712, 9874, 379, 96274, 13779, 19, 6159, 6236, 152061, 42, 5759, 26265, 1...
[ 0.156982421875, 0.043212890625, 0.03594970703125, 0.190185546875, 0.2265625, 0.1937255859375, 0.21142578125, 0.1043701171875, 0.20849609375, 0.0322265625, 0.12939453125, 0.1910400390625, 0.0621337890625, 0.11279296875, 0.061431884765625, 0.1749267578125, 0.056427001953125, 0.159423...
embed
53406374_c0
53406374
prolog
0
Title: Understanding CLP(FD) Prolog code of N-queens problem Problem title: Understanding CLP(FD) Prolog code of N-queens problem Tags: prolog, n-queens, clpfd Problem: Understanding CLP(FD) Prolog code of N-queens problem I am trying to understand N-queens problem's solution as given below: :- use_module(library(clpfd...
Understanding CLP(FD) Prolog code of N-queens problem Understanding CLP(FD) Prolog code of N-queens problem prolog n-queens clpfd Understanding CLP Prolog N-queens use_module n_queens safe_queens Understanding CLP(FD) Prolog code of N-queens problem I am trying to understand N-queens problem's solution as given below: ...
[ 0.027587890625, 0.0011444091796875, 0.022216796875, -0.00101470947265625, 0.0101318359375, -0.00994873046875, 0.008544921875, -0.0244140625, 0.004638671875, -0.03369140625, -0.004180908203125, -0.01611328125, -0.0015106201171875, -0.003509521484375, -0.001190185546875, -0.0026092529296...
[ 9626, 144057, 37352, 98553, 1250, 4867, 18151, 541, 944, 1755, 2967, 313, 502, 653, 39557, 71, 4527, 83279, 46002, 31577, 28219, 29806, 35064, 959, 19048, 93, 58134, 4358, 77947 ]
[ 0.07354736328125, 0.0926513671875, 0.2052001953125, 0.1502685546875, 0.1063232421875, 0.185302734375, 0.1923828125, 0.1409912109375, 0.1591796875, 0.139892578125, 0.1414794921875, 0.0159149169921875, 0.0655517578125, 0.07421875, 0.0297393798828125, 0.05767822265625, 0.07421875, 0.1...
embed
29908639_c0
29908639
prolog
0
Title: Printing out elements of List in Prolog Problem title: Printing out elements of List in Prolog Tags: printing, list, prolog Problem: Printing out elements of List in Prolog I've got a list, X, that contains three elements; ID, Name, and Grade. All taken from user input read_student_info([A, B, C]), nl, nl, menu(...
Printing out elements of List in Prolog Printing out elements of List in Prolog printing list prolog Printing List Prolog read_student_info Name Grade show_records Printing out elements of List in Prolog I've got a list, X, that contains three elements; ID, Name, and Grade. All taken from user input Now, I want to disp...
[ -0.004180908203125, -0.004058837890625, 0.007476806640625, 0.015380859375, -0.00909423828125, 0.02099609375, -0.007354736328125, -0.01611328125, 0.00360107421875, -0.00274658203125, 0.00518798828125, -0.009521484375, -0.013427734375, 0.0005035400390625, -0.006622314453125, -0.007598876...
[ 39754, 1810, 80854, 111, 32036, 23, 1250, 4867, 2448, 1916, 5303, 502, 12301, 96610, 7319, 15757, 22453, 13, 7639, 32271, 4163, 10, 1193, 70541, 17262, 11338, 39958, 1295, 38937, 107730, 3444, 47, 44116, 2174, 765, 9836, 138, 8352, 15111, ...
[ 0.1986083984375, 0.1771240234375, 0.184326171875, 0.055419921875, 0.212890625, 0.04901123046875, 0.174560546875, 0.251708984375, 0.1383056640625, 0.02313232421875, 0.1939697265625, 0.1246337890625, 0.1192626953125, 0.1685791015625, 0.1025390625, 0.1212158203125, 0.1573486328125, 0....
embed
54985797_c1
54985797
prolog
1
8) byPlane(raglan, _6896) ? creep Redo: (17) travel(raglan, _6896) ? creep Call: (18) travel(raglan, _6896) ? creep Call: (19) byCar(raglan, _6896) ? creep Fail: (19) byCar(raglan, _6896) ? creep Redo: (18) travel(raglan, _6896) ? creep Call: (19) byTrain(raglan, _6896) ? creep Fail: (19) byTrain(raglan, _6896) ? creep...
8) byPlane(raglan, _6896) ? creep Redo: (17) travel(raglan, _6896) ? creep Call: (18) travel(raglan, _6896) ? creep Call: (19) byCar(raglan, _6896) ? creep Fail: (19) byCar(raglan, _6896) ? creep Redo: (18) travel(raglan, _6896) ? creep Call: (19) byTrain(raglan, _6896) ? creep Fail: (19) byTrain(raglan, _6896) ? creep...
[ 0.01214599609375, 0.01068115234375, -0.009765625, 0.031005859375, 0.005096435546875, 0.0034332275390625, 0.003997802734375, -0.008056640625, 0.004364013671875, -0.03564453125, 0.005706787109375, 0.000965118408203125, -0.030029296875, -0.004150390625, 0.00811767578125, -0.00460815429687...
[ 65034, 390, 78680, 13, 27402, 1414, 16028, 109241, 49512, 254, 6096, 31, 43956, 26983, 26265, 41776, 46027, 21851, 190355, 28542, 153, 2301, 18, 1957, 15400, 28219, 27470, 83, 142, 3564, 41311, 1556, 47, 4420, 125728, 1632, 17366, 1286, 452...
[ 0.1485595703125, 0.1585693359375, 0.199951171875, 0.08331298828125, 0.1168212890625, 0.247314453125, 0.1456298828125, 0.22802734375, 0.1705322265625, 0.177001953125, 0.13623046875, 0.187255859375, 0.1026611328125, 0.2034912109375, 0.1627197265625, 0.0987548828125, 0.1322021484375, ...
embed
61163896_c0
61163896
prolog
0
Title: Prolog Predicate Help: Delete Number N times from List Problem title: Prolog Predicate Help: Delete Number N times from List Tags: prolog, list Problem: Prolog Predicate Help: Delete Number N times from List Question: deleteNum(+Element, +List, -NewList, +NumToDelete) takes a list, an element, and the number of ...
Prolog Predicate Help: Delete Number N times from List Prolog Predicate Help: Delete Number N times from List prolog list List Prolog Predicate Help Delete Number Element NewList NumToDelete Elements Num Num1 Prolog Predicate Help: Delete Number N times from List Question: deleteNum(+Element, +List, -NewList, +NumToDel...
[ -0.001983642578125, 0.0164794921875, 0.0115966796875, 0.01483154296875, -0.0155029296875, 0.0272216796875, -0.0017547607421875, -0.00714111328125, 0.0169677734375, -0.0050048828125, 0.0038299560546875, -0.0260009765625, -0.006195068359375, -0.01080322265625, 0.00775146484375, 0.0080566...
[ 1250, 4867, 7145, 2063, 39527, 262, 46485, 103332, 541, 20028, 1295, 32036, 67, 502, 5303, 48325, 2356, 154663, 52782, 7763, 4657, 418, 68185, 154109, 839, 316, 1328, 19929, 997, 20, 46568, 51776, 12830, 14012, 80854, 5608, 186, 7311, 26948...
[ 0.1461181640625, 0.2049560546875, 0.121826171875, 0.1378173828125, 0.139404296875, 0.1435546875, 0.1876220703125, 0.2000732421875, 0.18798828125, 0.2210693359375, 0.083740234375, 0.185302734375, 0.0280303955078125, 0.0966796875, 0.1539306640625, 0.1422119140625, 0.136962890625, 0.2...
embed
5881432_c0
5881432
prolog
0
Title: How does Prolog technically work? What&#x27;s under the hood? Problem title: How does Prolog technically work? What&#x27;s under the hood? Tags: prolog Problem: How does Prolog technically work? What's under the hood? I want to learn more about the internals of Prolog and understand how this works. I know how to...
How does Prolog technically work? What&#x27;s under the hood? How does Prolog technically work? What&#x27;s under the hood? prolog How Prolog What How does Prolog technically work? What's under the hood? I want to learn more about the internals of Prolog and understand how this works. I know how to use it. But not how ...
[ 0.0341796875, 0.01239013671875, 0.0081787109375, 0.039794921875, -0.00909423828125, 0.032958984375, -0.01336669921875, -0.0224609375, -0.00154876708984375, -0.0233154296875, 0.00921630859375, -0.00775146484375, -0.01080322265625, 0.02490234375, 0.0185546875, 0.00173187255859375, 0.01...
[ 11249, 14602, 1250, 4867, 121392, 538, 4488, 4865, 3768, 1379, 70, 44462, 502, 3444, 30698, 1286, 70796, 111, 28219, 3642, 903, 43240, 3714, 4527, 442, 234873, 23755, 11814, 23, 17105, 45367, 53201, 45646, 8951, 36746, 41382, 41, 11727, 254...
[ 0.154541015625, 0.0941162109375, 0.2103271484375, 0.295654296875, 0.1771240234375, 0.090087890625, 0.159423828125, 0.090576171875, 0.026397705078125, 0.1685791015625, 0.040863037109375, 0.1474609375, 0.1624755859375, 0.046295166015625, 0.049713134765625, 0.01190185546875, 0.168823242...
embed
46874557_c0
46874557
prolog
0
Title: Prolog: Get all list elements recursively Problem title: Prolog: Get all list elements recursively Tags: recursion, prolog, list Problem: Prolog: Get all list elements recursively Here I have a list of modules rule. module(oop). % Object Oriented Programming module(se1). % Software Engineering 1 module(se2). % S...
Prolog: Get all list elements recursively Prolog: Get all list elements recursively recursion prolog list any Prolog Get Object Oriented Programming se1 Software Engineering se2 Prolog: Get all list elements recursively Here I have a list of modules rule. Then I defined the prerequisites for each module. As you can see...
[ 0.0028228759765625, 0.00145721435546875, 0.00183868408203125, 0.025146484375, 0.00970458984375, 0.0245361328125, -0.0101318359375, 0.006072998046875, 0.01373291015625, -0.056640625, 0.0177001953125, -0.0152587890625, -0.00677490234375, 0.0024871826171875, 0.017578125, -0.007568359375, ...
[ 1250, 4867, 20779, 756, 5303, 80854, 195625, 5844, 1830, 502, 134549, 142225, 27958, 40, 418, 23752, 123470, 304, 538, 88996, 79986, 61924, 479, 107, 3181, 100758, 144570, 80581, 32500, 1884, 32354, 60899, 8305, 30646, 56065, 237, 60075, 13, ...
[ 0.1788330078125, 0.270751953125, 0.11181640625, 0.1376953125, 0.203369140625, 0.186279296875, 0.24560546875, 0.146484375, 0.139404296875, 0.122314453125, 0.13037109375, 0.127685546875, 0.0648193359375, 0.0787353515625, 0.03192138671875, 0.03314208984375, 0.03851318359375, 0.1016235...
embed
19762952_c0
19762952
prolog
0
Title: Taking out the 2nd to last element - Prolog Problem title: Taking out the 2nd to last element - Prolog Tags: prolog Problem: Taking out the 2nd to last element - Prolog I'm very new to Prolog and am trying to figure out exactly what is happening with this (function?) that takes out the 2nd to last element in a l...
Taking out the 2nd to last element - Prolog Taking out the 2nd to last element - Prolog prolog Taking Prolog Taking out the 2nd to last element - Prolog I'm very new to Prolog and am trying to figure out exactly what is happening with this (function?) that takes out the 2nd to last element in a list. I'm familiar with ...
[ 0.0164794921875, 0.0113525390625, -0.000606536865234375, 0.007049560546875, -0.01495361328125, 0.01409912109375, -0.028564453125, 0.0108642578125, 0.01019287109375, -0.006927490234375, 0.025634765625, -0.0159912109375, -0.00927734375, -0.016845703125, -0.004241943359375, 0.000740051269...
[ 2561, 214, 1810, 116, 2208, 47, 4568, 12830, 1250, 4867, 502, 26366, 123087, 903, 137175, 51776, 5303, 103510, 14858, 39456, 3647, 7225, 30646, 201505, 36356, 7565, 77336, 25737, 50960, 33342, 135989, 4935, 243, 934, 10336, 72856, 73342, 3235...
[ 0.0787353515625, 0.04534912109375, 0.1646728515625, 0.150390625, 0.1417236328125, 0.1279296875, 0.2049560546875, 0.191650390625, 0.145751953125, 0.2120361328125, 0.06494140625, 0.0115966796875, 0.05657958984375, 0.03985595703125, 0.155029296875, 0.0675048828125, 0.15771484375, 0.14...
embed
55513856_c0
55513856
prolog
0
Title: I am having problems getting a list of lists into a single list Problem title: I am having problems getting a list of lists into a single list Tags: prolog Problem: I am having problems getting a list of lists into a single list I am writing a solution to working out distances between numbers in a list using rec...
I am having problems getting a list of lists into a single list I am having problems getting a list of lists into a single list prolog use_module DST Tail I am having problems getting a list of lists into a single list I am writing a solution to working out distances between numbers in a list using recursion, but have ...
[ 0.01495361328125, 0.010498046875, -0.004486083984375, 0.0028076171875, -0.0005340576171875, 0.0152587890625, -0.0003948211669921875, -0.0096435546875, 0.01129150390625, -0.0299072265625, -0.00457763671875, -0.017333984375, -0.00579833984375, 0.011474609375, -0.00653076171875, -0.000991...
[ 19441, 44402, 20949, 5303, 111, 7, 3934, 10, 11001, 502, 4867, 4527, 83279, 391, 8545, 1218, 379, 32562, 29806, 20697, 1810, 62488, 17721, 101935, 23, 195625, 1830, 237875, 179140, 140992, 31577, 2046, 81887, 17368, 49878, 510, 114689, 71, ...
[ 0.034637451171875, 0.12744140625, 0.0716552734375, 0.2373046875, 0.06890869140625, 0.0826416015625, 0.14404296875, 0.06512451171875, 0.1614990234375, 0.1488037109375, 0.202880859375, 0.076904296875, 0.1512451171875, 0.09619140625, 0.2125244140625, 0.1805419921875, 0.1636962890625, ...
embed
76023809_c0
76023809
prolog
0
Title: Using a list in pytholog Problem title: Using a list in pytholog Tags: logic-programming, prolog, python Problem: Using a list in pytholog I'm trying to define a knowledge base where a disease has a list of symptoms. Here's a snippet: import pytholog as pl diseases_kb = pl.KnowledgeBase() diseases_kb([ "disease(...
Using a list in pytholog Using a list in pytholog logic-programming prolog python pytholog Using diseases_kb pl.KnowledgeBase frequent_urination extreme_thirst shortness_of_breath diseases_kb.query pl.Expr Symptoms Using a list in pytholog I'm trying to define a knowledge base where a disease has a list of symptoms. He...
[ 0.02685546875, -0.004547119140625, -0.00860595703125, 0.023681640625, 0.00457763671875, 0.005859375, -0.0147705078125, 0.00860595703125, -0.01141357421875, -0.05224609375, 0.014404296875, -0.0107421875, -0.0177001953125, -0.007354736328125, -0.0135498046875, -0.0034942626953125, 0.01...
[ 345, 5303, 23, 17198, 927, 14071, 10, 62775, 28966, 502, 4867, 50828, 70997, 7, 275, 6456, 35613, 181606, 63473, 103351, 1162, 19, 120069, 95037, 271, 16610, 4134, 10519, 944, 19279, 10287, 149450, 31577, 61924, 51359, 3647, 1556, 153698, 4...
[ 0.114013671875, 0.274169921875, 0.06280517578125, 0.1563720703125, 0.1324462890625, 0.2293701171875, 0.013763427734375, 0.0909423828125, 0.10546875, 0.070068359375, 0.167236328125, 0.11669921875, 0.1800537109375, 0.021514892578125, 0.0726318359375, 0.037994384765625, 0.06732177734375...
embed
26369666_c0
26369666
prolog
0
Title: Solve extremely simple equation in prolog: A = B + C? Problem title: Solve extremely simple equation in prolog: A = B + C? Tags: prolog, constraint-programming Problem: Solve extremely simple equation in prolog: A = B + C? I have an extremely simple equation that I would like to be able to solve in prolog: A = B...
Solve extremely simple equation in prolog: A = B + C? Solve extremely simple equation in prolog: A = B + C? prolog constraint-programming Solve Solve extremely simple equation in prolog: A = B + C? I have an extremely simple equation that I would like to be able to solve in prolog: A = B + C I'd like to be able to writ...
[ 0.01416015625, 0.00408935546875, 0.000652313232421875, 0.0238037109375, 0.0068359375, 0.00174713134765625, -0.00799560546875, 0.0047607421875, 0.0113525390625, -0.0303955078125, 0.00701904296875, 0.0169677734375, -0.00055694580078125, 0.0301513671875, 0.0059814453125, -0.00747680664062...
[ 6678, 272, 111531, 8781, 28, 5490, 2320, 23, 502, 4867, 62, 2203, 335, 997, 313, 2816, 28966, 32, 1884, 19048, 86869, 33022, 1653, 2063, 67, 36510, 903, 41911, 34831, 2499, 10750, 959, 8035, 34648, 14, 27140, 91582, 13722, 484, 25647, 2...
[ 0.1409912109375, 0.0863037109375, 0.2115478515625, 0.2398681640625, 0.0833740234375, 0.2049560546875, 0.048553466796875, 0.093994140625, 0.1761474609375, 0.2235107421875, 0.16650390625, 0.156494140625, 0.17724609375, 0.238525390625, 0.2100830078125, 0.123779296875, 0.053497314453125,...
embed
3842469_c0
3842469
prolog
0
Title: Finding bounds for 21-variable inequalities Problem title: Finding bounds for 21-variable inequalities Tags: linear-algebra, clpfd, prolog, wolfram-mathematica Problem: Finding bounds for 21-variable inequalities I have the following inequalities on 21 variables: http://pastebin.com/raw.php?i=FTU970Em When I run...
Finding bounds for 21-variable inequalities Finding bounds for 21-variable inequalities linear-algebra clpfd prolog wolfram-mathematica Finding Finding bounds for 21-variable inequalities I have the following inequalities on 21 variables: http://pastebin.com/raw.php?i=FTU970Em When I run "Reduce[ineq,Integers]" on this...
[ -0.0177001953125, -0.0283203125, -0.0130615234375, 0.0181884765625, 0.0003032684326171875, 0.0184326171875, 0.0089111328125, 0.004058837890625, 0.0166015625, -0.0017852783203125, 0.015869140625, -0.0252685546875, -0.002166748046875, 0.00482177734375, 0.01806640625, 0.03759765625, 0.0...
[ 26040, 99091, 7, 26928, 21690, 2886, 23, 13, 71723, 192617, 429, 39557, 502, 4867, 55334, 88875, 31075, 25632, 98, 952, 77336, 134665, 7568, 81456, 19454, 134131, 11675, 4332, 106357, 1212, 864, 67, 26255, 123426, 10756, 4989, 1733, 10422, ...
[ 0.0966796875, 0.239501953125, 0.109619140625, 0.206787109375, 0.1767578125, 0.055999755859375, 0.0947265625, 0.1025390625, 0.2056884765625, 0.134521484375, 0.040008544921875, 0.002410888671875, 0.062744140625, 0.130615234375, 0.13671875, 0.1829833984375, 0.0899658203125, 0.01722717...
embed
70762392_c0
70762392
prolog
0
Title: Manipulating lists through findall in prolog Problem title: Manipulating lists through findall in prolog Tags: prolog Problem: Manipulating lists through findall in prolog I have a little trouble manipulating lists using findall() method My knowledge base is just this: no/3 --> no(User_Id,_,Tags) In this moment ...
Manipulating lists through findall in prolog Manipulating lists through findall in prolog prolog Manipulating Manipulating lists through findall in prolog I have a little trouble manipulating lists using findall() method My knowledge base is just this: no/3 --> no(User_Id,_,Tags) In this moment i have the combination t...
[ 0.01214599609375, 0.00118255615234375, 0.00836181640625, 0.004302978515625, -0.004425048828125, 0.0260009765625, 0.00927734375, 0.006072998046875, 0.0185546875, -0.032958984375, -0.00010919570922851562, -0.001983642578125, 0.0037384033203125, 0.0057373046875, -0.00177764892578125, 0.00...
[ 221169, 26518, 5303, 8305, 7413, 5584, 502, 4867, 23, 10176, 63134, 45258, 55300, 51359, 3647, 110, 18113, 1062, 2189, 71, 66448, 3095, 162515, 69141, 2831, 73342, 2967, 2046, 72095, 765, 6097, 5423, 277, 7568, 55076, 142105, 19713, 541, 80...
[ 0.2318115234375, 0.0687255859375, 0.2176513671875, 0.0882568359375, 0.1632080078125, 0.2490234375, 0.139404296875, 0.2386474609375, 0.006591796875, 0.02081298828125, 0.0872802734375, 0.2110595703125, 0.076416015625, 0.044525146484375, 0.054840087890625, 0.1356201171875, 0.17700195312...
embed
55891665_c0
55891665
prolog
0
Title: what is a good way to link exclusive statements in prolog? Problem title: what is a good way to link exclusive statements in prolog? Tags: prolog Problem: what is a good way to link exclusive statements in prolog? We were asked to write a menu based calculator on an exam where we were to return control to the me...
what is a good way to link exclusive statements in prolog? what is a good way to link exclusive statements in prolog? prolog Enter what is a good way to link exclusive statements in prolog? We were asked to write a menu based calculator on an exam where we were to return control to the menu once the desired calculation...
[ -0.0064697265625, 0.0023040771484375, -0.0026397705078125, 0.007415771484375, -0.0224609375, -0.01611328125, 0.02197265625, 0.00360107421875, -0.006011962890625, -0.0262451171875, 0.00150299072265625, -0.0016021728515625, -0.022216796875, -0.0005340576171875, 0.0230712890625, 0.0192871...
[ 4127, 3917, 3126, 97629, 63805, 7, 23, 502, 4867, 60816, 47, 33022, 8026, 35509, 154993, 42276, 30646, 6226, 24145, 104851, 74481, 51339, 18151, 29806, 16030, 26785, 11522, 7103, 5117, 70731, 23180, 284, 839, 98320, 89055, 169429 ]
[ 0.117431640625, 0.099853515625, 0.225830078125, 0.22900390625, 0.247314453125, 0.0772705078125, 0.032379150390625, 0.143310546875, 0.220458984375, 0.011749267578125, 0.0487060546875, 0.000213623046875, 0.19677734375, 0.08111572265625, 0.191650390625, 0.113525390625, 0.17529296875, ...
embed
22794255_c0
22794255
prolog
0
Title: Non shortcut OR in prolog? Problem title: Non shortcut OR in prolog? Tags: prolog Problem: Non shortcut OR in prolog? I don't know how should I describe this case.. So I don't know what keywords I can to search. I believe this is not a hard question. I'm trying to solve a graph problem search in Prolog. say I ha...
Non shortcut OR in prolog? Non shortcut OR in prolog? prolog Non Neighbours Non shortcut OR in prolog? I don't know how should I describe this case.. So I don't know what keywords I can to search. I believe this is not a hard question. I'm trying to solve a graph problem search in Prolog. say I have the follow predicts...
[ 0.007415771484375, 0.01495361328125, 0.0220947265625, -0.00124359130859375, -0.0120849609375, 0.0174560546875, 0.0016021728515625, 0.002777099609375, 0.0247802734375, -0.0252685546875, -0.0157470703125, -0.01055908203125, -0.01275634765625, -0.007659912109375, 0.01153564453125, 0.01214...
[ 3775, 16610, 19774, 33172, 23, 502, 4867, 799, 6958, 38648, 7, 3714, 98363, 7225, 166117, 33938, 7941, 86869, 41382, 2967, 1250, 28960, 92054, 62, 915, 43581, 6275, 627, 103136, 54969, 35782, 110, 6044, 7108, 11782, 3444, 765, 5303, 759, ...
[ 0.2178955078125, 0.1787109375, 0.233642578125, 0.183837890625, 0.07891845703125, 0.15576171875, 0.2337646484375, 0.1143798828125, 0.15478515625, 0.2276611328125, 0.0087890625, 0.03704833984375, 0.03155517578125, 0.0286102294921875, 0.1397705078125, 0.136962890625, 0.00860595703125, ...
embed
27648880_c0
27648880
prolog
0
Title: Count number of matching elements in two lists Problem title: Count number of matching elements in two lists Tags: prolog Problem: Count number of matching elements in two lists I have 2 lists with random number of elemets. Eg A=[1,2,4,5] and B=[1,2,3]. Result should be 2. Code that I tried: domains Numbers1 = i...
Count number of matching elements in two lists Count number of matching elements in two lists prolog Count Numbers1 Numbers2 int_list Enter Count number of matching elements in two lists I have 2 lists with random number of elemets. Eg A=[1,2,4,5] and B=[1,2,3]. Result should be 2. Code that I tried: I'm totally new wi...
[ -0.00604248046875, 0.00299072265625, 0.0010223388671875, 0.017578125, -0.006988525390625, 0.02197265625, -0.0101318359375, 0.0113525390625, -0.0022735595703125, -0.03173828125, 0.0079345703125, 0.0079345703125, 0.0019683837890625, 0.0076904296875, 0.00628662109375, -0.0152587890625, ...
[ 108210, 14012, 111, 14858, 214, 80854, 23, 6626, 5303, 502, 4867, 103332, 418, 304, 18, 6562, 60816, 116, 96759, 114128, 933, 22221, 133063, 80389, 335, 96386, 126684, 5608, 787, 28864, 37842, 112668, 3525, 678, 22936, 44691, 3871, 2046, 28...
[ 0.190185546875, 0.15576171875, 0.0423583984375, 0.242431640625, 0.1634521484375, 0.2012939453125, 0.06103515625, 0.1602783203125, 0.2020263671875, 0.1270751953125, 0.17578125, 0.154052734375, 0.00958251953125, 0.05615234375, 0.039306640625, 0.1358642578125, 0.117919921875, 0.101318...
embed
47734723_c0
47734723
prolog
0
Title: Prolog - Arguments are not sufficiently instantiated. Recursion depth Problem title: Prolog - Arguments are not sufficiently instantiated. Recursion depth Tags: instantiation-error, prolog, recursion Problem: Prolog - Arguments are not sufficiently instantiated. Recursion depth I'm new to prolog and want to limi...
Prolog - Arguments are not sufficiently instantiated. Recursion depth Prolog - Arguments are not sufficiently instantiated. Recursion depth instantiation-error prolog recursion Prolog Arguments Recursion Prolog - Arguments are not sufficiently instantiated. Recursion depth I'm new to prolog and want to limit recursion ...
[ 0.0107421875, 0.0216064453125, 0.0050048828125, 0.00179290771484375, 0.01446533203125, 0.00124359130859375, -0.006256103515625, 0.0021209716796875, 0.013671875, -0.036376953125, 0.01361083984375, -0.03369140625, -0.004119873046875, 0.020263671875, 0.03125, 0.0017242431640625, 0.02868...
[ 1250, 4867, 112140, 7, 959, 129980, 538, 34648, 14, 27686, 165428, 42, 6889, 168867, 188800, 502, 195625, 621, 3525, 17475, 1830, 13695, 104250, 7614, 1234, 9035, 18499, 2967, 41382, 60875, 1295, 10, 47, 104, 275, 71, 23468, 12765, 17721, ...
[ 0.167236328125, 0.2318115234375, 0.2548828125, 0.1138916015625, 0.12890625, 0.203369140625, 0.045501708984375, 0.1605224609375, 0.1688232421875, 0.093505859375, 0.1319580078125, 0.1412353515625, 0.1016845703125, 0.228759765625, 0.16845703125, 0.134521484375, 0.2044677734375, 0.0243...
embed
47046227_c0
47046227
prolog
0
Title: How to remove every second occurrence of an element in a given nested list in Prolog? Problem title: How to remove every second occurrence of an element in a given nested list in Prolog? Tags: prolog Problem: How to remove every second occurrence of an element in a given nested list in Prolog? Briefly, for input...
How to remove every second occurrence of an element in a given nested list in Prolog? How to remove every second occurrence of an element in a given nested list in Prolog? prolog How Prolog remove_second delete_second_occurrence nested_memeber is_list nested_member How to remove every second occurrence of an element in...
[ -0.0233154296875, 0.02197265625, -0.002349853515625, 0.00128936767578125, 0.00787353515625, 0.0294189453125, 0.002166748046875, -0.00555419921875, 0.0159912109375, -0.0115966796875, 0.0185546875, -0.004241943359375, 0.007476806640625, -0.00897216796875, 0.01806640625, 0.0120849609375, ...
[ 11249, 47, 87388, 11907, 17932, 74918, 42, 6620, 12830, 34475, 8512, 71, 5303, 1250, 4867, 23, 502, 191633, 154109, 6652, 64240, 282, 1297, 83, 6562, 39, 27417, 101936, 107730, 13538, 7077, 627, 1369, 418, 304, 363, 54968, 81887, 18, 3235...
[ 0.050018310546875, 0.0166015625, 0.1876220703125, 0.142822265625, 0.2183837890625, 0.13671875, 0.1138916015625, 0.053985595703125, 0.1700439453125, 0.04071044921875, 0.208740234375, 0.09521484375, 0.14990234375, 0.1561279296875, 0.2318115234375, 0.0146331787109375, 0.062744140625, ...
embed
20664619_c0
20664619
prolog
0
Title: error undefined procedure in prolog Problem title: error undefined procedure in prolog Tags: prolog Problem: error undefined procedure in prolog I am working with the following knowledge base: house_elf(dobby). witch(hermione). witch('McGonagall'). witch(rita_skeeter). magic(X):-house_elf(X). magic(X):-wizard(X)...
error undefined procedure in prolog error undefined procedure in prolog prolog house_elf McGonagall rita_skeeter error undefined procedure in prolog I am working with the following knowledge base: and the exercise says: Which of the following queries are satisfied? where relevant, give all the variable instantiations t...
[ -0.004638671875, 0.041015625, 0.009033203125, 0.0067138671875, 0.007293701171875, 0.0087890625, -0.01007080078125, 0.006011962890625, 0.0019683837890625, -0.0169677734375, -0.01153564453125, -0.010498046875, 0.000873565673828125, 0.0072021484375, 0.0031280517578125, 0.00592041015625, ...
[ 18499, 9232, 5983, 297, 50491, 23, 502, 4867, 18276, 13, 17463, 2477, 119876, 13992, 1205, 45673, 3647, 81979, 25632, 41, 10484, 214521, 29191, 8337, 77336, 34648, 14, 37105, 47, 36272, 194663, 26458, 1294, 705, 91088, 238, 23923, 151206, 2...
[ 0.17724609375, 0.14697265625, 0.216796875, 0.06451416015625, 0.2486572265625, 0.02825927734375, 0.16259765625, 0.234130859375, 0.10791015625, 0.0143280029296875, 0.19189453125, 0.0206451416015625, 0.115234375, 0.0816650390625, 0.052734375, 0.1290283203125, 0.0262603759765625, 0.054...
embed
75609846_c0
75609846
prolog
0
Title: How do I prevent duplicate matches in Prolog? Problem title: How do I prevent duplicate matches in Prolog? Tags: prolog Problem: How do I prevent duplicate matches in Prolog? Please forgive me if this is a dumb question, but I'm a rank beginner at Prolog (been about a couple hours so far!) and am a bit confused....
How do I prevent duplicate matches in Prolog? How do I prevent duplicate matches in Prolog? prolog How Prolog How do I prevent duplicate matches in Prolog? Please forgive me if this is a dumb question, but I'm a rank beginner at Prolog (been about a couple hours so far!) and am a bit confused. Not sure if I'm trying to...
[ 0.00732421875, 0.0179443359375, 0.02294921875, -0.004974365234375, -0.0198974609375, -0.01513671875, -0.00567626953125, 0.00286865234375, 0.00885009765625, -0.041748046875, 0.00787353515625, -0.0002231597900390625, 0.00640869140625, -0.00714111328125, 0.0042724609375, 0.01806640625, ...
[ 11249, 54, 87, 56282, 171763, 67, 14858, 90, 23, 1250, 4867, 502, 6492, 30648, 9842, 1679, 24941, 21974, 55681, 107314, 17366, 133196, 5423, 3395, 25632, 1653, 2063, 7413, 78, 79298, 4263, 11675, 275, 1542, 990, 43240, 5885, 1284, 76199, ...
[ 0.099609375, 0.034820556640625, 0.0264892578125, 0.248291015625, 0.265869140625, 0.146240234375, 0.239990234375, 0.1142578125, 0.0694580078125, 0.1767578125, 0.2420654296875, 0.1143798828125, 0.04083251953125, 0.1239013671875, 0.0194091796875, 0.031890869140625, 0.003173828125, 0.0...
embed
14424702_c0
14424702
prolog
0
Title: Prolog - list of lists Problem title: Prolog - list of lists Tags: prolog Problem: Prolog - list of lists Having - myMultiply/3 myMultiply([],X,[]) :- !. myMultiply([H|T],X,Result) :- myMultiply(T,X,NewRest), Elem is H*X, Result = [Elem|NewRest]. Which which mulply each element at the left list to the nun at 2nd...
Prolog - list of lists Prolog - list of lists prolog Prolog Result NewRest Elem List1 Rest2 NewResult Prolog - list of lists Having - myMultiply/3 Which which mulply each element at the left list to the nun at 2nd arg and return Result . For example - And tlm/3 Which there I trying to make myMultiply/3 to the left list...
[ -0.00909423828125, 0.01165771484375, 0.020263671875, -0.0054931640625, -0.024169921875, 0.016357421875, -0.006134033203125, 0.0011749267578125, 0.0240478515625, -0.03076171875, 0.01348876953125, -0.01165771484375, 0.000080108642578125, 0.01165771484375, -0.00189208984375, -0.0015869140...
[ 1250, 4867, 5303, 111, 502, 126684, 2356, 1052, 525, 540, 195, 32036, 49756, 304, 4332, 7, 7136, 171855, 759, 50657, 118, 62479, 18113, 130078, 16690, 12638, 12830, 25737, 47, 4124, 116, 2208, 79459, 30646, 27781, 75137, 39, 31577, 3249, ...
[ 0.1593017578125, 0.2391357421875, 0.1781005859375, 0.025543212890625, 0.1162109375, 0.2047119140625, 0.08843994140625, 0.0196075439453125, 0.1123046875, 0.02105712890625, 0.09814453125, 0.090576171875, 0.1280517578125, 0.00244140625, 0.0645751953125, 0.100341796875, 0.1732177734375, ...
embed
37864795_c0
37864795
prolog
0
Title: How do i get all answers that lead to a specific output Problem title: How do i get all answers that lead to a specific output Tags: prolog Problem: How do i get all answers that lead to a specific output So i am starting with Prolog and had an example task, where i have some points that form a maze and i want t...
How do i get all answers that lead to a specific output How do i get all answers that lead to a specific output prolog How How do i get all answers that lead to a specific output So i am starting with Prolog and had an example task, where i have some points that form a maze and i want to know all the nodes that can lea...
[ 0.0033416748046875, 0.00927734375, 0.0050048828125, 0.0191650390625, -0.005462646484375, 0.00823974609375, -0.005889892578125, -0.00238037109375, 0.005126953125, -0.06396484375, 0.007049560546875, -0.02880859375, -0.0194091796875, 0.01214599609375, -0.003997802734375, 0.002395629882812...
[ 11249, 54, 17, 2046, 756, 35166, 7, 450, 37105, 47, 29458, 140992, 10, 502, 4867, 1250, 27781, 66211, 26847, 3173, 291, 731, 3444, 3714, 110, 988, 831, 112, 615, 11814, 41, 1294, 58359, 2886, 1542, 17727, 8781, 98320, 84751, 8951, 297, ...
[ 0.0888671875, 0.038909912109375, 0.089111328125, 0.159912109375, 0.1669921875, 0.2181396484375, 0.105712890625, 0.0830078125, 0.1826171875, 0.109130859375, 0.20947265625, 0.2403564453125, 0.01580810546875, 0.1390380859375, 0.2255859375, 0.134521484375, 0.060272216796875, 0.08483886...
embed
42029165_c0
42029165
prolog
0
Title: Prolog - parsing functions with DCG Problem title: Prolog - parsing functions with DCG Tags: dcg, prolog, parsing Problem: Prolog - parsing functions with DCG I need to parse a string representing function like this: <fsignature>"(" <term1>, <term2> ... <termn>")" The function' signature and terms also have to b...
Prolog - parsing functions with DCG Prolog - parsing functions with DCG dcg prolog parsing Prolog DCG term1 term2 is_leg is_term Prolog - parsing functions with DCG I need to parse a string representing function like this: The function' signature and terms also have to be controlled further for the function to be accep...
[ 0.0264892578125, -0.013427734375, -0.021484375, 0.01324462890625, -0.0223388671875, 0.01220703125, 0.000911712646484375, -0.015625, 0.024169921875, -0.033447265625, -0.00043487548828125, -0.0091552734375, -0.01611328125, 0.007598876953125, 0.0024566650390625, 0.016357421875, 0.001380...
[ 1250, 4867, 366, 6953, 32354, 678, 391, 56367, 104, 238, 177, 502, 13579, 418, 304, 83, 2828, 32166, 184, 79315, 33636, 1884, 903, 138256, 69407, 765, 6226, 6259, 53333, 68186, 59121, 22027, 18, 48903, 4488, 9790, 4527, 113860, 16498, 358...
[ 0.1607666015625, 0.240234375, 0.16064453125, 0.049102783203125, 0.1768798828125, 0.0482177734375, 0.06597900390625, 0.2110595703125, 0.0162200927734375, 0.0219268798828125, 0.0882568359375, 0.125732421875, 0.1627197265625, 0.027618408203125, 0.087890625, 0.126953125, 0.2474365234375,...
embed
47248588_c0
47248588
prolog
0
Title: Prolog does not terminate on query with 2 arguments Problem title: Prolog does not terminate on query with 2 arguments Tags: prolog, successor-arithmetics Problem: Prolog does not terminate on query with 2 arguments I'm new to Prolog and have a question to a programming exercise: I have a program, that is for my...
Prolog does not terminate on query with 2 arguments Prolog does not terminate on query with 2 arguments prolog successor-arithmetics Prolog is_number Prolog does not terminate on query with 2 arguments I'm new to Prolog and have a question to a programming exercise: I have a program, that is for my opinion working most...
[ 0.006195068359375, 0.011962890625, 0.005889892578125, 0.0194091796875, -0.0030517578125, 0.0240478515625, -0.0164794921875, 0.003631591796875, 0.020751953125, -0.028564453125, 0.0257568359375, -0.0203857421875, -0.0230712890625, 0.01202392578125, 0.02294921875, -0.00543212890625, 0.0...
[ 1250, 4867, 959, 121011, 13, 98, 41, 1294, 678, 116, 10750, 502, 39457, 42, 8962, 83, 2606, 1297, 3525, 9655, 56037, 81979, 1528, 33153, 20697, 2684, 1733, 29458, 2046, 35166, 28219, 5036, 1927, 90, 11907, 7722, 14012, 100, 62, 136, 335...
[ 0.20703125, 0.270751953125, 0.0989990234375, 0.17236328125, 0.0889892578125, 0.0689697265625, 0.1248779296875, 0.1146240234375, 0.056671142578125, 0.177490234375, 0.2220458984375, 0.138427734375, 0.15380859375, 0.048065185546875, 0.0677490234375, 0.0767822265625, 0.1134033203125, 0...
embed
59384513_c0
59384513
prolog
0
Title: AND-OR in same statement - Prolog Problem title: AND-OR in same statement - Prolog Tags: prolog Problem: AND-OR in same statement - Prolog I'm new in prolog and writing a simple program that suggest a song to a person. The rule I'm trying to write is " Suggest [Song Link] of [Genre] genre if mood is [Happy] and ...
AND-OR in same statement - Prolog AND-OR in same statement - Prolog prolog AND-OR Prolog AND-OR in same statement - Prolog I'm new in prolog and writing a simple program that suggest a song to a person. The rule I'm trying to write is " Suggest [Song Link] of [Genre] genre if mood is [Happy] and [Person] is alex OR [Pe...
[ 0.00173187255859375, 0.0023040771484375, 0.002105712890625, 0.0235595703125, -0.0299072265625, 0.02099609375, -0.017578125, 0.007049560546875, 0.0067138671875, -0.0281982421875, -0.018310546875, -0.03515625, 0.0169677734375, 0.001251220703125, 0.00469970703125, 0.006195068359375, -0....
[ 48762, 24638, 23, 5701, 63805, 1250, 4867, 9, 502, 3525, 32562, 8781, 1528, 42459, 11531, 47, 3445, 79986, 31577, 33022, 104235, 177, 525, 4021, 12779, 105376, 30773, 2174, 52528, 184870, 160054, 662, 425, 33172, 48220, 19, 707, 83, 1108, ...
[ 0.2509765625, 0.30517578125, 0.060943603515625, 0.1806640625, 0.263427734375, 0.185791015625, 0.242919921875, 0.0195465087890625, 0.15771484375, 0.04248046875, 0.0804443359375, 0.0657958984375, 0.141357421875, 0.29150390625, 0.2054443359375, 0.06878662109375, 0.086669921875, 0.2047...
embed
69867117_c0
69867117
prolog
0
Title: Increment a variable by constant in recursive rules in prolog Problem title: Increment a variable by constant in recursive rules in prolog Tags: prolog Problem: Increment a variable by constant in recursive rules in prolog Here's the line of code written in prolog to make an lcm (Least Common Multiple) rule: lcm...
Increment a variable by constant in recursive rules in prolog Increment a variable by constant in recursive rules in prolog prolog Increment ImproveB ImproveA Increment a variable by constant in recursive rules in prolog Here's the line of code written in prolog to make an lcm (Least Common Multiple) rule: I noticed th...
[ -0.01239013671875, 0.01275634765625, 0.012939453125, 0.02783203125, 0.032958984375, 0.012451171875, -0.019775390625, 0.001312255859375, 0.0036163330078125, -0.019287109375, 0.01611328125, -0.005889892578125, 0.006011962890625, 0.0120849609375, 0.0341796875, 0.0016632080078125, 0.0082...
[ 8942, 107, 674, 77336, 390, 53697, 195625, 5844, 91736, 502, 4867, 23, 3370, 66187, 571, 284, 13315, 111, 18151, 59121, 3249, 96, 3931, 5267, 4438, 151301, 19335, 8705, 79986, 156672, 54608, 124519, 7225, 2485, 963, 1542, 160404, 35064, 646...
[ 0.1112060546875, 0.18115234375, 0.044281005859375, 0.2451171875, 0.11083984375, 0.231689453125, 0.200439453125, 0.0751953125, 0.17333984375, 0.1490478515625, 0.217041015625, 0.0301971435546875, 0.06793212890625, 0.1827392578125, 0.142333984375, 0.1309814453125, 0.04266357421875, 0....
embed
4005343_c0
4005343
prolog
0
Title: Stack overflow in Prolog Problem title: Stack overflow in Prolog Tags: nested-lists, prolog, scope, parent, stack-overflow Problem: Stack overflow in Prolog I am trying to write Prolog code to determine whether the bound variable X is in the scope of the bound variable Y in a list. Lists may be nested and X is i...
Stack overflow in Prolog Stack overflow in Prolog nested-lists prolog scope parent stack-overflow Stack Prolog in_scope List Parent Stack overflow in Prolog I am trying to write Prolog code to determine whether the bound variable X is in the scope of the bound variable Y in a list. Lists may be nested and X is in the s...
[ 0.00921630859375, 0.0289306640625, 0.006744384765625, 0.019775390625, -0.00112152099609375, 0.00616455078125, -0.01495361328125, 0.01055908203125, 0.004913330078125, -0.0250244140625, 0.0250244140625, -0.0047607421875, -0.005462646484375, 0.0021820068359375, 0.0322265625, 0.01165771484...
[ 6512, 2594, 645, 118664, 1250, 4867, 23, 8512, 71, 6562, 502, 70820, 49129, 177261, 5465, 32036, 170918, 31577, 33022, 18151, 83324, 36766, 99091, 77336, 1193, 83, 990, 5303, 1543, 43032, 5701, 32786, 86, 14437, 49919, 61924, 1542, 1723, 15...
[ 0.153564453125, 0.1090087890625, 0.133056640625, 0.24267578125, 0.1575927734375, 0.231201171875, 0.1317138671875, 0.18994140625, 0.038482666015625, 0.1593017578125, 0.107421875, 0.2396240234375, 0.1412353515625, 0.1739501953125, 0.1102294921875, 0.1622314453125, 0.1373291015625, 0....
embed
16445427_c1
16445427
prolog
1
world of blocks (like the previous) and there is a legal move allowed between Situazion1 and Situazion2. So I could represent this thing in the following using a series of facts like (this thing is shown on the slides of my teacher and not on the Bratko book: s([[A|RA],B,C],[RA,[A|B],C]). s([[A|RA],B,C],[RA,B,[A|C]])....
world of blocks (like the previous) and there is a legal move allowed between Situazion1 and Situazion2. So I could represent this thing in the following using a series of facts like (this thing is shown on the slides of my teacher and not on the Bratko book: s([[A|RA],B,C],[RA,[A|B],C]). s([[A|RA],B,C],[RA,B,[A|C]])....
[ 0.00133514404296875, 0.00162506103515625, 0.0093994140625, 0.01953125, 0.011962890625, 0.01300048828125, -0.0089111328125, -0.0030670166015625, 0.040771484375, -0.016357421875, 0.0235595703125, 0.0203857421875, -0.01519775390625, -0.00457763671875, 0.004913330078125, 0.005859375, 0.0...
[ 8999, 111, 46389, 7, 5062, 96362, 10, 8437, 25813, 107003, 17721, 49977, 36971, 19, 418, 136, 5442, 5809, 33636, 13580, 23, 25632, 17368, 36549, 15824, 127887, 122753, 117914, 119794, 265, 12877, 91, 58745, 12280, 571, 441, 29481, 442, 765,...
[ 0.175537109375, 0.0975341796875, 0.2449951171875, 0.10650634765625, 0.039215087890625, 0.0028076171875, 0.004852294921875, 0.2125244140625, 0.18212890625, 0.2154541015625, 0.122802734375, 0.23876953125, 0.118896484375, 0.0394287109375, 0.0758056640625, 0.05303955078125, 0.142578125, ...
embed
65281579_c0
65281579
prolog
0
Title: Do modern Prolog compilers optimize away the occurs check automatically, when it&#x27;s safe? Problem title: Do modern Prolog compilers optimize away the occurs check automatically, when it&#x27;s safe? Tags: compilation, unification, prolog, occurs-check, compiler-optimization Problem: Do modern Prolog compiler...
Do modern Prolog compilers optimize away the occurs check automatically, when it&#x27;s safe? Do modern Prolog compilers optimize away the occurs check automatically, when it&#x27;s safe? compilation unification prolog occurs-check compiler-optimization Prolog Do modern Prolog compilers optimize away the occurs check a...
[ 0.00860595703125, 0.0240478515625, 0.030029296875, -0.00823974609375, -0.02099609375, 0.0028533935546875, -0.01031494140625, -0.01556396484375, -0.0208740234375, -0.01104736328125, -0.01092529296875, 0.007781982421875, 0.005157470703125, -0.016357421875, 0.0084228515625, -0.00088500976...
[ 984, 5744, 1250, 4867, 9969, 34759, 15572, 20650, 16065, 74918, 7, 12765, 191082, 3229, 3768, 46002, 98352, 51, 41274, 502, 78292, 100433, 225081, 53550, 49938, 15122, 496, 5369, 21020, 1653, 2063, 222201, 18151, 37382, 242520, 234873, 26171, ...
[ 0.0258026123046875, 0.16552734375, 0.1734619140625, 0.2235107421875, 0.1568603515625, 0.1719970703125, 0.1785888671875, 0.050689697265625, 0.1619873046875, 0.2366943359375, 0.1199951171875, 0.246337890625, 0.2081298828125, 0.072509765625, 0.0677490234375, 0.2052001953125, 0.128417968...
embed
48938502_c0
48938502
prolog
0
Title: What does the following recursive Prolog call output? Problem title: What does the following recursive Prolog call output? Tags: prolog Problem: What does the following recursive Prolog call output? I'm trying to learn prologue, but man am I having trouble. I have an example below as well as what it outputs, and...
What does the following recursive Prolog call output? What does the following recursive Prolog call output? prolog What Prolog What does the following recursive Prolog call output? I'm trying to learn prologue, but man am I having trouble. I have an example below as well as what it outputs, and I'm clearly stuck on som...
[ 0.0196533203125, 0.025146484375, 0.019775390625, 0.0021820068359375, -0.00799560546875, 0.023681640625, -0.0021209716796875, 0.0026092529296875, 0.005645751953125, 0.0152587890625, -0.004913330078125, -0.033203125, -0.016357421875, 0.007476806640625, 0.00677490234375, -0.00253295898437...
[ 4865, 14602, 70, 25632, 195625, 5844, 1250, 4867, 11782, 140992, 502, 30698, 4083, 179554, 63134, 27781, 35064, 2367, 442, 23755, 9077, 705, 132, 11, 275, 238, 71, 13, 28219, 14847, 33342, 100, 29806, 17368, 51, 41274, 1927, 35782, 172337, ...
[ 0.110107421875, 0.05841064453125, 0.002777099609375, 0.1905517578125, 0.21630859375, 0.1334228515625, 0.20703125, 0.24658203125, 0.1883544921875, 0.232177734375, 0.1810302734375, 0.0238494873046875, 0.1597900390625, 0.2342529296875, 0.00537109375, 0.09033203125, 0.029815673828125, ...
embed
61969877_c0
61969877
prolog
0
Title: Repeat until predicate evaluates to true in prolog Problem title: Repeat until predicate evaluates to true in prolog Tags: prolog Problem: Repeat until predicate evaluates to true in prolog So, I am pretty new to prolog and am having troubles doing some very basic thing. I want to be able to repeat the evaluatio...
Repeat until predicate evaluates to true in prolog Repeat until predicate evaluates to true in prolog prolog Repeat Goals Frontier Explored Repeat until predicate evaluates to true in prolog So, I am pretty new to prolog and am having troubles doing some very basic thing. I want to be able to repeat the evaluation of a...
[ 0.01300048828125, 0.016357421875, 0.016357421875, 0.01251220703125, -0.0245361328125, 0.0130615234375, 0.01141357421875, -0.01055908203125, -0.0028228759765625, -0.03857421875, 0.01373291015625, 0.0019073486328125, -0.019287109375, -0.00372314453125, 0.007049560546875, 0.00338745117187...
[ 33742, 13, 257, 24189, 1653, 2063, 67, 151575, 90, 47, 29568, 23, 502, 4867, 2016, 16765, 227762, 98873, 2822, 63134, 62822, 3444, 19048, 119140, 219836, 87599, 876, 17447, 22225, 184, 2684, 1733, 96759, 60875, 33938, 12921, 142424, 7279, 1...
[ 0.1541748046875, 0.1702880859375, 0.041259765625, 0.2049560546875, 0.203369140625, 0.2470703125, 0.09124755859375, 0.2222900390625, 0.0308837890625, 0.124267578125, 0.2049560546875, 0.059051513671875, 0.1700439453125, 0.2044677734375, 0.100341796875, 0.040283203125, 0.18017578125, ...
embed
67032286_c1
67032286
prolog
1
multiplied in the list would be the same at the head, so I wrote a multiply predicate. %% multiply(+List,-Result) % % for calling the multiply(+List,+PrevResult,+Result) with accumulator set to 1 multiply(List,Result):- multiply(List,1,Result). %% multiply(+List,+PrevResult,+Result) % % multiply each element in the li...
multiplied in the list would be the same at the head, so I wrote a multiply predicate. %% multiply(+List,-Result) % % for calling the multiply(+List,+PrevResult,+Result) with accumulator set to 1 multiply(List,Result):- multiply(List,1,Result). %% multiply(+List,+PrevResult,+Result) % % multiply each element in the li...
[ -0.0106201171875, 0.02685546875, 0.01507568359375, 0.0211181640625, -0.005096435546875, -0.00167083740234375, -0.0211181640625, -0.01116943359375, 0.0201416015625, -0.022705078125, 0.01202392578125, -0.00244140625, -0.007598876953125, 0.006378173828125, -0.0220947265625, 0.003128051757...
[ 118126, 297, 23, 5303, 5701, 99, 10336, 87, 54397, 6024, 62479, 1653, 2063, 67, 3949, 1328, 154663, 9, 4332, 7, 7136, 159029, 19273, 334, 678, 183278, 1290, 5423, 106, 418, 12638, 12830, 19929, 1052, 525, 4997, 74717, 48325, 81280, 126684...
[ 0.1983642578125, 0.0225830078125, 0.036376953125, 0.2017822265625, 0.0889892578125, 0.022125244140625, 0.19775390625, 0.0247955322265625, 0.0947265625, 0.1966552734375, 0.2222900390625, 0.1859130859375, 0.2313232421875, 0.10302734375, 0.031494140625, 0.0751953125, 0.20849609375, 0....
embed
46814352_c0
46814352
prolog
0
Title: SWI-Prolog rule assertion from passed List Problem title: SWI-Prolog rule assertion from passed List Tags: prolog Problem: SWI-Prolog rule assertion from passed List I use swiprolog and have a knowlegdebase with some facts like: det(the). det(a). adjective(quick). adjective(brown). noun(cat). noun(fox). prep(on)...
SWI-Prolog rule assertion from passed List SWI-Prolog rule assertion from passed List prolog passed SWI-Prolog List generate_grammar GrammarList new_rule Head Body SWI-Prolog rule assertion from passed List I use swiprolog and have a knowlegdebase with some facts like: and I have a rule This rule gets passed a list wit...
[ 0.020751953125, 0.012451171875, -0.009765625, 0.020751953125, -0.0164794921875, 0.00897216796875, -0.01263427734375, 0.0186767578125, 0.0031280517578125, -0.01019287109375, 0.0201416015625, -0.014892578125, -0.01080322265625, -0.0023345947265625, 0.0164794921875, -0.01385498046875, 0...
[ 159, 38969, 10752, 4867, 79986, 10, 16865, 1295, 115081, 32036, 502, 139392, 107415, 147, 48078, 1727, 154663, 3525, 882, 44816, 43960, 4527, 91, 2452, 3454, 3714, 2828, 112, 37382, 15824, 765, 5303, 69723, 80854, 3667, 309, 81465, 4692, 56...
[ 0.0645751953125, 0.2037353515625, 0.1112060546875, 0.1932373046875, 0.1861572265625, 0.0180816650390625, 0.194091796875, 0.0853271484375, 0.1724853515625, 0.2130126953125, 0.08526611328125, 0.1900634765625, 0.114990234375, 0.087890625, 0.05206298828125, 0.0279388427734375, 0.13671875...
embed
27789026_c0
27789026
prolog
0
Title: Problems with deleting punctuation in list of lists Problem title: Problems with deleting punctuation in list of lists Tags: list, prolog Problem: Problems with deleting punctuation in list of lists I am trying to write prolog code that will delete all punctuation (.,!? etc) from all lists in a list of lists. Th...
Problems with deleting punctuation in list of lists Problems with deleting punctuation in list of lists list prolog Problems delete_punctuation Character List Tail Resultlist NewList Problems with deleting punctuation in list of lists I am trying to write prolog code that will delete all punctuation (.,!? etc) from all...
[ -0.009521484375, -0.0002803802490234375, 0.015380859375, -0.0024871826171875, -0.017578125, 0.007080078125, 0.022216796875, -0.0089111328125, 0.01336669921875, 0.0189208984375, 0.009033203125, -0.01025390625, 0.00634765625, 0.0035400390625, -0.01708984375, 0.004119873046875, 0.025878...
[ 15649, 678, 24674, 1916, 33595, 34, 2320, 23, 5303, 111, 502, 4867, 154109, 454, 210431, 21656, 2263, 32036, 1218, 379, 126684, 6562, 2356, 154663, 7, 31577, 33022, 18151, 1221, 756, 5, 38, 3021, 1295, 3293, 765, 221, 2060, 162, 84068, ...
[ 0.1776123046875, 0.0230865478515625, 0.2352294921875, 0.093017578125, 0.239990234375, 0.197265625, 0.1258544921875, 0.0428466796875, 0.2431640625, 0.05157470703125, 0.1573486328125, 0.2059326171875, 0.2476806640625, 0.004180908203125, 0.2259521484375, 0.000213623046875, 0.10052490234...
embed
20038842_c0
20038842
prolog
0
Title: Prolog is/2, arguments not sufficiently instantiated Problem title: Prolog is/2, arguments not sufficiently instantiated Tags: abstract-syntax-tree, instantiation-error, parsing, prolog Problem: Prolog is/2, arguments not sufficiently instantiated I'm working on an assignment where I have created a parser for a ...
Prolog is/2, arguments not sufficiently instantiated Prolog is/2, arguments not sufficiently instantiated abstract-syntax-tree instantiation-error parsing prolog Prolog Val Env Ast xer_ LINE Prolog is/2, arguments not sufficiently instantiated I'm working on an assignment where I have created a parser for a prefix-nota...
[ -0.01507568359375, 0.005615234375, 0.0002918243408203125, -0.01434326171875, 0.00112152099609375, 0.0081787109375, -0.0145263671875, -0.0218505859375, 0.00543212890625, -0.033203125, 0.033203125, 0.01507568359375, -0.00799560546875, -0.004852294921875, 0.00494384765625, 0.01611328125, ...
[ 1250, 4867, 83, 12477, 10750, 7, 959, 129980, 34648, 14, 164789, 12654, 86531, 62600, 188800, 366, 502, 4769, 357, 334, 271, 77474, 130028, 27686, 20697, 95486, 2189, 183114, 157, 8962, 46876, 33022, 1653, 2063, 67, 45367, 10, 100, 2499, ...
[ 0.18701171875, 0.2568359375, 0.04901123046875, 0.2208251953125, 0.2208251953125, 0.0160980224609375, 0.1170654296875, 0.1783447265625, 0.141357421875, 0.1231689453125, 0.146728515625, 0.0118408203125, 0.0789794921875, 0.1422119140625, 0.16552734375, 0.09368896484375, 0.1666259765625,...
embed
9991419_c0
9991419
prolog
0
Title: Term order for complex Abstract Syntax Tree Problem title: Term order for complex Abstract Syntax Tree Tags: prolog, iso-prolog Problem: Term order for complex Abstract Syntax Tree I have a question about abstract syntax trees. In particular I want to sort several trees with an particular term order. How can one...
Term order for complex Abstract Syntax Tree Term order for complex Abstract Syntax Tree prolog iso-prolog Term Abstract Syntax Tree Term order for complex Abstract Syntax Tree I have a question about abstract syntax trees. In particular I want to sort several trees with an particular term order. How can one define a te...
[ 0.022216796875, 0.01312255859375, 0.004791259765625, -0.006317138671875, 0.00872802734375, -0.01190185546875, -0.0079345703125, 0.00164031982421875, -0.004638671875, -0.033203125, 0.0289306640625, 0.01116943359375, -0.01708984375, 0.006744384765625, 0.00927734375, 0.004852294921875, ...
[ 2994, 39, 12989, 100, 27140, 233973, 19010, 86531, 101344, 502, 4867, 13882, 3454, 164789, 6002, 1360, 12096, 40368, 17311, 13579, 61924, 48963, 183871, 69407, 68991, 1884, 5570, 88303, 62723, 8512, 7477, 18770, 3864, 20155, 48345, 31344, 40322...
[ 0.1495361328125, 0.049163818359375, 0.244873046875, 0.018707275390625, 0.192138671875, 0.1666259765625, 0.1190185546875, 0.1292724609375, 0.206787109375, 0.1041259765625, 0.1512451171875, 0.03619384765625, 0.054412841796875, 0.1658935546875, 0.07513427734375, 0.141845703125, 0.148193...
embed
51465156_c0
51465156
prolog
0
Title: How to shuffle lists in Prolog while preserving inner order Problem title: How to shuffle lists in Prolog while preserving inner order Tags: prolog Problem: How to shuffle lists in Prolog while preserving inner order I'm trying to print out all possible shuffled variants of two lists in one list while preserving...
How to shuffle lists in Prolog while preserving inner order How to shuffle lists in Prolog while preserving inner order prolog How Prolog Tail How to shuffle lists in Prolog while preserving inner order I'm trying to print out all possible shuffled variants of two lists in one list while preserving the order. I need to...
[ 0.00933837890625, 0.029052734375, 0.00994873046875, -0.00616455078125, -0.0106201171875, 0.00007963180541992188, -0.0159912109375, -0.006866455078125, 0.0038604736328125, 0.004425048828125, 0.0107421875, 0.018798828125, -0.005889892578125, 0.0194091796875, 0.008544921875, 0.01672363281...
[ 11249, 47, 170052, 5303, 7, 23, 1250, 4867, 12960, 9498, 56, 75414, 12989, 502, 1218, 379, 28412, 1810, 7722, 71, 20117, 6626, 33022, 1653, 2063, 67, 339, 304, 363, 16750, 132283, 50218, 191560, 114689, 1328 ]
[ 0.035858154296875, 0.003875732421875, 0.2471923828125, 0.2099609375, 0.03253173828125, 0.034027099609375, 0.130126953125, 0.20703125, 0.05316162109375, 0.06982421875, 0.06524658203125, 0.16748046875, 0.1995849609375, 0.080810546875, 0.07598876953125, 0.1080322265625, 0.1090087890625,...
embed
61395505_c2
61395505
prolog
2
,a,r]], Spaces = [[P11, P12, P13], [P15, P16, P17, P18], [P23, P24, P25], [P35, a, P37], [P41, P42, P43, P44, P45], [P11, P21, P31, P41, P51], [P13, P23, P33, P43, P53], [P15, P25, P35, P45], [P17, P27, P37]], palavra_possivel_esp([d,a,o], [P11,P12,P13], Spaces, Leters). 1) So whats happening here is the predicate unif...
,a,r]], Spaces = [[P11, P12, P13], [P15, P16, P17, P18], [P23, P24, P25], [P35, a, P37], [P41, P42, P43, P44, P45], [P11, P21, P31, P41, P51], [P13, P23, P33, P43, P53], [P15, P25, P35, P45], [P17, P27, P37]], palavra_possivel_esp([d,a,o], [P11,P12,P13], Spaces, Leters). 1) So whats happening here is the predicate unif...
[ -0.00162506103515625, 0.00084686279296875, -0.01708984375, 0.01080322265625, -0.0218505859375, 0.0028839111328125, -0.0036163330078125, -0.00701904296875, 0.0159912109375, -0.0225830078125, 0.0172119140625, 0.0245361328125, 0.0135498046875, -0.022216796875, -0.00372314453125, 0.0213623...
[ 6, 4, 11, 42, 86245, 43045, 7, 2203, 683, 1662, 436, 1530, 2681, 1837, 2485, 2489, 1819, 3742, 2357, 2588, 5843, 10, 10945, 8894, 13023, 11548, 12465, 4633, 3117, 5016, 11703, 9185, 14226, 3768, 113119, 7522, 75790, 254, 31, 636, 23962,...
[ 0.00445556640625, 0.059661865234375, 0.13134765625, 0.09307861328125, 0.076904296875, 0.26220703125, 0.1243896484375, 0.1033935546875, 0.087646484375, 0.1595458984375, 0.08807373046875, 0.130126953125, 0.1624755859375, 0.1234130859375, 0.0933837890625, 0.069091796875, 0.096923828125,...
embed