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
2505295_c0
2505295
prolog
0
Title: Why doesn't 'Q' unify in this PROLOG program Problem title: Why doesn't 'Q' unify in this PROLOG program Tags: prolog Problem: Why doesn't 'Q' unify in this PROLOG program I am writing a PROLOG program in which the variable of interest (Q) refuses to unify. I have gotten around this...
Why doesn't 'Q' unify in this PROLOG program Why doesn't 'Q' unify in this PROLOG program prolog Why PROLOG use_module cross_sol Why doesn't 'Q' unify in this PROLOG program I am writing a PROLOG program in which the variable of interest (Q) refuses to unify. I have gotten around this with...
[ -0.0032196044921875, 0.0281982421875, 0.0166015625, -0.0145263671875, -0.019775390625, -0.007171630859375, -0.020751953125, -0.0191650390625, 0.0174560546875, -0.0186767578125, 0.0019989013671875, -0.007232666015625, 0.01031494140625, -0.031982421875, -0.0191650390625, 0.00689697265625...
[ 44084, 22027, 3768, 18, 2737, 51, 40383, 23, 903, 10514, 47510, 1528, 502, 4867, 4527, 83279, 13, 41421, 8748, 32562, 77336, 111, 33946, 128120, 10932, 85526, 53, 29806, 217028, 33022, 63805, 3917, 26366, 77947, 4358, 18151, 39041, 110536, ...
[ 0.146240234375, 0.1165771484375, 0.05621337890625, 0.1287841796875, 0.225830078125, 0.15576171875, 0.1983642578125, 0.024993896484375, 0.0667724609375, 0.1422119140625, 0.23291015625, 0.1759033203125, 0.0928955078125, 0.1697998046875, 0.1102294921875, 0.1446533203125, 0.012939453125,...
embed
60213894_c1
60213894
prolog
1
it doesn't go through the recursion properly and the output ends up looking like this: where 5 and pi could be anything so long as pi remains in form pi (i.e. pi/2, pi/3), also there shouldn't be any additional lines added, as we were given a line number restriction. Lines should be edited/replaced. Anything to point ...
it doesn't go through the recursion properly and the output ends up looking like this: where 5 and pi could be anything so long as pi remains in form pi (i.e. pi/2, pi/3), also there shouldn't be any additional lines added, as we were given a line number restriction. Lines should be edited/replaced. Anything to point ...
[ -0.00811767578125, 0.00653076171875, 0.0086669921875, 0.00421142578125, 0.0033721923828125, -0.010009765625, 0.015625, -0.0169677734375, 0.003936767578125, -0.00152587890625, -0.018310546875, -0.006500244140625, -0.0140380859375, -0.00150299072265625, 0.004241943359375, 0.026611328125,...
[ 442, 22027, 18, 738, 8305, 195625, 1830, 155965, 140992, 3564, 1257, 16487, 1884, 903, 7440, 190, 136, 2147, 5809, 186, 23937, 221, 4989, 237, 47143, 3173, 12477, 18113, 5608, 78301, 124519, 49814, 34475, 13315, 14012, 185190, 16777, 27211, ...
[ 0.08746337890625, 0.0946044921875, 0.0989990234375, 0.06048583984375, 0.11279296875, 0.254150390625, 0.1346435546875, 0.1336669921875, 0.230224609375, 0.1064453125, 0.05230712890625, 0.1478271484375, 0.13525390625, 0.1373291015625, 0.047149658203125, 0.1654052734375, 0.06622314453125...
embed
39473759_c0
39473759
prolog
0
Title: prolog, comparing two predicates Problem title: prolog, comparing two predicates Tags: predicate, prolog Problem: prolog, comparing two predicates I have this proLog environtment (cooking stuff): first("ajo-blanco"). first("brandada-de-bacalao"). second("empanadilla-de-jamon-y-soja"). second("pollo-al-ajillo"). ...
prolog, comparing two predicates prolog, comparing two predicates predicate prolog aperitivos_tapas carnes_y_aves same_category Primero Segundo Type menu_simple prolog, comparing two predicates I have this proLog environtment (cooking stuff): I define 4 plates, 2 first plates and 2 second plates. A menu_simple object i...
[ -0.0037841796875, 0.00494384765625, -0.0009613037109375, 0.0146484375, -0.00555419921875, 0.01495361328125, -0.0233154296875, 0.004180908203125, 0.0004444122314453125, -0.021484375, 0.0101318359375, 0.0108642578125, 0.00433349609375, -0.0108642578125, -0.0079345703125, 0.0078125, -0....
[ 502, 4867, 37397, 6626, 1653, 2063, 1636, 229332, 44966, 20366, 53, 3132, 5701, 33478, 6504, 46282, 31407, 60457, 8026, 191560, 113972, 66539, 41884, 61924, 201, 182482, 116, 5117, 17932, 36746, 106, 136, 959, 95487, 26785, 162515, 67, 2967, ...
[ 0.1451416015625, 0.19189453125, 0.1710205078125, 0.125732421875, 0.1595458984375, 0.19580078125, 0.043731689453125, 0.118896484375, 0.107666015625, 0.0750732421875, 0.0267486572265625, 0.085693359375, 0.10662841796875, 0.06982421875, 0.0872802734375, 0.0151824951171875, 0.09228515625...
embed
50304170_c0
50304170
prolog
0
Title: Prolog - how to print a list Problem title: Prolog - how to print a list Tags: prolog Problem: Prolog - how to print a list I need to print list elements but I'm having troubles... I have facts like these: processor('Intel Core i3 8100', 104, 'low_range') . processor('Ryzen 5 2400g', 135, 'middle_range'). mother...
Prolog - how to print a list Prolog - how to print a list prolog Prolog Intel Core low_range Ryzen middle_range Gigabyte Z370P GBT AX370M-DS3H Price_range _Proc_price _Motherboard_price _Ram_price _Case_price _Ali_price video_card _Vga_price _Ssd_price _Monitor_price _Hdd_price P-M-R-C-A-V-S-D-H Res Prolog - how to pri...
[ -0.01519775390625, -0.009521484375, 0.001983642578125, 0.02099609375, 0.00194549560546875, 0.01116943359375, -0.014892578125, 0.0126953125, 0.0137939453125, -0.0062255859375, -0.00122833251953125, -0.00799560546875, -0.00408935546875, -0.020751953125, -0.005706787109375, -0.00379943847...
[ 1250, 4867, 3642, 28412, 10, 5303, 502, 24018, 31365, 27226, 94250, 3121, 61028, 567, 71025, 683, 618, 594, 363, 841, 48025, 126340, 24351, 5293, 302, 55725, 1202, 38931, 208, 46674, 26111, 856, 9624, 47, 3871, 80854, 63134, 15824, 46312, ...
[ 0.16650390625, 0.2379150390625, 0.052764892578125, 0.2381591796875, 0.04718017578125, 0.2308349609375, 0.1290283203125, 0.121826171875, 0.11181640625, 0.051055908203125, 0.06427001953125, 0.09918212890625, 0.10693359375, 0.026824951171875, 0.189208984375, 0.062744140625, 0.0347595214...
embed
69928973_c0
69928973
prolog
0
Title: How To Write travel/3 into path/2 Problem title: How To Write travel/3 into path/2 Tags: prolog, transitive-closure Problem: How To Write travel/3 into path/2 Let's say we have some facts and rules set like these : byCar(auckland,hamilton). byCar(hamilton,raglan). byCar(valmont,saarbruecken). byCar(valmont,metz)...
How To Write travel/3 into path/2 How To Write travel/3 into path/2 prolog transitive-closure How Write travel2 What How To Write travel/3 into path/2 Let's say we have some facts and rules set like these : So My Question is, how to make a rule named path/2. For Example this rule will make an output of which other citi...
[ 0.0169677734375, 0.005126953125, -0.00885009765625, 0.01165771484375, 0.0142822265625, 0.01953125, -0.019775390625, -0.0181884765625, 0.01324462890625, -0.034423828125, -0.010986328125, 0.0087890625, -0.01446533203125, 0.01031494140625, 0.005157470703125, -0.0103759765625, -0.0005836...
[ 11249, 717, 601, 18781, 26983, 18113, 3934, 60875, 12477, 502, 4867, 62621, 5844, 170224, 304, 15824, 91736, 5423, 68185, 3642, 3249, 79986, 4806, 140992, 3789, 162708, 765, 47, 738, 2046, 1295, 3687, 15700, 1272, 21851, 390, 28542, 78680, ...
[ 0.08599853515625, 0.012115478515625, 0.10430908203125, 0.195556640625, 0.25390625, 0.271240234375, 0.1109619140625, 0.205322265625, 0.2371826171875, 0.1162109375, 0.1458740234375, 0.1258544921875, 0.09033203125, 0.170654296875, 0.191650390625, 0.0606689453125, 0.107177734375, 0.045...
embed
43838907_c0
43838907
prolog
0
Title: Capture values from one list in Prolog and add to another list Problem title: Capture values from one list in Prolog and add to another list Tags: logic, tuples, prolog, paradigms, list Problem: Capture values from one list in Prolog and add to another list I'm trying to develop code in prolog to capture items w...
Capture values from one list in Prolog and add to another list Capture values from one list in Prolog and add to another list logic tuples prolog paradigms list one Capture Prolog Tail Tail2 Target _9998 Capture values from one list in Prolog and add to another list I'm trying to develop code in prolog to capture items...
[ 0.00885009765625, 0.01226806640625, 0.005462646484375, -0.000919342041015625, -0.01287841796875, -0.0111083984375, 0.0002956390380859375, -0.00106048583984375, 0.0228271484375, 0.0201416015625, 0.0250244140625, -0.006011962890625, -0.007598876953125, 0.0089111328125, 0.006134033203125, ...
[ 14304, 6644, 142424, 1295, 1632, 5303, 1250, 4867, 15190, 47, 15700, 23, 62775, 370, 99726, 502, 214709, 1218, 379, 304, 160017, 65040, 1019, 136, 85493, 18151, 141621, 55769, 12478, 944, 27771, 757, 27781, 8705, 12638, 12830, 37076, 116, 8...
[ 0.1781005859375, 0.1021728515625, 0.1884765625, 0.10498046875, 0.08453369140625, 0.193115234375, 0.162353515625, 0.2431640625, 0.1585693359375, 0.0120849609375, 0.08831787109375, 0.02587890625, 0.1221923828125, 0.078857421875, 0.1746826171875, 0.1175537109375, 0.1531982421875, 0.04...
embed
24540766_c0
24540766
prolog
0
Title: Prolog - searching in sublist from index to end for item Problem title: Prolog - searching in sublist from index to end for item Tags: prolog Problem: Prolog - searching in sublist from index to end for item I'm looking to search in a sublist for a particular string. There is a list of strings (possibly duplicat...
Prolog - searching in sublist from index to end for item Prolog - searching in sublist from index to end for item prolog index Prolog Color Listcolors Prolog - searching in sublist from index to end for item I'm looking to search in a sublist for a particular string. There is a list of strings (possibly duplicates); I ...
[ 0.00225830078125, 0.0050048828125, 0.003753662109375, 0.0264892578125, -0.0208740234375, 0.0036773681640625, 0.00604248046875, 0.01025390625, 0.0184326171875, -0.0198974609375, 0.00469970703125, 0.003265380859375, -0.00885009765625, 0.018310546875, 0.000911712646484375, 0.0064086914062...
[ 1250, 4867, 157318, 23, 1614, 6562, 1295, 63262, 47, 3564, 100, 35735, 502, 51193, 32036, 46133, 16487, 33938, 17311, 79315, 83, 10, 5303, 111, 7, 15, 7522, 172, 38526, 171763, 1636, 78426, 74, 136, 31471, 6275, 70, 43581, 56065, 3444, ...
[ 0.1617431640625, 0.240478515625, 0.2109375, 0.126220703125, 0.230224609375, 0.26318359375, 0.1011962890625, 0.1883544921875, 0.131591796875, 0.1734619140625, 0.0943603515625, 0.177734375, 0.0819091796875, 0.1474609375, 0.06585693359375, 0.1434326171875, 0.074462890625, 0.1954345703...
embed
65533216_c0
65533216
prolog
0
Title: Passing a GOAL as argument ? Plus variable number of arguments? Problem title: Passing a GOAL as argument ? Plus variable number of arguments? Tags: variadic-functions, arguments, parameter-passing, prolog Problem: Passing a GOAL as argument ? Plus variable number of arguments? In general trying to figure out ho...
Passing a GOAL as argument ? Plus variable number of arguments? Passing a GOAL as argument ? Plus variable number of arguments? variadic-functions arguments parameter-passing prolog Passing GOAL Plus Str Lst split_string Separator Pad read_line Stream Process Args read_line_to_string facts.txt of.fact Passing a GOAL as...
[ -0.005035400390625, -0.000827789306640625, -0.004364013671875, -0.00063323974609375, -0.0179443359375, 0.01544189453125, 0.01123046875, -0.0142822265625, 0.00811767578125, -0.031494140625, -0.0025634765625, -0.01397705078125, -0.032958984375, 0.0004634857177734375, 0.01373291015625, 0....
[ 28872, 214, 10, 25052, 7842, 237, 10750, 705, 8183, 77336, 14012, 7, 16757, 18403, 137175, 171859, 13409, 502, 4867, 23351, 271, 65450, 91693, 6276, 1290, 22017, 12301, 2256, 115061, 123996, 1172, 9405, 188, 15824, 124326, 111, 114700, 31577,...
[ 0.1822509765625, 0.058685302734375, 0.1055908203125, 0.2252197265625, 0.2166748046875, 0.1177978515625, 0.301513671875, 0.00079345703125, 0.12939453125, 0.2454833984375, 0.1522216796875, 0.0830078125, 0.1903076171875, 0.05755615234375, 0.1981201171875, 0.14794921875, 0.097412109375, ...
embed
32672913_c1
32672913
prolog
1
,l,*,s], [*,w,e,b,*,*,*,*,*]] Given Hints 1) You could add to the dictionary these "black" words: black(*,1). black(**,2). black(***,3). black(****,4). black(*****,5). 2) Each row is sequence of "white" words (normal words) and "black" words interleaved, and this sequence can begin/finish with both. 3) I suggest you to...
,l,*,s], [*,w,e,b,*,*,*,*,*]] Given Hints 1) You could add to the dictionary these "black" words: black(*,1). black(**,2). black(***,3). black(****,4). black(*****,5). 2) Each row is sequence of "white" words (normal words) and "black" words interleaved, and this sequence can begin/finish with both. 3) I suggest you to...
[ -0.00008106231689453125, 0.008544921875, 0.0106201171875, 0.020751953125, -0.01416015625, -0.016357421875, 0.00080108642578125, -0.0093994140625, 0.010009765625, -0.01507568359375, -0.00009632110595703125, 0.0020751953125, 0.0174560546875, 0.0311279296875, -0.02099609375, 0.02722167968...
[ 141, 1639, 7, 434, 13, 275, 77878, 19895, 5809, 15190, 45, 10763, 6635, 6097, 151675, 34153, 22556, 17727, 10461, 21320, 29557, 57506, 43317, 98423, 15555, 944, 148477, 33176, 14507, 9842, 5983, 42459, 111240, 116, 207116, 6275, 12921, 70731,...
[ 0.0611572265625, 0.0457763671875, 0.0230560302734375, 0.0765380859375, 0.0251617431640625, 0.0180206298828125, 0.0263671875, 0.10009765625, 0.03131103515625, 0.1221923828125, 0.0202789306640625, 0.117919921875, 0.1090087890625, 0.009552001953125, 0.1666259765625, 0.156982421875, 0.20...
embed
36327609_c0
36327609
prolog
0
Title: How to find the length of 2 lists and compare them in Prolog Problem title: How to find the length of 2 lists and compare them in Prolog Tags: prolog Problem: How to find the length of 2 lists and compare them in Prolog I've wrote this code which takes a list and find the length.. percent(List,Int):- percent1(Li...
How to find the length of 2 lists and compare them in Prolog How to find the length of 2 lists and compare them in Prolog prolog How Prolog List percent1 Sum iron_defficiency loss_concentration swelling_tongue vitamin_poor_diet b12 loss_appetite painful_spleen pale_skin parent1 parent2 face_features hba1 hba2 minor_tha...
[ 0.006622314453125, 0.0024261474609375, -0.00148773193359375, 0.0198974609375, 0.000789642333984375, 0.0159912109375, -0.002838134765625, 0.0245361328125, 0.005645751953125, -0.0296630859375, 0.01422119140625, 0.010009765625, 0.0174560546875, -0.0037994384765625, 0.01348876953125, -0.02...
[ 11249, 7413, 70, 140909, 111, 116, 5303, 69101, 23, 1250, 4867, 502, 32036, 33297, 418, 36335, 193, 191, 112, 24500, 1474, 86669, 46899, 52113, 30319, 1507, 6261, 13864, 771, 748, 74148, 1530, 58134, 24503, 8705, 25153, 875, 49129, 304, 2...
[ 0.0325927734375, 0.13134765625, 0.01177978515625, 0.208984375, 0.03753662109375, 0.1702880859375, 0.2354736328125, 0.18701171875, 0.048980712890625, 0.144775390625, 0.226806640625, 0.1168212890625, 0.142333984375, 0.2183837890625, 0.015106201171875, 0.1292724609375, 0.0965576171875, ...
embed
36306362_c0
36306362
prolog
0
Title: prolog, find list elements in a list of tuples Problem title: prolog, find list elements in a list of tuples Tags: prolog, tuples, list Problem: prolog, find list elements in a list of tuples I'm trying to solve a new program with Prolog, and I'm stuck, and don't know how to continue... I must do a predicate tha...
prolog, find list elements in a list of tuples prolog, find list elements in a list of tuples prolog tuples list DIC Xord list_to_set DIC1 DIC2 L3T prolog, find list elements in a list of tuples I'm trying to solve a new program with Prolog, and I'm stuck, and don't know how to continue... I must do a predicate that ha...
[ 0.00836181640625, -0.0108642578125, 0.0030364990234375, 0.01611328125, -0.0272216796875, 0.0096435546875, -0.00897216796875, 0.0220947265625, 0.015625, -0.017333984375, 0.00921630859375, 0.015625, -0.01031494140625, 0.0040283203125, -0.0022430419921875, 0.0283203125, 0.032470703125, ...
[ 502, 4867, 7413, 5303, 80854, 23, 370, 99726, 138943, 1193, 6651, 3509, 304, 618, 86869, 1528, 678, 1250, 179933, 21342, 1653, 2063, 67, 138, 10750, 5117, 50960, 176377, 70541, 17932, 12830, 8705, 14858, 8110, 154109, 71200, 1146, 136, 3064...
[ 0.1746826171875, 0.2425537109375, 0.1248779296875, 0.2042236328125, 0.2020263671875, 0.0799560546875, 0.1583251953125, 0.2401123046875, 0.08349609375, 0.0386962890625, 0.174560546875, 0.0841064453125, 0.00616455078125, 0.03485107421875, 0.09661865234375, 0.100341796875, 0.02844238281...
embed
16284386_c1
16284386
prolog
1
, Y):- X == Y, !, write(X), write(' Item already in tree\n'). So I have the addavl(Tree, Element, NewTree/Height) predicate that adds the new element to a Tree generating a new AVL tree. Now I would like to create a new predicate that uses this addavl/3 predicate to create a new AVL tree from a list of elements. For ex...
, Y):- X == Y, !, write(X), write(' Item already in tree\n'). So I have the addavl(Tree, Element, NewTree/Height) predicate that adds the new element to a Tree generating a new AVL tree. Now I would like to create a new predicate that uses this addavl/3 predicate to create a new AVL tree from a list of elements. For ex...
[ -0.0020751953125, -0.00396728515625, -0.00830078125, -0.00830078125, 0.00958251953125, 0.0274658203125, -0.0225830078125, -0.000024437904357910156, 0.0034332275390625, -0.0184326171875, 0.044921875, -0.0155029296875, 0.0303955078125, -0.0016632080078125, 0.006591796875, -0.001579284667...
[ 990, 2077, 1193, 69112, 711, 33022, 1542, 78426, 21771, 23, 53201, 41872, 765, 11262, 50132, 62731, 13, 48325, 2356, 13025, 22553, 1653, 2063, 67, 15190, 3525, 12830, 47, 101344, 12663, 62, 92414, 2806, 1884, 28282, 4527, 903, 18113, 1295, ...
[ 0.0947265625, 0.020294189453125, 0.0751953125, 0.16845703125, 0.0653076171875, 0.1417236328125, 0.0667724609375, 0.1900634765625, 0.2198486328125, 0.1295166015625, 0.257080078125, 0.05291748046875, 0.007049560546875, 0.1197509765625, 0.201904296875, 0.1885986328125, 0.05340576171875,...
embed
65309020_c0
65309020
prolog
0
Title: How to resolve this type error in my Prolog code for generating the Collatz Sequence? Problem title: How to resolve this type error in my Prolog code for generating the Collatz Sequence? Tags: collatz, prolog, recursion Problem: How to resolve this type error in my Prolog code for generating the Collatz Sequence...
How to resolve this type error in my Prolog code for generating the Collatz Sequence? How to resolve this type error in my Prolog code for generating the Collatz Sequence? collatz prolog recursion How Prolog Collatz Sequence collatz_seq Curr Next Accum collatz.pl type_error How to resolve this type error in my Prolog c...
[ 0.012939453125, 0.0142822265625, 0.00396728515625, 0.003997802734375, 0.023681640625, 0.00909423828125, -0.0086669921875, -0.006134033203125, -0.005706787109375, -0.037353515625, 0.00031280517578125, -0.00994873046875, 0.0026092529296875, 0.00421142578125, 0.02490234375, -0.01239013671...
[ 11249, 103608, 903, 10644, 18499, 759, 1250, 4867, 18151, 12663, 88842, 257, 169, 503, 944, 3956, 65780, 9136, 502, 195625, 184, 864, 17065, 42, 4997, 29899, 316, 2424, 188800, 52080, 165132, 7477, 49041, 66801, 139392, 40, 101935, 34475, 2...
[ 0.028076171875, 0.1463623046875, 0.03973388671875, 0.2169189453125, 0.1864013671875, 0.004364013671875, 0.134765625, 0.2227783203125, 0.129150390625, 0.0958251953125, 0.097412109375, 0.09490966796875, 0.1370849609375, 0.0657958984375, 0.1236572265625, 0.05999755859375, 0.150634765625...
embed
37171303_c0
37171303
prolog
0
Title: Performance of the built-in Prolog predicate (is)/2 Problem title: Performance of the built-in Prolog predicate (is)/2 Tags: swi-prolog, sicstus-prolog, prolog Problem: Performance of the built-in Prolog predicate (is)/2 Update: 11.6.2016 The baffling performance discrepancy which I had observed with SICStus Pro...
Performance of the built-in Prolog predicate (is)/2 Performance of the built-in Prolog predicate (is)/2 swi-prolog sicstus-prolog prolog Performance Prolog val_of list_siz list_sizL list_sizR B_2 P_2 call_time SWI SICStus G2G L2G Performance of the built-in Prolog predicate (is)/2 Update: 11.6.2016 The baffling perform...
[ -0.0166015625, -0.0093994140625, 0.0164794921875, -0.01483154296875, -0.01055908203125, -0.004364013671875, -0.0145263671875, -0.007476806640625, 0.02392578125, -0.025390625, 0.02783203125, 0.020751953125, -0.004486083984375, -0.0191650390625, 0.0118408203125, -0.01141357421875, 0.01...
[ 94030, 88303, 73, 1250, 4867, 1653, 2063, 67, 164, 12477, 91, 2452, 3454, 26536, 18253, 502, 3502, 4390, 5303, 4900, 335, 304, 436, 11782, 6032, 38969, 159, 102198, 2143, 527, 724, 339, 28641, 43652, 4131, 961, 4902, 2069, 23718, 17116, ...
[ 0.2138671875, 0.15625, 0.1412353515625, 0.2049560546875, 0.28076171875, 0.1920166015625, 0.2335205078125, 0.08099365234375, 0.159912109375, 0.2275390625, 0.041015625, 0.1929931640625, 0.1431884765625, 0.10650634765625, 0.18212890625, 0.1312255859375, 0.171875, 0.1981201171875, 0....
embed
34214021_c0
34214021
prolog
0
Title: Sublists in Prolog(without recognizing the empty list) Problem title: Sublists in Prolog(without recognizing the empty list) Tags: prolog, list Problem: Sublists in Prolog(without recognizing the empty list) I want to create a predicate in Prolog which will check if a list A is a sublist of a list B. Moreover I ...
Sublists in Prolog(without recognizing the empty list) Sublists in Prolog(without recognizing the empty list) prolog list Sublists Prolog Tail Head included_list List Sublists in Prolog(without recognizing the empty list) I want to create a predicate in Prolog which will check if a list A is a sublist of a list B. More...
[ -0.004119873046875, 0.0030059814453125, 0.0174560546875, 0.01495361328125, -0.0220947265625, 0.0084228515625, -0.0223388671875, -0.004150390625, -0.001556396484375, -0.0002765655517578125, 0.034423828125, 0.0113525390625, -0.00860595703125, 0.0213623046875, 0.013671875, 0.0084838867187...
[ 8273, 6562, 1250, 4867, 75530, 201505, 5303, 23, 502, 1218, 379, 44816, 99201, 32036, 3444, 28282, 1653, 2063, 12765, 2174, 62, 1614, 335, 1528, 16916, 3509, 163324, 80389, 29568, 163090, 98320, 18151, 2060, 36917, 37202, 44691, 104250, 64457...
[ 0.197998046875, 0.2371826171875, 0.1519775390625, 0.209716796875, 0.0360107421875, 0.1317138671875, 0.1651611328125, 0.000885009765625, 0.1004638671875, 0.047271728515625, 0.011016845703125, 0.11328125, 0.196533203125, 0.135498046875, 0.0257415771484375, 0.05908203125, 0.128662109375...
embed
53693326_c0
53693326
prolog
0
Title: Frogs and Toads Problem title: Frogs and Toads Tags: algorithm, prolog Problem: Frogs and Toads I'm very new to Prolog and came across a logic riddle that seems easy to implement, but after spending 2 days searching online, I still can't wrap my head around how to solve it in Prolog. Three frogs and three toads ...
Frogs and Toads Frogs and Toads algorithm prolog Frogs Toads Frogs and Toads I'm very new to Prolog and came across a logic riddle that seems easy to implement, but after spending 2 days searching online, I still can't wrap my head around how to solve it in Prolog. Three frogs and three toads are lined up in the config...
[ 0.0133056640625, 0.01312255859375, -0.0201416015625, 0.017578125, -0.0194091796875, 0.00115203857421875, -0.016357421875, 0.007568359375, 0.00872802734375, -0.010986328125, 0.005615234375, -0.006195068359375, -0.0189208984375, 0.023681640625, 0.0091552734375, -0.0026092529296875, 0.0...
[ 41149, 9405, 136, 717, 712, 7, 234873, 502, 4867, 4552, 3525, 1250, 36880, 62775, 31351, 19298, 37202, 23468, 29479, 116, 13312, 157318, 1118, 7464, 831, 18, 137565, 10336, 3642, 86869, 23, 129335, 211209, 17262, 47, 13315, 180346, 58755, 1...
[ 0.18603515625, 0.1685791015625, 0.205078125, 0.1766357421875, 0.212646484375, 0.0582275390625, 0.1787109375, 0.1419677734375, 0.247802734375, 0.037506103515625, 0.044921875, 0.1907958984375, 0.012420654296875, 0.1549072265625, 0.161376953125, 0.1529541015625, 0.0648193359375, 0.078...
embed
47874548_c0
47874548
prolog
0
Title: How to add constraint to a list that is generated by a definite clause grammar? Problem title: How to add constraint to a list that is generated by a definite clause grammar? Tags: prolog Problem: How to add constraint to a list that is generated by a definite clause grammar? I'm trying to use definite clause gr...
How to add constraint to a list that is generated by a definite clause grammar? How to add constraint to a list that is generated by a definite clause grammar? prolog How Input find_zeroes RevInput find_ones Acc Result List How to add constraint to a list that is generated by a definite clause grammar? I'm trying to us...
[ -0.00628662109375, 0.0201416015625, -0.0054931640625, 0.01507568359375, 0.0003566741943359375, 0.00494384765625, -0.006439208984375, 0.019287109375, 0.01318359375, -0.02734375, -0.007537841796875, -0.01556396484375, 0.00885009765625, -0.0067138671875, 0.01177978515625, 0.00071716308593...
[ 11249, 15190, 158, 2816, 4288, 47, 5303, 139392, 71496, 13, 70731, 122092, 147, 502, 4867, 360, 7077, 7413, 80510, 90, 80893, 4153, 25749, 29899, 126684, 32036, 31577, 21816, 26946, 79315, 3173, 75, 304, 334, 45234, 64333, 14012, 34, 8110, ...
[ 0.0732421875, 0.191650390625, 0.1431884765625, 0.2371826171875, 0.2266845703125, 0.083251953125, 0.215576171875, 0.162353515625, 0.2012939453125, 0.1025390625, 0.1693115234375, 0.137939453125, 0.111572265625, 0.1171875, 0.1893310546875, 0.008392333984375, 0.026397705078125, 0.09667...
embed
67828632_c0
67828632
prolog
0
Title: Getting data from a direct mapped cache in prolog Problem title: Getting data from a direct mapped cache in prolog Tags: recursion, prolog Problem: Getting data from a direct mapped cache in prolog The predicate getDataFromCache(StringAddress,Cache,Data,HopsNum,directMap,BitsNum) should succeed when the Data is ...
Getting data from a direct mapped cache in prolog Getting data from a direct mapped cache in prolog recursion prolog a Getting Binary Tag Idx Data HopsNum BitsNum number_string Getting data from a direct mapped cache in prolog The predicate getDataFromCache(StringAddress,Cache,Data,HopsNum,directMap,BitsNum) should suc...
[ 0.0123291015625, 0.00151824951171875, 0.01953125, 0.00994873046875, 0.00909423828125, 0.007415771484375, 0.00098419189453125, -0.00408935546875, 0.0206298828125, -0.050048828125, -0.00023174285888671875, -0.008056640625, -0.00982666015625, 0.000946044921875, 0.0306396484375, 0.00631713...
[ 210732, 2053, 1295, 8951, 291, 48398, 82365, 502, 4867, 23, 195625, 54092, 1294, 4837, 24799, 425, 11809, 101082, 7, 839, 316, 27774, 14012, 91693, 1653, 2063, 2046, 137989, 168407, 441, 46994, 71713, 161007, 841, 68818, 80581, 166179, 571, ...
[ 0.09857177734375, 0.1527099609375, 0.11474609375, 0.1778564453125, 0.1378173828125, 0.1142578125, 0.2486572265625, 0.144775390625, 0.2418212890625, 0.02447509765625, 0.1343994140625, 0.1085205078125, 0.014892578125, 0.130615234375, 0.05810546875, 0.0963134765625, 0.1046142578125, 0...
embed
40771366_c0
40771366
prolog
0
Title: Comparing two Lists in Prolog, To Determine if the Equal Elements of both lists are the Same Count Problem title: Comparing two Lists in Prolog, To Determine if the Equal Elements of both lists are the Same Count Tags: list, counting, prolog Problem: Comparing two Lists in Prolog, To Determine if the Equal Eleme...
Comparing two Lists in Prolog, To Determine if the Equal Elements of both lists are the Same Count Comparing two Lists in Prolog, To Determine if the Equal Elements of both lists are the Same Count list counting prolog Comparing Lists Prolog Determine Equal Elements Same Count Example List Comparing two Lists in Prolog...
[ 0.00433349609375, 0.01336669921875, 0.0166015625, 0.0177001953125, -0.0113525390625, 0.00093841552734375, -0.00165557861328125, 0.000804901123046875, 0.0223388671875, 0.017333984375, 0.00628662109375, 0.010986328125, 0.016357421875, 0.01611328125, -0.0006256103515625, -0.0206298828125,...
[ 113307, 6626, 32036, 1250, 4867, 30524, 71723, 48325, 15044, 5303, 99908, 108210, 54529, 502, 241, 89536, 663, 33022, 1653, 2063, 12765, 62, 70541, 4734, 80854, 335, 1556, 29568, 83324, 105950, 5701, 12096, 101935, 117914, 36849, 35829, 125195,...
[ 0.154541015625, 0.08612060546875, 0.1849365234375, 0.14453125, 0.2176513671875, 0.11279296875, 0.161865234375, 0.175537109375, 0.0850830078125, 0.1590576171875, 0.132568359375, 0.1279296875, 0.1295166015625, 0.112548828125, 0.004852294921875, 0.006134033203125, 0.05633544921875, 0....
embed
5903327_c0
5903327
prolog
0
Title: Is there a way of obtaining itemsets from transactions efficiently witho prolog? Problem title: Is there a way of obtaining itemsets from transactions efficiently witho prolog? Tags: prolog-setof, prolog Problem: Is there a way of obtaining itemsets from transactions efficiently witho prolog? I am sorry to ask t...
Is there a way of obtaining itemsets from transactions efficiently witho prolog? Is there a way of obtaining itemsets from transactions efficiently witho prolog? prolog-setof prolog transactions Time Client Item Transformation Lists transaction2 List Itemsets Main Basket Is there a way of obtaining itemsets from transa...
[ -0.006195068359375, -0.006805419921875, 0.03515625, -0.00927734375, 0.0155029296875, -0.00787353515625, -0.0223388671875, 0.005462646484375, -0.00189971923828125, -0.059326171875, 0.0167236328125, 0.037841796875, -0.00830078125, -0.0008087158203125, -0.00153350830078125, -0.001953125, ...
[ 2685, 3917, 113054, 214, 55769, 7831, 1295, 124161, 93766, 538, 678, 31, 502, 4867, 3509, 4390, 19055, 91732, 78426, 149855, 32036, 304, 12321, 152327, 59090, 2809, 5915, 26693, 1250, 11814, 222530, 13, 214709, 31577, 41911, 75463, 5201, 1542...
[ 0.020477294921875, 0.0804443359375, 0.18359375, 0.072021484375, 0.2222900390625, 0.26416015625, 0.106201171875, 0.196533203125, 0.1988525390625, 0.0487060546875, 0.052032470703125, 0.04180908203125, 0.141845703125, 0.2294921875, 0.2154541015625, 0.0860595703125, 0.0679931640625, 0....
embed
37232679_c0
37232679
prolog
0
Title: Prolog Operator Priority Clash on multiple Ifs Problem title: Prolog Operator Priority Clash on multiple Ifs Tags: prolog Problem: Prolog Operator Priority Clash on multiple Ifs I'm kind of new to prolog and can't figure out what's wrong with this. ecoZona(Z):- zona(Z, L1), (L1 = [] -> write('Zona nao encontrada...
Prolog Operator Priority Clash on multiple Ifs Prolog Operator Priority Clash on multiple Ifs prolog Prolog Operator Priority Clash Ifs Zona Lixo Organico Papel Metal Vidro Sao Precisos nth0 ElemType ElemPerc Elem Syntax Prolog Operator Priority Clash on multiple Ifs I'm kind of new to prolog and can't figure out what'...
[ 0.004974365234375, 0.00811767578125, 0.0016632080078125, 0.03173828125, 0.0120849609375, 0.011474609375, -0.017578125, 0.0186767578125, 0.0234375, -0.0022430419921875, 0.01190185546875, 0.01239013671875, 0.00439453125, -0.025146484375, 0.0198974609375, 0.00150299072265625, 0.01507568...
[ 1250, 4867, 150922, 168857, 313, 5544, 98, 48716, 4263, 7, 502, 76346, 339, 21710, 178128, 1342, 5310, 47331, 582, 5814, 63748, 70464, 232, 927, 2389, 540, 195, 196707, 15277, 238, 19010, 86531, 53, 26366, 44691, 159, 38969, 10752, 18499, ...
[ 0.1495361328125, 0.238037109375, 0.270263671875, 0.195068359375, 0.0826416015625, 0.237060546875, 0.015838623046875, 0.187744140625, 0.21435546875, 0.073974609375, 0.111083984375, 0.1314697265625, 0.06597900390625, 0.179443359375, 0.1524658203125, 0.048187255859375, 0.0816650390625, ...
embed
3349756_c0
3349756
prolog
0
Title: Prolog Or(;) Rule Return Multiple Result Problem title: Prolog Or(;) Rule Return Multiple Result Tags: rule, prolog Problem: Prolog Or(;) Rule Return Multiple Result i have define a rule with or operator but it return multiple true or false. isloanaccept(Name,Guarantor,LoanType,LoanAmount,LoanTenure) :- customer...
Prolog Or(;) Rule Return Multiple Result Prolog Or(;) Rule Return Multiple Result rule prolog Prolog Rule Multiple Result Name Guarantor LoanType LoanAmount LoanTenure Age LoanTenur Prolog Or(;) Rule Return Multiple Result i have define a rule with or operator but it return multiple true or false. Actually, i need to c...
[ 0.0126953125, 0.00144195556640625, -0.007720947265625, 0.025146484375, -0.0125732421875, 0.0162353515625, -0.002044677734375, 0.00628662109375, 0.01708984375, 0.015869140625, 0.00122833251953125, -0.0189208984375, 0.016357421875, 0.00421142578125, 0.01287841796875, 0.00543212890625, ...
[ 1250, 4867, 3347, 74, 139118, 173340, 19335, 8705, 126684, 132, 79986, 502, 206438, 19, 1290, 137474, 196707, 121147, 87286, 72944, 61924, 678, 707, 39933, 30646, 48716, 29568, 98320, 12765, 36766, 111628, 10644, 211394, 17311, 64209, 70163, 45...
[ 0.1717529296875, 0.23388671875, 0.2587890625, 0.10516357421875, 0.2161865234375, 0.2169189453125, 0.1846923828125, 0.13134765625, 0.2042236328125, 0.002166748046875, 0.23046875, 0.1414794921875, 0.092041015625, 0.058837890625, 0.05322265625, 0.1287841796875, 0.143798828125, 0.02963...
embed
41128147_c0
41128147
prolog
0
Title: ECLiPSe predicate for checking if a list contains elements with certain positions in another list Problem title: ECLiPSe predicate for checking if a list contains elements with certain positions in another list Tags: prolog, logic Problem: ECLiPSe predicate for checking if a list contains elements with certain p...
ECLiPSe predicate for checking if a list contains elements with certain positions in another list ECLiPSe predicate for checking if a list contains elements with certain positions in another list prolog logic ECLiPSe NxN N-N X::1..M nth1 Yes ECLiPSe predicate for checking if a list contains elements with certain positi...
[ -0.004913330078125, 0.0062255859375, 0.01904296875, 0.01080322265625, -0.0146484375, -0.0111083984375, 0.0123291015625, 0.0101318359375, 0.006927490234375, -0.0225830078125, -0.00008106231689453125, 0.0302734375, -0.00445556640625, -0.0177001953125, 0.005340576171875, -0.00055694580078...
[ 59947, 9506, 9059, 13, 1653, 2063, 67, 175199, 2174, 5303, 70541, 80854, 678, 24233, 19069, 23, 15700, 502, 4867, 62775, 425, 839, 541, 9, 1193, 19721, 594, 927, 418, 32635, 100, 69236, 12765, 36766, 34475, 143414, 3789, 29568, 32920, 339...
[ 0.113525390625, 0.189208984375, 0.151123046875, 0.1160888671875, 0.19287109375, 0.1815185546875, 0.05267333984375, 0.2269287109375, 0.083984375, 0.2015380859375, 0.1573486328125, 0.191162109375, 0.102783203125, 0.04974365234375, 0.19287109375, 0.06488037109375, 0.1429443359375, 0.1...
embed
12826174_c1
12826174
prolog
1
V], [A, E, I, M, Q, U]]). % A jump on some line. horizjmp([A|T],[B|T]) :- linjmp(A,B). horizjmp([H|T1],[H|T2]) :- horizjmp(T1,T2). % One legal jump. jump(B,A) :- horizjmp(B,A). jump(B,A) :- rotate(B,BR), horizjmp(BR,BRJ), rotateBack(A,BRJ). %jump(B,A) :- rotate(BR,B), horizjmp(BR,BRJ), rotate(BRJ,A). % Series of legal...
V], [A, E, I, M, Q, U]]). % A jump on some line. horizjmp([A|T],[B|T]) :- linjmp(A,B). horizjmp([H|T1],[H|T2]) :- horizjmp(T1,T2). % One legal jump. jump(B,A) :- horizjmp(B,A). jump(B,A) :- rotate(B,BR), horizjmp(BR,BRJ), rotateBack(A,BRJ). %jump(B,A) :- rotate(BR,B), horizjmp(BR,BRJ), rotate(BRJ,A). % Series of legal...
[ -0.01806640625, 0.0286865234375, 0.011474609375, 0.0159912109375, -0.021240234375, 0.0233154296875, -0.0069580078125, 0.0140380859375, 0.0159912109375, -0.01470947265625, -0.02001953125, 0.00836181640625, 0.0078125, -0.002044677734375, -0.00592041015625, -0.00023365020751953125, -0.0...
[ 310, 284, 241, 87, 2396, 345, 1745, 62, 88203, 98, 3060, 13315, 15462, 169, 170, 2676, 618, 268, 4, 571, 16, 15772, 11508, 194, 132, 841, 76172, 1065, 90173, 418, 10461, 6561, 8437, 47014, 67, 38101, 247, 60310, 152470, 461, 64876, 45...
[ 0.1900634765625, 0.046295166015625, 0.032379150390625, 0.036041259765625, 0.05853271484375, 0.023284912109375, 0.0828857421875, 0.02099609375, 0.262939453125, 0.0753173828125, 0.0050048828125, 0.1636962890625, 0.088623046875, 0.04595947265625, 0.03228759765625, 0.161865234375, 0.0548...
embed
40270872_c0
40270872
prolog
0
Title: using dictionaries in swi-prolog Problem title: using dictionaries in swi-prolog Tags: swi-prolog, prolog, dictionary Problem: using dictionaries in swi-prolog I'm working on a simple web service in Prolog and wanted to respond to my users with data formatted as JSON. A nice facility is reply_json_dict/1 which t...
using dictionaries in swi-prolog using dictionaries in swi-prolog swi-prolog prolog dictionary dictionaries reply_json_dict OutDict0 DataId Props OutDict1 OutDict0.put III AAA Time OutDict2 OutDict1.put UserName OutDict3 OutDict2.put using dictionaries in swi-prolog I'm working on a simple web service in Prolog and wan...
[ -0.00701904296875, 0.0179443359375, 0.00665283203125, -0.0093994140625, -0.00653076171875, -0.0126953125, -0.002593994140625, 0.002655029296875, -0.0045166015625, -0.02783203125, 0.029296875, 0.0135498046875, -0.0107421875, -0.004486083984375, 0.0380859375, 0.029052734375, -0.0014953...
[ 17368, 45, 10763, 11, 10484, 23, 91, 2452, 3454, 4867, 502, 75836, 170, 1681, 61669, 13538, 14055, 2389, 11809, 568, 71, 43796, 7, 418, 4830, 155616, 19055, 304, 53400, 163612, 363, 5442, 7077, 20697, 8781, 4516, 1250, 35644, 72095, 2053,...
[ 0.08135986328125, 0.1439208984375, 0.206298828125, 0.12060546875, 0.115966796875, 0.009796142578125, 0.0277557373046875, 0.2059326171875, 0.1441650390625, 0.2127685546875, 0.1009521484375, 0.1702880859375, 0.08648681640625, 0.1602783203125, 0.1868896484375, 0.0662841796875, 0.0874633...
embed
15936298_c0
15936298
prolog
0
Title: Prolog findall/3: more than one bag Problem title: Prolog findall/3: more than one bag Tags: prolog-findall, prolog Problem: Prolog findall/3: more than one bag I'm writing AI for a Fox and Geese type of game. One of my predicates looks like this: moveFox(+PrevState, -NextState, -PegList, +VisitedStates, -NewVis...
Prolog findall/3: more than one bag Prolog findall/3: more than one bag prolog-findall prolog Prolog PrevState NextState PegList VisitedStates NewVisitedStates NextStatesList MoveList Prolog findall/3: more than one bag I'm writing AI for a Fox and Geese type of game. One of my predicates looks like this: It takes a ga...
[ 0.00396728515625, -0.007354736328125, 0.00653076171875, 0.0224609375, -0.009521484375, 0.029052734375, -0.001983642578125, -0.002899169921875, 0.0208740234375, -0.028076171875, 0.00750732421875, 0.015869140625, 0.0019683837890625, -0.028564453125, -0.00970458984375, -0.01220703125, 0...
[ 1250, 4867, 7413, 5584, 18113, 1286, 3501, 1632, 6157, 502, 111607, 74717, 135206, 4997, 1460, 177, 154663, 98684, 65331, 135828, 32562, 38730, 49049, 136, 75036, 13, 10644, 6712, 1653, 2063, 33342, 1884, 51776, 11341, 25813, 678, 147797, 51,...
[ 0.1434326171875, 0.1966552734375, 0.16455078125, 0.221923828125, 0.234375, 0.0794677734375, 0.08294677734375, 0.068359375, 0.2120361328125, 0.108642578125, 0.0987548828125, 0.1466064453125, 0.142578125, 0.1668701171875, 0.1253662109375, 0.05841064453125, 0.1849365234375, 0.11828613...
embed
78607816_c0
78607816
prolog
0
Title: When can I safely avoid storing temporary calculations in Prolog? Problem title: When can I safely avoid storing temporary calculations in Prolog? Tags: arithmetic-expressions, prolog, unification Problem: When can I safely avoid storing temporary calculations in Prolog? I created a simple Prolog program to calc...
When can I safely avoid storing temporary calculations in Prolog? When can I safely avoid storing temporary calculations in Prolog? arithmetic-expressions prolog unification When Prolog Number Factorial Number1 Number-1 Factorial1 N-K FNK When can I safely avoid storing temporary calculations in Prolog? I created a sim...
[ 0.01611328125, 0.0028076171875, 0.00714111328125, -0.01904296875, 0.020751953125, -0.01190185546875, 0.0037841796875, -0.006317138671875, 0.011962890625, -0.004669189453125, 0.0032501220703125, 0.00408935546875, -0.01507568359375, -0.00689697265625, 0.010986328125, -0.00592041015625, ...
[ 14847, 46002, 71864, 3082, 142458, 53, 74481, 5256, 23, 1250, 4867, 831, 8962, 204629, 502, 51, 41274, 103332, 117969, 15403, 418, 5759, 541, 9, 605, 563, 25035, 75935, 8781, 1528, 31461, 14012, 43240, 26785, 4343, 1632, 1614, 117474, 77336...
[ 0.0477294921875, 0.1177978515625, 0.1865234375, 0.190673828125, 0.2371826171875, 0.04949951171875, 0.2498779296875, 0.087158203125, 0.02978515625, 0.1817626953125, 0.2529296875, 0.0192413330078125, 0.044189453125, 0.08819580078125, 0.09112548828125, 0.046783447265625, 0.0306396484375...
embed
42316008_c0
42316008
prolog
0
Title: Prolog permutation-code slightly unclear Problem title: Prolog permutation-code slightly unclear Tags: prolog, permutation Problem: Prolog permutation-code slightly unclear I just have a little question about the following code I've just written. permu([],[]). permu([H|T],R) :- same_length([H|T],R), select(H,R,R...
Prolog permutation-code slightly unclear Prolog permutation-code slightly unclear prolog permutation Prolog same_length Prolog permutation-code slightly unclear I just have a little question about the following code I've just written. Result : gives out all permutation (doesn't delete redundancies, but that's not the m...
[ -0.00469970703125, 0.03271484375, 0.038330078125, 0.0152587890625, -0.0152587890625, -0.0079345703125, -0.0167236328125, 0.00701904296875, 0.026123046875, -0.051025390625, 0.00213623046875, -0.005645751953125, 0.009033203125, 0.015625, 0.0022125244140625, 0.006866455078125, 0.0078125...
[ 1250, 4867, 117, 561, 22062, 40899, 161549, 51, 119488, 502, 5701, 23986, 10176, 9655, 25632, 18151, 126684, 76199, 1810, 756, 18, 154109, 28969, 1127, 117538, 959, 26866, 7413, 5584, 13204, 15700, 1653, 2063, 30022, 72546, 61475, 5117, 16750...
[ 0.1865234375, 0.2421875, 0.110595703125, 0.2061767578125, 0.1201171875, 0.1925048828125, 0.1640625, 0.0198974609375, 0.1820068359375, 0.1199951171875, 0.1097412109375, 0.1007080078125, 0.01068115234375, 0.0243377685546875, 0.04541015625, 0.1739501953125, 0.2130126953125, 0.04196166...
embed
41544281_c0
41544281
prolog
0
Title: Iterating List in Prolog Problem title: Iterating List in Prolog Tags: prolog Problem: Iterating List in Prolog I would like to iterate a list in Prolog an write a generated result into a new list. With the predicate next_level_segments(List of Start-, Endcoordinates) I would like to calculate four lists of four...
Iterating List in Prolog Iterating List in Prolog prolog Iterating List Prolog next_level_segments Start Endcoordinates Ex-Sx Ey-Sy X2-Sx Y2-Ey Phi1 Y2-Sy Phi1-240 RLs Iterating List in Prolog I would like to iterate a list in Prolog an write a generated result into a new list. With the predicate next_level_segments(Li...
[ -0.0107421875, -0.00372314453125, 0.00347900390625, -0.00775146484375, -0.018798828125, 0.0030975341796875, -0.004058837890625, 0.00592041015625, 0.01177978515625, -0.0096435546875, 0.0076904296875, 0.007537841796875, -0.00396728515625, 0.0029754638671875, 0.0081787109375, 0.0034637451...
[ 87, 67, 98767, 32036, 1250, 4867, 502, 11737, 67919, 25398, 13794, 18878, 587, 43297, 5443, 425, 29807, 65183, 18504, 990, 53, 49039, 418, 2839, 30121, 1884, 17, 8560, 5303, 23, 33022, 139392, 16750, 3525, 1653, 2063, 154663, 74481, 22759, ...
[ 0.0751953125, 0.195068359375, 0.1683349609375, 0.213623046875, 0.186767578125, 0.2474365234375, 0.104736328125, 0.1593017578125, 0.1783447265625, 0.1796875, 0.1461181640625, 0.1268310546875, 0.03863525390625, 0.1715087890625, 0.1005859375, 0.07232666015625, 0.03790283203125, 0.0926...
embed
13785922_c0
13785922
prolog
0
Title: Embedding SWI-Prolog in a dll Problem title: Embedding SWI-Prolog in a dll Tags: c%2B%2B, dll, swi-prolog, prolog Problem: Embedding SWI-Prolog in a dll I'm building a C++ library (windows, DLL) and I'd like to embed swi-prolog for some functionalities. What I'm doing is: #include <Windows.h> #include <SWI-Prolo...
Embedding SWI-Prolog in a dll Embedding SWI-Prolog in a dll c%2B%2B dll swi-prolog prolog Embedding SWI-Prolog Windows.h SWI-Prolog.h BOOL WINAPI DllMain HINSTANCE DLL DWORD LPVOID DLL_PROCESS_ATTACH libswipl.dll _putenv SWI_HOME_DIR Program Files x86 PL_initialise PL_halt DLL_PROCESS_DETACH PL_cleanup DLL_THREAD_ATTAC...
[ 0.002349853515625, 0.00238037109375, -0.006561279296875, 0.007049560546875, -0.024658203125, -0.005615234375, 0.003997802734375, -0.005462646484375, -0.0036773681640625, -0.05078125, -0.0028228759765625, 0.0029296875, -0.027099609375, 0.029541015625, 0.0181884765625, 0.0024871826171875...
[ 2775, 372, 59725, 159, 38969, 9, 10752, 4867, 23, 10, 81717, 501, 571, 91, 2452, 3454, 502, 3773, 127, 137142, 108568, 74220, 1181, 168793, 110997, 75700, 23708, 23256, 194695, 13739, 25474, 2424, 71, 7077, 334, 841, 91245, 123237, 7663, ...
[ 0.08697509765625, 0.236328125, 0.04632568359375, 0.1024169921875, 0.27099609375, 0.0662841796875, 0.1697998046875, 0.2242431640625, 0.08392333984375, 0.033660888671875, 0.26318359375, 0.0137939453125, 0.0252838134765625, 0.044708251953125, 0.255615234375, 0.1644287109375, 0.148193359...
embed
76869544_c0
76869544
prolog
0
Title: using assertz() and retract() in breadth-first search Problem title: using assertz() and retract() in breadth-first search Tags: breadth-first-search, prolog Problem: using assertz() and retract() in breadth-first search I am trying to write breadth-first search in SWI Prolog using assertz() and retract(). I am ...
using assertz() and retract() in breadth-first search using assertz() and retract() in breadth-first search breadth-first-search prolog assertz bfs_solve Solution initial_state Start Node Path RestPaths NewPaths Paths1 NewNode Tail Head using assertz() and retract() in breadth-first search I am trying to write breadth-...
[ 0.0150146484375, 0.0089111328125, 0.004730224609375, 0.0189208984375, -0.0185546875, -0.0157470703125, -0.01263427734375, -0.00518798828125, -0.0166015625, -0.03076171875, 0.03076171875, 0.01171875, -0.004608154296875, 0.003692626953125, 0.013427734375, 0.00113677978515625, 0.0074768...
[ 17368, 237, 33657, 169, 136, 41499, 15390, 179967, 927, 13448, 271, 33938, 132, 23, 86250, 502, 4867, 876, 17447, 86918, 187895, 61475, 61340, 13794, 438, 112, 108421, 49756, 10519, 2356, 683, 418, 5021, 1218, 379, 44816, 33022, 159, 38969,...
[ 0.05303955078125, 0.1007080078125, 0.2293701171875, 0.20556640625, 0.05987548828125, 0.2005615234375, 0.1907958984375, 0.1964111328125, 0.1241455078125, 0.1563720703125, 0.120361328125, 0.21875, 0.039581298828125, 0.009674072265625, 0.1729736328125, 0.1258544921875, 0.189697265625, ...
embed
53209039_c0
53209039
prolog
0
Title: Printing all lists including empty lists in prolog Problem title: Printing all lists including empty lists in prolog Tags: prolog Problem: Printing all lists including empty lists in prolog I am very new to prolog and I am stuck with this situation for quite a while. I have these rules show_meal(Meals) :- findal...
Printing all lists including empty lists in prolog Printing all lists including empty lists in prolog prolog Printing show_meal Meals chosen_meal show_bread Breads chosen_bread show_meat Meats chosen_meat show_veggie Veggies chosen_veggie show_sauce Sauces chosen_sauce show_topup TopUps chosen_topup show_side Sides cho...
[ -0.0062255859375, -0.0164794921875, 0.0137939453125, 0.0179443359375, -0.0211181640625, 0.0260009765625, -0.00072479248046875, -0.020263671875, 0.004119873046875, 0.0274658203125, 0.00153350830078125, -0.00238037109375, -0.006500244140625, 0.0036163330078125, 0.0224609375, -0.011657714...
[ 39754, 214, 756, 5303, 26719, 201505, 502, 4867, 7639, 282, 289, 1215, 16765, 19667, 4134, 6499, 712, 94303, 124308, 16857, 18666, 6987, 13784, 4792, 53234, 2037, 8752, 24383, 80596, 151206, 24638, 79912, 5983, 23, 16648, 91736, 2967, 190647,...
[ 0.18359375, 0.024261474609375, 0.1048583984375, 0.2227783203125, 0.0222320556640625, 0.2264404296875, 0.1390380859375, 0.2015380859375, 0.1336669921875, 0.1065673828125, 0.0242462158203125, 0.0908203125, 0.0302276611328125, 0.0147552490234375, 0.04876708984375, 0.055267333984375, 0.0...
embed
38154905_c0
38154905
prolog
0
Title: get the descending order of cost by writing the name of senders in query Problem title: get the descending order of cost by writing the name of senders in query Tags: prolog Problem: get the descending order of cost by writing the name of senders in query I need To give a list of senders by making Prolog rule to...
get the descending order of cost by writing the name of senders in query get the descending order of cost by writing the name of senders in query prolog Sender Receiver Date Cost_of_sending_a_message get the descending order of cost by writing the name of senders in query I need To give a list of senders by making Prol...
[ 0.02783203125, 0.0299072265625, -0.01239013671875, 0.029541015625, -0.0034027099609375, 0.018798828125, -0.00408935546875, 0.01422119140625, -0.00186920166015625, -0.034423828125, 0.0262451171875, -0.014404296875, 0.0023040771484375, 0.0054931640625, 0.007354736328125, 0.01409912109375...
[ 2046, 60887, 214, 12989, 111, 11034, 32562, 9351, 59146, 7, 23, 41, 1294, 502, 4867, 24044, 56, 93908, 814, 25512, 63099, 4390, 184, 33770, 74157, 8337, 5303, 1250, 79986, 7639, 33120, 25534, 135834, 26008, 30646, 29568, 98320, 75935, 35064...
[ 0.06201171875, 0.220947265625, 0.09521484375, 0.204833984375, 0.0789794921875, 0.19140625, 0.150634765625, 0.11376953125, 0.150146484375, 0.0911865234375, 0.057769775390625, 0.1253662109375, 0.083251953125, 0.106689453125, 0.17919921875, 0.072265625, 0.0469970703125, 0.041656494140...
embed
40944123_c0
40944123
prolog
0
Title: Equating nodes in prolog? Problem title: Equating nodes in prolog? Tags: tree, recursion, prolog Problem: Equating nodes in prolog? I'm working on a small function which checks to see if a tree is just a reversed version of another tree. For example, 1 1 2 3 = 3 2 1 1 My code is just versions of the following: t...
Equating nodes in prolog? Equating nodes in prolog? tree recursion prolog Equating Leaf1 Leaf2 node1 Node2 Node3 Node4 ERROR Arithmetic Equating nodes in prolog? I'm working on a small function which checks to see if a tree is just a reversed version of another tree. For example, My code is just versions of the followi...
[ 0.00360107421875, 0.0093994140625, -0.0042724609375, 0.007049560546875, 0.01129150390625, 0.009033203125, -0.01361083984375, -0.015380859375, 0.006134033203125, -0.025390625, 0.0032958984375, 0.0264892578125, 0.000308990478515625, -0.0120849609375, 0.03076171875, -0.014404296875, 0.0...
[ 241, 90065, 214, 110, 988, 23, 502, 4867, 53201, 195625, 1830, 636, 2407, 418, 304, 112, 438, 363, 617, 151206, 24638, 8962, 20697, 32354, 12765, 1957, 2174, 83, 39531, 5281, 11389, 15700, 18151, 25632, 18231, 44978, 7225, 6626, 31358, 10...
[ 0.04949951171875, 0.2196044921875, 0.106201171875, 0.18994140625, 0.2060546875, 0.04827880859375, 0.161376953125, 0.2376708984375, 0.196533203125, 0.1610107421875, 0.0255279541015625, 0.0272369384765625, 0.1396484375, 0.00738525390625, 0.048004150390625, 0.042694091796875, 0.08618164...
embed
26449516_c0
26449516
prolog
0
Title: Writing onto a file in Prolog Problem title: Writing onto a file in Prolog Tags: file, prolog Problem: Writing onto a file in Prolog Hi I have the following code: show_result(Squares,MaxRow,MaxCol) :- show_result(Squares,MaxRow,MaxCol,1), nl. show_result(_,MaxRow,_,Row) :- Row > MaxRow, !. show_result(Squares,Ma...
Writing onto a file in Prolog Writing onto a file in Prolog file prolog Writing Prolog show_result Squares MaxRow MaxCol Row Row1 Col Col1 SolutionFile Stream Writing onto a file in Prolog Hi I have the following code: When I run the code it shows the correct output on the screen. But I want to write it to a file for w...
[ 0.0213623046875, 0.00823974609375, 0.015869140625, -0.0025482177734375, -0.00958251953125, -0.0029296875, -0.014404296875, -0.003997802734375, 0.0118408203125, 0.00933837890625, 0.005523681640625, 0.00872802734375, -0.002716064453125, -0.002899169921875, 0.01220703125, -0.0145263671875...
[ 213185, 98, 188, 11435, 1250, 4867, 502, 7639, 2109, 7136, 68305, 9920, 12724, 78457, 96190, 11554, 187895, 174350, 115061, 25632, 18151, 11675, 45831, 26785, 140992, 49119, 3444, 33022, 47, 73197, 30646, 9774, 1284, 18, 23937, 15549, 59121 ]
[ 0.1962890625, 0.13525390625, 0.182373046875, 0.162353515625, 0.1390380859375, 0.2264404296875, 0.08837890625, 0.048583984375, 0.039093017578125, 0.0928955078125, 0.08441162109375, 0.0389404296875, 0.05975341796875, 0.0775146484375, 0.1141357421875, 0.04949951171875, 0.08837890625, ...
embed
12747324_c0
12747324
prolog
0
Title: Prolog query infinite search Problem title: Prolog query infinite search Tags: prolog, stack-overflow, nfa Problem: Prolog query infinite search I am a beginner to Prolog and I would like to ask a question about Prolog. My program is based on non-deterministic finite-state automaton. the start state is S0 and th...
Prolog query infinite search Prolog query infinite search prolog stack-overflow nfa Prolog Prolog query infinite search I am a beginner to Prolog and I would like to ask a question about Prolog. My program is based on non-deterministic finite-state automaton. the start state is S0 and the final state is S3 . The diagra...
[ 0.0341796875, 0.0260009765625, -0.00151824951171875, 0.0234375, -0.0196533203125, 0.002410888671875, 0.007598876953125, -0.0169677734375, 0.0003223419189453125, -0.0517578125, 0.0274658203125, -0.00750732421875, 0.00058746337890625, 0.00897216796875, 0.0174560546875, 0.021240234375, ...
[ 1250, 4867, 41, 1294, 54241, 13, 33938, 502, 177261, 5465, 118664, 653, 1021, 1679, 1528, 35509, 351, 30524, 94418, 61340, 11408, 191, 4034, 11341, 159, 2389, 2704, 363, 117233, 2174, 79315, 238, 5608, 1884, 1653, 2063, 26946, 866, 339, 7...
[ 0.180419921875, 0.2666015625, 0.15380859375, 0.16162109375, 0.154296875, 0.069091796875, 0.2364501953125, 0.1419677734375, 0.1629638671875, 0.1148681640625, 0.268798828125, 0.0177001953125, 0.174560546875, 0.037200927734375, 0.08551025390625, 0.06103515625, 0.003143310546875, 0.058...
embed
39879089_c0
39879089
prolog
0
Title: Unwated Looping with a simple family tree Prolog Program Problem title: Unwated Looping with a simple family tree Prolog Program Tags: prolog Problem: Unwated Looping with a simple family tree Prolog Program A strange problem presents itself in the programme as when some of the clauses such as uncle,aunt and cou...
Unwated Looping with a simple family tree Prolog Program Unwated Looping with a simple family tree Prolog Program prolog Unwated Looping Prolog Program Unwated Looping with a simple family tree Prolog Program A strange problem presents itself in the programme as when some of the clauses such as uncle,aunt and cousin ar...
[ 0.0281982421875, -0.0031890869140625, -0.003814697265625, 0.00958251953125, -0.009765625, 0.00921630859375, 0.005889892578125, 0.01324462890625, 0.012451171875, -0.052490234375, -0.006378173828125, -0.0216064453125, -0.0098876953125, 0.021240234375, 0.03271484375, -0.01495361328125, ...
[ 992, 634, 3674, 199694, 214, 678, 8781, 14449, 53201, 1250, 4867, 7663, 502, 114453, 2967, 13379, 26693, 3060, 70731, 51, 11030, 9109, 193429, 11814, 35166, 171259, 959, 12684, 60715, 272, 22042, 5518, 990, 5608, 8337, 756, 3395, 83, 111, ...
[ 0.0750732421875, 0.14501953125, 0.1226806640625, 0.175537109375, 0.1082763671875, 0.046661376953125, 0.1600341796875, 0.06201171875, 0.1998291015625, 0.1077880859375, 0.165283203125, 0.1142578125, 0.07415771484375, 0.11083984375, 0.13427734375, 0.030487060546875, 0.1729736328125, 0...
embed
67435836_c0
67435836
prolog
0
Title: Handle existential variable in the head of rules Problem title: Handle existential variable in the head of rules Tags: datalog, java, ontology, owl, prolog Problem: Handle existential variable in the head of rules I want to translate and query the anonymous super classes of ontology into datalog rules. For insta...
Handle existential variable in the head of rules Handle existential variable in the head of rules datalog java ontology owl prolog Handle Chair Department Deaprtment SELECT WHERE rdf:type ub:Chair ub:Department ub:worksFor ub:subOrganizationOf www.University0.edu Handle existential variable in the head of rules I want ...
[ 0.0164794921875, 0.008544921875, 0.00531005859375, 0.021728515625, 0.016357421875, 0.01348876953125, 0.0006866455078125, 0.00110626220703125, 0.0034637451171875, -0.048828125, 0.021240234375, -0.004791259765625, 0.005859375, -0.008056640625, 0.00933837890625, -0.0169677734375, -0.002...
[ 10639, 133, 99707, 15403, 77336, 23, 10336, 111, 91736, 2053, 4867, 79, 330, 3283, 25443, 36, 27751, 502, 4841, 481, 63557, 262, 2631, 3198, 6755, 144832, 30096, 4216, 420, 50986, 5829, 62467, 17365, 18244, 22144, 100222, 132887, 1426, 6530...
[ 0.1923828125, 0.1185302734375, 0.208251953125, 0.1544189453125, 0.26220703125, 0.07861328125, 0.21240234375, 0.17041015625, 0.206787109375, 0.1068115234375, 0.2056884765625, 0.0997314453125, 0.164306640625, 0.1226806640625, 0.12060546875, 0.035308837890625, 0.1632080078125, 0.09716...
embed
79404579_c0
79404579
prolog
0
Title: Scheduling Exercise Problem title: Scheduling Exercise Tags: prolog Problem: Scheduling Exercise I have to meet 6 project students in pairs and I have 3 slots in which I can do this, but there are some constraints. Let's call the students student1 etc and the slots slot1 etc. A higher-numbered slot occurs after ...
Scheduling Exercise Scheduling Exercise prolog Scheduling Exercise student1 student2 student3 student4 student5 student6 slot1 slot2 slot3 constraint1 _Slot2 _Slot3 student1-_ constraint2 student2-_ student3-_ constraint3 student4-_ constraint4 student6-_ meetings_one_two_three Generate Slot select_two_students S1_1 S1...
[ -0.01007080078125, 0.00994873046875, 0.0135498046875, 0.00885009765625, -0.0189208984375, -0.01385498046875, -0.03662109375, -0.01904296875, 0.013427734375, -0.0137939453125, -0.01483154296875, 0.00726318359375, 0.01708984375, 0.000030279159545898438, 0.005859375, 0.003631591796875, ...
[ 34702, 693, 2069, 155534, 502, 4867, 9836, 418, 304, 363, 617, 758, 910, 24897, 2816, 12631, 20268, 158, 18504, 27495, 41714, 3630, 55547, 107, 155370, 69623, 36849, 96610, 159, 115187, 192, 31304, 238778, 109339, 51620, 14653, 55426, 23356, ...
[ 0.1754150390625, 0.194091796875, 0.08349609375, 0.1710205078125, 0.124267578125, 0.1768798828125, 0.212890625, 0.068115234375, 0.09912109375, 0.102783203125, 0.119873046875, 0.0762939453125, 0.10626220703125, 0.1998291015625, 0.1649169921875, 0.138427734375, 0.0243988037109375, 0.0...
embed
30328433_c0
30328433
prolog
0
Title: Definition of a path/trail/walk Problem title: Definition of a path/trail/walk Tags: prolog, meta-predicate, graph-theory, transitive-closure Problem: Definition of a path/trail/walk Many predicates define some kind of an acyclic path built from edges defined via a binary relation, quite similarly to defining tr...
Definition of a path/trail/walk Definition of a path/trail/walk prolog meta-predicate graph-theory transitive-closure Definition Rel_2 Path meta_predicate R_2 _R_2 non_member Definition of a path/trail/walk Many predicates define some kind of an acyclic path built from edges defined via a binary relation, quite similar...
[ 0.0067138671875, 0.01708984375, 0.00750732421875, -0.0087890625, 0.003936767578125, 0.0009765625, -0.0181884765625, -0.0157470703125, 0.0196533203125, -0.047119140625, 0.00518798828125, 0.01324462890625, -0.032470703125, 0.0091552734375, 0.01153564453125, 0.0216064453125, 0.003417968...
[ 155455, 111, 10, 60875, 64, 1517, 379, 94449, 502, 4867, 23550, 19714, 2063, 41382, 2347, 62621, 5844, 170224, 141, 304, 108421, 627, 351, 39, 27417, 52455, 1653, 1636, 61924, 187830, 88303, 1295, 121303, 2394, 41911, 13204, 189534, 80934, ...
[ 0.2139892578125, 0.0626220703125, 0.056243896484375, 0.2607421875, 0.1258544921875, 0.2005615234375, 0.180908203125, 0.251953125, 0.09039306640625, 0.1422119140625, 0.1326904296875, 0.1326904296875, 0.186767578125, 0.197265625, 0.07794189453125, 0.114013671875, 0.0933837890625, 0.1...
embed
55239942_c0
55239942
prolog
0
Title: Is there a Prolog name for moving a functor name in to an argument? Problem title: Is there a Prolog name for moving a functor name in to an argument? Tags: prolog, terminology Problem: Is there a Prolog name for moving a functor name in to an argument? It is not uncommon to see data in Prolog written with a fun...
Is there a Prolog name for moving a functor name in to an argument? Is there a Prolog name for moving a functor name in to an argument? prolog terminology Prolog Is there a Prolog name for moving a functor name in to an argument? It is not uncommon to see data in Prolog written with a functor, e.g. but Prolog can also ...
[ 0.032470703125, 0.0003662109375, 0.0167236328125, 0.018798828125, 0.001983642578125, 0.017333984375, 0.0059814453125, 0.003173828125, -0.00897216796875, -0.0184326171875, 0.005218505859375, 0.00007724761962890625, -0.0218505859375, -0.004608154296875, 0.00058746337890625, -0.0167236328...
[ 2685, 10, 1250, 4867, 9351, 100, 98567, 7477, 18770, 23, 47, 10750, 142, 502, 18614, 277, 3796, 1957, 2053, 59121, 678, 9433, 109133, 1295, 3934, 11814, 98363, 18151, 117176, 26698, 209806, 5570, 15549, 32316, 43581, 29458, 31635, 4527, 220...
[ 0.046875, 0.0482177734375, 0.1810302734375, 0.25830078125, 0.182373046875, 0.029571533203125, 0.1878662109375, 0.20947265625, 0.1973876953125, 0.1611328125, 0.11669921875, 0.273681640625, 0.0289154052734375, 0.126953125, 0.035400390625, 0.0015869140625, 0.0161895751953125, 0.017150...
embed
61310606_c0
61310606
prolog
0
Title: Find an &quot;infix&quot; of a list in Prolog - order matters Problem title: Find an &quot;infix&quot; of a list in Prolog - order matters Tags: prolog Problem: Find an "infix" of a list in Prolog - order matters A question from someone who knows Prolog for a week=) I am writing some prolog command infix(Inf,Lis...
Find an &quot;infix&quot; of a list in Prolog - order matters Find an &quot;infix&quot; of a list in Prolog - order matters prolog Find Prolog Inf List delete_first Sub Find an "infix" of a list in Prolog - order matters A question from someone who knows Prolog for a week=) I am writing some prolog command infix(Inf,Li...
[ 0.017578125, -0.00482177734375, 0.038330078125, -0.00160980224609375, -0.0174560546875, 0.0019683837890625, -0.0052490234375, 0.0137939453125, 0.0302734375, -0.0150146484375, 0.0208740234375, 0.01171875, -0.0084228515625, 0.002960205078125, 0.0042724609375, 0.0162353515625, 0.0233154...
[ 26040, 73, 55923, 5303, 1250, 4867, 12989, 26866, 111, 23, 502, 46757, 32036, 154109, 13448, 271, 8273, 9655, 93002, 5895, 32562, 75101, 4153, 420, 154663, 12765, 2174, 15214, 26168, 15700, 1328, 7108, 86595, 3564, 26950, 133063, 82449, 98320...
[ 0.1221923828125, 0.1748046875, 0.304931640625, 0.1993408203125, 0.189453125, 0.199462890625, 0.2078857421875, 0.2034912109375, 0.04681396484375, 0.176025390625, 0.1156005859375, 0.218017578125, 0.1778564453125, 0.1827392578125, 0.067138671875, 0.0235137939453125, 0.2017822265625, 0...
embed
61099308_c0
61099308
prolog
0
Title: Logic programming in python Problem title: Logic programming in python Tags: python, prolog, logic-programming Problem: Logic programming in python I am working on a project that is mainly based on logic programming. I have predifined related rules and facts that the program uses to calculate probabilities then ...
Logic programming in python Logic programming in python python prolog logic-programming Logic has_lot_work to_smoke Prob to_have_asthma Logic programming in python I am working on a project that is mainly based on logic programming. I have predifined related rules and facts that the program uses to calculate probabilit...
[ 0.0277099609375, 0.01263427734375, 0.004180908203125, 0.01519775390625, -0.007171630859375, 0.0111083984375, -0.01092529296875, 0.004974365234375, -0.000713348388671875, -0.06884765625, 0.01519775390625, -0.003387451171875, -0.017822265625, -0.0150146484375, 0.010009765625, 0.011657714...
[ 50592, 238, 56037, 23, 17198, 50828, 449, 502, 4867, 62775, 28966, 1556, 12631, 18244, 47, 26634, 350, 1250, 275, 68991, 162, 927, 192, 20697, 13452, 35509, 1653, 27430, 91736, 15824, 1528, 74481, 37242, 31075, 114689, 2053, 51158, 36279, 5...
[ 0.26171875, 0.08050537109375, 0.191162109375, 0.061126708984375, 0.1424560546875, 0.1776123046875, 0.029571533203125, 0.171875, 0.2352294921875, 0.239013671875, 0.1768798828125, 0.06878662109375, 0.169677734375, 0.1551513671875, 0.06219482421875, 0.1878662109375, 0.161376953125, 0....
embed
22591030_c1
22591030
prolog
1
_Strip,".CEL",CharSample), name(Sample_Strip,Char_Sample_Strip). %IndexOf(MyList, MyElement, MyIndex). indexOf([Element|_], Element, 0). indexOf([_|Tail], Element, Index):- indexOf(Tail, Element, Index1), Index is Index1+1. This seems to work well, but does not work or it is so slow to be unusable with a findall. Any i...
_Strip,".CEL",CharSample), name(Sample_Strip,Char_Sample_Strip). %IndexOf(MyList, MyElement, MyIndex). indexOf([Element|_], Element, 0). indexOf([_|Tail], Element, Index):- indexOf(Tail, Element, Index1), Index is Index1+1. This seems to work well, but does not work or it is so slow to be unusable with a findall. Any i...
[ 0.015869140625, -0.0038299560546875, 0.0179443359375, 0.02197265625, -0.01513671875, -0.006256103515625, 0.00787353515625, 0.0072021484375, 0.031494140625, -0.017822265625, 0.0002574920654296875, 0.00127410888671875, 0.003997802734375, 0.014404296875, 0.008056640625, -0.0108642578125, ...
[ 101, 294, 59623, 85483, 84068, 5464, 33209, 9351, 39659, 132887, 31852, 154663, 2646, 19929, 63262, 48325, 757, 9874, 379, 31471, 17727, 83, 21748, 3293, 37202, 4488, 5299, 959, 221, 72803, 223, 7413, 5584, 2967, 61924, 20763, 334, 39116, 2...
[ 0.02215576171875, 0.00445556640625, 0.2498779296875, 0.16796875, 0.1470947265625, 0.07257080078125, 0.1431884765625, 0.014984130859375, 0.0960693359375, 0.2158203125, 0.047821044921875, 0.157958984375, 0.0198822021484375, 0.1043701171875, 0.1317138671875, 0.1505126953125, 0.040649414...
embed
52464619_c0
52464619
prolog
0
Title: Using JPL with SWI-Prolog on macOS Problem title: Using JPL with SWI-Prolog on macOS Tags: java, swi-prolog, jpl, prolog, dylib Problem: Using JPL with SWI-Prolog on macOS I'm trying to use JPL with SWI-Prolog on macOS High Sierra and I'm having troubles. In fact, at first the libjpl.dylib was not found so I add...
Using JPL with SWI-Prolog on macOS Using JPL with SWI-Prolog on macOS java swi-prolog jpl prolog dylib java.lang.UnsatisfiedLinkError Using JPL SWI-Prolog libjpl.dylib java.library.path Djava.library.path Applications SWI-Prolog.app Contents x86_64-darwin15.6.0 Library executable_path libswipl.dylib Referenced Reason j...
[ -0.0020294189453125, 0.017578125, -0.000904083251953125, 0.0010986328125, -0.0235595703125, -0.0047607421875, -0.003875732421875, -0.000675201416015625, -0.005340576171875, -0.0274658203125, -0.0089111328125, -0.0037078857421875, -0.017333984375, -0.018310546875, 0.0125732421875, 0.005...
[ 345, 6953, 821, 21130, 678, 159, 38969, 9, 10752, 4867, 98, 19138, 7285, 79, 330, 2452, 3454, 1647, 2424, 502, 2160, 5612, 3066, 50958, 64287, 18468, 25474, 170, 1459, 150, 2844, 128405, 24071, 104921, 9007, 15276, 13307, 1506, 9494, 1837...
[ 0.0948486328125, 0.00213623046875, 0.1685791015625, 0.251220703125, 0.08197021484375, 0.0841064453125, 0.26806640625, 0.03948974609375, 0.1778564453125, 0.2152099609375, 0.0218963623046875, 0.1474609375, 0.1317138671875, 0.1207275390625, 0.1934814453125, 0.24365234375, 0.1591796875, ...
embed
53887198_c0
53887198
prolog
0
Title: Pyswip ERROR: The system was unable to find the specified registry key or value Problem title: Pyswip ERROR: The system was unable to find the specified registry key or value Tags: pycharm, python, prolog Problem: Pyswip ERROR: The system was unable to find the specified registry key or value I want to use pyswi...
Pyswip ERROR: The system was unable to find the specified registry key or value Pyswip ERROR: The system was unable to find the specified registry key or value pycharm python prolog IndexError pyswip Prolog pyswip.prolog pyswip.core ERROR prolog.assertz Traceback File Users Coregame PycharmProjects Project1 test.py __i...
[ -0.00640869140625, 0.01348876953125, -0.00408935546875, 0.01513671875, -0.02880859375, 0.01373291015625, -0.0196533203125, -0.021240234375, -0.0091552734375, -0.0159912109375, 0.00927734375, -0.00665283203125, 0.002838134765625, -0.0230712890625, 0.01458740234375, 0.00592041015625, 0...
[ 27512, 7, 2452, 254, 151206, 24638, 5426, 51, 2886, 7413, 58735, 297, 21478, 53, 22799, 707, 34292, 17198, 9254, 39, 50828, 502, 4867, 31471, 18468, 57756, 1250, 3454, 30854, 33657, 169, 4937, 12620, 42724, 53400, 31365, 35311, 223353, 2733...
[ 0.167236328125, 0.07086181640625, 0.2486572265625, 0.196533203125, 0.16015625, 0.0714111328125, 0.12060546875, 0.0257110595703125, 0.1171875, 0.1162109375, 0.170654296875, 0.0161285400390625, 0.1748046875, 0.05413818359375, 0.1558837890625, 0.04217529296875, 0.1336669921875, 0.1063...
embed
5595077_c0
5595077
prolog
0
Title: Constraint Programming library or syntax issue in SWI-Prolog Problem title: Constraint Programming library or syntax issue in SWI-Prolog Tags: prolog, clpfd Problem: Constraint Programming library or syntax issue in SWI-Prolog I'm just trying to figure out constraint programming in SWI-Prolog, looking at this tu...
Constraint Programming library or syntax issue in SWI-Prolog Constraint Programming library or syntax issue in SWI-Prolog prolog clpfd Constraint Programming SWI-Prolog use_module ERROR Syntax Operator Constraint Programming library or syntax issue in SWI-Prolog I'm just trying to figure out constraint programming in S...
[ 0.009033203125, 0.007293701171875, 0.014404296875, 0.0220947265625, -0.00390625, -0.005706787109375, -0.0087890625, -0.00262451171875, -0.006317138671875, -0.046875, -0.01434326171875, -0.0238037109375, -0.0034942626953125, -0.00347900390625, 0.01251220703125, -0.007415771484375, -0....
[ 1657, 2816, 4288, 27958, 35773, 1294, 6002, 86531, 31089, 159, 38969, 10752, 4867, 502, 39557, 71, 4527, 83279, 151206, 19010, 150922, 26366, 158, 56037, 449, 57143, 81415, 11935, 113972, 172895, 6817, 3587, 19298, 44691, 99201, 5117, 27781, ...
[ 0.1116943359375, 0.22412109375, 0.15283203125, 0.173095703125, 0.22119140625, 0.06866455078125, 0.1373291015625, 0.1534423828125, 0.1357421875, 0.052337646484375, 0.2232666015625, 0.1295166015625, 0.1683349609375, 0.06292724609375, 0.027008056640625, 0.057220458984375, 0.039123535156...
embed
16272255_c0
16272255
prolog
0
Title: Finding The Cause of an Infinite Loop in Prolog Problem title: Finding The Cause of an Infinite Loop in Prolog Tags: debugging, infinite, loops, prolog Problem: Finding The Cause of an Infinite Loop in Prolog I'm sorry to be asking a question as dumb as this, but I'm stuck and I'm not sure what's causing the pro...
Finding The Cause of an Infinite Loop in Prolog Finding The Cause of an Infinite Loop in Prolog debugging infinite loops prolog X Y Finding Cause Infinite Loop Prolog Tail Fill Finding The Cause of an Infinite Loop in Prolog I'm sorry to be asking a question as dumb as this, but I'm stuck and I'm not sure what's causin...
[ 0.0033111572265625, 0.00384521484375, -0.01043701171875, 0.0120849609375, -0.009521484375, 0.018798828125, -0.0169677734375, -0.00201416015625, 0.010986328125, -0.017578125, 0.019287109375, -0.015380859375, -0.0111083984375, -0.0177001953125, 0.0203857421875, 0.02001953125, 0.0072631...
[ 26040, 2041, 4032, 111, 134322, 13, 199694, 1250, 4867, 8, 978, 54241, 40956, 502, 990, 1218, 379, 140423, 59090, 6492, 179933, 9077, 216806, 2967, 373, 27853, 1528, 134598, 7413, 60875, 26292, 1632, 66161, 116, 24810, 201, 138, 144851, 105...
[ 0.08941650390625, 0.128173828125, 0.119140625, 0.0301513671875, 0.159912109375, 0.04345703125, 0.2022705078125, 0.15478515625, 0.226318359375, 0.031036376953125, 0.07049560546875, 0.166748046875, 0.192626953125, 0.0985107421875, 0.031402587890625, 0.0880126953125, 0.043731689453125, ...
embed
23539327_c0
23539327
prolog
0
Title: transitive closure over a symmetric relation in prolog Problem title: transitive closure over a symmetric relation in prolog Tags: prolog, transitive-closure Problem: transitive closure over a symmetric relation in prolog I am a prolog beginner and I want to create the "brother" relation. The relation should be ...
transitive closure over a symmetric relation in prolog transitive closure over a symmetric relation in prolog prolog transitive-closure r_brother s_brother t_brother IntermediateNodes transitive closure over a symmetric relation in prolog I am a prolog beginner and I want to create the "brother" relation. The relation ...
[ -0.0025787353515625, 0.01904296875, 0.0189208984375, -0.0111083984375, 0.000530242919921875, -0.032470703125, -0.0284423828125, 0.0167236328125, 0.008056640625, -0.037841796875, 0.007171630859375, 0.0289306640625, 0.006378173828125, -0.00005793571472167969, 0.0220947265625, 0.010131835...
[ 62621, 5844, 170224, 645, 230612, 238, 41911, 502, 4867, 1690, 6369, 9319, 91, 808, 5337, 12333, 67, 5021, 988, 1679, 28282, 5608, 2174, 82953, 37710, 662, 425, 29568, 74070, 109734, 86735, 56824, 106935, 183871, 18151, 454, 62822, 43240, 5...
[ 0.206787109375, 0.1580810546875, 0.230224609375, 0.096435546875, 0.2408447265625, 0.114990234375, 0.1982421875, 0.1229248046875, 0.2181396484375, 0.0732421875, 0.1502685546875, 0.1610107421875, 0.06927490234375, 0.08026123046875, 0.0211639404296875, 0.109375, 0.008148193359375, 0.1...
embed
29103463_c0
29103463
prolog
0
Title: t to doSwi-Prolog I can&#x27;t solve exercise Problem title: t to doSwi-Prolog I can&#x27;t solve exercise Tags: prolog Problem: t to doSwi-Prolog I can't solve exercise Pizzeria offers five types of pizzas: Hawaii - 25.90 Capricciosa - 20.90 Margherita - 9.90 Pepperoni - 27.90 Wege - 14.90 John, Anna and Kate m...
t to doSwi-Prolog I can&#x27;t solve exercise t to doSwi-Prolog I can&#x27;t solve exercise prolog Person Cost Pizza each_paid Cost2 Head Tail t to doSwi-Prolog I can't solve exercise Pizzeria offers five types of pizzas: Hawaii - 25.90 Capricciosa - 20.90 Margherita - 9.90 Pepperoni - 27.90 Wege - 14.90 John, Anna and...
[ 0.005218505859375, 0.019287109375, 0.012451171875, 0.02880859375, -0.01068115234375, 0.0030670166015625, -0.0150146484375, 0.01556396484375, 0.02099609375, -0.034423828125, -0.007415771484375, 0.01019287109375, -0.0289306640625, 0.01422119140625, 0.004669189453125, 0.01409912109375, ...
[ 808, 47, 54, 2452, 10752, 4867, 831, 3768, 18, 86869, 81979, 502, 15270, 63099, 78011, 12638, 138925, 304, 44816, 1218, 3065, 24249, 1651, 64600, 43606, 52895, 32960, 138393, 20, 11653, 5039, 143128, 28984, 7085, 33346, 3334, 913, 3569, 189...
[ 0.060089111328125, 0.101318359375, 0.052337646484375, 0.1605224609375, 0.1197509765625, 0.1754150390625, 0.0833740234375, 0.0479736328125, 0.060333251953125, 0.165283203125, 0.185791015625, 0.111328125, 0.1417236328125, 0.211669921875, 0.26171875, 0.1495361328125, 0.212158203125, 0...
embed
30709025_c0
30709025
prolog
0
Title: freeze for more than one variable Problem title: freeze for more than one variable Tags: prolog, prolog-coroutining Problem: freeze for more than one variable I tried to write a predicate that takes a list and converts it to a balanced tree. My code looks as follows: /* make_tree(list, tree) * * list: list with ...
freeze for more than one variable freeze for more than one variable prolog prolog-coroutining make_tree split_half Acc Tree freeze for more than one variable I tried to write a predicate that takes a list and converts it to a balanced tree. My code looks as follows: and this works when called like: but it doesn't work ...
[ 0.023681640625, 0.00115966796875, -0.000423431396484375, -0.00494384765625, 0.002716064453125, 0.0120849609375, -0.0223388671875, 0.0086669921875, 0.00982666015625, -0.0380859375, 0.01068115234375, -0.005615234375, 0.01953125, 0.02099609375, 0.00811767578125, 0.021240234375, 0.012878...
[ 4092, 731, 100, 1286, 3501, 1632, 77336, 502, 4867, 6056, 14653, 3249, 62600, 65450, 4200, 29899, 101344, 37842, 33022, 1653, 2063, 67, 51776, 5303, 96760, 40197, 71, 53201, 18151, 33342, 43240, 35839, 1884, 22027, 18, 4488, 159029, 3789, 6...
[ 0.18994140625, 0.19921875, 0.0958251953125, 0.111083984375, 0.08978271484375, 0.0809326171875, 0.2408447265625, 0.0718994140625, 0.1605224609375, 0.0281829833984375, 0.00677490234375, 0.06878662109375, 0.220947265625, 0.1636962890625, 0.09417724609375, 0.09765625, 0.2349853515625, ...
embed
41527522_c0
41527522
prolog
0
Title: How to create a functor from a list in prolog? Problem title: How to create a functor from a list in prolog? Tags: prolog Problem: How to create a functor from a list in prolog? I'm new in Prolog and I try to understand some basic stuff. Generally, what I am trying to do is to return a functor for a given list. ...
How to create a functor from a list in prolog? How to create a functor from a list in prolog? prolog a How _team _first_runner _second_runner _runner _time total_time _race _total_time Times Result Head Tail SumOfTail Returns:T rank_teams _list_o_ranks Input Output Team Place How to create a functor from a list in prol...
[ 0.0145263671875, -0.01104736328125, -0.01116943359375, -0.0007476806640625, 0.0103759765625, -0.0103759765625, -0.01531982421875, -0.0072021484375, -0.000514984130859375, -0.03857421875, 0.0007781982421875, -0.0032501220703125, 0.006744384765625, -0.01239013671875, -0.005279541015625, ...
[ 11249, 28282, 10, 7477, 18770, 1295, 5303, 23, 502, 4867, 44420, 13448, 271, 142117, 191633, 6032, 3622, 99407, 1803, 19114, 126684, 44816, 1218, 36335, 132887, 9874, 379, 173340, 618, 30648, 6562, 31, 36467, 13538, 11399, 41076, 1250, 30646,...
[ 0.0618896484375, 0.1800537109375, 0.0272369384765625, 0.215576171875, 0.26513671875, 0.1031494140625, 0.2332763671875, 0.020050048828125, 0.1414794921875, 0.215087890625, 0.1297607421875, 0.0249786376953125, 0.006439208984375, 0.124267578125, 0.032867431640625, 0.075927734375, 0.0528...
embed
41138526_c0
41138526
prolog
0
Title: Converting Knowledge base to prolog Problem title: Converting Knowledge base to prolog Tags: logic, prolog Problem: Converting Knowledge base to prolog New Task: I have a set of objects aka fruits in my bag: apple(b). orange(c). pear(d). carrot(e). onion(f). pepper(g). And these are the rules: ∀x, Fruit(x) V Veg...
Converting Knowledge base to prolog Converting Knowledge base to prolog logic prolog Converting Knowledge Facts Converting Knowledge base to prolog New Task: I have a set of objects aka fruits in my bag: And these are the rules: ∀x, Fruit(x) V Vegetable(x) [everything is a fruit or vegetable] ∀x, Apple(x) -> Red(x) V G...
[ 0.0255126953125, -0.006103515625, -0.000762939453125, 0.01068115234375, 0.00579833984375, 0.01611328125, -0.02294921875, 0.00147247314453125, 0.0123291015625, -0.01055908203125, 0.003448486328125, -0.0101318359375, -0.005615234375, 0.000865936279296875, -0.0024566650390625, -0.00159454...
[ 1657, 814, 1916, 191428, 3647, 47, 502, 4867, 62775, 132640, 2356, 9598, 765, 5423, 111, 36746, 7, 15623, 93151, 23, 759, 6157, 70, 91736, 6, 165304, 425, 151958, 132, 16, 310, 149965, 2661, 13, 104643, 64113, 83, 10, 41896, 707, 55670,...
[ 0.042266845703125, 0.1551513671875, 0.050048828125, 0.179443359375, 0.223876953125, 0.095947265625, 0.166748046875, 0.2340087890625, 0.153076171875, 0.1900634765625, 0.0379638671875, 0.1370849609375, 0.0213165283203125, 0.056732177734375, 0.008056640625, 0.1673583984375, 0.0083312988...
embed
42865381_c0
42865381
prolog
0
Title: Recursive addition in Prolog Problem title: Recursive addition in Prolog Tags: prolog, recursion, addition, successor-arithmetics Problem: Recursive addition in Prolog Knowledge Base add(0,Y,Y). // clause 1 add(succ(X),Y,succ(Z)) :- add(X,Y,Z). // clause 2 Query add(succ(succ(succ(0))), succ(succ(0)), R) Trace C...
Recursive addition in Prolog Recursive addition in Prolog prolog recursion addition successor-arithmetics Recursive Prolog Call _G648 _G650 _G652 Exit Recursive addition in Prolog Knowledge Base Query Trace My Question I see how the recursive call in clause 2 strips the outermost succ() at each call for argument 1. I s...
[ 0.005889892578125, 0.0179443359375, 0.00762939453125, 0.020751953125, -0.00836181640625, 0.021728515625, -0.0023193359375, 0.00136566162109375, 0.01287841796875, -0.01458740234375, 0.02685546875, -0.00946044921875, -0.033203125, -0.004852294921875, 0.0341796875, -0.0067138671875, 0.0...
[ 853, 48650, 5844, 66044, 1250, 4867, 502, 195625, 39457, 42, 8962, 26265, 202400, 85399, 187065, 5443, 191428, 44978, 1957, 11782, 70731, 116, 43613, 7, 628, 32166, 5510, 166, 10060, 132, 99, 12638, 10750, 615, 15190, 1810, 56, 138, 58359, ...
[ 0.038299560546875, 0.2012939453125, 0.1602783203125, 0.1802978515625, 0.1373291015625, 0.2413330078125, 0.0941162109375, 0.198486328125, 0.1514892578125, 0.0189056396484375, 0.05645751953125, 0.130615234375, 0.172607421875, 0.1456298828125, 0.153564453125, 0.066162109375, 0.023895263...
embed
53654005_c0
53654005
prolog
0
Title: Is there a way to do size comparison? Problem title: Is there a way to do size comparison? Tags: prolog Problem: Is there a way to do size comparison? I have recently discovered the language Prolog and have been doing exercises on its basics. I am currently creating a database on animal classes like mammals , bi...
Is there a way to do size comparison? Is there a way to do size comparison? prolog warm_blooded cold_blooded has_fur has_feathers has_scales gives_birth_live lays_eggs produces_milk has_lungs Is there a way to do size comparison? I have recently discovered the language Prolog and have been doing exercises on its basics...
[ -0.00677490234375, -0.001861572265625, 0.006317138671875, 0.015625, -0.0103759765625, -0.0093994140625, -0.0002574920654296875, -0.00531005859375, 0.0029449462890625, -0.00019073486328125, 0.02392578125, -0.01129150390625, -0.003570556640625, -0.02783203125, 0.0218505859375, 0.00025749...
[ 2071, 2685, 10, 3917, 47, 54, 13267, 225490, 502, 4867, 24814, 91841, 297, 91097, 1556, 11443, 88981, 3334, 16275, 1577, 76199, 5720, 927, 24056, 21, 4778, 2507, 9405, 27489, 12397, 92, 11898, 7, 134053, 46876, 1250, 81979, 62822, 82424, ...
[ 0.029815673828125, 0.0833740234375, 0.07415771484375, 0.15576171875, 0.1080322265625, 0.1251220703125, 0.28515625, 0.2900390625, 0.155029296875, 0.247314453125, 0.111572265625, 0.1197509765625, 0.05938720703125, 0.1427001953125, 0.0909423828125, 0.1365966796875, 0.0859375, 0.09375,...
embed
78388214_c0
78388214
prolog
0
Title: need help making prolog program for song Problem title: need help making prolog program for song Tags: prolog, debugging Problem: need help making prolog program for song I need to write a prolog program for the song "Im my own grandpa", but its not working. Can anyone help me out. It needs to work in the GNU Pr...
need help making prolog program for song need help making prolog program for song prolog debugging Child Father Mother son_in_law Spouse Daughter Child1 Child2 Grandparent Grandchild Parent Uncle NieceNephew need help making prolog program for song I need to write a prolog program for the song "Im my own grandpa", but ...
[ 0.01336669921875, 0.0037689208984375, 0.007476806640625, 0.032470703125, -0.02001953125, 0.03076171875, -0.01446533203125, 0.014404296875, -0.00811767578125, -0.022216796875, -0.006103515625, -0.036865234375, -0.0179443359375, 0.004302978515625, 0.0052490234375, -0.003875732421875, 0...
[ 3871, 4358, 20662, 502, 4867, 1528, 100, 11531, 8, 978, 123829, 160960, 115217, 775, 19729, 23172, 4032, 46526, 304, 12801, 99547, 206, 38472, 170918, 992, 11030, 2942, 329, 20133, 33022, 10, 61637, 759, 10002, 9963, 763, 1284, 6863, 959, ...
[ 0.1187744140625, 0.166259765625, 0.1363525390625, 0.217041015625, 0.286865234375, 0.2403564453125, 0.143310546875, 0.2052001953125, 0.1248779296875, 0.14404296875, 0.1041259765625, 0.10986328125, 0.041900634765625, 0.009613037109375, 0.052459716796875, 0.043121337890625, 0.0512695312...
embed
16145119_c0
16145119
prolog
0
Title: Some doubts about declarative meaning of a program that prints a list of lists in Prolog Problem title: Some doubts about declarative meaning of a program that prints a list of lists in Prolog Tags: prolog Problem: Some doubts about declarative meaning of a program that prints a list of lists in Prolog Write a r...
Some doubts about declarative meaning of a program that prints a list of lists in Prolog Some doubts about declarative meaning of a program that prints a list of lists in Prolog prolog Some Prolog BASE CASE Call Fail Redo Exit Some doubts about declarative meaning of a program that prints a list of lists in Prolog The ...
[ 0.0078125, 0.0076904296875, 0.0021820068359375, 0.0150146484375, -0.01165771484375, 0.033447265625, -0.004486083984375, -0.01483154296875, -0.00162506103515625, -0.00116729736328125, 0.017333984375, 0.00102996826171875, -0.01171875, -0.0023651123046875, 0.001251220703125, 0.00167846679...
[ 92814, 7, 21635, 4935, 91084, 1528, 28412, 5303, 1250, 4867, 502, 335, 76783, 313, 26265, 190355, 6096, 31, 5443, 217, 29806, 154663, 79986, 58359, 3647, 7225, 201505, 33720, 11782, 17932, 1052, 12830, 436, 83, 191082, 34831, 70796, 617, 14...
[ 0.134033203125, 0.027008056640625, 0.185791015625, 0.10357666015625, 0.1654052734375, 0.1717529296875, 0.1773681640625, 0.2073974609375, 0.1729736328125, 0.2255859375, 0.0965576171875, 0.1011962890625, 0.111328125, 0.064453125, 0.10528564453125, 0.1219482421875, 0.09393310546875, 0...
embed
29994400_c0
29994400
prolog
0
Title: checking a variable against a list of attributes Problem title: checking a variable against a list of attributes Tags: attributes, list, member, prolog Problem: checking a variable against a list of attributes How can I change the predicates at the bottom to recursively parse through their lists and compare to X...
checking a variable against a list of attributes checking a variable against a list of attributes attributes list member prolog lives_near_water eats_meat eats_plants has_bushy_tail has_hair has_long_incisors can_fly has_hooked_beak has_feathers can_swim produces_milk gnaws_on_wood Rules animal_attribute Trest not_anim...
[ -0.0108642578125, 0.00262451171875, -0.005615234375, -0.00213623046875, 0.01129150390625, 0.02392578125, -0.00106048583984375, -0.000522613525390625, 0.00811767578125, -0.001495361328125, 0.0115966796875, 0.00323486328125, 0.0255126953125, 0.0023345947265625, 0.02685546875, 0.019165039...
[ 175199, 77336, 26548, 5303, 150380, 32786, 502, 4867, 60742, 86, 147, 36448, 28, 282, 48538, 1556, 4223, 3038, 46741, 75512, 25767, 4970, 831, 35121, 68336, 372, 88981, 2452, 27489, 12397, 7456, 25876, 139118, 26249, 257, 191145, 4804, 271, ...
[ 0.218017578125, 0.26708984375, 0.2327880859375, 0.166748046875, 0.20703125, 0.1484375, 0.129150390625, 0.177490234375, 0.1318359375, 0.0155029296875, 0.1170654296875, 0.1153564453125, 0.05413818359375, 0.005218505859375, 0.0970458984375, 0.055419921875, 0.0189666748046875, 0.048583...
embed
67151966_c0
67151966
prolog
0
Title: Eclipse Prolog: How to make a program that solves boolean expressions (replace variables so that the expression is true) Problem title: Eclipse Prolog: How to make a program that solves boolean expressions (replace variables so that the expression is true) Tags: prolog, boolean-expression Problem: Eclipse Prolog...
Eclipse Prolog: How to make a program that solves boolean expressions (replace variables so that the expression is true) Eclipse Prolog: How to make a program that solves boolean expressions (replace variables so that the expression is true) prolog boolean-expression Eclipse Prolog How Arg1:-not Arg1 Arg2 _Arg2 _Arg1 Q...
[ 0.005218505859375, 0.017822265625, 0.00885009765625, 0.00469970703125, -0.0093994140625, 0.0233154296875, -0.0206298828125, 0.02099609375, -0.00103759765625, -0.01806640625, -0.0021514892578125, 0.01104736328125, -0.0155029296875, 0.0079345703125, 0.02001953125, 0.01312255859375, 0.0...
[ 234962, 1250, 4867, 11249, 3249, 1528, 86869, 7, 337, 31, 34677, 125195, 107, 23935, 77336, 83, 29568, 502, 204629, 1172, 177, 82825, 10869, 418, 304, 7614, 2396, 18, 62, 91480, 5021, 142484, 86918, 1542, 32635, 60075, 42, 13579, 21690, 3...
[ 0.2330322265625, 0.122314453125, 0.201416015625, 0.03472900390625, 0.05877685546875, 0.1671142578125, 0.162353515625, 0.0106201171875, 0.048583984375, 0.1177978515625, 0.1749267578125, 0.2108154296875, 0.005950927734375, 0.10546875, 0.2042236328125, 0.00054931640625, 0.142333984375, ...
embed
25793451_c0
25793451
prolog
0
Title: Prolog Returning Internal Variable Name in Confluence Checker Problem title: Prolog Returning Internal Variable Name in Confluence Checker Tags: prolog Problem: Prolog Returning Internal Variable Name in Confluence Checker I am trying to code a confluence checker in Prolog for an assignment. This part of the cod...
Prolog Returning Internal Variable Name in Confluence Checker Prolog Returning Internal Variable Name in Confluence Checker prolog Prolog Returning Internal Variable Name Confluence Checker _G6993 _G6991 get_Subterms Expression PartialResult Result SubExpA PartResA SubExpB PartResB PartResC RuleN RuleM CriticalPair Bit...
[ 0.002410888671875, -0.0020904541015625, 0.00970458984375, 0.02490234375, -0.00909423828125, 0.0244140625, -0.001983642578125, 0.00994873046875, -0.002838134765625, -0.00946044921875, 0.01470947265625, -0.005828857421875, 0.00115203857421875, -0.00567626953125, 0.01171875, 0.01318359375...
[ 1250, 4867, 173340, 106745, 141, 84572, 2886, 15757, 1657, 18026, 6620, 38679, 56, 23, 502, 14212, 11591, 12183, 2046, 96472, 32166, 25129, 9148, 7, 7136, 126684, 8273, 19279, 254, 284, 16995, 4332, 139118, 594, 180423, 8335, 27774, 44816, ...
[ 0.17041015625, 0.25732421875, 0.15087890625, 0.188232421875, 0.003021240234375, 0.177734375, 0.1258544921875, 0.1519775390625, 0.04156494140625, 0.205078125, 0.040313720703125, 0.2095947265625, 0.1304931640625, 0.01690673828125, 0.1251220703125, 0.0936279296875, 0.181396484375, 0.1...
embed
42432384_c0
42432384
prolog
0
Title: Prolog - Can&#x27;t create a useful list of related elements Problem title: Prolog - Can&#x27;t create a useful list of related elements Tags: prolog, list Problem: Prolog - Can't create a useful list of related elements So I have to make this little program. The idea is that there has been several parties, in w...
Prolog - Can&#x27;t create a useful list of related elements Prolog - Can&#x27;t create a useful list of related elements prolog list Prolog Can Date People Guests ThoseWhoCantStandSomeone Guest List FeelsAnnoyed Peoples Prolog - Can't create a useful list of related elements So I have to make this little program. The ...
[ 0.002593994140625, -0.0250244140625, 0.0004425048828125, 0.0205078125, -0.01153564453125, -0.0174560546875, -0.0230712890625, 0.005340576171875, 0.0111083984375, -0.0546875, -0.0172119140625, 0.004486083984375, 0.0015106201171875, 0.0012054443359375, -0.0091552734375, -0.017578125, 0...
[ 1250, 4867, 4171, 3768, 18, 28282, 80234, 5303, 62548, 80854, 502, 25512, 41021, 83054, 139661, 497, 441, 1236, 195129, 3630, 32036, 133903, 7251, 157, 53, 297, 3249, 10176, 1528, 6528, 40368, 68036, 3395, 77049, 2750, 45767, 136565, 3871, ...
[ 0.166015625, 0.245849609375, 0.0784912109375, 0.059356689453125, 0.07403564453125, 0.151611328125, 0.1737060546875, 0.1815185546875, 0.16943359375, 0.1688232421875, 0.1226806640625, 0.15185546875, 0.0966796875, 0.1683349609375, 0.0450439453125, 0.0271148681640625, 0.026947021484375, ...
embed
26970872_c0
26970872
prolog
0
Title: Unsure of why code snippet works/what it&#x27;s doing with logic riddle Problem title: Unsure of why code snippet works/what it&#x27;s doing with logic riddle Tags: zebra-puzzle, prolog Problem: Unsure of why code snippet works/what it's doing with logic riddle I was looking through some prolog examples and stum...
Unsure of why code snippet works/what it&#x27;s doing with logic riddle Unsure of why code snippet works/what it&#x27;s doing with logic riddle zebra-puzzle prolog Unsure first_names last_names Sol set_equal AgeK AgeI AgeN AgeM AgeF AgeO AgeH Unsure of why code snippet works/what it's doing with logic riddle I was look...
[ 0.015869140625, 0.01300048828125, 0.01336669921875, 0.0267333984375, -0.02197265625, 0.0024566650390625, -0.00787353515625, 0.002899169921875, 0.01092529296875, -0.0208740234375, 0.01904296875, 0.032958984375, 0.0103759765625, 0.02001953125, 0.0177001953125, 0.015869140625, -0.014221...
[ 992, 56851, 111, 15400, 18151, 91, 93, 58134, 43240, 124409, 442, 3768, 20594, 678, 62775, 31351, 19298, 116232, 1766, 13894, 133, 502, 4867, 5117, 11627, 4568, 6678, 5423, 13, 71723, 72944, 605, 568, 839, 594, 919, 670, 841, 27781, 1428,...
[ 0.06207275390625, 0.15869140625, 0.012939453125, 0.1314697265625, 0.1844482421875, 0.0167236328125, 0.14990234375, 0.1968994140625, 0.1304931640625, 0.0139617919921875, 0.0211944580078125, 0.037506103515625, 0.072021484375, 0.0936279296875, 0.1590576171875, 0.121337890625, 0.14257812...
embed
76466591_c1
76466591
prolog
1
) :- transpose(Grid, Transposed), reverse(Transposed, RotatedGrid). % Calcola la trasposizione di una matrice transpose([], []). transpose([F|Fs], Ts) :- transpose(F, [F|Fs], Ts). transpose([], _, []). transpose([_|Rs], Ms, [Ts|Tss]) :- lists_firsts_rests(Ms, Ts, Ms1), transpose(Rs, Ms1, Tss). % Estrae i primi elementi...
) :- transpose(Grid, Transposed), reverse(Transposed, RotatedGrid). % Calcola la trasposizione di una matrice transpose([], []). transpose([F|Fs], Ts) :- transpose(F, [F|Fs], Ts). transpose([], _, []). transpose([_|Rs], Ms, [Ts|Tss]) :- lists_firsts_rests(Ms, Ts, Ms1), transpose(Rs, Ms1, Tss). % Estrae i primi elementi...
[ -0.0291748046875, 0.003814697265625, 0.0277099609375, 0.0174560546875, -0.005340576171875, -0.0244140625, -0.020751953125, -0.0048828125, -0.0020751953125, -0.0205078125, -0.00009584426879882812, 0.0242919921875, -0.0166015625, -0.0027923583984375, -0.0279541015625, 0.0223388671875, ...
[ 1388, 15772, 3900, 78381, 724, 19040, 11062, 144429, 39531, 184, 62624, 146283, 3674, 194, 1745, 9113, 21854, 5848, 86948, 220, 291, 19077, 132, 919, 58745, 7, 384, 1052, 70802, 5303, 13448, 56644, 111576, 13, 12117, 50422, 195622, 15854, 2...
[ 0.041717529296875, 0.12744140625, 0.240966796875, 0.245361328125, 0.029937744140625, 0.1658935546875, 0.1724853515625, 0.1932373046875, 0.1417236328125, 0.1177978515625, 0.13525390625, 0.1005859375, 0.06597900390625, 0.0251312255859375, 0.083984375, 0.1519775390625, 0.1778564453125, ...
embed
24403945_c0
24403945
prolog
0
Title: Prolog program to find the killer Problem title: Prolog program to find the killer Tags: prolog Problem: Prolog program to find the killer In an exercise I'm trying to write a program in Prolog that should help the police to find the killer. My code looks as follows: student(alexander). student(tobias). student(...
Prolog program to find the killer Prolog program to find the killer prolog Prolog Prolog program to find the killer In an exercise I'm trying to write a program in Prolog that should help the police to find the killer. My code looks as follows: The following facts were established: Every student that failed both Englis...
[ 0.007537841796875, 0.01373291015625, 0.012939453125, -0.0020751953125, 0.00124359130859375, 0.0166015625, -0.0091552734375, -0.00005412101745605469, -0.01068115234375, -0.0380859375, -0.00933837890625, 0.0059814453125, -0.005462646484375, -0.01214599609375, 0.01129150390625, 0.00714111...
[ 1250, 4867, 1528, 47, 7413, 70, 200, 14155, 502, 81979, 31577, 33022, 23, 4358, 35206, 18151, 33342, 25632, 15824, 170920, 87769, 9836, 450, 165523, 15044, 14941, 65786, 115081, 78804, 32692, 1284, 48909, 25313, 290, 6133, 42814, 7948, 188531...
[ 0.1881103515625, 0.251708984375, 0.191162109375, 0.031005859375, 0.157958984375, 0.0938720703125, 0.1650390625, 0.2147216796875, 0.16552734375, 0.10223388671875, 0.031005859375, 0.09619140625, 0.0242462158203125, 0.06768798828125, 0.108642578125, 0.1495361328125, 0.08740234375, 0.0...
embed
2148567_c0
2148567
prolog
0
Title: Scheduling of tasks to a single resource using Prolog Problem title: Scheduling of tasks to a single resource using Prolog Tags: scheduling, resource-scheduling, prolog, clpfd Problem: Scheduling of tasks to a single resource using Prolog I searched through here as best I could and though I found some relevant q...
Scheduling of tasks to a single resource using Prolog Scheduling of tasks to a single resource using Prolog scheduling resource-scheduling prolog clpfd Prolog Scheduling noop1 noop2 noop3 can_run Scheduling of tasks to a single resource using Prolog I searched through here as best I could and though I found some releva...
[ -0.003509521484375, 0.01348876953125, 0.01177978515625, 0.00897216796875, -0.013671875, -0.0189208984375, -0.008544921875, 0.006683349609375, 0.011962890625, -0.017333984375, 0.0103759765625, -0.0037078857421875, -0.00799560546875, 0.00433349609375, 0.01104736328125, 0.0006065368652343...
[ 34702, 693, 66211, 47, 11001, 177953, 17368, 1250, 4867, 5094, 15246, 7560, 502, 71, 110, 2146, 418, 304, 363, 831, 16428, 3535, 66596, 51529, 5303, 50336, 80889, 98423, 96853, 4034, 46327, 1272, 84751, 3020, 22631, 69236, 83, 100, 71924, ...
[ 0.1798095703125, 0.1668701171875, 0.2049560546875, 0.121826171875, 0.1378173828125, 0.22314453125, 0.0272979736328125, 0.1658935546875, 0.260498046875, 0.112060546875, 0.119873046875, 0.0733642578125, 0.08795166015625, 0.0181427001953125, 0.024383544921875, 0.1192626953125, 0.0236206...
embed
52595123_c0
52595123
prolog
0
Title: SWI Prolog: Cannot Define New Operator Problem title: SWI Prolog: Cannot Define New Operator Tags: prolog, operators Problem: SWI Prolog: Cannot Define New Operator I'm using SWI-Prolog version 7.6.4 on Arch Linux. I have this database of facts: female(mary). female(liz). female(mia). female(tina). female(ann). ...
SWI Prolog: Cannot Define New Operator SWI Prolog: Cannot Define New Operator prolog operators SWI Prolog Cannot Define Operator ERROR family.pl:13 SWI Prolog: Cannot Define New Operator I'm using SWI-Prolog version 7.6.4 on Arch Linux. I have this database of facts: And I defined the mother predicate as follows: The p...
[ 0.01220703125, 0.0032501220703125, 0.0238037109375, -0.000736236572265625, -0.0023651123046875, 0.009521484375, -0.00010251998901367188, 0.002532958984375, -0.002166748046875, -0.052001953125, -0.002685546875, -0.017333984375, -0.0003204345703125, -0.0244140625, 0.01519775390625, 0.006...
[ 159, 38969, 1250, 4867, 4171, 10869, 262, 64552, 2356, 150922, 502, 39933, 151206, 24638, 14449, 2424, 22618, 17368, 10752, 11389, 361, 43652, 617, 63590, 29908, 63399, 15824, 61924, 42732, 1653, 2063, 67, 28960, 43240, 179140, 1884, 11814, 2...
[ 0.08447265625, 0.2283935546875, 0.1405029296875, 0.1951904296875, 0.058441162109375, 0.127197265625, 0.140869140625, 0.2110595703125, 0.1251220703125, 0.275390625, 0.1080322265625, 0.269775390625, 0.119384765625, 0.03515625, 0.11767578125, 0.07464599609375, 0.142822265625, 0.035949...
embed
60800828_c0
60800828
prolog
0
Title: prolog - why should I use &#x27;dif&#x27; instead of &#x27;=\=&#x27; Problem title: prolog - why should I use &#x27;dif&#x27; instead of &#x27;=\=&#x27; Tags: prolog, prolog-dif Problem: prolog - why should I use 'dif' instead of '=\=' I'm studying an example from book 'Prolog by Example' (by Helder Coelho and J...
prolog - why should I use &#x27;dif&#x27; instead of &#x27;=\=&#x27; prolog - why should I use &#x27;dif&#x27; instead of &#x27;=\=&#x27; prolog prolog-dif Write Two Each Rooms One Windows Call _9632 _9634 _9636 _9638 Exit ERROR Arithmetic prolog - why should I use 'dif' instead of '=\=' I'm studying an example from bo...
[ 0.00153350830078125, 0.0037078857421875, 0.02001953125, 0.00531005859375, -0.01708984375, -0.01483154296875, -0.0181884765625, 0.015869140625, 0.00244140625, -0.0235595703125, -0.01104736328125, 0.003387451171875, -0.0026092529296875, -0.0252685546875, 0, -0.00811767578125, 0.0174560...
[ 502, 4867, 15400, 5608, 87, 4527, 3768, 428, 420, 64457, 601, 18781, 32964, 98423, 38484, 7, 6561, 3773, 26265, 11648, 6460, 10289, 8659, 10991, 5443, 217, 151206, 24638, 8962, 282, 9523, 1369, 41872, 27781, 12877, 10752, 390, 89536, 10440,...
[ 0.185546875, 0.256103515625, 0.1710205078125, 0.107421875, 0.041229248046875, 0.1378173828125, 0.159423828125, 0.1932373046875, 0.27099609375, 0.177490234375, 0.0217437744140625, 0.054931640625, 0.134765625, 0.16259765625, 0.21337890625, 0.0209503173828125, 0.0941162109375, 0.13952...
embed
61447343_c0
61447343
prolog
0
Title: Prolog: model simple polymorphic type Problem title: Prolog: model simple polymorphic type Tags: prolog Problem: Prolog: model simple polymorphic type Initial post I've been playing with swi-prolog for a several hours now and I got to dead end trying to mimic a simple polymorphic type system. So, before I have s...
Prolog: model simple polymorphic type Prolog: model simple polymorphic type prolog Prolog Head Tail Prolog: model simple polymorphic type Initial post I've been playing with swi-prolog for a several hours now and I got to dead end trying to mimic a simple polymorphic type system. So, before I have spent way to much tim...
[ 0.005767822265625, 0.01031494140625, 0.00518798828125, -0.004669189453125, -0.01287841796875, -0.0030975341796875, -0.00469970703125, 0.0142822265625, -0.00750732421875, -0.060791015625, 0.02294921875, -0.0303955078125, 0.00115203857421875, -0.0067138671875, 0.00933837890625, -0.012512...
[ 1250, 4867, 3299, 8781, 35874, 178851, 10644, 502, 44816, 1218, 379, 75169, 91, 2452, 3454, 21974, 3564, 31577, 324, 21068, 5426, 26458, 159978, 41911, 4806, 2663, 16188, 11001, 79459, 54704, 1460, 3922, 5062, 80934, 353, 933, 169022, 32036, ...
[ 0.1785888671875, 0.25048828125, 0.1781005859375, 0.1160888671875, 0.1199951171875, 0.1578369140625, 0.22607421875, 0.1683349609375, 0.0987548828125, 0.1224365234375, 0.069580078125, 0.035125732421875, 0.000823974609375, 0.134033203125, 0.1109619140625, 0.013275146484375, 0.0377197265...
embed
23978292_c0
23978292
prolog
0
Title: How to make fact(any) in Prolog? Problem title: How to make fact(any) in Prolog? Tags: prolog Problem: How to make fact(any) in Prolog? I have database which consists of list of trees and facts about those trees. For example: softness(soft). softness(hard). softness(veryhard). color(gray_brown). color(soft_red)....
How to make fact(any) in Prolog? How to make fact(any) in Prolog? prolog How Prolog gray_brown soft_red on_touch what_wood Leafes Softness Color Prints Leaves OnTouch Attrib How to make fact(any) in Prolog? I have database which consists of list of trees and facts about those trees. For example: And I'm trying to make ...
[ 0.00640869140625, 0.000476837158203125, -0.002960205078125, 0.01165771484375, 0.006622314453125, 0.0257568359375, -0.0150146484375, -0.00021076202392578125, 0.0034637451171875, -0.047607421875, 0.003173828125, -0.01904296875, -0.00787353515625, 0.01361083984375, 0.01263427734375, -0.01...
[ 11249, 47, 3249, 15824, 132, 4848, 23, 1250, 4867, 502, 4224, 53, 140773, 32977, 2822, 98, 185188, 2367, 25876, 54642, 56073, 73118, 7432, 51193, 39754, 64819, 2161, 221234, 11049, 63399, 5303, 1360, 79986, 26458, 38937, 107730, 29458, 171859...
[ 0.0887451171875, 0.034423828125, 0.1510009765625, 0.26171875, 0.055511474609375, 0.27587890625, 0.08514404296875, 0.166748046875, 0.261962890625, 0.0966796875, 0.083251953125, 0.013427734375, 0.0927734375, 0.115478515625, 0.0997314453125, 0.1015625, 0.1622314453125, 0.001220703125,...
embed
59341382_c0
59341382
prolog
0
Title: Solving chain reactions in prolog Problem title: Solving chain reactions in prolog Tags: clpfd, constraint-handling-rules, prolog Problem: Solving chain reactions in prolog One of the recent Advent of code challenges tasks me with solving for the smallest amount of input material that I can use to apply a given ...
Solving chain reactions in prolog Solving chain reactions in prolog clpfd constraint-handling-rules prolog Solving ORE FUEL Out Val OutN Solving chain reactions in prolog One of the recent Advent of code challenges tasks me with solving for the smallest amount of input material that I can use to apply a given set of re...
[ -0.01519775390625, -0.0015869140625, 0.0302734375, 0.0203857421875, 0.00177001953125, 0.0038299560546875, -0.0208740234375, -0.0103759765625, 0.01080322265625, -0.01953125, -0.0155029296875, -0.005889892578125, 0.00439453125, 0.005645751953125, 0.0169677734375, 0.000720977783203125, ...
[ 6678, 6496, 121293, 132539, 502, 4867, 39557, 71, 158, 2816, 4288, 54885, 13500, 54003, 88082, 16398, 13538, 4769, 23, 89718, 111, 18151, 127125, 3115, 19336, 525, 41170, 107730, 4912, 831, 4527, 59911, 106, 25072, 140992, 3871, 1936, 3622, ...
[ 0.142578125, 0.03533935546875, 0.156982421875, 0.1629638671875, 0.138671875, 0.228759765625, 0.03118896484375, 0.0438232421875, 0.0518798828125, 0.137939453125, 0.1009521484375, 0.09661865234375, 0.072021484375, 0.1943359375, 0.1456298828125, 0.091552734375, 0.1585693359375, 0.1055...
embed
27317069_c0
27317069
prolog
0
Title: Collect all &quot;minimum&quot; solutions from a predicate Problem title: Collect all &quot;minimum&quot; solutions from a predicate Tags: aggregates, prolog-setof, prolog, meta-predicate, backtracking Problem: Collect all "minimum" solutions from a predicate Given the following facts in a database: foo(a, 3). f...
Collect all &quot;minimum&quot; solutions from a predicate Collect all &quot;minimum&quot; solutions from a predicate aggregates prolog-setof prolog meta-predicate backtracking a Collect find_min_1 Min B-A Min-_ find_min_2 find_min_3 Min-First Rest min_prefix First std::partition_point partition_point Pred_1 List Befor...
[ 0.021484375, -0.023193359375, 0.0233154296875, -0.0145263671875, -0.020263671875, -0.000865936279296875, 0.021728515625, -0.006439208984375, -0.0079345703125, -0.01446533203125, -0.000514984130859375, 0.03564453125, 0.0018768310546875, -0.0201416015625, 0.0126953125, 0.0030670166015625...
[ 138521, 756, 9222, 24105, 51347, 1295, 1653, 2063, 67, 197564, 90, 502, 4867, 3509, 4390, 23550, 19714, 4420, 125728, 7413, 1249, 115187, 4211, 335, 284, 49756, 881, 55923, 6138, 71, 15866, 1363, 38496, 2878, 7145, 32036, 617, 1542, 109637,...
[ 0.2410888671875, 0.1402587890625, 0.19287109375, 0.22216796875, 0.2386474609375, 0.11865234375, 0.1986083984375, 0.2393798828125, 0.066650390625, 0.22900390625, 0.0361328125, 0.09613037109375, 0.1544189453125, 0.049346923828125, 0.2275390625, 0.10211181640625, 0.1474609375, 0.01452...
embed
29582597_c0
29582597
prolog
0
Title: Clue game in Prolog Problem title: Clue game in Prolog Tags: prolog Problem: Clue game in Prolog So I am supposed to recreate a small implementation of the game clue. I am given a set of facts, and must output a list of possible suspects found by Prolog. Given a single fact for a "unique" suspect, The program sh...
Clue game in Prolog Clue game in Prolog prolog Clue Prolog Facts affair_with married_to Rules Victim Someone UNIQUE SUSPECT FACT suspect_found Solution Killer Clue game in Prolog So I am supposed to recreate a small implementation of the game clue. I am given a set of facts, and must output a list of possible suspects ...
[ 0.0030059814453125, 0.03076171875, 0.01953125, 0.005859375, 0.002227783203125, 0.0296630859375, -0.00946044921875, -0.00092315673828125, 0.023681640625, -0.02783203125, -0.02294921875, -0.00104522705078125, 0.006866455078125, -0.005218505859375, 0.02099609375, 0.00567626953125, 0.004...
[ 140077, 13, 6712, 23, 1250, 4867, 502, 132640, 103086, 76228, 139505, 188, 139118, 49643, 5083, 3630, 8274, 149577, 16817, 155775, 563, 84161, 92610, 151645, 187895, 104431, 56, 134598, 89011, 19336, 208124, 29786, 34475, 5423, 15824, 8110, 140...
[ 0.2176513671875, 0.1556396484375, 0.145263671875, 0.0187530517578125, 0.1861572265625, 0.25439453125, 0.1331787109375, 0.1746826171875, 0.167724609375, 0.064208984375, 0.1500244140625, 0.09765625, 0.14599609375, 0.10540771484375, 0.0775146484375, 0.0181427001953125, 0.09722900390625,...
embed
77857611_c0
77857611
prolog
0
Title: Solving a logical puzzle with Prolog gives a wrong answer Problem title: Solving a logical puzzle with Prolog gives a wrong answer Tags: prolog Problem: Solving a logical puzzle with Prolog gives a wrong answer I've got a simple puzzle: We've got 2 people, Zod and Jenk. Each of them is either Truthful and always...
Solving a logical puzzle with Prolog gives a wrong answer Solving a logical puzzle with Prolog gives a wrong answer prolog Solving Prolog Define Zod zod_statement Jenk jenk_statement Check ZodState JenkState Solving a logical puzzle with Prolog gives a wrong answer I've got a simple puzzle: We've got 2 people, Zod and ...
[ -0.0020904541015625, -0.00396728515625, -0.00531005859375, 0.01953125, -0.0400390625, 0.0181884765625, -0.0223388671875, -0.0036163330078125, -0.001983642578125, -0.0206298828125, -0.003814697265625, 0.00112152099609375, 0.00616455078125, 0.015869140625, 0.02734375, 0.0218505859375, ...
[ 6678, 62775, 289, 104192, 678, 1250, 4867, 76199, 44691, 35166, 502, 64552, 5880, 71, 61933, 61340, 20426, 92, 55, 7570, 38679, 135206, 8781, 116, 3395, 136, 98423, 40101, 184431, 11343, 29568, 63805, 707, 18118, 214, 98320, 17378, 12137, 1...
[ 0.10546875, 0.1527099609375, 0.0830078125, 0.208740234375, 0.05224609375, 0.190673828125, 0.270751953125, 0.049713134765625, 0.1878662109375, 0.17724609375, 0.1278076171875, 0.0780029296875, 0.215576171875, 0.245849609375, 0.219970703125, 0.136962890625, 0.22265625, 0.235107421875,...
embed
54124544_c0
54124544
prolog
0
Title: How to solve this algorithm in Prolog code? (production systems) Problem title: How to solve this algorithm in Prolog code? (production systems) Tags: prolog Problem: How to solve this algorithm in Prolog code? (production systems) I'm amongst the biggest newbies of Prolog and I'm trying to understand how can th...
How to solve this algorithm in Prolog code? (production systems) How to solve this algorithm in Prolog code? (production systems) prolog How Prolog brick1 brick2 brick3 THEN MODIFY How to solve this algorithm in Prolog code? (production systems) I'm amongst the biggest newbies of Prolog and I'm trying to understand how...
[ -0.016357421875, 0.01953125, 0.00157928466796875, 0.0213623046875, -0.0023956298828125, 0.01806640625, -0.0224609375, -0.00153350830078125, 0.00096893310546875, -0.0086669921875, 0.004425048828125, 0.00958251953125, 0.006683349609375, -0.006683349609375, 0.01239013671875, 0.00112152099...
[ 11249, 86869, 903, 234873, 23, 1250, 4867, 18151, 57877, 1830, 76519, 502, 876, 41537, 418, 304, 363, 98610, 29836, 1723, 70, 129058, 9014, 7, 39, 47, 28219, 3642, 831, 25632, 31351, 19298, 186, 59121, 4153, 58755, 67, 36049, 5426, 22631,...
[ 0.08575439453125, 0.2220458984375, 0.1080322265625, 0.26220703125, 0.064453125, 0.199951171875, 0.25537109375, 0.21630859375, 0.1123046875, 0.036224365234375, 0.0880126953125, 0.1580810546875, 0.03936767578125, 0.19580078125, 0.03240966796875, 0.0980224609375, 0.1612548828125, 0.15...
embed
8863578_c0
8863578
prolog
0
Title: Prolog what are Accumulators and the \+member function Problem title: Prolog what are Accumulators and the \+member function Tags: accumulator, member, negation, prolog, rules Problem: Prolog what are Accumulators and the \+member function I've been searching around for tutorials on what accumulators are and wha...
Prolog what are Accumulators and the \+member function Prolog what are Accumulators and the \+member function accumulator member negation prolog rules Prolog Accumulators Prolog what are Accumulators and the \+member function I've been searching around for tutorials on what accumulators are and what they do, however al...
[ 0.01123046875, 0.0084228515625, 0.01458740234375, 0.0252685546875, -0.0211181640625, 0.0272216796875, -0.0032806396484375, 0.00531005859375, 0.00567626953125, -0.03271484375, 0.02099609375, -0.01153564453125, 0.0126953125, 0.01361083984375, 0.02197265625, -0.00060272216796875, -0.000...
[ 1250, 4867, 621, 29899, 316, 129073, 7, 136, 41872, 1328, 39, 27417, 32354, 183278, 1290, 32786, 108, 125682, 502, 91736, 57143, 22230, 73342, 4488, 4527, 28219, 16401, 14012, 831, 35839, 126371, 18151, 98816, 2367, 83, 3871, 1632, 9077, 36...
[ 0.1658935546875, 0.22998046875, 0.047027587890625, 0.102783203125, 0.1700439453125, 0.23779296875, 0.06451416015625, 0.049591064453125, 0.048126220703125, 0.126953125, 0.09906005859375, 0.226806640625, 0.163818359375, 0.262451171875, 0.200439453125, 0.2235107421875, 0.1484375, 0.06...
embed
54914149_c1
54914149
prolog
1
maplist_aux_count(0). Now on to the goal expansion: % generate specialized `maplist/N' goal_expansion(Goal0, _Layout0, FromModule, FromModule:Goal, []) :- Goal0 =.. [maplist, Rel0 | Args], callable(Rel0), Args = [_|_], !, % get count # of aux preds generated so far and increment it retract(maplist_aux_count(C)), C1 is...
maplist_aux_count(0). Now on to the goal expansion: % generate specialized `maplist/N' goal_expansion(Goal0, _Layout0, FromModule, FromModule:Goal, []) :- Goal0 =.. [maplist, Rel0 | Args], callable(Rel0), Args = [_|_], !, % get count # of aux preds generated so far and increment it retract(maplist_aux_count(C)), C1 is...
[ -0.00032806396484375, -0.0004596710205078125, -0.0024566650390625, 0.0006866455078125, -0.0133056640625, 0.021484375, 0.01611328125, -0.00787353515625, 0.032470703125, -0.011962890625, 0.00750732421875, -0.006591796875, 0.0076904296875, 0.01129150390625, -0.004180908203125, 0.010803222...
[ 22288, 6562, 10442, 71013, 177609, 14240, 98, 69236, 14700, 66, 6889, 1745, 139392, 5361, 29367, 62346, 64, 839, 83613, 17903, 289, 2389, 53, 6056, 28090, 91616, 8782, 268, 15772, 2016, 2203, 853, 141, 6, 1172, 9405, 4, 11782, 2886, 1052,...
[ 0.19091796875, 0.257080078125, 0.251220703125, 0.1749267578125, 0.1600341796875, 0.0277557373046875, 0.0052490234375, 0.262939453125, 0.1412353515625, 0.2027587890625, 0.115478515625, 0.090087890625, 0.171875, 0.171142578125, 0.03271484375, 0.182373046875, 0.0379638671875, 0.094482...
embed
37372037_c0
37372037
prolog
0
Title: How do you check the elements of a submatrix in Prolog Problem title: How do you check the elements of a submatrix in Prolog Tags: constraint-programming, clpfd, eclipse-clp, prolog Problem: How do you check the elements of a submatrix in Prolog I am trying to write a Shikaku solver in EclipsE Prolog. My contrai...
How do you check the elements of a submatrix in Prolog How do you check the elements of a submatrix in Prolog constraint-programming clpfd eclipse-clp prolog 1 How Prolog Problemname Start Width Height Hints HintCount array_list HintsArray Prepare Hint Matrix flatten_array FlattenedMatrix HintX HintY HintNumber DeltaX ...
[ -0.0016632080078125, -0.0064697265625, 0.01904296875, 0.022216796875, -0.00885009765625, -0.01153564453125, -0.01953125, 0.006072998046875, 0.01141357421875, 0.01397705078125, -0.00970458984375, 0.0087890625, 0.0167236328125, 0.00153350830078125, 0.00518798828125, -0.000896453857421875...
[ 11249, 12765, 80854, 111, 1614, 192, 87427, 23, 1250, 4867, 2816, 4288, 28966, 71, 106371, 184, 26775, 502, 15649, 11627, 13794, 58302, 1529, 19895, 108210, 6562, 7092, 1914, 194234, 49878, 510, 106516, 1542, 56588, 1723, 11338, 7146, 8273, ...
[ 0.03564453125, 0.2462158203125, 0.2137451171875, 0.06170654296875, 0.2303466796875, 0.08984375, 0.2015380859375, 0.00018310546875, 0.1751708984375, 0.2413330078125, 0.122314453125, 0.1268310546875, 0.0745849609375, 0.028228759765625, 0.142822265625, 0.0859375, 0.0313720703125, 0.06...
embed
43575753_c0
43575753
prolog
0
Title: Beginner Prolog: Issues with Predicate Logic and (maybe) syntax Problem title: Beginner Prolog: Issues with Predicate Logic and (maybe) syntax Tags: prolog Problem: Beginner Prolog: Issues with Predicate Logic and (maybe) syntax I just started learning about prolog and i'm thoroughly confused. Consider the follo...
Beginner Prolog: Issues with Predicate Logic and (maybe) syntax Beginner Prolog: Issues with Predicate Logic and (maybe) syntax prolog Beginner Prolog Issues Predicate Logic addsto40 Sum Newsum Beginner Prolog: Issues with Predicate Logic and (maybe) syntax I just started learning about prolog and i'm thoroughly confus...
[ 0.019775390625, 0.0191650390625, 0.0242919921875, 0.0186767578125, -0.0245361328125, 0.0257568359375, -0.016357421875, 0.007080078125, 0.0125732421875, -0.03515625, 0.018310546875, 0.00921630859375, -0.000732421875, -0.0125732421875, 0.0390625, 0.005340576171875, 0.01300048828125, ...
[ 67053, 56, 1250, 4867, 223317, 678, 7145, 2063, 67, 50592, 11354, 6002, 86531, 502, 15190, 2785, 2839, 36335, 1833, 316, 26859, 52080, 209183, 55681, 106117, 51359, 3647, 70541, 15824, 1672, 3445, 9384, 163612, 4588, 89536, 3444, 28282, 79986...
[ 0.136474609375, 0.0811767578125, 0.188232421875, 0.255859375, 0.15380859375, 0.051177978515625, 0.1361083984375, 0.1702880859375, 0.055755615234375, 0.1763916015625, 0.0234375, 0.1126708984375, 0.1490478515625, 0.173583984375, 0.1605224609375, 0.1943359375, 0.255615234375, 0.204956...
embed
12692974_c0
12692974
prolog
0
Title: Prolog Logic Test Example Problem title: Prolog Logic Test Example Tags: zebra-puzzle, prolog, logic Problem: Prolog Logic Test Example I have a test coming up on Prolog and I can't really grasp the basic ideas of it. I kind of understand some of the examples I have been going through, but I can't sit down and k...
Prolog Logic Test Example Prolog Logic Test Example zebra-puzzle prolog logic each the Prolog Logic Test Example Donna Danny David Doreen They Facts sat_across sat_beside nth1 M-1 not_connected Place Prolog Logic Test Example I have a test coming up on Prolog and I can't really grasp the basic ideas of it. I kind of un...
[ 0.01275634765625, 0.0125732421875, 0.007568359375, 0.01544189453125, -0.0208740234375, -0.0020904541015625, -0.01129150390625, -0.0067138671875, 0.01171875, -0.0240478515625, 0.0023040771484375, -0.005126953125, 0.000957489013671875, 0.007354736328125, -0.00604248046875, 0.012390136718...
[ 1250, 4867, 50592, 238, 8647, 89536, 116232, 1766, 13894, 133, 502, 62775, 12638, 140716, 139020, 6765, 25877, 5997, 10660, 132640, 11736, 95665, 8752, 927, 418, 276, 5759, 959, 135457, 41076, 765, 3034, 38162, 1257, 98, 831, 27689, 62822, ...
[ 0.1717529296875, 0.250732421875, 0.1778564453125, 0.009490966796875, 0.17626953125, 0.150146484375, 0.222412109375, 0.0860595703125, 0.10565185546875, 0.0509033203125, 0.1656494140625, 0.2071533203125, 0.1480712890625, 0.1236572265625, 0.110107421875, 0.10455322265625, 0.086059570312...
embed
22443076_c0
22443076
prolog
0
Title: why does this not display the right answer Problem title: why does this not display the right answer Tags: prolog Problem: why does this not display the right answer I have these facts and rules : male(roelof). male(mans). male(ronald). male(jan). female(chantal). female(marie). female(gerda). female(dagmar). fe...
why does this not display the right answer why does this not display the right answer prolog father_child Father Child mother_child Mother child_father_mother same_father Sibling same_mother display_siblings X-Y Sibs why does this not display the right answer I have these facts and rules : But when I do display_sibling...
[ 0.0128173828125, 0.00176239013671875, 0.0179443359375, 0.0091552734375, -0.01483154296875, 0.00128936767578125, -0.01287841796875, 0.007110595703125, -0.00170135498046875, -0.0002689361572265625, 0.017822265625, -0.00958251953125, -0.0093994140625, 0.0167236328125, 0.0101318359375, 0.0...
[ 15400, 14602, 903, 959, 44116, 70, 7108, 35166, 502, 4867, 67373, 206, 38472, 160960, 123829, 42732, 115217, 29041, 9319, 5701, 1021, 602, 79298, 432, 76103, 33992, 1193, 9, 1723, 16145, 15824, 91736, 84751, 1957, 2062, 13, 64093, 1505, 85,...
[ 0.1484375, 0.0997314453125, 0.1602783203125, 0.179931640625, 0.233154296875, 0.005126953125, 0.1746826171875, 0.237060546875, 0.17626953125, 0.2265625, 0.10498046875, 0.057952880859375, 0.0828857421875, 0.08447265625, 0.0928955078125, 0.05145263671875, 0.03143310546875, 0.090332031...
embed
28933449_c0
28933449
prolog
0
Title: Prolog&#x27;s built-in reverse function acting odd Problem title: Prolog&#x27;s built-in reverse function acting odd Tags: prolog Problem: Prolog's built-in reverse function acting odd Given the following code: fun(a, [b]). fun(b, [c]). fun(c, [d]). fun(d, [e]). fun(e, []). xyz(X, Y):- fun(X,Z) -> findall([A|B],...
Prolog&#x27;s built-in reverse function acting odd Prolog&#x27;s built-in reverse function acting odd prolog Prolog cs40 cs30 final_xyz xyz2 Prolog's built-in reverse function acting odd Given the following code: With the query xyz(a,X) I get the expected output X = [e,d,c,b]. . What could possibly be throwing this off...
[ 0.00640869140625, 0.0225830078125, 0.0174560546875, -0.0007476806640625, -0.0135498046875, 0.01416015625, -0.00811767578125, 0.006103515625, 0.023681640625, -0.00628662109375, 0.003204345703125, 0.0218505859375, 0.0103759765625, -0.0233154296875, 0.0284423828125, -0.01104736328125, 0...
[ 1250, 4867, 3768, 88303, 73, 39531, 184, 32354, 1030, 1916, 70270, 502, 20763, 2839, 1197, 2704, 32189, 304, 18151, 17106, 41, 1294, 1022, 11, 1542, 2046, 84751, 140992, 1193, 238, 275, 5809, 144681, 104250, 214, 903, 5773, 12096, 144, 14...
[ 0.15673828125, 0.2298583984375, 0.035308837890625, 0.1121826171875, 0.1177978515625, 0.21337890625, 0.1895751953125, 0.1591796875, 0.1031494140625, 0.06842041015625, 0.23193359375, 0.114990234375, 0.069091796875, 0.2288818359375, 0.19970703125, 0.0787353515625, 0.15283203125, 0.015...
embed
76290570_c0
76290570
prolog
0
Title: Can CLPFD distribute things evenly into groups? Problem title: Can CLPFD distribute things evenly into groups? Tags: prolog, swi-prolog, clpfd Problem: Can CLPFD distribute things evenly into groups? This is a simplified example; say I want to distribute weights over tables such that the tables end up roughly eq...
Can CLPFD distribute things evenly into groups? Can CLPFD distribute things evenly into groups? prolog swi-prolog clpfd Can CLPFD Tolerance Table Table1Total Table2Total T1_ T2_ Pairs Weights pairs_keys_values Tables TableDiff T2-T1 Expr Can CLPFD distribute things evenly into groups? This is a simplified example; say ...
[ 0.003631591796875, 0.024169921875, 0.01043701171875, -0.014404296875, -0.01007080078125, 0.0028839111328125, 0.0289306640625, -0.0030059814453125, 0.007171630859375, 0.01226806640625, -0.0035400390625, 0.00016117095947265625, 0.01483154296875, 0.00640869140625, 0.0101318359375, 0.01855...
[ 4171, 46323, 41265, 397, 15917, 67, 8966, 3853, 538, 3934, 94407, 502, 4867, 2452, 3454, 33139, 39557, 71, 717, 603, 7154, 112997, 169473, 304, 384, 37897, 150533, 80836, 19770, 27494, 32920, 18504, 618, 418, 112892, 27781, 3444, 57888, 231...
[ 0.1011962890625, 0.1253662109375, 0.178955078125, 0.2169189453125, 0.205810546875, 0.0687255859375, 0.096923828125, 0.1861572265625, 0.1185302734375, 0.12158203125, 0.2239990234375, 0.0777587890625, 0.1427001953125, 0.1190185546875, 0.072265625, 0.04766845703125, 0.10467529296875, ...
embed
46603395_c0
46603395
prolog
0
Title: Prolog - Invalid stream operation on stream 4: input Problem title: Prolog - Invalid stream operation on stream 4: input Tags: prolog Problem: Prolog - Invalid stream operation on stream 4: input I'm trying to do a program that gets binary numbers from a file, converts them to decimal and writes them to another ...
Prolog - Invalid stream operation on stream 4: input Prolog - Invalid stream operation on stream 4: input prolog Prolog Invalid Starts Conversion Binary to_binary Bin Dec BinRev Acc Pow Res NAcc NPow Converts NUM LIST LIST1 END FILE READING PART read_file Stream at_end_of_stream PROCESSING MAIN input.txt Str Lines outp...
[ -0.00714111328125, 0.013916015625, 0.0069580078125, -0.0191650390625, -0.00921630859375, 0.0108642578125, -0.0206298828125, 0.01458740234375, 0.01416015625, -0.00433349609375, 0.00616455078125, 0.001129150390625, -0.00592041015625, 0.0279541015625, 0.02392578125, 0.00177001953125, 0....
[ 1250, 4867, 360, 7013, 75973, 41018, 98, 27959, 107730, 71, 502, 13794, 1657, 46354, 54092, 1294, 47, 19155, 16666, 25755, 334, 29899, 53982, 9624, 3076, 10060, 8770, 11549, 109020, 195977, 39015, 563, 52099, 188300, 88601, 12301, 29822, 1150...
[ 0.1876220703125, 0.218017578125, 0.048797607421875, 0.162841796875, 0.2047119140625, 0.14697265625, 0.0506591796875, 0.195068359375, 0.198974609375, 0.014251708984375, 0.122314453125, 0.1142578125, 0.046875, 0.131103515625, 0.164794921875, 0.0928955078125, 0.09661865234375, 0.14294...
embed
13047749_c0
13047749
prolog
0
Title: Deleting a predicate from a knowledge base Problem title: Deleting a predicate from a knowledge base Tags: prolog Problem: Deleting a predicate from a knowledge base I would like to pose a question. I have a knowledge base that I am working on and I want the user to delete a predicate that he wants by using dele...
Deleting a predicate from a knowledge base Deleting a predicate from a knowledge base prolog a Deleting is_tired delete_predicate Predicate my_knowledge_base.pl Deleting a predicate from a knowledge base I would like to pose a question. I have a knowledge base that I am working on and I want the user to delete a predic...
[ 0.0179443359375, -0.00004458427429199219, 0.016357421875, 0.00982666015625, 0.005279541015625, 0.0167236328125, 0.0166015625, 0.00604248046875, -0.004608154296875, -0.05419921875, 0.0164794921875, 0.0111083984375, -0.017578125, -0.0032958984375, 0.01708984375, -0.0048828125, 0.015075...
[ 262, 133, 1916, 1653, 2063, 67, 1295, 51359, 3647, 10, 502, 4867, 83, 118, 2822, 154109, 19714, 7145, 759, 69723, 181606, 37382, 2424, 20697, 38937, 47, 86171, 17368, 1884, 61924, 1727, 53, 30957, 41, 3173, 51882, 37842, 79986, 8, 74635, ...
[ 0.146728515625, 0.2139892578125, 0.06121826171875, 0.214599609375, 0.2369384765625, 0.1436767578125, 0.143798828125, 0.181884765625, 0.23095703125, 0.02337646484375, 0.134521484375, 0.1651611328125, 0.1201171875, 0.2010498046875, 0.2115478515625, 0.269775390625, 0.181884765625, 0.1...
embed
10767907_c0
10767907
prolog
0
Title: Guess the right game for a user with prolog Problem title: Guess the right game for a user with prolog Tags: list, prolog, prolog-assert Problem: Guess the right game for a user with prolog I am trying to make a program where the user answers questions to find a game, but I couldn't understand how to work with l...
Guess the right game for a user with prolog Guess the right game for a user with prolog list prolog prolog-assert Guess Please Game sims3 do_you_like_action_games do_you_like_adventure_games do_you_like_simulation_games Question Name Answer Guess the right game for a user with prolog I am trying to make a program where...
[ -0.01104736328125, 0.0037384033203125, 0.0196533203125, 0.00616455078125, 0.0025787353515625, 0.00799560546875, -0.0294189453125, 0.020263671875, 0, -0.0194091796875, -0.005859375, 0.00628662109375, -0.025146484375, -0.0006561279296875, 0.0198974609375, 0.0224609375, 0.03125, 0.008...
[ 96274, 7, 70, 7108, 6712, 100, 38937, 678, 502, 4867, 5303, 162, 33657, 30607, 13547, 10777, 363, 54, 53927, 5062, 44713, 129675, 43210, 137003, 68185, 130373, 10, 31577, 3249, 1528, 35166, 17582, 7413, 28219, 4488, 136, 237, 3917, 50491, ...
[ 0.1912841796875, 0.1522216796875, 0.096435546875, 0.2095947265625, 0.2266845703125, 0.129638671875, 0.18017578125, 0.146240234375, 0.1761474609375, 0.26171875, 0.2120361328125, 0.07550048828125, 0.228515625, 0.2047119140625, 0.1307373046875, 0.1890869140625, 0.181396484375, 0.04922...
embed
55747558_c0
55747558
prolog
0
Title: Re-assert a clause after it got retracted in a failing rule Problem title: Re-assert a clause after it got retracted in a failing rule Tags: prolog Problem: Re-assert a clause after it got retracted in a failing rule I have started to dig into the assert/1 and retract/1 meta-predicates of prolog, and now I wonde...
Re-assert a clause after it got retracted in a failing rule Re-assert a clause after it got retracted in a failing rule prolog Re-assert dummy1 inner_failing_rule Re-assert a clause after it got retracted in a failing rule I have started to dig into the assert/1 and retract/1 meta-predicates of prolog, and now I wonder...
[ 0.0036163330078125, 0.01385498046875, 0.01422119140625, 0.01458740234375, -0.006591796875, -0.007476806640625, 0.012451171875, 0.0093994140625, -0.0084228515625, -0.00994873046875, 0.004364013671875, 0.0185546875, -0.03076171875, -0.0012664794921875, 0.03955078125, 0.0020904541015625, ...
[ 853, 9, 162, 33657, 70731, 13, 7103, 41499, 89829, 35782, 214, 79986, 502, 4867, 8473, 1176, 418, 75414, 120540, 882, 4163, 23, 1466, 237, 11583, 136, 15390, 23550, 19714, 2063, 831, 11814, 29479, 107, 60427, 5062, 219836, 18588, 90, 2027...
[ 0.158447265625, 0.0535888671875, 0.1092529296875, 0.234130859375, 0.214111328125, 0.0811767578125, 0.1214599609375, 0.1998291015625, 0.1083984375, 0.157958984375, 0.0860595703125, 0.13037109375, 0.13134765625, 0.16455078125, 0.10479736328125, 0.125244140625, 0.0316162109375, 0.1544...
embed
67117060_c0
67117060
prolog
0
Title: Prolog - Parser Fails when using Unary Minus Problem title: Prolog - Parser Fails when using Unary Minus Tags: grammar, prolog, parsing, abstract-syntax-tree Problem: Prolog - Parser Fails when using Unary Minus I am making an arithmetic parser for an example grammar in Prolog, which takes in a list of tokens an...
Prolog - Parser Fails when using Unary Minus Prolog - Parser Fails when using Unary Minus grammar prolog parsing abstract-syntax-tree Unary Prolog Parser Fails Minus Expr Term ExprLoop Term2 Factor TermLoop Factor2 Tokens Ast Prolog - Parser Fails when using Unary Minus I am making an arithmetic parser for an example g...
[ 0.023681640625, -0.0093994140625, 0.017822265625, 0.00970458984375, -0.0233154296875, -0.00921630859375, 0.00946044921875, 0.00537109375, -0.0089111328125, -0.0203857421875, 0.00104522705078125, -0.00201416015625, 0.005645751953125, -0.0145263671875, 0.0150146484375, 0.00811767578125, ...
[ 1250, 4867, 2392, 2189, 190355, 17368, 4228, 1294, 24169, 7, 122092, 147, 502, 366, 164789, 86531, 62600, 42, 2994, 60075, 15363, 2146, 304, 117969, 717, 84694, 271, 8962, 27781, 47, 30646, 48963, 61590, 3934, 83, 12477, 29479, 220, 26948, ...
[ 0.1268310546875, 0.210205078125, 0.130615234375, 0.1510009765625, 0.16455078125, 0.040191650390625, 0.1402587890625, 0.16015625, 0.2802734375, 0.059356689453125, 0.05487060546875, 0.02288818359375, 0.100341796875, 0.132568359375, 0.103515625, 0.04620361328125, 0.123291015625, 0.000...
embed
65756364_c0
65756364
prolog
0
Title: Threading state/context in DCG while parsing text Problem title: Threading state/context in DCG while parsing text Tags: dcg-semicontext, state, dcg, parsing, prolog Problem: Threading state/context in DCG while parsing text How to pass State (and change it when I need) around while parsing text !? https://www.m...
Threading state/context in DCG while parsing text Threading state/context in DCG while parsing text dcg-semicontext state dcg parsing prolog Threading DCG Ctx _Ctx Threading state/context in DCG while parsing text How to pass State (and change it when I need) around while parsing text !? https://www.metalevel.at/prolog...
[ 0.00084686279296875, 0.0103759765625, 0.0024871826171875, 0.0218505859375, -0.01080322265625, 0.010009765625, -0.0020294189453125, -0.00194549560546875, 0.008056640625, -0.03466796875, 0.006072998046875, 0.018310546875, -0.01025390625, 0.0203857421875, 0.00421142578125, -0.001403808593...
[ 136719, 214, 11341, 64, 2271, 22829, 23, 391, 56367, 12960, 366, 6953, 7986, 104, 238, 177, 84505, 502, 4867, 425, 11249, 47, 27875, 22836, 15549, 442, 3229, 3871, 10932, 711, 35273, 67919, 3454, 71, 27781, 54529, 3642, 134598, 61475, 117...
[ 0.2061767578125, 0.093505859375, 0.190185546875, 0.046722412109375, 0.1409912109375, 0.259765625, 0.0168914794921875, 0.10443115234375, 0.201171875, 0.0721435546875, 0.18212890625, 0.11669921875, 0.1925048828125, 0.009674072265625, 0.04144287109375, 0.111572265625, 0.1104736328125, ...
embed
8901380_c0
8901380
prolog
0
Title: Prolog - Need to understand what a rule is doing Problem title: Prolog - Need to understand what a rule is doing Tags: rule, prolog, nodes Problem: Prolog - Need to understand what a rule is doing I have a database full of facts such as: overground( watfordjunction , watfordhighstreet , 2 ). overground( watfordh...
Prolog - Need to understand what a rule is doing Prolog - Need to understand what a rule is doing rule prolog nodes Prolog Need Station1 Station2 Station3 Prolog - Need to understand what a rule is doing I have a database full of facts such as: example: watford junction to watfordhighstreet takes 2 minutes. I then desi...
[ 0.00604248046875, -0.0006561279296875, -0.00433349609375, 0.00750732421875, -0.0074462890625, -0.000019431114196777344, 0.007476806640625, -0.00830078125, 0.019287109375, -0.0257568359375, -0.0194091796875, -0.007659912109375, 0.000827789306640625, -0.01141357421875, 0.0032806396484375, ...
[ 1250, 4867, 52889, 47, 28219, 2367, 10, 79986, 83, 20594, 502, 110, 988, 38488, 418, 304, 363, 765, 63399, 4393, 15824, 793, 13534, 27022, 10763, 84396, 5967, 126, 51776, 116, 14633, 82775, 3034, 2174, 120696, 1295, 2499, 29398, 15700, 83...
[ 0.1461181640625, 0.22705078125, 0.1390380859375, 0.1060791015625, 0.170654296875, 0.06768798828125, 0.057342529296875, 0.2236328125, 0.05621337890625, 0.14501953125, 0.0797119140625, 0.0679931640625, 0.028656005859375, 0.1536865234375, 0.038848876953125, 0.0865478515625, 0.1243896484...
embed
43214278_c0
43214278
prolog
0
Title: Teach prolog how to execute this simple javascript program? Problem title: Teach prolog how to execute this simple javascript program? Tags: logic, javascript, prolog Problem: Teach prolog how to execute this simple javascript program? How to Make Prolog Intelligent Again ? I have a JavaScript program, and my ta...
Teach prolog how to execute this simple javascript program? Teach prolog how to execute this simple javascript program? logic javascript prolog Teach console.log use_module goal_true_false GOAL OUT goal_expansion IIN A_SEMICOLON B_SEMICOLON SIGNATURE BODY term_expansion console_log Teach prolog how to execute this simp...
[ 0.0087890625, 0.00927734375, 0.004180908203125, 0.01007080078125, -0.011962890625, 0.0224609375, -0.0004100799560546875, 0.008056640625, 0.01055908203125, -0.053466796875, 0.0218505859375, 0.01202392578125, -0.032470703125, -0.0081787109375, 0.02783203125, 0.0013580322265625, 0.01513...
[ 172030, 502, 4867, 3642, 71924, 13, 903, 8781, 136951, 1528, 62775, 130250, 4527, 83279, 69236, 9774, 8710, 25052, 7842, 52001, 83613, 66, 87, 8852, 62, 150576, 33028, 106699, 335, 159, 151657, 181668, 13579, 11249, 26176, 1250, 235398, 11019...
[ 0.250244140625, 0.176025390625, 0.280029296875, 0.0718994140625, 0.1856689453125, 0.06353759765625, 0.07025146484375, 0.180908203125, 0.2327880859375, 0.1634521484375, 0.1839599609375, 0.256591796875, 0.1214599609375, 0.158447265625, 0.2286376953125, 0.1566162109375, 0.153564453125, ...
embed
36436455_c0
36436455
prolog
0
Title: Generating arithmetic expression string for given list of values and given result Prolog Problem title: Generating arithmetic expression string for given list of values and given result Prolog Tags: arithmetic-expressions, prolog Problem: Generating arithmetic expression string for given list of values and given...
Generating arithmetic expression string for given list of values and given result Prolog Generating arithmetic expression string for given list of values and given result Prolog arithmetic-expressions prolog Generating Prolog Expr Val2 Tail Val Expr1 Expr2 Expr3 Expr4 Perm Generating arithmetic expression string for gi...
[ -0.0028076171875, -0.0036163330078125, -0.00152587890625, 0.002227783203125, -0.005096435546875, 0.01275634765625, -0.0033721923828125, 0.006683349609375, 0.0189208984375, -0.0155029296875, 0.00104522705078125, 0.00738525390625, -0.001129150390625, -0.0030517578125, 0.00897216796875, -...
[ 155370, 187, 8962, 282, 9523, 125195, 79315, 100, 34475, 5303, 142424, 16750, 1250, 4867, 204629, 502, 60075, 42, 4769, 304, 1218, 379, 363, 617, 908, 39, 25632, 2967, 33022, 1528, 12663, 1916, 34292, 11675, 1884, 83613, 133063, 1542, 1193,...
[ 0.1656494140625, 0.03143310546875, 0.1378173828125, 0.09375, 0.0748291015625, 0.23876953125, 0.2158203125, 0.07635498046875, 0.07568359375, 0.162109375, 0.1534423828125, 0.1666259765625, 0.153564453125, 0.2408447265625, 0.1884765625, 0.08123779296875, 0.080810546875, 0.150024414062...
embed
31529755_c0
31529755
prolog
0
Title: Prolog if else syntax Problem title: Prolog if else syntax Tags: prolog, zebra-puzzle Problem: Prolog if else syntax I can't seem to get my if else statement to work. John, Fred and Harry are men, Mary, Julie, Susan and Anne are women. John has blonde hair while Fred and Harry have dark hair. Julie and Susan are...
Prolog if else syntax Prolog if else syntax prolog zebra-puzzle Prolog MaleName FemaleName Prolog if else syntax I can't seem to get my if else statement to work. John, Fred and Harry are men, Mary, Julie, Susan and Anne are women. John has blonde hair while Fred and Harry have dark hair. Julie and Susan are blonde, Ma...
[ 0.003387451171875, -0.00035858154296875, -0.0035247802734375, 0.0264892578125, 0.00762939453125, 0.0020599365234375, 0.000885009765625, 0.014892578125, -0.0054931640625, 0.003936767578125, 0.0002155303955078125, -0.0018768310546875, -0.0084228515625, 0.0031890869140625, 0.035400390625, ...
[ 1250, 4867, 2174, 37076, 6002, 86531, 502, 116232, 1766, 13894, 133, 35220, 163612, 213342, 831, 18, 48903, 2046, 759, 63805, 47, 4488, 4939, 4, 47192, 136, 20904, 621, 453, 23213, 64672, 67243, 14245, 24793, 1556, 96948, 24887, 12960, 4333...
[ 0.1846923828125, 0.2626953125, 0.22705078125, 0.27783203125, 0.1361083984375, 0.171875, 0.123046875, 0.16357421875, 0.07470703125, 0.1131591796875, 0.056396484375, 0.123291015625, 0.1253662109375, 0.1475830078125, 0.050567626953125, 0.052734375, 0.0634765625, 0.035125732421875, 0...
embed
34303987_c0
34303987
prolog
0
Title: Prolog - trying to determine order of store visits based on given facts Problem title: Prolog - trying to determine order of store visits based on given facts Tags: prolog Problem: Prolog - trying to determine order of store visits based on given facts I am trying to determine the order that someone visits the f...
Prolog - trying to determine order of store visits based on given facts Prolog - trying to determine order of store visits based on given facts prolog Prolog King Toots Sprawl-Mart Leftorium Two Try-N-Save king_toots stop1 stop2 stop3 stop4 ERROR Undefined DWIM Prolog - trying to determine order of store visits based o...
[ 0.015869140625, 0.0015411376953125, 0.0218505859375, 0.015380859375, 0.00677490234375, 0.026123046875, -0.0380859375, 0.001953125, 0.000293731689453125, -0.0164794921875, 0.0010833740234375, 0.0096435546875, -0.018798828125, -0.00665283203125, -0.01116943359375, -0.006378173828125, -...
[ 1250, 4867, 31577, 83324, 12989, 111, 4343, 19922, 7, 35509, 34475, 15824, 98, 502, 18813, 717, 30591, 102814, 141, 16305, 18, 420, 97857, 32964, 40858, 839, 5464, 272, 60097, 188, 7279, 304, 363, 617, 151206, 24638, 79912, 5983, 30439, 1...
[ 0.1875, 0.278076171875, 0.106201171875, 0.1475830078125, 0.2083740234375, 0.119384765625, 0.1527099609375, 0.2052001953125, 0.047027587890625, 0.102783203125, 0.1302490234375, 0.182861328125, 0.002197265625, 0.09381103515625, 0.089599609375, 0.126708984375, 0.13525390625, 0.0780029...
embed
23146922_c0
23146922
prolog
0
Title: Prolog, New in Prolog and getting syntax error Problem title: Prolog, New in Prolog and getting syntax error Tags: prolog Problem: Prolog, New in Prolog and getting syntax error I'm really new in Prolog (maybe few hours) and I'm getting these errors and warnings, most importantly please tell how to fix that erro...
Prolog, New in Prolog and getting syntax error Prolog, New in Prolog and getting syntax error prolog Prolog redefine_system_predicate legal_Schedule Schedule Warning amir-i7 hwk11.pl:24 Singleton ERROR hwk11.pl:28:8 Syntax Operator hwk11.pl:29:8 hwk11.pl:30:8 Users Desktop hwk11.pl Prolog, New in Prolog and getting syn...
[ -0.00164794921875, 0.007049560546875, 0.006561279296875, 0.007415771484375, -0.022216796875, 0.004913330078125, -0.029052734375, 0.006866455078125, -0.0037384033203125, -0.027099609375, 0.0064697265625, -0.00726318359375, -0.00022220611572265625, -0.021484375, 0.00860595703125, -0.0068...
[ 1250, 4867, 2356, 23, 136, 20949, 6002, 86531, 18499, 502, 15265, 64552, 16751, 19714, 2063, 8437, 25452, 15246, 230074, 5550, 4326, 14, 966, 434, 92, 1662, 2424, 25732, 43609, 1507, 151206, 24638, 1096, 28270, 1019, 19010, 150922, 29223, 1...
[ 0.1846923828125, 0.2437744140625, 0.135986328125, 0.095703125, 0.0202484130859375, 0.044830322265625, 0.13232421875, 0.168701171875, 0.17724609375, 0.1287841796875, 0.07733154296875, 0.1690673828125, 0.1396484375, 0.1058349609375, 0.1241455078125, 0.151611328125, 0.0614013671875, 0...
embed
15785680_c0
15785680
prolog
0
Title: Implementing a relation on a data structure Problem title: Implementing a relation on a data structure Tags: prolog Problem: Implementing a relation on a data structure I have the following simple Prolog program that, through the use of data structure, represents a family composed of husband, wife and children l...
Implementing a relation on a data structure Implementing a relation on a data structure prolog Implementing figlio1 figlio2 figlio3 figlio4 Regola Children HSurname HIncoming Seleziona Husband ChildrenList ChildrenIncomung ChildrenIncoming Head Tail TailIncoming Implementing a relation on a data structure I have the fo...
[ 0.01470947265625, 0.0037689208984375, 0.00151824951171875, 0.01080322265625, -0.00106048583984375, -0.00091552734375, -0.01104736328125, 0.0078125, 0.03173828125, -0.059814453125, -0.016845703125, -0.003814697265625, -0.02392578125, 0.0038604736328125, 0.0264892578125, -0.0062255859375...
[ 153941, 214, 41911, 98, 2053, 45646, 10, 502, 4867, 108901, 418, 304, 363, 617, 11678, 5330, 91345, 474, 11627, 35848, 277, 33695, 35599, 20387, 8262, 154663, 1619, 44816, 1218, 379, 4153, 8781, 1250, 1528, 4527, 33636, 14449, 150350, 71390...
[ 0.255859375, 0.1275634765625, 0.240234375, 0.1263427734375, 0.1424560546875, 0.2413330078125, 0.003997802734375, 0.1558837890625, 0.2252197265625, 0.1788330078125, 0.06121826171875, 0.07342529296875, 0.0882568359375, 0.128662109375, 0.1290283203125, 0.177734375, 0.1942138671875, 0....
embed
76396774_c0
76396774
prolog
0
Title: How to clear the previous query result on a list (in Prolog) Problem title: How to clear the previous query result on a list (in Prolog) Tags: prolog, list Problem: How to clear the previous query result on a list (in Prolog) I have this code: connected(a,b). connected(b,a). connected(b,j). connected(j,b). conne...
How to clear the previous query result on a list (in Prolog) How to clear the previous query result on a list (in Prolog) prolog list How Prolog not_yet_visited is_the_same How to clear the previous query result on a list (in Prolog) I have this code: The execution predicate is the go/2 where I give a starting room X a...
[ 0.00170135498046875, 0.0198974609375, 0.01904296875, 0.0242919921875, -0.0029144287109375, -0.003265380859375, -0.014892578125, -0.0130615234375, 0.00958251953125, -0.042724609375, -0.00970458984375, -0.00775146484375, -0.0031890869140625, -0.003143310546875, -0.0107421875, 0.016845703...
[ 11249, 34735, 70, 96362, 41, 1294, 16750, 98, 5303, 1250, 4867, 502, 959, 25983, 169697, 297, 83, 2347, 40175, 18151, 71924, 1830, 1653, 2063, 738, 12477, 72134, 17155, 86658, 12724, 6743, 67, 74481, 60875, 1295, 47, 990, 4343, 627, 28412...
[ 0.04925537109375, 0.24658203125, 0.05322265625, 0.2044677734375, 0.1455078125, 0.0999755859375, 0.18310546875, 0.07025146484375, 0.1793212890625, 0.1607666015625, 0.22998046875, 0.13525390625, 0.0814208984375, 0.14013671875, 0.2059326171875, 0.10369873046875, 0.058868408203125, 0.0...
embed
29812529_c0
29812529
prolog
0
Title: SWI-prolog to C# assert not working Problem title: SWI-prolog to C# assert not working Tags: c%23, prolog, swi-prolog Problem: SWI-prolog to C# assert not working I'm working on a solution using the SbsSW.SwiPlCs dll for integration between a C# application and a prolog .pl source file, however I'm facing a prob...
SWI-prolog to C# assert not working SWI-prolog to C# assert not working c%23 prolog swi-prolog PlException to SWI-prolog SbsSW.SwiPlCs Flight PlEngine.Initialize PlQuery.PlCall v01 PlQuery new.id new.airportFrom.id new.airportTo.id new.price Console.WriteLine e.MessagePl e.Message PlEngine.PlCleanup List Airport una_es...
[ 0.0223388671875, 0.026611328125, 0.005279541015625, 0.01531982421875, -0.011474609375, 0.01080322265625, -0.017333984375, 0.0026702880859375, 0.0057373046875, -0.0255126953125, 0.01470947265625, 0.0203857421875, -0.0096435546875, -0.001800537109375, 0.0213623046875, -0.01055908203125, ...
[ 159, 38969, 3454, 4867, 47, 313, 4904, 237, 33657, 959, 20697, 501, 3742, 502, 91, 2452, 29016, 63928, 16145, 89023, 683, 141, 441, 189932, 91384, 1212, 40705, 41732, 5584, 81, 6746, 3525, 532, 7341, 6982, 168407, 5293, 40777, 6011, 34677...
[ 0.0894775390625, 0.28369140625, 0.18017578125, 0.2320556640625, 0.1473388671875, 0.0645751953125, 0.21923828125, 0.1072998046875, 0.2481689453125, 0.1165771484375, 0.2164306640625, 0.016845703125, 0.0853271484375, 0.1689453125, 0.0224609375, 0.2471923828125, 0.1461181640625, 0.1339...
embed
72390870_c0
72390870
prolog
0
Title: What are the functors of compound sub terms of a Prolog term? Problem title: What are the functors of compound sub terms of a Prolog term? Tags: prolog Problem: What are the functors of compound sub terms of a Prolog term? PreCond: true. I am trying to do this functor compounds term Given the precondition (PreCo...
What are the functors of compound sub terms of a Prolog term? What are the functors of compound sub terms of a Prolog term? prolog What Prolog Avoid i.e Solution functorOfCompoundSubterm__ Goals source_info Syntax What are the functors of compound sub terms of a Prolog term? PreCond: true. I am trying to do this functo...
[ 0.00897216796875, -0.0017852783203125, 0.0191650390625, 0.003753662109375, -0.0068359375, -0.01324462890625, 0.0031890869140625, -0.009521484375, 0.01190185546875, -0.02294921875, 0.0004215240478515625, 0.0018768310546875, -0.006622314453125, 0.01190185546875, 0.01312255859375, 0.00521...
[ 4865, 7477, 18770, 7, 111, 217773, 1614, 69407, 1250, 4867, 13579, 502, 84361, 532, 187895, 132887, 108161, 31, 7030, 96472, 32166, 2016, 16765, 31344, 7319, 86531, 1914, 11935, 71, 29568, 31577, 479, 126940, 19273, 1653, 2063, 33938, 1360, ...
[ 0.0196533203125, 0.2086181640625, 0.222900390625, 0.07049560546875, 0.061798095703125, 0.263916015625, 0.220458984375, 0.17236328125, 0.1513671875, 0.2166748046875, 0.17626953125, 0.1251220703125, 0.19189453125, 0.1298828125, 0.1282958984375, 0.0902099609375, 0.0654296875, 0.108276...
embed
46406461_c0
46406461
prolog
0
Title: Prolog - New to Prolog, having a hard time understanding a code piece Problem title: Prolog - New to Prolog, having a hard time understanding a code piece Tags: string, increment, prolog, recursion Problem: Prolog - New to Prolog, having a hard time understanding a code piece I have just begun learning Prolog an...
Prolog - New to Prolog, having a hard time understanding a code piece Prolog - New to Prolog, having a hard time understanding a code piece string increment prolog recursion Prolog char_type CCount WCount Prolog - New to Prolog, having a hard time understanding a code piece I have just begun learning Prolog and I found...
[ -0.0021514892578125, -0.01507568359375, -0.01214599609375, 0.0224609375, -0.00579833984375, 0.0021514892578125, 0.0103759765625, -0.03125, 0.01318359375, -0.018310546875, -0.00946044921875, -0.023193359375, 0.004486083984375, 0.00151824951171875, 0.01611328125, -0.002777099609375, 0....
[ 1250, 4867, 2356, 47, 19441, 7941, 1733, 100094, 18151, 63847, 79315, 158661, 502, 195625, 21441, 50986, 313, 108210, 601, 1660, 6967, 52080, 14037, 4785, 765, 32354, 66211, 83, 74481, 3642, 5941, 21656, 2263, 23962, 34153, 217064, 28219, 268...
[ 0.18994140625, 0.24658203125, 0.085693359375, 0.041259765625, 0.040863037109375, 0.10986328125, 0.088623046875, 0.1810302734375, 0.16015625, 0.126708984375, 0.2235107421875, 0.184326171875, 0.1038818359375, 0.1514892578125, 0.14404296875, 0.1414794921875, 0.1048583984375, 0.2396240...
embed
54971608_c0
54971608
prolog
0
Title: Non-destructive universal quantification in Prolog Problem title: Non-destructive universal quantification in Prolog Tags: swi-prolog, prolog, prolog-setof, prolog-dif Problem: Non-destructive universal quantification in Prolog A good language for logic programming should allow the programmer to use a language c...
Non-destructive universal quantification in Prolog Non-destructive universal quantification in Prolog swi-prolog prolog prolog-setof prolog-dif Non-destructive Prolog Context Condition Body Vars Goal1 Goal2 Solutions nth1 N-I A-B copy_term _5306 _5318 _5330 Non-destructive universal quantification in Prolog A good lang...
[ 0.0206298828125, 0.03173828125, 0.02490234375, -0.0084228515625, -0.0186767578125, -0.0155029296875, 0.0081787109375, -0.004730224609375, 0.01043701171875, -0.032958984375, 0.0101318359375, 0.0107421875, 0.0091552734375, -0.01416015625, -0.00421142578125, -0.0069580078125, -0.0035552...
[ 3775, 112, 36716, 32813, 55230, 41274, 1250, 4867, 5844, 23, 2452, 3454, 502, 3509, 4390, 428, 420, 22829, 46347, 43960, 3323, 2016, 289, 418, 304, 109339, 927, 62, 9, 571, 43658, 32166, 14226, 9016, 1819, 1197, 4127, 46876, 62775, 56037,...
[ 0.148193359375, 0.0933837890625, 0.1483154296875, 0.1669921875, 0.1898193359375, 0.14208984375, 0.1546630859375, 0.2587890625, 0.001800537109375, 0.007171630859375, 0.1162109375, 0.06640625, 0.078369140625, 0.038848876953125, 0.0176239013671875, 0.016510009765625, 0.019134521484375, ...
embed