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
39495782_c1
39495782
prolog
1
creep Call: (9) fib(1, _G2579) ? creep Call: (10) _G2578 is 1 ? creep Exit: (10) 1 is 1 ? creep What catches my attention is the last call, Call: (10), which says "_G2578 is 1 ?", even though I'm calling fib(1, _G2579). My expectation is that it's _G2579 that's going to be changed, but that does not appear to be the c...
creep Call: (9) fib(1, _G2579) ? creep Call: (10) _G2578 is 1 ? creep Exit: (10) 1 is 1 ? creep What catches my attention is the last call, Call: (10), which says "_G2578 is 1 ?", even though I'm calling fib(1, _G2579). My expectation is that it's _G2579 that's going to be changed, but that does not appear to be the c...
[ 0.03369140625, 0.0026092529296875, -0.0108642578125, -0.00421142578125, -0.005462646484375, 0.0272216796875, 0.01202392578125, -0.016845703125, 0.0198974609375, 0.0213623046875, 0.0089111328125, 0.009765625, -0.0118408203125, 0.0216064453125, 0.03515625, -0.01708984375, 0.02270507812...
[ 49512, 254, 26265, 11438, 809, 275, 724, 2588, 93917, 17857, 19051, 83, 106, 5443, 217, 105556, 35743, 4568, 11782, 12, 17378, 2953, 159029, 41206, 7, 304, 172070, 98816, 959, 108975, 7225, 7413, 15400, 103210, 92610, 86827, 4, 10461, 30646...
[ 0.179931640625, 0.127685546875, 0.18994140625, 0.18359375, 0.1512451171875, 0.1728515625, 0.07965087890625, 0.1800537109375, 0.172119140625, 0.1884765625, 0.260498046875, 0.07440185546875, 0.1273193359375, 0.1165771484375, 0.125, 0.0826416015625, 0.06640625, 0.140380859375, 0.199...
embed
16893607_c0
16893607
prolog
0
Title: Any Prolog implementation that allows left recursion? Problem title: Any Prolog implementation that allows left recursion? Tags: prolog, logic-programming Problem: Any Prolog implementation that allows left recursion? I wonder if there is any Prolog implementation that allows left recursion in clauses. My intuit...
Any Prolog implementation that allows left recursion? Any Prolog implementation that allows left recursion? prolog logic-programming Any Prolog Any Prolog implementation that allows left recursion? I wonder if there is any Prolog implementation that allows left recursion in clauses. My intuition is that if the implemen...
[ 0.0279541015625, 0.03564453125, 0.0240478515625, 0.014404296875, -0.010498046875, 0.0057373046875, -0.0084228515625, -0.0177001953125, -0.0003604888916015625, -0.033935546875, 0.0108642578125, -0.0184326171875, -0.006744384765625, 0.0020904541015625, 0.027587890625, 0, -0.00747680664...
[ 28541, 1250, 4867, 208124, 450, 114864, 25737, 195625, 1830, 502, 62775, 28966, 32195, 2499, 23, 70731, 58868, 4527, 179967, 927, 13448, 69236, 33938, 1543, 8060, 9077, 227066 ]
[ 0.055267333984375, 0.19287109375, 0.26806640625, 0.1973876953125, 0.04296875, 0.169189453125, 0.2440185546875, 0.235595703125, 0.149169921875, 0.1376953125, 0.0892333984375, 0.05767822265625, 0.033203125, 0.00518798828125, 0.02880859375, 0.1600341796875, 0.0736083984375, 0.00280761...
embed
57486397_c0
57486397
prolog
0
Title: In swi-prolog; How to create dup(L1, L2), where the elements of L2 are duplicated elements of L1? Problem title: In swi-prolog; How to create dup(L1, L2), where the elements of L2 are duplicated elements of L1? Tags: prolog Problem: In swi-prolog; How to create dup(L1, L2), where the elements of L2 are duplicate...
In swi-prolog; How to create dup(L1, L2), where the elements of L2 are duplicated elements of L1? In swi-prolog; How to create dup(L1, L2), where the elements of L2 are duplicated elements of L1? prolog How In swi-prolog; How to create dup(L1, L2), where the elements of L2 are duplicated elements of L1? In swi-prolog; ...
[ -0.00167083740234375, 0.0194091796875, -0.0079345703125, -0.00860595703125, -0.012451171875, 0.0096435546875, -0.0164794921875, 0.0086669921875, 0.0120849609375, -0.036376953125, 0.008056640625, -0.00176239013671875, 0.0038299560546875, -0.0026397705078125, -0.006805419921875, 0.020385...
[ 91, 2452, 3454, 4867, 11249, 28282, 115, 254, 866, 418, 4, 339, 10461, 80854, 304, 171763, 3674, 360, 502, 9, 74, 47, 7440, 25632, 3917, 2203, 425, 113, 97, 1022 ]
[ 0.05767822265625, 0.2115478515625, 0.1414794921875, 0.1673583984375, 0.05859375, 0.1387939453125, 0.1929931640625, 0.19580078125, 0.134765625, 0.14208984375, 0.029388427734375, 0.1446533203125, 0.2000732421875, 0.13720703125, 0.1822509765625, 0.2115478515625, 0.0753173828125, 0.013...
embed
70375440_c0
70375440
prolog
0
Title: Prolog - Add a special character to every element of a list Problem title: Prolog - Add a special character to every element of a list Tags: list, prolog Problem: Prolog - Add a special character to every element of a list I'm trying to add a special character (*) to every element of a list. I want to add it in ...
Prolog - Add a special character to every element of a list Prolog - Add a special character to every element of a list list prolog Prolog Add Prolog - Add a special character to every element of a list I'm trying to add a special character (*) to every element of a list. I want to add it in the beginning and the end o...
[ 0.009033203125, 0.000492095947265625, 0.0021514892578125, 0.00010824203491210938, -0.01416015625, 0.0107421875, -0.0012054443359375, 0.0084228515625, -0.0016632080078125, -0.00567626953125, 0.015869140625, -0.00701904296875, -0.0086669921875, 0.0274658203125, -0.0196533203125, 0.010009...
[ 1250, 4867, 29117, 10, 5361, 62816, 47, 11907, 12830, 111, 5303, 20, 502, 31577, 15190, 80019, 3444, 442, 23, 86595, 136, 3564, 2174, 765, 12, 2806, 186, 3917, 54, 450, 5 ]
[ 0.18798828125, 0.26123046875, 0.1512451171875, 0.0732421875, 0.1932373046875, 0.2452392578125, 0.07049560546875, 0.1319580078125, 0.1881103515625, 0.04034423828125, 0.1953125, 0.0173492431640625, 0.1617431640625, 0.096435546875, 0.1656494140625, 0.203369140625, 0.0924072265625, 0.0...
embed
15538297_c0
15538297
prolog
0
Title: getting specific elements from a list in Prolog Problem title: getting specific elements from a list in Prolog Tags: list, prolog Problem: getting specific elements from a list in Prolog I have been reading this tutorial about Prolog list, and how to get specific element from a list, and I came across this examp...
getting specific elements from a list in Prolog getting specific elements from a list in Prolog list prolog a Prolog _9593 getting specific elements from a list in Prolog I have been reading this tutorial about Prolog list, and how to get specific element from a list, and I came across this example: what I don't unders...
[ 0.00830078125, 0.00762939453125, -0.014404296875, 0.0130615234375, -0.0205078125, 0.01446533203125, -0.0025634765625, 0.01544189453125, 0.01202392578125, 0.01031494140625, 0.0179443359375, -0.0242919921875, -0.00168609619140625, -0.0115966796875, -0.00799560546875, 0.00537109375, 0.0...
[ 20949, 29458, 80854, 1295, 5303, 23, 1250, 4867, 502, 101, 8821, 11591, 57143, 2046, 12830, 27781, 28219, 7440, 34292, 77336, 567 ]
[ 0.0814208984375, 0.2154541015625, 0.20068359375, 0.127197265625, 0.1737060546875, 0.044647216796875, 0.1412353515625, 0.238037109375, 0.0819091796875, 0.0211029052734375, 0.1646728515625, 0.2320556640625, 0.04083251953125, 0.0931396484375, 0.1456298828125, 0.04986572265625, 0.0433959...
embed
16408310_c0
16408310
prolog
0
Title: Prolog element is a list member check Problem title: Prolog element is a list member check Tags: list, member, prolog Problem: Prolog element is a list member check I have a little rule in prolog that has to check if an element is a member of a list and write it's position in the list,but it only works if the el...
Prolog element is a list member check Prolog element is a list member check list member prolog Prolog write_element Tail N-1 Prolog element is a list member check I have a little rule in prolog that has to check if an element is a member of a list and write it's position in the list,but it only works if the elemebt i'm...
[ -0.01104736328125, 0.0184326171875, 0.00250244140625, 0.010009765625, -0.00946044921875, 0.028076171875, 0.0029449462890625, 0.00909423828125, 0.004119873046875, -0.00469970703125, 0.01324462890625, -0.005889892578125, 0.0115966796875, -0.00089263916015625, 0.00897216796875, -0.0043640...
[ 1250, 4867, 12830, 83, 10, 5303, 32786, 12765, 502, 33022, 62766, 1218, 379, 541, 5759, 10176, 79986, 2174, 442, 19069, 43240, 114128, 16723, 16487, 100, 23, 106, 3687, 4358 ]
[ 0.171875, 0.255859375, 0.2205810546875, 0.05224609375, 0.056640625, 0.18359375, 0.2451171875, 0.2232666015625, 0.1177978515625, 0.1099853515625, 0.183349609375, 0.1026611328125, 0.09515380859375, 0.06298828125, 0.1168212890625, 0.0172576904296875, 0.1004638671875, 0.036865234375, ...
embed
27479738_c0
27479738
prolog
0
Title: Delete the last item in a list using conc operation in prolog Problem title: Delete the last item in a list using conc operation in prolog Tags: prolog, list, concatenation Problem: Delete the last item in a list using conc operation in prolog How to write a prolog program to delete the last item in a list using...
Delete the last item in a list using conc operation in prolog Delete the last item in a list using conc operation in prolog prolog list concatenation conc Delete cut_last Delete the last item in a list using conc operation in prolog How to write a prolog program to delete the last item in a list using conc operation. F...
[ 0.01385498046875, 0.00946044921875, 0.0081787109375, 0.013427734375, -0.00347900390625, 0.00946044921875, -0.01092529296875, 0.013671875, 0.013671875, -0.033203125, 0.01153564453125, -0.01495361328125, 0.00750732421875, -0.000080108642578125, 0.0115966796875, -0.004669189453125, 0.00...
[ 262, 46485, 4568, 35735, 23, 5303, 17368, 158, 238, 41018, 502, 4867, 70, 4460, 33, 59226, 19777, 33022, 1528, 47, 154109, 10, 5, 77168, 214, 22936, 44691, 26785 ]
[ 0.1136474609375, 0.1907958984375, 0.198974609375, 0.17333984375, 0.054931640625, 0.1611328125, 0.048919677734375, 0.19189453125, 0.2071533203125, 0.1834716796875, 0.1495361328125, 0.2017822265625, 0.007537841796875, 0.086181640625, 0.048248291015625, 0.12841796875, 0.1724853515625, ...
embed
27593306_c0
27593306
prolog
0
Title: Inference engine prolog Problem title: Inference engine prolog Tags: inference-engine, prolog Problem: Inference engine prolog I am trying to build an inference engine in prolog. For example, here are some rules R1 : A and B -> C R2 : E and F -> D R3 : G and T -> H I wanted to do it like this c :- a,b d :- e,f h...
Inference engine prolog Inference engine prolog inference-engine prolog Inference Inference engine prolog I am trying to build an inference engine in prolog. For example, here are some rules I wanted to do it like this but I have to use a predicate "rule/1" defined as follows rule(Ri) :- "if conditions then conclusions...
[ 0.031494140625, 0.004730224609375, 0.0011444091796875, 0.037109375, -0.006561279296875, 0.038818359375, 0.003173828125, 0.0205078125, 0.0030670166015625, -0.048095703125, -0.0029754638671875, -0.013671875, -0.01275634765625, -0.0030059814453125, 0.0228271484375, 0.003326416015625, 0....
[ 360, 69988, 87907, 502, 4867, 13, 53498, 6620, 128897, 31577, 45367, 23, 27781, 91736, 36663, 54, 1884, 1284, 765, 4527, 1653, 2063, 67, 882, 133, 11583, 61924, 237, 79986, 23267, 3190, 27289, 7068, 93192, 11249, 831 ]
[ 0.059967041015625, 0.2130126953125, 0.220947265625, 0.142822265625, 0.2403564453125, 0.0141754150390625, 0.2181396484375, 0.1439208984375, 0.1832275390625, 0.0560302734375, 0.1361083984375, 0.0275726318359375, 0.039520263671875, 0.1495361328125, 0.0589599609375, 0.05755615234375, 0.0...
embed
33171010_c0
33171010
prolog
0
Title: How do I implement my own list in Prolog? Problem title: How do I implement my own list in Prolog? Tags: list, logic-programming, logic, prolog Problem: How do I implement my own list in Prolog? I am learning Prolog and I know there is a data structure already implemented to handle Lists, but I was wondering and...
How do I implement my own list in Prolog? How do I implement my own list in Prolog? list logic-programming logic prolog How Prolog How do I implement my own list in Prolog? I am learning Prolog and I know there is a data structure already implemented to handle Lists, but I was wondering and if for some reason I want to...
[ 0.0238037109375, 0.01409912109375, 0.01165771484375, 0.0201416015625, -0.00946044921875, 0.0291748046875, 0.0028533935546875, -0.0074462890625, 0.0007781982421875, -0.0283203125, 0.0026702880859375, -0.01226806640625, -0.021240234375, 0.007568359375, 0.01397705078125, 0.0128173828125, ...
[ 11249, 54, 87, 29479, 759, 10002, 5303, 23, 1250, 4867, 62775, 28966, 502, 52080, 2053, 45646, 21771, 34831, 32036, 149016, 3444, 3642, 831, 41206, 208124, 35166, 25647 ]
[ 0.10162353515625, 0.03631591796875, 0.0251922607421875, 0.2386474609375, 0.1033935546875, 0.22265625, 0.26513671875, 0.0802001953125, 0.1923828125, 0.26123046875, 0.09796142578125, 0.05010986328125, 0.10382080078125, 0.0645751953125, 0.1053466796875, 0.218505859375, 0.057220458984375...
embed
5329714_c0
5329714
prolog
0
Title: behaviour of unification in prolog in presence of arithmetic operators Problem title: behaviour of unification in prolog in presence of arithmetic operators Tags: unification, prolog Problem: behaviour of unification in prolog in presence of arithmetic operators 12 ?- 3+4*5 = X+Y. X = 3, Y = 4*5. 13 ?- 3+4*5 = X...
behaviour of unification in prolog in presence of arithmetic operators behaviour of unification in prolog in presence of arithmetic operators unification prolog behaviour of unification in prolog in presence of arithmetic operators I was expecting Is there some "precedence" problem? I'm using the last swi-prolog releas...
[ 0.017578125, 0.00946044921875, 0.02294921875, 0.0081787109375, 0.0017242431640625, -0.0089111328125, 0.00848388671875, 0.0014801025390625, 0.0048828125, -0.01544189453125, -0.00148773193359375, 0.01904296875, 0.0064697265625, -0.02294921875, 0.00909423828125, -0.005523681640625, 0.00...
[ 224833, 51, 41274, 502, 4867, 169424, 8962, 282, 39933, 187, 9523, 509, 41206, 2685, 3060, 4692, 37534, 6620, 2967, 17368, 4568, 91, 2452, 3454, 54452 ]
[ 0.1766357421875, 0.151123046875, 0.1588134765625, 0.1387939453125, 0.2254638671875, 0.11376953125, 0.11041259765625, 0.01396942138671875, 0.1900634765625, 0.00618743896484375, 0.0089874267578125, 0.035247802734375, 0.09344482421875, 0.023590087890625, 0.00936126708984375, 0.08728027343...
embed
66462315_c0
66462315
prolog
0
Title: Fail to display input and output in prolog Problem title: Fail to display input and output in prolog Tags: prolog Problem: Fail to display input and output in prolog I'm a beginner at prolog Can someone help me with this? >go:- write('Name?'), read(Name), staff(Name, ID, Age), write('ID?'), read(ID), staff(Name,...
Fail to display input and output in prolog Fail to display input and output in prolog prolog Fail Name Age Fail to display input and output in prolog I'm a beginner at prolog Can someone help me with this? The ID prompt keep repeating Output
[ 0.025390625, -0.0020904541015625, 0.0015716552734375, 0.007476806640625, 0.001251220703125, 0.01361083984375, 0.021240234375, 0.0004444122314453125, -0.016845703125, -0.0174560546875, 0.015380859375, -0.00811767578125, -0.01904296875, -0.01220703125, 0.0245361328125, -0.001953125, 0....
[ 190355, 47, 44116, 107730, 136, 140992, 23, 502, 4867, 15757, 72944, 9842, 1679, 4358, 11338, 105876, 13695, 119140, 13538, 7077 ]
[ 0.1600341796875, 0.048095703125, 0.1610107421875, 0.2078857421875, 0.1263427734375, 0.2095947265625, 0.0596923828125, 0.1539306640625, 0.232177734375, 0.074951171875, 0.159423828125, 0.0029582977294921875, 0.0207672119140625, 0.031646728515625, 0.14013671875, 0.16259765625, 0.0665893...
embed
67185323_c1
67185323
prolog
1
936 _71082 _71074 _71220 Writting grammar in prolog and can't get it to work correctly This is for a class assignment, but I can't figure out how to fix my problem. I wrote the following: And I did a trace: I think it is obviously failing when sentence is called but it is getting a [[x, =, 1], end] which it can't handl...
936 _71082 _71074 _71220 Writting grammar in prolog and can't get it to work correctly This is for a class assignment, but I can't figure out how to fix my problem. I wrote the following: And I did a trace: I think it is obviously failing when sentence is called but it is getting a [[x, =, 1], end] which it can't handl...
[ 0.0169677734375, 0.003692626953125, 0.007598876953125, 0.0025482177734375, -0.026123046875, 0.0037994384765625, 0.0021820068359375, 0.00885009765625, 0.0004634857177734375, -0.0260009765625, 0.018798828125, 0.01153564453125, -0.00579833984375, -0.0196533203125, 0.0059814453125, -0.0021...
[ 483, 8659, 12012, 16360, 61107, 2783, 122092, 147, 23, 502, 4867, 831, 18, 2046, 442, 47, 4488, 26785, 18507, 95486, 26366, 30022, 2967, 54397, 25632, 144851, 5351, 171259, 35782, 214, 3229, 149357, 35839, 20949, 110558, 425, 2203, 106, 356...
[ 0.046112060546875, 0.0963134765625, 0.06158447265625, 0.01861572265625, 0.0701904296875, 0.041534423828125, 0.1514892578125, 0.1337890625, 0.004669189453125, 0.1820068359375, 0.252685546875, 0.0782470703125, 0.0858154296875, 0.044677734375, 0.0205841064453125, 0.071533203125, 0.09735...
embed
70790274_c1
70790274
prolog
1
: :-op(900, xfy, l). :-op(900, xfy, x). find_axioms(Specific, BaseSet, Fullfill) :- forall(member(X, Specific), (member(X, BaseSet) -> member(X, Fullfill))). But for some reason find_axioms([(peter l anna), (peter l peter)], [(A l A), (B l A) x (A l B)], Z). only gives output false and does not define the variables in ...
: :-op(900, xfy, l). :-op(900, xfy, x). find_axioms(Specific, BaseSet, Fullfill) :- forall(member(X, Specific), (member(X, BaseSet) -> member(X, Fullfill))). But for some reason find_axioms([(peter l anna), (peter l peter)], [(A l A), (B l A) x (A l B)], Z). only gives output false and does not define the variables in ...
[ 0.01080322265625, 0.006988525390625, -0.003814697265625, -0.000766754150390625, -0.0029449462890625, 0.002838134765625, 0.0020751953125, 0.023681640625, 0.0126953125, 0.01611328125, 0.02783203125, -0.001953125, 0.0380859375, -0.01025390625, -0.00127410888671875, 0.00286865234375, -0....
[ 15772, 2146, 20543, 1022, 18929, 96, 7413, 91095, 28016, 47107, 14486, 44978, 294, 126, 9312, 116115, 100, 5584, 27417, 209052, 247, 33079, 32786, 1542, 4966, 3060, 31635, 454, 5408, 56, 78656, 154643, 571, 62, 335, 567, 4734, 76199, 140992...
[ 0.1009521484375, 0.1849365234375, 0.2142333984375, 0.0523681640625, 0.1583251953125, 0.1064453125, 0.186279296875, 0.1724853515625, 0.2147216796875, 0.1519775390625, 0.1768798828125, 0.13720703125, 0.122314453125, 0.120849609375, 0.0897216796875, 0.1861572265625, 0.001861572265625, ...
embed
46258855_c0
46258855
prolog
0
Title: Deserializing 32 bit float in SWI-Prolog Problem title: Deserializing 32 bit float in SWI-Prolog Tags: swi-prolog, prolog Problem: Deserializing 32 bit float in SWI-Prolog Is there a way to convert a serialized float into a SWI-Prolog float, preferably without dropping into C (I'll do that if I have to)? I'm par...
Deserializing 32 bit float in SWI-Prolog Deserializing 32 bit float in SWI-Prolog swi-prolog prolog Deserializing SWI-Prolog Deserializing 32 bit float in SWI-Prolog Is there a way to convert a serialized float into a SWI-Prolog float, preferably without dropping into C (I'll do that if I have to)? I'm parsing a binary...
[ 0.0281982421875, 0.0145263671875, 0.0012969970703125, -0.01226806640625, -0.00007534027099609375, -0.011474609375, -0.00787353515625, 0.0166015625, -0.00494384765625, 0.01019287109375, 0.00823974609375, -0.01348876953125, -0.0019989013671875, 0.0074462890625, 0.00469970703125, -0.00119...
[ 262, 184, 51626, 84382, 2789, 4785, 21917, 257, 159, 38969, 9, 10752, 4867, 91, 2452, 3454, 502, 3917, 47, 96760, 35686, 29367, 3934, 10, 12601, 15490, 36069, 313, 2174, 366, 2394, 75973, 7285, 441, 91363, 129969, 188609, 9821, 5303, 201,...
[ 0.142578125, 0.10540771484375, 0.154052734375, 0.085205078125, 0.2442626953125, 0.1685791015625, 0.22314453125, 0.1455078125, 0.103759765625, 0.241455078125, 0.05731201171875, 0.1619873046875, 0.1876220703125, 0.019287109375, 0.1978759765625, 0.120849609375, 0.13134765625, 0.061920...
embed
34484933_c0
34484933
prolog
0
Title: What is the difference between abolish/1 and retractall/1? Problem title: What is the difference between abolish/1 and retractall/1? Tags: prolog, prolog-assert Problem: What is the difference between abolish/1 and retractall/1? From reading the manual, I can't seem to find the difference between the two. The ma...
What is the difference between abolish/1 and retractall/1? What is the difference between abolish/1 and retractall/1? prolog prolog-assert What What is the difference between abolish/1 and retractall/1? From reading the manual, I can't seem to find the difference between the two. The manual says: So I chose to use retr...
[ 0.00677490234375, -0.01507568359375, 0.00457763671875, 0.00762939453125, -0.0106201171875, 0.017578125, 0.00970458984375, 0.021728515625, -0.0004425048828125, 0.00060272216796875, 0.0084228515625, -0.0004100799560546875, -0.0111083984375, -0.01251220703125, 0.011962890625, -0.005615234...
[ 4865, 70, 60212, 17721, 63586, 15227, 11583, 136, 41499, 238, 91569, 502, 4867, 33657, 83, 23009, 6626, 4527, 1528, 32195 ]
[ 0.01190185546875, 0.061981201171875, 0.1893310546875, 0.09918212890625, 0.1676025390625, 0.1912841796875, 0.192138671875, 0.07806396484375, 0.1741943359375, 0.08154296875, 0.268798828125, 0.06396484375, 0.138671875, 0.1290283203125, 0.013427734375, 0.0897216796875, 0.081298828125, ...
embed
34226727_c0
34226727
prolog
0
Title: how to do Arithmetic Operations in DCG in prolog Problem title: how to do Arithmetic Operations in DCG in prolog Tags: prolog, operators, dcg, clpfd Problem: how to do Arithmetic Operations in DCG in prolog verb_phrase(X,P)--> trans_verb(X,X+1,P1), noun_phrase(X+1,P1,P). For the code above, if X=1, I will get (....
how to do Arithmetic Operations in DCG in prolog how to do Arithmetic Operations in DCG in prolog prolog operators dcg clpfd Arithmetic Operations DCG verb_phrase trans_verb noun_phrase how to do Arithmetic Operations in DCG in prolog For the code above, if X=1, I will get "..."means not important code. but I really wa...
[ 0.0024261474609375, 0.0028076171875, 0.00616455078125, 0.024658203125, 0.019775390625, 0.0133056640625, -0.00482177734375, 0.00154876708984375, 0.0155029296875, -0.035888671875, 0.0002841949462890625, -0.00665283203125, 0.00830078125, 0.022216796875, 0.0162353515625, 0.0084228515625, ...
[ 3642, 47, 54, 1172, 8962, 282, 9523, 102203, 7, 23, 391, 56367, 502, 4867, 39933, 104, 177, 71, 42792, 179665, 3900, 81465, 18151, 36917, 2174, 1193, 33000, 87, 1221, 2046, 7673, 10133, 959, 5526, 6183, 3444, 116, 64457, 111, 179898, 14...
[ 0.067626953125, 0.050018310546875, 0.092041015625, 0.0748291015625, 0.1805419921875, 0.1466064453125, 0.1302490234375, 0.2171630859375, 0.04376220703125, 0.05316162109375, 0.1285400390625, 0.237548828125, 0.1712646484375, 0.2288818359375, 0.2100830078125, 0.03887939453125, 0.07049560...
embed
8289361_c0
8289361
prolog
0
Title: Writing to file (Prolog) Problem title: Writing to file (Prolog) Tags: prolog Problem: Writing to file (Prolog) I've been trying to loop through a list and writing it to a file, why is the following not working? loop_through_list(List) :- member(Element, List), write(Element), write(' '), fail. write_list_to_fil...
Writing to file (Prolog) Writing to file (Prolog) prolog Writing Prolog loop_through_list List Element write_list_to_file Filename Writing to file (Prolog) I've been trying to loop through a list and writing it to a file, why is the following not working?
[ 0.007598876953125, -0.00177001953125, -0.0026702880859375, 0.0048828125, -0.0164794921875, -0.000762939453125, -0.0157470703125, 0.0037078857421875, -0.00567626953125, -0.00014591217041015625, 0.005523681640625, 0.010009765625, 0.005157470703125, -0.0004634857177734375, 0.01318359375, ...
[ 213185, 47, 11435, 10752, 4867, 502, 1250, 40956, 222521, 6562, 32036, 48325, 33022, 188, 29822, 42724, 11627, 31577, 8305, 5303, 32562, 15400, 25632, 959, 20697 ]
[ 0.214599609375, 0.160888671875, 0.193359375, 0.1116943359375, 0.2142333984375, 0.0938720703125, 0.1348876953125, 0.1470947265625, 0.1431884765625, 0.1995849609375, 0.1463623046875, 0.1387939453125, 0.1533203125, 0.1546630859375, 0.18017578125, 0.0740966796875, 0.06671142578125, 0.0...
embed
69273935_c0
69273935
prolog
0
Title: There is no Zero in Mathematics Digits Riddle Problem title: There is no Zero in Mathematics Digits Riddle Tags: prolog, clpfd Problem: There is no Zero in Mathematics Digits Riddle This gives me: ?- X is 10^10//81-1. X = 123456789. So the expression delivers a number with all non-zero digits. Is there another f...
There is no Zero in Mathematics Digits Riddle There is no Zero in Mathematics Digits Riddle prolog clpfd There Zero Mathematics Digits Riddle There is no Zero in Mathematics Digits Riddle This gives me: So the expression delivers a number with all non-zero digits. Is there another formula that delivers all digits, poss...
[ -0.0201416015625, 0.01092529296875, -0.017822265625, 0.00909423828125, -0.005340576171875, -0.013916015625, 0.006683349609375, -0.0030975341796875, -0.009033203125, -0.0185546875, -0.00051116943359375, 0.01348876953125, -0.0184326171875, 0.01312255859375, 0.021728515625, 0.007446289062...
[ 8622, 83, 110, 83947, 23, 123426, 47148, 51174, 933, 41231, 19298, 502, 4867, 33139, 39557, 71, 76199, 125195, 75060, 7, 14012, 678, 756, 351, 80510, 153939, 15700, 26168, 144681, 117, 561, 68034, 1556, 45234, 7413, 1250, 37352, 98553 ]
[ 0.09716796875, 0.0743408203125, 0.1529541015625, 0.271484375, 0.0789794921875, 0.10986328125, 0.13916015625, 0.1541748046875, 0.101318359375, 0.1368408203125, 0.1824951171875, 0.06866455078125, 0.197509765625, 0.00396728515625, 0.047271728515625, 0.076171875, 0.00238037109375, 0.19...
embed
27455034_c0
27455034
prolog
0
Title: Find max integer in a list in prolog Problem title: Find max integer in a list in prolog Tags: prolog, max Problem: Find max integer in a list in prolog I am trying to find the max number in a list. I know there are several solutions available online but I feel the best way to learn is to implement on my own. I ...
Find max integer in a list in prolog Find max integer in a list in prolog prolog max Find Res Res1 Find max integer in a list in prolog I am trying to find the max number in a list. I know there are several solutions available online but I feel the best way to learn is to implement on my own. I wrote the following code...
[ -0.0084228515625, 0.002532958984375, 0.0260009765625, 0.01251220703125, -0.0076904296875, 0.028564453125, -0.010009765625, 0.019775390625, 0.0057373046875, -0.031005859375, 0.0086669921875, -0.02490234375, -0.0026092529296875, 0.00531005859375, 0.024169921875, -0.01312255859375, 0.02...
[ 26040, 18389, 892, 1505, 23, 5303, 502, 4867, 9624, 418, 31577, 7413, 14012, 51347, 12319, 2965, 30698, 29479, 10002, 54397, 25632, 18151, 6275, 121742, 19048, 26366 ]
[ 0.1002197265625, 0.211181640625, 0.166748046875, 0.12451171875, 0.051177978515625, 0.1590576171875, 0.126953125, 0.196044921875, 0.1434326171875, 0.0828857421875, 0.03271484375, 0.0740966796875, 0.15283203125, 0.05718994140625, 0.039520263671875, 0.0118408203125, 0.0241851806640625, ...
embed
54816168_c0
54816168
prolog
0
Title: Simple Prolog predicate - statement is always evaluated as false Problem title: Simple Prolog predicate - statement is always evaluated as false Tags: prolog Problem: Simple Prolog predicate - statement is always evaluated as false I've just started Prolog and truly wonder why the following lines, specifically t...
Simple Prolog predicate - statement is always evaluated as false Simple Prolog predicate - statement is always evaluated as false prolog Simple Prolog Simple Prolog predicate - statement is always evaluated as false I've just started Prolog and truly wonder why the following lines, specifically the 'is' part, always pr...
[ 0.005645751953125, -0.00128936767578125, -0.01397705078125, -0.00830078125, -0.01519775390625, 0.010498046875, 0.0033111572265625, -0.040283203125, 0.01019287109375, -0.005645751953125, 0.004974365234375, 0.005401611328125, -0.016357421875, -0.003662109375, 0.01043701171875, 0.01385498...
[ 60552, 1250, 4867, 1653, 2063, 63805, 11343, 151575, 297, 237, 98320, 67, 502, 87607, 32195, 15400, 25632, 124519, 164, 2831, 27489, 167375, 1456, 13631, 35839, 34923 ]
[ 0.1575927734375, 0.130615234375, 0.2049560546875, 0.1094970703125, 0.152099609375, 0.20654296875, 0.1331787109375, 0.15380859375, 0.0232086181640625, 0.057769775390625, 0.2371826171875, 0.0214996337890625, 0.0797119140625, 0.01812744140625, 0.032562255859375, 0.050811767578125, 0.020...
embed
46701034_c0
46701034
prolog
0
Title: Check the predicates are distinct Problem title: Check the predicates are distinct Tags: prolog Problem: Check the predicates are distinct I have a SWI-Prolog code: class(c1, 'Vehicle'). class(c2, 'Car'). class(c3, 'Motorcycle'). class(c4, 'Company'). class(c5, 'RentalStation'). class(c6, 'Person'). I want to wr...
Check the predicates are distinct Check the predicates are distinct prolog Check Vehicle Car Motorcycle Company RentalStation Person Check the predicates are distinct I have a SWI-Prolog code: I want to write a rule to check that all predicates of class have the distinct name(the second parameter). How should I write t...
[ -0.005035400390625, -0.017333984375, -0.005706787109375, 0.004364013671875, 0.0034637451171875, 0.01373291015625, 0.01031494140625, 0.01416015625, 0.003509521484375, -0.022216796875, 0.00007486343383789062, -0.007049560546875, 0.009033203125, -0.01953125, -0.01385498046875, 0.032958984...
[ 38679, 70, 1653, 2063, 1636, 621, 117781, 502, 4867, 232362, 3980, 15366, 75457, 33734, 59023, 289, 22062, 15270, 159, 38969, 9, 10752, 18151, 3444, 33022, 79986, 12765, 450, 756, 18507, 765, 9351, 17932, 171859 ]
[ 0.1934814453125, 0.094970703125, 0.2115478515625, 0.233642578125, 0.15283203125, 0.126220703125, 0.256591796875, 0.1312255859375, 0.1812744140625, 0.161376953125, 0.0889892578125, 0.052581787109375, 0.0985107421875, 0.08502197265625, 0.115966796875, 0.030029296875, 0.0771484375, 0....
embed
58326751_c0
58326751
prolog
0
Title: How can I print a list recursively without use any built-in function in Prolog? Problem title: How can I print a list recursively without use any built-in function in Prolog? Tags: prolog Problem: How can I print a list recursively without use any built-in function in Prolog? I'm new to Prolog. I understand the ...
How can I print a list recursively without use any built-in function in Prolog? How can I print a list recursively without use any built-in function in Prolog? prolog How Prolog How can I print a list recursively without use any built-in function in Prolog? I'm new to Prolog. I understand the fundamental recursion in P...
[ -0.004119873046875, 0.018798828125, 0.00872802734375, 0.0130615234375, -0.007232666015625, 0.0162353515625, -0.0157470703125, -0.00103759765625, -0.000946044921875, -0.00188446044921875, 0.01214599609375, -0.045654296875, -0.00994873046875, -0.003143310546875, 0.007080078125, -0.009277...
[ 11249, 831, 28412, 5303, 195625, 5844, 538, 15490, 4527, 88303, 73, 32354, 1250, 4867, 502, 87, 2499, 20531, 1830, 114689, 71, 32786, 3642, 17368, 4358 ]
[ 0.0167694091796875, 0.037567138671875, 0.19677734375, 0.2103271484375, 0.196533203125, 0.1407470703125, 0.0233154296875, 0.10614013671875, 0.04705810546875, 0.0836181640625, 0.06219482421875, 0.1231689453125, 0.1480712890625, 0.224609375, 0.051483154296875, 0.0013427734375, 0.0071411...
embed
10404956_c0
10404956
prolog
0
Title: How to predicate all pairs in a given list in Prolog? Problem title: How to predicate all pairs in a given list in Prolog? Tags: prolog, list, combinations Problem: How to predicate all pairs in a given list in Prolog? When given a list I would like to compute all the possible combinations of pairs in the list. ...
How to predicate all pairs in a given list in Prolog? How to predicate all pairs in a given list in Prolog? prolog list combinations How Prolog How to predicate all pairs in a given list in Prolog? When given a list I would like to compute all the possible combinations of pairs in the list. e.g 2) input is a list (a,b,...
[ -0.0157470703125, 0.0113525390625, 0.00433349609375, 0.028564453125, -0.000579833984375, 0.041259765625, -0.0147705078125, -0.003509521484375, -0.0045166015625, -0.0240478515625, 0.004058837890625, -0.005340576171875, 0.00860595703125, -0.01409912109375, -0.0159912109375, 0.01733398437...
[ 11249, 47, 1653, 2063, 67, 756, 80836, 7, 23, 34475, 5303, 1250, 4867, 502, 162515, 1884, 9969, 6743, 7722, 4958, 107730, 275, 113054, 71 ]
[ 0.0963134765625, 0.04376220703125, 0.19140625, 0.209716796875, 0.09722900390625, 0.154052734375, 0.2337646484375, 0.11083984375, 0.065673828125, 0.0777587890625, 0.1849365234375, 0.1644287109375, 0.2283935546875, 0.11865234375, 0.188720703125, 0.04815673828125, 0.0733642578125, 0.0...
embed
13279503_c0
13279503
prolog
0
Title: Find the Keys in a Prolog Pairs List Problem title: Find the Keys in a Prolog Pairs List Tags: prolog, lambda Problem: Find the Keys in a Prolog Pairs List I currently have a list of (Key,Value) pairs and I want to pull out all the keys to use in another function. Such that I have a list called PairsList and I w...
Find the Keys in a Prolog Pairs List Find the Keys in a Prolog Pairs List prolog lambda Find Keys Prolog Pairs List PairsList Key Find the Keys in a Prolog Pairs List I currently have a list of (Key,Value) pairs and I want to pull out all the keys to use in another function. Such that I have a list called and I want to...
[ 0.01275634765625, 0.0081787109375, 0.01806640625, -0.02001953125, -0.02880859375, 0.0091552734375, 0.00168609619140625, 0.00171661376953125, -0.00732421875, -0.015869140625, 0.0322265625, -0.004302978515625, -0.005218505859375, -0.00482177734375, 0.0050048828125, 0.0034027099609375, ...
[ 26040, 70, 26824, 7, 23, 1250, 4867, 37897, 4295, 32036, 502, 6492, 85, 154663, 10, 82424, 5303, 162429, 856, 50770, 80836, 3444, 47, 50065, 1810, 756, 22799, 4527, 15700, 32354, 35839, 37842, 104250, 6002, 86531, 18499, 4358 ]
[ 0.10284423828125, 0.04180908203125, 0.228759765625, 0.1044921875, 0.082763671875, 0.1552734375, 0.2305908203125, 0.18896484375, 0.126953125, 0.1895751953125, 0.1119384765625, 0.1229248046875, 0.0751953125, 0.10626220703125, 0.00274658203125, 0.0167999267578125, 0.1571044921875, 0.1...
embed
52742229_c2
52742229
prolog
2
Max, find_leaves, Results, Calculate, calc_dist, Element, Rest, MaxRest, Root, Leaves, two_deepest, EMax1, Depth1, Distances, nth1, Index, nth0, conjunto_travagem, conjunto_transmissao, conjunto_selim, tubo_superior, tubo_diagonal, tubo_selim, escora_diagonal, escora_horizontal, forqueta_frontal, aperto_rapido, travao...
Max, find_leaves, Results, Calculate, calc_dist, Element, Rest, MaxRest, Root, Leaves, two_deepest, EMax1, Depth1, Distances, nth1, Index, nth0, conjunto_travagem, conjunto_transmissao, conjunto_selim, tubo_superior, tubo_diagonal, tubo_selim, escora_diagonal, escora_horizontal, forqueta_frontal, aperto_rapido, travao...
[ 0.0172119140625, -0.00738525390625, -0.01092529296875, 0.0380859375, 0.031494140625, 0.007537841796875, 0.0031585693359375, -0.031494140625, 0.02099609375, -0.02294921875, 0.01104736328125, -0.0244140625, 0.0034027099609375, -0.0111083984375, 0.0023040771484375, -0.01202392578125, 0....
[ 9920, 4, 7413, 454, 14507, 3132, 146104, 212467, 2182, 6510, 238, 46295, 48325, 49756, 1052, 525, 150948, 64819, 7, 6626, 123041, 241, 71346, 418, 262, 254, 927, 154349, 5170, 653, 31471, 2389, 48259, 1517, 330, 14716, 30145, 66216, 31, 4...
[ 0.25390625, 0.116943359375, 0.2130126953125, 0.0232391357421875, 0.2607421875, 0.2474365234375, 0.2470703125, 0.23095703125, 0.1800537109375, 0.1502685546875, 0.1319580078125, 0.20458984375, 0.2393798828125, 0.236328125, 0.1234130859375, 0.20263671875, 0.23779296875, 0.304931640625...
embed
74728945_c1
74728945
prolog
1
c,_A),true,attach2(Xc,_A),true), Ycc = attach2:(true,attach2(_B,Yc),true,attach2(_B,Yc),true), XYc = _C+_D, XYcc = attach2:attach2(_C,_D), attach2(X,Y) ? ; no My conclusion from this: copy_term/3 collects goals from attribute_goal/2 and if it encounters more than one attributed variable, then it removes trivial true an...
c,_A),true,attach2(Xc,_A),true), Ycc = attach2:(true,attach2(_B,Yc),true,attach2(_B,Yc),true), XYc = _C+_D, XYcc = attach2:attach2(_C,_D), attach2(X,Y) ? ; no My conclusion from this: copy_term/3 collects goals from attribute_goal/2 and if it encounters more than one attributed variable, then it removes trivial true an...
[ -0.0118408203125, 0.02294921875, -0.0069580078125, 0.017578125, -0.0091552734375, -0.00921630859375, 0.004364013671875, 0.00738525390625, 0.006744384765625, -0.015869140625, 0.0245361328125, 0.01397705078125, -0.0123291015625, 0.0208740234375, 0.003326416015625, -0.0002918243408203125,...
[ 501, 284, 9774, 13, 257, 52438, 304, 1542, 238, 990, 10060, 243, 934, 571, 1723, 143907, 441, 1328, 397, 110, 93192, 43658, 32166, 18113, 43799, 109458, 1295, 150380, 519, 289, 12477, 2174, 190647, 1286, 1632, 77336, 87388, 1927, 686, 295...
[ 0.052978515625, 0.06536865234375, 0.155517578125, 0.035003662109375, 0.04266357421875, 0.2047119140625, 0.1380615234375, 0.05474853515625, 0.111083984375, 0.0760498046875, 0.173583984375, 0.1258544921875, 0.216064453125, 0.016693115234375, 0.10400390625, 0.1112060546875, 0.0236053466...
embed
14906580_c1
14906580
prolog
1
how to go about on this... sorry for my english. regards, Solved. You can check while you visit the list, and save just elements that fits: local_maximum([X,Y,Z|Xs], [Y|Ms]) :- Y>X, Y>Z, local_maximum([Z|Xs], Ms). then add the skip and the base case rules. The way you write the skip case will influence the rule above,...
how to go about on this... sorry for my english. regards, Solved. You can check while you visit the list, and save just elements that fits: local_maximum([X,Y,Z|Xs], [Y|Ms]) :- Y>X, Y>Z, local_maximum([Z|Xs], Ms). then add the skip and the base case rules. The way you write the skip case will influence the rule above,...
[ -0.01214599609375, 0.039306640625, 0.015869140625, 0.0172119140625, -0.013671875, 0.01092529296875, -0.021728515625, -0.00762939453125, 0.04345703125, -0.012939453125, 0.00750732421875, -0.00567626953125, -0.004425048828125, 0.007080078125, 0.0234375, 0.023681640625, -0.0008964538574...
[ 3642, 47, 738, 1672, 98, 903, 59090, 175457, 28601, 6678, 4126, 831, 12765, 12960, 19922, 70, 5303, 4, 136, 30098, 1660, 80854, 450, 11177, 7, 4000, 192, 53950, 316, 132, 1542, 1723, 1511, 594, 15772, 990, 70802, 15190, 21658, 3647, 722...
[ 0.073486328125, 0.0498046875, 0.057830810546875, 0.181396484375, 0.14599609375, 0.14453125, 0.0618896484375, 0.041595458984375, 0.0204925537109375, 0.0908203125, 0.1087646484375, 0.06903076171875, 0.1800537109375, 0.02777099609375, 0.1165771484375, 0.035858154296875, 0.2177734375, ...
embed
15733986_c1
15733986
prolog
1
_in_house(A). detest(A) :- \+ take_to_me(A). avoid(A) :- animal(A), detest(A). Now first I'm not sure what taking to me actually means. Second, if I query Prolog: ?- avoid(A) unifies with A = kangoroo which is the correct answer, but I find it strange that the take_to_me and can_kill_mice predicates are not used to get...
_in_house(A). detest(A) :- \+ take_to_me(A). avoid(A) :- animal(A), detest(A). Now first I'm not sure what taking to me actually means. Second, if I query Prolog: ?- avoid(A) unifies with A = kangoroo which is the correct answer, but I find it strange that the take_to_me and can_kill_mice predicates are not used to get...
[ -0.00151824951171875, -0.0022125244140625, 0.023193359375, -0.0026702880859375, -0.017822265625, -0.005096435546875, 0.005126953125, 0.0205078125, 0.01300048828125, -0.044677734375, 0.004058837890625, 0.01214599609375, 0.0123291015625, 0.017822265625, 0.022705078125, 0.007171630859375,...
[ 73, 23923, 284, 194, 8, 6954, 1328, 5646, 188, 282, 71864, 26249, 9077, 2367, 35971, 47, 163, 20653, 26950, 41, 1294, 1250, 4867, 132, 51, 27430, 678, 62, 5854, 12393, 31, 26785, 114453, 831, 119261, 266, 329, 1653, 2063, 1636, 959, 1...
[ 0.1981201171875, 0.1785888671875, 0.1343994140625, 0.000457763671875, 0.15185546875, 0.26611328125, 0.043609619140625, 0.21044921875, 0.27587890625, 0.2005615234375, 0.26318359375, 0.1630859375, 0.031036376953125, 0.022125244140625, 0.263916015625, 0.31201171875, 0.2490234375, 0.00...
embed
29230608_c0
29230608
prolog
0
Title: swi-prolog print multiple variables Problem title: swi-prolog print multiple variables Tags: prolog Problem: swi-prolog print multiple variables I want to print multiple variables in swi-prolog, currently I am writing in this way: writeln('child link : '), writeln(LINK_CHILD), writeln('rule - four'), writeln(REN...
swi-prolog print multiple variables swi-prolog print multiple variables prolog LINK_CHILD REND_PARENTI REND_CHILDI swi-prolog print multiple variables I want to print multiple variables in swi-prolog, currently I am writing in this way: so every variable gets printed on new line, I could not figure out way to print the...
[ -0.001953125, -0.00016498565673828125, -0.011474609375, 0.00799560546875, -0.03125, 0.0152587890625, -0.0093994140625, 0.00848388671875, -0.0003299713134765625, -0.0235595703125, -0.00634765625, -0.022705078125, 0.0076904296875, 0.000370025634765625, -0.00238037109375, -0.0030822753906...
[ 91, 2452, 3454, 4867, 28412, 48716, 77336, 9, 502, 96787, 50620, 30693, 627, 39015, 60436, 109893, 16999, 213914, 3444, 82424, 32562, 11907, 98, 3525, 13315, 26366, 2856, 11001, 77947, 4358 ]
[ 0.04473876953125, 0.2030029296875, 0.14111328125, 0.228515625, 0.224853515625, 0.212890625, 0.27978515625, 0.0156707763671875, 0.1295166015625, 0.172119140625, 0.112548828125, 0.135009765625, 0.01025390625, 0.0902099609375, 0.1019287109375, 0.125732421875, 0.0460205078125, 0.177490...
embed
65435971_c0
65435971
prolog
0
Title: Increase stack size in runtime in Swi-prolog Problem title: Increase stack size in runtime in Swi-prolog Tags: prolog, stack-size, swi-prolog Problem: Increase stack size in runtime in Swi-prolog I used set_prolog_flag(stack_limit, 5000000000). in my code. But then i got the following error: ERROR: No permission...
Increase stack size in runtime in Swi-prolog Increase stack size in runtime in Swi-prolog prolog stack-size swi-prolog Increase Swi-prolog set_prolog_flag stack_limit ERROR Increase stack size in runtime in Swi-prolog I used set_prolog_flag(stack_limit, 5000000000). in my code. But then i got the following error: ERROR...
[ 0.0028076171875, 0.010009765625, 0.0279541015625, -0.000484466552734375, 0.00140380859375, -0.02294921875, -0.02587890625, 0.017822265625, -0.0034027099609375, -0.02880859375, 0.02587890625, -0.0026397705078125, -0.0167236328125, -0.002227783203125, 0.04296875, 0.0140380859375, 0.026...
[ 8942, 1283, 177261, 13267, 11675, 6032, 105432, 3454, 4867, 502, 62539, 91, 2452, 5423, 190872, 93343, 151206, 9, 590, 2594, 19692, 197094, 18151, 18499, 24638, 438, 168081, 2811, 40383, 201939, 50491, 3509, 12477, 117, 21150, 29806 ]
[ 0.0738525390625, 0.13916015625, 0.2362060546875, 0.19384765625, 0.0894775390625, 0.1470947265625, 0.211669921875, 0.1142578125, 0.1982421875, 0.101318359375, 0.1524658203125, 0.007965087890625, 0.1910400390625, 0.07745361328125, 0.191162109375, 0.1756591796875, 0.09661865234375, 0....
embed
66394746_c0
66394746
prolog
0
Title: How to I get the outputlist in Prolog? Problem title: How to I get the outputlist in Prolog? Tags: prolog Problem: How to I get the outputlist in Prolog? I want to merge two ordered lists and I think I'm doing the right thing but how do I output the List L? ?merge([1,3,4],[2,5,6],L). merge([],[],_):-!. merge([X|...
How to I get the outputlist in Prolog? How to I get the outputlist in Prolog? prolog How Prolog How to I get the outputlist in Prolog? I want to merge two ordered lists and I think I'm doing the right thing but how do I output the List L?
[ 0.01806640625, 0.0167236328125, 0.00811767578125, -0.0111083984375, -0.0084228515625, 0.0147705078125, -0.0125732421875, -0.00830078125, 0.000972747802734375, 0.00811767578125, 0.0091552734375, 0.0017852783203125, 0.00433349609375, 0.003143310546875, 0.016357421875, 0.010498046875, -...
[ 11249, 2046, 140992, 6562, 1250, 4867, 70, 23, 502, 47, 87, 42564, 6626, 12989, 5303, 5351, 3642, 32036, 339 ]
[ 0.041107177734375, 0.090576171875, 0.2139892578125, 0.2265625, 0.1495361328125, 0.2236328125, 0.0272674560546875, 0.0321044921875, 0.08203125, 0.0268707275390625, 0.010406494140625, 0.13330078125, 0.0168304443359375, 0.1063232421875, 0.126220703125, 0.01364898681640625, 0.01611328125...
embed
69888279_c0
69888279
prolog
0
Title: print_term writing to a file in PROLOG Problem title: print_term writing to a file in PROLOG Tags: prolog Problem: print_term writing to a file in PROLOG In this mcve] test :- tell('junk.txt'), print_term( examples([this,is,a,really,long,example,list], [made,of,lists,atoms,and,including,terms(involving,parenthes...
print_term writing to a file in PROLOG print_term writing to a file in PROLOG prolog print_term PROLOG junk.txt print_term writing to a file in PROLOG In this mcve] SWI-PROLOG does print the term to the screen neatly in the print_term way, but won't print it to the file. How do I redirect the output?
[ 0.025146484375, 0.0211181640625, 0.006744384765625, 0.0111083984375, -0.020263671875, -0.00634765625, -0.0169677734375, -0.00131988525390625, -0.0166015625, -0.0037994384765625, 0.01055908203125, 0.0108642578125, -0.000453948974609375, 0.0029144287109375, 0.00689697265625, 0.0012283325...
[ 28412, 32166, 32562, 47, 11435, 10514, 47510, 502, 4867, 34002, 124326, 272, 159, 38969, 47970, 13579, 49119, 22021, 454, 3917, 1284, 23742, 18, 442, 456, 80581, 140992 ]
[ 0.21533203125, 0.254150390625, 0.2210693359375, 0.10400390625, 0.19287109375, 0.207763671875, 0.26220703125, 0.12060546875, 0.1708984375, 0.273681640625, 0.1995849609375, 0.1077880859375, 0.0380859375, 0.1812744140625, 0.1558837890625, 0.205322265625, 0.1131591796875, 0.05072021484...
embed
19101379_c0
19101379
prolog
0
Title: Prolog insert element after first occurrence Problem title: Prolog insert element after first occurrence Tags: prolog, list Problem: Prolog insert element after first occurrence How I can add an element E right after the first occurrence of X in list Xs ? Example: ?- insert_right_behind(5,10,[2,4,10,12],Xs). Xs ...
Prolog insert element after first occurrence Prolog insert element after first occurrence prolog list Prolog insert_right_behind Prolog insert element after first occurrence How I can add an element E right after the first occurrence of X in list Xs ? Example: At this moment, I have problems understanding the recursion...
[ 0.001739501953125, 0.01123046875, 0.0198974609375, 0.0203857421875, 0.0062255859375, 0.03076171875, -0.0135498046875, -0.002838134765625, 0.0172119140625, -0.054443359375, 0.021728515625, -0.015625, 0.00112152099609375, -0.0174560546875, 0.01708984375, 0.01177978515625, 0.00543212890...
[ 1250, 4867, 183540, 12830, 7103, 5117, 74918, 42, 502, 5303, 54969, 372, 55380, 11249, 87, 831, 15190, 241, 7108, 6620, 1193, 23, 7, 89536, 100094, 195625, 1830, 46876, 129745 ]
[ 0.1505126953125, 0.24462890625, 0.241943359375, 0.200439453125, 0.160400390625, 0.112060546875, 0.129638671875, 0.10064697265625, 0.10015869140625, 0.1846923828125, 0.0947265625, 0.027984619140625, 0.143798828125, 0.0243072509765625, 0.0221710205078125, 0.07135009765625, 0.1866455078...
embed
56939870_c0
56939870
prolog
0
Title: Prolog- procedure "?-A" does not exist Problem title: Prolog- procedure "?-A" does not exist Tags: prolog Problem: Prolog- procedure "?-A" does not exist I'm trying to get familiar with Prolog and running a very, very simple program. father(tom, john). father(jerry, john). sibling(A, B) :-fat...
Prolog- procedure "?-A" does not exist Prolog- procedure "?-A" does not exist prolog Prolog Prolog- procedure "?-A" does not exist I'm trying to get familiar with Prolog and running a very, very simple program. When I run ?- sibling(tom,jerry) I expect True, but am receiving Procedure "?-A" does not...
[ 0.03271484375, 0.010986328125, -0.003326416015625, 0.0098876953125, -0.047119140625, 0.01416015625, -0.00238037109375, 0.006591796875, -0.015625, -0.017578125, 0.01373291015625, -0.00408935546875, -0.007080078125, -0.002532958984375, 0.01287841796875, -0.006134033203125, 0.0108642578...
[ 1250, 4867, 9, 50491, 41502, 32, 284, 1230, 14602, 959, 32316, 502, 31577, 16031, 51042, 4552, 8781, 1528, 11675, 705, 78, 79298, 5928, 4227, 1294, 41206, 87599, 1284, 217063, 170470, 13, 6002, 102, 18499, 41 ]
[ 0.1954345703125, 0.315185546875, 0.1390380859375, 0.265380859375, 0.057464599609375, 0.1451416015625, 0.20947265625, 0.0860595703125, 0.092529296875, 0.1571044921875, 0.2412109375, 0.1591796875, 0.010589599609375, 0.04803466796875, 0.05889892578125, 0.004486083984375, 0.0577392578125...
embed
50531913_c0
50531913
prolog
0
Title: Prolog How to skip a fact Problem title: Prolog How to skip a fact Tags: prolog, backtracking Problem: Prolog How to skip a fact As the title says how can I accomplish this? I have this knowledge base person(alice). person(mark). person(sally). likes(alice,coke). likes(alice,fanta). likes(alice,sprite). likes(ma...
Prolog How to skip a fact Prolog How to skip a fact prolog backtracking Prolog How Prolog How to skip a fact As the title says how can I accomplish this? I have this knowledge base And I want to output every drink that alice likes that is not fanta.Can someone explain how to achieve it and why it's done that way?
[ 0.01904296875, 0.021728515625, 0.01025390625, 0.027587890625, -0.0152587890625, -0.002227783203125, 0.0162353515625, 0.0162353515625, -0.0034332275390625, -0.017578125, -0.0091552734375, 0.01275634765625, -0.0191650390625, 0.0172119140625, -0.00213623046875, -0.0036468505859375, 0.01...
[ 1250, 4867, 11249, 47, 21658, 10, 15824, 502, 4420, 125728, 214, 3642, 831, 163846, 903, 51359, 3647, 3444, 140992, 11907, 23417, 13348, 1884, 83, 959, 1207, 102, 73342, 69307, 15400 ]
[ 0.176025390625, 0.264892578125, 0.0654296875, 0.067138671875, 0.2457275390625, 0.1268310546875, 0.2437744140625, 0.11865234375, 0.11224365234375, 0.2237548828125, 0.03564453125, 0.07257080078125, 0.059600830078125, 0.1339111328125, 0.0565185546875, 0.050689697265625, 0.060791015625, ...
embed
60858019_c0
60858019
prolog
0
Title: How to split a list into two lists and find the length of them? Problem title: How to split a list into two lists and find the length of them? Tags: prolog, list Problem: How to split a list into two lists and find the length of them? I'm trying to find the length of odd and even list after splitting them.. I tr...
How to split a list into two lists and find the length of them? How to split a list into two lists and find the length of them? prolog list How How to split a list into two lists and find the length of them? I'm trying to find the length of odd and even list after splitting them.. I tried to create size function and ca...
[ -0.005035400390625, 0.022705078125, 0.0091552734375, -0.00113677978515625, -0.021240234375, 0.0024566650390625, -0.000020503997802734375, 0.022216796875, 0.02099609375, -0.01116943359375, 0.01324462890625, -0.007049560546875, -0.003448486328125, 0.005523681640625, 0.022216796875, 0.000...
[ 11249, 47, 65450, 10, 5303, 3934, 6626, 7413, 70, 140909, 111, 2856, 502, 4867, 136, 31577, 70270, 3853, 7103, 1916, 13267, 32354, 11782, 46132, 4488 ]
[ 0.059906005859375, 0.033721923828125, 0.223876953125, 0.038177490234375, 0.22509765625, 0.14697265625, 0.168212890625, 0.1263427734375, 0.054595947265625, 0.2030029296875, 0.1265869140625, 0.05340576171875, 0.117919921875, 0.184814453125, 0.027801513671875, 0.0213470458984375, 0.1674...
embed
26706206_c0
26706206
prolog
0
Title: Prolog: how to check if a word is contained in a list Problem title: Prolog: how to check if a word is contained in a list Tags: prolog, list Problem: Prolog: how to check if a word is contained in a list Let's say I have these rules: rule([a,t,e],[8]). rule([f,o,r],[4]). I have to check if in a word (for exampl...
Prolog: how to check if a word is contained in a list Prolog: how to check if a word is contained in a list prolog list Prolog Prolog: how to check if a word is contained in a list Let's say I have these rules: I have to check if in a word (for example [f,o,r,t,r,e,s,s] ) there is a word that is in the list of rules an...
[ -0.0024566650390625, 0.004791259765625, 0.0033111572265625, 0.01708984375, -0.00726318359375, 0.0184326171875, -0.0081787109375, 0.0260009765625, 0.01025390625, -0.0244140625, -0.00011157989501953125, -0.003875732421875, -0.015869140625, -0.00970458984375, 0.00115966796875, 0.020507812...
[ 1250, 4867, 3642, 47, 12765, 2174, 2565, 83, 70541, 297, 23, 5303, 10, 502, 91736, 420, 31, 42, 87388, 91995, 14012, 33636, 24209, 617, 13, 25647 ]
[ 0.111572265625, 0.1956787109375, 0.058685302734375, 0.0665283203125, 0.2353515625, 0.10369873046875, 0.2110595703125, 0.060302734375, 0.2349853515625, 0.0975341796875, 0.102294921875, 0.226318359375, 0.0266876220703125, 0.102783203125, 0.1754150390625, 0.0721435546875, 0.056427001953...
embed
19894125_c1
19894125
prolog
1
could only get the one result(and I know this is because of cut operator.). What I want is the result that like this: ?- hasproperty(penguin, X, Y). X = travel, Y = walk. X = color, Y = brown. X = covering, Y = feathers. In this result, lower level classes' properties, travel and covering override those of upper level...
could only get the one result(and I know this is because of cut operator.). What I want is the result that like this: ?- hasproperty(penguin, X, Y). X = travel, Y = walk. X = color, Y = brown. X = covering, Y = feathers. In this result, lower level classes' properties, travel and covering override those of upper level...
[ 0.017333984375, 0.0111083984375, 0.0194091796875, 0.01483154296875, 0.004638671875, -0.00063323974609375, 0.01055908203125, -0.00970458984375, 0.01470947265625, -0.023681640625, -0.005096435546875, 0.007080078125, 0.00299072265625, -0.0115966796875, -0.01806640625, 0.0023651123046875, ...
[ 5809, 4734, 2046, 1632, 16750, 3714, 59226, 39933, 4865, 87, 3444, 83, 70, 450, 1884, 903, 705, 9, 1556, 36290, 56, 939, 2278, 66544, 1193, 990, 2203, 26983, 35691, 10576, 119455, 29256, 214, 3820, 10519, 1314, 4, 92319, 17366, 61112, 1...
[ 0.065673828125, 0.0789794921875, 0.089111328125, 0.12646484375, 0.23388671875, 0.025238037109375, 0.1812744140625, 0.2188720703125, 0.0704345703125, 0.03515625, 0.1728515625, 0.030181884765625, 0.06878662109375, 0.0264739990234375, 0.111328125, 0.045379638671875, 0.09161376953125, ...
embed
65462339_c0
65462339
prolog
0
Title: DCG encoding facts with lambdas in old Prologs? Problem title: DCG encoding facts with lambdas in old Prologs? Tags: prolog, dcg Problem: DCG encoding facts with lambdas in old Prologs? Having the rule : nx(X^dog(X)) --> [dog]. In old books the query for the above fact is : ?- nx(X^R). but now I have to use : ?-...
DCG encoding facts with lambdas in old Prologs? DCG encoding facts with lambdas in old Prologs? prolog dcg DCG Prologs DCG encoding facts with lambdas in old Prologs? Having the rule : In old books the query for the above fact is : but now I have to use : because it is encoded as : how was it encoded before that it did...
[ 0.03271484375, 0.009765625, 0.00396728515625, 0.003204345703125, 0.003692626953125, 0.0107421875, 0.01190185546875, -0.0037384033203125, 0.000579833984375, -0.041015625, -0.011474609375, -0.0218505859375, -0.006683349609375, -0.007476806640625, 0.0108642578125, 0.00830078125, -0.0166...
[ 391, 56367, 22, 587, 6238, 15824, 7, 678, 21, 6492, 1124, 10332, 1250, 4867, 502, 104, 238, 177, 171855, 79986, 360, 42840, 41, 1294, 100, 36917, 83, 1284, 5036, 765, 47, 4527, 152, 6637, 442, 40899, 237, 3642, 509, 8108, 18, 3871, ...
[ 0.0693359375, 0.22021484375, 0.121826171875, 0.1923828125, 0.05694580078125, 0.189453125, 0.054290771484375, 0.07342529296875, 0.0305938720703125, 0.1890869140625, 0.158203125, 0.1201171875, 0.1201171875, 0.1964111328125, 0.07037353515625, 0.01348876953125, 0.0239410400390625, 0.05...
embed
42513347_c0
42513347
prolog
0
Title: Find a specific argument in Prolog predicate Problem title: Find a specific argument in Prolog predicate Tags: prolog Problem: Find a specific argument in Prolog predicate If I have a predicate like that some_predicate('12','Jon Doe', 'Unknown town'). Is it possible to get for example the 3rd arguments ? I'm thi...
Find a specific argument in Prolog predicate Find a specific argument in Prolog predicate prolog Find Prolog some_predicate Jon Doe Unknown nth_arg Predicate Nth Argument Find a specific argument in Prolog predicate If I have a predicate like that Is it possible to get for example the 3rd arguments ? I'm thinking of a ...
[ 0.00482177734375, 0.002105712890625, 0.00665283203125, -0.010009765625, 0.00640869140625, 0.025634765625, 0.0174560546875, 0.0142822265625, 0.0004520416259765625, -0.035888671875, 0.01708984375, -0.041259765625, -0.0107421875, -0.006927490234375, 0.000919342041015625, -0.00057220458984...
[ 26040, 29458, 10750, 23, 1250, 4867, 1653, 2063, 67, 502, 3060, 19714, 21240, 984, 13, 69723, 653, 927, 61477, 7145, 541, 112140, 1884, 7722, 2046, 27781, 138, 4216, 47644, 79986, 5809, 59121, 1328, 19273, 18601, 839, 7614, 1234, 32316 ]
[ 0.12158203125, 0.21240234375, 0.29833984375, 0.04754638671875, 0.156982421875, 0.237548828125, 0.142822265625, 0.1922607421875, 0.072509765625, 0.0975341796875, 0.05096435546875, 0.156494140625, 0.056243896484375, 0.043792724609375, 0.0628662109375, 0.06976318359375, 0.05630493164062...
embed
17068007_c0
17068007
prolog
0
Title: PROLOG: Operator what is "-->" Problem title: PROLOG: Operator what is "-->" Tags: prolog, operators, dcg Problem: PROLOG: Operator what is "-->" i am quite new to prolog and i'd like an explanation about something if possible. What exactly does the "-->" prolog operator do? i can't see...
PROLOG: Operator what is "-->" PROLOG: Operator what is "-->" prolog operators dcg PROLOG Operator PROLOG: Operator what is "-->" i am quite new to prolog and i'd like an explanation about something if possible. What exactly does the prolog operator do? i can't seem to find an easy straight an...
[ 0.047119140625, -0.00115966796875, 0.0194091796875, 0.0233154296875, 0.01055908203125, 0.02001953125, 0.0059814453125, 0.00154876708984375, 0.01080322265625, -0.0264892578125, -0.0079345703125, -0.0225830078125, -0.007354736328125, -0.00665283203125, -0.0133056640625, 0.0101318359375, ...
[ 10514, 47510, 12, 150922, 2367, 83, 619, 41502, 9, 5386, 502, 4867, 39933, 7, 104, 238, 177, 152745, 3525, 1884, 187136, 4865, 66161, 14602, 70, 54, 35166, 60212, 17721, 136, 903, 129745 ]
[ 0.1597900390625, 0.24462890625, 0.06134033203125, 0.307861328125, 0.06298828125, 0.094970703125, 0.002655029296875, 0.0723876953125, 0.0211639404296875, 0.057159423828125, 0.171630859375, 0.246337890625, 0.292724609375, 0.003387451171875, 0.0311279296875, 0.032012939453125, 0.0979003...
embed
59011641_c0
59011641
prolog
0
Title: Do not know how to say male(X) not equal to female(X) Problem title: Do not know how to say male(X) not equal to female(X) Tags: prolog Problem: Do not know how to say male(X) not equal to female(X) I have the following code in prolog. male(X). female(X). child(X,Y). mother(X,Y) :- female(X), child(Y,X). this co...
Do not know how to say male(X) not equal to female(X) Do not know how to say male(X) not equal to female(X) prolog Do not know how to say male(X) not equal to female(X) I have the following code in prolog. this code outputs yes even when I test it as male(X), mother(X,Y). I don't how should I code male(X) is not equal ...
[ 0.00494384765625, 0.000514984130859375, 0.0159912109375, -0.006134033203125, -0.009521484375, 0.0281982421875, 0.009033203125, -0.01031494140625, -0.0069580078125, -0.026123046875, -0.0023193359375, -0.033203125, 0.0081787109375, 0.00848388671875, 0.03125, 0.01318359375, -0.006195068...
[ 959, 3714, 3642, 5154, 11280, 1542, 105950, 47, 117776, 502, 4867, 25632, 18151, 140992, 72272, 3034, 237, 42732, 1723, 2301, 5608, 83, 23, 903, 37842, 711, 997, 49100, 29041, 22027, 18, 4488 ]
[ 0.1717529296875, 0.099365234375, 0.059112548828125, 0.1260986328125, 0.24072265625, 0.17041015625, 0.183837890625, 0.09228515625, 0.220703125, 0.123291015625, 0.1673583984375, 0.04705810546875, 0.170166015625, 0.0849609375, 0.1290283203125, 0.115478515625, 0.00958251953125, 0.13854...
embed
73083073_c2
73083073
prolog
2
main 2>/dev/null|sort -u where the warning is Code signals: How, dark_eyes, pretty_face, bleached_a, adriana_chechik, alysa_gap, anna_de_ville, aurora_jolie, autumn_falls, casey_calvert, dahlia_sky, dominica_lito, ella_knox, holly_hendrix, isabella_clark, jade_kush, juelz_ventura, kapri_styles, kristina_milan, kylie_s...
main 2>/dev/null|sort -u where the warning is Code signals: How, dark_eyes, pretty_face, bleached_a, adriana_chechik, alysa_gap, anna_de_ville, aurora_jolie, autumn_falls, casey_calvert, dahlia_sky, dominica_lito, ella_knox, holly_hendrix, isabella_clark, jade_kush, juelz_ventura, kapri_styles, kristina_milan, kylie_s...
[ 0.023681640625, 0.004119873046875, 0.00811767578125, 0.004364013671875, -0.007537841796875, 0.01043701171875, 0.00151824951171875, -0.01025390625, -0.0035400390625, -0.02392578125, -0.00830078125, -0.0164794921875, 0.01336669921875, 0.0045166015625, 0.0086669921875, -0.004302978515625,...
[ 5201, 116, 2740, 64, 18548, 139550, 58745, 62351, 20, 34, 7440, 70, 1631, 592, 28864, 26073, 7, 12, 11249, 43334, 31463, 28875, 40404, 2586, 934, 297, 11, 78833, 1430, 206, 783, 144, 55708, 208, 254, 78656, 112, 10745, 9090, 4341, 513, ...
[ 0.1226806640625, 0.09423828125, 0.047119140625, 0.054534912109375, 0.255859375, 0.2373046875, 0.036712646484375, 0.24365234375, 0.003875732421875, 0.120361328125, 0.035736083984375, 0.000152587890625, 0.2222900390625, 0.2086181640625, 0.26025390625, 0.271728515625, 0.1221923828125, ...
embed
1881456_c0
1881456
prolog
0
Title: Prolog wildcards Problem title: Prolog wildcards Tags: prolog Problem: Prolog wildcards I was wondering, how would I use the underscore twice but check that both instances of that underscore unify? What I basically need is something that returns true if two elements of the same value in one mapping exist... I.E ...
Prolog wildcards Prolog wildcards prolog Prolog Prolog wildcards I was wondering, how would I use the underscore twice but check that both instances of that underscore unify? What I basically need is something that returns true if two elements of the same value in one mapping exist... I.E member((_,_),[(a,a),(b,a),(c,a...
[ 0.00799560546875, 0.000774383544921875, 0.0184326171875, -0.00439453125, -0.016357421875, 0.0235595703125, 0.00579833984375, 0.0174560546875, -0.00041961669921875, -0.0157470703125, 0.023681640625, -0.001983642578125, 0.0205078125, 0.00885009765625, 0.00592041015625, -0.00909423828125,...
[ 1250, 4867, 56409, 38931, 502, 149016, 3642, 4527, 1379, 7, 30854, 186351, 12765, 15044, 110527, 51, 40383, 3871, 30646, 29568, 2174, 6626, 80854, 5701, 34292, 1632, 291, 26783, 32316, 87, 647, 32786, 77336, 2856, 47314 ]
[ 0.1031494140625, 0.2037353515625, 0.105712890625, 0.193603515625, 0.059783935546875, 0.00030517578125, 0.02154541015625, 0.09173583984375, 0.2117919921875, 0.05145263671875, 0.2021484375, 0.18798828125, 0.158935546875, 0.09832763671875, 0.148193359375, 0.14990234375, 0.1875, 0.0568...
embed
70021483_c0
70021483
prolog
0
Title: PROLOG: longest path in graph Problem title: PROLOG: longest path in graph Tags: graph-theory, prolog Problem: PROLOG: longest path in graph I have this algorithm for shortest path in a graph but now I need to adapt it to get the longest path, i mean, the path with higher value of the edges path(X,Y,[X,Y],L):- e...
PROLOG: longest path in graph PROLOG: longest path in graph graph-theory prolog PROLOG MinP MinD Set Sorted PROLOG: longest path in graph I have this algorithm for shortest path in a graph but now I need to adapt it to get the longest path, i mean, the path with higher value of the edges any help? thank you
[ 0.0211181640625, 0.019287109375, 0.0120849609375, 0.0079345703125, -0.029296875, 0.00421142578125, -0.00677490234375, -0.01190185546875, -0.000640869140625, -0.04150390625, 0.00341796875, -0.003265380859375, -0.0240478515625, -0.0021514892578125, 0.015869140625, 0.032470703125, 0.003...
[ 10514, 47510, 12, 4989, 525, 60875, 23, 41382, 2347, 502, 4867, 4211, 683, 397, 19943, 53666, 297, 903, 234873, 16610, 6, 3871, 39908, 2046, 70, 29459, 678, 77546, 34292, 111, 121303, 4358 ]
[ 0.14453125, 0.2364501953125, 0.012603759765625, 0.1600341796875, 0.166015625, 0.2490234375, 0.09442138671875, 0.214111328125, 0.0290985107421875, 0.09765625, 0.1864013671875, 0.115234375, 0.09771728515625, 0.0953369140625, 0.1220703125, 0.1263427734375, 0.009246826171875, 0.0254821...
embed
39059678_c0
39059678
prolog
0
Title: Look up X in table Prolog Problem title: Look up X in table Prolog Tags: prolog Problem: Look up X in table Prolog How do I get my Prolog code to return something in the database instead of just answering yes and no ? I have this small table student('Pelt', '67890'). grade('PH100', '67890', 'C plus'). How do I w...
Look up X in table Prolog Look up X in table Prolog prolog Look Prolog Pelt PH100 Look up X in table Prolog How do I get my Prolog code to return something in the database instead of just answering yes and no ? I have this small table How do I write a lookup function that returns 'C plus' when I pass in 'Pelt' ? This i...
[ 0.0137939453125, 0.01507568359375, 0.00677490234375, 0.0022735595703125, 0.000865936279296875, 0.0089111328125, 0.0162353515625, -0.0003414154052734375, -0.00762939453125, -0.000667572021484375, 0.0022430419921875, 0.029052734375, -0.04052734375, 0.00119781494140625, -0.0159912109375, ...
[ 60818, 1257, 1193, 23, 23180, 1250, 4867, 502, 19460, 18, 24784, 3559, 2046, 18151, 47, 30646, 9844, 63399, 64457, 35166, 72272, 110, 19336, 33022, 6713, 2037, 32354, 441, 1001, 27875, 683, 6704, 765, 5351, 151107 ]
[ 0.12841796875, 0.1544189453125, 0.159912109375, 0.06915283203125, 0.1875, 0.1497802734375, 0.2225341796875, 0.0955810546875, 0.1624755859375, 0.07330322265625, 0.0953369140625, 0.1536865234375, 0.046630859375, 0.16357421875, 0.0231781005859375, 0.1300048828125, 0.005340576171875, 0...
embed
28258951_c0
28258951
prolog
0
Title: Cant get my code to run Problem title: Cant get my code to run Tags: prolog Problem: Cant get my code to run I'm really desperate about this question (I'm not very good with Prolog). I'm asked to create a reductionTheosophique, in other words I have to do the following: If I'm given, lets say, 123 , I'll need to...
Cant get my code to run Cant get my code to run prolog Cant Cant get my code to run I'm really desperate about this question (I'm not very good with Prolog). I'm asked to create a reductionTheosophique, in other words I have to do the following: If I'm given, lets say, 123 , I'll need to return the sum so: 1+2+3=6 . Th...
[ -0.0185546875, 0.003204345703125, 0.004852294921875, 0.011474609375, -0.0107421875, 0.0024261474609375, -0.0224609375, 0.00135040283203125, -0.00579833984375, -0.055908203125, 0.0021820068359375, -0.00323486328125, -0.0286865234375, -0.00188446044921875, 0.0103759765625, 0.010986328125...
[ 4171, 18, 2046, 759, 18151, 47, 11675, 502, 4867, 6183, 145342, 13, 4552, 4127, 1250, 37170, 28282, 456, 77391, 3957, 6781, 19379, 944, 765, 54, 25632, 87, 34475, 37638, 3871, 30646, 70, 10554, 221, 106, 54651, 85398, 1369, 910, 4163, 2...
[ 0.0860595703125, 0.05853271484375, 0.1094970703125, 0.0811767578125, 0.275634765625, 0.094970703125, 0.1796875, 0.1744384765625, 0.24853515625, 0.056243896484375, 0.1112060546875, 0.04052734375, 0.0209808349609375, 0.041900634765625, 0.1246337890625, 0.07574462890625, 0.1025390625, ...
embed
49444352_c0
49444352
prolog
0
Title: List of mathematical operations in Prolog Problem title: List of mathematical operations in Prolog Tags: prolog, list Problem: List of mathematical operations in Prolog I've created a list of a mathematic expression such as [1,+,2,-,3] and I'm trying to get this evaluated as 1+2-3 i.e 0 . However, I'm having tro...
List of mathematical operations in Prolog List of mathematical operations in Prolog prolog list List Prolog i.e Atom atomic_list_concat Val List of mathematical operations in Prolog I've created a list of a mathematic expression such as [1,+,2,-,3] and I'm trying to get this evaluated as 1+2-3 i.e 0 . However, I'm havi...
[ 0.0028076171875, 0.003265380859375, 0.0037689208984375, 0.0224609375, 0.00250244140625, 0.0133056640625, 0.00634765625, 0.0179443359375, -0.00201416015625, -0.0220947265625, 0.0028839111328125, -0.00103759765625, 0.00152587890625, -0.0101318359375, -0.00970458984375, 0.0022430419921875...
[ 32036, 291, 140363, 70760, 41018, 7, 23, 1250, 4867, 111, 502, 5303, 69728, 34627, 1771, 6562, 2271, 4460, 4769, 75935, 48909, 13, 47148, 125195, 1328, 304, 9, 96386, 31577, 151575, 237, 106, 102038, 757, 19441, 63134, 29479, 18151, 37842, ...
[ 0.114990234375, 0.043060302734375, 0.153564453125, 0.1365966796875, 0.203125, 0.0946044921875, 0.04998779296875, 0.188232421875, 0.274169921875, 0.00811767578125, 0.1595458984375, 0.1661376953125, 0.1605224609375, 0.124755859375, 0.0391845703125, 0.184326171875, 0.05987548828125, 0...
embed
67537284_c0
67537284
prolog
0
Title: Make a list as the consecutive union of two lists Problem title: Make a list as the consecutive union of two lists Tags: prolog Problem: Make a list as the consecutive union of two lists i'm trying to do a predicate unionlist(union,list1,list2) , where "union" is the list formed as the union of "list1" and "list...
Make a list as the consecutive union of two lists Make a list as the consecutive union of two lists prolog Make Make a list as the consecutive union of two lists i'm trying to do a predicate unionlist(union,list1,list2) , where "union" is the list formed as the union of "list1" and "list2" . This lists cannot be empty....
[ 0.01397705078125, 0.03173828125, -0.0024871826171875, 0.0000782012939453125, -0.011962890625, 0.0177001953125, -0.008056640625, 0.0203857421875, 0.00958251953125, -0.0174560546875, 0.0162353515625, 0.0164794921875, -0.00665283203125, 0.01708984375, -0.01019287109375, 0.021240234375, ...
[ 26176, 10, 5303, 237, 148390, 13, 69941, 111, 6626, 502, 4867, 70, 31577, 54, 1653, 2063, 67, 6562, 87046, 418, 10461, 100, 136, 304, 53418, 201505, 27781, 13538, 7077, 5608, 4358 ]
[ 0.147216796875, 0.08099365234375, 0.2724609375, 0.1514892578125, 0.1907958984375, 0.0777587890625, 0.270263671875, 0.04437255859375, 0.1263427734375, 0.11181640625, 0.1673583984375, 0.007781982421875, 0.053497314453125, 0.003448486328125, 0.0687255859375, 0.09674072265625, 0.00064086...
embed
1668981_c0
1668981
prolog
0
Title: Prolog Path Search Pointers Problem title: Prolog Path Search Pointers Tags: prolog Problem: Prolog Path Search Pointers I need to check if a path is valid, true or false. It's given like this: ?-path(a,b,[(a,c),(c,d),(d,b)]). true In the list part, how do I access the a or c in (a,c)? Is it like a string"(a,c)"...
Prolog Path Search Pointers Prolog Path Search Pointers prolog Prolog Path Search Pointers Prolog Path Search Pointers I need to check if a path is valid, true or false. It's given like this: In the list part, how do I access the a or c in (a,c)? Is it like a string"(a,c)"? And in general how would one solve this type ...
[ 0.0211181640625, 0.00225830078125, 0.01361083984375, 0.0301513671875, -0.0164794921875, 0.0205078125, -0.017333984375, -0.006500244140625, -0.0003871917724609375, -0.0380859375, -0.0013427734375, 0.0028076171875, -0.021240234375, 0.020751953125, -0.01153564453125, 0.006561279296875, ...
[ 1250, 4867, 108421, 33086, 41097, 1314, 502, 87, 3871, 47, 12765, 2174, 60875, 83, 35604, 4, 29568, 707, 98320, 34475, 1884, 903, 5303, 2831, 3642, 54, 17203, 70, 10, 501, 23, 11, 238, 79315, 4537, 86869, 10644, 111, 90791, 947, 33209, ...
[ 0.15234375, 0.211669921875, 0.2005615234375, 0.175048828125, 0.2188720703125, 0.098876953125, 0.0936279296875, 0.027862548828125, 0.08709716796875, 0.065673828125, 0.19580078125, 0.0914306640625, 0.255126953125, 0.0888671875, 0.2113037109375, 0.03564453125, 0.2001953125, 0.07647705...
embed
28727834_c1
28727834
prolog
1
, B=mikhail, C=sergey, D=ivan (7) A=mikhail, B=ivan, C=petr, D=sergey (8) A=mikhail, B=petr, C=ivan, D=sergey (9) A=mikhail, B=petr, C=sergey, D=ivan (10) 10 Solutions But some lines are redundant since they are combined A and B. For example lines (1) and (4) (A=ivan, B=petr and A=petr, B=ivan). I tried to use ! here: ...
, B=mikhail, C=sergey, D=ivan (7) A=mikhail, B=ivan, C=petr, D=sergey (8) A=mikhail, B=petr, C=ivan, D=sergey (9) A=mikhail, B=petr, C=sergey, D=ivan (10) 10 Solutions But some lines are redundant since they are combined A and B. For example lines (1) and (4) (A=ivan, B=petr and A=petr, B=ivan). I tried to use ! here: ...
[ -0.006378173828125, -0.0001926422119140625, 0.0294189453125, 0.03466796875, 0.00115203857421875, -0.0225830078125, -0.0286865234375, 0.002685546875, 0.0040283203125, 0.004302978515625, -0.00150299072265625, 0.013916015625, 0.018798828125, 0.01507568359375, -0.00640869140625, 0.01519775...
[ 4, 335, 1369, 16733, 68365, 313, 2189, 111826, 391, 51707, 8696, 62, 5408, 42, 10021, 11438, 17857, 209, 109339, 4966, 3060, 124519, 621, 4842, 35405, 16792, 70163, 136, 27781, 798, 3971, 194, 37842, 4527, 711, 3688, 11301, 7, 98914, 132,...
[ 0.0303955078125, 0.1990966796875, 0.0789794921875, 0.080078125, 0.183349609375, 0.0941162109375, 0.09716796875, 0.2025146484375, 0.129150390625, 0.215576171875, 0.137451171875, 0.1466064453125, 0.134033203125, 0.107177734375, 0.1593017578125, 0.1771240234375, 0.13623046875, 0.14978...
embed
30200533_c1
30200533
prolog
1
/desktop/dcggame.p:19:37: Syntax error: Operator expected ERROR: c:/users/its/desktop/dcggame.p:21:42: Syntax error: Operator expected Warning: c:/users/its/desktop/dcggame.p:24: Singleton variables: [String] Warning: c:/users/its/desktop/dcggame.p:24: Singleton variable in branch: String What could possibly be the err...
/desktop/dcggame.p:19:37: Syntax error: Operator expected ERROR: c:/users/its/desktop/dcggame.p:21:42: Syntax error: Operator expected Warning: c:/users/its/desktop/dcggame.p:24: Singleton variables: [String] Warning: c:/users/its/desktop/dcggame.p:24: Singleton variable in branch: String What could possibly be the err...
[ 0.02197265625, 0.00885009765625, -0.006744384765625, 0.0181884765625, 0.00860595703125, 0.020263671875, -0.0272216796875, -0.0126953125, 0.0174560546875, -0.022705078125, -0.0267333984375, -0.0279541015625, -0.003265380859375, -0.0189208984375, -0.00433349609375, 0.012939453125, -0.0...
[ 133850, 13784, 71, 238, 177, 35311, 23988, 30225, 19010, 86531, 18499, 150922, 84751, 151206, 223, 14481, 5, 254, 25619, 33529, 5550, 592, 1314, 25732, 43609, 1507, 77336, 71713, 214, 32845, 23351, 5809, 144681, 28864, 26073, 391, 56367, 1250...
[ 0.094482421875, 0.107421875, 0.0236968994140625, 0.031951904296875, 0.07635498046875, 0.1845703125, 0.07611083984375, 0.175537109375, 0.1292724609375, 0.20654296875, 0.1749267578125, 0.2861328125, 0.23681640625, 0.154541015625, 0.052093505859375, 0.09765625, 0.0276031494140625, 0.0...
embed
40002610_c0
40002610
prolog
0
Title: disjunctive syllogism in prolog Problem title: disjunctive syllogism in prolog Tags: prolog Problem: disjunctive syllogism in prolog I am using swi-prolog. I want to model following statements in program. "Either a or b is criminal. b is not criminal." After modeling these statements. following query should work...
disjunctive syllogism in prolog disjunctive syllogism in prolog prolog disjunctive syllogism in prolog I am using swi-prolog. I want to model following statements in program. "Either a or b is criminal. b is not criminal." After modeling these statements. following query should work. But, when I wrote above statements ...
[ 0.00168609619140625, 0.001983642578125, 0.0196533203125, 0.03173828125, -0.02685546875, 0.0162353515625, -0.0245361328125, 0.02099609375, -0.007354736328125, -0.03759765625, 0.01806640625, -0.01544189453125, 0.009521484375, -0.01324462890625, 0.0115966796875, -0.0140380859375, -0.005...
[ 2837, 461, 8766, 4935, 104402, 4867, 8780, 23, 502, 17368, 91, 2452, 3454, 3444, 3299, 25632, 63805, 1528, 9319, 10, 707, 876, 83, 49602, 959, 41, 1294, 4488, 54397, 36917, 903, 18151, 14602, 9969, 1340, 18499, 6626 ]
[ 0.10089111328125, 0.1663818359375, 0.0965576171875, 0.0869140625, 0.1473388671875, 0.251708984375, 0.0863037109375, 0.05169677734375, 0.154541015625, 0.008819580078125, 0.002288818359375, 0.1392822265625, 0.0977783203125, 0.00506591796875, 0.2269287109375, 0.128173828125, 0.187377929...
embed
65281417_c0
65281417
prolog
0
Title: How to check if two elements of nested lists are the same index in Prolog? Problem title: How to check if two elements of nested lists are the same index in Prolog? Tags: list, prolog Problem: How to check if two elements of nested lists are the same index in Prolog? I want to create a predicate same_position(B,...
How to check if two elements of nested lists are the same index in Prolog? How to check if two elements of nested lists are the same index in Prolog? list prolog How Prolog same_position How to check if two elements of nested lists are the same index in Prolog? I want to create a predicate same_position(B,X,Y) that is ...
[ 0.00127410888671875, 0.0238037109375, 0.010009765625, -0.006622314453125, -0.0174560546875, 0.0289306640625, -0.0037078857421875, -0.00093841552734375, 0.032958984375, -0.01416015625, 0.02734375, 0.002777099609375, 0.0052490234375, -0.001800537109375, -0.0177001953125, -0.0093383789062...
[ 11249, 12765, 2174, 6626, 80854, 8512, 71, 5303, 7, 621, 5701, 63262, 23, 1250, 4867, 47, 502, 40322, 3444, 28282, 1653, 2063, 571, 1542, 1723, 29568, 12830, 1193, 136, 990, 765, 19069, 28032, 107013, 275, 420, 177, 127, 13, 30646 ]
[ 0.0292816162109375, 0.1885986328125, 0.07928466796875, 0.1529541015625, 0.162841796875, 0.2099609375, 0.124755859375, 0.1741943359375, 0.0200042724609375, 0.064453125, 0.18359375, 0.207275390625, 0.03546142578125, 0.1468505859375, 0.22900390625, 0.0164947509765625, 0.07080078125, 0...
embed
5131505_c0
5131505
prolog
0
Title: In Prolog, how can I check for N of elements in list A in list B? Problem title: In Prolog, how can I check for N of elements in list A in list B? Tags: prolog, predicate Problem: In Prolog, how can I check for N of elements in list A in list B? I have these two lists = fruits([banana, apple, mangoes, pears]). f...
In Prolog, how can I check for N of elements in list A in list B? In Prolog, how can I check for N of elements in list A in list B? prolog predicate Prolog In Prolog, how can I check for N of elements in list A in list B? I have these two lists = I want to write a prolog predicate that will return true as soon as it se...
[ 0.01226806640625, 0.00180816650390625, -0.0106201171875, 0.0194091796875, -0.0111083984375, 0.027587890625, 0.01611328125, -0.00107574462890625, 0.00469970703125, 0.00927734375, 0.00738525390625, 0.0018157958984375, 0.0022125244140625, -0.005035400390625, 0.007415771484375, -0.01159667...
[ 1250, 4867, 3642, 831, 12765, 100, 541, 111, 80854, 5303, 62, 23, 335, 360, 502, 1653, 2063, 87, 6626, 3444, 33022, 67, 30646, 29568, 33662, 40, 106, 55769, 15381, 7, 568, 156607, 93151 ]
[ 0.1756591796875, 0.2568359375, 0.06170654296875, 0.059417724609375, 0.23876953125, 0.1376953125, 0.17919921875, 0.105712890625, 0.2061767578125, 0.1693115234375, 0.09765625, 0.1131591796875, 0.130615234375, 0.041046142578125, 0.1510009765625, 0.140380859375, 0.169677734375, 0.01760...
embed
67396809_c0
67396809
prolog
0
Title: How to create an executable file to a GNU-Prolog program? Problem title: How to create an executable file to a GNU-Prolog program? Tags: gnu-prolog, prolog Problem: How to create an executable file to a GNU-Prolog program? I have written a prolog program in GNU-Prolog and successfully compiled it , now I want to...
How to create an executable file to a GNU-Prolog program? How to create an executable file to a GNU-Prolog program? gnu-prolog prolog How GNU-Prolog How to create an executable file to a GNU-Prolog program? I have written a prolog program in GNU-Prolog and successfully compiled it , now I want to create an executable f...
[ 0.031982421875, -0.006378173828125, 0.005584716796875, 0.01397705078125, -0.0035247802734375, 0.03759765625, 0.0072021484375, -0.01239013671875, -0.006805419921875, -0.03076171875, 0.001220703125, 0.0030059814453125, -0.012939453125, 0.0096435546875, 0.02490234375, 0.0096435546875, -...
[ 11249, 47, 28282, 71924, 2886, 11435, 165132, 10752, 4867, 1528, 104155, 3454, 502, 9, 142, 10, 59121, 23, 65771, 375, 5974, 3444, 3789, 3445, 4734, 3871, 18158, 11675, 3714, 3917, 1295 ]
[ 0.0986328125, 0.14990234375, 0.19287109375, 0.21923828125, 0.177978515625, 0.2025146484375, 0.2073974609375, 0.1612548828125, 0.2210693359375, 0.1898193359375, 0.1341552734375, 0.1231689453125, 0.138671875, 0.04266357421875, 0.045013427734375, 0.034393310546875, 0.08819580078125, 0...
embed
12102765_c0
12102765
prolog
0
Title: How to retrieve values from database? Problem title: How to retrieve values from database? Tags: list, prolog Problem: How to retrieve values from database? I have the following lists in Prolog: fruit(banana, yellow, curvy, 4). fruit(apple, green, round, 2). fruit(kiwifruit, green, round, 7). fruit(mango, orange...
How to retrieve values from database? How to retrieve values from database? list prolog database How How to retrieve values from database? I have the following lists in Prolog: And I want a query that would return all the green fruits. How do I do this? I played around with findall/3 and bagof/3 but I couldn't figure i...
[ 0.01171875, -0.0032501220703125, -0.004974365234375, 0.007354736328125, -0.0089111328125, 0.0157470703125, 0.01104736328125, 0.0072021484375, -0.0052490234375, -0.0262451171875, -0.00927734375, -0.011962890625, -0.02490234375, -0.0208740234375, -0.01300048828125, 0.0019073486328125, ...
[ 11249, 47, 456, 3996, 3134, 142424, 1295, 63399, 5303, 502, 4867, 1250, 3444, 41, 1294, 30646, 756, 70, 50997, 93151, 54, 903, 112730, 10932, 7413, 5584, 18113, 41780, 420, 26366 ]
[ 0.0833740234375, 0.07861328125, 0.099365234375, 0.162353515625, 0.1427001953125, 0.2166748046875, 0.1461181640625, 0.25244140625, 0.14794921875, 0.1181640625, 0.21728515625, 0.144287109375, 0.0662841796875, 0.0771484375, 0.10540771484375, 0.14208984375, 0.03411865234375, 0.01802062...
embed
53748874_c0
53748874
prolog
0
Title: Prolog coordinate checking Problem title: Prolog coordinate checking Tags: list, prolog Problem: Prolog coordinate checking I am trying to look through a lists of lists and return true if a specified value appears twice in a given row. e.g. %B is a list of lists such the positions of x are denoted by the values ...
Prolog coordinate checking Prolog coordinate checking list prolog Prolog Prolog coordinate checking I am trying to look through a lists of lists and return true if a specified value appears twice in a given row. e.g. and these coordinates would be represented by B so a method foo(B) where B = as x would appear twice in...
[ 0.0216064453125, 0.0036773681640625, 0.015625, -0.003509521484375, -0.004058837890625, -0.001983642578125, 0.0146484375, 0.00860595703125, 0.00732421875, 0.01165771484375, 0.0130615234375, 0.0024871826171875, 0.006805419921875, -0.0218505859375, -0.0125732421875, 0.00946044921875, 0....
[ 1250, 4867, 176866, 175199, 13, 5303, 502, 31577, 6713, 8305, 30646, 29568, 2174, 58735, 34292, 135179, 186351, 23, 34475, 15555, 90, 33636, 335, 55300, 5775, 31, 571, 2203, 237, 1022, 2806, 108975, 1632 ]
[ 0.154296875, 0.2349853515625, 0.2325439453125, 0.2230224609375, 0.0482177734375, 0.15283203125, 0.11749267578125, 0.0364990234375, 0.0555419921875, 0.03497314453125, 0.062744140625, 0.1365966796875, 0.01435089111328125, 0.0953369140625, 0.1280517578125, 0.1361083984375, 0.20324707031...
embed
8429479_c0
8429479
prolog
0
Title: Sorting a list in Prolog Problem title: Sorting a list in Prolog Tags: prolog, sorting, list Problem: Sorting a list in Prolog Prolog has a unique way of handling things, especially since practically every operation involves recursion of one sort or another. One of the classic examples every language has is sort...
Sorting a list in Prolog Sorting a list in Prolog prolog sorting list Sorting Prolog Sorting a list in Prolog Prolog has a unique way of handling things, especially since practically every operation involves recursion of one sort or another. One of the classic examples every language has is sorting a list of integers i...
[ 0.00390625, 0.00897216796875, 0.01373291015625, -0.0157470703125, -0.023193359375, 0.010498046875, -0.0223388671875, -0.013916015625, -0.01068115234375, -0.0135498046875, -0.00091552734375, -0.0086669921875, -0.0206298828125, 0.0020599365234375, 0.0093994140625, -0.00830078125, -0.01...
[ 53666, 214, 5303, 23, 1250, 4867, 502, 12096, 10, 36998, 3917, 45064, 8966, 138155, 11907, 41018, 83687, 195625, 1830, 54704, 27781, 46876, 892, 26255, 3934, 82800, 12989, 24087, 6056, 88303, 1653, 2063, 29786, 12477, 47, 96759 ]
[ 0.2164306640625, 0.074951171875, 0.19970703125, 0.03240966796875, 0.1644287109375, 0.2449951171875, 0.1328125, 0.2132568359375, 0.00091552734375, 0.094970703125, 0.0653076171875, 0.1036376953125, 0.005401611328125, 0.005279541015625, 0.031768798828125, 0.1187744140625, 0.039581298828...
embed
41682972_c0
41682972
prolog
0
Title: Count numbers in list Problem title: Count numbers in list Tags: prolog, list Problem: Count numbers in list I have a problem with calculating the occurences of the given number in list. For instance, if we have a list like L = [4,5,6,4,3,4,2,4,5,6,7,4] and I want to count how many 4 s is in the list, then the a...
Count numbers in list Count numbers in list prolog list Count count_occ Count numbers in list I have a problem with calculating the occurences of the given number in list. For instance, if we have a list like L = [4,5,6,4,3,4,2,4,5,6,7,4] and I want to count how many 4 s is in the list, then the answer is 5 . I tried t...
[ -0.006927490234375, 0.007171630859375, 0.00311279296875, -0.001556396484375, 0.017333984375, -0.0027008056640625, -0.0125732421875, -0.0086669921875, 0.031005859375, -0.030517578125, -0.01953125, -0.0306396484375, 0.01171875, 0.036376953125, 0.0087890625, -0.0201416015625, 0.01025390...
[ 108210, 101935, 23, 5303, 502, 4867, 54529, 454, 31, 10060, 87, 765, 2967, 74481, 1916, 74918, 69098, 34475, 14012, 1884, 339, 2203, 80389, 150643, 82449, 304, 136555, 617, 3444, 47, 3642, 5941, 201, 91, 83, 70, 35166, 190, 37842, 29479, ...
[ 0.2318115234375, 0.251708984375, 0.1209716796875, 0.2156982421875, 0.12841796875, 0.184814453125, 0.2198486328125, 0.001129150390625, 0.102294921875, 0.15234375, 0.012115478515625, 0.0170745849609375, 0.117431640625, 0.1392822265625, 0.0126953125, 0.177734375, 0.1302490234375, 0.06...
embed
26486371_c0
26486371
prolog
0
Title: filter sublist in prolog Problem title: filter sublist in prolog Tags: prolog Problem: filter sublist in prolog I want to use a predicate to find the sublist meet the requirement that contains at least one atomic(not variable). contain_atomic([[a,c,e],[a,e,D],[D,A,E]],X). X = [[a,c,e],[a,e,D]]. So far, I can onl...
filter sublist in prolog filter sublist in prolog prolog contain_atomic all_variable filter sublist in prolog I want to use a predicate to find the sublist meet the requirement that contains at least one atomic(not variable). So far, I can only turn those sublist whose elements are all variables to empty. And what's ne...
[ 0.008056640625, 0.005615234375, 0.00162506103515625, 0.03076171875, -0.0081787109375, 0.0244140625, -0.006561279296875, 0.01385498046875, 0.0179443359375, -0.006439208984375, -0.006591796875, 0.000644683837890625, -0.01025390625, 0.01220703125, 0.00457763671875, 0.014404296875, 0.033...
[ 46312, 1614, 6562, 502, 4867, 70541, 2832, 21068, 756, 21690, 2886, 23, 3444, 4527, 1653, 2063, 67, 7413, 23356, 64209, 19713, 1632, 34627, 1771, 10869, 77336, 15504, 80854, 47, 201505, 11737, 20903, 36272 ]
[ 0.204345703125, 0.2208251953125, 0.2344970703125, 0.1273193359375, 0.21923828125, 0.16552734375, 0.1260986328125, 0.112548828125, 0.0928955078125, 0.1585693359375, 0.060272216796875, 0.022918701171875, 0.0447998046875, 0.03363037109375, 0.103271484375, 0.1329345703125, 0.067993164062...
embed
17349016_c0
17349016
prolog
0
Title: Select any node in the DOM matching term Problem title: Select any node in the DOM matching term Tags: prolog, swi-prolog Problem: Select any node in the DOM matching term I use xpath library. I use this instruction to select any table in DOM, but i get only the first table. For example: load_structure('C:/examp...
Select any node in the DOM matching term Select any node in the DOM matching term prolog swi-prolog Select DOM load_structure example.html Select any node in the DOM matching term I use xpath library. I use this instruction to select any table in DOM, but i get only the first table. For example: In example.html there a...
[ 0.027587890625, 0.0164794921875, 0.005401611328125, -0.00140380859375, -0.016845703125, 0.0106201171875, 0.020751953125, -0.00167083740234375, 0.0018768310546875, -0.0771484375, 0.037109375, 0.0031585693359375, -0.02392578125, -0.01385498046875, 0.007354736328125, 0.01220703125, 0.01...
[ 51620, 2499, 110, 112, 69285, 14858, 214, 13579, 23, 502, 4867, 2452, 3454, 72367, 137656, 27781, 7693, 4527, 1022, 128405, 35773, 1294, 188336, 36849, 23180, 1284, 2046, 4734, 5117, 40368, 756, 19097, 9191 ]
[ 0.157958984375, 0.07763671875, 0.1282958984375, 0.104736328125, 0.19091796875, 0.1456298828125, 0.0848388671875, 0.159423828125, 0.0123291015625, 0.07940673828125, 0.172607421875, 0.126220703125, 0.056976318359375, 0.158935546875, 0.13720703125, 0.1356201171875, 0.129150390625, 0.0...
embed
11156556_c0
11156556
prolog
0
Title: Generating a new atom based on existing atom within a list Problem title: Generating a new atom based on existing atom within a list Tags: iso-prolog, list, prolog Problem: Generating a new atom based on existing atom within a list I would like to know how to generate a new atom in a list based on existing atom ...
Generating a new atom based on existing atom within a list Generating a new atom based on existing atom within a list iso-prolog list prolog Generating str1 str2 Generating a new atom based on existing atom within a list I would like to know how to generate a new atom in a list based on existing atom in another list. G...
[ -0.007354736328125, 0.01068115234375, -0.0032501220703125, 0.0272216796875, -0.03466796875, 0.0220947265625, 0.0011749267578125, 0.0162353515625, -0.0004329681396484375, -0.00457763671875, 0.0167236328125, -0.0169677734375, 0.0120849609375, 0.00144195556640625, -0.0198974609375, -0.015...
[ 155370, 1916, 3525, 34627, 35509, 98, 144573, 28032, 5303, 13882, 3454, 4867, 502, 7704, 418, 304, 1884, 3714, 3642, 47, 139392, 10, 23, 15700, 77878, 27489, 21373, 79315, 66044 ]
[ 0.1851806640625, 0.07763671875, 0.151611328125, 0.273681640625, 0.169921875, 0.1051025390625, 0.22119140625, 0.1278076171875, 0.2344970703125, 0.07806396484375, 0.06585693359375, 0.1697998046875, 0.0665283203125, 0.103515625, 0.051605224609375, 0.0865478515625, 0.05487060546875, 0....
embed
6236278_c0
6236278
prolog
0
Title: Problem with variables in prolog Problem title: Problem with variables in prolog Tags: variables, scope, prolog, global-variables Problem: Problem with variables in prolog num(N) :- No=N, write(No), nl. check(S) :- No==S -> write(Ok) ; write(Not ok). When i call num(5) , it prints 5. However after calling num(5)...
Problem with variables in prolog Problem with variables in prolog variables scope prolog global-variables Problem Not Problem with variables in prolog When i call num(5) , it prints 5. However after calling num(5) , when i call check(5) , it prints Not ok. I think its because of scope of variables..How can i make it wo...
[ 0.008544921875, 0.03173828125, -0.00640869140625, 0.0025787353515625, 0.0022125244140625, 0.029296875, -0.01385498046875, 0.0201416015625, -0.002227783203125, -0.02001953125, -0.01214599609375, 0.004638671875, -0.0208740234375, -0.01531982421875, 0.038330078125, 0.007720947265625, 0....
[ 15649, 678, 77336, 7, 23, 502, 4867, 70820, 7964, 21690, 19736, 11205, 11782, 13269, 124534, 442, 28412, 1892, 33306, 7103, 159029, 3229, 12765, 3664, 5351, 6863, 6637, 6, 111, 4488, 438, 1884, 34292, 70731 ]
[ 0.1395263671875, 0.0374755859375, 0.3037109375, 0.054718017578125, 0.014312744140625, 0.1558837890625, 0.25927734375, 0.167724609375, 0.1185302734375, 0.1690673828125, 0.07696533203125, 0.10400390625, 0.136474609375, 0.132568359375, 0.171875, 0.01116943359375, 0.1834716796875, 0.17...
embed
5807455_c0
5807455
prolog
0
Title: Matrix operations Prolog Problem title: Matrix operations Prolog Tags: matrix, prolog Problem: Matrix operations Prolog Hi I need a help with some prolog functions, please: Define predicates: row(X,N,C): C is the row N of matrix X. column(X,N,C): C is the column N of matrix X. first_column(X,C,R): the matrix X i...
Matrix operations Prolog Matrix operations Prolog matrix prolog Matrix Prolog Matrix operations Prolog Hi I need a help with some prolog functions, please: Define predicates: row(X,N,C): C is the row N of matrix X. column(X,N,C): C is the column N of matrix X. first_column(X,C,R): the matrix X is formed by first column...
[ 0.0157470703125, 0.003662109375, 0.0184326171875, 0.015380859375, -0.0036773681640625, -0.00179290771484375, -0.01007080078125, 0.02099609375, 0.00136566162109375, -0.0224609375, -0.0157470703125, -0.009765625, -0.026611328125, -0.0081787109375, -0.01373291015625, 0.01190185546875, 0...
[ 194234, 41018, 1250, 4867, 7, 50944, 425, 502, 2673, 3871, 4358, 32354, 22936, 262, 64552, 1653, 2063, 1636, 15555, 1542, 839, 4, 441, 313, 83, 541, 1193, 5, 3365, 316, 5117, 8447, 1052, 100, 4806, 10588, 627, 230612, 6827, 68587, 9523,...
[ 0.2371826171875, 0.212890625, 0.1832275390625, 0.23974609375, 0.009124755859375, 0.2109375, 0.1187744140625, 0.1689453125, 0.0284576416015625, 0.041107177734375, 0.078369140625, 0.1815185546875, 0.033966064453125, 0.017059326171875, 0.1295166015625, 0.190185546875, 0.206298828125, ...
embed
70145982_c0
70145982
prolog
0
Title: Reversing matrix rows in Prolog Problem title: Reversing matrix rows in Prolog Tags: prolog, matrix, reverse Problem: Reversing matrix rows in Prolog I am trying to write a predicate which reverses all rows in a matrix using Prolog. For instance the matrix [ [1,2,3], [4,5,6], [7,8,9] ] should become [ [3,2,1], [...
Reversing matrix rows in Prolog Reversing matrix rows in Prolog prolog matrix reverse Reversing Prolog Reversing matrix rows in Prolog I am trying to write a predicate which reverses all rows in a matrix using Prolog. For instance the matrix [ [1,2,3], [4,5,6], [7,8,9] ] should become [ [3,2,1], [6,5,4], [9,8,7] ]. My ...
[ 0.00408935546875, 0.0272216796875, 0.0263671875, 0.00982666015625, -0.01397705078125, -0.003875732421875, 0.01312255859375, 0.02099609375, -0.0107421875, 0.000415802001953125, -0.00555419921875, 0.00008869171142578125, -0.00098419189453125, -0.00006866455078125, 0.01226806640625, 0.019...
[ 853, 7864, 214, 50944, 425, 15555, 23, 1250, 4867, 502, 39531, 184, 31577, 33022, 1653, 2063, 67, 5908, 756, 17368, 155761, 617, 104629, 966, 145180, 5608, 24209, 304, 129678, 1126, 186922, 81887, 5117, 15549, 36917, 4488, 100, 127557, 8190...
[ 0.1063232421875, 0.2208251953125, 0.03106689453125, 0.1900634765625, 0.0792236328125, 0.212158203125, 0.0240478515625, 0.1656494140625, 0.2320556640625, 0.11962890625, 0.2410888671875, 0.065185546875, 0.047088623046875, 0.053009033203125, 0.1204833984375, 0.1212158203125, 0.025314331...
embed
1749832_c0
1749832
prolog
0
Title: SWI-Prolog conditional statements Problem title: SWI-Prolog conditional statements Tags: prolog, conditional-statements Problem: SWI-Prolog conditional statements I'm trying to write a function that will test to see if the word hello is contained in a list. If it is contained, i don't want it to say "true", i wa...
SWI-Prolog conditional statements SWI-Prolog conditional statements prolog conditional-statements SWI-Prolog contains_hello Head Tail SWI-Prolog conditional statements I'm trying to write a function that will test to see if the word hello is contained in a list. If it is contained, i don't want it to say "true", i want...
[ -0.000545501708984375, 0.003875732421875, 0.00140380859375, 0.0103759765625, -0.020751953125, 0.011962890625, 0.02294921875, -0.00830078125, -0.00933837890625, -0.006378173828125, -0.0115966796875, -0.0181884765625, -0.00897216796875, 0.000591278076171875, 0.022705078125, 0.02563476562...
[ 159, 38969, 10752, 4867, 35431, 289, 63805, 502, 61340, 70541, 127, 13817, 44816, 1218, 379, 7, 31577, 33022, 32354, 3034, 1957, 2174, 2565, 33600, 31, 83, 297, 5303, 18, 3444, 5154, 9774, 63736, 3688, 25647, 18151 ]
[ 0.0653076171875, 0.21142578125, 0.147216796875, 0.196533203125, 0.1837158203125, 0.1287841796875, 0.19384765625, 0.1295166015625, 0.133544921875, 0.188232421875, 0.0848388671875, 0.2060546875, 0.155029296875, 0.1488037109375, 0.131591796875, 0.00640869140625, 0.0265045166015625, 0....
embed
78302846_c0
78302846
prolog
0
Title: how does the cut placement in prolog affect output? Problem title: how does the cut placement in prolog affect output? Tags: prolog, prolog-cut Problem: how does the cut placement in prolog affect output? I'm very confused about the placement of cuts. Not sure how they impact the output. What is the difference b...
how does the cut placement in prolog affect output? how does the cut placement in prolog affect output? prolog prolog-cut how does the cut placement in prolog affect output? I'm very confused about the placement of cuts. Not sure how they impact the output. What is the difference between each of the cuts in the followi...
[ 0.030517578125, 0.03466796875, 0.0260009765625, 0.00408935546875, -0.019775390625, 0.0081787109375, 0.00811767578125, 0.01214599609375, 0.01141357421875, 0.03515625, 0.004119873046875, -0.00048065185546875, -0.00092315673828125, -0.01123046875, 0.0042724609375, 0.00592041015625, -0.0...
[ 3642, 59226, 3687, 674, 23, 502, 4867, 52490, 140992, 19774, 14602, 55681, 314, 933, 24725, 60212, 17721, 12638, 25632, 19069, 73342 ]
[ 0.0587158203125, 0.2078857421875, 0.1380615234375, 0.06463623046875, 0.040313720703125, 0.139892578125, 0.2159423828125, 0.15283203125, 0.2196044921875, 0.1708984375, 0.04095458984375, 0.01507568359375, 0.156982421875, 0.1221923828125, 0.1219482421875, 0.092041015625, 0.0116577148437...
embed
46804159_c0
46804159
prolog
0
Title: How to solve this puzzle in Prolog? (robbery) Problem title: How to solve this puzzle in Prolog? (robbery) Tags: prolog, constraint-satisfaction, logic Problem: How to solve this puzzle in Prolog? (robbery) Three suspects are involved in a robbery, Alice, Bob, Carl. At least one of them are guilty. Here are the ...
How to solve this puzzle in Prolog? (robbery) How to solve this puzzle in Prolog? (robbery) prolog constraint-satisfaction logic How Prolog How to solve this puzzle in Prolog? (robbery) Three suspects are involved in a robbery, Alice, Bob, Carl. At least one of them are guilty. Here are the conditions: If A is guilty, ...
[ 0.000514984130859375, -0.00714111328125, 0.01043701171875, 0.0189208984375, -0.00946044921875, 0.033447265625, -0.0072021484375, -0.00836181640625, 0.01116943359375, -0.025390625, -0.00286865234375, -0.018310546875, 0.0169677734375, 0.027587890625, 0.021484375, 0.0150146484375, 0.011...
[ 11249, 86869, 903, 104192, 23, 1250, 4867, 21359, 1297, 53, 47, 502, 158, 2816, 4288, 50958, 1021, 62775, 129335, 92610, 7, 75412, 49586, 66083, 25027, 25075, 19713, 1632, 111, 2856, 621, 221859, 27289, 4263, 62, 764, 1556, 66161, 106, 22...
[ 0.07440185546875, 0.2041015625, 0.10546875, 0.2449951171875, 0.0721435546875, 0.1993408203125, 0.289306640625, 0.1416015625, 0.1715087890625, 0.13525390625, 0.0300140380859375, 0.12841796875, 0.005096435546875, 0.149169921875, 0.0677490234375, 0.10174560546875, 0.0911865234375, 0.1...
embed
13219576_c0
13219576
prolog
0
Title: Prolog-Crossword constraints Problem title: Prolog-Crossword constraints Tags: prolog, logic Problem: Prolog-Crossword constraints I have this fairly simple problem below, that I have to answer: crossword(V1, H1) :- word(V1, X, X, X), word(H1, X, X, X). Would any reasonable word satisfy the constraint in this ru...
Prolog-Crossword constraints Prolog-Crossword constraints prolog logic Prolog-Crossword Prolog-Crossword constraints I have this fairly simple problem below, that I have to answer: Would any reasonable word satisfy the constraint in this rule? My response to seeing this would be to say, that a triple constraint on a th...
[ 0.00640869140625, -0.008056640625, -0.0159912109375, 0.00738525390625, -0.001678466796875, 0.01312255859375, -0.0159912109375, -0.01171875, -0.00921630859375, -0.039306640625, -0.0062255859375, 0.0062255859375, 0.0084228515625, 0.0038299560546875, -0.01080322265625, 0.0252685546875, ...
[ 1250, 4867, 3666, 47416, 158, 2816, 4288, 502, 62775, 8781, 2967, 35064, 35166, 154559, 2499, 169022, 2565, 40407, 53, 903, 79986, 57553, 86681, 162738, 98, 17262, 31330, 68782, 959, 1283, 1681, 2886, 32316, 51359, 26785 ]
[ 0.1483154296875, 0.2154541015625, 0.117431640625, 0.16259765625, 0.1129150390625, 0.20361328125, 0.135009765625, 0.08111572265625, 0.09271240234375, 0.05560302734375, 0.0897216796875, 0.0162353515625, 0.018890380859375, 0.05792236328125, 0.0794677734375, 0.2003173828125, 0.1822509765...
embed
29152309_c2
29152309
prolog
2
Haswell machine running SICStus Prolog 4.3.1 worst-case performance differences due to the different benchmarking methods (A,B,C) exceed 100%: | ?- benchA_1(0,W,Rt). W = 0, Rt = 3140 ? yes | ?- benchA_2(0,W,Rt). W = 0, Rt = 4130 ? yes | ?- benchA_3(0,W,Rt). W = 0, Rt = 1960 ? yes Do you have ideas if/how I could furth...
Haswell machine running SICStus Prolog 4.3.1 worst-case performance differences due to the different benchmarking methods (A,B,C) exceed 100%: | ?- benchA_1(0,W,Rt). W = 0, Rt = 3140 ? yes | ?- benchA_2(0,W,Rt). W = 0, Rt = 4130 ? yes | ?- benchA_3(0,W,Rt). W = 0, Rt = 1960 ? yes Do you have ideas if/how I could furth...
[ 0.00176239013671875, -0.036376953125, 0.00168609619140625, 0.031982421875, -0.00701904296875, -0.0089111328125, -0.00714111328125, -0.0062255859375, -0.000591278076171875, -0.015380859375, 0.01080322265625, 0.0111083984375, 0.01165771484375, 0.025390625, 0.00830078125, -0.0166015625, ...
[ 20625, 19256, 36279, 51042, 159, 102198, 2143, 1250, 4867, 1398, 97109, 130481, 58437, 23718, 60212, 7, 12921, 240057, 214, 150624, 284, 571, 441, 204839, 3555, 705, 1585, 206, 115187, 2389, 1456, 1052, 18, 601, 757, 627, 138, 43900, 72272,...
[ 0.1385498046875, 0.263671875, 0.1409912109375, 0.06640625, 0.09735107421875, 0.06219482421875, 0.1917724609375, 0.139404296875, 0.2271728515625, 0.12841796875, 0.1787109375, 0.1878662109375, 0.176025390625, 0.1851806640625, 0.207275390625, 0.005035400390625, 0.1163330078125, 0.2365...
embed
16502892_c0
16502892
prolog
0
Title: Prolog predicates Problem title: Prolog predicates Tags: prolog, predicates Problem: Prolog predicates I am currently learning about predicate logic in Prolog. I am having trouble answering a question on the topic and would like to know the steps one one take to solve such a question using Prolog predicates. I h...
Prolog predicates Prolog predicates prolog predicates Prolog Prolog predicates I am currently learning about predicate logic in Prolog. I am having trouble answering a question on the topic and would like to know the steps one one take to solve such a question using Prolog predicates. I have a scenario which must be re...
[ 0.005645751953125, 0.01348876953125, -0.00164031982421875, 0.025634765625, -0.01287841796875, 0.0419921875, -0.004180908203125, -0.0113525390625, -0.00933837890625, -0.0291748046875, -0.00836181640625, -0.01129150390625, -0.0181884765625, 0.0098876953125, 0.007110595703125, 0.0234375, ...
[ 1250, 4867, 1653, 2063, 1636, 502, 52080, 67, 62775, 63134, 35166, 214, 9655, 28451, 98441, 5646, 86869, 6044, 17368, 106117, 8110, 33636, 4734, 6626, 12921, 123055, 62, 136, 335, 139505, 1884, 313, 391, 241, 563, 527 ]
[ 0.1978759765625, 0.25439453125, 0.223876953125, 0.27978515625, 0.1331787109375, 0.1192626953125, 0.0377197265625, 0.1224365234375, 0.18310546875, 0.04986572265625, 0.1002197265625, 0.00341796875, 0.1544189453125, 0.023162841796875, 0.1185302734375, 0.003997802734375, 0.1556396484375,...
embed
14424588_c0
14424588
prolog
0
Title: Check if character is a number in Prolog ? how to implement integer/1? Problem title: Check if character is a number in Prolog ? how to implement integer/1? Tags: prolog, integer, char, atomic Problem: Check if character is a number in Prolog ? how to implement integer/1? How can I check if a character is a numb...
Check if character is a number in Prolog ? how to implement integer/1? Check if character is a number in Prolog ? how to implement integer/1? prolog integer char atomic Check Prolog Check if character is a number in Prolog ? how to implement integer/1? How can I check if a character is a number in Prolog without using ...
[ 0.00286865234375, -0.01129150390625, 0.0242919921875, 0.04150390625, -0.004486083984375, 0.039794921875, 0.0047607421875, -0.006317138671875, -0.018798828125, 0.00604248046875, -0.0107421875, -0.0150146484375, -0.031982421875, 0.0177001953125, 0.01031494140625, 0.00457763671875, 0.02...
[ 38679, 2174, 62816, 83, 10, 14012, 23, 1250, 4867, 3642, 29479, 892, 1505, 11583, 502, 21441, 34627, 1771, 12765, 15490, 17368, 841, 1456, 4527, 4358, 30646, 29568, 23937, 1284, 101935 ]
[ 0.1856689453125, 0.135986328125, 0.269775390625, 0.131103515625, 0.06182861328125, 0.2391357421875, 0.1129150390625, 0.17626953125, 0.2474365234375, 0.0181121826171875, 0.158203125, 0.135009765625, 0.161376953125, 0.1883544921875, 0.12841796875, 0.1597900390625, 0.136962890625, 0.0...
embed
36914325_c0
36914325
prolog
0
Title: Age Constraint Finding Problem title: Age Constraint Finding Tags: zebra-puzzle, prolog Problem: Age Constraint Finding So I have a simpler variation of the Einstein/Zebra puzzle in Prolog. And I came up with this possible solution: b_setval(T_age, Var). friends(L) :- L = [person(A1, B1, T_age), person(A2, B2, C...
Age Constraint Finding Age Constraint Finding zebra-puzzle prolog Age Constraint Finding b_setval T_age Age Constraint Finding So I have a simpler variation of the Einstein/Zebra puzzle in Prolog. And I came up with this possible solution: But my query friends(L). - false. only returns false as stated. What am I doing ...
[ 0.0250244140625, 0.00021648406982421875, 0.011474609375, 0.0244140625, -0.0031890869140625, -0.003143310546875, -0.02587890625, 0.02197265625, 0.006683349609375, -0.0439453125, -0.0069580078125, -0.00038909912109375, 0.01055908203125, 0.02783203125, 0.0172119140625, 0.002288818359375, ...
[ 72944, 1657, 2816, 4288, 26040, 214, 116232, 1766, 13894, 133, 502, 4867, 876, 3509, 1405, 384, 4588, 8781, 42, 143834, 119225, 64, 48320, 2844, 104192, 1250, 1257, 7722, 29806, 4966, 41, 1294, 23902, 866, 98320, 4734, 30646, 237, 11341, ...
[ 0.13671875, 0.058319091796875, 0.1566162109375, 0.0762939453125, 0.1180419921875, 0.04754638671875, 0.2078857421875, 0.074951171875, 0.1104736328125, 0.03765869140625, 0.11376953125, 0.23046875, 0.07403564453125, 0.09051513671875, 0.1707763671875, 0.013519287109375, 0.1151123046875, ...
embed
61433841_c0
61433841
prolog
0
Title: How to write the set difference code without using memberchk and subtract? Problem title: How to write the set difference code without using memberchk and subtract? Tags: prolog Problem: How to write the set difference code without using memberchk and subtract? How to write the set difference code without using ...
How to write the set difference code without using memberchk and subtract? How to write the set difference code without using memberchk and subtract? prolog memberchk How set_difference How to write the set difference code without using memberchk and subtract? How to write the set difference code without using memberch...
[ 0.00007677078247070312, 0.0218505859375, 0.0177001953125, 0.0107421875, -0.009033203125, 0.00323486328125, -0.0264892578125, 0.009033203125, 0.006927490234375, -0.0084228515625, 0.00848388671875, 0.01409912109375, 0.007568359375, 0.0113525390625, 0.01446533203125, -0.004730224609375, ...
[ 11249, 33022, 5423, 60212, 18151, 15490, 32786, 206, 92, 1614, 39989, 502, 4867, 428, 18234, 6620 ]
[ 0.0533447265625, 0.1370849609375, 0.2269287109375, 0.2354736328125, 0.1888427734375, 0.068603515625, 0.16357421875, 0.11053466796875, 0.10723876953125, 0.059722900390625, 0.0902099609375, 0.06829833984375, 0.130859375, 0.081298828125, 0.177734375, 0.08441162109375 ]
embed
67577950_c0
67577950
prolog
0
Title: ERROR: Unknown procedure: dups2/2 (DWIM could not correct goal) Problem title: ERROR: Unknown procedure: dups2/2 (DWIM could not correct goal) Tags: prolog Problem: ERROR: Unknown procedure: dups2/2 (DWIM could not correct goal) Im trying to duplicate elements on a list with this code: dups2([],[]). dups2([H|T],...
ERROR: Unknown procedure: dups2/2 (DWIM could not correct goal) ERROR: Unknown procedure: dups2/2 (DWIM could not correct goal) prolog ERROR Unknown dups2 DWIM ERROR: Unknown procedure: dups2/2 (DWIM could not correct goal) Im trying to duplicate elements on a list with this code: I'm using the query expecting: but I g...
[ 0.00159454345703125, 0.0157470703125, 0.0096435546875, 0.013427734375, -0.01123046875, 0.046142578125, -0.017578125, -0.00775146484375, -0.0034637451171875, -0.01483154296875, 0.0035858154296875, 0.004241943359375, -0.005615234375, 0.00482177734375, 0.006866455078125, 0.01312255859375,...
[ 151206, 24638, 992, 69723, 19, 50491, 115, 6423, 304, 12477, 397, 38969, 594, 5809, 959, 26785, 69236, 502, 4867, 30439, 17199, 3370, 31577, 171763, 80854, 5303, 903, 18151, 17368, 41, 1294, 41206, 214, 1284, 18499, 30022 ]
[ 0.1346435546875, 0.11572265625, 0.0775146484375, 0.1820068359375, 0.036041259765625, 0.174072265625, 0.17138671875, 0.1768798828125, 0.1651611328125, 0.231201171875, 0.04583740234375, 0.14501953125, 0.2054443359375, 0.088623046875, 0.0753173828125, 0.1707763671875, 0.206298828125, ...
embed
70461899_c0
70461899
prolog
0
Title: Prolog number of items which contain woman Problem title: Prolog number of items which contain woman Tags: prolog Problem: Prolog number of items which contain woman How I can find number of circles which contain at least 1 woman? names of people who meet in more circles circle(circle1, [misha, inna]). circle(ci...
Prolog number of items which contain woman Prolog number of items which contain woman prolog Prolog circle1 circle2 circle3 Prolog number of items which contain woman How I can find number of circles which contain at least 1 woman? names of people who meet in more circles
[ 0.00958251953125, -0.0023040771484375, -0.00994873046875, 0.025390625, -0.01611328125, 0.0162353515625, -0.00823974609375, 0.005950927734375, -0.00145721435546875, -0.038818359375, -0.0260009765625, -0.0093994140625, -0.0086669921875, 0.00860595703125, 0.00640869140625, 0.0119018554687...
[ 1250, 4867, 14012, 55769, 3129, 70541, 46667, 502, 42154, 133, 418, 304, 363, 87, 831, 7413, 130370, 19713, 106, 123055, 3395, 23356, 23, 1286 ]
[ 0.1795654296875, 0.2425537109375, 0.13623046875, 0.18896484375, 0.053741455078125, 0.1763916015625, 0.234130859375, 0.150634765625, 0.1739501953125, 0.068359375, 0.026763916015625, 0.0171966552734375, 0.1048583984375, 0.0081787109375, 0.0128936767578125, 0.11260986328125, 0.215332031...
embed
35535649_c0
35535649
prolog
0
Title: How prolog deals with this step-by-step? Problem title: How prolog deals with this step-by-step? Tags: prolog Problem: How prolog deals with this step-by-step? I'm trying to understand prolog but I am stuck with one example, can you explain to me how is prolog going through this call: eli(2,[2,2,1],L) . using th...
How prolog deals with this step-by-step? How prolog deals with this step-by-step? prolog How How prolog deals with this step-by-step? I'm trying to understand prolog but I am stuck with one example, can you explain to me how is prolog going through this call: eli(2,[2,2,1],L) . using those facts: The results are: and I...
[ 0.010009765625, -0.003173828125, -0.0123291015625, 0.0048828125, -0.00171661376953125, 0.003021240234375, -0.005096435546875, 0.005035400390625, 0.01806640625, -0.0245361328125, 0.01507568359375, 0.002593994140625, -0.033447265625, 0.0184326171875, 0.00836181640625, -0.004608154296875,...
[ 11249, 502, 4867, 8, 16765, 678, 903, 29954, 1272, 95528, 32, 31577, 28219, 179933, 1632, 27781, 73342, 3642, 7730, 8305, 11782, 15296, 54753, 304, 76172, 866, 17368, 15824, 50339, 9077, 15400, 129745 ]
[ 0.1121826171875, 0.1893310546875, 0.26220703125, 0.1063232421875, 0.09588623046875, 0.1104736328125, 0.1292724609375, 0.146484375, 0.1064453125, 0.154541015625, 0.0146331787109375, 0.00323486328125, 0.06085205078125, 0.04998779296875, 0.00103759765625, 0.145263671875, 0.111572265625,...
embed
57058014_c0
57058014
prolog
0
Title: String Comparasion Help For Solving Logic Grid Puzzles Problem title: String Comparasion Help For Solving Logic Grid Puzzles Tags: comparison, prolog Problem: String Comparasion Help For Solving Logic Grid Puzzles I am beginner to Prolog language and to solve a logic puzzle I defined age(five). age(six). age(ten...
String Comparasion Help For Solving Logic Grid Puzzles String Comparasion Help For Solving Logic Grid Puzzles comparison prolog Comparasion Help Solving Logic Grid Puzzles String Comparasion Help For Solving Logic Grid Puzzles I am beginner to Prolog language and to solve a logic puzzle I defined I want to write prolog...
[ 0.0027008056640625, 0.000186920166015625, 0.003753662109375, 0.029541015625, -0.005462646484375, 0.0029754638671875, 0.01080322265625, 0.0081787109375, -0.0087890625, -0.0096435546875, 0.01806640625, 0.006683349609375, 0.00531005859375, 0.006011962890625, 0.0068359375, -0.0056457519531...
[ 23351, 214, 113307, 11, 6889, 39527, 1326, 6678, 6496, 50592, 31945, 71, 179277, 225490, 502, 4867, 9842, 1679, 1250, 46876, 86869, 62775, 104192, 61924, 3444, 33022, 18151, 13204, 1884, 43606, 164917, 3501, 37195, 15490, 17368, 101935 ]
[ 0.1986083984375, 0.091796875, 0.1485595703125, 0.0736083984375, 0.0478515625, 0.1171875, 0.015594482421875, 0.057220458984375, 0.02642822265625, 0.102294921875, 0.1107177734375, 0.034423828125, 0.140380859375, 0.171630859375, 0.1488037109375, 0.2164306640625, 0.029876708984375, 0.0...
embed
25633690_c0
25633690
prolog
0
Title: Copy certain characters from a list to another on prolog Problem title: Copy certain characters from a list to another on prolog Tags: prolog, list, copy Problem: Copy certain characters from a list to another on prolog So i have this code which copies everything from a list to another one. How should I modify i...
Copy certain characters from a list to another on prolog Copy certain characters from a list to another on prolog prolog list copy a Copy copy2 Copy certain characters from a list to another on prolog So i have this code which copies everything from a list to another one. How should I modify it in order to copy, lets s...
[ 0.0032806396484375, -0.00079345703125, -0.0140380859375, 0.0294189453125, -0.00567626953125, 0.00634765625, 0.01287841796875, 0.0181884765625, 0.0306396484375, 0.018310546875, 0.012939453125, -0.022705078125, -0.00189971923828125, 0.0260009765625, -0.00860595703125, -0.0024566650390625...
[ 146930, 24233, 124850, 1295, 5303, 47, 15700, 98, 502, 4867, 43658, 304, 903, 18151, 71200, 7, 26818, 1632, 11249, 5608, 2811, 40383, 442, 5117, 6626, 62816, 27781, 3444, 186, 705, 11, 275, 71, 420, 1542, 116, 1193, 2203 ]
[ 0.1876220703125, 0.089599609375, 0.197021484375, 0.088134765625, 0.155029296875, 0.130615234375, 0.072509765625, 0.06201171875, 0.15673828125, 0.218505859375, 0.20654296875, 0.08544921875, 0.015045166015625, 0.1407470703125, 0.1951904296875, 0.0555419921875, 0.1121826171875, 0.0280...
embed
1831143_c0
1831143
prolog
0
Title: Prolog: Finding the second largest element in a list Problem title: Prolog: Finding the second largest element in a list Tags: list, prolog Problem: Prolog: Finding the second largest element in a list I know how to find the largest element of a list—no problem, but how should I go about finding the second large...
Prolog: Finding the second largest element in a list Prolog: Finding the second largest element in a list list prolog Prolog Finding List Val Prolog: Finding the second largest element in a list I know how to find the largest element of a list—no problem, but how should I go about finding the second largest element? Sa...
[ 0.00897216796875, 0.003173828125, 0.019287109375, 0.0123291015625, 0.002655029296875, 0.051025390625, -0.005767822265625, 0.0155029296875, -0.00098419189453125, -0.0027313232421875, 0.019287109375, 0.0089111328125, -0.000461578369140625, -0.0111083984375, 0.01031494140625, 0.0066833496...
[ 1250, 4867, 12, 26040, 214, 70, 17932, 142105, 12830, 23, 5303, 502, 32036, 4769, 3714, 3642, 47, 7413, 111, 2967, 5608, 738, 1672, 90791, 25916, 1653, 2063, 67, 83, 320, 177, 525, 1328, 154663, 32, 42272, 16, 214493, 4817, 100, 5701 ]
[ 0.1312255859375, 0.20166015625, 0.0156402587890625, 0.119873046875, 0.065673828125, 0.0513916015625, 0.2127685546875, 0.2276611328125, 0.2130126953125, 0.029754638671875, 0.1917724609375, 0.084228515625, 0.18115234375, 0.19482421875, 0.0579833984375, 0.04315185546875, 0.021484375, ...
embed
10012749_c0
10012749
prolog
0
Title: tell if a given element is in a list of doubles Problem title: tell if a given element is in a list of doubles Tags: list, tuples, prolog Problem: tell if a given element is in a list of doubles I've got a list of doubles in the form A = [[1,2],[2,3],[3,4],[5,5]] What I'm trying to do is create a function that w...
tell if a given element is in a list of doubles tell if a given element is in a list of doubles list tuples prolog tell if a given element is in a list of doubles I've got a list of doubles in the form A = [[1,2],[2,3],[3,4],[5,5]] What I'm trying to do is create a function that will return true if a number is the firs...
[ 0.01019287109375, -0.01263427734375, 0.027099609375, 0.01513671875, -0.0118408203125, 0.0264892578125, 0.00144195556640625, -0.004638671875, 0.01251220703125, -0.00933837890625, 0.017333984375, 0.033935546875, -0.0184326171875, -0.0137939453125, 0.003936767578125, 0.011474609375, 0.0...
[ 14192, 2174, 34475, 12830, 83, 23, 10, 5303, 111, 41929, 7, 370, 99726, 502, 4867, 4163, 3173, 62, 2203, 133063, 155761, 82449, 125592, 31577, 28282, 32354, 30646, 29568, 14012, 5117, 70, 3060, 137175, 966, 284, 98320, 104116, 37842, 903, ...
[ 0.20166015625, 0.172119140625, 0.1541748046875, 0.212158203125, 0.1280517578125, 0.1695556640625, 0.06878662109375, 0.194091796875, 0.1285400390625, 0.244873046875, 0.133544921875, 0.06463623046875, 0.1678466796875, 0.09814453125, 0.145751953125, 0.0167694091796875, 0.06927490234375,...
embed
10502868_c0
10502868
prolog
0
Title: Lists with Prolog Problem title: Lists with Prolog Tags: prolog Problem: Lists with Prolog I'm learning rooPlog and having some trouble with lists. I want to return a list of classes that are prerequisites for a specified class. Here is what I have so far... prereq(262, 221). prereq(271, 262). prereq(331, 271). ...
Lists with Prolog Lists with Prolog prolog Lists Prolog _G327 Lists with Prolog I'm learning rooPlog and having some trouble with lists. I want to return a list of classes that are prerequisites for a specified class. Here is what I have so far... It works, but appends junk onto the end.
[ 0.01202392578125, 0.0230712890625, 0.018798828125, 0.0084228515625, -0.0146484375, 0.0213623046875, -0.00750732421875, -0.0067138671875, 0.006744384765625, -0.038330078125, 0.0027313232421875, 0.00159454345703125, -0.015869140625, 0.0206298828125, 0.004364013671875, 0.0078125, 0.0228...
[ 32036, 678, 1250, 4867, 502, 363, 3768, 52080, 2062, 31, 683, 63134, 5303, 3444, 30646, 61112, 621, 479, 107, 3181, 100758, 100, 58735, 18507, 2060, 43240, 1284, 114689, 6468, 34002, 188, 3564 ]
[ 0.2269287109375, 0.103271484375, 0.14404296875, 0.22314453125, 0.099609375, 0.0316162109375, 0.1640625, 0.04803466796875, 0.034820556640625, 0.039337158203125, 0.026519775390625, 0.052520751953125, 0.19970703125, 0.041412353515625, 0.1546630859375, 0.19970703125, 0.03570556640625, ...
embed
29471343_c1
29471343
prolog
1
], {lex(A,det)}. adj --> [A], {lex(A,adj)}. subject --> [A], {lex(A,subject)}. lex(this,subject). lex(that,subject). lex(build, v). lex(move, v). lex(walk, v). lex(is,v). lex(block, n). lex(structure,n). lex(where, qw). lex(is, qw). lex(what, qw). lex(the, det). lex(a, det). lex(at, conj). lex(on, conj). where the "wri...
], {lex(A,det)}. adj --> [A], {lex(A,adj)}. subject --> [A], {lex(A,subject)}. lex(this,subject). lex(that,subject). lex(build, v). lex(move, v). lex(walk, v). lex(is,v). lex(block, n). lex(structure,n). lex(where, qw). lex(is, qw). lex(what, qw). lex(the, det). lex(a, det). lex(at, conj). lex(on, conj). where the "wri...
[ 0.018798828125, 0.0267333984375, -0.00836181640625, -0.007171630859375, 0.00086212158203125, 0.0035858154296875, 0.00567626953125, 0.008544921875, 0.0038299560546875, -0.0322265625, 0.0042724609375, 0.00970458984375, -0.0045166015625, -0.003448486328125, 0.027099609375, -0.012145996093...
[ 10114, 4, 74070, 284, 3667, 606, 170, 129908, 712, 28368, 22144, 75161, 75675, 100231, 86673, 177149, 81, 432, 272, 94449, 164, 334, 81409, 137656, 136913, 434, 124409, 2347, 149, 11, 257, 158, 191, 70035, 11583, 32354, 509, 110680, 81887, ...
[ 0.10791015625, 0.0295562744140625, 0.17724609375, 0.111083984375, 0.239013671875, 0.13232421875, 0.2054443359375, 0.1085205078125, 0.059234619140625, 0.2327880859375, 0.06512451171875, 0.1302490234375, 0.1732177734375, 0.1156005859375, 0.09747314453125, 0.140380859375, 0.123291015625...
embed
62201804_c2
62201804
prolog
2
82])) ? creep Fail: (8) go1(a, b, _982) ? creep false. Well, what I don't understand is why we have here the answer below: Exit: (11) member1(b, [b|_1206]) ? creep Exit: (10) member1(b, [a, b|_1206]) ? creep ^ Fail: (9) not(user:member1(b, [a|_982])) ? creep Why does the Prolog not recognize that there is an edge from ...
82])) ? creep Fail: (8) go1(a, b, _982) ? creep false. Well, what I don't understand is why we have here the answer below: Exit: (11) member1(b, [b|_1206]) ? creep Exit: (10) member1(b, [a, b|_1206]) ? creep ^ Fail: (9) not(user:member1(b, [a|_982])) ? creep Why does the Prolog not recognize that there is an edge from ...
[ 0.0203857421875, 0.013916015625, 0.019775390625, 0.0308837890625, -0.002044677734375, 0.01019287109375, -0.002227783203125, -0.018798828125, 0.0133056640625, -0.006134033203125, 0.0130615234375, 0.01361083984375, -0.005096435546875, 0.01214599609375, 0.0115966796875, -0.03564453125, ...
[ 15751, 49512, 254, 190355, 10021, 738, 418, 11, 876, 1126, 121694, 98320, 2301, 18, 28219, 15400, 3688, 35166, 35064, 5443, 217, 21282, 32786, 275, 139652, 17857, 11438, 959, 65918, 27417, 16665, 90173, 44084, 1250, 4867, 125296, 2685, 121303...
[ 0.186279296875, 0.1715087890625, 0.1160888671875, 0.1663818359375, 0.058380126953125, 0.1265869140625, 0.0938720703125, 0.074951171875, 0.1357421875, 0.0950927734375, 0.1878662109375, 0.142578125, 0.008636474609375, 0.03680419921875, 0.105712890625, 0.0750732421875, 0.001678466796875...
embed
59267033_c0
59267033
prolog
0
Title: Prolog going though a list and turning the odd number to even by doubling all the odd numbers in the list Problem title: Prolog going though a list and turning the odd number to even by doubling all the odd numbers in the list Tags: prolog Problem: Prolog going though a list and turning the odd number to even by...
Prolog going though a list and turning the odd number to even by doubling all the odd numbers in the list Prolog going though a list and turning the odd number to even by doubling all the odd numbers in the list prolog Prolog Prolog going though a list and turning the odd number to even by doubling all the odd numbers ...
[ 0.006744384765625, 0.00909423828125, 0.0076904296875, -0.0125732421875, 0.00958251953125, 0.040283203125, -0.020263671875, 0.009521484375, 0.005340576171875, -0.0034637451171875, 0.01116943359375, -0.01123046875, 0.006103515625, 0.005096435546875, 0.0023345947265625, 0.005615234375, ...
[ 1250, 4867, 7730, 21208, 5303, 174548, 70270, 14012, 47, 3853, 54, 34, 79298, 756, 101935, 502, 390, 70, 23, 1353, 866, 418, 339, 10461, 51776, 107730, 892, 26255, 139392, 140992, 304, 98816, 3934, 12638, 3642, 17, 903 ]
[ 0.18603515625, 0.262451171875, 0.0241241455078125, 0.1451416015625, 0.193115234375, 0.1241455078125, 0.240478515625, 0.15478515625, 0.11962890625, 0.2373046875, 0.08154296875, 0.08343505859375, 0.1070556640625, 0.0426025390625, 0.121337890625, 0.1397705078125, 0.0168304443359375, 0...
embed
30834899_c0
30834899
prolog
0
Title: How does the predicate 'append/3' work with an anonymous variable in Prolog? Problem title: How does the predicate 'append/3' work with an anonymous variable in Prolog? Tags: prolog, prolog-anonymous-variable Problem: How does the predicate 'append/3' work with an anonymous variable in Prolog...
How does the predicate 'append/3' work with an anonymous variable in Prolog? How does the predicate 'append/3' work with an anonymous variable in Prolog? prolog prolog-anonymous-variable How Prolog Rest Visited How does the predicate 'append/3' work with an anonymous variable in Prolog? How exactly ...
[ 0.01446533203125, 0.00848388671875, 0.0208740234375, 0.007110595703125, 0.00003981590270996094, 0.025390625, 0.0087890625, 0.01495361328125, 0.0181884765625, -0.0277099609375, 0.0169677734375, -0.0281982421875, -0.0169677734375, -0.0019683837890625, -0.000934600830078125, -0.0114135742...
[ 11249, 1653, 2063, 67, 3768, 9007, 3611, 18113, 4488, 678, 52184, 10821, 77336, 1250, 4867, 502, 66, 45757, 21690, 49756, 98684, 66161, 114689, 71, 27781, 4527, 12477 ]
[ 0.0130615234375, 0.1190185546875, 0.143798828125, 0.04412841796875, 0.05718994140625, 0.086669921875, 0.130126953125, 0.25146484375, 0.10198974609375, 0.0819091796875, 0.1739501953125, 0.033782958984375, 0.2047119140625, 0.136962890625, 0.219482421875, 0.0634765625, 0.027801513671875...
embed
34934337_c0
34934337
prolog
0
Title: Can someone explain this Prolog code Problem title: Can someone explain this Prolog code Tags: list, prolog Problem: Can someone explain this Prolog code aminoseq(X) :- aminoseq(X, []). aminoseq([], X) :- print(X). aminoseq([A|B], X) :- aminotodna(A, Y), append(X, Y, Z), aminoseq(B, Z). This Prolog code allows t...
Can someone explain this Prolog code Can someone explain this Prolog code list prolog Can Prolog Can someone explain this Prolog code This Prolog code allows the user to enter in a list and combines that list with a preset aminotodna list and displays both of the results. I don't understand which part does what... I'd ...
[ 0.018798828125, 0.0267333984375, 0.0019683837890625, 0.048095703125, -0.0028228759765625, 0.0093994140625, 0.0021514892578125, 0.0185546875, 0.01806640625, -0.003662109375, 0.00494384765625, 0.004638671875, -0.00592041015625, 0.023681640625, -0.0036773681640625, -0.0019683837890625, ...
[ 4171, 22008, 73342, 903, 1250, 4867, 18151, 5303, 502, 114864, 38937, 30957, 23, 70163, 678, 26242, 18, 72657, 188, 39200, 44116, 15044, 50339, 2301, 28219, 2831, 14602, 2367, 1884, 3714, 4358 ]
[ 0.12176513671875, 0.08514404296875, 0.21044921875, 0.11358642578125, 0.1920166015625, 0.24072265625, 0.1986083984375, 0.181884765625, 0.12939453125, 0.1341552734375, 0.12646484375, 0.1649169921875, 0.04931640625, 0.14794921875, 0.04241943359375, 0.1431884765625, 0.08758544921875, 0...
embed
36820803_c1
36820803
prolog
1
(c,brown,a). link(a,yellow,t). link(a,red,h). link(a,red,m). link(h,red,r). link(h,yellow,e). link(e,yellow,r). link(e,brown,s). link(e,red,f). link(s,red,p). link(v,yellow,c). link(v,brown,a). link(v,red,m). link(m,brown,h). link(m,brown,e). link(m,yellow,f). link(f,brown,s). link(start,red,m).][1]][1] ON CALL 12 IT G...
(c,brown,a). link(a,yellow,t). link(a,red,h). link(a,red,m). link(h,red,r). link(h,yellow,e). link(e,yellow,r). link(e,brown,s). link(e,red,f). link(s,red,p). link(v,yellow,c). link(v,brown,a). link(v,red,m). link(m,brown,h). link(m,brown,e). link(m,yellow,f). link(f,brown,s). link(start,red,m).][1]][1] ON CALL 12 IT G...
[ 0.0054931640625, 0.00909423828125, -0.011474609375, 0.037109375, 0.0059814453125, 0.0147705078125, -0.0079345703125, 0.01318359375, 0.0255126953125, -0.033447265625, -0.01007080078125, -0.0074462890625, -0.0037841796875, 0.0004558563232421875, 0.01263427734375, -0.0086669921875, -0.0...
[ 15, 238, 4, 140773, 19, 11, 194, 3126, 1033, 41566, 18, 2822, 127, 39, 132, 42, 13, 7, 420, 254, 334, 17137, 25256, 29197, 313, 66437, 427, 5959, 25052, 55766, 23415, 276, 84677, 108049, 572, 6, 151654, 541, 98660, 6706, 241, 43329, ...
[ 0.010650634765625, 0.0677490234375, 0.03790283203125, 0.135498046875, 0.1083984375, 0.09228515625, 0.013519287109375, 0.1854248046875, 0.04022216796875, 0.144287109375, 0.05535888671875, 0.111328125, 0.0927734375, 0.1080322265625, 0.01300048828125, 0.04022216796875, 0.1087646484375, ...
embed
40566662_c0
40566662
prolog
0
Title: Prolog: Find even numbers add them on a list Problem title: Prolog: Find even numbers add them on a list Tags: prolog, append, list Problem: Prolog: Find even numbers add them on a list Write predicate evenNumbers(L1, L2) which is true if the list L1 containing random integers and the list L2 contains even integ...
Prolog: Find even numbers add them on a list Prolog: Find even numbers add them on a list prolog append list Prolog Find Prolog: Find even numbers add them on a list Write predicate evenNumbers(L1, L2) which is true if the list L1 containing random integers and the list L2 contains even integers from L1 . For example: ...
[ -0.0028533935546875, 0.01519775390625, 0.006103515625, -0.01458740234375, -0.00160980224609375, 0.046875, 0.00052642822265625, 0.018310546875, 0.021240234375, -0.027099609375, 0.0228271484375, -0.0228271484375, -0.021240234375, 0.011474609375, 0.01495361328125, 0.01165771484375, 0.01...
[ 1250, 4867, 26040, 3853, 101935, 15190, 2856, 98, 5303, 12, 502, 114689, 10, 601, 18781, 1653, 2063, 67, 18444, 26278, 7, 866, 418, 4, 339, 10461, 29568, 2174, 70541, 214, 96759, 892, 26255, 136, 304, 6, 1528, 30646, 151664, 5, 2646, ...
[ 0.1754150390625, 0.238037109375, 0.147705078125, 0.25146484375, 0.2142333984375, 0.1455078125, 0.051361083984375, 0.052703857421875, 0.175537109375, 0.02117919921875, 0.1365966796875, 0.09881591796875, 0.057220458984375, 0.037933349609375, 0.0772705078125, 0.15869140625, 0.1711425781...
embed
28841131_c0
28841131
prolog
0
Title: SICStus Prolog JIT compiler Problem title: SICStus Prolog JIT compiler Tags: sicstus-prolog, prolog, jit, x86-64 Problem: SICStus Prolog JIT compiler SICStus Prolog 4.3 added a JIT compiler for x86-64 processors. I have two questions regarding the JIT compiler. First, where can I find some documentation (papers,...
SICStus Prolog JIT compiler SICStus Prolog JIT compiler sicstus-prolog prolog jit x86-64 SICStus Prolog JIT x86-64 SICStus Prolog JIT compiler SICStus Prolog 4.3 added a JIT compiler for x86-64 processors. I have two questions regarding the JIT compiler. First, where can I find some documentation (papers, notes, or mem...
[ 0.018310546875, 0.00946044921875, 0.0087890625, -0.00081634521484375, -0.0164794921875, 0.0242919921875, 0.004608154296875, -0.005828857421875, -0.01043701171875, -0.0283203125, -0.0167236328125, 0.026611328125, -0.0272216796875, -0.0031585693359375, 0.017333984375, 0.0076904296875, ...
[ 159, 102198, 2143, 1250, 4867, 821, 6371, 9969, 34759, 26536, 18253, 3454, 502, 890, 18, 1022, 15276, 13307, 80196, 49814, 100, 14543, 4295, 765, 6626, 17582, 7413, 209806, 74377, 73048, 163, 840, 130732, 205969, 4331, 53088, 17932, 831, 89...
[ 0.1331787109375, 0.1265869140625, 0.2425537109375, 0.15771484375, 0.2220458984375, 0.2012939453125, 0.2479248046875, 0.1734619140625, 0.1851806640625, 0.112548828125, 0.2008056640625, 0.0638427734375, 0.071533203125, 0.144775390625, 0.08624267578125, 0.033843994140625, 0.22021484375,...
embed
42892965_c0
42892965
prolog
0
Title: Find the minimum in a mixed list in Prolog Problem title: Find the minimum in a mixed list in Prolog Tags: prolog Problem: Find the minimum in a mixed list in Prolog I am new to prolog, I am just learning about lists and I came across this question . The answer works perfect for a list of integers. minimo([X], X...
Find the minimum in a mixed list in Prolog Find the minimum in a mixed list in Prolog prolog Find Prolog Tail Find the minimum in a mixed list in Prolog I am new to prolog, I am just learning about lists and I came across this question . The answer works perfect for a list of integers. How can I change this code to get...
[ 0.00506591796875, 0.01251220703125, 0.03369140625, 0.01611328125, -0.0147705078125, 0.005950927734375, 0.019775390625, 0.00445556640625, 0.0011749267578125, -0.0096435546875, 0.017822265625, -0.021240234375, 0.0006103515625, -0.00823974609375, 0.01123046875, 0.015380859375, 0.0200195...
[ 26040, 70, 15440, 23, 17664, 297, 5303, 1250, 4867, 502, 1218, 379, 15787, 892, 26255, 15549, 18151, 2046, 19336, 525, 18, 1295 ]
[ 0.114990234375, 0.0694580078125, 0.265380859375, 0.06365966796875, 0.192138671875, 0.1300048828125, 0.16650390625, 0.1219482421875, 0.2073974609375, 0.06292724609375, 0.1134033203125, 0.117431640625, 0.01287841796875, 0.0811767578125, 0.04522705078125, 0.1129150390625, 0.084167480468...
embed
67969185_c0
67969185
prolog
0
Title: Concat a List of Strings with additional Strings in between Problem title: Concat a List of Strings with additional Strings in between Tags: swi-prolog, prolog Problem: Concat a List of Strings with additional Strings in between Here is what I'm searching for. I want to concat a given list for example: list = [a...
Concat a List of Strings with additional Strings in between Concat a List of Strings with additional Strings in between swi-prolog prolog Concat List Strings Hey Concat a List of Strings with additional Strings in between Here is what I'm searching for. I want to concat a given list for example: and I want to concat th...
[ 0.01275634765625, -0.013671875, -0.0086669921875, 0.02880859375, -0.01434326171875, 0.006591796875, -0.003875732421875, 0.01397705078125, 0.004638671875, -0.0020904541015625, -0.022216796875, -0.0172119140625, 0.0019989013671875, 0.0010528564453125, 0.00028228759765625, 0.0038299560546...
[ 1657, 4460, 32036, 23351, 5180, 678, 78301, 23, 17721, 2452, 3454, 4867, 502, 28240, 111, 157318, 3444, 158, 34475, 5303, 73, 3884, 102966, 5701, 214, 16750, 33342, 1884, 7722, 10752 ]
[ 0.1260986328125, 0.2491455078125, 0.1732177734375, 0.2088623046875, 0.136962890625, 0.0269317626953125, 0.151611328125, 0.054931640625, 0.18310546875, 0.1614990234375, 0.0911865234375, 0.1734619140625, 0.1029052734375, 0.00213623046875, 0.017120361328125, 0.03619384765625, 0.03927612...
embed
73604875_c0
73604875
prolog
0
Title: How to replace a sequence of tokens in a DCG grammar in Prolog? Problem title: How to replace a sequence of tokens in a DCG grammar in Prolog? Tags: dcg, prolog Problem: How to replace a sequence of tokens in a DCG grammar in Prolog? I would like to replace a sequence of tokens in a DCG grammar in Prolog. In oth...
How to replace a sequence of tokens in a DCG grammar in Prolog? How to replace a sequence of tokens in a DCG grammar in Prolog? dcg prolog How DCG Prolog How to replace a sequence of tokens in a DCG grammar in Prolog? I would like to replace a sequence of tokens in a DCG grammar in Prolog. In other words replace the se...
[ 0.021728515625, 0.00994873046875, 0.004058837890625, 0.0277099609375, -0.0032806396484375, -0.0037841796875, -0.029296875, 0.011962890625, 0.01416015625, 0.002044677734375, -0.0001983642578125, 0.03125, -0.004608154296875, -0.0036468505859375, 0.021728515625, 0.005340576171875, 0.014...
[ 11249, 47, 91995, 40, 944, 3956, 84694, 391, 56367, 122092, 147, 23, 1250, 4867, 104, 177, 502, 1884, 1614, 6562, 62, 335, 121293, 22144, 284, 23935, 571, 167969, 23113, 8780, 238, 71, 76199, 275 ]
[ 0.0726318359375, 0.1434326171875, 0.1947021484375, 0.07861328125, 0.145263671875, 0.0938720703125, 0.24072265625, 0.09619140625, 0.1968994140625, 0.1422119140625, 0.110595703125, 0.04766845703125, 0.1517333984375, 0.239501953125, 0.009246826171875, 0.06689453125, 0.07568359375, 0.0...
embed
47240583_c0
47240583
prolog
0
Title: List of pair list to on list PROLOG Problem title: List of pair list to on list PROLOG Tags: recursion, list, prolog Problem: List of pair list to on list PROLOG I have one list of lists like this: [[a,b],[b,c],[c,d]] and I want to has [a,b,c]. My code is: unMakeTuple([],_). unMakeTuple([[A,_]|T],Ret):- insertOn...
List of pair list to on list PROLOG List of pair list to on list PROLOG recursion list prolog List PROLOG Ret Ret1 List of pair list to on list PROLOG I have one list of lists like this: [[a,b],[b,c],[c,d]] and I want to has [a,b,c]. My code is: And return me a empty list. Someone can help me? Thank you.
[ 0.0157470703125, 0.01507568359375, 0.008544921875, 0.0235595703125, -0.0079345703125, 0.00836181640625, -0.027099609375, -0.01385498046875, 0.0203857421875, -0.0233154296875, 0.00848388671875, -0.0164794921875, 0.01043701171875, 0.0179443359375, -0.007080078125, 0.0034637451171875, 0...
[ 32036, 111, 80836, 5303, 47, 98, 10514, 47510, 195625, 1830, 502, 4867, 47131, 418, 765, 1632, 1884, 903, 11, 275, 238, 71, 3444, 1556, 18151, 30646, 163, 201505, 4358 ]
[ 0.1873779296875, 0.08154296875, 0.253173828125, 0.2423095703125, 0.170166015625, 0.22412109375, 0.1715087890625, 0.2222900390625, 0.1650390625, 0.042724609375, 0.1221923828125, 0.1795654296875, 0.123046875, 0.0292816162109375, 0.011077880859375, 0.0204010009765625, 0.04193115234375, ...
embed
13667419_c0
13667419
prolog
0
Title: How do I get every consecutive elements from a list in Prolog Problem title: How do I get every consecutive elements from a list in Prolog Tags: prolog Problem: How do I get every consecutive elements from a list in Prolog Let say I have a list [[a,b,c],[d,e,f],[g,h,i]] I want to get every consecutive element an...
How do I get every consecutive elements from a list in Prolog How do I get every consecutive elements from a list in Prolog prolog a How Prolog How do I get every consecutive elements from a list in Prolog Let say I have a list [[a,b,c],[d,e,f],[g,h,i]] I want to get every consecutive element and put it in another pred...
[ 0.005096435546875, 0.000637054443359375, -0.007293701171875, 0.0272216796875, -0.01513671875, 0.037841796875, 0.01519775390625, 0.0147705078125, 0.01287841796875, -0.0419921875, 0.01806640625, 0.0166015625, -0.018798828125, -0.007476806640625, -0.006622314453125, -0.00244140625, 0.00...
[ 11249, 87, 2046, 11907, 148390, 13, 80854, 1295, 5303, 23, 1250, 4867, 54, 502, 71, 420, 177, 127, 14, 3444, 12830, 1653, 2063, 67, 7941, 1733, 20949, 6626 ]
[ 0.05975341796875, 0.006683349609375, 0.1195068359375, 0.1773681640625, 0.2242431640625, 0.08056640625, 0.2181396484375, 0.1038818359375, 0.176025390625, 0.05230712890625, 0.1485595703125, 0.2073974609375, 0.008331298828125, 0.1116943359375, 0.02972412109375, 0.030303955078125, 0.0311...
embed
31970291_c0
31970291
prolog
0
Title: Prolog operators table meaning Problem title: Prolog operators table meaning Tags: prolog Problem: Prolog operators table meaning I'm trying to find a table of prolog operators explained. I found this: http://www.swi-prolog.org/pldoc/man?section=operators But they are not explained. I'm looking more specifically...
Prolog operators table meaning Prolog operators table meaning prolog Prolog Prolog operators table meaning I'm trying to find a table of prolog operators explained. I found this: http://www.swi-prolog.org/pldoc/man?section=operators But they are not explained. I'm looking more specifically for the meaning of: Subsidiar...
[ 0.0257568359375, 0.00384521484375, 0.016845703125, -0.0026397705078125, 0.00738525390625, 0.000667572021484375, 0.0142822265625, 0.00799560546875, -0.00811767578125, 0.006683349609375, 0.001434326171875, -0.0103759765625, -0.00421142578125, 0.00640869140625, -0.002838134765625, 0.01013...
[ 1250, 4867, 39933, 7, 23180, 91084, 502, 189050, 2452, 3454, 29713, 669, 58994, 206469, 183037, 8273, 74922, 9655, 28219, 41872, 69112, 83, 959, 151575, 214, 15044, 13579, 125195, 19441, 297, 711, 1369, 46876 ]
[ 0.1595458984375, 0.2347412109375, 0.2320556640625, 0.061920166015625, 0.232177734375, 0.146484375, 0.1318359375, 0.11962890625, 0.111083984375, 0.06463623046875, 0.01202392578125, 0.0367431640625, 0.004302978515625, 0.1912841796875, 0.0006103515625, 0.03363037109375, 0.02937316894531...
embed
71186722_c3
71186722
prolog
3
edge(j179,j183,210). edge(j179,j40,1190). edge(j185,j184,99.9). edge(j185,j183,510). edge(j184,j205,4530). edge(j185,j204,1325). Code signals: Performance, Shortest, GNU, PROLOG, Path, Seen, check_member, water_shortest_path, MinCost, LowerCost, OtherPath, p10, j10, p335, j61, j20, j40, j50, j60, j101, j103, j105, j10...
edge(j179,j183,210). edge(j179,j40,1190). edge(j185,j184,99.9). edge(j185,j183,510). edge(j184,j205,4530). edge(j185,j204,1325). Code signals: Performance, Shortest, GNU, PROLOG, Path, Seen, check_member, water_shortest_path, MinCost, LowerCost, OtherPath, p10, j10, p335, j61, j20, j40, j50, j60, j101, j103, j105, j10...
[ 0.02685546875, 0.007171630859375, -0.00115203857421875, -0.0103759765625, 0.001373291015625, -0.01397705078125, -0.0155029296875, -0.0050048828125, -0.002105712890625, -0.0020904541015625, 0.0087890625, -0.01373291015625, -0.007232666015625, 0.0108642578125, 0.006683349609375, 0.009582...
[ 121303, 132, 170, 156918, 4, 1819, 363, 88142, 194, 2839, 1662, 108504, 5, 146111, 127915, 176652, 92714, 50258, 617, 143422, 4633, 62946, 147758, 2681, 88942, 28864, 26073, 7, 12, 94030, 82990, 525, 165132, 10514, 47510, 108421, 503, 33, 1...
[ 0.324951171875, 0.03179931640625, 0.17724609375, 0.274658203125, 0.039215087890625, 0.1495361328125, 0.1595458984375, 0.1695556640625, 0.0506591796875, 0.1824951171875, 0.038848876953125, 0.1268310546875, 0.171142578125, 0.2135009765625, 0.0965576171875, 0.1488037109375, 0.0413513183...
embed
25355524_c0
25355524
prolog
0
Title: Square root finding using prolog Problem title: Square root finding using prolog Tags: prolog Problem: Square root finding using prolog I worked on following coding to find square root. But it didn't work. I couldn't find the error. Up to finding the value of Y it's working. The square root part does not. print(...
Square root finding using prolog Square root finding using prolog prolog prolog Square B-Z Square root finding using prolog I worked on following coding to find square root. But it didn't work. I couldn't find the error. Up to finding the value of Y it's working. The square root part does not.
[ 0.02294921875, -0.00830078125, 0.010009765625, 0.029052734375, -0.001861572265625, -0.018310546875, 0.002349853515625, 0.000904083251953125, 0.00494384765625, -0.0059814453125, 0.00799560546875, 0.007568359375, -0.00958251953125, -0.04052734375, -0.003326416015625, -0.0247802734375, ...
[ 68305, 74855, 90791, 17368, 502, 4867, 335, 1511, 79786, 25632, 552, 7413, 108047, 4966, 15935, 18, 4488, 69427, 18499, 10091, 34292, 990, 442, 20697, 2831, 14602, 959 ]
[ 0.1494140625, 0.2164306640625, 0.11279296875, 0.029541015625, 0.1396484375, 0.1959228515625, 0.0960693359375, 0.11376953125, 0.0175933837890625, 0.0906982421875, 0.089111328125, 0.0909423828125, 0.154052734375, 0.0148773193359375, 0.0093994140625, 0.06695556640625, 0.0928955078125, ...
embed
27114671_c1
27114671
prolog
1
). yes yes yes yes yes yes yes ! ---------------------------------------- ! Error 20 : Predicate Not Defined ! Goal : route(_31102,_31104) :- link(_31102,_31104) Aborted | ?- link(a,f). no | ?- route(X,Y). X = a , Y = b ; X = b , Y = c ; X = c , Y = d ; X = f , Y = c ; X = b , Y = e ; X = d , Y = e ; X = e , Y = f ; X ...
). yes yes yes yes yes yes yes ! ---------------------------------------- ! Error 20 : Predicate Not Defined ! Goal : route(_31102,_31104) :- link(_31102,_31104) Aborted | ?- link(a,f). no | ?- route(X,Y). X = a , Y = b ; X = b , Y = c ; X = c , Y = d ; X = f , Y = c ; X = b , Y = e ; X = d , Y = e ; X = e , Y = f ; X ...
[ 0.006988525390625, -0.01409912109375, 0.005889892578125, 0.01470947265625, -0.0166015625, 0.0201416015625, -0.000873565673828125, 0.00049591064453125, 0.0031890869140625, -0.0184326171875, -0.0206298828125, -0.03125, -0.0211181640625, 0.001708984375, 0.01129150390625, 0.01611328125, ...
[ 6, 194, 72272, 711, 110405, 103428, 212059, 387, 152, 7145, 2063, 67, 11205, 262, 5983, 297, 2016, 289, 36439, 454, 5016, 49150, 4, 66947, 15772, 3126, 62, 3422, 3674, 58745, 705, 11, 420, 110, 9, 1542, 1723, 1193, 2203, 10, 990, 876,...
[ 0.005462646484375, 0.2105712890625, 0.22607421875, 0.0975341796875, 0.0167388916015625, 0.0565185546875, 0.26513671875, 0.2384033203125, 0.054840087890625, 0.2216796875, 0.254638671875, 0.18408203125, 0.19677734375, 0.168212890625, 0.2484130859375, 0.170654296875, 0.217041015625, 0...
embed