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
6142484_c0
6142484
prolog
0
Title: How do I return a list in Prolog? Problem title: How do I return a list in Prolog? Tags: prolog, list Problem: How do I return a list in Prolog? Let's say I have these facts: parent(bob, sam). %bob is sam's parent parent(sara, sam). %sara is sam's parent I wanted to find out who were sam 's parents and return th...
How do I return a list in Prolog? How do I return a list in Prolog? prolog list How Prolog list_parents Parent Name How do I return a list in Prolog? Let's say I have these facts: I wanted to find out who were sam 's parents and return them in a list and as such used: What I want to do now is ask the same question but ...
[ 0.0302734375, 0.0081787109375, -0.00390625, 0.019775390625, -0.02880859375, 0.01544189453125, -0.006103515625, -0.00506591796875, 0.00127410888671875, -0.052734375, 0.0230712890625, -0.01544189453125, -0.01129150390625, 0.01068115234375, 0.0096435546875, 0.0047607421875, -0.006164550...
[ 11249, 30646, 10, 5303, 23, 1250, 4867, 54, 87, 502, 99547, 7, 170918, 15757, 15824, 36663, 7413, 1810, 2750, 3542, 1289, 27863, 2856, 11814, 26458, 5701, 9655, 1632, 10750, 37842, 35166, 882, 13 ]
[ 0.080322265625, 0.2366943359375, 0.060699462890625, 0.23291015625, 0.08868408203125, 0.188232421875, 0.25830078125, 0.028472900390625, 0.0212860107421875, 0.1514892578125, 0.191162109375, 0.067626953125, 0.191650390625, 0.1112060546875, 0.06378173828125, 0.027557373046875, 0.04489135...
embed
4380624_c0
4380624
prolog
0
Title: How compute Index of element in a list? Problem title: How compute Index of element in a list? Tags: prolog Problem: How compute Index of element in a list? I am starting to play with prolog, and with a Java background it's really difficult for me so here is a silly question: How will you write an indexOf predic...
How compute Index of element in a list? How compute Index of element in a list? prolog How Index List Element How compute Index of element in a list? I am starting to play with prolog, and with a Java background it's really difficult for me so here is a silly question: How will you write an indexOf predicate able to gi...
[ -0.00579833984375, 0.0087890625, 0.005889892578125, 0.02294921875, -0.0159912109375, 0.01312255859375, 0.004608154296875, 0.00933837890625, 0.01202392578125, -0.03564453125, 0.00799560546875, -0.0152587890625, -0.0145263671875, 0.008056640625, 0.002655029296875, -0.006622314453125, 0...
[ 11249, 9969, 6743, 31471, 111, 12830, 23, 5303, 502, 4867, 32036, 48325, 10, 11301, 41925, 76615, 34844, 12097, 33022, 63262, 132887, 1653, 2063, 67, 19048, 8337, 187, 2481, 57767, 5608, 138, 7108, 32316, 88303, 35773, 3642, 4358 ]
[ 0.0743408203125, 0.12744140625, 0.1148681640625, 0.27880859375, 0.1431884765625, 0.201171875, 0.07769775390625, 0.1759033203125, 0.08990478515625, 0.1500244140625, 0.1558837890625, 0.183837890625, 0.00506591796875, 0.010223388671875, 0.14306640625, 0.0273284912109375, 0.0401306152343...
embed
16157417_c0
16157417
prolog
0
Title: fibonacci implementation in prolog Problem title: fibonacci implementation in prolog Tags: fibonacci, prolog Problem: fibonacci implementation in prolog I'm trying to make my own implementation of the fibonacci sequence. This is what I have: fibo2(N, F) :- fibo2(0, 1, 0, N, F). fibo2(N-F, F, N-1, N, F). fibo2(P,...
fibonacci implementation in prolog fibonacci implementation in prolog fibonacci prolog fibo2 N-F N-1 fibonacci implementation in prolog I'm trying to make my own implementation of the fibonacci sequence. This is what I have: I know there are other implementations but I dont know why this isnt working. When I do a trace...
[ 0.0250244140625, -0.0019683837890625, -0.005706787109375, 0.021240234375, -0.00830078125, 0.01373291015625, -0.007110595703125, -0.00775146484375, -0.01123046875, 0.00872802734375, 0.025146484375, -0.0027008056640625, -0.0169677734375, 0.00848388671875, 0.01116943359375, 0.007385253906...
[ 809, 20990, 52544, 208124, 23, 502, 4867, 837, 304, 541, 919, 5759, 31577, 10002, 40, 944, 3956, 765, 3789, 13319, 3714, 15400, 903, 660, 20697, 144851, 86827, 4958, 5351, 11782, 5608, 104250, 29568, 30646, 98320, 4358, 77947 ]
[ 0.13427734375, 0.1619873046875, 0.2032470703125, 0.203125, 0.045440673828125, 0.134521484375, 0.23583984375, 0.16552734375, 0.1221923828125, 0.044036865234375, 0.09063720703125, 0.09405517578125, 0.031646728515625, 0.053863525390625, 0.0214385986328125, 0.10009765625, 0.0191192626953...
embed
13689956_c0
13689956
prolog
0
Title: Summation of all positive divisors Problem title: Summation of all positive divisors Tags: prolog Problem: Summation of all positive divisors a query sum(X,Y) will answer the summation of all positive divisors of X (excluding X itself) say, sum(12,Y) will answer Y=16 because 1,2,3,4,6 are the divisors of 12. i w...
Summation of all positive divisors Summation of all positive divisors prolog Summation Summation of all positive divisors a query sum(X,Y) will answer the summation of all positive divisors of X (excluding X itself) say, sum(12,Y) will answer Y=16 because 1,2,3,4,6 are the divisors of 12. i was going to implement the f...
[ -0.00982666015625, -0.00286865234375, 0.01708984375, 0.01495361328125, -0.01190185546875, -0.007354736328125, 0.0009613037109375, 0.00830078125, 0.005096435546875, -0.044189453125, 0.0145263671875, -0.015380859375, -0.01141357421875, -0.00933837890625, 0.025634765625, 0.001060485839843...
[ 131150, 1363, 756, 24491, 45, 51858, 111, 502, 4867, 7, 41, 1294, 10554, 1542, 4, 1723, 1221, 35166, 29334, 1193, 158928, 68034, 134186, 990, 1369, 2485, 25568, 363, 128191, 621, 5035, 29479, 1528, 165523, 77336, 509, 959, 34648, 14, 2967...
[ 0.220458984375, 0.06011962890625, 0.1431884765625, 0.21728515625, 0.1553955078125, 0.250732421875, 0.01068115234375, 0.1231689453125, 0.1650390625, 0.052764892578125, 0.126708984375, 0.128173828125, 0.1971435546875, 0.0806884765625, 0.015899658203125, 0.14208984375, 0.0069580078125, ...
embed
66461464_c0
66461464
prolog
0
Title: Searching Prolog Quine that doesnt use clause/2 or write/1? Problem title: Searching Prolog Quine that doesnt use clause/2 or write/1? Tags: prolog, quine Problem: Searching Prolog Quine that doesnt use clause/2 or write/1? The simplest Prolog Quine , that can reproduces its own clause, reads as follows: quine((...
Searching Prolog Quine that doesnt use clause/2 or write/1? Searching Prolog Quine that doesnt use clause/2 or write/1? prolog quine Searching Prolog Quine _22008 _22004 Searching Prolog Quine that doesnt use clause/2 or write/1? The simplest Prolog Quine , that can reproduces its own clause, reads as follows: Is there...
[ 0.01312255859375, 0.0216064453125, -0.00152587890625, 0.0146484375, -0.02783203125, 0.002410888671875, 0.01422119140625, -0.000606536865234375, 0.00848388671875, -0.04541015625, -0.00994873046875, 0.0023040771484375, -0.0172119140625, -0.01324462890625, 0.0223388671875, -0.005157470703...
[ 33086, 214, 1250, 4867, 57418, 13, 450, 22027, 18, 4527, 70731, 12477, 33022, 11583, 502, 569, 86, 16396, 30416, 30362, 831, 42238, 10002, 12301, 15700, 84079, 63399, 107730, 6056, 1528, 33938, 90, 6044 ]
[ 0.169921875, 0.0638427734375, 0.146240234375, 0.2362060546875, 0.1781005859375, 0.1878662109375, 0.00799560546875, 0.03765869140625, 0.0843505859375, 0.0841064453125, 0.1844482421875, 0.18408203125, 0.11474609375, 0.142822265625, 0.1085205078125, 0.177978515625, 0.1248779296875, 0....
embed
52624827_c0
52624827
prolog
0
Title: What does '/1' stands for in Prolog? Problem title: What does '/1' stands for in Prolog? Tags: prolog Problem: What does '/1' stands for in Prolog? I recently started studying and working with Prolog for an application where logic programming is very suited for. In particular, I am woroking w...
What does '/1' stands for in Prolog? What does '/1' stands for in Prolog? prolog What Prolog What does '/1' stands for in Prolog? I recently started studying and working with Prolog for an application where logic programming is very suited for. In particular, I am woroking with SWI-Prolog (v. 7.6.4,...
[ 0.025146484375, 0.0224609375, 0.00037384033203125, 0.0034637451171875, -0.015625, 0.01904296875, 0.01495361328125, 0.0024566650390625, 0.007415771484375, -0.018310546875, -0.002044677734375, -0.006317138671875, -0.0185546875, -0.0186767578125, 0.00689697265625, 0.01336669921875, 0.01...
[ 4865, 3768, 11583, 9157, 7, 100, 23, 1250, 4867, 502, 14602, 25, 20697, 38415, 62775, 56037, 11950, 38969, 10752, 361, 43652, 617, 444, 88235, 1775, 10836, 38245, 111938, 1379, 5481, 91084, 107838, 12477, 18113, 80934, 114122, 1653, 2063, 1...
[ 0.061767578125, 0.1373291015625, 0.255859375, 0.1317138671875, 0.04620361328125, 0.09442138671875, 0.052978515625, 0.200927734375, 0.250732421875, 0.1533203125, 0.004852294921875, 0.0171966552734375, 0.0155792236328125, 0.04107666015625, 0.07440185546875, 0.056182861328125, 0.0383300...
embed
20585789_c0
20585789
prolog
0
Title: How to access facts inside list Problem title: How to access facts inside list Tags: list, prolog Problem: How to access facts inside list I'm trying to extract the elements of a list of pairs, but I'm only able to access the pairs. If I have a list like this: list([p(a,b),p(c,d)]). How can I access the elements...
How to access facts inside list How to access facts inside list list prolog How list_s How to access facts inside list I'm trying to extract the elements of a list of pairs, but I'm only able to access the pairs. If I have a list like this: How can I access the elements a, b, c, d . For example, if I run: I get all the...
[ 0.011962890625, 0.008544921875, 0.013671875, 0.0140380859375, -0.01104736328125, 0.00811767578125, -0.0120849609375, 0.005340576171875, 0.0289306640625, -0.015869140625, 0.0306396484375, 0.01275634765625, -0.0086669921875, -0.01275634765625, 0.00173187255859375, -0.00115966796875, 0....
[ 11249, 47, 17203, 15824, 7, 46132, 5303, 502, 4867, 31577, 125663, 80854, 111, 80836, 4734, 19048, 1884, 903, 831, 10, 876, 501, 104, 11675, 2046, 756, 23, 33022, 79986, 7722 ]
[ 0.098388671875, 0.07574462890625, 0.2332763671875, 0.2301025390625, 0.154052734375, 0.2357177734375, 0.277587890625, 0.1436767578125, 0.1766357421875, 0.06207275390625, 0.1732177734375, 0.167724609375, 0.011962890625, 0.1842041015625, 0.04046630859375, 0.076904296875, 0.0285797119140...
embed
50427673_c0
50427673
prolog
0
Title: Prolog member + predicate call explained Problem title: Prolog member + predicate call explained Tags: member, prolog Problem: Prolog member + predicate call explained I have a hard time understanding member + predicate call. For example when I have a predicate like this: predicate(List) :- member(X, List), some...
Prolog member + predicate call explained Prolog member + predicate call explained member prolog Prolog List Prolog member + predicate call explained I have a hard time understanding member + predicate call. For example when I have a predicate like this: And let's suppose that the predicate someCalculations(X) sometimes...
[ 0.0159912109375, 0.00090789794921875, 0.0283203125, 0.002685546875, -0.0064697265625, 0.0194091796875, 0.03076171875, 0.00787353515625, 0.007568359375, -0.0235595703125, 0.016845703125, 0.007293701171875, -0.00238037109375, -0.002593994140625, 0.019287109375, -0.0135498046875, -0.002...
[ 1250, 4867, 32786, 997, 1653, 2063, 67, 11782, 189050, 502, 32036, 7941, 100094, 139124, 3060, 94553, 16735, 5256, 1542, 68018, 30646, 29568, 98320, 9774, 442, 7279, 5117, 176377, 1193, 43032, 35782, 190647, 24145, 165523 ]
[ 0.1458740234375, 0.20751953125, 0.2412109375, 0.105224609375, 0.1566162109375, 0.212890625, 0.066162109375, 0.1751708984375, 0.142333984375, 0.098388671875, 0.11376953125, 0.008148193359375, 0.086669921875, 0.0341796875, 0.090576171875, 0.1260986328125, 0.1639404296875, 0.110595703...
embed
25528207_c0
25528207
prolog
0
Title: How to print all the facts in prolog Problem title: How to print all the facts in prolog Tags: prolog Problem: How to print all the facts in prolog I am a beginner and I am using SWI Prolog to write a rule to print all the facts about addition of two numbers.The following is the code: addition(X,Y,Z) :- Z is X+Y...
How to print all the facts in prolog How to print all the facts in prolog prolog How How to print all the facts in prolog I am a beginner and I am using SWI Prolog to write a rule to print all the facts about addition of two numbers.The following is the code: And the following is the output: As you can see the output a...
[ 0.0159912109375, 0.006591796875, -0.007049560546875, 0.0179443359375, -0.01348876953125, 0.0067138671875, -0.000080108642578125, -0.01080322265625, 0.005645751953125, -0.0302734375, 0.020751953125, -0.01953125, -0.021728515625, -0.01104736328125, 0.0052490234375, 0.004119873046875, 0...
[ 11249, 47, 28412, 756, 70, 15824, 7, 23, 502, 4867, 1679, 159, 38969, 1250, 33022, 79986, 66044, 6626, 101935, 25632, 18151, 140992, 54753, 304, 29557, 119140, 214, 21320, 132283, 20594, 44691 ]
[ 0.07012939453125, 0.038482666015625, 0.216064453125, 0.1668701171875, 0.1148681640625, 0.2222900390625, 0.1505126953125, 0.08203125, 0.166015625, 0.259033203125, 0.038055419921875, 0.0269927978515625, 0.1689453125, 0.12744140625, 0.0151214599609375, 0.133056640625, 0.166748046875, ...
embed
8240952_c0
8240952
prolog
0
Title: Rule to calculate power of a number when the exponent is Negative in Prolog? Problem title: Rule to calculate power of a number when the exponent is Negative in Prolog? Tags: exponentiation, prolog Problem: Rule to calculate power of a number when the exponent is Negative in Prolog? I have a power function pow t...
Rule to calculate power of a number when the exponent is Negative in Prolog? Rule to calculate power of a number when the exponent is Negative in Prolog? exponentiation prolog Rule Negative Prolog Result Result2 Rule to calculate power of a number when the exponent is Negative in Prolog? I have a power function pow tha...
[ 0.02490234375, -0.021240234375, 0.01300048828125, 0.000728607177734375, 0.00787353515625, 0.01361083984375, -0.005950927734375, -0.0091552734375, 0.027587890625, 0.0022430419921875, 0.0004291534423828125, -0.019287109375, -0.017333984375, 0.0147705078125, 0.013916015625, -0.00093841552...
[ 139118, 74481, 14537, 111, 14012, 3229, 1119, 54137, 221717, 13, 23, 1250, 4867, 83, 78643, 21616, 502, 126684, 47, 67, 32354, 23827, 81887, 34292, 335, 241, 34831, 50218, 757, 351, 80510, 15190, 7225, 40907, 35066 ]
[ 0.19384765625, 0.1605224609375, 0.2208251953125, 0.042816162109375, 0.1353759765625, 0.060211181640625, 0.1097412109375, 0.2100830078125, 0.2218017578125, 0.140625, 0.03997802734375, 0.1336669921875, 0.2132568359375, 0.0665283203125, 0.134765625, 0.001922607421875, 0.07403564453125, ...
embed
49604002_c0
49604002
prolog
0
Title: forming successive list of numbers in Prolog Problem title: forming successive list of numbers in Prolog Tags: prolog Problem: forming successive list of numbers in Prolog I have a list like this [11,12,7,8,9,10,4,1] and need output like [[11,12], [7,10], 4, 1]] . If the count of successive number is more than 2...
forming successive list of numbers in Prolog forming successive list of numbers in Prolog prolog Prolog Back forming successive list of numbers in Prolog I have a list like this [11,12,7,8,9,10,4,1] and need output like [[11,12], [7,10], 4, 1]] . If the count of successive number is more than 2 then need only first and...
[ 0.025390625, 0.01397705078125, -0.0093994140625, 0.031494140625, -0.00146484375, 0.006439208984375, -0.01446533203125, 0.02197265625, 0.0078125, -0.0225830078125, 0.006927490234375, 0.005523681640625, -0.0206298828125, 0.0208740234375, 0.014404296875, -0.00311279296875, -0.0042724609...
[ 3173, 214, 208479, 5303, 101935, 23, 1250, 4867, 502, 26828, 765, 1884, 903, 1662, 1530, 966, 145180, 4, 963, 617, 76172, 3871, 140992, 201, 106, 6, 4263, 54529, 111, 14012, 1286, 3501, 116, 4734, 5117, 136, 4568, 40, 944, 3956, 37842, ...
[ 0.1978759765625, 0.05279541015625, 0.2315673828125, 0.1898193359375, 0.173095703125, 0.08062744140625, 0.17236328125, 0.24072265625, 0.119873046875, 0.135009765625, 0.01904296875, 0.07373046875, 0.049530029296875, 0.1448974609375, 0.16357421875, 0.04718017578125, 0.144775390625, 0....
embed
37529966_c0
37529966
prolog
0
Title: represent "there is X where a(X) is not true" and alike in prolog Problem title: represent "there is X where a(X) is not true" and alike in prolog Tags: logic, prolog Problem: represent "there is X where a(X) is not true" and alike in prolog let's say I have some predicate a/1 , now how would...
represent "there is X where a(X) is not true" and alike in prolog represent "there is X where a(X) is not true" and alike in prolog logic prolog represent "there is X where a(X) is not true" and alike in prolog let's say I have some predicate a/1 , now how would I represent b which is true if a fail...
[ 0.0025787353515625, 0.0047607421875, 0.0169677734375, 0.00138092041015625, -0.02587890625, 0.0216064453125, 0.023193359375, -0.0166015625, 0.0218505859375, -0.00830078125, -0.005035400390625, 0.0086669921875, 0.012939453125, -0.01318359375, 0.01953125, 0.00066375732421875, 0.01672363...
[ 33636, 9319, 13, 83, 1193, 7440, 10, 1542, 959, 29568, 5062, 502, 4867, 62775, 765, 1653, 2063, 11583, 3642, 2806, 876, 3129, 2174, 35782, 34292, 185397, 4358, 80934, 26950, 275, 100, 2499, 98320, 3444, 4488, 3229, 18, 34648, 14, 27686, ...
[ 0.276611328125, 0.0369873046875, 0.021759033203125, 0.1116943359375, 0.118896484375, 0.0670166015625, 0.09283447265625, 0.0927734375, 0.1680908203125, 0.2117919921875, 0.13720703125, 0.1756591796875, 0.227783203125, 0.1309814453125, 0.007293701171875, 0.1317138671875, 0.1585693359375...
embed
6002279_c0
6002279
prolog
0
Title: Prolog: converting atom to new atom Problem title: Prolog: converting atom to new atom Tags: prolog Problem: Prolog: converting atom to new atom I have a problem with predicate which works in that way that it takes list of atoms: nopolfont([to,jest,tekśćik,'!'],L). and in result L = [to,jest,tekscik,'!']. I have...
Prolog: converting atom to new atom Prolog: converting atom to new atom prolog Prolog make_swap Prolog: converting atom to new atom I have a problem with predicate which works in that way that it takes list of atoms: and in result I have problem with make_swap and swap predicates. So far I have: Is there any elegant wa...
[ -0.01324462890625, -0.01171875, 0.0113525390625, -0.01025390625, -0.01153564453125, 0.00421142578125, -0.01153564453125, 0.003265380859375, -0.0036163330078125, 0.010498046875, 0.0223388671875, -0.001953125, 0.00732421875, 0.007049560546875, -0.00213623046875, -0.0164794921875, 0.017...
[ 1250, 4867, 96760, 34627, 47, 3525, 214, 502, 3249, 7, 634, 254, 12, 765, 2967, 1653, 2063, 67, 43240, 3917, 51776, 5303, 111, 16750, 678, 454, 136, 202317, 1636, 2060, 27650, 54, 903 ]
[ 0.1669921875, 0.2391357421875, 0.1456298828125, 0.2257080078125, 0.14111328125, 0.119384765625, 0.048553466796875, 0.115478515625, 0.116455078125, 0.0628662109375, 0.18505859375, 0.154296875, 0.001190185546875, 0.014495849609375, 0.1295166015625, 0.198486328125, 0.228759765625, 0.0...
embed
42933277_c0
42933277
prolog
0
Title: Prolog - ERROR: Out of local stack in linux Problem title: Prolog - ERROR: Out of local stack in linux Tags: transitive-closure, prolog Problem: Prolog - ERROR: Out of local stack in linux I have a very simple program in swipl edge(X,Y) :- edge(X,Z),edge(Z,Y). edge(a,b). edge(a,f). edge(b,c). edge(c,d). edge(g,c...
Prolog - ERROR: Out of local stack in linux Prolog - ERROR: Out of local stack in linux transitive-closure prolog Prolog ERROR Out Prolog - ERROR: Out of local stack in linux I have a very simple program in swipl But when Ι make a query edge(a,c). Ι get a Out of local stack exception. The strange thing is that when I d...
[ 0.025390625, 0.01904296875, -0.0079345703125, 0.0167236328125, -0.00011587142944335938, -0.0240478515625, -0.036376953125, 0.0220947265625, -0.0036773681640625, -0.0703125, 0.02001953125, -0.017333984375, 0.0218505859375, 0.003997802734375, 0.03857421875, 0.017822265625, 0.0194091796...
[ 1250, 4867, 151206, 24638, 13538, 111, 4000, 177261, 23, 11508, 6077, 62621, 5844, 170224, 502, 765, 4552, 8781, 1528, 91, 2452, 2424, 3229, 11393, 3249, 41, 1294, 121303, 11, 238, 131527, 114453, 5701, 54825, 43240, 169123, 51312, 51776, 5...
[ 0.1436767578125, 0.2369384765625, 0.1363525390625, 0.1282958984375, 0.2183837890625, 0.199462890625, 0.2061767578125, 0.2744140625, 0.07177734375, 0.1307373046875, 0.1590576171875, 0.151123046875, 0.10687255859375, 0.19189453125, 0.1126708984375, 0.0101318359375, 0.015716552734375, ...
embed
43331810_c0
43331810
prolog
0
Title: How to check if a certain pattern exists in a list in prolog Problem title: How to check if a certain pattern exists in a list in prolog Tags: list, prolog Problem: How to check if a certain pattern exists in a list in prolog i was trying to implement a prolog predict that checks if a certain pattern say (x,m) e...
How to check if a certain pattern exists in a list in prolog How to check if a certain pattern exists in a list in prolog list prolog How RESULT START How to check if a certain pattern exists in a list in prolog i was trying to implement a prolog predict that checks if a certain pattern say (x,m) exists in a list or m ...
[ 0.0031585693359375, 0.0033721923828125, -0.015869140625, 0.014892578125, -0.0164794921875, 0.0142822265625, 0.007781982421875, 0.01251220703125, 0.0308837890625, -0.03076171875, 0.0155029296875, -0.01556396484375, 0.018798828125, 0.00811767578125, 0.0224609375, 0.01220703125, 0.01269...
[ 11249, 47, 12765, 2174, 24233, 103510, 32316, 7, 23, 5303, 502, 4867, 218849, 188359, 10, 31577, 29479, 92054, 39, 347, 4552, 3564, 54529, 74918, 8306, 35166, 14012, 20028, 13835, 81887 ]
[ 0.043060302734375, 0.0244293212890625, 0.2286376953125, 0.124755859375, 0.1112060546875, 0.279296875, 0.212890625, 0.07379150390625, 0.0802001953125, 0.18798828125, 0.15625, 0.2183837890625, 0.1923828125, 0.1080322265625, 0.004241943359375, 0.00848388671875, 0.034912109375, 0.16455...
embed
27151832_c0
27151832
prolog
0
Title: PreOrder Tree Traversal in Prolog Problem title: PreOrder Tree Traversal in Prolog Tags: binary-tree, prolog, tree-traversal, preorder Problem: PreOrder Tree Traversal in Prolog I have this Prolog predicate for PreOrder traversal of a tree: preOrder(nil, []). preOrder(node(X, nil, nil), [X]). preOrder(node(X, L,...
PreOrder Tree Traversal in Prolog PreOrder Tree Traversal in Prolog binary-tree prolog tree-traversal preorder PreOrder Tree Traversal Prolog PreOrder Tree Traversal in Prolog I have this Prolog predicate for PreOrder traversal of a tree: The problem is, it returns an incomplete list. For example, I get: When it should...
[ 0.0299072265625, -0.004302978515625, -0.000255584716796875, -0.01092529296875, -0.00872802734375, 0.016357421875, -0.00921630859375, -0.026123046875, -0.004302978515625, -0.059326171875, -0.002166748046875, -0.00250244140625, -0.017578125, -0.01141357421875, 0.0269775390625, 0.00576782...
[ 1914, 143045, 56, 101344, 4937, 814, 2317, 1250, 4867, 23, 2394, 6635, 62600, 502, 53201, 1517, 479, 80596, 1653, 2063, 67, 37317, 289, 581, 2967, 30646, 82940, 46485, 5303, 2046, 14847, 442, 5608, 186, 339, 1369, 133063, 363, 80389, 4408...
[ 0.1702880859375, 0.2098388671875, 0.06536865234375, 0.2266845703125, 0.1131591796875, 0.149658203125, 0.102294921875, 0.1741943359375, 0.22412109375, 0.0240478515625, 0.131103515625, 0.06365966796875, 0.193359375, 0.1055908203125, 0.1939697265625, 0.05902099609375, 0.1597900390625, ...
embed
47997123_c0
47997123
prolog
0
Title: Can SWI Prolog program get its facts from the external database? Problem title: Can SWI Prolog program get its facts from the external database? Tags: database, tinkerpop, swi-prolog, prolog Problem: Can SWI Prolog program get its facts from the external database? I am planning SWI Prolog program (semantic natur...
Can SWI Prolog program get its facts from the external database? Can SWI Prolog program get its facts from the external database? database tinkerpop swi-prolog prolog the Can SWI Prolog Can SWI Prolog program get its facts from the external database? I am planning SWI Prolog program (semantic natural language parser) w...
[ 0.0380859375, 0.00970458984375, 0.006134033203125, 0.0123291015625, -0.016357421875, 0.01409912109375, 0.01556396484375, 0.00518798828125, -0.01220703125, -0.056884765625, 0.006591796875, -0.00628662109375, -0.029296875, -0.005096435546875, -0.0002765655517578125, -0.0022125244140625, ...
[ 4171, 159, 38969, 1250, 4867, 1528, 2046, 6863, 15824, 7, 1295, 173591, 63399, 49947, 56, 33554, 91, 2452, 3454, 502, 58136, 5765, 6083, 46876, 366, 2189, 58696, 84079, 133, 73140, 95829, 112820, 7722, 4343, 23, 96679, 179635, 9795, 1430, ...
[ 0.1278076171875, 0.088623046875, 0.265380859375, 0.1732177734375, 0.257568359375, 0.1685791015625, 0.126953125, 0.05181884765625, 0.219970703125, 0.1170654296875, 0.126220703125, 0.19677734375, 0.221923828125, 0.1195068359375, 0.06561279296875, 0.1768798828125, 0.019256591796875, 0...
embed
37451738_c0
37451738
prolog
0
Title: printing polynomial equation in Prolog Problem title: printing polynomial equation in Prolog Tags: prolog Problem: printing polynomial equation in Prolog I am trying to print a polynomial equation given list of terms in Prolog. For example, polynomial([exponent(3,4), exponent(10, 3)]) should be printed out 3X^4 ...
printing polynomial equation in Prolog printing polynomial equation in Prolog prolog Prolog printing polynomial equation in Prolog I am trying to print a polynomial equation given list of terms in Prolog. For example, polynomial([exponent(3,4), exponent(10, 3)]) should be printed out 3X^4 + 10X^3. I wrote below code, t...
[ 0.00579833984375, 0.01953125, -0.00433349609375, -0.004974365234375, -0.00921630859375, 0.026123046875, 0.00836181640625, -0.0011444091796875, -0.01080322265625, 0.007354736328125, 0.01123046875, -0.0167236328125, 0.00433349609375, -0.0037689208984375, -0.01043701171875, 0.007141113281...
[ 2448, 1916, 35874, 1687, 15403, 28, 5490, 2320, 23, 1250, 4867, 502, 31577, 28412, 5303, 111, 69407, 3355, 54137, 82449, 1119, 90980, 8439, 5608, 1810, 138, 1542, 8353, 617, 997, 209, 363, 35064, 18151, 1328, 7103, 4568, 13579, 8108, 1173...
[ 0.1845703125, 0.0183563232421875, 0.1690673828125, 0.1529541015625, 0.14794921875, 0.0236968994140625, 0.1915283203125, 0.059295654296875, 0.026092529296875, 0.1800537109375, 0.23876953125, 0.1099853515625, 0.038665771484375, 0.1888427734375, 0.081787109375, 0.0084228515625, 0.135253...
embed
22418167_c0
22418167
prolog
0
Title: Simple prolog function that calculates area Problem title: Simple prolog function that calculates area Tags: prolog, function Problem: Simple prolog function that calculates area Hi I am new to prolog and I need to write a function called rect_area(Width, Height, Area) that can calculate the area of a rectangle,...
Simple prolog function that calculates area Simple prolog function that calculates area prolog function Simple rect_area Width Height Area Simple prolog function that calculates area Hi I am new to prolog and I need to write a function called rect_area(Width, Height, Area) that can calculate the area of a rectangle, e....
[ 0.0242919921875, -0.004364013671875, 0.00830078125, -0.0072021484375, -0.0101318359375, -0.00811767578125, -0.0263671875, -0.0091552734375, 0.00872802734375, -0.0247802734375, 0.0185546875, -0.035888671875, -0.0191650390625, -0.005157470703125, 0.02685546875, -0.00762939453125, 0.010...
[ 60552, 502, 4867, 32354, 74481, 1636, 16128, 173247, 3464, 58302, 1529, 22553, 79200, 3525, 33022, 454, 1456, 532, 927, 831, 111, 148734, 449, 133, 11853, 83, 759, 9790, 22027, 18, 4488, 11675, 360, 44632, 56, 87, 107730, 110, 176377, 188...
[ 0.1431884765625, 0.11767578125, 0.1983642578125, 0.181640625, 0.1839599609375, 0.037139892578125, 0.203125, 0.17919921875, 0.1868896484375, 0.088134765625, 0.0638427734375, 0.1043701171875, 0.16162109375, 0.0074462890625, 0.073486328125, 0.01763916015625, 0.002197265625, 0.08605957...
embed
71410425_c2
71410425
prolog
2
, 0 #=< T2M + T2E + T2H, T2M + T2E + T2H #=< 4, 0 #=< T3M + T3E + T3H, T3M + T3E + T3H #=< 6, fd_labeling(X). ...will result in X = [0,0,0,0,0,0,0,0,0] ? So Prolog is just fullfilling the minimum condition. To describe the outcome i need i will make it even more simple. Subjects at the school: Math - English - History ...
, 0 #=< T2M + T2E + T2H, T2M + T2E + T2H #=< 4, 0 #=< T3M + T3E + T3H, T3M + T3E + T3H #=< 6, fd_labeling(X). ...will result in X = [0,0,0,0,0,0,0,0,0] ? So Prolog is just fullfilling the minimum condition. To describe the outcome i need i will make it even more simple. Subjects at the school: Math - English - History ...
[ 0.006317138671875, 0.01055908203125, -0.00151824951171875, 0.0223388671875, -0.02392578125, -0.0003509521484375, -0.0155029296875, -0.0028533935546875, -0.00185394287109375, -0.0103759765625, 0.005645751953125, -0.04150390625, 0.0216064453125, 0.009521484375, 0.00732421875, 0.004638671...
[ 757, 468, 1369, 16093, 384, 304, 594, 997, 647, 841, 201, 4, 363, 305, 1238, 71, 152526, 214, 1542, 110641, 16750, 23, 1193, 2203, 2389, 63527, 1250, 4867, 83, 1660, 4393, 116115, 70, 15440, 35431, 5, 98363, 184345, 8781, 94341, 99, 1...
[ 0.1522216796875, 0.072265625, 0.018402099609375, 0.07305908203125, 0.06744384765625, 0.0889892578125, 0.09185791015625, 0.096923828125, 0.068603515625, 0.09979248046875, 0.1171875, 0.00518798828125, 0.078857421875, 0.1309814453125, 0.036895751953125, 0.03961181640625, 0.214599609375,...
embed
74662868_c0
74662868
prolog
0
Title: Why is Prolog&#x27;s failure by negation not considered logical negation? Problem title: Why is Prolog&#x27;s failure by negation not considered logical negation? Tags: logic, negation-as-failure, negation, prolog Problem: Why is Prolog's failure by negation not considered logical negation? In many Prolog guides...
Why is Prolog&#x27;s failure by negation not considered logical negation? Why is Prolog&#x27;s failure by negation not considered logical negation? logic negation-as-failure negation prolog Why Prolog Goal Why is Prolog's failure by negation not considered logical negation? In many Prolog guides the following code is u...
[ 0.0201416015625, 0.0169677734375, 0.0186767578125, 0.004119873046875, -0.0111083984375, 0.01190185546875, 0.014404296875, -0.03125, 0.002166748046875, 0.0013580322265625, -0.01904296875, -0.0004062652587890625, -0.0177001953125, -0.007659912109375, 0.0135498046875, 0.007354736328125, ...
[ 44084, 1250, 4867, 3768, 137578, 390, 108, 125682, 959, 90698, 62775, 289, 162, 120540, 3408, 502, 2016, 17997, 25632, 18151, 58755, 3331, 1363, 57143, 7986, 1631, 137043, 60212 ]
[ 0.07763671875, 0.16748046875, 0.2314453125, 0.0265655517578125, 0.217529296875, 0.107666015625, 0.1746826171875, 0.144775390625, 0.08038330078125, 0.0689697265625, 0.1666259765625, 0.06390380859375, 0.033416748046875, 0.114990234375, 0.029998779296875, 0.0986328125, 0.13427734375, ...
embed
9876197_c0
9876197
prolog
0
Title: testing in the console Problem title: testing in the console Tags: prolog Problem: testing in the console The consult ?- go(c, g). returns false, but states true for ?- go(a, d). . I do not actually understand it, as I have added the proper rules, and for most of them it works. Here are the statements I'm using:...
testing in the console testing in the console prolog FromRoom ToRoom NextRoom testing in the console The consult ?- go(c, g). returns false, but states true for ?- go(a, d). . I do not actually understand it, as I have added the proper rules, and for most of them it works. Here are the statements I'm using:
[ 0.015380859375, 0.0211181640625, 0.01220703125, 0.006805419921875, -0.0021820068359375, 0.006256103515625, -0.012451171875, 0.00830078125, -0.00408935546875, -0.028564453125, 0.0076904296875, -0.01251220703125, -0.0120849609375, -0.01171875, -0.01483154296875, 0.00836181640625, 0.005...
[ 134234, 23, 70, 130250, 502, 4867, 28090, 12724, 306, 717, 4997, 75463, 705, 9, 738, 238, 706, 30646, 98320, 1284, 117249, 29568, 100, 11, 104, 959, 28219, 442, 49814, 27798, 91736, 2684, 43240, 63805, 7, 17368 ]
[ 0.267822265625, 0.0809326171875, 0.007232666015625, 0.25048828125, 0.1455078125, 0.1981201171875, 0.071044921875, 0.156982421875, 0.0810546875, 0.07086181640625, 0.0848388671875, 0.286865234375, 0.03289794921875, 0.009521484375, 0.151123046875, 0.04278564453125, 0.10382080078125, 0...
embed
23116161_c0
23116161
prolog
0
Title: From a module, consult a file in another module Problem title: From a module, consult a file in another module Tags: module, prolog Problem: From a module, consult a file in another module For some reason, in my Prolog module I want to be able to consult a file, but like if it was consulted from another module (...
From a module, consult a file in another module From a module, consult a file in another module module prolog myfile.pl mymodule:foo user:foo From a module, consult a file in another module For some reason, in my Prolog module I want to be able to consult a file, but like if it was consulted from another module (e.g. u...
[ 0.03662109375, -0.0166015625, -0.005584716796875, 0.019287109375, -0.01165771484375, 0.006927490234375, 0.01300048828125, 0.01336669921875, 0.0029296875, -0.060302734375, 0.01025390625, 0.02587890625, -0.00689697265625, -0.00799560546875, 0.0037994384765625, -0.00787353515625, 0.0041...
[ 28090, 88996, 75463, 11435, 23, 15700, 10, 502, 4867, 759, 29822, 2424, 83279, 3584, 31, 38937, 1250, 3444, 19048, 47, 1284, 1884, 147008, 71924, 1176, 3525, 1653, 2063, 67, 13, 11583, 1295, 2071, 903, 7722 ]
[ 0.178955078125, 0.24169921875, 0.273681640625, 0.2244873046875, 0.09686279296875, 0.14111328125, 0.0197601318359375, 0.1422119140625, 0.2047119140625, 0.121337890625, 0.250732421875, 0.1607666015625, 0.161376953125, 0.1539306640625, 0.12939453125, 0.181884765625, 0.1629638671875, 0...
embed
11585372_c0
11585372
prolog
0
Title: How to calculate the length of an element of a list by Prolog Problem title: How to calculate the length of an element of a list by Prolog Tags: prolog, list Problem: How to calculate the length of an element of a list by Prolog I already have the following code: "atom_length(Var, Len) :- length(Var, Len)." I wa...
How to calculate the length of an element of a list by Prolog How to calculate the length of an element of a list by Prolog prolog list How Prolog atom_length Len atom_lengths How to calculate the length of an element of a list by Prolog I already have the following code: I wanna construct a predicate atom_lengths/2 th...
[ 0.00787353515625, 0.0113525390625, -0.0054931640625, 0.019287109375, -0.0142822265625, 0.01251220703125, 0.01226806640625, 0.0279541015625, 0.01080322265625, -0.0419921875, 0.0020904541015625, -0.00823974609375, 0.0191650390625, 0.00653076171875, 0.021728515625, -0.01171875, 0.013916...
[ 11249, 47, 74481, 67, 70, 140909, 111, 12830, 5303, 390, 1250, 4867, 502, 34627, 23986, 927, 18226, 21771, 25632, 18151, 6165, 76, 64549, 1653, 2063, 12477, 5701, 13580, 678, 33022, 11, 5928, 22362, 129745 ]
[ 0.0770263671875, 0.028045654296875, 0.18994140625, 0.07470703125, 0.0160675048828125, 0.22265625, 0.064208984375, 0.1944580078125, 0.201904296875, 0.0760498046875, 0.153564453125, 0.23876953125, 0.1162109375, 0.21484375, 0.17529296875, 0.134765625, 0.1553955078125, 0.05984497070312...
embed
36950018_c0
36950018
prolog
0
Title: Prolog Bad Syntax, expecting operator. Problem title: Prolog Bad Syntax, expecting operator. Tags: prolog, syntax Problem: Prolog Bad Syntax, expecting operator. I keep getting this operator: Syntax error: Operator expected On line 3 of my code. rotationsAndPlayers(Rotations,Maze):- length(Rotations) + length(fi...
Prolog Bad Syntax, expecting operator. Prolog Bad Syntax, expecting operator. prolog syntax Prolog Bad Syntax Operator Rotations Maze Result Prolog Bad Syntax, expecting operator. I keep getting this operator: On line 3 of my code. Where am I going wrong?
[ 0.00982666015625, 0.01300048828125, 0.01263427734375, -0.00179290771484375, -0.001312255859375, 0.019775390625, -0.0198974609375, 0.0087890625, 0.00396728515625, -0.0439453125, -0.00555419921875, -0.02294921875, 0.002288818359375, -0.005615234375, 0.00604248046875, -0.0081787109375, ...
[ 1250, 4867, 12745, 19010, 86531, 41206, 214, 39933, 502, 6002, 150922, 146283, 29678, 13, 126684, 13695, 20949, 903, 2161, 13315, 138, 18151, 7730, 44691 ]
[ 0.1446533203125, 0.2313232421875, 0.15185546875, 0.13330078125, 0.18310546875, 0.1839599609375, 0.11334228515625, 0.2314453125, 0.1007080078125, 0.0950927734375, 0.201416015625, 0.09979248046875, 0.06610107421875, 0.007770538330078125, 0.0823974609375, 0.08642578125, 0.03042602539062...
embed
75009910_c0
75009910
prolog
0
Title: Prolog: indicating which predicate is true in an OR rule Problem title: Prolog: indicating which predicate is true in an OR rule Tags: prolog Problem: Prolog: indicating which predicate is true in an OR rule In SWI-Prolog I have some facts and I have rule that is composed of those facts in a disjunction like so:...
Prolog: indicating which predicate is true in an OR rule Prolog: indicating which predicate is true in an OR rule prolog Prolog Prolog: indicating which predicate is true in an OR rule In SWI-Prolog I have some facts and I have rule that is composed of those facts in a disjunction like so: This is all fine and all, and...
[ 0.0179443359375, 0.00799560546875, 0.003814697265625, 0.025390625, -0.0238037109375, 0.017578125, -0.00008440017700195312, 0.001861572265625, -0.007080078125, -0.0118408203125, 0.020751953125, -0.01416015625, -0.01385498046875, 0.00775146484375, 0.0118408203125, 0.017333984375, 0.006...
[ 1250, 4867, 12, 114141, 214, 3129, 1653, 2063, 67, 83, 29568, 23, 33172, 79986, 502, 142, 159, 38969, 10752, 765, 3060, 15824, 150350, 8382, 2837, 17043, 1884, 221, 3293, 756, 5885, 136, 3229, 41, 1294, 2046, 903, 32195, 3917, 33022, 10...
[ 0.189453125, 0.2578125, 0.00421142578125, 0.1826171875, 0.05694580078125, 0.11083984375, 0.2088623046875, 0.269775390625, 0.147216796875, 0.07940673828125, 0.2156982421875, 0.079345703125, 0.26318359375, 0.20947265625, 0.14501953125, 0.0146942138671875, 0.026519775390625, 0.1828613...
embed
78400905_c1
78400905
prolog
1
ed],[ [[I,J,K],[A,B,C],Out] | Moves ]). Legal is whether or not a move can be made without a missionary being eaten: legal([B,A,_]) :- (A =< B ; B = 0), C is 3-A, D is 3-B, (C =< D; D = 0). And move involves each of the rules dictating how the missionaries and cannibals can move. How can I create a solution that uses D...
ed],[ [[I,J,K],[A,B,C],Out] | Moves ]). Legal is whether or not a move can be made without a missionary being eaten: legal([B,A,_]) :- (A =< B ; B = 0), C is 3-A, D is 3-B, (C =< D; D = 0). And move involves each of the rules dictating how the missionaries and cannibals can move. How can I create a solution that uses D...
[ 0.01190185546875, 0.01312255859375, 0.01092529296875, 0.018310546875, -0.010498046875, 0.01507568359375, -0.032958984375, 0.01214599609375, -0.003173828125, -0.0181884765625, -0.00872802734375, -0.01385498046875, -0.0022430419921875, 0.00860595703125, 0.007293701171875, -0.001388549804...
[ 2223, 568, 1375, 605, 284, 571, 441, 79858, 135828, 7, 51825, 83, 36766, 959, 25813, 831, 7228, 15490, 29752, 6635, 8035, 73203, 33, 8437, 454, 15772, 2203, 16093, 335, 757, 313, 5691, 391, 194, 83687, 12638, 91736, 28214, 11, 10484, 13...
[ 0.12744140625, 0.052978515625, 0.09283447265625, 0.04364013671875, 0.0865478515625, 0.08258056640625, 0.02203369140625, 0.205322265625, 0.197265625, 0.0631103515625, 0.256103515625, 0.062744140625, 0.041748046875, 0.009796142578125, 0.2210693359375, 0.0845947265625, 0.0665283203125, ...
embed
26542140_c0
26542140
prolog
0
Title: How to show that a clause is derivable from a set of clauses in Prolog? Problem title: How to show that a clause is derivable from a set of clauses in Prolog? Tags: prolog, logic, first-order-logic Problem: How to show that a clause is derivable from a set of clauses in Prolog? Using the logic programming notati...
How to show that a clause is derivable from a set of clauses in Prolog? How to show that a clause is derivable from a set of clauses in Prolog? prolog logic first-order-logic a How Prolog How to show that a clause is derivable from a set of clauses in Prolog? Using the logic programming notation, given the following cl...
[ 0.0216064453125, 0.0294189453125, 0.006011962890625, 0.0235595703125, -0.00726318359375, -0.009033203125, -0.0031280517578125, -0.00933837890625, 0.018310546875, -0.022705078125, -0.009033203125, 0.0140380859375, 0.00007295608520507812, -0.00347900390625, -0.006072998046875, -0.0046997...
[ 11249, 7639, 70731, 13, 30057, 2661, 5423, 90, 1250, 4867, 1295, 23, 502, 62775, 80596, 137043, 83, 56037, 110, 7722, 103608, 10336, 313, 5117, 14361, 15659, 25, 161740, 683, 64, 2737, 1542, 678, 122, 5844, 391 ]
[ 0.009490966796875, 0.1656494140625, 0.217041015625, 0.12451171875, 0.2122802734375, 0.1578369140625, 0.1201171875, 0.034149169921875, 0.1585693359375, 0.2303466796875, 0.0693359375, 0.01678466796875, 0.06317138671875, 0.1195068359375, 0.06494140625, 0.06591796875, 0.01251220703125, ...
embed
8863127_c0
8863127
prolog
0
Title: How do I set Aquamacs to use Prolog mode? Problem title: How do I set Aquamacs to use Prolog mode? Tags: prolog, aquamacs, emacs Problem: How do I set Aquamacs to use Prolog mode? I'm new to Emacs/Aquamacs, and want to use it to program in Prolog. My filename ends with ".pl" and Aquamacs automatically assumes it...
How do I set Aquamacs to use Prolog mode? How do I set Aquamacs to use Prolog mode? prolog aquamacs emacs How Aquamacs Prolog How do I set Aquamacs to use Prolog mode? I'm new to Emacs/Aquamacs, and want to use it to program in Prolog. My filename ends with ".pl" and Aquamacs automatically assumes it's a Perl file. How...
[ 0.0205078125, -0.0091552734375, 0.012939453125, 0.01495361328125, -0.005279541015625, 0.0166015625, 0.0010986328125, 0.007354736328125, 0.0087890625, -0.01470947265625, 0.009765625, 0.0107421875, -0.003326416015625, -0.007568359375, 0.0103759765625, -0.034423828125, -0.005615234375, ...
[ 11249, 87, 5423, 47173, 35572, 7, 47, 4527, 1250, 4867, 13736, 54, 502, 50895, 352, 2263, 3525, 85269, 4439, 284, 20538, 3444, 1528, 23, 11435, 11627, 3564, 5, 2424, 191082, 41591, 442, 908, 141, 15549, 64457, 3714, 10932, 176005, 27958, ...
[ 0.066162109375, 0.0155181884765625, 0.1595458984375, 0.2044677734375, 0.2393798828125, 0.1566162109375, 0.0673828125, 0.097900390625, 0.20166015625, 0.2568359375, 0.2061767578125, 0.017974853515625, 0.119384765625, 0.12353515625, 0.03204345703125, 0.1732177734375, 0.046905517578125, ...
embed
71595015_c0
71595015
prolog
0
Title: pick up even numbers from a list Problem title: pick up even numbers from a list Tags: prolog Problem: pick up even numbers from a list Define the rule filterevens(LST0, LST1). This rule describes how the list LST0 relates to the list LST1, which consists of only even elements of LST0. I need to pick up the even...
pick up even numbers from a list pick up even numbers from a list prolog a pick up even numbers from a list Define the rule filterevens(LST0, LST1). This rule describes how the list LST0 relates to the list LST1, which consists of only even elements of LST0. I need to pick up the even numbers from a list, And I got thi...
[ -0.00390625, 0.03662109375, -0.00347900390625, -0.013916015625, 0.00439453125, 0.01153564453125, 0.0020294189453125, 0.0234375, 0.009033203125, -0.036865234375, 0.016845703125, -0.0191650390625, 0.0018157958984375, 0.01141357421875, 0.00482177734375, 0.02490234375, 0.02001953125, 0...
[ 39580, 1257, 3853, 101935, 1295, 5303, 502, 4867, 64552, 79986, 46312, 26301, 7, 866, 8545, 2389, 339, 17727, 98363, 33444, 70, 418, 58055, 4734, 80854, 3871, 3229, 107730, 83, 442, 831, 8337, 163, 26785, 35166, 37842, 22304, 18499, 54, 1...
[ 0.1798095703125, 0.1507568359375, 0.25390625, 0.208251953125, 0.1114501953125, 0.2342529296875, 0.12548828125, 0.170166015625, 0.1123046875, 0.18701171875, 0.2249755859375, 0.21484375, 0.083984375, 0.0528564453125, 0.15234375, 0.1473388671875, 0.07293701171875, 0.110107421875, 0....
embed
5277263_c0
5277263
prolog
0
Title: Good IDE to get started with prolog Problem title: Good IDE to get started with prolog Tags: prolog Problem: Good IDE to get started with prolog I need to start learning Prolog for my job. I haven't used Prolog before and my company needs to build a program that will use Prolog. So the program will be used comme...
Good IDE to get started with prolog Good IDE to get started with prolog prolog Good IDE Good IDE to get started with prolog I need to start learning Prolog for my job. I haven't used Prolog before and my company needs to build a program that will use Prolog. So the program will be used commercially. So some questions: ...
[ 0.0208740234375, -0.00811767578125, 0.0003566741943359375, 0.017333984375, -0.0062255859375, 0.03515625, 0.007049560546875, 0.0034942626953125, 0.00506591796875, -0.0439453125, 0.0208740234375, 0.0120849609375, -0.0279541015625, 0.01397705078125, 0.005950927734375, -0.005950927734375, ...
[ 18621, 36497, 47, 2046, 26859, 678, 502, 4867, 3871, 4034, 52080, 1250, 100, 12447, 38246, 18, 11814, 8108, 14380, 27117, 45367, 1528, 4527, 60091, 17582, 101790, 9969, 34759, 1340, 103391, 18852, 22109, 238, 14602, 501, 5570, 111, 49782, 1...
[ 0.1541748046875, 0.2447509765625, 0.07470703125, 0.1207275390625, 0.164306640625, 0.1383056640625, 0.191162109375, 0.296875, 0.06768798828125, 0.09222412109375, 0.10205078125, 0.2188720703125, 0.0465087890625, 0.1287841796875, 0.034393310546875, 0.015594482421875, 0.089599609375, 0...
embed
16526617_c0
16526617
prolog
0
Title: How to print square of n*n given characters in prolog? Problem title: How to print square of n*n given characters in prolog? Tags: printing, prolog Problem: How to print square of n*n given characters in prolog? Write a Prolog program to print out a square of n*n given characters on the screen. Call your predica...
How to print square of n*n given characters in prolog? How to print square of n*n given characters in prolog? printing prolog How Yes How to print square of n*n given characters in prolog? Write a Prolog program to print out a square of n*n given characters on the screen. Call your predicate square/2. The first argumen...
[ 0.0155029296875, 0.002838134765625, 0.0167236328125, 0.01446533203125, -0.0107421875, 0.01055908203125, 0.00180816650390625, 0.00970458984375, -0.00830078125, 0.0123291015625, 0.00714111328125, -0.01422119140625, -0.0108642578125, -0.00213623046875, -0.0208740234375, -0.01953125, 0.0...
[ 11249, 47, 28412, 108047, 111, 653, 1639, 19, 34475, 124850, 23, 502, 4867, 2448, 1916, 32635, 1250, 1528, 1810, 49119, 26265, 1653, 2063, 12477, 5117, 10750, 5608, 67890, 892, 1505, 17932, 62816, 13579, 297, 30698, 46876, 22027, 18, 4488, ...
[ 0.0767822265625, 0.03265380859375, 0.2130126953125, 0.2308349609375, 0.1490478515625, 0.070068359375, 0.16455078125, 0.09210205078125, 0.12744140625, 0.1905517578125, 0.07403564453125, 0.1629638671875, 0.2286376953125, 0.1451416015625, 0.0262908935546875, 0.0672607421875, 0.144653320...
embed
47974674_c0
47974674
prolog
0
Title: SWI Prolog vs. GNU Prolog - CLP(FD) issues under SWI Problem title: SWI Prolog vs. GNU Prolog - CLP(FD) issues under SWI Tags: clp, clpfd, gnu-prolog, prolog, swi-prolog Problem: SWI Prolog vs. GNU Prolog - CLP(FD) issues under SWI I wrote a quick predicate in Prolog trying out CLP(FD) and its ability to solve s...
SWI Prolog vs. GNU Prolog - CLP(FD) issues under SWI SWI Prolog vs. GNU Prolog - CLP(FD) issues under SWI clp clpfd gnu-prolog prolog swi-prolog SWI Prolog GNU CLP A-B SWI Prolog vs. GNU Prolog - CLP(FD) issues under SWI I wrote a quick predicate in Prolog trying out CLP(FD) and its ability to solve systems of equation...
[ 0.0177001953125, 0.00136566162109375, 0.00811767578125, 0.00927734375, -0.0198974609375, -0.017578125, 0.00701904296875, -0.0111083984375, 0.01177978515625, -0.00011682510375976562, -0.0005035400390625, -0.00982666015625, 0.00274658203125, 0.0177001953125, 0.0108642578125, 0.0089721679...
[ 159, 38969, 1250, 4867, 20209, 165132, 313, 37352, 98553, 37348, 1379, 33139, 254, 104155, 3454, 502, 91, 2452, 62, 9, 571, 54397, 63773, 1653, 2063, 31577, 1810, 132, 81273, 86869, 76519, 13722, 11782, 23, 2046, 162, 26785, 35166, 4865, ...
[ 0.1065673828125, 0.26318359375, 0.17626953125, 0.236328125, 0.1802978515625, 0.262451171875, 0.047027587890625, 0.2181396484375, 0.1842041015625, 0.1585693359375, 0.14404296875, 0.01776123046875, 0.1044921875, 0.180419921875, 0.1204833984375, 0.10552978515625, 0.002197265625, 0.169...
embed
22278517_c0
22278517
prolog
0
Title: Out of local stack in Prolog Problem title: Out of local stack in Prolog Tags: stack, prolog Problem: Out of local stack in Prolog I right now have the following predicate which keeps giving me: ERROR: Out of local stack equality(First,Second,Third,Range):- mash(First,Second,Third,Range,X), mash(First,Second,Thi...
Out of local stack in Prolog Out of local stack in Prolog stack prolog Out Prolog ERROR First Second Third Range Out of local stack in Prolog I right now have the following predicate which keeps giving me: ERROR: Out of local stack I know that all of the functions work correctly. It is supposed to output either true or...
[ 0.017822265625, 0.01239013671875, -0.00823974609375, 0.03564453125, 0.0028076171875, -0.002227783203125, -0.02490234375, 0.0177001953125, 0.010986328125, -0.017333984375, 0.01165771484375, 0.000942230224609375, 0.02734375, -0.0181884765625, 0.047607421875, 0.00897216796875, -0.010803...
[ 13538, 111, 4000, 177261, 1250, 4867, 23, 502, 151206, 24638, 23972, 77648, 198387, 142462, 1653, 2063, 13695, 3714, 756, 32354, 4488, 26785, 134598, 140992, 29568, 98320, 105950, 18499, 444, 20594, 44691, 27781 ]
[ 0.1993408203125, 0.21240234375, 0.200927734375, 0.265869140625, 0.151611328125, 0.252197265625, 0.014129638671875, 0.0938720703125, 0.153076171875, 0.117919921875, 0.05242919921875, 0.101806640625, 0.1627197265625, 0.1900634765625, 0.02398681640625, 0.062744140625, 0.008270263671875,...
embed
6802721_c0
6802721
prolog
0
Title: prolog atom concat swi and yap prolog Problem title: prolog atom concat swi and yap prolog Tags: iso-prolog, yap, prolog Problem: prolog atom concat swi and yap prolog input : run([p(X,Y,Z),h(Z,P,Q)],Out). code: :- ensure_loaded(library(lists)). run([X|Y],Out) :- X =.. [Fct|Args], X =..Total, length(Args,L), con...
prolog atom concat swi and yap prolog prolog atom concat swi and yap prolog iso-prolog yap prolog Out ensure_loaded Fct Args Total abs_ Fct_A abs_3 prolog atom concat swi and yap prolog input : code: on swi prolog i get the right answer: on yap prolog fail. Seen that i should use yap. what i have to use instead of conc...
[ 0.036376953125, 0.00018596649169921875, 0.000530242919921875, 0.03173828125, -0.0250244140625, 0.005523681640625, 0.00015354156494140625, 0.04052734375, -0.00140380859375, -0.044677734375, 0.0211181640625, -0.01116943359375, -0.01092529296875, -0.0223388671875, 0.00860595703125, -0.014...
[ 502, 4867, 34627, 158, 4460, 2452, 136, 15850, 13882, 3454, 13538, 63284, 63033, 563, 15390, 1172, 9405, 33867, 43719, 284, 363, 107730, 18151, 98, 91, 7108, 35782, 33, 5608, 4527, 2367, 765, 64457, 111, 2055, 866, 919, 37842, 40899, 1146...
[ 0.1571044921875, 0.20947265625, 0.2110595703125, 0.143310546875, 0.2529296875, 0.1881103515625, 0.056732177734375, 0.21923828125, 0.072998046875, 0.112060546875, 0.0703125, 0.1790771484375, 0.0919189453125, 0.023651123046875, 0.0855712890625, 0.10986328125, 0.0992431640625, 0.11804...
embed
73997204_c0
73997204
prolog
0
Title: Prolog, count how many different values there are in a list Problem title: Prolog, count how many different values there are in a list Tags: prolog Problem: Prolog, count how many different values there are in a list I'm new in prolog, and I wanted to create a "function" to count how many different values I have...
Prolog, count how many different values there are in a list Prolog, count how many different values there are in a list prolog Prolog Prolog, count how many different values there are in a list I'm new in prolog, and I wanted to create a "function" to count how many different values I have in a list. I've made this pre...
[ 0.0086669921875, 0.000202178955078125, -0.0004711151123046875, 0.00799560546875, -0.00141143798828125, -0.00146484375, -0.0196533203125, 0.00439453125, 0.0203857421875, -0.0120849609375, 0.004547119140625, -0.02734375, 0.0186767578125, 0.005462646484375, 0.007354736328125, 0.0129394531...
[ 1250, 4867, 54529, 3642, 5941, 12921, 142424, 2685, 621, 23, 5303, 10, 502, 3525, 36663, 28282, 137175, 47, 765, 1653, 2063, 67, 3622, 14012, 28960, 17569, 7722, 7225, 759, 83, 133063, 155761, 70, 35166, 2806, 186, 1031, 10176, 4358 ]
[ 0.1697998046875, 0.245849609375, 0.203369140625, 0.09228515625, 0.1422119140625, 0.258544921875, 0.240478515625, 0.1171875, 0.095703125, 0.1053466796875, 0.2266845703125, 0.03228759765625, 0.1478271484375, 0.0433349609375, 0.0271148681640625, 0.046356201171875, 0.1585693359375, 0.0...
embed
17281382_c0
17281382
prolog
0
Title: Search a string in a file in Prolog Problem title: Search a string in a file in Prolog Tags: prolog Problem: Search a string in a file in Prolog I must search a string in a file, and i assert a fact if the term is present. For example My file: title"Fast and furious" year"2013" actor"Vin Diesel" assert(title(Fas...
Search a string in a file in Prolog Search a string in a file in Prolog prolog Search Prolog Fast Vin Diesel Furious Search a string in a file in Prolog I must search a string in a file, and i assert a fact if the term is present. For example My file: How can I do? EDIT: Is it possibile extract a part of a string? I wo...
[ 0.01458740234375, 0.003936767578125, -0.000156402587890625, 0.0224609375, -0.017333984375, 0.00885009765625, 0.01312255859375, 0.01458740234375, -0.003631591796875, -0.0283203125, 0.005859375, 0.023193359375, -0.034423828125, -0.00836181640625, 0.0198974609375, 0.0260009765625, 0.010...
[ 33086, 10, 79315, 23, 11435, 1250, 4867, 502, 25290, 11751, 101114, 7680, 93905, 87, 8110, 33938, 237, 33657, 15824, 2174, 13579, 83, 13379, 27781, 2646, 11249, 831, 54, 172864, 14575, 125663, 2831, 111, 2046, 4734, 44, 919, 4438, 136, 28...
[ 0.25927734375, 0.062286376953125, 0.27734375, 0.121826171875, 0.2425537109375, 0.1939697265625, 0.269287109375, 0.150634765625, 0.14013671875, 0.199462890625, 0.204345703125, 0.1812744140625, 0.1895751953125, 0.01690673828125, 0.092529296875, 0.2388916015625, 0.0732421875, 0.198852...
embed
64914187_c0
64914187
prolog
0
Title: Retrieve Items in Prolog Problem title: Retrieve Items in Prolog Tags: list, prolog Problem: Retrieve Items in Prolog Say I have this knowledge base: step('pancakes', 1, 'mix butter and sugar in a bowl', [butter, sugar], [bowl]). step('pancakes', 2, 'add eggs', [eggs], []). step('pancakes', 3, 'mix flour and bak...
Retrieve Items in Prolog Retrieve Items in Prolog list prolog Retrieve Items Prolog Retrieve Items in Prolog Say I have this knowledge base: How do I make a predicate that retrieves all the ingredients for all the steps of the recipe? So if I would make a rule retrieveIngredients(X,Y). and ask retrieveIngredients('panc...
[ 0.00089263916015625, -0.015625, 0.01025390625, 0.01092529296875, 0.00335693359375, 0.03857421875, 0.00054931640625, 0.0179443359375, 0.007232666015625, -0.03466796875, 0.017333984375, -0.000530242919921875, -0.01708984375, -0.01068115234375, 0.009033203125, 0.00830078125, -0.00201416...
[ 200451, 78426, 23, 1250, 4867, 5303, 502, 25916, 51359, 3647, 11249, 3249, 1653, 2063, 67, 456, 97351, 3132, 756, 145170, 100, 98441, 48564, 79986, 3996, 3134, 242238, 1542, 1723, 26458, 3180, 107111, 3642, 19048, 990, 2203, 978, 3055, 2507...
[ 0.271484375, 0.26025390625, 0.037628173828125, 0.1910400390625, 0.2763671875, 0.1519775390625, 0.1292724609375, 0.005218505859375, 0.083984375, 0.09716796875, 0.038238525390625, 0.0859375, 0.170654296875, 0.248046875, 0.150390625, 0.1092529296875, 0.1776123046875, 0.0684814453125, ...
embed
71786981_c0
71786981
prolog
0
Title: How to bi-unify a term&#x27;s operator in Prolog? Problem title: How to bi-unify a term&#x27;s operator in Prolog? Tags: prolog Problem: How to bi-unify a term's operator in Prolog? I just asked the question in How to unify a term's operator in Prolog? and got good answers. However, it doesn't completely solve m...
How to bi-unify a term&#x27;s operator in Prolog? How to bi-unify a term&#x27;s operator in Prolog? prolog How Prolog Expr ERROR Arguments How to bi-unify a term's operator in Prolog? I just asked the question in How to unify a term's operator in Prolog? and got good answers. However, it doesn't completely solve my pro...
[ 0.01416015625, 0.01312255859375, 0.0302734375, -0.0030364990234375, 0.000274658203125, -0.006866455078125, 0.0140380859375, 0.00396728515625, -0.004150390625, -0.0201416015625, 0.009765625, -0.00213623046875, 0.0142822265625, -0.0128173828125, 0.015380859375, -0.00188446044921875, -0...
[ 11249, 333, 309, 40383, 13579, 3768, 39933, 1250, 4867, 47, 23, 502, 42, 151206, 24638, 112140, 9, 7, 51, 86869, 2967, 2203, 5, 4734, 43240, 100, 11001, 8752, 27781, 15673, 41, 1294, 30646 ]
[ 0.064453125, 0.220947265625, 0.141845703125, 0.1834716796875, 0.2227783203125, 0.11962890625, 0.264892578125, 0.1534423828125, 0.251708984375, 0.022216796875, 0.05987548828125, 0.082275390625, 0.02294921875, 0.06292724609375, 0.04412841796875, 0.1322021484375, 0.011627197265625, 0....
embed
45404805_c0
45404805
prolog
0
Title: BumbleBEE SAT-solver compilation Problem title: BumbleBEE SAT-solver compilation Tags: sat-solvers, sat, swi-prolog, prolog, artificial-intelligence Problem: BumbleBEE SAT-solver compilation Code signals: Solver.h:27:0, pl-minisat.cpp:6, /core/Solver.h:27:0, Solver.cc:24, BumbleBEE, SAT-solver, Options.h:285:29,...
BumbleBEE SAT-solver compilation BumbleBEE SAT-solver compilation sat-solvers sat swi-prolog prolog artificial-intelligence Solver.h:27:0 pl-minisat.cpp:6 /core/Solver.h:27:0 Solver.cc:24 BumbleBEE SAT-solver Options.h:285:29 Wliteral-suffix PRIi64 range.begin Options.h:291:29 range.end Options.h:293:25 pl-minisat.obj:...
[ 0.0137939453125, 0.0194091796875, 0.007781982421875, -0.0027008056640625, -0.0283203125, 0.015625, -0.0037078857421875, -0.025634765625, -0.0306396484375, 0.0064697265625, -0.0322265625, 0.01397705078125, 0.0027618408203125, 0.019287109375, 0.0269775390625, -0.0032501220703125, 0.013...
[ 667, 40099, 20090, 647, 75210, 86918, 42, 98352, 11736, 8748, 7864, 2452, 3454, 4867, 502, 66733, 130687, 6678, 814, 127, 27592, 53861, 6456, 65015, 257, 6366, 910, 30854, 102588, 25732, 152448, 101800, 29223, 601, 39798, 77745, 55923, 29852,...
[ 0.0909423828125, 0.1422119140625, 0.207275390625, 0.0977783203125, 0.22265625, 0.1708984375, 0.103515625, 0.1829833984375, 0.1798095703125, 0.1412353515625, 0.0865478515625, 0.134521484375, 0.1171875, 0.225830078125, 0.139892578125, 0.080322265625, 0.0894775390625, 0.1392822265625,...
embed
27363548_c0
27363548
prolog
0
Title: Prolog list elements editing Problem title: Prolog list elements editing Tags: prolog, predicate, list, subtraction, recursion Problem: Prolog list elements editing I need to write a predicate that will take a list of numbers and a number X, and then from X elements from this list (staring from the first one) it...
Prolog list elements editing Prolog list elements editing prolog predicate list subtraction recursion Prolog NEWH H-1 NEWX X-1 Prolog list elements editing I need to write a predicate that will take a list of numbers and a number X, and then from X elements from this list (staring from the first one) it will subtract 1...
[ -0.0225830078125, 0.007476806640625, 0.0045166015625, 0.0009002685546875, -0.01165771484375, 0.0208740234375, -0.01495361328125, 0.0216064453125, 0.0185546875, -0.0025634765625, -0.00003933906555175781, 0.0022430419921875, -0.003265380859375, 0.0087890625, 0.016845703125, 0.00216674804...
[ 1250, 4867, 5303, 80854, 27211, 502, 1653, 2063, 67, 1614, 117474, 195625, 80111, 841, 572, 5759, 1542, 1193, 3871, 33022, 1221, 5646, 101935, 136, 14012, 1295, 5613, 5117, 39989, 18, 615, 48903, 23468, 3525, 46876, 53418, 155965, 3564, 903...
[ 0.1656494140625, 0.236572265625, 0.1712646484375, 0.151123046875, 0.1490478515625, 0.1224365234375, 0.1676025390625, 0.2139892578125, 0.125, 0.185546875, 0.1925048828125, 0.220947265625, 0.10394287109375, 0.094482421875, 0.08441162109375, 0.1304931640625, 0.1195068359375, 0.1303710...
embed
64510435_c0
64510435
prolog
0
Title: Prolog: How can I show just names that accompany certain numbers. I have a list in the prolog and I need to show just a few certain names Problem title: Prolog: How can I show just names that accompany certain numbers. I have a list in the prolog and I need to show just a few certain names Tags: prolog Problem: ...
Prolog: How can I show just names that accompany certain numbers. I have a list in the prolog and I need to show just a few certain names Prolog: How can I show just names that accompany certain numbers. I have a list in the prolog and I need to show just a few certain names prolog Prolog How Prolog: How can I show jus...
[ 0.0191650390625, -0.01904296875, 0.01507568359375, 0.0247802734375, -0.00087738037109375, 0.0174560546875, 0.0062255859375, 0.02490234375, 0.005157470703125, 0.01446533203125, -0.00335693359375, -0.0322265625, -0.0228271484375, -0.004638671875, 0.00250244140625, -0.00335693359375, 0....
[ 1250, 4867, 11249, 831, 7639, 1660, 123055, 1030, 146365, 24233, 101935, 5303, 502, 3871, 10846, 450, 12, 116, 382, 136, 209, 756, 23, 163612, 11338, 15757, 37842 ]
[ 0.162109375, 0.246826171875, 0.048828125, 0.037109375, 0.18115234375, 0.1304931640625, 0.202392578125, 0.0833740234375, 0.1788330078125, 0.06634521484375, 0.14892578125, 0.139892578125, 0.1431884765625, 0.0240325927734375, 0.0753173828125, 0.02117919921875, 0.0072021484375, 0.08734...
embed
43051658_c0
43051658
prolog
0
Title: Prolog csv flight data analysis Problem title: Prolog csv flight data analysis Tags: prolog, csv Problem: Prolog csv flight data analysis I'm working on expert system for flight data analysis. the flight is a csv file. i would like to: save each flight file( Aircraft number, Motor number and flight date) define ...
Prolog csv flight data analysis Prolog csv flight data analysis prolog csv Prolog Prolog csv flight data analysis I'm working on expert system for flight data analysis. the flight is a csv file. i would like to: save each flight file( Aircraft number, Motor number and flight date) define limitations of parameteres (mot...
[ 0.0299072265625, 0.007476806640625, 0.01904296875, 0.02197265625, 0.00628662109375, 0.0189208984375, 0.00994873046875, 0.01708984375, -0.004119873046875, -0.022216796875, -0.01544189453125, -0.03125, -0.0269775390625, -0.0152587890625, 0.002471923828125, -0.00640869140625, 0.00476074...
[ 1250, 4867, 20763, 334, 113014, 2053, 114137, 502, 20697, 26808, 5426, 11435, 1884, 30098, 12638, 5345, 56379, 14012, 15366, 5622, 61924, 205969, 171859, 26541, 136, 1831, 191428, 3647, 384, 617, 98334, 8108, 164552, 5608, 204839, 42830, 496, ...
[ 0.158935546875, 0.2181396484375, 0.0955810546875, 0.19140625, 0.223388671875, 0.1383056640625, 0.166748046875, 0.137451171875, 0.043426513671875, 0.08575439453125, 0.051055908203125, 0.18310546875, 0.040069580078125, 0.1507568359375, 0.0830078125, 0.03729248046875, 0.1097412109375, ...
embed
13666630_c0
13666630
prolog
0
Title: How to take out the ... from (swi) prolog output Problem title: How to take out the ... from (swi) prolog output Tags: prolog, prolog-toplevel Problem: How to take out the ... from (swi) prolog output Possible Duplicate: Using SWI-Prolog Interactively - Output Taken off I have written a program to replace X occu...
How to take out the ... from (swi) prolog output How to take out the ... from (swi) prolog output prolog prolog-toplevel How replace_first_k How to take out the ... from (swi) prolog output I have written a program to replace X occurrences of 1 by 8 in Prolog. The program works correct as it gives correct output. But i...
[ 0.007171630859375, 0.02001953125, 0.007781982421875, 0.00537109375, -0.0308837890625, 0.00457763671875, -0.01129150390625, 0.01513671875, 0.0242919921875, -0.00726318359375, 0.02392578125, -0.007781982421875, 0.0040283203125, -0.007598876953125, 0.0123291015625, -0.004241943359375, 0...
[ 11249, 5646, 1810, 70, 153, 1295, 2452, 502, 4867, 140992, 7, 13784, 67919, 91995, 13448, 271, 92, 59121, 1528, 1193, 74918, 42, 69098, 106, 390, 382, 1250, 43240, 26785, 4134, 3459, 4989, 107730, 56282, 47, 44116, 756, 124850, 111, 33949...
[ 0.042083740234375, 0.08056640625, 0.1461181640625, 0.0172119140625, 0.1644287109375, 0.09466552734375, 0.202880859375, 0.154296875, 0.219482421875, 0.20703125, 0.013031005859375, 0.07489013671875, 0.1707763671875, 0.136474609375, 0.0285797119140625, 0.04052734375, 0.140380859375, 0...
embed
67283903_c0
67283903
prolog
0
Title: Defining a graph in prolog and checking a list with edges Problem title: Defining a graph in prolog and checking a list with edges Tags: graph-theory, prolog Problem: Defining a graph in prolog and checking a list with edges Im extremely new to Prolog and managed to define a graph the prolog code I have so far i...
Defining a graph in prolog and checking a list with edges Defining a graph in prolog and checking a list with edges graph-theory prolog Defining Defining a graph in prolog and checking a list with edges Im extremely new to Prolog and managed to define a graph the prolog code I have so far is im trying to figure out how...
[ 0.0018157958984375, 0.0113525390625, -0.0142822265625, 0.013427734375, -0.00634765625, -0.01116943359375, -0.032958984375, 0.0027313232421875, 0.00958251953125, -0.0128173828125, 0.00457763671875, -0.01409912109375, -0.0133056640625, 0.00157928466796875, 0.01068115234375, 0.02722167968...
[ 88606, 41382, 23, 502, 4867, 175199, 5303, 678, 121303, 2347, 449, 3525, 1250, 145755, 61924, 18151, 26366, 33022, 35691, 12477, 1653, 2063, 12765, 601, 171859, 527, 162711, 15700, 16750, 705, 297, 429, 724, 758, 1723, 910, 214493, 5423, 99...
[ 0.185546875, 0.2509765625, 0.045166015625, 0.143310546875, 0.2120361328125, 0.1927490234375, 0.1607666015625, 0.103759765625, 0.22607421875, 0.026641845703125, 0.0009765625, 0.0167083740234375, 0.103759765625, 0.0028076171875, 0.130615234375, 0.1298828125, 0.01751708984375, 0.06341...
embed
31058929_c2
31058929
prolog
2
able. ... {-1, 2} ... That did the job, computing the exact answer with fewer than half the bits used by ... Otherwise the statement page 184 holds: ... 0.80143857 x + 1.65707065 y = 2.51270273 The equations certainly look innocent enough. Assuming exact decimal inputs, this system is solved exactly by x = -1 and y = 2...
able. ... {-1, 2} ... That did the job, computing the exact answer with fewer than half the bits used by ... Otherwise the statement page 184 holds: ... 0.80143857 x + 1.65707065 y = 2.51270273 The equations certainly look innocent enough. Assuming exact decimal inputs, this system is solved exactly by x = -1 and y = 2...
[ 0.010009765625, 0.004913330078125, 0.0029296875, 0.01116943359375, 0.01141357421875, 0.010498046875, -0.0159912109375, 0.0024566650390625, 0.02490234375, -0.0033111572265625, -0.00537109375, 0.0242919921875, 0.01025390625, -0.0013580322265625, 0.00909423828125, 0.003662109375, 0.0066...
[ 19048, 5759, 4, 116, 12447, 242122, 24763, 35166, 10846, 56, 23552, 70, 4785, 11814, 390, 153, 90825, 63805, 9191, 70642, 16401, 132208, 6746, 149988, 12243, 1022, 997, 615, 210344, 105619, 12424, 113, 2203, 27804, 1530, 162110, 13574, 581, ...
[ 0.26123046875, 0.168701171875, 0.039764404296875, 0.175537109375, 0.0889892578125, 0.1448974609375, 0.20654296875, 0.202392578125, 0.0753173828125, 0.010894775390625, 0.075927734375, 0.017303466796875, 0.12841796875, 0.04852294921875, 0.08203125, 0.05230712890625, 0.002532958984375, ...
embed
34226588_c2
34226588
prolog
2
ss) :- if_(call(P_2,X), list_pred_split(Xs,P_2,Bss), (Bss = [[X|Ys]|Bss0], list_pred_open_split(Xs,P_2,Ys,Bss0))). list_pred_open_split([],_,[],[]). Code signals: blacks, stack, GCHQ, use_module, RowLengths, ColLengths, BlackCoords, list_of_blacks, List, NumberOfBlacks, NumberOfOnesList, my_nth1, LengthsOfBlacks, my_le...
ss) :- if_(call(P_2,X), list_pred_split(Xs,P_2,Bss), (Bss = [[X|Ys]|Bss0], list_pred_open_split(Xs,P_2,Ys,Bss0))). list_pred_open_split([],_,[],[]). Code signals: blacks, stack, GCHQ, use_module, RowLengths, ColLengths, BlackCoords, list_of_blacks, List, NumberOfBlacks, NumberOfOnesList, my_nth1, LengthsOfBlacks, my_le...
[ -0.0096435546875, 0.003692626953125, 0.00872802734375, 0.01513671875, -0.018310546875, 0.01336669921875, 0.00994873046875, 0.0023193359375, 0.01373291015625, 0.0123291015625, 0.0023956298828125, 0.01104736328125, 0.001068115234375, -0.00634765625, 0.003936767578125, 0.0079345703125, ...
[ 91, 7, 16, 15772, 2174, 454, 85763, 683, 304, 4, 1542, 5303, 19714, 7008, 4353, 571, 2203, 1723, 2389, 59636, 32149, 194, 28864, 26073, 12, 22556, 177261, 69657, 95795, 4527, 83279, 96190, 449, 927, 11554, 10074, 10625, 6651, 4390, 151675...
[ 0.1658935546875, 0.211181640625, 0.14208984375, 0.133544921875, 0.174072265625, 0.035919189453125, 0.196533203125, 0.1087646484375, 0.138427734375, 0.0166168212890625, 0.1353759765625, 0.217041015625, 0.1875, 0.031494140625, 0.1778564453125, 0.07086181640625, 0.02685546875, 0.06213...
embed
65676002_c0
65676002
prolog
0
Title: Defining a DCG in Prolog for bit strings Problem title: Defining a DCG in Prolog for bit strings Tags: dcg, prolog Problem: Defining a DCG in Prolog for bit strings Ahead of our Prolog exam next week, our lecturer has provided us with a number of practice questions, but I'm stumped for the following. Can anyone ...
Defining a DCG in Prolog for bit strings Defining a DCG in Prolog for bit strings dcg prolog Defining DCG Prolog Defining a DCG in Prolog for bit strings Ahead of our Prolog exam next week, our lecturer has provided us with a number of practice questions, but I'm stumped for the following. Can anyone help?
[ 0.01806640625, 0.01446533203125, -0.0181884765625, 0.0108642578125, -0.0020294189453125, 0.0185546875, -0.010498046875, -0.009521484375, 0.00823974609375, -0.01708984375, -0.005157470703125, -0.0252685546875, -0.00787353515625, -0.0035858154296875, 0.0152587890625, 0.0216064453125, 0...
[ 88606, 391, 56367, 23, 1250, 4867, 100, 4785, 79315, 449, 104, 238, 177, 502, 10, 31251, 42276, 41361, 17582, 48708, 20051, 25632, 4358 ]
[ 0.162841796875, 0.1097412109375, 0.2315673828125, 0.003662109375, 0.1346435546875, 0.21044921875, 0.02801513671875, 0.14013671875, 0.186279296875, 0.016632080078125, 0.0391845703125, 0.044097900390625, 0.075927734375, 0.104736328125, 0.000213623046875, 0.0197906494140625, 0.075195312...
embed
19669521_c0
19669521
prolog
0
Title: How to create a Prolog predicate that removes 2nd to last element? Problem title: How to create a Prolog predicate that removes 2nd to last element? Tags: predicate, recursion, prolog Problem: How to create a Prolog predicate that removes 2nd to last element? I need help creating a predicate that removes the 2nd...
How to create a Prolog predicate that removes 2nd to last element? How to create a Prolog predicate that removes 2nd to last element? predicate recursion prolog How Prolog How to create a Prolog predicate that removes 2nd to last element? I need help creating a predicate that removes the 2nd to last element of a list a...
[ 0.0081787109375, 0.01507568359375, -0.00299072265625, 0.0242919921875, -0.01300048828125, 0.03271484375, -0.0084228515625, -0.0025634765625, 0.004791259765625, -0.0093994140625, 0.0198974609375, -0.0152587890625, -0.01385498046875, -0.0198974609375, 0.00145721435546875, -0.005126953125...
[ 11249, 47, 28282, 1250, 4867, 1653, 2063, 67, 87388, 7, 116, 2208, 4568, 12830, 195625, 1830, 502, 450, 4358, 105233, 5303, 30646, 59121, 26366, 5844, 8305, 4734, 6626, 80854, 4989, 93457, 176377, 39527, 187136 ]
[ 0.07177734375, 0.110595703125, 0.15087890625, 0.171875, 0.25244140625, 0.1693115234375, 0.199951171875, 0.11767578125, 0.163818359375, 0.0426025390625, 0.1195068359375, 0.09783935546875, 0.178955078125, 0.1531982421875, 0.0987548828125, 0.01068115234375, 0.095703125, 0.007934570312...
embed
23680869_c0
23680869
prolog
0
Title: If statement on Prolog? Problem title: If statement on Prolog? Tags: prolog Problem: If statement on Prolog? I am new to prolog and I am just wondering how do you write an if statement in it. I am trying to get a 10x10 grid with walls on the outside, in the middle I am moving an object but I am having trouble tr...
If statement on Prolog? If statement on Prolog? prolog Prolog If statement on Prolog? I am new to prolog and I am just wondering how do you write an if statement in it. I am trying to get a 10x10 grid with walls on the outside, in the middle I am moving an object but I am having trouble trying to work out how I stop th...
[ 0.015380859375, 0.00958251953125, 0.0155029296875, 0.0169677734375, 0.0037078857421875, 0.0174560546875, 0.00494384765625, 0.00860595703125, -0.01153564453125, 0.000797271728515625, -0.004791259765625, 0.0164794921875, -0.036376953125, -0.017578125, 0.006011962890625, 0.0155029296875, ...
[ 4263, 63805, 98, 1250, 4867, 32, 502, 3525, 149016, 3642, 33022, 142, 2174, 23, 442, 31577, 2046, 209, 425, 963, 120067, 58982, 50782, 86991, 98567, 36746, 63134, 7279, 11329, 1295, 7730, 5962, 14192, 38937, 831, 18, 25813, 53333, 738, 83...
[ 0.270751953125, 0.2646484375, 0.1058349609375, 0.1690673828125, 0.269775390625, 0.018646240234375, 0.1318359375, 0.0282745361328125, 0.03118896484375, 0.059722900390625, 0.16796875, 0.0457763671875, 0.281005859375, 0.055145263671875, 0.023834228515625, 0.0159454345703125, 0.000030517...
embed
1843899_c0
1843899
prolog
0
Title: How to define a predicate in prolog Problem title: How to define a predicate in prolog Tags: prolog Problem: How to define a predicate in prolog I am new to Prolog and I have so far learned how to define a predicate in a file and the run the interpreter to use it. But I would like to know if there is a way to de...
How to define a predicate in prolog How to define a predicate in prolog prolog How defs.pl How to define a predicate in prolog I am new to Prolog and I have so far learned how to define a predicate in a file and the run the interpreter to use it. But I would like to know if there is a way to define the predicate at the...
[ 0.01953125, -0.006591796875, 0.009765625, 0.0186767578125, -0.00860595703125, 0.024658203125, 0.0218505859375, 0.0157470703125, -0.0015411376953125, -0.0537109375, -0.00165557861328125, 0.0135498046875, -0.01904296875, -0.00787353515625, 0.0234375, 0.01153564453125, 0.0076904296875, ...
[ 11249, 61924, 10, 1653, 2063, 67, 23, 502, 4867, 47, 8, 17447, 2424, 1250, 11435, 11675, 29481, 56, 4527, 1884, 3917, 99, 705, 9, 105876, 101089, 114700 ]
[ 0.04486083984375, 0.2169189453125, 0.049530029296875, 0.211669921875, 0.25048828125, 0.18359375, 0.0457763671875, 0.1534423828125, 0.2259521484375, 0.003692626953125, 0.1490478515625, 0.1678466796875, 0.1123046875, 0.120849609375, 0.08673095703125, 0.0268402099609375, 0.1239013671875...
embed
13904999_c0
13904999
prolog
0
Title: insert function in prolog Problem title: insert function in prolog Tags: prolog Problem: insert function in prolog I am working on writing an insert function that takes two arguments, a number and a sorted list and it should produce that same list with the number included in its proper position. Here's what I go...
insert function in prolog insert function in prolog prolog insert1 ERROR Arguments Exception insert function in prolog I am working on writing an insert function that takes two arguments, a number and a sorted list and it should produce that same list with the number included in its proper position. Here's what I got s...
[ -0.00628662109375, -0.0023651123046875, 0.0224609375, -0.0012969970703125, -0.007232666015625, 0.0196533203125, -0.023193359375, -0.034912109375, 0.001983642578125, -0.0198974609375, 0.02685546875, -0.01171875, -0.025390625, -0.00811767578125, 0.007537841796875, 0.00732421875, 0.0153...
[ 183540, 32354, 502, 4867, 23, 418, 151206, 24638, 112140, 5443, 63928, 20697, 32562, 51776, 6626, 10750, 14012, 17497, 5303, 27489, 5701, 99201, 27798, 19069, 2060, 20949, 25632, 18499, 2806, 77947, 4358, 101469 ]
[ 0.2578125, 0.1614990234375, 0.1385498046875, 0.2210693359375, 0.014129638671875, 0.061920166015625, 0.143310546875, 0.047210693359375, 0.2093505859375, 0.050689697265625, 0.16748046875, 0.042572021484375, 0.052154541015625, 0.042144775390625, 0.0662841796875, 0.2232666015625, 0.09271...
embed
53646363_c0
53646363
prolog
0
Title: Prolog: Filter and list Problem title: Prolog: Filter and list Tags: prolog, list, filter Problem: Prolog: Filter and list Construct a predicate called fPairsAtoms/3 so that given an atom (first argument), and a list of pairs, unify a third parameter with the filtered list of pairs by selecting only the pairs th...
Prolog: Filter and list Prolog: Filter and list prolog list filter Prolog Filter Prolog: Filter and list Example: Result: I do not understand ..... What should I face these types of exercises? Can you help me find a solution? Today I started with prolog, I am a newbie in every way.
[ 0.0194091796875, 0.0028228759765625, -0.00128173828125, 0.005584716796875, -0.0201416015625, 0.01025390625, -0.006134033203125, 0.008056640625, -0.0101318359375, 0.00823974609375, 0.0145263671875, -0.000896453857421875, -0.00689697265625, -0.00040435791015625, 0.000568389892578125, 0.0...
[ 1250, 4867, 128896, 136, 5303, 12, 502, 46312, 89536, 8705, 126684, 87, 54, 959, 28219, 4865, 5608, 2577, 6097, 52895, 81979, 7, 4358, 7413, 29806, 38396, 26859, 678, 444, 3525, 9014, 11907, 3917 ]
[ 0.157470703125, 0.27490234375, 0.29541015625, 0.11859130859375, 0.2005615234375, 0.0153045654296875, 0.130126953125, 0.192626953125, 0.1455078125, 0.01094818115234375, 0.1722412109375, 0.0235748291015625, 0.0670166015625, 0.09735107421875, 0.177490234375, 0.02825927734375, 0.07196044...
embed
25310436_c0
25310436
prolog
0
Title: Prolog: Art Theft. Solving a logic puzzle Problem title: Prolog: Art Theft. Solving a logic puzzle Tags: artificial-intelligence, puzzle, prolog, negation, logic Problem: Prolog: Art Theft. Solving a logic puzzle Just starting to get into Prolog as artificial intelligence is quite interesting and different than ...
Prolog: Art Theft. Solving a logic puzzle Prolog: Art Theft. Solving a logic puzzle artificial-intelligence puzzle prolog negation logic Prolog Art Theft Solving Prolog: Art Theft. Solving a logic puzzle Just starting to get into Prolog as artificial intelligence is quite interesting and different than alot of other pr...
[ 0.00469970703125, 0.0021209716796875, 0.006866455078125, 0.0230712890625, -0.0213623046875, 0.0245361328125, -0.017578125, -0.004669189453125, 0.00634765625, -0.030029296875, 0.0140380859375, 0.0125732421875, -0.005584716796875, 0.02783203125, 0.00396728515625, 0.00860595703125, 0.02...
[ 1250, 4867, 12, 4713, 581, 2480, 6678, 6496, 62775, 104192, 10, 66733, 130687, 502, 108, 125682, 72134, 49041, 12921, 56037, 46876, 18784, 40099, 54799, 2844, 87109, 1314, 31374, 1766, 13894, 1577, 162, 3642, 5809, 4034, 552, 6238, 6044, 36...
[ 0.1739501953125, 0.252197265625, 0.0293121337890625, 0.1441650390625, 0.1021728515625, 0.1353759765625, 0.13330078125, 0.05572509765625, 0.2198486328125, 0.228515625, 0.0211639404296875, 0.128173828125, 0.1282958984375, 0.143310546875, 0.1534423828125, 0.141845703125, 0.0309143066406...
embed
4908229_c0
4908229
prolog
0
Title: Compute Dot Product of Two Vectors Problem title: Compute Dot Product of Two Vectors Tags: lambda, prolog Problem: Compute Dot Product of Two Vectors I'm supposed to create a predicate in prolog such that iprod(List1, List2, Result) takes two lists of equal length and each contain integers. The result is the dot...
Compute Dot Product of Two Vectors Compute Dot Product of Two Vectors lambda prolog Compute Dot Product Two Vectors List1 List2 Result Compute Dot Product of Two Vectors I'm supposed to create a predicate in prolog such that iprod(List1, List2, Result) takes two lists of equal length and each contain integers. The resu...
[ 0.0115966796875, 0.0167236328125, -0.0067138671875, 0.0201416015625, -0.01483154296875, 0.0299072265625, -0.006927490234375, 0.006134033203125, -0.01025390625, -0.041748046875, 0.0040283203125, 0.005035400390625, -0.0274658203125, -0.003173828125, -0.0137939453125, -0.004791259765625, ...
[ 159415, 13, 84929, 73111, 111, 32964, 52884, 22230, 21, 6492, 85, 502, 4867, 32036, 418, 304, 126684, 134598, 28282, 1653, 2063, 67, 17, 112348, 154663, 51776, 6626, 5303, 105950, 140909, 70541, 892, 26255, 16750, 20633, 12996, 22834, 155761,...
[ 0.2064208984375, 0.07586669921875, 0.24560546875, 0.270751953125, 0.0654296875, 0.1888427734375, 0.194580078125, 0.11474609375, 0.019500732421875, 0.1695556640625, 0.098876953125, 0.1461181640625, 0.184326171875, 0.155517578125, 0.055572509765625, 0.1337890625, 0.179443359375, 0.09...
embed
7168738_c0
7168738
prolog
0
Title: Can&#x27;t get exception message Problem title: Can&#x27;t get exception message Tags: prolog, exception Problem: Can't get exception message I'm using swi-prolog and trying to use exception handling. I've got a system like writeAndFail(message) :- write(message) , fail. pred(arg1, arg2) :- catch( real_pred(arg1...
Can&#x27;t get exception message Can&#x27;t get exception message prolog exception Can arg1 arg2 real_pred Exception Can't get exception message I'm using swi-prolog and trying to use exception handling. I've got a system like In the body of real_pred I throw a string directly, e.g. throw('message') . The call to pred ...
[ 0.0255126953125, 0.0537109375, -0.0206298828125, 0.0006866455078125, 0.0167236328125, 0.00897216796875, -0.005218505859375, 0.0137939453125, -0.003082275390625, -0.01708984375, 0.0021209716796875, 0.00147247314453125, 0.000637054443359375, -0.0224609375, 0.022216796875, 0.0103759765625...
[ 4171, 3768, 18, 2046, 131527, 26008, 502, 4867, 79459, 418, 304, 2773, 19714, 5443, 63928, 91, 2452, 3454, 45064, 5426, 14361, 104250, 79315, 105237, 74157, 429, 11782, 47, 1653, 202319, 3034, 7225, 105556, 26785, 8306, 59121, 1810, 37264, ...
[ 0.0765380859375, 0.07623291015625, 0.073974609375, 0.099609375, 0.2386474609375, 0.155517578125, 0.1431884765625, 0.17919921875, 0.1353759765625, 0.047149658203125, 0.1103515625, 0.15625, 0.2362060546875, 0.0587158203125, 0.1798095703125, 0.040924072265625, 0.2000732421875, 0.10485...
embed
47190647_c0
47190647
prolog
0
Title: Trying to check lines are between 2 points that exist, Prolog Problem title: Trying to check lines are between 2 points that exist, Prolog Tags: prolog, point, line Problem: Trying to check lines are between 2 points that exist, Prolog I am trying to check whether lines are actually between 2 points that exist i...
Trying to check lines are between 2 points that exist, Prolog Trying to check lines are between 2 points that exist, Prolog prolog point line Trying Prolog Trying to check lines are between 2 points that exist, Prolog I am trying to check whether lines are actually between 2 points that exist in the rule set. For examp...
[ 0.00701904296875, -0.0031585693359375, 0.0003948211669921875, 0.02197265625, -0.0123291015625, 0.0146484375, -0.001312255859375, 0.0152587890625, 0.0020599365234375, -0.03076171875, -0.007659912109375, -0.0152587890625, 0.005584716796875, -0.008544921875, 0.01312255859375, 0.0138549804...
[ 40858, 12765, 124519, 621, 17721, 116, 26847, 32316, 1250, 4867, 502, 6275, 13315, 31577, 36766, 20653, 79986, 5423, 18151, 35064, 11, 169, 83, 10, 2773, 136, 97, 15044, 1284, 141, 92, 56112, 18, 96, 472, 125381, 3525, 1314, 903 ]
[ 0.08416748046875, 0.19677734375, 0.23046875, 0.029052734375, 0.22021484375, 0.1114501953125, 0.181884765625, 0.1796875, 0.1400146484375, 0.212158203125, 0.1173095703125, 0.1107177734375, 0.22119140625, 0.0819091796875, 0.06732177734375, 0.117919921875, 0.1358642578125, 0.1251220703...
embed
61096220_c0
61096220
prolog
0
Title: parsing and generating multi-level list structures with DCG Problem title: parsing and generating multi-level list structures with DCG Tags: dcg, nested-lists, prolog, parsing Problem: parsing and generating multi-level list structures with DCG Suppose I call an "a-list" a list of zero or more "a"s: % as = [a,a,...
parsing and generating multi-level list structures with DCG parsing and generating multi-level list structures with DCG dcg nested-lists prolog parsing DCG parsing and generating multi-level list structures with DCG Suppose I call an "a-list" a list of zero or more "a"s: Suppose I want to represent a "b-list”, a list o...
[ 0.0028839111328125, -0.0074462890625, 0.00628662109375, 0.0069580078125, 0.0096435546875, 0.0234375, -0.008544921875, -0.0299072265625, 0.02978515625, -0.014892578125, -0.00970458984375, -0.000209808349609375, -0.01385498046875, 0.00897216796875, 0.0281982421875, 0.002685546875, -0.0...
[ 366, 6953, 12663, 6024, 67919, 5303, 45646, 678, 391, 56367, 104, 238, 177, 8512, 71, 6562, 502, 4867, 11782, 11, 9, 45234, 1286, 121691, 8364, 3444, 33636, 275, 10, 49666, 9523, 3917, 54433, 903, 9709, 538, 1620, 5170, 36069, 33176, 12...
[ 0.11767578125, 0.028289794921875, 0.076416015625, 0.03424072265625, 0.1474609375, 0.1650390625, 0.1298828125, 0.00811767578125, 0.0828857421875, 0.212890625, 0.0390625, 0.014678955078125, 0.12353515625, 0.1553955078125, 0.05303955078125, 0.192138671875, 0.09136962890625, 0.19628906...
embed
61307978_c0
61307978
prolog
0
Title: Prolog - Counting specific elements in list of lists Problem title: Prolog - Counting specific elements in list of lists Tags: append, nested-lists, prolog Problem: Prolog - Counting specific elements in list of lists I have a list 'a' in Prolog. a = []. I have to insert to 'a' another list 'b' b = [bottle]. The...
Prolog - Counting specific elements in list of lists Prolog - Counting specific elements in list of lists append nested-lists prolog Prolog Counting item1 item2 item3 item4 Ans Prolog - Counting specific elements in list of lists I have a list 'a' in Prolog. I have to insert to 'a' another list 'b' The final result has...
[ 0.0030975341796875, 0.00189971923828125, 0.00555419921875, 0.0135498046875, -0.00171661376953125, 0.0213623046875, -0.0103759765625, 0.0025634765625, 0.0201416015625, -0.018310546875, 0.00518798828125, -0.041015625, 0.01220703125, 0.02294921875, -0.005462646484375, -0.0220947265625, ...
[ 1250, 4867, 1311, 128396, 29458, 80854, 5303, 114689, 71, 8512, 6562, 502, 35735, 304, 363, 617, 893, 7, 23, 765, 11, 183540, 47, 15700, 275, 2704, 16750, 1884, 45367, 73, 32354, 18113, 37202, 4734, 158, 33478, 76, 6626, 217, 7251, 7619...
[ 0.1790771484375, 0.25146484375, 0.1435546875, 0.1932373046875, 0.2139892578125, 0.1832275390625, 0.2066650390625, 0.1590576171875, 0.096435546875, 0.1484375, 0.18017578125, 0.1224365234375, 0.1260986328125, 0.030975341796875, 0.08013916015625, 0.119384765625, 0.1134033203125, 0.088...
embed
67576254_c0
67576254
prolog
0
Title: Prolog: what is difference between, for example, X is 3 and 3 is X? Problem title: Prolog: what is difference between, for example, X is 3 and 3 is X? Tags: prolog Problem: Prolog: what is difference between, for example, X is 3 and 3 is X? three(X) :- 3 is X. three2(X) :- X is 3. Requests three(3) , three(5) an...
Prolog: what is difference between, for example, X is 3 and 3 is X? Prolog: what is difference between, for example, X is 3 and 3 is X? prolog Prolog three2 Arguments Prolog: what is difference between, for example, X is 3 and 3 is X? Requests three(3) , three(5) and three2(3) , three2(5) respectively have the same ans...
[ 0.0159912109375, 0.01275634765625, 0.007659912109375, 0.0004024505615234375, -0.003997802734375, 0.033447265625, 0.026611328125, -0.005950927734375, 0.025146484375, 0.006195068359375, 0.0169677734375, -0.006866455078125, 0.0086669921875, 0.00714111328125, 0.005401611328125, 0.011901855...
[ 1250, 4867, 60212, 17721, 27781, 1193, 83, 138, 136, 2367, 502, 17262, 304, 112140, 853, 75616, 69829, 124534, 5701, 35166, 1542, 12960, 7614, 1234, 959, 129980, 34648, 14, 20174, 2053, 86869, 29568, 98320, 15400, 7413, 105950, 50336, 34292 ]
[ 0.1492919921875, 0.212890625, 0.216064453125, 0.137451171875, 0.124267578125, 0.1463623046875, 0.13427734375, 0.26025390625, 0.12060546875, 0.03094482421875, 0.079345703125, 0.21484375, 0.1531982421875, 0.1533203125, 0.05810546875, 0.17724609375, 0.1224365234375, 0.1444091796875, ...
embed
45595859_c0
45595859
prolog
0
Title: Prolog find number of occurrences in a matrix Problem title: Prolog find number of occurrences in a matrix Tags: prolog Problem: Prolog find number of occurrences in a matrix I'm able to find the number of occurrences in 1D list, but right now i'm trying to find the number of occurrences in a matrix, for example...
Prolog find number of occurrences in a matrix Prolog find number of occurrences in a matrix prolog Prolog List List1 Prolog find number of occurrences in a matrix I'm able to find the number of occurrences in 1D list, but right now i'm trying to find the number of occurrences in a matrix, for example A[3][3] . Here's m...
[ 0.02099609375, -0.006439208984375, -0.00299072265625, 0.007476806640625, 0.0172119140625, -0.0040283203125, -0.0108642578125, 0.0031585693359375, 0.0147705078125, -0.03271484375, -0.00848388671875, -0.005584716796875, 0.01953125, 0.017333984375, -0.010009765625, -0.00616455078125, 0....
[ 1250, 4867, 7413, 14012, 111, 74918, 42, 69098, 23, 50944, 425, 10, 502, 32036, 19048, 106, 397, 5303, 5036, 31577, 27781, 62, 54968, 43581, 18151, 107730, 2806, 1884 ]
[ 0.1611328125, 0.220947265625, 0.1025390625, 0.167724609375, 0.0728759765625, 0.2015380859375, 0.1759033203125, 0.126708984375, 0.0638427734375, 0.2098388671875, 0.1126708984375, 0.0159149169921875, 0.1199951171875, 0.09674072265625, 0.0289459228515625, 0.006134033203125, 0.0786132812...
embed
44208064_c1
44208064
prolog
1
(X):-[X,'-<'|Args], revC(Args),!. argu(X):-X,!. revC([H|B]):-[H,'-<'|Args],revC(Args), revC(B). revC([H|[]]):-[H,'-<'|Args],revC(Args). revC([H|B]):-H,revC(B). revC([H|[]]):-H. i have this problem when consulting argu(spare_time): ?- argu(spare_time). ERROR: revC/1: Undefined procedure: '~busy'/0 Exception: (11) '~busy...
(X):-[X,'-<'|Args], revC(Args),!. argu(X):-X,!. revC([H|B]):-[H,'-<'|Args],revC(Args), revC(B). revC([H|[]]):-[H,'-<'|Args],revC(Args). revC([H|B]):-H,revC(B). revC([H|[]]):-H. i have this problem when consulting argu(spare_time): ?- argu(spare_time). ERROR: revC/1: Undefined procedure: '~busy'/0 Exception: (11) '~busy...
[ 0.0159912109375, 0.0216064453125, 0.0064697265625, 0.0224609375, -0.01385498046875, 0.00101470947265625, 0.01129150390625, 0.0013885498046875, 0.00086212158203125, -0.0284423828125, -0.00055694580078125, 0.0245361328125, -0.0159912109375, 0.002685546875, 0.01153564453125, -0.0105590820...
[ 1542, 9, 16093, 7614, 9405, 37868, 441, 38, 106926, 841, 571, 65381, 765, 903, 2967, 75463, 214, 16082, 6032, 151206, 24638, 11583, 79912, 5983, 297, 50491, 4223, 53, 107838, 63928, 21282, 2306, 41, 1294, 86352, 16750, 70796, 18811, 1363, ...
[ 0.136474609375, 0.028594970703125, 0.08819580078125, 0.144287109375, 0.161376953125, 0.1715087890625, 0.1373291015625, 0.03033447265625, 0.25830078125, 0.1058349609375, 0.0565185546875, 0.0770263671875, 0.048065185546875, 0.03802490234375, 0.134033203125, 0.2135009765625, 0.026412963...
embed
15126270_c0
15126270
prolog
0
Title: Prolog - checking if element is a member of a binary tree Problem title: Prolog - checking if element is a member of a binary tree Tags: prolog Problem: Prolog - checking if element is a member of a binary tree How do you check if an element is in a binary tree? For example, tree1(node(10,empty, node(100,empty, ...
Prolog - checking if element is a member of a binary tree Prolog - checking if element is a member of a binary tree prolog Prolog tree1 tree2 Prolog - checking if element is a member of a binary tree How do you check if an element is in a binary tree? For example,
[ 0.0279541015625, 0.0034637451171875, 0.0003795623779296875, 0.0017242431640625, 0.002197265625, 0.01092529296875, -0.01953125, 0.0035247802734375, -0.0087890625, -0.047607421875, -0.0037384033203125, -0.0030670166015625, 0.0079345703125, 0.013427734375, 0.0218505859375, 0.0003242492675...
[ 1250, 4867, 175199, 2174, 12830, 83, 32786, 111, 2394, 6635, 53201, 502, 418, 304, 20, 10, 54, 398, 12765, 23, 27781 ]
[ 0.1502685546875, 0.2236328125, 0.1859130859375, 0.125732421875, 0.214111328125, 0.1058349609375, 0.193603515625, 0.088134765625, 0.1905517578125, 0.1868896484375, 0.26708984375, 0.11334228515625, 0.045501708984375, 0.101806640625, 0.00003248453140258789, 0.0540771484375, 0.0391845703...
embed
16737538_c0
16737538
prolog
0
Title: some trouble on how to sum elements on a list in prolog Problem title: some trouble on how to sum elements on a list in prolog Tags: equals, list, prolog, sum Problem: some trouble on how to sum elements on a list in prolog My problem is that for example i have this list on prolog [[1,1],[1,1],[2,1],[2,2],[2,1],...
some trouble on how to sum elements on a list in prolog some trouble on how to sum elements on a list in prolog equals list prolog sum some trouble on how to sum elements on a list in prolog My problem is that for example i have this list on prolog [[1,1],[1,1],[2,1],[2,2],[2,1],[3,1]] I want as result: [1,2],[2,4],[3,...
[ 0.005645751953125, 0.006591796875, 0.01336669921875, 0.0135498046875, -0.03515625, -0.0010528564453125, -0.00104522705078125, 0.0164794921875, 0.0166015625, -0.0380859375, 0.0177001953125, -0.0025177001953125, 0.0012969970703125, -0.00107574462890625, 0.0025634765625, 0.004119873046875...
[ 63134, 3642, 10554, 80854, 98, 5303, 23, 502, 4867, 105950, 47, 2967, 76172, 3444, 16750, 617, 363, 16610, 5117, 12830, 17932, 30646, 5701, 19069, 23468, 20594, 17198, 50828, 26366 ]
[ 0.1446533203125, 0.04876708984375, 0.2264404296875, 0.20556640625, 0.06463623046875, 0.19189453125, 0.0611572265625, 0.1617431640625, 0.2171630859375, 0.1300048828125, 0.031829833984375, 0.072998046875, 0.0120849609375, 0.0592041015625, 0.06884765625, 0.06402587890625, 0.010040283203...
embed
47446799_c0
47446799
prolog
0
Title: How to implement toLowerCase in prolog? Problem title: How to implement toLowerCase in prolog? Tags: prolog, list, ascii, return, string Problem: How to implement toLowerCase in prolog? So i'm trying to implement a toLowerCase in prolog but i am highly unsure on how to return or even work with strings and lists....
How to implement toLowerCase in prolog? How to implement toLowerCase in prolog? prolog list ascii return string How How to implement toLowerCase in prolog? So i'm trying to implement a toLowerCase in prolog but i am highly unsure on how to return or even work with strings and lists. It seems all the conditions are rule...
[ 0.0255126953125, -0.00830078125, 0.009765625, 0.0098876953125, -0.016357421875, -0.00106048583984375, 0.01153564453125, 0.0004215240478515625, 0.005950927734375, 0.0198974609375, 0.0224609375, -0.01251220703125, -0.006103515625, -0.0045166015625, -0.007110595703125, -0.010986328125, ...
[ 11249, 29479, 47, 15363, 6488, 441, 6991, 23, 502, 4867, 5303, 237, 26506, 30646, 79315, 31577, 103210, 51646, 3642, 4488, 136, 756, 27289, 91736, 831, 4420, 13695, 29568, 959, 18151, 2060 ]
[ 0.0838623046875, 0.199951171875, 0.1639404296875, 0.19384765625, 0.198974609375, 0.1981201171875, 0.198486328125, 0.053497314453125, 0.1470947265625, 0.2413330078125, 0.142333984375, 0.0238189697265625, 0.16162109375, 0.1903076171875, 0.1954345703125, 0.0093994140625, 0.0098266601562...
embed
55529533_c1
55529533
prolog
1
, SUM_6). false. But there are obviously some solutions matching the criteria. If I remove the "constraints" counting the ocurences of numbers I will get all the suitable permutations. Therefore I think the include(..),length(..) somehow constraints the result but I don't understand why since the result is pointed to a...
, SUM_6). false. But there are obviously some solutions matching the criteria. If I remove the "constraints" counting the ocurences of numbers I will get all the suitable permutations. Therefore I think the include(..),length(..) somehow constraints the result but I don't understand why since the result is pointed to a...
[ -0.002777099609375, 0.00762939453125, 0.01611328125, 0.00921630859375, 0.0002841949462890625, -0.0189208984375, -0.030029296875, 0.0059814453125, 0.01361083984375, -0.0361328125, 0.00885009765625, 0.00089263916015625, 0.0167236328125, 0.0306396484375, -0.00286865234375, 0.011474609375,...
[ 127944, 59690, 98320, 171259, 3060, 51347, 14858, 55738, 11, 87388, 2271, 2816, 4288, 54529, 36, 16820, 69098, 111, 101935, 87, 2046, 756, 70, 202319, 117, 14311, 21094, 5351, 26698, 23986, 927, 209303, 158, 16750, 28219, 15400, 6275, 4092, ...
[ 0.2587890625, 0.1925048828125, 0.2099609375, 0.05877685546875, 0.007293701171875, 0.1767578125, 0.09722900390625, 0.16015625, 0.02978515625, 0.1229248046875, 0.075439453125, 0.1962890625, 0.141845703125, 0.1981201171875, 0.117431640625, 0.1739501953125, 0.09844970703125, 0.06896972...
embed
39772152_c0
39772152
prolog
0
Title: Printing the shortest path in a directed graph Problem title: Printing the shortest path in a directed graph Tags: prolog, shortest-path, graph-algorithm Problem: Printing the shortest path in a directed graph I have a directed, cyclic graph without weights. I want to find the shortest route between A and B (i.e...
Printing the shortest path in a directed graph Printing the shortest path in a directed graph prolog shortest-path graph-algorithm Printing Printing the shortest path in a directed graph I have a directed, cyclic graph without weights. I want to find the shortest route between A and B (i.e. the one with the least hops)...
[ 0.00130462646484375, 0.00860595703125, 0.006378173828125, 0.011474609375, -0.0118408203125, -0.0064697265625, -0.017822265625, -0.01806640625, -0.0027008056640625, -0.0184326171875, -0.005767822265625, -0.0201416015625, -0.01171875, 0.0223388671875, 0.01226806640625, 0.02880859375, 0...
[ 39754, 214, 16610, 525, 60875, 8951, 297, 41382, 23, 502, 4867, 128405, 100628, 2783, 70, 187830, 15490, 57888, 3444, 7413, 36439, 17721, 62, 136, 335, 678, 19713, 72720, 18151, 2060, 28412, 29568, 24145, 11907, 11249, 831, 7 ]
[ 0.1925048828125, 0.030029296875, 0.217041015625, 0.1763916015625, 0.2264404296875, 0.15185546875, 0.059326171875, 0.1953125, 0.025360107421875, 0.0914306640625, 0.1541748046875, 0.1776123046875, 0.052490234375, 0.048614501953125, 0.016845703125, 0.1007080078125, 0.06494140625, 0.13...
embed
4135945_c0
4135945
prolog
0
Title: Searching Prolog structures Problem title: Searching Prolog structures Tags: dcg, prolog Problem: Searching Prolog structures I'm interested in formulae made up from lots of conjunctions (part of a larger problem). I want to write a program that takes something like this: :- get_params(conj(conj(a,b),c),X) and r...
Searching Prolog structures Searching Prolog structures dcg prolog Searching Prolog get_params Searching Prolog structures I'm interested in formulae made up from lots of conjunctions (part of a larger problem). I want to write a program that takes something like this: :- get_params(conj(conj(a,b),c),X) and returns a l...
[ 0.0147705078125, 0.00286865234375, -0.00543212890625, 0.0172119140625, -0.01300048828125, 0.03271484375, 0.01458740234375, -0.0031585693359375, 0.0289306640625, -0.06787109375, 0.00946044921875, -0.01336669921875, -0.0159912109375, -0.0179443359375, 0.0111083984375, -0.00836181640625, ...
[ 33086, 214, 1250, 4867, 45646, 104, 238, 177, 502, 2046, 2500, 8256, 87, 60892, 26168, 13, 7228, 1257, 1295, 71358, 158, 17043, 10763, 150679, 2967, 3444, 33022, 1528, 51776, 1884, 903, 2271, 170, 11, 275, 1542, 30646, 5303, 756, 171859, ...
[ 0.1917724609375, 0.0810546875, 0.1666259765625, 0.2476806640625, 0.225830078125, 0.0254364013671875, 0.083984375, 0.111572265625, 0.1253662109375, 0.1279296875, 0.1495361328125, 0.15966796875, 0.002838134765625, 0.1219482421875, 0.197509765625, 0.0579833984375, 0.025970458984375, 0...
embed
26282057_c0
26282057
prolog
0
Title: Remove the element in list Problem title: Remove the element in list Tags: prolog Problem: Remove the element in list I want to remove the element in list1 when it is equal to element in list2. The query and the expected output is: filter( [[1,2,3],[1]] , [[1]] , X ). X = [[1, 2, 3]] ; filter( [[1,2,3],[1],[2,3,...
Remove the element in list Remove the element in list prolog Remove _G488 Remove the element in list I want to remove the element in list1 when it is equal to element in list2. The query and the expected output is: What I have done right now is : but it seems not right and gives the output like this: Can anyone help? M...
[ -0.001708984375, 0.030517578125, -0.01031494140625, 0.013916015625, -0.00848388671875, -0.00095367431640625, -0.0137939453125, 0.0245361328125, 0.003997802734375, 0.008544921875, 0.01397705078125, 0.0045166015625, -0.01513671875, 0.005157470703125, -0.009521484375, 0.01116943359375, ...
[ 181139, 70, 12830, 23, 5303, 502, 4867, 724, 161414, 3444, 47, 87388, 418, 3229, 105950, 5442, 41, 1294, 84751, 140992, 16940, 7108, 5036, 37202, 959, 76199, 1884, 903, 4358, 43573, 36272 ]
[ 0.1690673828125, 0.028594970703125, 0.1824951171875, 0.08416748046875, 0.200927734375, 0.10498046875, 0.1673583984375, 0.0286865234375, 0.2396240234375, 0.0872802734375, 0.0438232421875, 0.1888427734375, 0.044952392578125, 0.0206451416015625, 0.1287841796875, 0.082275390625, 0.065979...
embed
10384609_c0
10384609
prolog
0
Title: Prolog Brackets Problem title: Prolog Brackets Tags: prolog, brackets, tree Problem: Prolog Brackets I am working with trees in Prolog; A tree node is represented using a term that takes the form Left-NodeValue-Right or nil . In order to enforce precedence, round brackets are used. Note that round brackets are c...
Prolog Brackets Prolog Brackets prolog brackets tree Prolog Brackets Prolog Brackets I am working with trees in Prolog; A tree node is represented using a term that takes the form Left-NodeValue-Right or nil . In order to enforce precedence, round brackets are used. Note that round brackets are crucial, because the tre...
[ 0.0213623046875, -0.00299072265625, 0.000255584716796875, -0.005767822265625, 0.006805419921875, 0.004974365234375, 0.001800537109375, -0.00616455078125, -0.00335693359375, -0.041748046875, 0.01226806640625, -0.015869140625, -0.006134033203125, -0.0113525390625, 0.0194091796875, -0.012...
[ 1250, 4867, 6163, 27853, 502, 1620, 53201, 20697, 1360, 90, 110, 112, 33636, 17368, 13579, 3173, 636, 2480, 5021, 856, 50770, 1052, 22553, 17324, 22, 50930, 107671, 6620, 68807, 11814, 106157, 10342, 1328, 8316, 171259, 12921, 11249, 54, 35...
[ 0.1763916015625, 0.261962890625, 0.2464599609375, 0.2802734375, 0.1181640625, 0.2462158203125, 0.209716796875, 0.08673095703125, 0.2080078125, 0.007598876953125, 0.1627197265625, 0.131591796875, 0.199951171875, 0.011993408203125, 0.1292724609375, 0.0970458984375, 0.008331298828125, ...
embed
10878817_c0
10878817
prolog
0
Title: Call a predicate if another predicate failed Problem title: Call a predicate if another predicate failed Tags: prolog Problem: Call a predicate if another predicate failed How can I call a predicate if all calls to another predicate failed? I have: foo(A, B, C, D) :- (bar1(Y,Z); bar2(L, K, M)), foo(A, B, C, D). ...
Call a predicate if another predicate failed Call a predicate if another predicate failed prolog Call bar1 bar2 Abbreviation Call a predicate if another predicate failed How can I call a predicate if all calls to another predicate failed? I have: What I want : at any time, If bar1/2 has succeded, bar2/3 will never be e...
[ 0.0174560546875, 0.00640869140625, -0.006622314453125, 0.0223388671875, 0.000568389892578125, 0.00994873046875, 0.01495361328125, 0.0089111328125, -0.003143310546875, 0.0048828125, 0.0186767578125, 0.01019287109375, -0.005340576171875, 0.01165771484375, 0.01043701171875, -0.01953125, ...
[ 26265, 1653, 2063, 67, 2174, 15700, 165523, 10, 502, 4867, 1909, 418, 304, 105160, 831, 87, 11782, 756, 47, 3444, 2499, 1733, 4263, 118551, 1556, 151088, 18113, 1221, 8306, 71924, 155605, 33209, 26828, 39989, 53201 ]
[ 0.2093505859375, 0.1751708984375, 0.199951171875, 0.102783203125, 0.1240234375, 0.1038818359375, 0.257080078125, 0.017547607421875, 0.072998046875, 0.1165771484375, 0.169189453125, 0.047088623046875, 0.1397705078125, 0.081298828125, 0.046661376953125, 0.00830078125, 0.207763671875, ...
embed
28747806_c0
28747806
prolog
0
Title: Code validation in prolog Problem title: Code validation in prolog Tags: plunit, prolog, swi-prolog Problem: Code validation in prolog How would I write a test for this Prolog rule? rule(5,jasmine_tea):- symptom(high_cholesterol),symptom(delicate_fragrance). High Performance Mark - this is what I've got. FACTS: ...
Code validation in prolog Code validation in prolog plunit prolog swi-prolog anxiety jasmine_tea high_cholesterol delicate_fragrance FACTS chamomile_tea Drink Chamomile RULES no_sleep Code validation in prolog How would I write a test for this Prolog rule? High Performance Mark - this is what I've got. Hope that makes ...
[ 0.0084228515625, 0.018310546875, 0.0029144287109375, 0.0255126953125, -0.005401611328125, 0.01068115234375, -0.010986328125, 0.0260009765625, 0.0017242431640625, -0.033203125, 0.0098876953125, 0, 0.006683349609375, 0.007171630859375, -0.015869140625, 0.022216796875, 0.0277099609375, ...
[ 28864, 44622, 1363, 502, 4867, 23, 12266, 6773, 2452, 3454, 216598, 79, 2962, 17615, 11192, 162641, 71110, 13, 6000, 30962, 155816, 1608, 432, 45207, 167905, 139975, 306, 1340, 46845, 47138, 170572, 2806, 33022, 10, 3034, 100, 903, 1250, 79...
[ 0.211669921875, 0.2393798828125, 0.0594482421875, 0.1231689453125, 0.2255859375, 0.0068359375, 0.059051513671875, 0.1400146484375, 0.0701904296875, 0.1048583984375, 0.167724609375, 0.04486083984375, 0.1470947265625, 0.1861572265625, 0.0528564453125, 0.1572265625, 0.1192626953125, 0...
embed
31695598_c0
31695598
prolog
0
Title: How to remove / prevent symmetric solutions Problem title: How to remove / prevent symmetric solutions Tags: prolog Problem: How to remove / prevent symmetric solutions I am defining a rule like this: person(p1). person(p2). near(X,Y) :- person(X), person(Y), checkNear. % Not important how I check that both X an...
How to remove / prevent symmetric solutions How to remove / prevent symmetric solutions prolog How Not How to remove / prevent symmetric solutions I am defining a rule like this: I check that both X and Y are people and then I check if they are near (it is more complicated than this, but I simplified). The problem is t...
[ 0.000759124755859375, 0.034912109375, 0.00970458984375, 0.0031280517578125, -0.01092529296875, 0.00665283203125, -0.0247802734375, 0.0072021484375, 0.0019683837890625, -0.0458984375, -0.0279541015625, 0.007781982421875, 0.005828857421875, 0.007720947265625, 0.0159912109375, 0.005676269...
[ 11249, 47, 87388, 248, 56282, 230612, 238, 51347, 6, 502, 4867, 11205, 13204, 79986, 1884, 12765, 15044, 1193, 136, 990, 621, 3395, 43573, 217, 1286, 96704, 112892, 2967, 113054, 10, 29806, 2806, 37772, 1632, 117, 80836, 106117, 113292, 100...
[ 0.0869140625, 0.05810546875, 0.2379150390625, 0.1131591796875, 0.253173828125, 0.267578125, 0.16650390625, 0.25634765625, 0.022003173828125, 0.11962890625, 0.114013671875, 0.0916748046875, 0.08837890625, 0.1370849609375, 0.011932373046875, 0.17333984375, 0.048797607421875, 0.044891...
embed
50978403_c0
50978403
prolog
0
Title: Prolog converts string to its ascii numeric value Problem title: Prolog converts string to its ascii numeric value Tags: prolog, string, list Problem: Prolog converts string to its ascii numeric value I'm new to prolog. I was trying to implement the following structure: equ([v(_Val,_Name)]) . I tried to write th...
Prolog converts string to its ascii numeric value Prolog converts string to its ascii numeric value prolog string list Prolog _Val _Name Prolog converts string to its ascii numeric value I'm new to prolog. I was trying to implement the following structure: equ([v(_Val,_Name)]) . I tried to write the following: add(Eq,e...
[ 0.016357421875, 0.002899169921875, 0.00494384765625, 0.0262451171875, -0.0167236328125, 0.024658203125, 0.00189971923828125, 0.00262451171875, 0.0174560546875, 0.0052490234375, 0.0157470703125, -0.005645751953125, -0.00677490234375, 0.0037841796875, -0.01068115234375, -0.00836181640625...
[ 1250, 4867, 96760, 79315, 47, 6863, 237, 26506, 54744, 238, 34292, 502, 5303, 42272, 163612, 7, 3525, 31577, 29479, 25632, 45646, 28, 5490, 334, 37842, 33022, 15190, 864, 1884, 4527, 3034, 102107, 425, 866, 84751, 140992, 339, 2046, 2203, ...
[ 0.203857421875, 0.253662109375, 0.16943359375, 0.242431640625, 0.07293701171875, 0.0831298828125, 0.09521484375, 0.220703125, 0.16943359375, 0.053070068359375, 0.1715087890625, 0.1640625, 0.1939697265625, 0.208984375, 0.1488037109375, 0.0163726806640625, 0.072265625, 0.091430664062...
embed
20168320_c0
20168320
prolog
0
Title: Boolean Comparison - Prolog Problem title: Boolean Comparison - Prolog Tags: prolog Problem: Boolean Comparison - Prolog I proggramm in java and c and I am new in prolog. How can I know if a boolean expression is true or false? has_pellet([[Xpellet,Ypellet]|_], Xpacman, Ypacman):- Xpacman = Xpellet, Ypacman = Yp...
Boolean Comparison - Prolog Boolean Comparison - Prolog prolog Boolean Comparison Prolog has_pellet Xpellet Ypellet Xpacman Ypacman Restpellets Boolean Comparison - Prolog I proggramm in java and c and I am new in prolog. How can I know if a boolean expression is true or false? Example: The result of this command is fa...
[ -0.00168609619140625, -0.006195068359375, 0.005828857421875, 0.026123046875, 0.014892578125, 0.01446533203125, 0.020751953125, -0.001800537109375, 0.00127410888671875, 0.01153564453125, 0.00726318359375, 0.0244140625, -0.00689697265625, -0.01361083984375, -0.0167236328125, 0.0035858154...
[ 73783, 34677, 113307, 40514, 1250, 4867, 502, 1556, 5310, 1974, 1193, 990, 62268, 669, 49756, 117515, 7831, 87, 67973, 107415, 79, 330, 136, 501, 3525, 11249, 831, 3714, 2174, 337, 31, 125195, 83, 29568, 707, 98320, 89536, 16750, 903, 751...
[ 0.15234375, 0.262939453125, 0.17041015625, 0.114013671875, 0.1396484375, 0.2254638671875, 0.1165771484375, 0.19482421875, 0.176025390625, 0.253662109375, 0.044189453125, 0.044219970703125, 0.09765625, 0.1402587890625, 0.0843505859375, 0.1719970703125, 0.1287841796875, 0.02481079101...
embed
65583359_c0
65583359
prolog
0
Title: Solving linear system of equations with Prolog library Simplex Problem title: Solving linear system of equations with Prolog library Simplex Tags: linear-programming, swi-prolog, prolog, simplex Problem: Solving linear system of equations with Prolog library Simplex - 0.05*x(0)- 0.05*x(1)+0.95*x(2)- 0.05*x(3) = ...
Solving linear system of equations with Prolog library Simplex Solving linear system of equations with Prolog library Simplex linear-programming swi-prolog prolog simplex Solving Prolog Simplex Solving linear system of equations with Prolog library Simplex I am trying to use SWI-Prolog simplex library to solve a linear...
[ 0.015380859375, -0.0000064373016357421875, -0.022705078125, 0.027099609375, -0.0223388671875, -0.0031585693359375, -0.0042724609375, 0.0294189453125, 0.004058837890625, -0.034912109375, 0.0118408203125, -0.0042724609375, 0.0079345703125, 0.000827789306640625, 0.0150146484375, 0.0134277...
[ 6678, 6496, 192617, 5426, 13722, 678, 1250, 4867, 35773, 1294, 60552, 425, 28966, 2452, 3454, 502, 8781, 31577, 4527, 159, 38969, 10752, 86869, 111, 5423, 2773, 101935, 237, 77758, 35672, 22936, 29786, 15400, 25632, 41, 14602, 959, 214493, ...
[ 0.0906982421875, 0.03009033203125, 0.1754150390625, 0.160888671875, 0.173828125, 0.031585693359375, 0.1407470703125, 0.2188720703125, 0.1593017578125, 0.058380126953125, 0.173095703125, 0.1116943359375, 0.0880126953125, 0.109619140625, 0.0650634765625, 0.07464599609375, 0.16052246093...
embed
15442499_c0
15442499
prolog
0
Title: Example how to use predsort(:Compare, +List, -Sorted) in prolog Problem title: Example how to use predsort(:Compare, +List, -Sorted) in prolog Tags: swi-prolog, sorting, prolog, mergesort Problem: Example how to use predsort(:Compare, +List, -Sorted) in prolog I want to order a custom list. The list I want to or...
Example how to use predsort(:Compare, +List, -Sorted) in prolog Example how to use predsort(:Compare, +List, -Sorted) in prolog swi-prolog sorting prolog mergesort Example Compare List Sorted Example how to use predsort(:Compare, +List, -Sorted) in prolog I want to order a custom list. The list I want to order will be ...
[ 0.0064697265625, 0.0103759765625, 0.0140380859375, -0.00032806396484375, -0.0240478515625, 0.022705078125, -0.002685546875, 0.005828857421875, 0.004638671875, -0.023681640625, 0.008544921875, 0.01092529296875, 0, -0.0205078125, -0.00732421875, -0.0260009765625, -0.0032958984375, 0....
[ 89536, 3642, 4527, 1653, 62351, 132, 108161, 1046, 997, 154663, 158240, 3674, 502, 4867, 23, 2452, 3454, 12096, 42564, 113307, 13, 32036, 53666, 297, 3444, 12989, 114122, 5303, 903, 3173, 54397, 31898, 1290, 678, 234873, 73163, 72803, 7722 ]
[ 0.07489013671875, 0.014251708984375, 0.06103515625, 0.17578125, 0.2222900390625, 0.012115478515625, 0.09674072265625, 0.1151123046875, 0.07476806640625, 0.1590576171875, 0.117431640625, 0.059326171875, 0.11865234375, 0.1884765625, 0.00543212890625, 0.096435546875, 0.06982421875, 0....
embed
43161121_c0
43161121
prolog
0
Title: Defining a list from scratch in prolog Problem title: Defining a list from scratch in prolog Tags: list, prolog, recursion Problem: Defining a list from scratch in prolog So I need to define a list predicate: list(.) that returns true if the list is of the form cons(b,cons(d,cons(e,cons(h,nil)))) . for the list ...
Defining a list from scratch in prolog Defining a list from scratch in prolog list prolog recursion scratch Defining Defining a list from scratch in prolog So I need to define a list predicate: list(.) that returns true if the list is of the form cons(b,cons(d,cons(e,cons(h,nil)))) . for the list bdeh . I need to defin...
[ 0.0050048828125, 0.017333984375, -0.000461578369140625, 0.0167236328125, 0.000568389892578125, 0.00787353515625, -0.013916015625, 0.005859375, 0.003875732421875, -0.0177001953125, 0.004180908203125, -0.00408935546875, -0.007110595703125, 0.00064849853515625, 0.006500244140625, 0.022583...
[ 88606, 449, 5303, 1295, 206597, 23, 502, 4867, 10, 195625, 1830, 3871, 61924, 1653, 2063, 67, 132, 5, 30646, 29568, 2174, 3173, 158, 7, 275, 25553, 71, 127, 17324, 876, 112, 2394, 6635, 2060, 5351, 37317, 8305, 4358, 172337 ]
[ 0.198974609375, 0.036376953125, 0.2607421875, 0.120849609375, 0.253173828125, 0.040374755859375, 0.166748046875, 0.2437744140625, 0.053466796875, 0.154541015625, 0.002655029296875, 0.071533203125, 0.1861572265625, 0.174560546875, 0.208984375, 0.0953369140625, 0.042205810546875, 0.1...
embed
23174999_c0
23174999
prolog
0
Title: Printing path in Prolog Problem title: Printing path in Prolog Tags: program-slicing, prolog Problem: Printing path in Prolog I want to print the path of nodes in a directed graph. This code works properly for an edge but didn't work for the whole path. It returns false when it comes to path. Here is my code but...
Printing path in Prolog Printing path in Prolog program-slicing prolog Printing Prolog Node1 Node2 SomeNode Printing path in Prolog I want to print the path of nodes in a directed graph. This code works properly for an edge but didn't work for the whole path. It returns false when it comes to path. Here is my code but ...
[ 0.0159912109375, 0.00469970703125, 0.0257568359375, 0.003875732421875, 0.00106048583984375, 0.0230712890625, -0.0250244140625, 0.0155029296875, 0.01202392578125, -0.033935546875, 0.01092529296875, -0.007720947265625, -0.0308837890625, 0.00180816650390625, 0.00830078125, 0.0087280273437...
[ 39754, 214, 60875, 23, 1250, 4867, 1528, 9120, 502, 438, 112, 304, 5021, 3444, 28412, 111, 110, 988, 8951, 41382, 18151, 43240, 155965, 121303, 1284, 18, 4488, 28271, 30646, 98320, 51042, 4358, 1193, 83, 5303 ]
[ 0.1878662109375, 0.041961669921875, 0.26611328125, 0.0261688232421875, 0.1480712890625, 0.23193359375, 0.0654296875, 0.092529296875, 0.098876953125, 0.0885009765625, 0.053802490234375, 0.001495361328125, 0.0875244140625, 0.051788330078125, 0.1868896484375, 0.021026611328125, 0.116210...
embed
51811668_c0
51811668
prolog
0
Title: Undefined procedure DWIM could not correct the goal in Prolog Problem title: Undefined procedure DWIM could not correct the goal in Prolog Tags: prolog Problem: Undefined procedure DWIM could not correct the goal in Prolog I'm really new to prolog and I'm trying out some examples. I'm getting the error ERROR: Un...
Undefined procedure DWIM could not correct the goal in Prolog Undefined procedure DWIM could not correct the goal in Prolog prolog Undefined DWIM Prolog ERROR Fred Undefined procedure DWIM could not correct the goal in Prolog I'm really new to prolog and I'm trying out some examples. I'm getting the error ERROR: Undefi...
[ 0.035888671875, 0.033447265625, -0.0101318359375, 0.0224609375, -0.0108642578125, 0.0216064453125, 0.000823974609375, 0.0107421875, -0.0028533935546875, -0.0205078125, 0.00927734375, 0.00701904296875, 0.006072998046875, 0.004791259765625, 0.01416015625, -0.0037384033203125, 0.0141601...
[ 79912, 5983, 50491, 30439, 17199, 5809, 959, 26785, 69236, 1250, 4867, 502, 151206, 47192, 70, 23, 3525, 27781, 18499, 24638, 28, 9821, 12477, 397, 38969, 594, 11675, 79986, 44084, 141377, 29568, 35064, 2424, 11435, 75101, 75463, 41347, 10727...
[ 0.1175537109375, 0.214111328125, 0.2254638671875, 0.17578125, 0.270751953125, 0.10369873046875, 0.111572265625, 0.2166748046875, 0.21875, 0.15478515625, 0.2244873046875, 0.10888671875, 0.115966796875, 0.1927490234375, 0.001251220703125, 0.020599365234375, 0.007293701171875, 0.07159...
embed
36215417_c0
36215417
prolog
0
Title: Ancestor to all reachable node Problem title: Ancestor to all reachable node Tags: transitive-closure, prolog Problem: Ancestor to all reachable node I wrote it as such. But it only succeed in finding till the grandparent, and not any further. How do I write it in such a way that it finds all possible ancestor. ...
Ancestor to all reachable node Ancestor to all reachable node transitive-closure prolog Ancestor greatgrand_parent grand_parent What Ancestor to all reachable node I wrote it as such. But it only succeed in finding till the grandparent, and not any further. How do I write it in such a way that it finds all possible anc...
[ -0.002105712890625, 0.0036468505859375, 0.0174560546875, 0.021484375, -0.00016117095947265625, -0.00311279296875, -0.004425048828125, 0.024658203125, -0.00958251953125, -0.0498046875, 0.004119873046875, -0.0211181640625, 0.00946044921875, 0.02734375, 0.015380859375, -0.032470703125, ...
[ 62, 3956, 20820, 47, 756, 58359, 2886, 110, 112, 62621, 5844, 170224, 502, 4867, 6782, 79139, 99547, 9963, 4865, 54397, 6044, 4734, 214493, 90791, 570, 53333, 11249, 54, 33022, 442, 3917, 7413, 7722, 60502, 1290, 32316, 15824, 77878, 173340...
[ 0.0703125, 0.1859130859375, 0.221923828125, 0.1319580078125, 0.177734375, 0.1871337890625, 0.197998046875, 0.1534423828125, 0.134521484375, 0.13134765625, 0.134033203125, 0.21044921875, 0.1123046875, 0.1702880859375, 0.1103515625, 0.138671875, 0.210693359375, 0.1212158203125, 0.0...
embed
49838393_c2
49838393
prolog
2
= Number1_3 + Number2_3. The output when I run this query in SWI-Prolog makes me feel like I'm misunderstanding a big concept in CLPFD: ?- problem([Pink, Cyan, Yellow, Green, Purple, Red, Brown, White, Lime]). Pink in 3..9, _7756#=Pink+10*Purple+1000*Red+100*Lime, _7810#=1010*Pink+100*Cyan+Yellow, Code signals: Cryptog...
= Number1_3 + Number2_3. The output when I run this query in SWI-Prolog makes me feel like I'm misunderstanding a big concept in CLPFD: ?- problem([Pink, Cyan, Yellow, Green, Purple, Red, Brown, White, Lime]). Pink in 3..9, _7756#=Pink+10*Purple+1000*Red+100*Lime, _7810#=1010*Pink+100*Cyan+Yellow, Code signals: Cryptog...
[ 0.00063323974609375, -0.00286865234375, -0.02294921875, 0.0264892578125, -0.0032196044921875, -0.0028076171875, -0.01263427734375, 0.0152587890625, 0.00848388671875, -0.0029754638671875, -0.0181884765625, -0.000698089599609375, 0.00372314453125, 0.01312255859375, -0.0064697265625, 0.00...
[ 2203, 103332, 418, 454, 363, 997, 304, 140992, 11675, 903, 41, 1294, 159, 38969, 9, 10752, 4867, 30482, 163, 12319, 1884, 39, 1239, 24658, 144057, 6957, 23755, 23, 46323, 41265, 397, 705, 2967, 683, 14068, 313, 1643, 4, 146762, 15497, 1...
[ 0.12841796875, 0.2027587890625, 0.033233642578125, 0.011199951171875, 0.2257080078125, 0.1505126953125, 0.118408203125, 0.2081298828125, 0.0814208984375, 0.0293426513671875, 0.14501953125, 0.103759765625, 0.0799560546875, 0.228515625, 0.01312255859375, 0.157958984375, 0.2216796875, ...
embed
61518394_c2
61518394
prolog
2
21(Case,factorsSoFar). % determine acceptibilty of % F121, Confidentiality Agreement getf121(Case,factorsSoFar):- member(f23,factorsSoFar), member(f4,factorsSoFar),!, write(['There was no Code signals: Prolog, f12, f14, f21, f10, Case, getf124, getf123, f124, Accepted, Defendent, Ownership, Rights, F123, Maintaining, S...
21(Case,factorsSoFar). % determine acceptibilty of % F121, Confidentiality Agreement getf121(Case,factorsSoFar):- member(f23,factorsSoFar), member(f4,factorsSoFar),!, write(['There was no Code signals: Prolog, f12, f14, f21, f10, Case, getf124, getf123, f124, Accepted, Defendent, Ownership, Rights, F123, Maintaining, S...
[ 0.005889892578125, -0.0159912109375, 0.0004100799560546875, -0.0009765625, -0.0020294189453125, -0.03466796875, 0.009033203125, 0.00170135498046875, 0.027587890625, 0.025634765625, 0.01953125, -0.009521484375, 0.005889892578125, -0.0162353515625, -0.00131988525390625, 0.005157470703125...
[ 952, 441, 6991, 4, 144810, 7, 8912, 80908, 1745, 83324, 26946, 14, 2721, 939, 111, 563, 129697, 139403, 555, 118, 134393, 186670, 2046, 420, 32786, 3742, 617, 38, 33022, 116959, 509, 110, 28864, 26073, 12, 1250, 4867, 1238, 1530, 2592, ...
[ 0.1932373046875, 0.087646484375, 0.1370849609375, 0.0367431640625, 0.1983642578125, 0.044342041015625, 0.08184814453125, 0.1895751953125, 0.162841796875, 0.1787109375, 0.2027587890625, 0.129638671875, 0.1396484375, 0.102294921875, 0.0240478515625, 0.11572265625, 0.234375, 0.1458740...
embed
55774779_c0
55774779
prolog
0
Title: instantiation fault in indomain Problem title: instantiation fault in indomain Tags: eclipse-clp, prolog Problem: instantiation fault in indomain I have a board solver which its general form of the solver likes the below: solver(Board):- constraints(Board), search(Board). It passes the constraint predicate, but ...
instantiation fault in indomain instantiation fault in indomain eclipse-clp prolog Board term_variables Vars sd:labeling instantiation fault in indomain I have a board solver which its general form of the solver likes the below: It passes the constraint predicate, but there is an error in the search part which comes in...
[ 0.00506591796875, -0.006744384765625, 0.011962890625, -0.00970458984375, -0.0028839111328125, 0.0152587890625, 0.01226806640625, 0.00469970703125, -0.009033203125, -0.05810546875, 0.00136566162109375, -0.0224609375, 0.01202392578125, -0.003204345703125, 0.01416015625, -0.01470947265625...
[ 34648, 14, 2320, 193857, 23, 67018, 24931, 106371, 184, 26775, 502, 4867, 62554, 13579, 21690, 19736, 3323, 71, 152526, 214, 45443, 3115, 814, 4537, 3173, 1884, 35064, 10922, 70, 158, 2816, 4288, 1653, 2063, 67, 18499, 33938, 2831, 74918, ...
[ 0.1337890625, 0.145751953125, 0.04888916015625, 0.25341796875, 0.0284271240234375, 0.1944580078125, 0.2115478515625, 0.1676025390625, 0.0531005859375, 0.1044921875, 0.10418701171875, 0.134765625, 0.1259765625, 0.12060546875, 0.09381103515625, 0.000885009765625, 0.09771728515625, 0....
embed
69430516_c0
69430516
prolog
0
Title: Splitting a list into two Separate lists Problem title: Splitting a list into two Separate lists Tags: prolog Problem: Splitting a list into two Separate lists I'm trying to iterate through a given list and put all the positive numbers into Y and all negatives into Z. My code works until I go to add a second ele...
Splitting a list into two Separate lists Splitting a list into two Separate lists prolog Splitting Separate Splitting a list into two Separate lists I'm trying to iterate through a given list and put all the positive numbers into Y and all negatives into Z. My code works until I go to add a second element to either Y o...
[ 0.0008392333984375, 0.00028228759765625, 0.004150390625, 0.0128173828125, -0.00982666015625, 0.025146484375, 0.01312255859375, 0.0211181640625, 0.0125732421875, 0.01519775390625, 0.0040283203125, -0.006378173828125, -0.00811767578125, 0.0054931640625, -0.01422119140625, 0.0078735351562...
[ 46474, 1916, 5303, 3934, 6626, 503, 6276, 67, 502, 4867, 31577, 8560, 8305, 34475, 3884, 24491, 101935, 990, 756, 40907, 567, 18151, 43240, 24189, 15190, 17932, 12830, 47, 11675, 1884, 221, 97368, 112, 132, 418, 9, 90173, 1723, 1511, 7192...
[ 0.1981201171875, 0.066650390625, 0.20263671875, 0.1170654296875, 0.175048828125, 0.073974609375, 0.1783447265625, 0.1424560546875, 0.06439208984375, 0.079345703125, 0.06884765625, 0.1346435546875, 0.044921875, 0.002471923828125, 0.0160675048828125, 0.1346435546875, 0.0977783203125, ...
embed
49288905_c0
49288905
prolog
0
Title: How could I have two names for the same atom in Prolog? Problem title: How could I have two names for the same atom in Prolog? Tags: prolog Problem: How could I have two names for the same atom in Prolog? I want to have two names for the same atom in Prolog: player(thomas). player(william). teamOfPlayer(thomas, ...
How could I have two names for the same atom in Prolog? How could I have two names for the same atom in Prolog? prolog How Prolog How could I have two names for the same atom in Prolog? I want to have two names for the same atom in Prolog: I'd like to be able to refer to William using "william" atom and using "will" at...
[ 0.00994873046875, 0.00177001953125, 0.01953125, 0.0283203125, 0.01055908203125, 0.007537841796875, 0.0062255859375, 0.010498046875, -0.0224609375, -0.021240234375, 0.005218505859375, 0.0120849609375, -0.0072021484375, 0.00640869140625, 0.0072021484375, 0.00994873046875, 0.02661132812...
[ 11249, 5809, 87, 765, 6626, 123055, 100, 5701, 34627, 23, 1250, 4867, 502, 3444, 71, 1884, 19048, 15005, 47, 25031, 17368, 110641, 11065, 136, 4527, 7477, 18770, 61924, 128911, 11627, 71864, 57823 ]
[ 0.09033203125, 0.1087646484375, 0.033905029296875, 0.0902099609375, 0.192626953125, 0.1990966796875, 0.05462646484375, 0.1319580078125, 0.2203369140625, 0.082763671875, 0.1500244140625, 0.224609375, 0.07958984375, 0.07568359375, 0.0018310546875, 0.0650634765625, 0.0279998779296875, ...
embed
19042909_c0
19042909
prolog
0
Title: Modelling Constraint Logic Programs (for analysis) Problem title: Modelling Constraint Logic Programs (for analysis) Tags: clojure-core.logic, constraint-programming, logic-programming, minikanren, prolog Problem: Modelling Constraint Logic Programs (for analysis) Object-Oriented programs can be modelled by diff...
Modelling Constraint Logic Programs (for analysis) Modelling Constraint Logic Programs (for analysis) clojure-core.logic constraint-programming logic-programming minikanren prolog Modelling Constraint Logic Programs clojure-core.logic Modelling Constraint Logic Programs (for analysis) Object-Oriented programs can be mo...
[ 0.00689697265625, -0.00830078125, 0.006744384765625, 0.03125, 0.005279541015625, 0.0225830078125, -0.00341796875, -0.007171630859375, 0.006622314453125, -0.04443359375, -0.01300048828125, -0.0206298828125, -0.01361083984375, 0.00099945068359375, 0.024169921875, 0.0034332275390625, -0...
[ 49475, 214, 1657, 2816, 4288, 50592, 7663, 2472, 114137, 20450, 461, 107, 30854, 137043, 158, 28966, 62775, 7665, 331, 982, 502, 4867, 134549, 165168, 103391, 831, 40030, 12921, 115774, 51719, 123996, 884, 429, 56095, 73016, 10086, 345, 39456...
[ 0.1947021484375, 0.031005859375, 0.1085205078125, 0.1805419921875, 0.078125, 0.1981201171875, 0.1927490234375, 0.0369873046875, 0.2147216796875, 0.1063232421875, 0.1016845703125, 0.0919189453125, 0.1163330078125, 0.1605224609375, 0.01953125, 0.1328125, 0.201904296875, 0.05267333984...
embed
66105807_c0
66105807
prolog
0
Title: When does Prolog prompts &#x27;yes&#x27; and when does it says &#x27;true&#x27; Problem title: When does Prolog prompts &#x27;yes&#x27; and when does it says &#x27;true&#x27; Tags: gnu-prolog, prolog-toplevel, prolog Problem: When does Prolog prompts 'yes' and when does it says 'true' I wrote the following knowl...
When does Prolog prompts &#x27;yes&#x27; and when does it says &#x27;true&#x27; When does Prolog prompts &#x27;yes&#x27; and when does it says &#x27;true&#x27; gnu-prolog prolog-toplevel prolog When Prolog When does Prolog prompts 'yes' and when does it says 'true' I wrote the following knowledge base in Prolog: Now, w...
[ 0.01434326171875, 0.011474609375, 0.01806640625, 0.016357421875, -0.0106201171875, 0.015625, 0.01043701171875, 0.0069580078125, -0.0213623046875, 0.0186767578125, -0.00042724609375, -0.006927490234375, -0.028076171875, 0.00701904296875, 0.02490234375, -0.00144195556640625, 0.02282714...
[ 14847, 1250, 4867, 105876, 7, 3768, 63736, 3229, 17378, 9774, 13, 104155, 3454, 502, 13784, 67919, 14602, 51359, 3647, 75463, 11435, 75101, 28219, 156405, 90, 119475 ]
[ 0.1175537109375, 0.194580078125, 0.270263671875, 0.222900390625, 0.0360107421875, 0.123046875, 0.1917724609375, 0.1248779296875, 0.0804443359375, 0.1676025390625, 0.08544921875, 0.115478515625, 0.1011962890625, 0.0950927734375, 0.023162841796875, 0.09033203125, 0.01885986328125, 0....
embed
30153135_c1
30153135
prolog
1
X3, X4, X8, X6, X7, 0, X9]). c([X1, X2, X3, X4, X5, 0, X7, X8, X9], [X1, X2, X3, X4, X5, X9, X7, X8, 0]). %%right d([0, X2, X3, X4, X5, X6, X7, X8, X9], [X2, 0, X3, X4, X5, X6, X7, X8, X9]). d([X1, 0, X3, X4, X5, X6, X7, X8, X9], [X1, X3, 0, X4, X5, X6, X7, X8, X9]). d([X1, X2, X3, 0, X5, X6, X7, X8, X9], [X1, X2, X3,...
X3, X4, X8, X6, X7, 0, X9]). c([X1, X2, X3, X4, X5, 0, X7, X8, X9], [X1, X2, X3, X4, X5, X9, X7, X8, 0]). %%right d([0, X2, X3, X4, X5, X6, X7, X8, X9], [X2, 0, X3, X4, X5, X6, X7, X8, X9]). d([X1, 0, X3, X4, X5, X6, X7, X8, X9], [X1, X3, 0, X4, X5, X6, X7, X8, X9]). d([X1, X2, X3, 0, X5, X6, X7, X8, X9], [X1, X2, X3,...
[ -0.007110595703125, 0.0118408203125, 0.01806640625, 0.0203857421875, -0.006561279296875, 0.0025482177734375, -0.033203125, 0.01446533203125, 0.0169677734375, 0.02294921875, -0.000820159912109375, -0.0031280517578125, -0.01025390625, 0.003997802734375, -0.0283203125, 0.0111083984375, ...
[ 1193, 363, 4, 617, 1019, 910, 966, 757, 1126, 268, 194, 501, 132, 1065, 1542, 418, 304, 758, 378, 1745, 3949, 54969, 104, 2389, 34695, 876 ]
[ 0.2454833984375, 0.2802734375, 0.1278076171875, 0.294189453125, 0.270751953125, 0.25146484375, 0.23193359375, 0.1806640625, 0.25830078125, 0.0816650390625, 0.106689453125, 0.1544189453125, 0.1165771484375, 0.0606689453125, 0.2276611328125, 0.1485595703125, 0.274169921875, 0.2583007...
embed
31222602_c0
31222602
prolog
0
Title: Prolog combinatorial exercise Problem title: Prolog combinatorial exercise Tags: prolog, combinations Problem: Prolog combinatorial exercise I want to write a Prolog program for the following problem: From a set X = {1 ... 24} determine 8 numbers y1..y8 , such that for every n, 0 < n < 24 there are two numbers y...
Prolog combinatorial exercise Prolog combinatorial exercise prolog combinations Prolog random_member Prolog combinatorial exercise I want to write a Prolog program for the following problem: From a set X = {1 ... 24} determine 8 numbers y1..y8 , such that for every n, 0 < n < 24 there are two numbers yi and yj with n =...
[ 0.0025482177734375, 0.01080322265625, 0.007415771484375, -0.007476806640625, -0.0034942626953125, 0.003265380859375, -0.01708984375, 0.00031280517578125, 0.0062255859375, -0.056396484375, 0.0013275146484375, 0.0155029296875, 0.003875732421875, 0.0009307861328125, -0.0186767578125, 0.00...
[ 1250, 4867, 22321, 77275, 81979, 502, 162515, 96759, 39, 27417, 3444, 33022, 1528, 100, 25632, 2967, 28090, 5423, 1193, 2203, 418, 744, 83324, 382, 101935, 113, 5, 53, 1019, 11907, 653, 757, 4426, 2685, 6626, 11180, 136, 170, 20, 977, 3...
[ 0.1749267578125, 0.24560546875, 0.1871337890625, 0.0948486328125, 0.1795654296875, 0.131591796875, 0.186767578125, 0.1201171875, 0.004486083984375, 0.1417236328125, 0.088134765625, 0.091552734375, 0.16357421875, 0.033966064453125, 0.0638427734375, 0.158447265625, 0.055908203125, 0....
embed
12962228_c0
12962228
prolog
0
Title: interfacing prolog with php and mysql Problem title: interfacing prolog with php and mysql Tags: mysql, php, prolog, swi-prolog Problem: interfacing prolog with php and mysql I am looking to see if this is a possible scenario - My php page calls prolog (and sends the query with data), and then prolog code runs a...
interfacing prolog with php and mysql interfacing prolog with php and mysql mysql php prolog swi-prolog interfacing prolog with php and mysql I am looking to see if this is a possible scenario - My php page calls prolog (and sends the query with data), and then prolog code runs and binds certain (output) variables, and...
[ 0.029541015625, 0.0244140625, 0.0030670166015625, -0.00616455078125, -0.00445556640625, 0.038818359375, -0.00958251953125, -0.00421142578125, -0.00885009765625, -0.07666015625, 0.0238037109375, 0.019775390625, -0.0233154296875, -0.023681640625, 0.0027008056640625, 0.0216064453125, -0...
[ 1940, 91468, 502, 4867, 678, 3958, 136, 759, 7, 99247, 91, 2452, 3454, 16487, 7722, 106117, 9191, 11782, 25379, 41, 2053, 18151, 127877, 68557, 24233, 6056, 77336, 5646, 72367, 3934, 40041, 209806, 48281, 67, 7693, 37967, 17368, 26536, 1825...
[ 0.108642578125, 0.1595458984375, 0.2056884765625, 0.25927734375, 0.13916015625, 0.22119140625, 0.1083984375, 0.14453125, 0.038238525390625, 0.227783203125, 0.075439453125, 0.241943359375, 0.1727294921875, 0.010223388671875, 0.104248046875, 0.11767578125, 0.1212158203125, 0.09643554...
embed
57439657_c0
57439657
prolog
0
Title: Mutually exclusion in a logic task Problem title: Mutually exclusion in a logic task Tags: gnu-prolog, prolog Problem: Mutually exclusion in a logic task There is three friends - misha, petya, vova. Surnames: ivanov, semyonov, gerasimov. name(misha). name(vova). name(petya). surname(ivanov). surname(semyonov). s...
Mutually exclusion in a logic task Mutually exclusion in a logic task gnu-prolog prolog Mutually full_name Mutually exclusion in a logic task There is three friends - misha, petya, vova. Surnames: ivanov, semyonov, gerasimov. misha isn't gerasimov. vova is studying in the 6th grade. gerasimov is in the 5th. How to defi...
[ 0.0003662109375, 0.01318359375, 0.01165771484375, 0.01324462890625, -0.0184326171875, -0.00628662109375, -0.01251220703125, 0.019287109375, 0.0172119140625, -0.017333984375, 0.007537841796875, 0.01202392578125, 0.0181884765625, -0.000732421875, 0.0034027099609375, 0.0228271484375, 0....
[ 174948, 25958, 39041, 6889, 62775, 66211, 23, 6, 104155, 3454, 4867, 502, 4393, 11627, 83, 17262, 23902, 1239, 528, 8093, 395, 81, 2914, 8018, 17, 2187, 515, 484, 9480, 10110, 5072, 56112, 18, 35187, 214, 305, 927, 44000, 70, 190, 5, ...
[ 0.1553955078125, 0.1175537109375, 0.2269287109375, 0.10650634765625, 0.190673828125, 0.2208251953125, 0.03167724609375, 0.019287109375, 0.1839599609375, 0.1160888671875, 0.1732177734375, 0.118408203125, 0.15234375, 0.201171875, 0.0253448486328125, 0.1722412109375, 0.2318115234375, ...
embed
10342695_c0
10342695
prolog
0
Title: filling a list with X [] (empty lists) Problem title: filling a list with X [] (empty lists) Tags: prolog Problem: filling a list with X [] (empty lists) fillwith(X,List2):- length(List2,Y) ,Y>=X; append(List2,[[]],List3) ,fillwith(X,List3). the problem here is that once it reach the target it starts it do somet...
filling a list with X [] (empty lists) filling a list with X [] (empty lists) prolog List2 List3 filling a list with X [] (empty lists) the problem here is that once it reach the target it starts it do something weird,it goes back to the first call it made. for example: here in the first call List2 = [[]],in the second...
[ 0.004425048828125, 0.0152587890625, -0.00142669677734375, 0.000934600830078125, -0.0152587890625, 0.0189208984375, 0.00262451171875, 0.00860595703125, 0.0322265625, 0.0302734375, 0.021240234375, -0.0279541015625, -0.0125732421875, 0.029296875, -0.0024261474609375, -0.00177764892578125,...
[ 26292, 214, 5303, 678, 1193, 33548, 939, 7, 502, 4867, 32036, 304, 363, 2967, 3688, 83, 24145, 442, 58359, 70, 30388, 4034, 54, 9844, 179459, 60899, 4420, 47, 5117, 11782, 7228, 27781, 17932, 73, 50960, 4, 49903, 3229, 125728, 17, 3564,...
[ 0.16943359375, 0.062744140625, 0.2275390625, 0.0950927734375, 0.1593017578125, 0.114013671875, 0.058441162109375, 0.01165771484375, 0.13232421875, 0.200927734375, 0.1783447265625, 0.114990234375, 0.16455078125, 0.1844482421875, 0.049468994140625, 0.011474609375, 0.09130859375, 0.06...
embed
71949024_c0
71949024
prolog
0
Title: Collect data, but skip non-zero referenced-data Problem title: Collect data, but skip non-zero referenced-data Tags: list, prolog Problem: Collect data, but skip non-zero referenced-data i have the following fnf([],[],[]). fnf([RH|RT],[CH|CT],[[RH,CH]|Res]) :- get(RH,CH,V), V == 0, fnf(RT,CT,Res). i'm trying to ...
Collect data, but skip non-zero referenced-data Collect data, but skip non-zero referenced-data list prolog Collect Res _2044 Collect data, but skip non-zero referenced-data i have the following i'm trying to collect only elements of Cs and Rs for which the V is zero. The code above does that but fails when it hits non...
[ 0.0115966796875, 0.01806640625, 0.01806640625, -0.00970458984375, -0.005523681640625, -0.009521484375, 0.0113525390625, 0.00201416015625, 0.00830078125, -0.012451171875, 0.0159912109375, 0.007537841796875, -0.021728515625, 0.01611328125, -0.0022430419921875, -0.00994873046875, 0.0125...
[ 138521, 2053, 1284, 21658, 351, 80510, 91067, 71, 10135, 5303, 502, 4867, 9624, 1549, 12465, 25632, 31577, 43799, 4734, 80854, 313, 7, 136, 115034, 310, 83, 45234, 18151, 35782, 5962, 34292, 3444, 2856, 69236, 43240, 7464, 101, 6506, 5608, ...
[ 0.2200927734375, 0.214111328125, 0.0892333984375, 0.1988525390625, 0.1591796875, 0.1968994140625, 0.2196044921875, 0.058837890625, 0.1763916015625, 0.13525390625, 0.132080078125, 0.170166015625, 0.1734619140625, 0.08013916015625, 0.234130859375, 0.0261077880859375, 0.061309814453125,...
embed
7332229_c0
7332229
prolog
0
Title: A prolog program to group cities Problem title: A prolog program to group cities Tags: prolog Problem: A prolog program to group cities Please I need help here, it's an assigment A prolog program that shows which cities are in south- east of Nigeria. Here are the cities (abraka, oyo, awka, orlu, markurdi, jaling...
A prolog program to group cities A prolog program to group cities prolog A prolog program to group cities Please I need help here, it's an assigment A prolog program that shows which cities are in south- east of Nigeria. Here are the cities (abraka, oyo, awka, orlu, markurdi, jalingo, owerri, aba, mushin, okigwe). Plea...
[ 0.0086669921875, -0.01434326171875, 0.0076904296875, 0.00147247314453125, -0.015869140625, 0.011962890625, -0.021484375, 0.01348876953125, 0.00982666015625, 0.01287841796875, -0.00933837890625, 0.00060272216796875, -0.01116943359375, 0.002716064453125, -0.00115966796875, 0.010131835937...
[ 62, 502, 4867, 1528, 47, 21115, 162708, 3871, 4358, 3688, 237, 20561, 674, 45831, 3129, 621, 23, 127067, 9, 28, 4438, 111, 72620, 11853, 70, 2055, 41754, 36, 1410, 113675, 707, 822, 2971, 428, 79, 2069, 31, 2600, 12713, 15855, 79755, ...
[ 0.0263519287109375, 0.1817626953125, 0.265625, 0.2335205078125, 0.0921630859375, 0.2052001953125, 0.25048828125, 0.0584716796875, 0.108154296875, 0.016998291015625, 0.0255279541015625, 0.172607421875, 0.156982421875, 0.100341796875, 0.03387451171875, 0.05340576171875, 0.11328125, 0...
embed
13950307_c0
13950307
prolog
0
Title: What are the problems associated to Best First Search in Artificial intelligence? Problem title: What are the problems associated to Best First Search in Artificial intelligence? Tags: state-space, prolog, artificial-intelligence, algorithm Problem: What are the problems associated to Best First Search in Artifi...
What are the problems associated to Best First Search in Artificial intelligence? What are the problems associated to Best First Search in Artificial intelligence? state-space prolog artificial-intelligence algorithm What Best First Search Artificial What are the problems associated to Best First Search in Artificial i...
[ 0.017822265625, 0.00079345703125, -0.00836181640625, 0.0279541015625, -0.0238037109375, 0.01361083984375, -0.005706787109375, -0.020751953125, -0.00518798828125, -0.01275634765625, 0.01904296875, 0.01043701171875, -0.0025634765625, 0.017822265625, 0.0126953125, 0.0027008056640625, 0....
[ 4865, 621, 70, 44402, 137272, 11345, 23972, 33086, 23, 231996, 130687, 47, 11341, 65421, 502, 4867, 66733, 234873, 70829, 4537, 37348, 4000, 122200, 136, 37385, 6287, 193844, 1286, 29458, 33938, 2965, 15411, 22631, 2806, 645, 45738, 27781, 12...
[ 0.08563232421875, 0.04107666015625, 0.052490234375, 0.2366943359375, 0.168701171875, 0.2135009765625, 0.18798828125, 0.2685546875, 0.058837890625, 0.2164306640625, 0.146240234375, 0.0367431640625, 0.09136962890625, 0.1522216796875, 0.12451171875, 0.2166748046875, 0.11865234375, 0.1...
embed
54297285_c0
54297285
prolog
0
Title: In SWI-Prolog is there an easy way to convert numbers from one base to another using REPL? Problem title: In SWI-Prolog is there an easy way to convert numbers from one base to another using REPL? Tags: prolog, swi-prolog Problem: In SWI-Prolog is there an easy way to convert numbers from one base to another usi...
In SWI-Prolog is there an easy way to convert numbers from one base to another using REPL? In SWI-Prolog is there an easy way to convert numbers from one base to another using REPL? prolog swi-prolog one REPL SWI-Prolog ERROR Syntax Operator In SWI-Prolog is there an easy way to convert numbers from one base to another...
[ -0.004119873046875, -0.0001468658447265625, 0.0078125, 0.01416015625, 0.0027008056640625, 0.0015869140625, -0.01507568359375, 0.0011749267578125, 0.00506591796875, -0.006744384765625, -0.0003108978271484375, 0.016845703125, -0.01043701171875, 0.01336669921875, 0.002899169921875, -0.011...
[ 159, 38969, 10752, 4867, 23468, 3917, 96760, 101935, 1295, 1632, 3647, 47, 15700, 17368, 9069, 21130, 360, 502, 91, 2452, 3454, 151206, 19010, 86531, 150922, 9, 72546, 2499, 209, 33306, 35782, 41206, 4488, 47644 ]
[ 0.05987548828125, 0.2117919921875, 0.1202392578125, 0.1829833984375, 0.132568359375, 0.0631103515625, 0.195556640625, 0.16845703125, 0.077392578125, 0.0740966796875, 0.19091796875, 0.10125732421875, 0.1041259765625, 0.03515625, 0.1334228515625, 0.26904296875, 0.0171966552734375, 0....
embed
70746719_c0
70746719
prolog
0
Title: Creating a predicate that satisfy a specific combinations Problem title: Creating a predicate that satisfy a specific combinations Tags: prolog Problem: Creating a predicate that satisfy a specific combinations My goal is create a predicate that receive 3 parameters and return on 3rd parameter a value based on s...
Creating a predicate that satisfy a specific combinations Creating a predicate that satisfy a specific combinations prolog Creating Creating a predicate that satisfy a specific combinations My goal is create a predicate that receive 3 parameters and return on 3rd parameter a value based on specific combinations: Now i ...
[ -0.01507568359375, -0.012939453125, -0.0208740234375, 0.0123291015625, 0.00274658203125, 0.0191650390625, 0.007171630859375, 0.00518798828125, 0.00897216796875, 0.01373291015625, 0.0037689208984375, -0.00079345703125, 0.02490234375, -0.01031494140625, -0.004852294921875, 0.0087890625, ...
[ 56781, 1916, 1653, 2063, 67, 450, 40407, 53, 29458, 162515, 502, 4867, 69236, 28282, 53299, 138, 171859, 30646, 4216, 34292, 35509, 14240, 765, 903 ]
[ 0.1829833984375, 0.044464111328125, 0.1966552734375, 0.244873046875, 0.1475830078125, 0.02581787109375, 0.18359375, 0.07562255859375, 0.1986083984375, 0.2406005859375, 0.086669921875, 0.1605224609375, 0.1800537109375, 0.1729736328125, 0.09906005859375, 0.115478515625, 0.2200927734375...
embed
40952472_c0
40952472
prolog
0
Title: DCG doubling a count Problem title: DCG doubling a count Tags: successor-arithmetics, prolog, dcg Problem: DCG doubling a count I am playing around with DCGs and I have this code. This displays x number of 0 s and x numbers of A s. y --> test(Count), as(Count). test(0) --> []. test(succ(0)) --> [0]. test(succ(su...
DCG doubling a count DCG doubling a count successor-arithmetics prolog dcg DCG Count DCG doubling a count I am playing around with DCGs and I have this code. This displays x number of 0 s and x numbers of A s. my question is how do I pass a functor to make the number of A s double the number of 0 s. Here's what I tried...
[ 0.002685546875, -0.007049560546875, -0.003875732421875, 0.0108642578125, 0.0189208984375, 0.01202392578125, -0.0101318359375, -0.0115966796875, 0.0098876953125, -0.0306396484375, -0.0012664794921875, -0.0166015625, -0.00946044921875, 0.01416015625, 0.034912109375, 0.005401611328125, ...
[ 391, 56367, 54, 34, 79298, 54529, 10, 39457, 42, 8962, 41637, 502, 4867, 104, 238, 177, 108210, 75169, 10932, 903, 18151, 44116, 1022, 14012, 757, 91, 136, 101935, 62, 9655, 3642, 27875, 7477, 18770, 47, 3249, 111, 41929, 37842, 22027, ...
[ 0.123291015625, 0.2188720703125, 0.095703125, 0.151123046875, 0.10791015625, 0.21337890625, 0.00811767578125, 0.17724609375, 0.047393798828125, 0.0504150390625, 0.0254974365234375, 0.1016845703125, 0.1346435546875, 0.05926513671875, 0.03955078125, 0.0672607421875, 0.1636962890625, ...
embed
27468390_c0
27468390
prolog
0
Title: Prolog beginner - reverse output list Problem title: Prolog beginner - reverse output list Tags: fibonacci, reverse, list, prolog Problem: Prolog beginner - reverse output list I'm a Prolog beginner and I'm looking for a way to reverse the output of this code. fib(N, F) :- fib(N, 0, [1], F). fib(0, _, A, A). fib...
Prolog beginner - reverse output list Prolog beginner - reverse output list fibonacci reverse list prolog Prolog Sum Prolog beginner - reverse output list I'm a Prolog beginner and I'm looking for a way to reverse the output of this code. The code calculates the Fibonacci numbers for the value of N and prints the resul...
[ 0.0216064453125, 0.007598876953125, 0.00872802734375, 0.017578125, -0.028564453125, 0.01458740234375, 0.0137939453125, 0.0172119140625, 0.01177978515625, -0.00145721435546875, 0.00836181640625, -0.0216064453125, -0.003814697265625, 0.000705718994140625, 0.026611328125, 0.01092529296875...
[ 1250, 4867, 9842, 1679, 39531, 184, 140992, 5303, 809, 20990, 52544, 502, 36335, 16487, 3917, 47, 903, 18151, 74481, 3698, 101935, 34292, 541, 28412, 16750, 563, 275, 105801, 1542, 27489, 1193, 758, 363, 304, 76172, 3444, 1369, 133063, 9271...
[ 0.169677734375, 0.2362060546875, 0.09942626953125, 0.111572265625, 0.234619140625, 0.20751953125, 0.2406005859375, 0.201416015625, 0.1494140625, 0.1719970703125, 0.201416015625, 0.109130859375, 0.1942138671875, 0.03662109375, 0.046722412109375, 0.012908935546875, 0.003204345703125, ...
embed