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
52416473_c0
52416473
prolog
0
Title: How to write prolog program and queries Problem title: How to write prolog program and queries Tags: prolog Problem: How to write prolog program and queries Write Prolog program for following. I wrote every thing and I need to know final two are correct or not which I wrote. 1. saman likes maths. 2. saman likes ...
How to write prolog program and queries How to write prolog program and queries prolog How maths_and_science history_or_music Does Who How to write prolog program and queries Write Prolog program for following. I wrote every thing and I need to know final two are correct or not which I wrote. Is this correct for final ...
[ 0.01104736328125, 0.009765625, -0.01007080078125, 0.0230712890625, -0.0172119140625, 0.01226806640625, -0.004638671875, -0.0003814697265625, 0.00433349609375, -0.0174560546875, 0.00183868408203125, -0.0159912109375, -0.000579833984375, 0.01025390625, 0, -0.000507354736328125, 0.02539...
[ 11249, 47, 33022, 502, 4867, 1528, 136, 41, 10484, 48909, 2940, 175201, 32692, 748, 94922, 101790, 40469, 601, 18781, 1250, 100, 25632, 54397, 11907, 13580, 3871, 3714, 2704, 6626, 26785, 3642, 10, 4358 ]
[ 0.091064453125, 0.061737060546875, 0.1790771484375, 0.1787109375, 0.25048828125, 0.1993408203125, 0.1063232421875, 0.1282958984375, 0.1683349609375, 0.1220703125, 0.045379638671875, 0.097412109375, 0.101806640625, 0.0160369873046875, 0.176025390625, 0.0203399658203125, 0.106079101562...
embed
53036325_c0
53036325
prolog
0
Title: Finding leaf nodes in is_a() Tree in Prolog Problem title: Finding leaf nodes in is_a() Tree in Prolog Tags: tree, prolog, nodes Problem: Finding leaf nodes in is_a() Tree in Prolog I have made a basically a 'tree' in 'prolog' using `is_a(X, Y)'. Which looks something like this: is_tree('b', 'a'). is_tree('c', '...
Finding leaf nodes in is_a() Tree in Prolog Finding leaf nodes in is_a() Tree in Prolog tree prolog nodes Finding is_a Tree Prolog is_tree find_leaf Finding leaf nodes in is_a() Tree in Prolog I have made a basically a 'tree' in 'prolog' using `is_a(X, Y)'. Which looks something like this: And now I am trying to find a...
[ 0.02099609375, 0.01397705078125, 0.004486083984375, 0.0181884765625, 0.004852294921875, 0.00531005859375, -0.00994873046875, -0.0179443359375, 0.006927490234375, -0.038818359375, -0.01318359375, -0.01123046875, -0.007049560546875, -0.0074462890625, 0.0262451171875, -0.0179443359375, ...
[ 26040, 95, 2407, 110, 988, 83, 454, 11, 132, 101344, 23, 1250, 4867, 53201, 502, 62600, 7413, 133, 7228, 198343, 3454, 17368, 164, 1542, 990, 33342, 31577, 756, 2806, 104, 28, 1238, 706, 214493, 33022, 1810, 106, 271, 28219, 4420, 1257,...
[ 0.10418701171875, 0.07958984375, 0.1922607421875, 0.1712646484375, 0.1507568359375, 0.1702880859375, 0.0791015625, 0.143310546875, 0.057464599609375, 0.2080078125, 0.035186767578125, 0.1533203125, 0.21728515625, 0.1800537109375, 0.1181640625, 0.200439453125, 0.13134765625, 0.090393...
embed
64777227_c0
64777227
prolog
0
Title: How to shift elements to the left as much as possible? Prolog Problem title: How to shift elements to the left as much as possible? Prolog Tags: prolog Problem: How to shift elements to the left as much as possible? Prolog Suppose I have a list with 4 elements [0,4,0,2] (Can be any arrangement). Each element in ...
How to shift elements to the left as much as possible? Prolog How to shift elements to the left as much as possible? Prolog prolog How Prolog shift_left How to shift elements to the left as much as possible? Prolog Suppose I have a list with 4 elements [0,4,0,2] (Can be any arrangement). Each element in the list will m...
[ -0.00823974609375, 0.017578125, 0.010009765625, -0.00982666015625, -0.01116943359375, -0.0230712890625, -0.02783203125, -0.000690460205078125, 0.00079345703125, -0.01031494140625, 0.005859375, 0.0023193359375, -0.0103759765625, 0.0240478515625, 0.01190185546875, 0.015380859375, 0.010...
[ 11249, 47, 122925, 80854, 70, 25737, 5045, 237, 7722, 1250, 4867, 502, 133, 2480, 765, 5303, 201, 617, 2389, 90173, 70767, 98423, 12830, 1221, 25813, 98186, 208244, 45234, 72546, 351, 14012, 831, 959, 11, 209069, 155761, 24209, 1019, 304, ...
[ 0.10137939453125, 0.16162109375, 0.267333984375, 0.2646484375, 0.102294921875, 0.25341796875, 0.134033203125, 0.03228759765625, 0.1534423828125, 0.1558837890625, 0.24951171875, 0.06695556640625, 0.1307373046875, 0.1875, 0.0089111328125, 0.16015625, 0.1279296875, 0.0584716796875, ...
embed
15974509_c0
15974509
prolog
0
Title: Prolog building lists from predicates list Problem title: Prolog building lists from predicates list Tags: prolog Problem: Prolog building lists from predicates list I have the following predicates in Prolog: rules('Archer','NX-01'). rules('Kirk','NCC-1701'). rules('Picard','NCC-1701-D'). rules('Janeway','Voyage...
Prolog building lists from predicates list Prolog building lists from predicates list prolog predicates Prolog Archer NX-01 Kirk NCC-1701 Picard NCC-1701-D Janeway Voyager Almak IRWTMet list_ship_commanders Ship Commander Prolog building lists from predicates list I have the following predicates in Prolog: Where 'Arche...
[ 0, 0.023193359375, 0.00347900390625, 0.01953125, -0.000850677490234375, 0.018798828125, -0.0076904296875, 0.0087890625, -0.002716064453125, -0.0303955078125, 0.01171875, -0.00341796875, 0.0008392333984375, -0.0011749267578125, -0.01239013671875, 0.01287841796875, 0.00628662109375, ...
[ 1250, 4867, 33976, 5303, 1295, 1653, 2063, 1636, 502, 63590, 56, 166989, 55667, 70605, 13709, 13521, 6746, 3065, 38931, 397, 48511, 7514, 182699, 42, 884, 2327, 156416, 78572, 16070, 277, 669, 14202, 8294, 254, 123573, 186447, 124756, 29348, ...
[ 0.17236328125, 0.266357421875, 0.1678466796875, 0.2200927734375, 0.089599609375, 0.185546875, 0.2305908203125, 0.0943603515625, 0.1116943359375, 0.1434326171875, 0.117431640625, 0.1617431640625, 0.1514892578125, 0.152099609375, 0.10382080078125, 0.0924072265625, 0.1571044921875, 0....
embed
64901531_c0
64901531
prolog
0
Title: How to read from a list in GNU prolog? Problem title: How to read from a list in GNU prolog? Tags: prolog Problem: How to read from a list in GNU prolog? So I have an assignment where I am to produce compatible meeting times between 3 different people. In the prolog file where I define predicates, there is a lin...
How to read from a list in GNU prolog? How to read from a list in GNU prolog? prolog a How GNU How to read from a list in GNU prolog? So I have an assignment where I am to produce compatible meeting times between 3 different people. In the prolog file where I define predicates, there is a line given that has the name o...
[ 0.00238037109375, -0.002655029296875, 0.02001953125, 0.0126953125, -0.02001953125, 0.0025482177734375, 0.0023193359375, 0.0152587890625, 0.0106201171875, -0.041015625, 0.0013275146484375, 0.00860595703125, -0.004791259765625, -0.004638671875, -0.009033203125, -0.0101318359375, 0.0140...
[ 11249, 47, 12301, 1295, 10, 5303, 23, 165132, 502, 4867, 95486, 27489, 146731, 41714, 20028, 17721, 138, 12921, 3395, 11435, 61924, 1653, 2063, 1636, 13315, 34475, 9351, 17262, 134598, 69101, 14858, 123055, 2053, 15824, 16401, 9384, 3642, 830...
[ 0.10614013671875, 0.06256103515625, 0.260498046875, 0.2156982421875, 0.0679931640625, 0.2578125, 0.09503173828125, 0.2169189453125, 0.187744140625, 0.2149658203125, 0.0845947265625, 0.03619384765625, 0.1453857421875, 0.11572265625, 0.1103515625, 0.048858642578125, 0.076171875, 0.06...
embed
29102421_c0
29102421
prolog
0
Title: Removing list within lists based on nth element Problem title: Removing list within lists based on nth element Tags: prolog Problem: Removing list within lists based on nth element I've got a list of lists, for example: [[1, 2, 3, 2], [1, 3, 4, 3], [1, 4, 5, 4], [2, 3, 5, 6], [1, 5, 6, 5], [2, 4, 6, 8], [1, 6, 7...
Removing list within lists based on nth element Removing list within lists based on nth element prolog Removing my_membership Tail Fourth Removing list within lists based on nth element I've got a list of lists, for example: I'd like to get the last element of and check to see if is the same as the 4th element of any o...
[ -0.0084228515625, 0.0087890625, 0.0126953125, 0.00144195556640625, -0.0208740234375, 0.00872802734375, 0.00775146484375, 0.0120849609375, 0.00439453125, -0.03466796875, 0.00494384765625, -0.01318359375, 0.0216064453125, -0.00689697265625, -0.0181884765625, 0.0106201171875, 0.01019287...
[ 853, 432, 6496, 5303, 28032, 7, 35509, 653, 927, 12830, 502, 4867, 759, 39, 27417, 16070, 1218, 379, 65056, 1884, 2046, 4568, 111, 12765, 5701, 201, 31358, 75447, 442, 36998, 87388, 27781, 25737, 678, 3444, 756, 59121, 1653, 2063, 67, 7...
[ 0.014373779296875, 0.138671875, 0.040283203125, 0.1990966796875, 0.143310546875, 0.033233642578125, 0.096435546875, 0.18310546875, 0.15771484375, 0.17626953125, 0.063720703125, 0.1099853515625, 0.02490234375, 0.005859375, 0.1015625, 0.0804443359375, 0.06524658203125, 0.072082519531...
embed
77425868_c0
77425868
prolog
0
Title: Matching arithmetic expressions in SWI-Prolog? Problem title: Matching arithmetic expressions in SWI-Prolog? Tags: prolog, integer-arithmetic, clpfd Problem: Matching arithmetic expressions in SWI-Prolog? I have an arithmetic expression containing Var , and I need to match it to the following format: Step * Var ...
Matching arithmetic expressions in SWI-Prolog? Matching arithmetic expressions in SWI-Prolog? prolog integer-arithmetic clpfd Matching SWI-Prolog Step Offset Expression Ind inf..sup Matching arithmetic expressions in SWI-Prolog? I have an arithmetic expression containing Var , and I need to match it to the following fo...
[ -0.003448486328125, -0.01300048828125, -0.005950927734375, 0.01300048828125, 0.00982666015625, 0.010009765625, 0.006561279296875, 0.0031280517578125, 0.00689697265625, -0.014404296875, 0.01123046875, 0.00933837890625, -0.01116943359375, 0.00017642974853515625, 0.016845703125, -0.022583...
[ 67407, 214, 187, 8962, 282, 125195, 7, 23, 159, 38969, 9, 10752, 4867, 502, 892, 71, 50478, 9791, 3509, 25129, 14489, 34128, 2037, 70541, 3323, 3871, 14858, 9384, 661, 997, 33636, 3173, 136, 142424, 3714, 1360, 37352, 98553, 51515, 112892...
[ 0.2364501953125, 0.05572509765625, 0.020599365234375, 0.1365966796875, 0.07598876953125, 0.23681640625, 0.01214599609375, 0.048431396484375, 0.07122802734375, 0.225830078125, 0.00799560546875, 0.13818359375, 0.208251953125, 0.09942626953125, 0.05181884765625, 0.01654052734375, 0.1934...
embed
79198542_c0
79198542
prolog
0
Title: SWI Prolog - explanation on a solution Problem title: SWI Prolog - explanation on a solution Tags: prolog Problem: SWI Prolog - explanation on a solution I'm a total beginner on Prolog. There is a posted solution for a homework, and I want to learn how it works, step-by-step. I can't seem to wrap my head around ...
SWI Prolog - explanation on a solution SWI Prolog - explanation on a solution prolog SWI Prolog Item Zero One Two SWI Prolog - explanation on a solution I'm a total beginner on Prolog. There is a posted solution for a homework, and I want to learn how it works, step-by-step. I can't seem to wrap my head around this lan...
[ -0.0031890869140625, -0.005767822265625, 0.01226806640625, 0.025146484375, -0.021484375, 0.0196533203125, -0.031982421875, -0.0211181640625, 0.01080322265625, -0.03271484375, 0.022705078125, -0.01324462890625, -0.0213623046875, -0.01031494140625, -0.00823974609375, 0.0235595703125, 0...
[ 159, 38969, 1250, 4867, 187136, 98, 10, 29806, 502, 78426, 83947, 6561, 32964, 3622, 9842, 1679, 100, 5368, 18244, 30698, 3642, 442, 43240, 95528, 831, 18, 137565, 10336, 903, 46876, 134598, 33022, 1653, 2063, 73, 33657, 44677, 80854, 5303,...
[ 0.08807373046875, 0.260009765625, 0.1636962890625, 0.251708984375, 0.2393798828125, 0.126953125, 0.052490234375, 0.2294921875, 0.134765625, 0.1849365234375, 0.1910400390625, 0.1400146484375, 0.201416015625, 0.00311279296875, 0.0196533203125, 0.08203125, 0.0067138671875, 0.039276123...
embed
40292493_c0
40292493
prolog
0
Title: Determining successor in prolog using recursion Problem title: Determining successor in prolog using recursion Tags: prolog Problem: Determining successor in prolog using recursion I'm trying (failing) to understand an exercise where I'm given the following clauses; pterm(null). pterm(f0(X)) :- pterm(X). pterm(f...
Determining successor in prolog using recursion Determining successor in prolog using recursion prolog recursion Determining Determining successor in prolog using recursion I'm trying (failing) to understand an exercise where I'm given the following clauses; They represent a number in binary, eg. f0(null) is equivalent...
[ 0.011962890625, 0.01904296875, 0.012451171875, 0.02880859375, -0.0002994537353515625, -0.00034332275390625, -0.01361083984375, -0.007354736328125, -0.0069580078125, -0.021240234375, 0.0159912109375, -0.00026702880859375, -0.031494140625, -0.004974365234375, 0.022705078125, -0.004669189...
[ 262, 30524, 39457, 42, 23, 502, 4867, 17368, 195625, 1830, 214, 31577, 120540, 28219, 81979, 34475, 25632, 70731, 33636, 14012, 2394, 6635, 1238, 2389, 139550, 183234, 757, 418, 106, 151814, 61924, 1653, 2063, 67, 645, 32166, 1632, 83, 3789...
[ 0.1097412109375, 0.1824951171875, 0.2415771484375, 0.1689453125, 0.0233306884765625, 0.160888671875, 0.2464599609375, 0.0667724609375, 0.224853515625, 0.0986328125, 0.06951904296875, 0.031646728515625, 0.03564453125, 0.0758056640625, 0.13525390625, 0.045623779296875, 0.02406311035156...
embed
10858997_c0
10858997
prolog
0
Title: Arenas where core.logic dominates [soft] Problem title: Arenas where core.logic dominates [soft] Tags: clojure, logic, minikanren, prolog Problem: Arenas where core.logic dominates [soft] Community Wiki I don't care about the reputation points, I just want good answers. Feel free to remark this question as commu...
Arenas where core.logic dominates [soft] Arenas where core.logic dominates [soft] clojure logic minikanren prolog Arenas core.logic Arenas where core.logic dominates [soft] Community Wiki I don't care about the reputation points, I just want good answers. Feel free to remark this question as community wiki. Context I'm...
[ 0.0091552734375, 0.00162506103515625, 0.0146484375, 0.02294921875, -0.0068359375, 0.00154876708984375, 0.021484375, 0.0118408203125, 0.0191650390625, -0.0140380859375, 0.000774383544921875, -0.01171875, -0.01104736328125, -0.00040435791015625, 0.0174560546875, -0.01422119140625, 0.00...
[ 40024, 7, 7440, 56458, 137043, 35462, 1636, 61306, 20450, 461, 107, 62775, 7665, 331, 982, 502, 4867, 66069, 39418, 216473, 26847, 3444, 4127, 35166, 10015, 26908, 34356, 581, 236267, 34702, 1991, 150556, 50592, 238, 56037, 449, 4552, 49041, ...
[ 0.1968994140625, 0.0222015380859375, 0.030059814453125, 0.1571044921875, 0.25537109375, 0.2020263671875, 0.0855712890625, 0.133544921875, 0.078857421875, 0.1597900390625, 0.12646484375, 0.284912109375, 0.0281219482421875, 0.03167724609375, 0.15087890625, 0.05267333984375, 0.143066406...
embed
31470381_c0
31470381
prolog
0
Title: How to define a dummy/placeholder predicate in GNU Prolog Problem title: How to define a dummy/placeholder predicate in GNU Prolog Tags: gnu-prolog, prolog Problem: How to define a dummy/placeholder predicate in GNU Prolog I have a Prolog file with the following structure: % LIBRARY SECTION % foo(X) :- bar(X); b...
How to define a dummy/placeholder predicate in GNU Prolog How to define a dummy/placeholder predicate in GNU Prolog gnu-prolog prolog How GNU Prolog LIBRARY SECTION USER DATA e.g How to define a dummy/placeholder predicate in GNU Prolog I have a Prolog file with the following structure: The user data of the file is int...
[ 0.00970458984375, 0.01318359375, 0.00433349609375, -0.0021820068359375, -0.01116943359375, 0.023681640625, 0.0228271484375, -0.0072021484375, 0.007720947265625, -0.00897216796875, -0.0062255859375, -0.0028839111328125, -0.01953125, -0.01275634765625, 0.01544189453125, 0.0130615234375, ...
[ 11249, 61924, 8473, 1176, 64, 23935, 31958, 1653, 2063, 67, 165132, 1250, 4867, 10, 23, 104155, 3454, 502, 53176, 75018, 345, 50184, 391, 17758, 11435, 45646, 38937, 2053, 179140, 107003, 65042, 114977, 70541, 33720, 113660, 41, 5775, 31, 1...
[ 0.05419921875, 0.2337646484375, 0.2332763671875, 0.2264404296875, 0.06988525390625, 0.2054443359375, 0.207275390625, 0.206787109375, 0.252685546875, 0.1162109375, 0.1888427734375, 0.176025390625, 0.2220458984375, 0.00469970703125, 0.00555419921875, 0.10418701171875, 0.078857421875, ...
embed
4852138_c0
4852138
prolog
0
Title: Prolog Programming Problem title: Prolog Programming Tags: state-space, beam-search, n-queens, prolog Problem: Prolog Programming I have made two programs in Prolog for the nqueens puzzle using hill climbing and beam search algorithms. Unfortunately I do not have the experience to check whether the programs are ...
Prolog Programming Prolog Programming state-space beam-search n-queens prolog Prolog Programming UnplacedQs SafeQs UnplacedQs1 not_attack Y-N Prolog Programming I have made two programs in Prolog for the nqueens puzzle using hill climbing and beam search algorithms. Unfortunately I do not have the experience to check w...
[ 0.0272216796875, 0.00787353515625, 0.0223388671875, 0.0014495849609375, -0.004241943359375, 0.01031494140625, -0.01220703125, -0.015869140625, 0.0035400390625, -0.0223388671875, 0.00921630859375, 0.0002689361572265625, 0.00103759765625, 0.00836181640625, -0.0067138671875, -0.0173339843...
[ 1250, 4867, 27958, 11341, 65421, 186, 302, 86250, 653, 944, 1755, 502, 992, 23935, 2737, 115527, 418, 959, 257, 102, 990, 839, 7228, 6626, 103391, 104192, 17368, 130473, 194637, 214, 33938, 234873, 185397, 16981, 12765, 26785, 103494, 3564, ...
[ 0.167724609375, 0.25244140625, 0.160400390625, 0.08270263671875, 0.1356201171875, 0.1290283203125, 0.1680908203125, 0.19677734375, 0.07177734375, 0.15869140625, 0.129150390625, 0.1163330078125, 0.05828857421875, 0.1490478515625, 0.14306640625, 0.123779296875, 0.014251708984375, 0.1...
embed
52798641_c0
52798641
prolog
0
Title: Find all expressions of four 10s Problem title: Find all expressions of four 10s Tags: c%2B%2B, prolog Problem: Find all expressions of four 10s I was challenged with a CS problem. The problem consists of recursively finding which expressions of the form ((10+10)/(10+10)) produces a number. For example, ((10+10)...
Find all expressions of four 10s Find all expressions of four 10s c%2B%2B prolog Find Expression Operator Find all expressions of four 10s I was challenged with a CS problem. The problem consists of recursively finding which expressions of the form ((10+10)/(10+10)) produces a number. For example, ((10+10)/(10+10)) pro...
[ 0.002044677734375, 0.022216796875, -0.0019989013671875, 0.0189208984375, 0.01019287109375, 0.0031280517578125, -0.0028228759765625, 0.0107421875, -0.0111083984375, -0.028076171875, 0.002044677734375, -0.0186767578125, 0.005462646484375, 0.00592041015625, 0.004425048828125, -0.000572204...
[ 26040, 756, 125195, 7, 111, 22759, 209, 501, 502, 4867, 25129, 1830, 150922, 66801, 25841, 2967, 195625, 5844, 90791, 3173, 90980, 1328, 50258, 64, 27489, 14012, 615, 3789, 17368, 39933, 997, 20, 661, 248, 678, 201, 101935, 162515, 49129, ...
[ 0.1214599609375, 0.1448974609375, 0.243896484375, 0.0833740234375, 0.0338134765625, 0.2301025390625, 0.254150390625, 0.0254058837890625, 0.06793212890625, 0.1636962890625, 0.162353515625, 0.05169677734375, 0.1947021484375, 0.039154052734375, 0.060821533203125, 0.0914306640625, 0.1394...
embed
5795025_c0
5795025
prolog
0
Title: Problem in appending nested list in turbo prolog Problem title: Problem in appending nested list in turbo prolog Tags: prolog, turbo-prolog, list, append Problem: Problem in appending nested list in turbo prolog I'm new in turbo prolog.I'm facing a problem in appending nested list. I want the goal like this- Goa...
Problem in appending nested list in turbo prolog Problem in appending nested list in turbo prolog prolog turbo-prolog list append Problem mega_append ListB List1 List2 List3 Problem in appending nested list in turbo prolog I'm new in turbo prolog.I'm facing a problem in appending nested list. I want the goal like this-...
[ -0.0025482177734375, 0.0155029296875, 0.01373291015625, 0.006134033203125, -0.004852294921875, 0.02001953125, -0.016357421875, 0.01495361328125, 0.030517578125, -0.0007171630859375, 0.01055908203125, -0.029052734375, 0.0036773681640625, 0.031494140625, 0.0172119140625, -0.0126953125, ...
[ 15649, 1747, 96819, 8512, 71, 5303, 94779, 502, 4867, 3454, 114689, 31534, 9007, 3611, 32036, 571, 418, 304, 363, 3525, 7808, 2967, 3444, 69236, 1884, 2016, 289, 96386, 128191, 2389, 1542, 13538, 7077, 5608, 1193, 617, 188636, 11814, 25632,...
[ 0.125732421875, 0.1375732421875, 0.1929931640625, 0.2467041015625, 0.1292724609375, 0.2088623046875, 0.25244140625, 0.133056640625, 0.1912841796875, 0.11181640625, 0.1578369140625, 0.1607666015625, 0.1297607421875, 0.167236328125, 0.13818359375, 0.072265625, 0.000091552734375, 0.02...
embed
9713758_c0
9713758
prolog
0
Title: Amzi Prolog Tokenize Problem title: Amzi Prolog Tokenize Tags: tokenize, prolog, string Problem: Amzi Prolog Tokenize I would want to read a file and store the words in every line as a list. This is my code: main :- open('sample.txt', read, Str), read_file(Str,Lines), close(Str), write(Lines), nl. read_file(Stre...
Amzi Prolog Tokenize Amzi Prolog Tokenize tokenize prolog string Amzi Prolog Tokenize sample.txt Str read_file Lines Stream at_end_of_stream append1 Old_list New_list Input Australia Singapore Mon Tue Output Amzi Prolog Tokenize I would want to read a file and store the words in every line as a list. This is my code: I...
[ 0.0164794921875, 0.00836181640625, -0.0020904541015625, 0.006805419921875, -0.00885009765625, 0.00927734375, 0.000415802001953125, 0.021240234375, 0.0011444091796875, -0.0189208984375, 0.0181884765625, -0.004852294921875, -0.018798828125, -0.021728515625, 0.0159912109375, -0.0008544921...
[ 2022, 708, 1250, 4867, 717, 1098, 20650, 47, 502, 79315, 121413, 124326, 23351, 12301, 29822, 16777, 115061, 3611, 4390, 86429, 114689, 25074, 6562, 28173, 58888, 7465, 1371, 13538, 2806, 3444, 11435, 4343, 34153, 11907, 13315, 237, 5303, 181...
[ 0.139404296875, 0.2098388671875, 0.1251220703125, 0.177490234375, 0.09613037109375, 0.1304931640625, 0.138916015625, 0.07928466796875, 0.113525390625, 0.1181640625, 0.209228515625, 0.1754150390625, 0.08233642578125, 0.1920166015625, 0.119873046875, 0.1126708984375, 0.1378173828125, ...
embed
47647786_c0
47647786
prolog
0
Title: Prolog, find friend of friend Problem title: Prolog, find friend of friend Tags: prolog Problem: Prolog, find friend of friend I'm new to Prolog. I'm trying to write a query to check if a person is the friend or friend of friend of another person. I have some facts like this: friends(joe, [john, ann, pete, ellen...
Prolog, find friend of friend Prolog, find friend of friend prolog Prolog Prolog, find friend of friend I'm new to Prolog. I'm trying to write a query to check if a person is the friend or friend of friend of another person. I have some facts like this: My target is to write a query like this: I have made something lik...
[ 0.031494140625, -0.00075531005859375, 0.0152587890625, 0.0380859375, 0.00732421875, -0.0034637451171875, -0.031494140625, 0.000782012939453125, 0.00005435943603515625, -0.040283203125, 0.00156402587890625, 0.000518798828125, -0.01348876953125, 0.0216064453125, 0.020263671875, -0.002593...
[ 1250, 4867, 7413, 34391, 111, 502, 3525, 47, 31577, 33022, 41, 1294, 12765, 2174, 3445, 83, 70, 707, 15700, 15824, 30388, 1884, 903, 765, 7228, 9844, 4966, 24209, 54241, 13, 40956, 3714, 3647, 7225, 76755, 41382, 678, 109954, 195625, 5844...
[ 0.1693115234375, 0.239013671875, 0.16064453125, 0.2269287109375, 0.20068359375, 0.1263427734375, 0.06207275390625, 0.001007080078125, 0.0270233154296875, 0.08477783203125, 0.1019287109375, 0.0927734375, 0.1468505859375, 0.05889892578125, 0.07464599609375, 0.08892822265625, 0.09204101...
embed
56307670_c0
56307670
prolog
0
Title: Is it possible to delay an assignment operation Problem title: Is it possible to delay an assignment operation Tags: constraints, prolog, eclipse-clp Problem: Is it possible to delay an assignment operation I have a small script/code and i want to impose some active constraints. In the code shown below, i have P...
Is it possible to delay an assignment operation Is it possible to delay an assignment operation constraints prolog eclipse-clp Result e.g ResultFirst Is it possible to delay an assignment operation I have a small script/code and i want to impose some active constraints. In the code shown below, i have P[I,J] #= E and i...
[ 0.0189208984375, 0.004852294921875, 0.016357421875, 0.0157470703125, -0.00131988525390625, -0.02294921875, -0.0107421875, -0.008544921875, 0.0194091796875, -0.0281982421875, 0.0167236328125, -0.00128936767578125, -0.002532958984375, -0.004486083984375, -0.0003032684326171875, 0.0068969...
[ 2071, 442, 7722, 47, 8, 5259, 95486, 674, 41018, 142, 158, 2816, 4288, 502, 4867, 106371, 184, 26775, 126684, 207263, 19336, 26499, 40899, 178451, 36457, 18151, 436, 1375, 468, 241, 11737, 13315, 568, 647, 821, 104250, 34648, 14, 2320, 18...
[ 0.0229034423828125, 0.0167999267578125, 0.1849365234375, 0.03631591796875, 0.1932373046875, 0.286865234375, 0.223388671875, 0.1009521484375, 0.2081298828125, 0.01800537109375, 0.0792236328125, 0.18896484375, 0.132080078125, 0.12060546875, 0.1572265625, 0.173583984375, 0.10205078125, ...
embed
55163483_c0
55163483
prolog
0
Title: Prolog Partial Matching Problem title: Prolog Partial Matching Tags: prolog Problem: Prolog Partial Matching If there is a rule that cannot be satisfied with all parameters, is there a standard way to get a partial match with just some of the parameters? For example, the following query can not find a solution: ...
Prolog Partial Matching Prolog Partial Matching prolog Prolog Partial Matching query_best_effort fact1 fact2 fact3 rule1 rule2 rule3 query_chain3 query_chain2 query_chain1 Prolog Partial Matching If there is a rule that cannot be satisfied with all parameters, is there a standard way to get a partial match with just so...
[ 0.0089111328125, 0.0137939453125, 0.01263427734375, 0.00124359130859375, -0.01361083984375, -0.0023345947265625, -0.0123291015625, -0.019775390625, 0.007659912109375, -0.0169677734375, -0.00299072265625, -0.0078125, -0.005950927734375, 0.0029449462890625, 0.0125732421875, -0.0065917968...
[ 1250, 4867, 9148, 289, 67407, 214, 502, 41, 1294, 32168, 4240, 17883, 15824, 304, 363, 79986, 115097, 53418, 214521, 678, 756, 171859, 5570, 3917, 47, 2046, 10, 2878, 14858, 3060, 111, 25632, 831, 959, 7413, 29806, 14037, 18, 9790, 51, ...
[ 0.1400146484375, 0.234619140625, 0.177001953125, 0.1170654296875, 0.250244140625, 0.0494384765625, 0.06695556640625, 0.1405029296875, 0.097900390625, 0.1170654296875, 0.05718994140625, 0.1575927734375, 0.07977294921875, 0.03363037109375, 0.06756591796875, 0.169677734375, 0.07421875, ...
embed
28933160_c0
28933160
prolog
0
Title: determining if there are equal number of a and b terms in a List using prolog Problem title: determining if there are equal number of a and b terms in a List using prolog Tags: prolog Problem: determining if there are equal number of a and b terms in a List using prolog The problem states: Define a relation, equ...
determining if there are equal number of a and b terms in a List using prolog determining if there are equal number of a and b terms in a List using prolog prolog prolog List equal_a_b Call _85 _86 _110 _111 Exit _138 _166 Fail Redo determining if there are equal number of a and b terms in a List using prolog The probl...
[ 0.01953125, 0.01312255859375, 0.0022125244140625, 0.0234375, -0.01055908203125, 0.006988525390625, 0.004791259765625, 0.001953125, 0.010009765625, 0.021484375, 0.00689697265625, -0.01287841796875, 0.0130615234375, 0.004638671875, 0.00909423828125, -0.022705078125, 0.0238037109375, ...
[ 72694, 2174, 105950, 14012, 10, 136, 876, 69407, 32036, 502, 4867, 2685, 23, 11, 454, 275, 26265, 12951, 15276, 36053, 97024, 5443, 141535, 156215, 190355, 6096, 31, 17368, 2967, 262, 64552, 41911, 866, 1250, 29568, 339, 70541, 18151, 54529...
[ 0.1474609375, 0.06256103515625, 0.19091796875, 0.11865234375, 0.1075439453125, 0.139892578125, 0.17431640625, 0.2457275390625, 0.18505859375, 0.163818359375, 0.2144775390625, 0.044219970703125, 0.0272674560546875, 0.0791015625, 0.010101318359375, 0.17236328125, 0.094482421875, 0.11...
embed
18855146_c1
18855146
prolog
1
c], [a], _G986) ? creep Call: (9) pack([a, a, b, c, c], [a, a], _G986) ? creep Call: (10) pack([a, b, c, c], [a, a, a], _G986) ? creep Call: (11) a\=b ? creep Exit: (11) a\=b ? creep Call: (11) _G1100=[a, a, a, a] ? creep Exit: (11) [a, a, a, a]=[a, a, a, a] ? creep Call: (11) lists:append(_G986, [[a, a, a, a]], _G110...
c], [a], _G986) ? creep Call: (9) pack([a, a, b, c, c], [a, a], _G986) ? creep Call: (10) pack([a, b, c, c], [a, a, a], _G986) ? creep Call: (11) a\=b ? creep Exit: (11) a\=b ? creep Call: (11) _G1100=[a, a, a, a] ? creep Exit: (11) [a, a, a, a]=[a, a, a, a] ? creep Call: (11) lists:append(_G986, [[a, a, a, a]], _G110...
[ 0.01708984375, 0.002166748046875, 0.004669189453125, 0.0306396484375, 0.0135498046875, 0.0130615234375, 0.006927490234375, -0.0242919921875, 0.0216064453125, 0.0361328125, 0.01153564453125, 0.029052734375, -0.0184326171875, 0.0191650390625, 0.01220703125, -0.007568359375, 0.006164550...
[ 501, 268, 4, 11, 101, 724, 204225, 705, 49512, 254, 26265, 12, 11438, 43824, 132, 10, 876, 17857, 21282, 5443, 418, 3559, 217, 5303, 9007, 3611, 1662, 117930, 23676, 6463, 65283, 28261, 31203, 3768, 91887 ]
[ 0.14013671875, 0.046051025390625, 0.039947509765625, 0.129638671875, 0.05328369140625, 0.08148193359375, 0.324951171875, 0.1007080078125, 0.21630859375, 0.1759033203125, 0.25048828125, 0.0330810546875, 0.17626953125, 0.271728515625, 0.00762939453125, 0.10186767578125, 0.14794921875, ...
embed
22747147_c0
22747147
prolog
0
Title: SWI-Prolog write to file Problem title: SWI-Prolog write to file Tags: windows, prolog, io Problem: SWI-Prolog write to file I saw the below threads and they are very useful and related to my problem Writing in file | Swi-Prolog | Windows \ Prolog insert, modify and delete facts on a separated database text file...
SWI-Prolog write to file SWI-Prolog write to file windows prolog io SWI-Prolog start1 output.txt OS2 Input absolute_file_name X.data Abs Out HiAll SWI-Prolog write to file I saw the below threads and they are very useful and related to my problem Writing in file | Swi-Prolog | Windows \ Prolog insert, modify and delete...
[ 0.03173828125, 0.01031494140625, -0.003875732421875, 0.004608154296875, -0.0098876953125, -0.0021209716796875, 0.0084228515625, 0.00421142578125, 0.00909423828125, -0.01092529296875, 0.00799560546875, 0.033447265625, -0.0093994140625, 0.00445556640625, 0.0272216796875, -0.017333984375,...
[ 159, 38969, 10752, 4867, 33022, 47, 11435, 54825, 502, 22995, 4034, 418, 140992, 124326, 11787, 304, 360, 89931, 29822, 11627, 1193, 10135, 27174, 13538, 43512, 86997, 80234, 2967, 213185, 23, 105432, 9, 3773, 1250, 183540, 2811, 154109, 1582...
[ 0.06524658203125, 0.2279052734375, 0.138916015625, 0.2156982421875, 0.1917724609375, 0.1634521484375, 0.19775390625, 0.103515625, 0.1129150390625, 0.1412353515625, 0.1121826171875, 0.0268707275390625, 0.150390625, 0.1563720703125, 0.07666015625, 0.016143798828125, 0.009063720703125, ...
embed
22003089_c0
22003089
prolog
0
Title: how can i call prolog rule while asking prolog Problem title: how can i call prolog rule while asking prolog Tags: prolog Problem: how can i call prolog rule while asking prolog my_list([hello,hello,hello]) counthowmany(_, [], 0) :- !. counthowmany(X, [X|Q], N) :- !, counthowmany(X, Q, N1), N is N1+1. counthowma...
how can i call prolog rule while asking prolog how can i call prolog rule while asking prolog prolog my_list how can i call prolog rule while asking prolog in the code above if ask Prolog after compile buffer this question then it gives me the number of hello..... now if i modify the code in the following way and after...
[ -0.006256103515625, -0.0036163330078125, -0.000518798828125, 0.0223388671875, -0.0054931640625, 0.016845703125, -0.00445556640625, 0.0015716552734375, 0.018310546875, -0.068359375, -0.00019550323486328125, -0.044677734375, 0.012939453125, -0.00131988525390625, 0.01806640625, -0.0219726...
[ 3642, 831, 17, 11782, 502, 4867, 79986, 12960, 113292, 759, 6562, 18151, 26458, 1250, 7103, 9969, 1340, 373, 18234, 9655, 76199, 163, 14012, 33600, 31, 2811, 40383, 11001, 1507, 77336, 1631, 9774 ]
[ 0.05548095703125, 0.0838623046875, 0.04638671875, 0.1654052734375, 0.1783447265625, 0.23974609375, 0.218017578125, 0.1278076171875, 0.16015625, 0.07421875, 0.178466796875, 0.1199951171875, 0.11962890625, 0.1475830078125, 0.034454345703125, 0.0784912109375, 0.12646484375, 0.02465820...
embed
27505677_c0
27505677
prolog
0
Title: generate a big list from a given list by enumeration in prolog Problem title: generate a big list from a given list by enumeration in prolog Tags: permutation, enumeration, combinations, prolog Problem: generate a big list from a given list by enumeration in prolog I am trying to generate a big list (2^N element...
generate a big list from a given list by enumeration in prolog generate a big list from a given list by enumeration in prolog permutation enumeration combinations prolog a List_given Outlist Out generate a big list from a given list by enumeration in prolog I am trying to generate a big list (2^N elements) from a small...
[ -0.0074462890625, 0.0030975341796875, -0.00250244140625, 0.0157470703125, -0.0115966796875, 0.005889892578125, -0.027099609375, 0.01031494140625, 0.006927490234375, -0.004730224609375, -0.004180908203125, 0.00653076171875, 0.0086669921875, 0.006622314453125, -0.0093994140625, -0.005889...
[ 139392, 10, 6957, 5303, 1295, 34475, 390, 189085, 1363, 502, 4867, 23, 117, 561, 162515, 32036, 107409, 13538, 6562, 31577, 4700, 8353, 839, 80854, 19336, 1542, 1723, 1511, 1193, 990, 707, 567, 5809, 4734, 107754, 143161, 39580, 6, 243228, ...
[ 0.197509765625, 0.008880615234375, 0.1964111328125, 0.2666015625, 0.15087890625, 0.17822265625, 0.0732421875, 0.2406005859375, 0.0916748046875, 0.18896484375, 0.24365234375, 0.021026611328125, 0.0200653076171875, 0.156005859375, 0.14453125, 0.1636962890625, 0.1728515625, 0.15051269...
embed
31095081_c1
31095081
prolog
1
(Zs,1000), big_freeze_test(1,10000,Zs). , I made the following observations: Ciao Prolog reports {ERROR: Memory allocation failed [in Realloc()]} before aborting. sicstus-prolog and b-prolog allocate more and more until the machine freezes. swi-prolog performs all iterations in 3.554 seconds. yap also performs all iter...
(Zs,1000), big_freeze_test(1,10000,Zs). , I made the following observations: Ciao Prolog reports {ERROR: Memory allocation failed [in Realloc()]} before aborting. sicstus-prolog and b-prolog allocate more and more until the machine freezes. swi-prolog performs all iterations in 3.554 seconds. yap also performs all iter...
[ 0.00145721435546875, 0.01251220703125, -0.0123291015625, -0.0027923583984375, -0.006439208984375, -0.01513671875, -0.00701904296875, 0.01287841796875, -0.006011962890625, -0.0194091796875, 0.02392578125, -0.000010311603546142578, 0.00115203857421875, -0.005706787109375, 0.00439453125, ...
[ 1511, 7, 14105, 6957, 32087, 731, 6954, 191281, 150556, 107786, 1250, 4867, 117729, 12501, 14255, 1052, 172681, 144, 87632, 165523, 5120, 55043, 132, 8108, 64853, 214, 26536, 18253, 3454, 136, 876, 24286, 33478, 1286, 24189, 36279, 4092, 1310...
[ 0.1287841796875, 0.083740234375, 0.1568603515625, 0.0963134765625, 0.1712646484375, 0.160888671875, 0.205810546875, 0.1497802734375, 0.10205078125, 0.26806640625, 0.1954345703125, 0.26220703125, 0.1102294921875, 0.09912109375, 0.125732421875, 0.046478271484375, 0.190185546875, 0.15...
embed
26952454_c0
26952454
prolog
0
Title: Getting the head and tail of a list Problem title: Getting the head and tail of a list Tags: prolog Problem: Getting the head and tail of a list I know if I do: [H|T] = [a,b,c,d]. H = a, T = [b,c,d]. What I'm trying to do is get the head and tail of a list inside a rule. Is this possible? I'm setting up base cas...
Getting the head and tail of a list Getting the head and tail of a list prolog Getting Getting the head and tail of a list I know if I do: What I'm trying to do is get the head and tail of a list inside a rule. Is this possible? I'm setting up base cases for a recursive call but for now I'd be satisfied if it just retu...
[ 0.0078125, 0.0018768310546875, 0.0032958984375, 0.00762939453125, -0.01708984375, 0.0177001953125, -0.0030517578125, 0.01068115234375, 0.0289306640625, -0.042724609375, 0.0146484375, 0.002777099609375, -0.01556396484375, 0.018798828125, 0.01251220703125, -0.0167236328125, 0.013732910...
[ 210732, 70, 10336, 136, 46741, 111, 5303, 502, 4867, 3714, 54, 31577, 2046, 46132, 79986, 903, 7722, 3647, 50218, 195625, 5844, 11782, 5036, 214521, 442, 176377, 339, 363, 237, 114689, 71, 17932, 9077, 3642, 831, 37842, 35064, 144851, 35782...
[ 0.1785888671875, 0.089111328125, 0.249267578125, 0.188232421875, 0.280029296875, 0.1221923828125, 0.221435546875, 0.077880859375, 0.1258544921875, 0.04010009765625, 0.0308074951171875, 0.06085205078125, 0.139404296875, 0.1285400390625, 0.1966552734375, 0.0305023193359375, 0.139770507...
embed
59763327_c0
59763327
prolog
0
Title: Simple Prolog to Clojure core.logic Problem title: Simple Prolog to Clojure core.logic Tags: clojure-core.logic, minikanren, prolog Problem: Simple Prolog to Clojure core.logic I've been playing with Prolog recently and getting my head around how to represent some tasks I want to do with it, which are largely ab...
Simple Prolog to Clojure core.logic Simple Prolog to Clojure core.logic clojure-core.logic minikanren prolog Simple Prolog Clojure core.logic clojure-core.logic Simple Prolog to Clojure core.logic I've been playing with Prolog recently and getting my head around how to represent some tasks I want to do with it, which a...
[ 0.013916015625, -0.00164794921875, 0.007171630859375, 0.0289306640625, -0.0177001953125, 0.02001953125, 0.01416015625, -0.017822265625, 0.0115966796875, -0.0615234375, 0.000629425048828125, 0.007110595703125, -0.03955078125, 0.000010073184967041016, 0.021484375, -0.01513671875, -0.00...
[ 60552, 1250, 4867, 47, 51053, 461, 107, 56458, 137043, 20450, 30854, 7665, 331, 982, 502, 75169, 10336, 33636, 66211, 678, 63399, 15824, 8781, 41, 33284, 48716, 25842, 4527, 43701, 32562, 54, 2367, 3444, 116392, 34844, 3884, 62822, 1653, 20...
[ 0.1688232421875, 0.1656494140625, 0.24072265625, 0.04547119140625, 0.146240234375, 0.164794921875, 0.088623046875, 0.18896484375, 0.2119140625, 0.0028076171875, 0.0340576171875, 0.0684814453125, 0.046173095703125, 0.1427001953125, 0.08135986328125, 0.030609130859375, 0.01116943359375...
embed
47316789_c0
47316789
prolog
0
Title: My Prolog family tree program outputs/returns duplicated names Problem title: My Prolog family tree program outputs/returns duplicated names Tags: prolog Problem: My Prolog family tree program outputs/returns duplicated names I am working on a family tree(Royal) implementation in prolog, and I am fairly new to p...
My Prolog family tree program outputs/returns duplicated names My Prolog family tree program outputs/returns duplicated names prolog Prolog brother_in_law Who My Prolog family tree program outputs/returns duplicated names I am working on a family tree(Royal) implementation in prolog, and I am fairly new to prolog. So w...
[ 0.01495361328125, -0.01055908203125, 0.0107421875, 0.0130615234375, -0.018798828125, 0.0174560546875, -0.012939453125, 0.005157470703125, -0.00102996826171875, -0.037841796875, -0.0054931640625, -0.00927734375, 0.0035552978515625, 0.00494384765625, 0.013427734375, 0.015380859375, 0.0...
[ 2646, 1250, 4867, 14449, 53201, 1528, 140992, 65395, 171763, 3674, 123055, 502, 82953, 73, 19729, 40469, 20697, 12724, 16300, 208124, 3525, 217684, 11675, 20949, 6097, 1636, 35166, 3638, 44691, 30022, 4358, 1653, 2063, 67, 7145, 100, 2704, 78...
[ 0.07269287109375, 0.147216796875, 0.2264404296875, 0.0628662109375, 0.194580078125, 0.1280517578125, 0.16064453125, 0.1041259765625, 0.2291259765625, 0.1478271484375, 0.1829833984375, 0.1175537109375, 0.149658203125, 0.095947265625, 0.149169921875, 0.061859130859375, 0.03656005859375...
embed
59336279_c0
59336279
prolog
0
Title: How do I sort a resultant list in Prolog? Problem title: How do I sort a resultant list in Prolog? Tags: prolog, sorting Problem: How do I sort a resultant list in Prolog? So I've got these predicates, isSorted([]). isSorted([_]). isSorted([A,B|L]) :- A =< B, isSorted([B|L]). toEven([], L2) :- isSorted(L2); sort...
How do I sort a resultant list in Prolog? How do I sort a resultant list in Prolog? prolog sorting How Prolog DUB How do I sort a resultant list in Prolog? So I've got these predicates, where toEven(L, X) doubles any odd numbers inputted in order to achieve a completely even list. Currently, inputting toEven([1,2,3,4,5...
[ 0.008056640625, -0.0009613037109375, 0.0152587890625, -0.0380859375, -0.0244140625, 0.0245361328125, -0.01409912109375, -0.007354736328125, 0.0142822265625, -0.01129150390625, 0.0087890625, 0.0174560546875, -0.01483154296875, -0.01031494140625, 0.00775146484375, -0.003265380859375, -...
[ 11249, 54, 87, 12096, 31805, 660, 5303, 23, 1250, 4867, 502, 14614, 571, 1653, 2063, 47, 647, 1353, 866, 1193, 41929, 70270, 101935, 107730, 69307, 64557, 3853, 133063, 363, 80389, 30646, 26785, 16750, 304, 116, 305, 201, 209, 81887, 110,...
[ 0.07421875, 0.0281219482421875, 0.0287017822265625, 0.240234375, 0.23095703125, 0.155029296875, 0.219482421875, 0.06829833984375, 0.176513671875, 0.2459716796875, 0.115966796875, 0.08331298828125, 0.08642578125, 0.100341796875, 0.088134765625, 0.1455078125, 0.007843017578125, 0.185...
embed
55295320_c0
55295320
prolog
0
Title: Splitting a list of integers into list of sublist in prolog Problem title: Splitting a list of integers into list of sublist in prolog Tags: prolog Problem: Splitting a list of integers into list of sublist in prolog I am just learning Prolog and I am required to provide a list consisting of positive and negativ...
Splitting a list of integers into list of sublist in prolog Splitting a list of integers into list of sublist in prolog prolog Splitting Tail1 Tail Splitting a list of integers into list of sublist in prolog I am just learning Prolog and I am required to provide a list consisting of positive and negative integers to a ...
[ 0.0042724609375, -0.01409912109375, 0.0023193359375, -0.0026092529296875, -0.033203125, 0.019287109375, -0.001129150390625, 0.0225830078125, 0.00145721435546875, 0.0125732421875, 0.009765625, -0.00506591796875, -0.019287109375, 0.00482177734375, 0.0120849609375, 0.00665283203125, 0.0...
[ 46474, 1916, 5303, 892, 26255, 3934, 1614, 6562, 502, 4867, 111, 1218, 379, 418, 52080, 1250, 56065, 22691, 24491, 40907, 32354, 30646, 58055, 148390, 101935, 4734, 29459, 35509, 24092, 14012, 13379, 5608, 36356, 77168, 107730, 140992, 69307, ...
[ 0.2147216796875, 0.038909912109375, 0.1710205078125, 0.15234375, 0.1015625, 0.10455322265625, 0.1890869140625, 0.218505859375, 0.1279296875, 0.181396484375, 0.03558349609375, 0.1170654296875, 0.09283447265625, 0.057403564453125, 0.02972412109375, 0.1051025390625, 0.05938720703125, ...
embed
27388865_c0
27388865
prolog
0
Title: Prolog separating a list into two other lists Problem title: Prolog separating a list into two other lists Tags: prolog, list Problem: Prolog separating a list into two other lists I'm trying to read through a list, check an element,if the element is in the KB,do something do it and add it to another list, if it...
Prolog separating a list into two other lists Prolog separating a list into two other lists prolog list Prolog known2 List Result NewList simplify2 Words NewWords mem_address Prolog separating a list into two other lists I'm trying to read through a list, check an element,if the element is in the KB,do something do it ...
[ 0.0303955078125, -0.01318359375, 0.0037841796875, 0.017578125, -0.008056640625, 0.0240478515625, -0.00159454345703125, 0.017333984375, 0.0101318359375, -0.0015716552734375, 0.0223388671875, -0.004302978515625, 0.0028533935546875, -0.004974365234375, -0.0048828125, -0.000168800354003906...
[ 1250, 4867, 38310, 5303, 3934, 6626, 3789, 502, 51529, 304, 32036, 126684, 2356, 154663, 112892, 18929, 22543, 164805, 7199, 712, 107421, 214, 31577, 12301, 8305, 12765, 12830, 23, 30742, 15190, 15700, 959, 50960, 13695, 47644, 59158, 62775, ...
[ 0.1815185546875, 0.2281494140625, 0.2259521484375, 0.2083740234375, 0.10723876953125, 0.144775390625, 0.09228515625, 0.1558837890625, 0.15478515625, 0.052581787109375, 0.12890625, 0.1103515625, 0.079345703125, 0.142578125, 0.198974609375, 0.1685791015625, 0.103515625, 0.10913085937...
embed
78123932_c0
78123932
prolog
0
Title: SWI-Prolog: [FATAL ERROR: Could not find system resources] Problem title: SWI-Prolog: [FATAL ERROR: Could not find system resources] Tags: prolog, python, swi-prolog Problem: SWI-Prolog: [FATAL ERROR: Could not find system resources] I'm trying to execute my Python script in which I use Prolog. The code is the f...
SWI-Prolog: [FATAL ERROR: Could not find system resources] SWI-Prolog: [FATAL ERROR: Could not find system resources] prolog python swi-prolog pyswip Prolog SWI-Prolog FATAL ERROR Could prolog.consult KB.pl prolog.query SWI_HOME_DIR Program Files SWI-Prolog: [FATAL ERROR: Could not find system resources] I'm trying to ...
[ 0.0228271484375, 0.01708984375, -0.01458740234375, 0.0022735595703125, -0.0272216796875, -0.0037994384765625, 0.006195068359375, -0.0052490234375, -0.0108642578125, -0.034423828125, 0.0245361328125, 0.01312255859375, -0.00396728515625, 0.001190185546875, 0.00439453125, -0.0049438476562...
[ 159, 38969, 9, 10752, 4867, 14676, 30487, 151206, 24638, 191147, 959, 7413, 5426, 65514, 502, 17198, 50828, 2452, 3454, 57756, 254, 1250, 15491, 147834, 30742, 2424, 944, 841, 91245, 123237, 7663, 42724, 31577, 71924, 145581, 26499, 18151, 93...
[ 0.05572509765625, 0.25048828125, 0.032012939453125, 0.190673828125, 0.226318359375, 0.1424560546875, 0.1302490234375, 0.125732421875, 0.047332763671875, 0.1212158203125, 0.093505859375, 0.1824951171875, 0.16650390625, 0.2724609375, 0.1337890625, 0.059112548828125, 0.1080322265625, ...
embed
43837999_c0
43837999
prolog
0
Title: Representing logical disjunctions in Constraint Handling Rules Problem title: Representing logical disjunctions in Constraint Handling Rules Tags: prolog, constraint-handling-rules, clp Problem: Representing logical disjunctions in Constraint Handling Rules I am writing a constraint solver in Prolog that impleme...
Representing logical disjunctions in Constraint Handling Rules Representing logical disjunctions in Constraint Handling Rules prolog constraint-handling-rules clp Representing Constraint Handling Rules use_module chr_constraint is_true Representing logical disjunctions in Constraint Handling Rules I am writing a constr...
[ 0.00152587890625, -0.00482177734375, 0.0152587890625, 0.023193359375, 0.00191497802734375, -0.0064697265625, -0.006591796875, -0.0164794921875, 0.01141357421875, -0.034423828125, -0.007568359375, -0.0133056640625, -0.00982666015625, 0.01397705078125, 0.01080322265625, -0.00836181640625...
[ 853, 55247, 62775, 289, 2837, 17043, 10763, 1657, 2816, 4288, 193237, 139118, 502, 4867, 158, 54885, 13500, 33139, 254, 4527, 83279, 17656, 2271, 83, 9774, 32562, 3115, 814, 1250, 29479, 8781, 26168, 11, 24056, 132, 284, 136, 26249, 32920, ...
[ 0.0287933349609375, 0.2042236328125, 0.1883544921875, 0.1094970703125, 0.10198974609375, 0.228759765625, 0.09344482421875, 0.050018310546875, 0.211181640625, 0.1427001953125, 0.2374267578125, 0.1829833984375, 0.105712890625, 0.1988525390625, 0.0919189453125, 0.1812744140625, 0.121093...
embed
24230041_c0
24230041
prolog
0
Title: How to avoid a meta argument warning in SICStus SPIDER? Problem title: How to avoid a meta argument warning in SICStus SPIDER? Tags: sicstus-prolog, meta-predicate, prolog-setof, eclipse, prolog Problem: How to avoid a meta argument warning in SICStus SPIDER? This is probably related to a comp.lang.prolog-discus...
How to avoid a meta argument warning in SICStus SPIDER? How to avoid a meta argument warning in SICStus SPIDER? sicstus-prolog meta-predicate prolog-setof eclipse prolog How SICStus SPIDER Prologs set_of RS-140614 meta_predicate Trick What How to avoid a meta argument warning in SICStus SPIDER? This is probably related...
[ -0.00750732421875, 0.01214599609375, 0.0106201171875, -0.00653076171875, -0.017333984375, -0.007598876953125, -0.01220703125, 0.01116943359375, -0.00066375732421875, -0.030517578125, 0.0181884765625, 0.007598876953125, -0.0289306640625, -0.028564453125, 0.028076171875, 0.01080322265625...
[ 11249, 71864, 23550, 10750, 1631, 592, 159, 102198, 2143, 15185, 18044, 26536, 18253, 3454, 4867, 19714, 2063, 502, 3509, 4390, 106371, 184, 1250, 5423, 18912, 16249, 9016, 2592, 141362, 23, 9969, 3066, 40368, 6977, 17368, 234962, 678, 18151,...
[ 0.0430908203125, 0.215576171875, 0.2310791015625, 0.2406005859375, 0.1500244140625, 0.07196044921875, 0.08966064453125, 0.06451416015625, 0.1761474609375, 0.18408203125, 0.197021484375, 0.086181640625, 0.17041015625, 0.09844970703125, 0.1781005859375, 0.1256103515625, 0.1142578125, ...
embed
52082399_c0
52082399
prolog
0
Title: Prolog A* greedy search operator expected Problem title: Prolog A* greedy search operator expected Tags: prolog, greedy Problem: Prolog A* greedy search operator expected Been trying to find the next node using heuristic value after each iteration for a while now - I think it's nearly there but I'm getting an er...
Prolog A* greedy search operator expected Prolog A* greedy search operator expected prolog greedy Prolog greedy_search GoalNode CurrentNode TotalCost NextNode Exploring HCost NextCost Visited Prolog A* greedy search operator expected Been trying to find the next node using heuristic value after each iteration for a whi...
[ -0.01068115234375, -0.00946044921875, -0.005401611328125, 0.016845703125, -0.004638671875, 0.002960205078125, -0.005126953125, -0.01025390625, 0.004791259765625, -0.04541015625, 0.0111083984375, -0.031982421875, -0.01080322265625, -0.015869140625, -0.0034027099609375, 0.003646850585937...
[ 1250, 4867, 62, 1639, 3514, 297, 53, 33938, 39933, 84751, 502, 86250, 2016, 289, 5021, 114063, 112, 33867, 441, 5510, 4997, 98873, 98684, 31577, 7413, 11737, 110, 17368, 764, 474, 48242, 34292, 7103, 12638, 720, 12960, 110518, 18499, 212059...
[ 0.1329345703125, 0.2064208984375, 0.05426025390625, 0.0823974609375, 0.1512451171875, 0.1136474609375, 0.1048583984375, 0.196044921875, 0.19970703125, 0.24658203125, 0.092041015625, 0.1993408203125, 0.1007080078125, 0.05535888671875, 0.1497802734375, 0.135009765625, 0.106689453125, ...
embed
37858447_c2
37858447
prolog
2
], [pirnaischer, platz], [18, 28, 38, 48, 58, 08]). verbindung('3B',[pirnaischer, platz], [xxx2], [23, 33, 43, 53, 03, 13]). %Linie 1 (Richtung leutewitz) verbindung('1A',[pirnaischer, platz],[postplatz],[31,41,51,01,11,21]). verbindung('1A',[postplatz],[bahnhof, mitte],[34,44,54,04,14,24]). verbindung('1A',[bahnhof, m...
], [pirnaischer, platz], [18, 28, 38, 48, 58, 08]). verbindung('3B',[pirnaischer, platz], [xxx2], [23, 33, 43, 53, 03, 13]). %Linie 1 (Richtung leutewitz) verbindung('1A',[pirnaischer, platz],[postplatz],[31,41,51,01,11,21]). verbindung('1A',[postplatz],[bahnhof, mitte],[34,44,54,04,14,24]). verbindung('1A',[bahnhof, m...
[ -0.02294921875, 0.004364013671875, 0.01531982421875, 0.019775390625, -0.021240234375, 0.01116943359375, -0.0115966796875, -0.019775390625, 0.01507568359375, -0.021484375, -0.01708984375, -0.01123046875, 0.00787353515625, -0.000827789306640625, -0.005889892578125, 0.00946044921875, 0....
[ 10114, 21738, 76, 55008, 46149, 4, 1819, 29835, 4520, 4572, 9318, 3843, 268, 194, 219029, 363, 571, 43883, 90173, 3742, 3912, 6260, 8934, 5098, 702, 1745, 9506, 701, 106, 23267, 99513, 95, 6743, 147595, 418, 284, 4594, 5016, 8894, 11703, ...
[ 0.0699462890625, 0.18798828125, 0.19921875, 0.2122802734375, 0.2039794921875, 0.0296173095703125, 0.119140625, 0.1365966796875, 0.1622314453125, 0.1627197265625, 0.164794921875, 0.146484375, 0.0426025390625, 0.013031005859375, 0.25146484375, 0.147705078125, 0.175048828125, 0.094848...
embed
10758389_c0
10758389
prolog
0
Title: Missing symbold &quot;_main&quot; when compiling with swipl-ld on OSX Lion Problem title: Missing symbold &quot;_main&quot; when compiling with swipl-ld on OSX Lion Tags: prolog, swi-prolog, osx-lion, macos, ffi Problem: Missing symbold "_main" when compiling with swipl-ld on OSX Lion I'm trying to compile a C p...
Missing symbold &quot;_main&quot; when compiling with swipl-ld on OSX Lion Missing symbold &quot;_main&quot; when compiling with swipl-ld on OSX Lion prolog swi-prolog osx-lion macos ffi Missing _main OSX Lion Undefined x86_64 crt1.10.6.o __main Developer Missing symbold "_main" when compiling with swipl-ld on OSX Lion...
[ 0.01519775390625, 0.0244140625, -0.003448486328125, 0.000537872314453125, -0.0419921875, 0.000705718994140625, 0.019775390625, 0.0167236328125, -0.033935546875, -0.0286865234375, 0.0010223388671875, -0.029541015625, -0.0137939453125, 0.01611328125, 0.0361328125, -0.01397705078125, 0....
[ 16771, 214, 26582, 71, 454, 24931, 41502, 9969, 49725, 678, 91, 2452, 2424, 7344, 11787, 1542, 82209, 9, 502, 4867, 3454, 362, 45486, 7840, 24500, 101, 5983, 15276, 13307, 122887, 31, 152774, 31577, 1340, 313, 1528, 35839, 1250, 184293, 2...
[ 0.1500244140625, 0.042266845703125, 0.2249755859375, 0.14404296875, 0.09454345703125, 0.24462890625, 0.00115966796875, 0.1583251953125, 0.114990234375, 0.0445556640625, 0.0350341796875, 0.195556640625, 0.225341796875, 0.1595458984375, 0.0948486328125, 0.08416748046875, 0.212768554687...
embed
32409633_c0
32409633
prolog
0
Title: Summation of prolog predicates not working Problem title: Summation of prolog predicates not working Tags: prolog Problem: Summation of prolog predicates not working Like the title states, I am trying to return the sum of the returned values from sub predicates but it's not working. Here is my code: addlistnum([...
Summation of prolog predicates not working Summation of prolog predicates not working prolog Summation Num List Summation of prolog predicates not working Like the title states, I am trying to return the sum of the returned values from sub predicates but it's not working. Here is my code: The sub predicate works fine. ...
[ 0.002777099609375, -0.00433349609375, 0.019775390625, 0.01007080078125, -0.04541015625, 0.031005859375, 0.00775146484375, 0.006103515625, 0.00653076171875, -0.001007080078125, -0.00384521484375, -0.0029296875, -0.015625, 0.004058837890625, 0.01080322265625, -0.00170135498046875, 0.01...
[ 131150, 1363, 502, 4867, 1653, 2063, 1636, 959, 20697, 111, 52782, 32036, 44759, 117249, 31577, 30646, 10554, 176377, 142424, 1614, 18151, 67, 43240, 5885, 96760, 5303, 892, 1505, 3444, 117176, 104919, 15190, 6562, 2606, 363, 96386, 90173, 15...
[ 0.2215576171875, 0.0870361328125, 0.1517333984375, 0.221435546875, 0.1834716796875, 0.2017822265625, 0.091796875, 0.06146240234375, 0.1396484375, 0.013580322265625, 0.118896484375, 0.1461181640625, 0.0609130859375, 0.007080078125, 0.036834716796875, 0.1241455078125, 0.1959228515625, ...
embed
15840887_c0
15840887
prolog
0
Title: Compatibility layer for different Prolog implementation Problem title: Compatibility layer for different Prolog implementation Tags: compatibility, yap, swi-prolog, prolog Problem: Compatibility layer for different Prolog implementation Which is the best way to handle the compatibility between two different Prol...
Compatibility layer for different Prolog implementation Compatibility layer for different Prolog implementation compatibility yap swi-prolog prolog Compatibility Prolog Compatibility layer for different Prolog implementation Which is the best way to handle the compatibility between two different Prolog interpreters? I'...
[ 0.0159912109375, 0.0218505859375, 0.01080322265625, 0.0218505859375, -0.0118408203125, 0.017578125, -0.00099945068359375, 0.00180816650390625, -0.00823974609375, -0.00445556640625, 0.01129150390625, 0.016845703125, -0.01434326171875, -0.0084228515625, 0.0172119140625, 0.0179443359375, ...
[ 15612, 1888, 83259, 135355, 100, 12921, 1250, 4867, 208124, 112793, 15850, 91, 2452, 3454, 502, 2965, 3917, 34831, 2481, 17721, 6626, 29481, 1314, 16487, 55300, 25443, 11757, 61924, 1653, 2063, 154109, 159, 38969, 959, 77336, 1379, 128706, 65...
[ 0.1744384765625, 0.195068359375, 0.1280517578125, 0.242919921875, 0.007049560546875, 0.2071533203125, 0.1875, 0.2437744140625, 0.16259765625, 0.262451171875, 0.177978515625, 0.009979248046875, 0.1878662109375, 0.1365966796875, 0.139404296875, 0.0679931640625, 0.025146484375, 0.1099...
embed
40225060_c0
40225060
prolog
0
Title: How to only sum up values of a list in Prolog? Problem title: How to only sum up values of a list in Prolog? Tags: sum, prolog, list Problem: How to only sum up values of a list in Prolog? I've been given this code below: returnValues(Value):- collection(X,Y,Z), total([X,Y|Z],Value). This does work, but it sums ...
How to only sum up values of a list in Prolog? How to only sum up values of a list in Prolog? sum prolog list How Prolog Value Item List Sum Rest Name Surname CombinedIncome Husband Children Child Salary How to only sum up values of a list in Prolog? I've been given this code below: This does work, but it sums up X,Y a...
[ 0.0123291015625, 0.005584716796875, -0.001708984375, -0.007080078125, -0.0264892578125, 0.00152587890625, -0.016357421875, 0.0186767578125, 0.027587890625, -0.006439208984375, 0.0059814453125, -0.00008153915405273438, -0.0059814453125, -0.00118255615234375, 0.029541015625, 0.0036468505...
[ 11249, 4734, 10554, 1257, 142424, 111, 5303, 23, 1250, 4867, 502, 190060, 78426, 32036, 36335, 49756, 11627, 106935, 45738, 91345, 13294, 47, 10, 18151, 35064, 4488, 1193, 1723, 136, 567, 16487, 3444, 33867, 990, 33209, 107730 ]
[ 0.055084228515625, 0.184326171875, 0.238037109375, 0.186279296875, 0.2362060546875, 0.077392578125, 0.2281494140625, 0.0838623046875, 0.1788330078125, 0.257568359375, 0.1412353515625, 0.1810302734375, 0.09375, 0.1138916015625, 0.2012939453125, 0.086669921875, 0.013916015625, 0.0107...
embed
42166989_c0
42166989
prolog
0
Title: Merge outputs into one list in Prolog Problem title: Merge outputs into one list in Prolog Tags: prolog, merge Problem: Merge outputs into one list in Prolog I have a prolog assignment that requires us to make a list of all the pairs of numbers in the range of two givens. I can get it to output (using one functi...
Merge outputs into one list in Prolog Merge outputs into one list in Prolog prolog merge Merge Prolog Merge outputs into one list in Prolog I have a prolog assignment that requires us to make a list of all the pairs of numbers in the range of two givens. I can get it to output (using one function) the following, but I ...
[ 0.0101318359375, 0.010986328125, 0.0089111328125, 0.01190185546875, -0.0123291015625, 0.0238037109375, -0.04248046875, -0.0010528564453125, -0.00701904296875, -0.009765625, 0.01611328125, 0.00119781494140625, 0.006011962890625, -0.0032958984375, -0.00183868408203125, 0.00482177734375, ...
[ 6035, 429, 140992, 7, 3934, 1632, 5303, 1250, 4867, 502, 42564, 23, 95486, 674, 144570, 3249, 756, 80836, 101935, 37457, 6626, 34475, 32354, 25632, 3642, 8789, 159029, 18151, 51514, 150624, 15214, 61924, 107003, 73197, 16487, 903, 64457 ]
[ 0.212158203125, 0.0758056640625, 0.26318359375, 0.07366943359375, 0.13037109375, 0.1617431640625, 0.209228515625, 0.174072265625, 0.2100830078125, 0.141357421875, 0.257080078125, 0.01129150390625, 0.095947265625, 0.0205535888671875, 0.0146942138671875, 0.012451171875, 0.0353393554687...
embed
27273700_c0
27273700
prolog
0
Title: How to control user input in prolog? Problem title: How to control user input in prolog? Tags: prolog Problem: How to control user input in prolog? I have this problem with my code in prolog. It is about fashion stylist expert system that takes properties from the user and gives her the specified look. Here is t...
How to control user input in prolog? How to control user input in prolog? prolog How main_level Please How to control user input in prolog? I have this problem with my code in prolog. It is about fashion stylist expert system that takes properties from the user and gives her the specified look. Here is the code: But ho...
[ -0.0054931640625, 0.011962890625, -0.00384521484375, 0.019287109375, 0.01220703125, 0.0220947265625, -0.0084228515625, 0.0076904296875, -0.026123046875, -0.046142578125, 0.016845703125, -0.0079345703125, -0.0159912109375, 0.0262451171875, 0.031982421875, -0.007476806640625, 0.0332031...
[ 11249, 47, 6226, 38937, 107730, 23, 502, 4867, 5201, 67919, 30607, 2967, 18151, 54543, 182352, 26808, 5426, 51776, 183871, 1295, 76199, 604, 58735, 6713, 3642, 831, 37772, 30957, 26785, 35166, 1528, 1221, 959, 28484, 24189, 195625, 5844, 7998...
[ 0.0955810546875, 0.045989990234375, 0.2470703125, 0.2353515625, 0.268798828125, 0.10540771484375, 0.20068359375, 0.282958984375, 0.0237274169921875, 0.1446533203125, 0.019927978515625, 0.06683349609375, 0.1385498046875, 0.1483154296875, 0.2132568359375, 0.1640625, 0.1424560546875, ...
embed
22492633_c0
22492633
prolog
0
Title: Gathering all solutions without findall Problem title: Gathering all solutions without findall Tags: prolog Problem: Gathering all solutions without findall So as part of my work my code needs to print all the solutions to a query but without using the findall/3 predicate. I've done some reading around and there...
Gathering all solutions without findall Gathering all solutions without findall prolog Gathering Gathering all solutions without findall So as part of my work my code needs to print all the solutions to a query but without using the findall/3 predicate. I've done some reading around and there are ways involving adding ...
[ -0.0011444091796875, 0.0028839111328125, -0.000522613525390625, 0.00946044921875, -0.00070953369140625, -0.00016117095947265625, -0.0185546875, -0.01611328125, 0.012939453125, -0.03759765625, -0.00007867813110351562, -0.007232666015625, -0.006683349609375, 0.00021648406982421875, -0.0036...
[ 2902, 9319, 756, 51347, 15490, 7413, 5584, 214, 502, 4867, 4488, 18151, 27117, 28412, 70, 47, 41, 1294, 17368, 18113, 1653, 2063, 67, 154107, 5303, 35978, 156377, 1528, 2396, 136, 805, 621, 2685, 44841, 124962, 705, 9, 2737, 2046, 50339, ...
[ 0.1138916015625, 0.203857421875, 0.1595458984375, 0.25, 0.1363525390625, 0.14599609375, 0.2108154296875, 0.052276611328125, 0.116943359375, 0.1612548828125, 0.0156097412109375, 0.11279296875, 0.040283203125, 0.1844482421875, 0.06195068359375, 0.034637451171875, 0.111572265625, 0.09...
embed
49824263_c0
49824263
prolog
0
Title: Access Prolog predicate through java Problem title: Access Prolog predicate through java Tags: prolog, swi-prolog, java Problem: Access Prolog predicate through java Error is occurred while executing the code. Variable X = new Variable(); Term goal= new Compound("parent", new Term []{new Atom("ali"),X}); Query q...
Access Prolog predicate through java Access Prolog predicate through java prolog swi-prolog java Access Prolog Variable Term Compound Atom Query q.hasMoreElements Hashtable q.nextElement binding.get System.out.println Access Prolog predicate through java Error is occurred while executing the code. and Error is Prolog P...
[ 0.01385498046875, 0.014404296875, 0.00616455078125, 0.01129150390625, -0.01214599609375, 0.0177001953125, 0.0196533203125, 0.009033203125, -0.01470947265625, -0.049072265625, 0.01171875, 0.004425048828125, -0.00872802734375, -0.00445556640625, 0.005096435546875, -0.002716064453125, -...
[ 40266, 1250, 4867, 1653, 2063, 67, 8305, 79, 330, 502, 91, 2452, 3454, 84572, 2886, 2994, 15612, 31, 69728, 58836, 8096, 10557, 122880, 19929, 162087, 22819, 29062, 128239, 3794, 12353, 6056, 35662, 212059, 74918, 12960, 71924, 18151, 83, 7...
[ 0.2313232421875, 0.1878662109375, 0.240478515625, 0.1893310546875, 0.2156982421875, 0.0782470703125, 0.1456298828125, 0.1817626953125, 0.2183837890625, 0.157470703125, 0.0289306640625, 0.1702880859375, 0.158935546875, 0.10491943359375, 0.0242156982421875, 0.1064453125, 0.055938720703...
embed
52685397_c0
52685397
prolog
0
Title: How to insert data into a list in recursive Prolog Problem title: How to insert data into a list in recursive Prolog Tags: prolog Problem: How to insert data into a list in recursive Prolog Trying to figure out how to return a list which contains ancestors of person A until person B. For example, I have the foll...
How to insert data into a list in recursive Prolog How to insert data into a list in recursive Prolog prolog How Prolog List Old How to insert data into a list in recursive Prolog Trying to figure out how to return a list which contains ancestors of person A until person B. For example, I have the following facts: I ca...
[ 0.005859375, 0.0029449462890625, 0.0098876953125, 0.02685546875, -0.0224609375, 0.0244140625, -0.02734375, 0.0019989013671875, -0.0036468505859375, -0.05517578125, 0.0164794921875, -0.0244140625, -0.00090789794921875, -0.00225830078125, 0.01171875, -0.004241943359375, 0.0145874023437...
[ 11249, 183540, 2053, 3934, 10, 5303, 195625, 5844, 1250, 4867, 47, 23, 502, 32036, 25074, 26366, 3642, 30646, 70541, 60502, 22230, 3445, 62, 24189, 335, 15824, 4527, 25632, 18151, 7413, 1290, 111, 990, 3444, 32354, 1542, 1723, 866, 17721, ...
[ 0.051544189453125, 0.25048828125, 0.179931640625, 0.154052734375, 0.042755126953125, 0.239501953125, 0.2095947265625, 0.1541748046875, 0.1690673828125, 0.2327880859375, 0.0213775634765625, 0.029876708984375, 0.1414794921875, 0.18212890625, 0.1796875, 0.028594970703125, 0.021926879882...
embed
20518730_c0
20518730
prolog
0
Title: How to make a variable for list to be a global variable in Prolog Programming? Problem title: How to make a variable for list to be a global variable in Prolog Programming? Tags: prolog Problem: How to make a variable for list to be a global variable in Prolog Programming? there is some code as below diagnosis :...
How to make a variable for list to be a global variable in Prolog Programming? How to make a variable for list to be a global variable in Prolog Programming? prolog How Prolog Programming Line1 Line2 Line3 Line4 Line5 Line6 Line7 Line8 Line9 Line10 How to make a variable for list to be a global variable in Prolog Progr...
[ 0.0167236328125, 0.000820159912109375, 0.005218505859375, 0.0115966796875, 0.00052642822265625, 0.011962890625, 0.0022125244140625, 0.0322265625, -0.005340576171875, 0.006134033203125, 0.004241943359375, 0.0079345703125, 0.01312255859375, -0.022216796875, 0.00408935546875, 0.0074462890...
[ 11249, 3249, 77336, 100, 5303, 186, 7964, 1250, 4867, 27958, 10, 47, 502, 16777, 418, 304, 363, 617, 910, 1019, 1126, 963, 18151, 35064, 4163, 209, 124519, 237, 93232, 50258, 4527, 1653, 2063, 876, 3509, 27494, 3794, 18499, 89914, 83613, ...
[ 0.0257720947265625, 0.0931396484375, 0.31201171875, 0.07476806640625, 0.2269287109375, 0.0625, 0.20263671875, 0.1298828125, 0.2022705078125, 0.121337890625, 0.038909912109375, 0.05462646484375, 0.0521240234375, 0.0970458984375, 0.011932373046875, 0.0222320556640625, 0.016754150390625...
embed
16545870_c0
16545870
prolog
0
Title: Some doubts about BNF grammars and Prolog&#x27;s DCG grammars Problem title: Some doubts about BNF grammars and Prolog&#x27;s DCG grammars Tags: bnf, prolog, parsing, grammar, dcg Problem: Some doubts about BNF grammars and Prolog's DCG grammars I am studying grammars in Prolog and I have a litle doubt about con...
Some doubts about BNF grammars and Prolog&#x27;s DCG grammars Some doubts about BNF grammars and Prolog&#x27;s DCG grammars bnf prolog parsing grammar dcg Some BNF Prolog DCG Some doubts about BNF grammars and Prolog's DCG grammars I am studying grammars in Prolog and I have a litle doubt about conversions from the cla...
[ 0.02783203125, 0.0111083984375, 0.005157470703125, 0.0234375, -0.019287109375, 0.017822265625, -0.0277099609375, -0.004425048828125, 0.0012359619140625, -0.016357421875, 0.00045013427734375, -0.0120849609375, 0.000385284423828125, -0.00408935546875, -0.0062255859375, 0.004669189453125,...
[ 31384, 92814, 7, 335, 73493, 122092, 21816, 136, 1250, 4867, 3768, 391, 56367, 19, 420, 502, 366, 6953, 147, 104, 238, 16060, 142477, 54704, 47, 3173, 25632, 390, 199332, 139392, 756, 79315, 10644, 157268, 23698, 119794, 265, 12877, 27958, ...
[ 0.0145721435546875, 0.1605224609375, 0.00238037109375, 0.07049560546875, 0.249267578125, 0.1845703125, 0.1142578125, 0.00396728515625, 0.1317138671875, 0.2073974609375, 0.024932861328125, 0.0811767578125, 0.21533203125, 0.0360107421875, 0.1121826171875, 0.09454345703125, 0.0935058593...
embed
36081322_c0
36081322
prolog
0
Title: replace elements in prolog Problem title: replace elements in prolog Tags: prolog Problem: replace elements in prolog Am writing a program that includes a definition for the predicate 'word_replacements/2'. This predicate should be true if the two arguments are lists, and the second list is the same as the first...
replace elements in prolog replace elements in prolog prolog word_replacements Word Replace_A Replace_E Append Replaced replace elements in prolog Am writing a program that includes a definition for the predicate 'word_replacements/2'. This predicate should be true if the two arguments are lists, and the second list is...
[ 0.00122833251953125, 0.004364013671875, 0.0089111328125, 0.0081787109375, -0.002410888671875, 0.0211181640625, -0.0189208984375, 0.01202392578125, 0.022216796875, 0.0205078125, 0.0174560546875, 0.0152587890625, -0.0089111328125, -0.000766754150390625, 0.00286865234375, -0.0037841796875...
[ 91995, 80854, 502, 4867, 23, 2565, 107, 23935, 22543, 853, 284, 647, 5659, 3611, 32562, 1528, 80934, 1653, 2063, 67, 47416, 9035, 12477, 5608, 29568, 6626, 10750, 5303, 17932, 5701, 756, 11001, 31330, 11, 13, 42238, 27781, 107730, 3293, 8...
[ 0.2320556640625, 0.2296142578125, 0.1612548828125, 0.23681640625, 0.041839599609375, 0.09259033203125, 0.111328125, 0.2025146484375, 0.1572265625, 0.103271484375, 0.1162109375, 0.15576171875, 0.06298828125, 0.08203125, 0.0594482421875, 0.08978271484375, 0.084716796875, 0.0954589843...
embed
41248504_c0
41248504
prolog
0
Title: Delete the first fact that fulfills a condition in Prolog Problem title: Delete the first fact that fulfills a condition in Prolog Tags: fact, prolog Problem: Delete the first fact that fulfills a condition in Prolog I want to delete the first fact that fulfills my condition in Prolog. I tried to delete one and ...
Delete the first fact that fulfills a condition in Prolog Delete the first fact that fulfills a condition in Prolog fact prolog Delete Prolog Player Goal LIST ALL CARDS YOU HAVE Delete the first fact that fulfills a condition in Prolog I want to delete the first fact that fulfills my condition in Prolog. I tried to del...
[ 0.0126953125, -0.007415771484375, 0.0123291015625, 0.0146484375, -0.0054931640625, -0.0179443359375, 0.0098876953125, -0.0031585693359375, 0.004119873046875, -0.01373291015625, 0.009521484375, 0.0223388671875, -0.018310546875, -0.016357421875, 0.00421142578125, 0.004241943359375, 0.0...
[ 262, 46485, 5117, 15824, 450, 211394, 7, 35431, 23, 1250, 4867, 502, 60560, 2016, 289, 195977, 58837, 42476, 13526, 3444, 47, 154109, 37842, 1632, 43606, 14012, 959, 105950, 69236, 3688, 13695, 126381, 1398, 314, 933, 41018, 4488, 108, 1256...
[ 0.1483154296875, 0.2330322265625, 0.18505859375, 0.257568359375, 0.06451416015625, 0.2113037109375, 0.09521484375, 0.2242431640625, 0.0723876953125, 0.19775390625, 0.26611328125, 0.1298828125, 0.10736083984375, 0.09027099609375, 0.027923583984375, 0.135986328125, 0.0200347900390625, ...
embed
13515161_c0
13515161
prolog
0
Title: Getting an order into predicate resolution Problem title: Getting an order into predicate resolution Tags: prolog, clpfd Problem: Getting an order into predicate resolution Look at the following goals (I am using swi-prolog with clpfd from Markus Triska): result(Input,Result) :- Input #> 10, Result=decline. resu...
Getting an order into predicate resolution Getting an order into predicate resolution prolog clpfd Getting Input Result Getting an order into predicate resolution Look at the following goals (I am using swi-prolog with clpfd from Markus Triska): A possible query looks like this: I want to add an order or some sort of s...
[ -0.0035247802734375, 0.001708984375, 0.000029325485229492188, -0.0020751953125, 0.00909423828125, 0.0021820068359375, 0.00095367431640625, -0.0225830078125, 0.0179443359375, -0.0220947265625, 0.01806640625, 0.008056640625, -0.0322265625, 0.005523681640625, 0.006591796875, 0.01013183593...
[ 210732, 12989, 3934, 1653, 2063, 67, 158839, 502, 4867, 33139, 39557, 71, 360, 7077, 126684, 109458, 91, 2452, 3454, 111246, 4699, 937, 7722, 41, 1294, 33342, 3444, 15190, 29806, 25343, 50718, 2256, 35604, 57553, 1837, 17932, 69236, 90698, ...
[ 0.05438232421875, 0.2340087890625, 0.1192626953125, 0.1549072265625, 0.19580078125, 0.086669921875, 0.2210693359375, 0.09326171875, 0.173095703125, 0.0243072509765625, 0.0653076171875, 0.08770751953125, 0.06866455078125, 0.169921875, 0.18310546875, 0.1689453125, 0.010986328125, 0.1...
embed
27098219_c0
27098219
prolog
0
Title: Prolog - Matrix equation Problem title: Prolog - Matrix equation Tags: clpfd, prolog Problem: Prolog - Matrix equation I'm new to Prolog and I want to do something like this, but don't know where to start. Already made the matrix and how to verify the numbers are under 9 with Bounds library, but that's about it,...
Prolog - Matrix equation Prolog - Matrix equation clpfd prolog Prolog Matrix use_module Num Res Numbperm Lista concat_atom term_to_atom Prolog - Matrix equation I'm new to Prolog and I want to do something like this, but don't know where to start. Already made the matrix and how to verify the numbers are under 9 with B...
[ -0.0024261474609375, -0.0026092529296875, 0.0147705078125, 0.011962890625, 0.005279541015625, -0.00823974609375, -0.0196533203125, 0.007293701171875, 0.00494384765625, -0.031982421875, -0.01409912109375, -0.023681640625, 0.00921630859375, 0.01324462890625, -0.01202392578125, 0.00759887...
[ 1250, 4867, 194234, 28, 5490, 39557, 71, 502, 4527, 83279, 52782, 9624, 1429, 6492, 1264, 39, 50085, 158, 4460, 5928, 13579, 188, 2320, 3525, 3444, 54, 1884, 903, 18, 3714, 4034, 1283, 7228, 50944, 425, 3642, 493, 40383, 101935, 1379, 4...
[ 0.171875, 0.25146484375, 0.2049560546875, 0.01605224609375, 0.199951171875, 0.032684326171875, 0.05804443359375, 0.10302734375, 0.08209228515625, 0.1014404296875, 0.1119384765625, 0.1396484375, 0.04119873046875, 0.0262603759765625, 0.127685546875, 0.03924560546875, 0.1456298828125, ...
embed
34970061_c0
34970061
prolog
0
Title: Display the execution times for each goal of a predicate clause Problem title: Display the execution times for each goal of a predicate clause Tags: prolog Problem: Display the execution times for each goal of a predicate clause I want to see the execution time inside goals of predicate with SICStus Prolog . Exa...
Display the execution times for each goal of a predicate clause Display the execution times for each goal of a predicate clause prolog Display goal1 goal2 time_go times_go times_go_goal1 times_go_goal2 time_out Goal Time Result char_code Res Instantiation user:time_out user:char_code _193 _179 _181 Display the executio...
[ 0.0174560546875, 0.01055908203125, 0.0086669921875, 0.000209808349609375, -0.0159912109375, -0.004150390625, -0.00164794921875, -0.010009765625, -0.01019287109375, -0.04052734375, 0.009033203125, 0.0179443359375, -0.0255126953125, 0.005950927734375, 0.0032196044921875, 0.02392578125, ...
[ 90045, 71924, 1830, 20028, 100, 12638, 69236, 1653, 2063, 67, 70731, 502, 4867, 304, 1733, 519, 6056, 2016, 289, 19055, 126684, 21441, 40899, 9624, 166945, 14, 38937, 6032, 9254, 2947, 363, 156918, 1819, 13, 3444, 1957, 46132, 109458, 111, ...
[ 0.1746826171875, 0.1873779296875, 0.12060546875, 0.19189453125, 0.051422119140625, 0.1151123046875, 0.2291259765625, 0.153076171875, 0.181640625, 0.0919189453125, 0.184814453125, 0.0894775390625, 0.2008056640625, 0.0269012451171875, 0.1763916015625, 0.05706787109375, 0.1517333984375,...
embed
56880145_c0
56880145
prolog
0
Title: Prolog reverse/2 list output format Problem title: Prolog reverse/2 list output format Tags: prolog Problem: Prolog reverse/2 list output format I am a beginner in Prolog and I am stuck in a homework assignment. I have to build a predicate myReverse(XS,YS) where XS is the reverse list of YS . I have built some l...
Prolog reverse/2 list output format Prolog reverse/2 list output format prolog Prolog Prolog reverse/2 list output format I am a beginner in Prolog and I am stuck in a homework assignment. I have to build a predicate myReverse(XS,YS) where XS is the reverse list of YS . I have built some logic as follows: This kinda wo...
[ 0.0013427734375, 0.030517578125, 0.00909423828125, 0.002349853515625, -0.0211181640625, 0.02099609375, 0.020263671875, 0.002410888671875, -0.00026702880859375, 0.01953125, 0.0244140625, 0.0086669921875, 0.00168609619140625, -0.0115966796875, 0.00347900390625, 0.0198974609375, -0.0011...
[ 1250, 4867, 39531, 184, 12477, 5303, 140992, 9384, 502, 9842, 1679, 179933, 5368, 18244, 95486, 45367, 1653, 2063, 67, 759, 4332, 37676, 1542, 294, 26947, 112720, 88303, 62775, 43240, 959, 32233, 3444, 27781, 69307, 84751, 15490, 17368, 18327...
[ 0.1607666015625, 0.2314453125, 0.2275390625, 0.148193359375, 0.2227783203125, 0.1915283203125, 0.2080078125, 0.2137451171875, 0.109619140625, 0.00677490234375, 0.02789306640625, 0.0283660888671875, 0.016632080078125, 0.07562255859375, 0.0616455078125, 0.065185546875, 0.0701904296875,...
embed
19827675_c1
19827675
prolog
1
'), !, fail. run(X):-X1 is X+1, run(X1). And this is what i get from tracing: | ?- run(0). 1 1 Call: run(0) ? 2 2 Call: _1079 is 0+1 ? 2 2 Exit: 1 is 0+1 ? 3 2 Call: run(1) ? 4 3 Call: _3009 is 1+1 ? 4 3 Exit: 2 is 1+1 ? 5 3 Call: run(2) ? 6 4 Call: _4939 is 2+1 ? 6 4 Exit: 3 is 2+1 ? 7 4 Call: run(3) ? 8 5 Call: _6869...
'), !, fail. run(X):-X1 is X+1, run(X1). And this is what i get from tracing: | ?- run(0). 1 1 Call: run(0) ? 2 2 Call: _1079 is 0+1 ? 2 2 Exit: 1 is 0+1 ? 3 2 Call: run(1) ? 4 3 Call: _3009 is 1+1 ? 4 3 Exit: 2 is 1+1 ? 5 3 Call: run(2) ? 6 4 Call: _4939 is 2+1 ? 6 4 Exit: 3 is 2+1 ? 7 4 Call: run(3) ? 8 5 Call: _6869...
[ 0.007232666015625, 0.00970458984375, 0.0120849609375, 0.00457763671875, 0.005126953125, 0.0228271484375, -0.021484375, 0.00372314453125, 0.0159912109375, -0.0107421875, -0.002838134765625, 0.039794921875, -0.00592041015625, -0.0078125, 0.02685546875, 0.006500244140625, 0.0390625, 0...
[ 242, 247, 711, 35782, 11675, 1542, 9, 418, 83, 1193, 21748, 17727, 903, 17, 2046, 1295, 1152, 21896, 58745, 705, 177609, 106, 26265, 116, 963, 22377, 757, 5443, 217, 12, 138, 27750, 201, 1197, 6463, 179898, 190, 305, 12977, 9323, 382, ...
[ 0.04949951171875, 0.036041259765625, 0.0947265625, 0.273681640625, 0.2093505859375, 0.1644287109375, 0.09393310546875, 0.118896484375, 0.1053466796875, 0.097900390625, 0.2095947265625, 0.1129150390625, 0.007110595703125, 0.03228759765625, 0.05859375, 0.01275634765625, 0.22509765625, ...
embed
57130192_c1
57130192
prolog
1
it wasn't a huge savings. Is there anything more that can be done? My feeling is maybe not, because what could be simpler than a single atom in a list? These scalars are called in a lot of places throughout the grammar, and I assume that's the root of the issue. Though they're simple rules, they're everywhere, and una...
it wasn't a huge savings. Is there anything more that can be done? My feeling is maybe not, because what could be simpler than a single atom in a list? These scalars are called in a lot of places throughout the grammar, and I assume that's the root of the issue. Though they're simple rules, they're everywhere, and una...
[ 0.016357421875, 0.004486083984375, -0.00101470947265625, 0.0152587890625, -0.002044677734375, -0.0038909912109375, 0.0101318359375, 0.016357421875, 0.016845703125, 0.000736236572265625, -0.00762939453125, -0.0419921875, 0.00144195556640625, 0.00732421875, 0.015625, 0.0111083984375, 0...
[ 442, 58954, 18, 58696, 14880, 5180, 23937, 1286, 831, 16940, 34698, 51139, 959, 5809, 8781, 42, 11001, 34627, 23, 5303, 32255, 146232, 4295, 35839, 5915, 44677, 87420, 122092, 147, 41591, 74855, 31089, 91736, 219743, 965, 103210, 4537, 4488, ...
[ 0.04998779296875, 0.040985107421875, 0.0168304443359375, 0.0064697265625, 0.12158203125, 0.117431640625, 0.017669677734375, 0.05767822265625, 0.042724609375, 0.08563232421875, 0.1336669921875, 0.06829833984375, 0.004302978515625, 0.0635986328125, 0.1607666015625, 0.0653076171875, 0.1...
embed
75630809_c1
75630809
prolog
1
,n,v,v,v,v,v,v,n,n,n,v,v], Count). Count = 2. I am satisfied with this result, but I don't think this is the most efficient method to achieve it and would like some help making it faster to compute. I think that using append and findall is computationally expensive, but can't figure how to do the same without them... T...
,n,v,v,v,v,v,v,n,n,n,v,v], Count). Count = 2. I am satisfied with this result, but I don't think this is the most efficient method to achieve it and would like some help making it faster to compute. I think that using append and findall is computationally expensive, but can't figure how to do the same without them... T...
[ -0.0140380859375, 0.004058837890625, 0.00555419921875, 0.01287841796875, 0.0081787109375, -0.00970458984375, -0.00970458984375, 0.005706787109375, 0.026611328125, -0.046875, -0.01409912109375, 0.00347900390625, 0.025390625, 0.0244140625, -0.00726318359375, -0.0002155303955078125, 0.0...
[ 19, 334, 108210, 2203, 787, 214521, 16750, 5351, 2684, 93766, 55300, 69307, 4358, 4271, 56, 9969, 6743, 17368, 114689, 71, 136, 7413, 5584, 181135, 135587, 26366, 2856, 391, 56367, 127887, 27781, 765, 54529, 74918, 42, 69098, 103510, 5303, ...
[ 0.0477294921875, 0.18115234375, 0.22265625, 0.0758056640625, 0.15673828125, 0.153076171875, 0.05328369140625, 0.040313720703125, 0.02886962890625, 0.142822265625, 0.093017578125, 0.07513427734375, 0.07293701171875, 0.098388671875, 0.0777587890625, 0.10687255859375, 0.1341552734375, ...
embed
65545714_c0
65545714
prolog
0
Title: How can I get my maze program to create and print two route-lists to the console? Problem title: How can I get my maze program to create and print two route-lists to the console? Tags: prolog Problem: How can I get my maze program to create and print two route-lists to the console? link(entry, a). link(a, b). li...
How can I get my maze program to create and print two route-lists to the console? How can I get my maze program to create and print two route-lists to the console? prolog How How can I get my maze program to create and print two route-lists to the console? Despite hours of reading, I am struggling to understand how I c...
[ 0.01336669921875, -0.005462646484375, 0.00106048583984375, 0.02490234375, -0.003326416015625, 0.0211181640625, 0.0027313232421875, 0.00579833984375, 0.0172119140625, -0.040283203125, 0.0072021484375, 0.00193023681640625, -0.01806640625, 0.006866455078125, 0.006744384765625, 0.007110595...
[ 11249, 831, 2046, 759, 291, 731, 1528, 47, 28282, 136, 28412, 6626, 36439, 9, 6562, 130250, 87, 502, 4867, 70, 21974, 16454, 237875, 28219, 3642, 3249, 139392, 44116, 145870, 60875, 76896, 67660, 198343, 110, 56037, 16981, 31895, 51359, 129...
[ 0.064697265625, 0.07220458984375, 0.093505859375, 0.0296478271484375, 0.1595458984375, 0.237548828125, 0.1893310546875, 0.1024169921875, 0.1529541015625, 0.0848388671875, 0.2020263671875, 0.158447265625, 0.239501953125, 0.0733642578125, 0.240478515625, 0.2274169921875, 0.011962890625...
embed
40796013_c0
40796013
prolog
0
Title: What is the meaning of &quot;^&quot; in prolog? Problem title: What is the meaning of &quot;^&quot; in prolog? Tags: prolog, prolog-setof Problem: What is the meaning of "^" in prolog? I have a knowledge base about movies. My actor and actress predicates look like this: % actor(M,A,R) -- actor A played role R in...
What is the meaning of &quot;^&quot; in prolog? What is the meaning of &quot;^&quot; in prolog? prolog prolog-setof What Name Movie Role List1 List2 Nr1 Nr2 What is the meaning of "^" in prolog? I have a knowledge base about movies. My actor and actress predicates look like this: I'm trying to count the distinct actors...
[ 0.0240478515625, 0.007049560546875, 0.01458740234375, 0.0216064453125, 0.0078125, 0.00579833984375, -0.015869140625, 0.0098876953125, 0.0206298828125, -0.056884765625, 0.0020294189453125, 0.003448486328125, -0.0001621246337890625, 0.00543212890625, -0.020263671875, 0.010498046875, -0...
[ 4865, 70, 91084, 619, 41502, 8353, 1230, 23, 502, 4867, 3509, 4390, 15757, 10348, 2777, 133, 32036, 304, 9308, 83, 111, 58, 51359, 3647, 72304, 39329, 136, 215542, 1653, 2063, 6713, 1884, 31577, 54529, 117781, 33022, 22027, 18, 4488, 1284...
[ 0.025604248046875, 0.06298828125, 0.2293701171875, 0.05242919921875, 0.14208984375, 0.2705078125, 0.1627197265625, 0.1090087890625, 0.22119140625, 0.27197265625, 0.07275390625, 0.131591796875, 0.0455322265625, 0.0543212890625, 0.1102294921875, 0.054412841796875, 0.125, 0.0147857666...
embed
32770849_c0
32770849
prolog
0
Title: Given values x and y return rule name if it is true Problem title: Given values x and y return rule name if it is true Tags: prolog Problem: Given values x and y return rule name if it is true This is my prolog file. male(bob). male(john). female(betty). female(dana). father(bob, john). father(bob, dana). mother...
Given values x and y return rule name if it is true Given values x and y return rule name if it is true prolog Given Given values x and y return rule name if it is true This is my prolog file. I want a name of rule if it returns true for any value x or y. Let's say x = betty and y = john . mother(betty, john). <- this ...
[ 0.01611328125, 0.00156402587890625, -0.0027313232421875, 0.0186767578125, -0.0089111328125, 0.026123046875, 0.00180816650390625, 0.003631591796875, -0.0076904296875, -0.01409912109375, 0.01312255859375, -0.012451171875, -0.01202392578125, -0.021240234375, 0.0166015625, 0.006103515625, ...
[ 77878, 19, 142424, 1022, 136, 113, 30646, 79986, 9351, 2174, 83, 29568, 502, 4867, 442, 759, 11435, 3444, 10, 111, 7, 100, 2499, 34292, 707, 5154, 2203, 1600, 939, 35254, 6, 42732, 4626, 903, 23356, 5608, 432, 9319, 3789, 15824, 450, ...
[ 0.1846923828125, 0.06201171875, 0.2252197265625, 0.142578125, 0.2027587890625, 0.208251953125, 0.206298828125, 0.1990966796875, 0.176025390625, 0.1251220703125, 0.08758544921875, 0.2288818359375, 0.1468505859375, 0.18701171875, 0.010986328125, 0.023040771484375, 0.12451171875, 0.14...
embed
53768586_c0
53768586
prolog
0
Title: Redefining operator precedence in a module for exported predicate Problem title: Redefining operator precedence in a module for exported predicate Tags: operators, prolog, module Problem: Redefining operator precedence in a module for exported predicate I would like to write a module that exports a predicate whe...
Redefining operator precedence in a module for exported predicate Redefining operator precedence in a module for exported predicate operators prolog module Redefining use_module ERROR Syntax Operator Redefining operator precedence in a module for exported predicate I would like to write a module that exports a predicat...
[ 0.0186767578125, -0.013427734375, 0.0029144287109375, 0.0233154296875, 0.0198974609375, 0.003570556640625, 0.0301513671875, 0.00177001953125, -0.01904296875, -0.0306396484375, 0.006561279296875, 0.0035247802734375, 0.0164794921875, -0.0296630859375, 0.007781982421875, 0.01507568359375,...
[ 853, 49919, 39933, 107671, 6620, 88996, 31255, 297, 1653, 2063, 23, 67, 502, 4867, 4527, 83279, 151206, 24638, 19010, 86531, 150922, 33022, 38937, 19048, 17203, 915, 11583, 237, 183114, 61924, 72367, 1829, 185397, 41, 1294, 35782, 53550, 1559...
[ 0.126708984375, 0.19921875, 0.260009765625, 0.19091796875, 0.1204833984375, 0.2037353515625, 0.207763671875, 0.03997802734375, 0.1605224609375, 0.1824951171875, 0.023590087890625, 0.05389404296875, 0.1246337890625, 0.180908203125, 0.1160888671875, 0.1336669921875, 0.10467529296875, ...
embed
40854485_c0
40854485
prolog
0
Title: prolog undirected graphs lines issue Problem title: prolog undirected graphs lines issue Tags: prolog Problem: prolog undirected graphs lines issue Hi all I am having an issue I have a graph non directed enter image description here I have listed each node in the form of node(name,[path]). where a node that has ...
prolog undirected graphs lines issue prolog undirected graphs lines issue prolog Node1 Node2 PathName Node prolog undirected graphs lines issue Hi all I am having an issue I have a graph non directed enter image description here I have listed each node in the form of node(name,[path]). where a node that has multiple pa...
[ -0.0036468505859375, -0.0025177001953125, 0.006439208984375, 0.00390625, -0.01361083984375, 0.00958251953125, 0.01116943359375, -0.00494384765625, 0.0220947265625, -0.017578125, 0.005340576171875, 0.000766754150390625, 0.0098876953125, -0.006561279296875, -0.002716064453125, 0.00303649...
[ 502, 4867, 51, 80581, 297, 41382, 7, 124519, 31089, 438, 112, 418, 304, 108421, 163612, 756, 19441, 351, 8951, 30957, 29569, 76811, 145870, 12638, 110, 3173, 11627, 128405, 48716, 60875, 1543, 1940, 24762, 678, 59121, 79986, 959, 5303, 1283...
[ 0.1712646484375, 0.1904296875, 0.09979248046875, 0.2158203125, 0.050506591796875, 0.203369140625, 0.098876953125, 0.16357421875, 0.15283203125, 0.14501953125, 0.1295166015625, 0.039703369140625, 0.0653076171875, 0.140625, 0.1453857421875, 0.009307861328125, 0.006378173828125, 0.089...
embed
27739548_c0
27739548
prolog
0
Title: Confusion whilst drawing query search tree? Problem title: Confusion whilst drawing query search tree? Tags: prolog, search-tree, logic Problem: Confusion whilst drawing query search tree? We are working with the following knowledge base: house_elf(dobby). witch(hermione). witch('McGonagall'). witch(rita_skeeter...
Confusion whilst drawing query search tree? Confusion whilst drawing query search tree? prolog search-tree logic Confusion house_elf McGonagall rita_skeeter Hermione Confusion whilst drawing query search tree? We are working with the following knowledge base: The question of the exercise was: I am stuck on question 5: ...
[ -0.00133514404296875, 0.02685546875, -0.00213623046875, 0.003997802734375, 0.01324462890625, 0.007293701171875, -0.017333984375, -0.00457763671875, 0.000339508056640625, -0.0194091796875, -0.0078125, -0.01153564453125, 0.0137939453125, 0.0279541015625, -0.00092315673828125, -0.00078582...
[ 1657, 92105, 217982, 188304, 41, 1294, 33938, 53201, 32, 502, 4867, 62600, 62775, 18276, 17463, 157580, 2477, 119876, 13992, 1205, 45673, 1840, 39, 20493, 20697, 51359, 3647, 9655, 81979, 179933, 190, 28219, 2367, 8562, 123087, 678, 20949, 55...
[ 0.103759765625, 0.22021484375, 0.1365966796875, 0.20849609375, 0.1710205078125, 0.1661376953125, 0.220458984375, 0.25732421875, 0.00250244140625, 0.099853515625, 0.22265625, 0.2178955078125, 0.1507568359375, 0.11328125, 0.0946044921875, 0.058380126953125, 0.083740234375, 0.18884277...
embed
8351580_c0
8351580
prolog
0
Title: How to use ground/1? Problem title: How to use ground/1? Tags: prolog, prolog-toplevel, list Problem: How to use ground/1? I'm a complete beginner with Prolog and I wanted to know how to use ground/1 . At the moment I have this code: intertwine([], [], []). intertwine([E|Es], Fs, [E|Gs]) :- intertwine(Es, Fs, Gs...
How to use ground/1? How to use ground/1? prolog prolog-toplevel list How How to use ground/1? I'm a complete beginner with Prolog and I wanted to know how to use ground/1 . At the moment I have this code: But when I try to call this in the shell: I get the right answer X=[a,b] , but the query doesn't end, as if it thi...
[ 0.003936767578125, 0.0211181640625, 0.01177978515625, -0.00022411346435546875, -0.02294921875, 0.02099609375, 0.006683349609375, 0.0031890869140625, 0.0047607421875, -0.058837890625, 0.0164794921875, -0.001007080078125, -0.005340576171875, 0.00921630859375, 0.0057373046875, 0.003555297...
[ 11249, 47, 4527, 61585, 11583, 502, 4867, 13784, 67919, 5303, 28484, 9842, 1679, 1250, 3642, 18151, 9790, 11782, 903, 128019, 7108, 35166, 1193, 1369, 275, 41, 1294, 3564, 2174, 5351, 25737, 24234, 74, 8710, 184, 140992, 12765, 36766, 50960...
[ 0.07281494140625, 0.032958984375, 0.171142578125, 0.27197265625, 0.2247314453125, 0.0897216796875, 0.2393798828125, 0.09033203125, 0.190673828125, 0.1907958984375, 0.0194091796875, 0.010498046875, 0.047149658203125, 0.1376953125, 0.04986572265625, 0.13671875, 0.034515380859375, 0.1...
embed
25631735_c0
25631735
prolog
0
Title: List exercise on prolog Problem title: List exercise on prolog Tags: prolog, list Problem: List exercise on prolog So my professor at campus asked us to solve this exercise but is kinda tough and I am trying for 2 days now. Anyway here it is: I'm given a list for example [a,b,c,d,w,n,i,c,k,a,b,c,d,w] and on this...
List exercise on prolog List exercise on prolog prolog list List checkMessage1 suspiciousMessage1 Last List exercise on prolog So my professor at campus asked us to solve this exercise but is kinda tough and I am trying for 2 days now. Anyway here it is: I'm given a list for example [a,b,c,d,w,n,i,c,k,a,b,c,d,w] and on...
[ 0.017578125, 0.0126953125, -0.005340576171875, 0.0091552734375, -0.0242919921875, 0.0137939453125, -0.0106201171875, 0.0177001953125, 0.0111083984375, -0.043212890625, 0.01171875, -0.0045166015625, 0.00494384765625, 0.010009765625, -0.005584716796875, 0.0184326171875, 0.037353515625,...
[ 32036, 81979, 502, 4867, 5303, 12765, 6011, 166, 181960, 21672, 16030, 78132, 37170, 86869, 143033, 31577, 34475, 434, 92, 7413, 1810, 2174, 2685, 1159, 16711, 1614, 6562, 90698, 5701, 86595, 3564, 70541, 8439, 140909, 1892, 8337, 92610, 1528...
[ 0.222900390625, 0.1912841796875, 0.1448974609375, 0.2208251953125, 0.19384765625, 0.149658203125, 0.0712890625, 0.09173583984375, 0.200439453125, 0.114501953125, 0.0103759765625, 0.0379638671875, 0.0015869140625, 0.1043701171875, 0.064697265625, 0.033782958984375, 0.047271728515625, ...
embed
77032962_c0
77032962
prolog
0
Title: Does this Prolog program have a simple proof of non-halting? Problem title: Does this Prolog program have a simple proof of non-halting? Tags: prolog Problem: Does this Prolog program have a simple proof of non-halting? :- p(f(X),f(f(Y)),f(f(b))). p(f(a),f(X),f(f(X))). p(f(a),f(a),f(f(X))). p(X,f(f(Y)),X) :- p(Y...
Does this Prolog program have a simple proof of non-halting? Does this Prolog program have a simple proof of non-halting? prolog Does Prolog i.e Does this Prolog program have a simple proof of non-halting? I believe I have a proof that uses induction and requires several subcases, some of which are: I will try to compl...
[ 0.00982666015625, 0.0166015625, 0.01141357421875, 0.01123046875, -0.01220703125, -0.001617431640625, -0.0062255859375, -0.022705078125, -0.01446533203125, -0.018798828125, 0.01434326171875, 0.0031890869140625, -0.0146484375, -0.001983642578125, 0.0179443359375, 0.004241943359375, 0.0...
[ 101790, 903, 1250, 4867, 1528, 8781, 98869, 111, 351, 23766, 214, 765, 502, 10, 9, 23, 77391, 1614, 58437, 9790, 28484, 42, 5570, 59158, 109109, 243228, 12989, 70731, 25737, 188, 54969, 71924, 519, 16765 ]
[ 0.02392578125, 0.09698486328125, 0.185302734375, 0.2479248046875, 0.1768798828125, 0.1842041015625, 0.18408203125, 0.0767822265625, 0.2020263671875, 0.2020263671875, 0.171142578125, 0.040313720703125, 0.13916015625, 0.0302276611328125, 0.0518798828125, 0.073974609375, 0.15478515625, ...
embed
9812239_c0
9812239
prolog
0
Title: Plese write a solution for a prolog task Problem title: Plese write a solution for a prolog task Tags: arrays, list, prolog Problem: Plese write a solution for a prolog task I have a matrix M x N , I need to switch places of the elements with indexed [1,N] and [M,N] . Update I am really new to Prolog, here is my...
Plese write a solution for a prolog task Plese write a solution for a prolog task arrays list prolog Plese FirstRow Tail LastRow FirstRowWithoutA LastRowWithoutB FirstRowNew LastRowNew Middle List NewList Item Plese write a solution for a prolog task I have a matrix M x N , I need to switch places of the elements with ...
[ -0.006103515625, 0.031982421875, 0.0244140625, 0.00128936767578125, -0.023193359375, -0.00152587890625, -0.028564453125, 0.0220947265625, 0.01409912109375, 0.00958251953125, 0.0263671875, -0.00250244140625, -0.02099609375, -0.00689697265625, 0.00286865234375, 0.00946044921875, 0.0280...
[ 19434, 184, 33022, 10, 29806, 100, 502, 4867, 66211, 10298, 4778, 5303, 23972, 12724, 434, 1218, 379, 21672, 194583, 6056, 284, 571, 46568, 102256, 32036, 2356, 154663, 78426, 50944, 425, 276, 1022, 541, 3871, 101089, 44677, 80854, 678, 632...
[ 0.20654296875, 0.0849609375, 0.1748046875, 0.043121337890625, 0.237548828125, 0.10107421875, 0.1962890625, 0.252685546875, 0.2281494140625, 0.1531982421875, 0.1173095703125, 0.1793212890625, 0.1068115234375, 0.156982421875, 0.0460205078125, 0.1536865234375, 0.123779296875, 0.130249...
embed
16203835_c1
16203835
prolog
1
Husband5 \== Husband3, Husband5 \== Husband4, %Aunt Maisie's Husband is Uncle Nick Husband4 = nick, %Uncle Bill and Aunt Emily and their respective spouses sent the salver and the urn (in order) Gift2 = salver, member([_, bill, _, urn], Z), %Aunt Amber and Uncle Doug live in Georgia Husband1 = doug, State1 = georgia, ...
Husband5 \== Husband3, Husband5 \== Husband4, %Aunt Maisie's Husband is Uncle Nick Husband4 = nick, %Uncle Bill and Aunt Emily and their respective spouses sent the salver and the urn (in order) Gift2 = salver, member([_, bill, _, urn], Z), %Aunt Amber and Uncle Doug live in Georgia Husband1 = doug, State1 = georgia, ...
[ -0.0272216796875, -0.01336669921875, 0.01708984375, 0.00921630859375, -0.024658203125, 0.004425048828125, -0.0211181640625, 0.019775390625, 0.00390625, 0.0025787353515625, 0.01031494140625, -0.03125, 0.01953125, 0.01373291015625, -0.01214599609375, 0.021484375, 0.0291748046875, 0.0...
[ 20387, 8262, 758, 6, 69112, 363, 4, 617, 1745, 9109, 6245, 478, 25, 83, 992, 11030, 47801, 2203, 128911, 14256, 19893, 140457, 107013, 5732, 9325, 1552, 814, 136, 2780, 19, 12989, 104445, 304, 32786, 54727, 567, 10250, 56, 40641, 177, 6...
[ 0.1546630859375, 0.250244140625, 0.2496337890625, 0.024078369140625, 0.119873046875, 0.131591796875, 0.0126953125, 0.22314453125, 0.012969970703125, 0.18115234375, 0.1756591796875, 0.21875, 0.00048828125, 0.08544921875, 0.0980224609375, 0.1357421875, 0.2025146484375, 0.067199707031...
embed
32964512_c0
32964512
prolog
0
Title: Prolog : Ordering a list alphabetically Problem title: Prolog : Ordering a list alphabetically Tags: sorting, prolog, prolog-setof, list Problem: Prolog : Ordering a list alphabetically I have the following problem, i'm supposed to order a List containing only Strings in alphabetical order using only 'bagof', 'f...
Prolog : Ordering a list alphabetically Prolog : Ordering a list alphabetically sorting prolog prolog-setof list Prolog Ordering Stevie Moore Lane Steinberg Yukio Yung Jessie Evans Miguel Lucia Pamela Shooby Taylor Tiny Tim Legendary Stardust Cowboy all_musicians Prolog : Ordering a list alphabetically I have the follo...
[ 0.00628662109375, -0.00579833984375, 0.006591796875, 0.0302734375, 0.004364013671875, 0.033203125, -0.0020904541015625, -0.004547119140625, 0.00982666015625, -0.031494140625, 0.015380859375, -0.017333984375, 0.007232666015625, -0.00311279296875, -0.01123046875, 0.015380859375, -0.003...
[ 1250, 4867, 152, 81206, 214, 10, 5303, 229231, 71407, 12096, 502, 3509, 4390, 8694, 15959, 119303, 239, 86, 27822, 4969, 109402, 846, 990, 1619, 117361, 478, 122841, 40471, 133556, 1342, 54950, 17779, 45104, 63569, 8081, 53, 13320, 52639, 6...
[ 0.2054443359375, 0.28125, 0.030059814453125, 0.2366943359375, 0.130859375, 0.0489501953125, 0.2261962890625, 0.1962890625, 0.1185302734375, 0.17138671875, 0.1644287109375, 0.1253662109375, 0.2081298828125, 0.1317138671875, 0.245361328125, 0.2437744140625, 0.142333984375, 0.11413574...
embed
34279712_c0
34279712
prolog
0
Title: Prolog-Parse XML which have the same tag name Problem title: Prolog-Parse XML which have the same tag name Tags: swi-prolog, prolog, xml Problem: Prolog-Parse XML which have the same tag name Can someone help me with parsing an XML which contains the same tag names throughout the document.I have to find out the ...
Prolog-Parse XML which have the same tag name Prolog-Parse XML which have the same tag name swi-prolog prolog xml Prolog-Parse XML Label Prolog-Parse XML which have the same tag name Can someone help me with parsing an XML which contains the same tag names throughout the document.I have to find out the sibling and the ...
[ 0.017822265625, 0.005889892578125, 0.01336669921875, -0.006805419921875, -0.01031494140625, 0.001495361328125, -0.0084228515625, -0.0023040771484375, 0.0023345947265625, -0.0291748046875, 0.01904296875, -0.00872802734375, -0.004364013671875, -0.02587890625, 0.015380859375, 0.0032958984...
[ 1250, 4867, 28636, 184, 92537, 3129, 765, 5701, 7909, 9351, 9, 2452, 3454, 502, 131492, 129214, 4171, 22008, 4358, 366, 6953, 70541, 123055, 87420, 12937, 7413, 1810, 78, 79298, 136, 29041, 12638, 69141, 62952, 5377, 1542, 2189, 96760, 5303...
[ 0.1253662109375, 0.2012939453125, 0.1500244140625, 0.10479736328125, 0.2493896484375, 0.01239013671875, 0.0302734375, 0.1524658203125, 0.171875, 0.07159423828125, 0.009063720703125, 0.135498046875, 0.0902099609375, 0.10308837890625, 0.209716796875, 0.1466064453125, 0.001678466796875,...
embed
61033311_c0
61033311
prolog
0
Title: Prolog - Using append to return a single list Problem title: Prolog - Using append to return a single list Tags: prolog Problem: Prolog - Using append to return a single list Write a predicate triangle(Bs, Ds) where Bs a list of the positions of the foo and Ds is the (single) list of differences in position. Use...
Prolog - Using append to return a single list Prolog - Using append to return a single list prolog Prolog Using Prolog - Using append to return a single list Write a predicate triangle(Bs, Ds) where Bs a list of the positions of the foo and Ds is the (single) list of differences in position. Use the built-in predicate ...
[ 0.018798828125, -0.006072998046875, -0.004638671875, -0.004119873046875, -0.0172119140625, 0.01373291015625, 0.0010223388671875, 0.0224609375, 0.0301513671875, -0.046142578125, 0.0021820068359375, -0.0098876953125, -0.00677490234375, 0.00860595703125, -0.01483154296875, 0.00732421875, ...
[ 1250, 4867, 345, 6953, 114689, 71, 30646, 11001, 5303, 502, 601, 18781, 1653, 2063, 1927, 109217, 571, 391, 7, 335, 19069, 5775, 31, 60212, 36836, 88303, 73, 10002, 62488, 121137, 678, 43719, 132, 187895, 64209, 26785, 23, 63134, 174548, ...
[ 0.1783447265625, 0.24951171875, 0.076171875, 0.0994873046875, 0.235107421875, 0.219482421875, 0.201904296875, 0.189697265625, 0.25537109375, 0.1258544921875, 0.04473876953125, 0.044891357421875, 0.1446533203125, 0.1993408203125, 0.1571044921875, 0.205078125, 0.0634765625, 0.1622314...
embed
52015486_c0
52015486
prolog
0
Title: Assert Intermediate Result in Prolog Problem title: Assert Intermediate Result in Prolog Tags: dynamic-programming, prolog Problem: Assert Intermediate Result in Prolog This is the question. Define a predicate sigma(N,S) such that S = 1+2+...+N. And remember every new intermediate result in the query. For exampl...
Assert Intermediate Result in Prolog Assert Intermediate Result in Prolog dynamic-programming prolog Assert Intermediate Result Prolog Sum Acc N1-1 Assert Intermediate Result in Prolog This is the question. I tried the following method to solve it. There is some problem with assertz line. Since sum can be only initiali...
[ 0.0111083984375, -0.000823974609375, 0.01019287109375, 0.01275634765625, -0.01092529296875, 0.00119781494140625, -0.000370025634765625, 0.03466796875, 0.0166015625, -0.0267333984375, 0.00726318359375, 0.0203857421875, -0.020263671875, -0.001708984375, 0.033203125, 0.019775390625, 0.0...
[ 1301, 33657, 5337, 12333, 67, 126684, 1250, 4867, 84079, 28966, 502, 36335, 29899, 541, 115727, 55300, 86869, 2967, 237, 169, 13315, 10554, 831, 4734, 61475, 24145, 34292, 106, 47, 1144, 192, 189126, 20561, 86827, 59690, 41, 294, 183540, 39...
[ 0.08154296875, 0.2286376953125, 0.1246337890625, 0.2293701171875, 0.04180908203125, 0.2149658203125, 0.1416015625, 0.2529296875, 0.1356201171875, 0.10125732421875, 0.08135986328125, 0.204345703125, 0.1016845703125, 0.0797119140625, 0.1466064453125, 0.0394287109375, 0.06195068359375, ...
embed
30553022_c0
30553022
prolog
0
Title: Make a predicate reversible Problem title: Make a predicate reversible Tags: prolog Problem: Make a predicate reversible I'm new to prolog; I'm coming from a structured programming background, as will become obvious :) I am building up a prolog query that involves reversing a number; eg. reverse_num(123,X) resul...
Make a predicate reversible Make a predicate reversible prolog Make reverse_num Num Revnum number_chars Atoms Revatoms Reversed Make a predicate reversible I'm new to prolog; I'm coming from a structured programming background, as will become obvious :) I am building up a prolog query that involves reversing a number; ...
[ -0.0279541015625, 0.01806640625, 0.0189208984375, 0.0269775390625, 0.005401611328125, 0.030029296875, 0.00421142578125, 0.01397705078125, 0.00762939453125, -0.0269775390625, -0.0023651123046875, 0.0019683837890625, -0.0025787353515625, 0.01043701171875, 0.00396728515625, 0.011474609375...
[ 26176, 1653, 2063, 67, 39531, 55356, 10, 502, 4867, 184, 2606, 52782, 80893, 14012, 9254, 69728, 853, 2107, 28016, 7864, 297, 3525, 45646, 56037, 76615, 33976, 41, 1294, 6953, 48636, 1542, 50339, 1193, 2203, 103705, 25632, 80934, 4734, 4324...
[ 0.0965576171875, 0.191650390625, 0.2203369140625, 0.09912109375, 0.265869140625, 0.2423095703125, 0.033050537109375, 0.1402587890625, 0.194091796875, 0.19189453125, 0.2354736328125, 0.162353515625, 0.1466064453125, 0.14404296875, 0.1395263671875, 0.154296875, 0.1051025390625, 0.093...
embed
46995550_c0
46995550
prolog
0
Title: How to write the evaluation of a big factorial to a file in Prolog? Problem title: How to write the evaluation of a big factorial to a file in Prolog? Tags: swi-prolog, bignum, prolog-toplevel, prolog Problem: How to write the evaluation of a big factorial to a file in Prolog? I am trying to export the evaluatio...
How to write the evaluation of a big factorial to a file in Prolog? How to write the evaluation of a big factorial to a file in Prolog? swi-prolog bignum prolog-toplevel prolog How Prolog FX1 Factorial.txt Stream ERROR How to write the evaluation of a big factorial to a file in Prolog? I am trying to export the evaluat...
[ 0.0247802734375, -0.003814697265625, 0.00958251953125, 0.0003986358642578125, 0.0017852783203125, -0.0111083984375, 0.01141357421875, -0.00909423828125, -0.0125732421875, 0.007080078125, 0.0034332275390625, 0.0002498626708984375, -0.01019287109375, -0.0069580078125, 0.0185546875, -0.00...
[ 11249, 47, 33022, 70, 219836, 6957, 31461, 15403, 11435, 1250, 4867, 23, 2452, 3454, 2606, 502, 13784, 67919, 76175, 418, 117969, 124326, 115061, 151206, 24638, 111, 31577, 31255, 2101, 9508, 9969, 1340, 1528, 4997, 109921, 903, 50491, 43240,...
[ 0.05645751953125, 0.1270751953125, 0.197265625, 0.07305908203125, 0.22900390625, 0.140625, 0.1922607421875, 0.194580078125, 0.2086181640625, 0.154052734375, 0.22802734375, 0.0269317626953125, 0.109375, 0.10662841796875, 0.159423828125, 0.07464599609375, 0.007232666015625, 0.1083984...
embed
68711882_c0
68711882
prolog
0
Title: Prolog: P-12: Ninety-Nine Prolog Problems (Modified) Problem title: Prolog: P-12: Ninety-Nine Prolog Problems (Modified) Tags: prolog, list Problem: Prolog: P-12: Ninety-Nine Prolog Problems (Modified) I am trying to decode a specific list with two different elements, either e.g. [4, a] or just b I expect decode...
Prolog: P-12: Ninety-Nine Prolog Problems (Modified) Prolog: P-12: Ninety-Nine Prolog Problems (Modified) prolog list Prolog P-12 Ninety-Nine Problems Modified create_list is_list Prolog: P-12: Ninety-Nine Prolog Problems (Modified) I am trying to decode a specific list with two different elements, either e.g. [4, a] o...
[ 0.006622314453125, 0.0242919921875, 0.016357421875, 0.0284423828125, -0.00037384033203125, 0.014892578125, -0.01556396484375, 0.00156402587890625, 0.037353515625, -0.001800537109375, 0.004364013671875, -0.036865234375, 0.0035247802734375, 0.007781982421875, 0.005523681640625, 0.0047302...
[ 1250, 4867, 436, 9955, 12, 56740, 36743, 839, 1212, 15649, 91616, 47314, 502, 5303, 16269, 28282, 6562, 83, 87, 31577, 8, 40899, 29458, 678, 6626, 12921, 80854, 617, 707, 1660, 876, 41206, 1193, 16750, 3934, 238, 155370, 4734, 98320, 3034...
[ 0.13623046875, 0.197509765625, 0.077880859375, 0.226318359375, 0.0167999267578125, 0.095458984375, 0.0865478515625, 0.1729736328125, 0.1282958984375, 0.183349609375, 0.10076904296875, 0.068359375, 0.08447265625, 0.2335205078125, 0.1195068359375, 0.19287109375, 0.24951171875, 0.1573...
embed
65354457_c0
65354457
prolog
0
Title: Pure append/3 for mode (-,+,+) that wouldn&#x27;t leave a Choice Point Problem title: Pure append/3 for mode (-,+,+) that wouldn&#x27;t leave a Choice Point Tags: prolog, append Problem: Pure append/3 for mode (-,+,+) that wouldn't leave a Choice Point The usually append/3 is pure, but it leaves a choice point f...
Pure append/3 for mode (-,+,+) that wouldn&#x27;t leave a Choice Point Pure append/3 for mode (-,+,+) that wouldn&#x27;t leave a Choice Point prolog append Pure Choice Point append2 Pure append/3 for mode (-,+,+) that wouldn't leave a Choice Point The usually append/3 is pure, but it leaves a choice point for mode (-,+...
[ -0.017822265625, 0.02783203125, 0.0172119140625, -0.00015735626220703125, -0.01263427734375, 0.0284423828125, 0.00127410888671875, 0.026123046875, 0.0439453125, -0.01123046875, 0.0179443359375, -0.0106201171875, -0.01531982421875, 0.00152587890625, 0.0177001953125, 0.01202392578125, ...
[ 118233, 114689, 71, 18113, 100, 13736, 9, 1328, 102817, 68746, 3768, 18, 31358, 181948, 41097, 502, 4867, 304, 56104, 83, 34166, 1284, 44126, 6275, 70, 13, 10, 159, 38969, 10752, 64600, 105876, 74, 75060, 98320, 903, 29806, 71864, 3525, 1...
[ 0.2098388671875, 0.1961669921875, 0.133544921875, 0.268798828125, 0.021087646484375, 0.162353515625, 0.069580078125, 0.1175537109375, 0.1837158203125, 0.02813720703125, 0.042755126953125, 0.05596923828125, 0.15283203125, 0.1580810546875, 0.127685546875, 0.09613037109375, 0.1739501953...
embed
77738965_c0
77738965
prolog
0
Title: Find all subsequences of a list that cover the whole list in prolog Problem title: Find all subsequences of a list that cover the whole list in prolog Tags: prolog, swi-prolog Problem: Find all subsequences of a list that cover the whole list in prolog I have a prolog assignmment that I am not able to solve corr...
Find all subsequences of a list that cover the whole list in prolog Find all subsequences of a list that cover the whole list in prolog prolog swi-prolog Find all_splits Find all subsequences of a list that cover the whole list in prolog I have a prolog assignmment that I am not able to solve correctly. The goal is to ...
[ 0.01300048828125, 0.0081787109375, -0.002105712890625, 0.0179443359375, -0.0157470703125, 0.0093994140625, 0.00189971923828125, 0.0137939453125, 0.017578125, -0.0218505859375, 0.007293701171875, 0.0135498046875, -0.002777099609375, 0.0235595703125, -0.000579833984375, 0.0272216796875, ...
[ 26040, 756, 1614, 184, 26513, 5170, 5303, 450, 29256, 28271, 502, 4867, 23, 2452, 3454, 26026, 933, 95486, 19048, 86869, 69236, 7413, 7722, 25842, 50339, 4358, 18151, 2060, 27489, 1284, 959, 111 ]
[ 0.1134033203125, 0.14404296875, 0.173828125, 0.155517578125, 0.1766357421875, 0.07342529296875, 0.172607421875, 0.019744873046875, 0.1671142578125, 0.128662109375, 0.141845703125, 0.1981201171875, 0.01666259765625, 0.1376953125, 0.1207275390625, 0.164306640625, 0.0904541015625, 0.0...
embed
3351679_c0
3351679
prolog
0
Title: Multiway tree construction from a node string Problem title: Multiway tree construction from a node string Tags: prolog, multiway-tree, algorithm Problem: Multiway tree construction from a node string There is a wonderful problem set called Ninety-Nine Prolog Problems . Problem P70 is the one referred to in the ...
Multiway tree construction from a node string Multiway tree construction from a node string prolog multiway-tree algorithm a Multiway atom_chars tree_d forest_d F-F F1-F3 F1-F2 F2-F3 Multiway tree construction from a node string There is a wonderful problem set called Ninety-Nine Prolog Problems . Problem P70 is the on...
[ 0.01043701171875, 0.00946044921875, -0.0206298828125, 0.0157470703125, -0.002777099609375, 0.01043701171875, -0.01904296875, -0.0281982421875, 0.000972747802734375, -0.037353515625, 0.009033203125, -0.02490234375, -0.0029144287109375, 0.01043701171875, -0.000659942626953125, -0.0053710...
[ 19335, 7514, 53201, 50961, 1295, 110, 112, 79315, 502, 4867, 6024, 62600, 234873, 34627, 9254, 71, 100, 525, 563, 919, 20268, 363, 58867, 2967, 5423, 56740, 36743, 839, 1212, 1250, 15649, 7, 436, 5757, 15005, 44759, 3688, 6782, 29806, 111...
[ 0.1376953125, 0.253662109375, 0.2115478515625, 0.130126953125, 0.044708251953125, 0.155517578125, 0.1331787109375, 0.2208251953125, 0.1497802734375, 0.2337646484375, 0.1630859375, 0.219970703125, 0.1605224609375, 0.1517333984375, 0.1484375, 0.019287109375, 0.041107177734375, 0.0467...
embed
30907194_c0
30907194
prolog
0
Title: P# not working on Visual Studio Problem title: P# not working on Visual Studio Tags: visual-studio, prolog, c%23 Problem: P# not working on Visual Studio This is my code on my C# main class. PrologInterface pInterface = new PrologInterface(); Term R = SymbolTerm.MakeSymbol("7"); Predicate pred = new Es_Mayor_1(R...
P# not working on Visual Studio P# not working on Visual Studio visual-studio prolog c%23 JJC.Psharp.Lang.PrologException Visual Studio PrologInterface Term SymbolTerm.MakeSymbol Predicate Es_Mayor_1 ReturnCs pInterface.SetPredicate pInterface.Call Psharp.dll P# not working on Visual Studio This is my code on my C# mai...
[ -0.00025177001953125, 0.0311279296875, 0.02490234375, 0.000118255615234375, 0.006927490234375, 0.0157470703125, -0.00946044921875, -0.0172119140625, -0.004241943359375, -0.03857421875, 0.0067138671875, 0.0208740234375, -0.004547119140625, -0.0152587890625, 0.01806640625, -0.00793457031...
[ 436, 4904, 959, 20697, 98, 73372, 22968, 21176, 52629, 502, 4867, 3742, 821, 130542, 89280, 254, 449, 10752, 63928, 1250, 44851, 2994, 131899, 35484, 76978, 65183, 36846, 7145, 2063, 1184, 82419, 748, 115187, 173340, 40404, 19273, 18601, 5584...
[ 0.11767578125, 0.23291015625, 0.08746337890625, 0.186279296875, 0.1141357421875, 0.212890625, 0.2232666015625, 0.1510009765625, 0.1793212890625, 0.1298828125, 0.2322998046875, 0.0958251953125, 0.032135009765625, 0.0848388671875, 0.1240234375, 0.1109619140625, 0.049407958984375, 0.1...
embed
61080309_c0
61080309
prolog
0
Title: How can I increase the performance of the program? Problem title: How can I increase the performance of the program? Tags: prolog, performance Problem: How can I increase the performance of the program? I write a Prolog program for solving cryptarithms but the running time is not so low. How can I improve the ru...
How can I increase the performance of the program? How can I increase the performance of the program? prolog performance How Tail all_different List Num HDigit WordList Tail1 Tail2 Word3 Num1 Num2 Num3 Sum How can I increase the performance of the program? I write a Prolog program for solving cryptarithms but the runni...
[ -0.000652313232421875, -0.01287841796875, 0.01171875, 0.0126953125, -0.015625, 0.0011138916015625, -0.030517578125, 0.01239013671875, -0.007659912109375, -0.03857421875, 0.031494140625, 0.00982666015625, 0.004547119140625, 0.006561279296875, -0.003173828125, -0.00311279296875, -0.000...
[ 11249, 831, 87, 51312, 70, 23718, 1528, 502, 4867, 1218, 379, 756, 238778, 32036, 52782, 4732, 8452, 18, 22543, 154663, 304, 363, 36335, 111, 33022, 1250, 3115, 136791, 8962, 51042, 1733, 27226, 52295, 15490, 17368, 35773 ]
[ 0.083984375, 0.08038330078125, 0.0447998046875, 0.2047119140625, 0.029937744140625, 0.2283935546875, 0.1531982421875, 0.1387939453125, 0.2286376953125, 0.137939453125, 0.1583251953125, 0.05291748046875, 0.170166015625, 0.1429443359375, 0.119384765625, 0.042266845703125, 0.04306030273...
embed
53072961_c0
53072961
prolog
0
Title: Exact operations to get multiple solutions in SWI-Prolog Problem title: Exact operations to get multiple solutions in SWI-Prolog Tags: prolog Problem: Exact operations to get multiple solutions in SWI-Prolog Extending this question, what key presses are necessary to produce multiple solutions for SWI-Prolog? Tes...
Exact operations to get multiple solutions in SWI-Prolog Exact operations to get multiple solutions in SWI-Prolog prolog Exact SWI-Prolog Exact operations to get multiple solutions in SWI-Prolog Extending this question, what key presses are necessary to produce multiple solutions for SWI-Prolog? Test code: Attempted in...
[ -0.007568359375, 0.0218505859375, 0.0135498046875, 0.0198974609375, -0.0181884765625, -0.0034637451171875, -0.0037078857421875, 0.0022735595703125, -0.0003986358642578125, -0.0113525390625, 0.0208740234375, 0.0079345703125, 0.001007080078125, 0.0194091796875, -0.00445556640625, 0.00439...
[ 202873, 41018, 47, 2046, 48716, 51347, 159, 38969, 10752, 4867, 7, 502, 2367, 22799, 30501, 63559, 27489, 8647, 18151, 34224, 182809, 11856, 30957, 23009, 14847, 5608, 6097, 84505, 22796, 65421, 103391, 76199, 64457, 72134, 3525, 41, 1294 ]
[ 0.237060546875, 0.189453125, 0.02276611328125, 0.075927734375, 0.2218017578125, 0.20947265625, 0.0601806640625, 0.231689453125, 0.117431640625, 0.20458984375, 0.07037353515625, 0.10162353515625, 0.033355712890625, 0.21044921875, 0.2347412109375, 0.1456298828125, 0.1309814453125, 0....
embed
15381756_c0
15381756
prolog
0
Title: String Manipulation using SWI-Prolog Problem title: String Manipulation using SWI-Prolog Tags: prolog Problem: String Manipulation using SWI-Prolog I am trying to create a prolog program that accept input "i love you" as a string and then output "i love you" "i love yo" "i love y" "i love " "i love" "i lov" "i l...
String Manipulation using SWI-Prolog String Manipulation using SWI-Prolog prolog SWI-Prolog Manipulation String Manipulation using SWI-Prolog I am trying to create a prolog program that accept input "i love you" as a string and then output I am currently using SWI-Prolog, and the code I have is the following. I use the...
[ 0.0159912109375, 0.01300048828125, -0.00457763671875, 0.0208740234375, -0.02001953125, 0.004058837890625, 0.0001773834228515625, -0.00262451171875, 0.004852294921875, -0.0244140625, 0.01324462890625, 0.00127410888671875, -0.0145263671875, -0.0079345703125, 0.0106201171875, 0.0037231445...
[ 23351, 214, 221169, 2320, 17368, 159, 38969, 9, 10752, 4867, 502, 31577, 28282, 1528, 26946, 107730, 14, 5161, 398, 237, 79315, 140992, 82424, 18151, 765, 25632, 4527, 71924, 705, 100, 5584, 98102, 5425, 1542, 434, 18781, 420, 3949, 139392,...
[ 0.2247314453125, 0.130859375, 0.24609375, 0.0650634765625, 0.08837890625, 0.0845947265625, 0.2509765625, 0.013336181640625, 0.1553955078125, 0.205078125, 0.146728515625, 0.057708740234375, 0.06988525390625, 0.149658203125, 0.1092529296875, 0.1263427734375, 0.1160888671875, 0.228881...
embed
64936541_c0
64936541
prolog
0
Title: Splice in sublists in a list, without using flatten/2 Problem title: Splice in sublists in a list, without using flatten/2 Tags: concatenation, flatten, prolog, list Problem: Splice in sublists in a list, without using flatten/2 I want to make one list of multiple sublists without using the flatten predicate in ...
Splice in sublists in a list, without using flatten/2 Splice in sublists in a list, without using flatten/2 concatenation flatten prolog list flatten/2 Splice Listwithinlist is_list Acc2 Splice in sublists in a list, without using flatten/2 I want to make one list of multiple sublists without using the flatten predicat...
[ -0.006866455078125, 0.0299072265625, -0.0123291015625, 0.01470947265625, -0.0272216796875, 0.025146484375, -0.00518798828125, 0.0123291015625, 0.0019073486328125, -0.01220703125, 0.01025390625, -0.00016880035400390625, -0.0019683837890625, 0.005462646484375, 0.005828857421875, 0.001190...
[ 8019, 13348, 23, 1614, 6562, 7, 5303, 15490, 49878, 510, 12477, 4460, 33, 502, 4867, 32036, 73, 83, 29899, 304, 3444, 3249, 1632, 48716, 17368, 1653, 2063, 1250, 18151, 140992, 2965, 58359, 16750 ]
[ 0.0794677734375, 0.2039794921875, 0.0931396484375, 0.181396484375, 0.2197265625, 0.016754150390625, 0.174560546875, 0.072509765625, 0.1470947265625, 0.1229248046875, 0.1494140625, 0.05230712890625, 0.0054931640625, 0.08135986328125, 0.1640625, 0.05975341796875, 0.039306640625, 0.03...
embed
26111250_c0
26111250
prolog
0
Title: Eliminate a X element on a list Problem title: Eliminate a X element on a list Tags: prolog Problem: Eliminate a X element on a list I have the following knowledge base eliminate(X,[X|T],T). eliminate(X,[H|T],[H|T2]) :- eliminate(X,T,T2). And I have to make the running process of an example by myself, without th...
Eliminate a X element on a list Eliminate a X element on a list prolog Eliminate Eliminate a X element on a list I have the following knowledge base And I have to make the running process of an example by myself, without the interpreter (like a tree). For example, if I post the query: eliminate(3,[1,2,3,4,5],Y) . First...
[ 0.02001953125, 0.0181884765625, 0.01336669921875, 0.0216064453125, -0.00823974609375, 0.006622314453125, -0.002838134765625, 0.0198974609375, 0.0196533203125, -0.01123046875, -0.006622314453125, -0.00067138671875, -0.00921630859375, -0.00078582763671875, 0.00029754638671875, 0.00976562...
[ 203358, 67, 1193, 12830, 98, 5303, 10, 502, 4867, 25632, 51359, 3647, 51042, 9433, 27781, 35978, 29481, 53201, 1305, 70, 41, 1294, 27169, 86827, 133063, 363, 80389, 1723, 15824, 51, 65256, 13, 76067, 136, 678, 17932, 9790, 40383, 106, 831...
[ 0.24072265625, 0.1314697265625, 0.21923828125, 0.231201171875, 0.1119384765625, 0.2052001953125, 0.03497314453125, 0.1317138671875, 0.1536865234375, 0.0074462890625, 0.0423583984375, 0.047637939453125, 0.06756591796875, 0.0504150390625, 0.167724609375, 0.02825927734375, 0.08911132812...
embed
1098542_c0
1098542
prolog
0
Title: PROLOG rule returns only first match Problem title: PROLOG rule returns only first match Tags: prolog Problem: PROLOG rule returns only first match I'm trying to implement a findall predicate in Prolog (yes I know it's built in, this is for an assignment). It is written as follows: my_findall(N,P,Pred,L) :- Pred...
PROLOG rule returns only first match PROLOG rule returns only first match prolog PROLOG my_findall Pred PROLOG rule returns only first match I'm trying to implement a findall predicate in Prolog (yes I know it's built in, this is for an assignment). It is written as follows: For some reason it only gives me the first s...
[ 0.003997802734375, 0.005035400390625, 0.009765625, 0.010009765625, -0.010498046875, 0.0169677734375, 0.00762939453125, 0.0098876953125, 0.002166748046875, -0.05078125, 0.0181884765625, -0.00128173828125, 0.00439453125, -0.01220703125, 0.031494140625, 0.0198974609375, -0.0010223388671...
[ 10514, 47510, 79986, 30646, 4734, 5117, 14858, 502, 4867, 759, 111607, 5584, 7145, 31577, 29479, 7413, 1653, 2063, 67, 1250, 88303, 95486, 59121, 76199, 29806, 7279, 2685, 17932, 11782, 47, 35782, 4420, 125728, 214, 191619, 645, 756, 7722, ...
[ 0.2039794921875, 0.2498779296875, 0.2091064453125, 0.202392578125, 0.1373291015625, 0.1956787109375, 0.2247314453125, 0.1328125, 0.2373046875, 0.1099853515625, 0.1409912109375, 0.2034912109375, 0.2265625, 0.01019287109375, 0.091064453125, 0.1510009765625, 0.1611328125, 0.1710205078...
embed
37690897_c1
37690897
prolog
1
:- possibleKnightMove(X, Y, NewX, NewY), NewX > 0, NewX =< Rows, NewY > 0, NewY =< Columns, \+ member([NewX,NewY], Visited). possible_moves_count(Rows, Columns, X, Y, Visited, Count) :- findall(_, possible_knight_moves(Rows, Columns, X, Y, Visited, _NewX, _NewY), Moves), length(Moves, Count). warnsdorff(Rows, Columns,...
:- possibleKnightMove(X, Y, NewX, NewY), NewX > 0, NewX =< Rows, NewY > 0, NewY =< Columns, \+ member([NewX,NewY], Visited). possible_moves_count(Rows, Columns, X, Y, Visited, Count) :- findall(_, possible_knight_moves(Rows, Columns, X, Y, Visited, _NewX, _NewY), Moves), length(Moves, Count). warnsdorff(Rows, Columns,...
[ -0.01019287109375, 0.0107421875, 0.01904296875, -0.0026702880859375, -0.0106201171875, 0.01300048828125, -0.0081787109375, -0.0079345703125, 0.01123046875, -0.0181884765625, -0.01129150390625, -0.00183868408203125, -0.01190185546875, 0.0098876953125, -0.0169677734375, -0.0074462890625,...
[ 15772, 7722, 605, 54350, 9083, 272, 1542, 990, 2356, 1723, 977, 757, 16093, 96190, 233987, 1328, 32786, 46568, 98684, 432, 3132, 71013, 12724, 19725, 1193, 108210, 7413, 5584, 92, 135828, 140909, 1631, 19, 133097, 420, 168071, 14012, 25813, ...
[ 0.0264892578125, 0.2437744140625, 0.05877685546875, 0.218994140625, 0.1744384765625, 0.131591796875, 0.206787109375, 0.145751953125, 0.1817626953125, 0.1781005859375, 0.01025390625, 0.0960693359375, 0.010162353515625, 0.14697265625, 0.1392822265625, 0.0634765625, 0.128662109375, 0....
embed
4769028_c0
4769028
prolog
0
Title: Binary tree inorder traversal using Prolog Problem title: Binary tree inorder traversal using Prolog Tags: prolog Problem: Binary tree inorder traversal using Prolog I am trying to implement an inorder traversal which in every stage I'll get the current node. For example: ?- getnodesinorder(tree(1,nil,nil),X). X...
Binary tree inorder traversal using Prolog Binary tree inorder traversal using Prolog prolog Prolog Binary CurrentNode Left Right Binary tree inorder traversal using Prolog I am trying to implement an inorder traversal which in every stage I'll get the current node. For example: I've tried the next code: So of course t...
[ 0.0164794921875, -0.00909423828125, 0.019287109375, -0.004608154296875, 0.01611328125, 0.015869140625, -0.019775390625, -0.005767822265625, 0.0025177001953125, -0.0634765625, 0.0014190673828125, -0.014404296875, -0.0208740234375, -0.01275634765625, 0.019775390625, 0.013427734375, 0.0...
[ 54092, 1294, 53201, 23, 80596, 37317, 289, 17368, 1250, 4867, 502, 114063, 5021, 112, 2480, 90911, 31577, 29479, 11907, 36541, 2046, 43581, 110, 37842, 11737, 18151, 3647, 271, 27781, 43240, 1284, 3229, 11675, 116, 2208, 16750, 44084 ]
[ 0.15234375, 0.036376953125, 0.186767578125, 0.08245849609375, 0.1968994140625, 0.1407470703125, 0.0621337890625, 0.028106689453125, 0.1497802734375, 0.20947265625, 0.108642578125, 0.129638671875, 0.1173095703125, 0.1104736328125, 0.032958984375, 0.0770263671875, 0.07281494140625, 0...
embed
62610291_c1
62610291
prolog
1
riesling, white, _). %vlees dish_wine_score(beef, Wine, 1) :- wine_color_body(Wine, _ , red, _). dish_wine_score(beef, Wine, 0) :- wine_color_body(Wine, _ , white, _). dish_wine_score(kalfsvlees, Wine, 1) :- wine_color_body(Wine, _ , red, _). %saus dish_wine_score(rode_wijn_saus, Wine, 1) :- wine_color_body(Wine, _ , ...
riesling, white, _). %vlees dish_wine_score(beef, Wine, 1) :- wine_color_body(Wine, _ , red, _). dish_wine_score(beef, Wine, 0) :- wine_color_body(Wine, _ , white, _). dish_wine_score(kalfsvlees, Wine, 1) :- wine_color_body(Wine, _ , red, _). %saus dish_wine_score(rode_wijn_saus, Wine, 1) :- wine_color_body(Wine, _ , ...
[ -0.02197265625, -0.00176239013671875, 0.00086212158203125, 0.0205078125, -0.023681640625, 0.010498046875, -0.0179443359375, -0.004058837890625, 0.004913330078125, 0.0093994140625, 0.016357421875, 0.04345703125, 0.01312255859375, 0.00885009765625, 0.0023193359375, -0.00775146484375, -...
[ 6, 10484, 2069, 4, 35011, 101, 194, 1745, 47217, 90, 45, 1495, 9494, 13, 7, 30854, 132, 372, 4240, 120634, 4879, 15772, 108069, 46133, 37873, 92049, 4842, 757, 2595, 17447, 6287, 516, 112, 32674, 19, 22729, 8407, 4574, 139108, 3794, 114...
[ 0.0253448486328125, 0.21630859375, 0.262451171875, 0.022705078125, 0.18896484375, 0.03363037109375, 0.052520751953125, 0.08740234375, 0.207275390625, 0.1441650390625, 0.1263427734375, 0.143798828125, 0.254638671875, 0.1422119140625, 0.142333984375, 0.236083984375, 0.008819580078125, ...
embed
56116344_c0
56116344
prolog
0
Title: Find first sublist that has all numbers from 1 to K Problem title: Find first sublist that has all numbers from 1 to K Tags: prolog Problem: Find first sublist that has all numbers from 1 to K I need to find the first sublist having all numbers from 1 to K and return it and its length. Sorry in advance for the b...
Find first sublist that has all numbers from 1 to K Find first sublist that has all numbers from 1 to K prolog 1 Find NumList SubList NumList1 SubList1 SubString Find first sublist that has all numbers from 1 to K I need to find the first sublist having all numbers from 1 to K and return it and its length. Sorry in adv...
[ 0.00970458984375, 0.0068359375, -0.0029754638671875, -0.00762939453125, -0.00421142578125, 0.01141357421875, 0.0012054443359375, 0.0260009765625, 0.0252685546875, -0.0234375, 0.00384521484375, -0.0017547607421875, 0.00872802734375, 0.0125732421875, 0.01275634765625, 0.007354736328125, ...
[ 26040, 5117, 1614, 6562, 1556, 756, 101935, 1295, 106, 47, 341, 502, 4867, 52782, 154663, 8273, 418, 71713, 3871, 7413, 19441, 30646, 140909, 12765, 83, 23, 959, 154109, 12830, 841, 71, 16750, 96472, 195625, 11782, 32354, 46741, 32036, 1330...
[ 0.1226806640625, 0.1611328125, 0.25341796875, 0.26611328125, 0.048858642578125, 0.1197509765625, 0.17724609375, 0.057159423828125, 0.1224365234375, 0.153076171875, 0.1920166015625, 0.0994873046875, 0.1153564453125, 0.18798828125, 0.2315673828125, 0.246337890625, 0.0640869140625, 0....
embed
70145780_c0
70145780
prolog
0
Title: Constraint Handling Rules in SWI Prolog: The `neq` constraint doesn&#x27;t work Problem title: Constraint Handling Rules in SWI Prolog: The `neq` constraint doesn&#x27;t work Tags: constraint-handling-rules, prolog, swi-prolog Problem: Constraint Handling Rules in SWI Prolog: The `neq` constraint doesn't work I ...
Constraint Handling Rules in SWI Prolog: The `neq` constraint doesn&#x27;t work Constraint Handling Rules in SWI Prolog: The `neq` constraint doesn&#x27;t work constraint-handling-rules prolog swi-prolog Constraint Handling Rules SWI Prolog use_module chr_constraint Constraint Handling Rules in SWI Prolog: The `neq` co...
[ -0.00122833251953125, 0.0179443359375, 0.025146484375, 0.01409912109375, 0.011962890625, -0.00640869140625, -0.0024261474609375, -0.018310546875, 0.005615234375, -0.0245361328125, -0.00921630859375, 0.00144195556640625, -0.00121307373046875, 0.02197265625, 0.01214599609375, 0.006591796...
[ 1657, 2816, 4288, 193237, 139118, 159, 38969, 1250, 4867, 86, 864, 158, 22027, 18, 4488, 54885, 13500, 502, 2452, 3454, 83279, 17656, 2271, 52080, 29562, 57143, 7864, 183447, 10752, 27958, 27781, 29479, 360, 13, 161789, 442, 14602, 959, 237...
[ 0.05560302734375, 0.2122802734375, 0.1275634765625, 0.2008056640625, 0.1510009765625, 0.029693603515625, 0.2049560546875, 0.123779296875, 0.16748046875, 0.11376953125, 0.2103271484375, 0.0977783203125, 0.06707763671875, 0.06597900390625, 0.1328125, 0.1766357421875, 0.093505859375, ...
embed
14095197_c1
14095197
prolog
1
NA,Y),X is X1 + Y,nb_stations([SS|Tr],X). nb_stations([S,Li,Dir,SS|Tr],X):-num_stations(S,Li,_,_,Dir2,ND),!, num_stations(SS,Li,_,_,Dir2,NA),!, Dir=Dir2,!,calculer(ND,NA,Y),X is X1 + Y,nb_stations([SS|Tr],X). calculer(ND,NA,X):-X is ND - NA. More Details : When you call nb_stations, you have to inform a path in a List,...
NA,Y),X is X1 + Y,nb_stations([SS|Tr],X). nb_stations([S,Li,Dir,SS|Tr],X):-num_stations(S,Li,_,_,Dir2,ND),!, num_stations(SS,Li,_,_,Dir2,NA),!, Dir=Dir2,!,calculer(ND,NA,Y),X is X1 + Y,nb_stations([SS|Tr],X). calculer(ND,NA,X):-X is ND - NA. More Details : When you call nb_stations, you have to inform a path in a List,...
[ 0.00118255615234375, 0.0028839111328125, 0.00074005126953125, -0.008544921875, 0.01251220703125, 0.004364013671875, 0.003448486328125, 0.00567626953125, 0.03662109375, -0.054931640625, -0.017578125, -0.0054931640625, -0.005279541015625, 0.01019287109375, 0, -0.001129150390625, 0.0061...
[ 3076, 1723, 1542, 83, 1193, 418, 997, 990, 19, 275, 454, 41311, 15268, 55487, 653, 294, 9506, 481, 2606, 304, 25013, 38, 13269, 6691, 19946, 6827, 8972, 44805, 56, 64633, 77658, 14847, 11782, 765, 8180, 60875, 23, 32036, 678, 8, 2500, ...
[ 0.2039794921875, 0.0865478515625, 0.12255859375, 0.07830810546875, 0.04730224609375, 0.048553466796875, 0.1392822265625, 0.11181640625, 0.07574462890625, 0.1824951171875, 0.094482421875, 0.240478515625, 0.10687255859375, 0.05718994140625, 0.1114501953125, 0.0291748046875, 0.063720703...
embed
17837467_c0
17837467
prolog
0
Title: how to consult file as a module in jpl Problem title: how to consult file as a module in jpl Tags: swi-prolog, java, jpl, prolog Problem: how to consult file as a module in jpl I am trying to consult Prolog file as a module, since jpl does not support multiple prolog vms. In swipl console, I can do something lik...
how to consult file as a module in jpl how to consult file as a module in jpl swi-prolog java jpl prolog PrologException jpl._ mod1 load.pro Query Array Term Atom load.pl q.query mod1:data jpl.PrologExcepion existence_error source_sink jpl.Query.get1 Query.java:336 jpl.Query.hasMoreSolutions Query.java:258 jpl.Query.on...
[ 0.02685546875, -0.00145721435546875, -0.00677490234375, 0.01092529296875, -0.016357421875, -0.00225830078125, 0.01104736328125, 0.005889892578125, -0.007293701171875, -0.064453125, 0.00830078125, 0.005462646484375, -0.00115966796875, -0.046875, 0, -0.01171875, 0.00069427490234375, ...
[ 3642, 47, 75463, 11435, 237, 10, 88996, 23, 1647, 2424, 2452, 3454, 4867, 79, 330, 502, 1250, 19279, 63928, 2811, 418, 72367, 58836, 69253, 2994, 69728, 8096, 944, 10135, 10752, 80381, 116311, 188800, 31344, 14068, 41732, 24071, 122880, 102...
[ 0.050079345703125, 0.04547119140625, 0.281494140625, 0.2327880859375, 0.1495361328125, 0.02301025390625, 0.2392578125, 0.0794677734375, 0.11083984375, 0.2296142578125, 0.1373291015625, 0.1253662109375, 0.2271728515625, 0.0989990234375, 0.1495361328125, 0.1243896484375, 0.141845703125...
embed
19550966_c0
19550966
prolog
0
Title: Prolog reading the table in txt Problem title: Prolog reading the table in txt Tags: prolog, file-io Problem: Prolog reading the table in txt I am having a problem of reading a text file that contains this information: T11, R1, 6:00-18:00 T12, R1, 6:00-18:00 T13, R1, 18:00-6:00 For now I have a prolog code for r...
Prolog reading the table in txt Prolog reading the table in txt prolog file-io Prolog Total Rows_list atomic_list_concat taxi.txt Str read_file Lines Stream at_end_of_stream Prolog reading the table in txt I am having a problem of reading a text file that contains this information: T11, R1, 6:00-18:00 T12, R1, 6:00-18:...
[ 0.023681640625, -0.0225830078125, 0.01544189453125, 0.016845703125, -0.007659912109375, -0.01483154296875, 0.01373291015625, 0.007537841796875, -0.00384521484375, -0.0299072265625, -0.0031280517578125, -0.0091552734375, -0.0272216796875, 0.00182342529296875, 0.0093994140625, 0.00341796...
[ 1250, 4867, 16454, 23180, 23, 124326, 502, 11435, 846, 33867, 96190, 6562, 34627, 2271, 4460, 39856, 23351, 12301, 29822, 16777, 115061, 3611, 86429, 2967, 7986, 70541, 4677, 384, 1662, 627, 418, 305, 9444, 1530, 4, 2681, 34216, 13545, 1815...
[ 0.1712646484375, 0.2259521484375, 0.18212890625, 0.235107421875, 0.024627685546875, 0.25732421875, 0.1424560546875, 0.135498046875, 0.1419677734375, 0.085205078125, 0.1739501953125, 0.1551513671875, 0.112060546875, 0.0369873046875, 0.1265869140625, 0.2197265625, 0.044921875, 0.1064...
embed
20035673_c0
20035673
prolog
0
Title: PROLOG (How to postorder a multiway tree ) Problem title: PROLOG (How to postorder a multiway tree ) Tags: dcg, multiway-tree, postorder, prolog Problem: PROLOG (How to postorder a multiway tree ) I'm struggling with a Prolog homework like below, Prolog uses general trees, not binary trees. An example is a(b,c,d...
PROLOG (How to postorder a multiway tree ) PROLOG (How to postorder a multiway tree ) dcg multiway-tree postorder prolog PROLOG How Thus Write Hint Sample PROLOG (How to postorder a multiway tree ) I'm struggling with a Prolog homework like below, Prolog uses general trees, not binary trees. An example is Any help of t...
[ 0.03857421875, 0.0038909912109375, 0.01611328125, -0.00689697265625, 0.0037078857421875, 0.01483154296875, -0.022216796875, -0.008544921875, -0.00732421875, -0.051025390625, -0.003936767578125, -0.0203857421875, -0.0032196044921875, -0.00885009765625, -0.0096435546875, 0.01092529296875...
[ 10514, 47510, 81826, 1305, 80596, 6024, 7514, 53201, 177, 62600, 502, 4867, 11249, 12613, 601, 18781, 19895, 18, 947, 33209, 47, 237875, 1250, 5368, 18244, 35064, 4527, 4537, 1360, 2394, 6635, 27781, 4358, 104192, 77947 ]
[ 0.1541748046875, 0.254638671875, 0.07354736328125, 0.1746826171875, 0.280517578125, 0.1611328125, 0.211669921875, 0.2318115234375, 0.0780029296875, 0.1640625, 0.096923828125, 0.2493896484375, 0.00726318359375, 0.0196990966796875, 0.012725830078125, 0.07415771484375, 0.1605224609375, ...
embed
29888420_c1
29888420
prolog
1
. 1.3 Remove (comment out) the facts that are not essential (have been covered by the new rules is_male/1 and is_female/1) you have added to the database. So I added this /* Database for family. It consists of facts and rules. */ /* Facts */ female(ella). female(jodi). female(sonya). male(arnold). male(chris). male(lou...
. 1.3 Remove (comment out) the facts that are not essential (have been covered by the new rules is_male/1 and is_female/1) you have added to the database. So I added this /* Database for family. It consists of facts and rules. */ /* Facts */ female(ella). female(jodi). female(sonya). male(arnold). male(chris). male(lou...
[ 0.01904296875, 0.0157470703125, 0.0062255859375, 0.038818359375, -0.016845703125, 0.0283203125, -0.005645751953125, -0.01092529296875, 0.00823974609375, -0.0252685546875, -0.005615234375, -0.0185546875, -0.0096435546875, -0.0118408203125, 0.00836181640625, 0.00001990795135498047, 0.0...
[ 5, 41491, 181139, 277, 674, 1810, 70, 15824, 7, 450, 621, 959, 85590, 68991, 127918, 3525, 91736, 83, 49100, 11583, 136, 2242, 16, 49814, 63399, 903, 1639, 187781, 100, 14449, 58055, 132640, 117776, 4523, 513, 428, 991, 273, 11280, 147, ...
[ 0.064208984375, 0.194580078125, 0.2081298828125, 0.0268707275390625, 0.140380859375, 0.2037353515625, 0.03912353515625, 0.168701171875, 0.121826171875, 0.058319091796875, 0.09222412109375, 0.1341552734375, 0.1904296875, 0.02850341796875, 0.1409912109375, 0.080078125, 0.167236328125, ...
embed
61432628_c1
61432628
prolog
1
:- family(X, _, _). wife(X) :- family(_, X, _). child(X) :- family(_, _, Children), member(X, Children). exists(Person) :- husband(Person); wife(Person); child(Person). dateofbirth(person(_, _, Date, _), Date). salary(person(_, _, _, works(_, S) ), S). % Salary of working person salary(person(_, _, _, unemployed), 0)....
:- family(X, _, _). wife(X) :- family(_, X, _). child(X) :- family(_, _, Children), member(X, Children). exists(Person) :- husband(Person); wife(Person); child(Person). dateofbirth(person(_, _, Date, _), Date). salary(person(_, _, _, works(_, S) ), S). % Salary of working person salary(person(_, _, _, unemployed), 0)....
[ 0.0177001953125, 0.00390625, 0.00616455078125, 0.01251220703125, -0.02490234375, 0.0172119140625, -0.0211181640625, 0.00909423828125, 0.01458740234375, -0.0181884765625, -0.01416015625, -0.01031494140625, -0.01116943359375, 0.0179443359375, -0.00909423828125, -0.01177978515625, 0.015...
[ 15772, 14449, 1542, 101, 194, 58386, 1193, 29041, 91345, 32786, 32316, 160054, 71390, 3142, 5720, 30816, 4559, 43240, 159, 1745, 13294, 111, 20697, 3445, 51, 212423, 757, 1294, 759, 4488, 5036, 15757, 7, 87143, 15490, 20020, 163612, 8018, 7...
[ 0.0906982421875, 0.239013671875, 0.0667724609375, 0.0308837890625, 0.049652099609375, 0.1959228515625, 0.032958984375, 0.15673828125, 0.1552734375, 0.150390625, 0.1986083984375, 0.1080322265625, 0.132080078125, 0.01715087890625, 0.0482177734375, 0.08941650390625, 0.1475830078125, 0...
embed
16390099_c0
16390099
prolog
0
Title: toplevel: Undefined procedure Prolog Problem title: toplevel: Undefined procedure Prolog Tags: prolog, sudoku Problem: toplevel: Undefined procedure Prolog sudoku(X,Board):- Board=X, %each individual box will be a permutation of 9 different numbers permutation([A1,A2,A3,B1,B2,B3,C1,C2,C3],[1,2,3,4,5,6,7,8,9]), p...
toplevel: Undefined procedure Prolog toplevel: Undefined procedure Prolog prolog sudoku Undefined Prolog Board toplevel: Undefined procedure Prolog sudoku(X,Board):- the above is solve/2 5 ?- solve(X,Y). ERROR: toplevel: Undefined procedure: solve/2 (DWIM could not correct goal) that happened when I tried with 2 normal...
[ 0.0179443359375, 0.01165771484375, 0.0098876953125, -0.006011962890625, -0.039794921875, -0.004241943359375, -0.0263671875, 0.0023040771484375, 0.0002346038818359375, -0.0252685546875, -0.004852294921875, 0.002410888671875, 0.003814697265625, 0.007415771484375, -0.00799560546875, 0.006...
[ 2663, 67919, 79912, 5983, 297, 50491, 1250, 4867, 502, 8932, 38067, 62554, 1542, 12647, 5861, 36917, 83, 86869, 12477, 190, 705, 132, 1723, 151206, 24638, 38969, 594, 5809, 959, 26785, 69236, 73659, 37842, 678, 116, 3638, 77336, 966, 617, ...
[ 0.132080078125, 0.238525390625, 0.142822265625, 0.239013671875, 0.030609130859375, 0.2266845703125, 0.1318359375, 0.2308349609375, 0.08917236328125, 0.1207275390625, 0.213623046875, 0.1497802734375, 0.0865478515625, 0.06109619140625, 0.1519775390625, 0.15625, 0.05682373046875, 0.22...
embed
47142113_c0
47142113
prolog
0
Title: Prolog Successor Arithmetic Problem title: Prolog Successor Arithmetic Tags: successor-arithmetics, prolog Problem: Prolog Successor Arithmetic I have a knowledge base with the following: numeral(0). numeral(s(X)) :- numeral(X). numeral(X+Y) :- numeral(X), numeral(Y). add(0,X,X). add(s(X),Y,s(Z)) :- add(X,Y,Z). ...
Prolog Successor Arithmetic Prolog Successor Arithmetic successor-arithmetics prolog Prolog Successor Arithmetic add2 Prolog Successor Arithmetic I have a knowledge base with the following: which evaluates correctly queries such as: However the following query is evaluated to: But the required output is: I know the iss...
[ 0.0198974609375, 0.0037689208984375, -0.009521484375, 0.01953125, -0.00189208984375, 0.0166015625, -0.01116943359375, -0.001007080078125, 0.0174560546875, -0.0216064453125, 0.025390625, 0.00168609619140625, -0.00982666015625, -0.0196533203125, 0.021240234375, -0.0028076171875, -0.002...
[ 1250, 4867, 144053, 748, 8962, 282, 9523, 39457, 42, 41637, 502, 15190, 304, 51359, 3647, 25632, 151575, 26785, 41, 10484, 1294, 47, 4966, 56065, 140992, 83, 3714, 31089, 678, 13315, 17, 1660, 831, 18, 26366, 442, 1810, 4358, 77947 ]
[ 0.1358642578125, 0.2076416015625, 0.1827392578125, 0.122314453125, 0.09765625, 0.0819091796875, 0.038604736328125, 0.171630859375, 0.05126953125, 0.036407470703125, 0.091064453125, 0.1156005859375, 0.1273193359375, 0.08990478515625, 0.11865234375, 0.0693359375, 0.166015625, 0.09716...
embed
4839022_c0
4839022
prolog
0
Title: Help with simple prolog exercise Problem title: Help with simple prolog exercise Tags: prolog Problem: Help with simple prolog exercise I haven't been able to solve this prolog exercise. I was hoping someone here could give me some hints or post a solution. Thanks in advance. Database: lig(super, porto). lig(sup...
Help with simple prolog exercise Help with simple prolog exercise prolog Help Lista Lig Jog Help with simple prolog exercise I haven't been able to solve this prolog exercise. I was hoping someone here could give me some hints or post a solution. Thanks in advance. Database: The sample output: My procedure: My output (...
[ 0.018798828125, -0.006317138671875, -0.0186767578125, 0.0198974609375, 0.000659942626953125, 0.0013275146484375, -0.030517578125, 0.00897216796875, 0.0234375, -0.025146484375, -0.0054931640625, -0.0262451171875, 0.0011444091796875, 0.00055694580078125, -0.01025390625, -0.00018119812011...
[ 39527, 678, 8781, 502, 4867, 81979, 50085, 26724, 67671, 38246, 18, 19048, 86869, 903, 156377, 3688, 5122, 29806, 129745, 187781, 121413, 140992, 2646, 50491, 143321, 44691, 57060 ]
[ 0.1387939453125, 0.1502685546875, 0.20556640625, 0.1702880859375, 0.22314453125, 0.205078125, 0.1934814453125, 0.1759033203125, 0.2109375, 0.0400390625, 0.03192138671875, 0.05950927734375, 0.1326904296875, 0.058807373046875, 0.06549072265625, 0.008544921875, 0.053070068359375, 0.09...
embed
33722032_c0
33722032
prolog
0
Title: How can I avoid repetitions in Prolog results? Problem title: How can I avoid repetitions in Prolog results? Tags: prolog, rules Problem: How can I avoid repetitions in Prolog results? I am wrinting a program in prolog and I have the next code: isa(dumbo, smallelephant). isa(cuatropataspequeñas, extremidad). isa...
How can I avoid repetitions in Prolog results? How can I avoid repetitions in Prolog results? prolog rules How Prolog Sup Midclass Object Part How can I avoid repetitions in Prolog results? I am wrinting a program in prolog and I have the next code: With these facts and rules the result I obtain when I execute "hasPart...
[ 0.01336669921875, 0.008056640625, 0.029296875, 0.01239013671875, -0.01165771484375, -0.0164794921875, 0.002777099609375, 0.00714111328125, 0.0155029296875, -0.04345703125, -0.0198974609375, 0.0205078125, -0.01025390625, 0.005615234375, -0.002777099609375, 0.0089111328125, 0.023559570...
[ 11249, 831, 87, 71864, 57346, 5256, 23, 1250, 4867, 50339, 502, 91736, 47004, 23166, 67413, 134549, 16995, 2677, 1528, 11737, 18151, 15824, 136, 16750, 113054, 71924, 10557, 58229, 693, 7567, 1193, 4734, 3444, 2046, 808, 418, 304, 363 ]
[ 0.06390380859375, 0.06024169921875, 0.02899169921875, 0.2425537109375, 0.287841796875, 0.13623046875, 0.047088623046875, 0.1610107421875, 0.2440185546875, 0.179931640625, 0.105712890625, 0.106689453125, 0.1356201171875, 0.0792236328125, 0.1522216796875, 0.1669921875, 0.1378173828125,...
embed
5442552_c0
5442552
prolog
0
Title: How do I make this predicate work? extractedKnowledge(SourceList,ExtractedList) Problem title: How do I make this predicate work? extractedKnowledge(SourceList,ExtractedList) Tags: gnu, logic, prolog, recursion Problem: How do I make this predicate work? extractedKnowledge(SourceList,ExtractedList) I have this p...
How do I make this predicate work? extractedKnowledge(SourceList,ExtractedList) How do I make this predicate work? extractedKnowledge(SourceList,ExtractedList) gnu logic prolog recursion How SourceList ExtractedList KnowledgeList ListLength ListElement How do I make this predicate work? extractedKnowledge(SourceList,Ex...
[ 0.015869140625, -0.003387451171875, 0.0247802734375, 0.01324462890625, 0.00921630859375, 0.0115966796875, -0.0091552734375, 0.015380859375, 0.01708984375, -0.0174560546875, 0.0211181640625, -0.01104736328125, -0.01397705078125, 0.01068115234375, 0.005218505859375, 0.0106201171875, 0....
[ 11249, 54, 87, 3249, 903, 1653, 2063, 67, 4488, 125663, 297, 605, 35613, 181606, 211235, 154663, 19279, 1517, 89829, 132, 104155, 62775, 502, 4867, 195625, 1830, 77641, 31501, 191428, 32036, 449, 19929, 4, 831, 18, 48903, 2046, 47, 5608, ...
[ 0.099853515625, 0.04638671875, 0.020477294921875, 0.1239013671875, 0.1417236328125, 0.226806640625, 0.2474365234375, 0.144775390625, 0.1585693359375, 0.284423828125, 0.1358642578125, 0.0345458984375, 0.148193359375, 0.1768798828125, 0.189208984375, 0.2222900390625, 0.10467529296875, ...
embed
53231924_c0
53231924
prolog
0
Title: JPL - Java waiting for a certain solution from a prolog query Problem title: JPL - Java waiting for a certain solution from a prolog query Tags: jpl, swi-prolog, java, prolog Problem: JPL - Java waiting for a certain solution from a prolog query Im struggling to get this done. I have an User Interface in Java th...
JPL - Java waiting for a certain solution from a prolog query JPL - Java waiting for a certain solution from a prolog query jpl swi-prolog java prolog a JPL Java work_1 work_2 Here User Interface Map Term Query.allSolutions Goal sol.get str.equals JPL - Java waiting for a certain solution from a prolog query Im struggl...
[ 0.0191650390625, 0.0196533203125, -0.0011444091796875, 0.00537109375, -0.0257568359375, -0.00482177734375, -0.0108642578125, -0.006561279296875, 0.00970458984375, -0.0303955078125, 0.0235595703125, 0.0233154296875, -0.04248046875, 0.0081787109375, 0.0052490234375, 0.0262451171875, 0....
[ 821, 21130, 41925, 89289, 100, 24233, 29806, 1295, 502, 4867, 41, 1294, 1647, 2424, 2452, 3454, 79, 330, 4488, 115187, 304, 11853, 53400, 220237, 42719, 2994, 58836, 5584, 102588, 34, 2016, 289, 3115, 3794, 7704, 71723, 20, 3370, 237875, ...
[ 0.1240234375, 0.259765625, 0.239501953125, 0.204345703125, 0.1466064453125, 0.0699462890625, 0.18310546875, 0.07098388671875, 0.1441650390625, 0.233642578125, 0.1190185546875, 0.046295166015625, 0.020599365234375, 0.1826171875, 0.12890625, 0.1182861328125, 0.08782958984375, 0.04779...
embed