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
41858094_c0
41858094
prolog
0
Title: How to get all lists of stations according to the lines they are in? Problem title: How to get all lists of stations according to the lines they are in? Tags: list, prolog Problem: How to get all lists of stations according to the lines they are in? I have the following set of facts: Line names: line(ecLine). li...
How to get all lists of stations according to the lines they are in? How to get all lists of stations according to the lines they are in? list prolog How Line StationList Station ListOfLines LineList answer_write_options set_prolog_flag max_depth How to get all lists of stations according to the lines they are in? I ha...
[ -0.0074462890625, -0.020751953125, 0.0012664794921875, 0.006103515625, -0.01287841796875, 0.0002574920654296875, 0.01507568359375, 0.01214599609375, 0.01470947265625, -0.021484375, -0.0169677734375, 0.0191650390625, -0.009521484375, -0.001678466796875, 0.0020904541015625, 0.01190185546...
[ 11249, 2046, 756, 5303, 7, 111, 29398, 59499, 47, 124519, 1836, 621, 23, 502, 4867, 16777, 38488, 154663, 32036, 132887, 93232, 35166, 18781, 109585, 5423, 3454, 190872, 18389, 168867, 15824, 123055, 107013, 123594, 16797, 12638, 3789, 91736, ...
[ 0.0721435546875, 0.1334228515625, 0.1806640625, 0.23779296875, 0.053253173828125, 0.053955078125, 0.2469482421875, 0.147705078125, 0.023101806640625, 0.195068359375, 0.05694580078125, 0.06964111328125, 0.1572265625, 0.0743408203125, 0.163330078125, 0.13720703125, 0.1766357421875, 0...
embed
51846556_c0
51846556
prolog
0
Title: Looking up shapes in a lists of lists Problem title: Looking up shapes in a lists of lists Tags: list, prolog Problem: Looking up shapes in a lists of lists Program description Aim of the program My program is meant to calculate locations of shapes in a 20X15 sized plane. I have a list of shapes carrying the sha...
Looking up shapes in a lists of lists Looking up shapes in a lists of lists list prolog Looking _7948 _7954 _7894 _7900 _7840 _7846 _7786 _7792 _7800 _8016 use_module _ShapesOut Operation Rest ShapesOut nth0 Subject1 Subject2 Shape1 Loc Shape2 Loc2 Location1 Location2 Dim1 Dim2 Xcord1 Xcord2 Ycord1 Ycord2 _2166 _2172 _...
[ -0.002288818359375, 0.0167236328125, -0.00022602081298828125, 0.0137939453125, -0.00107574462890625, 0.0048828125, -0.00121307373046875, 0.0166015625, 0.016357421875, 0.0007781982421875, 0.007354736328125, 0.000400543212890625, 0.000843048095703125, -0.029541015625, 0.007537841796875, ...
[ 157268, 1257, 115700, 7, 23, 10, 5303, 111, 502, 4867, 22377, 9285, 167255, 617, 153781, 20543, 157054, 170702, 104656, 10253, 2485, 4527, 83279, 40798, 13569, 79858, 102203, 49756, 7224, 927, 2389, 94341, 304, 88784, 90788, 45247, 32271, 242...
[ 0.2266845703125, 0.2091064453125, 0.254638671875, 0.0838623046875, 0.059814453125, 0.0048828125, 0.228271484375, 0.09033203125, 0.0966796875, 0.2314453125, 0.049560546875, 0.1158447265625, 0.0771484375, 0.046295166015625, 0.050048828125, 0.1087646484375, 0.017852783203125, 0.022735...
embed
17156463_c0
17156463
prolog
0
Title: Prolog planner only generates one plan Problem title: Prolog planner only generates one plan Tags: prolog, planning, artificial-intelligence Problem: Prolog planner only generates one plan I have a prolog planner which works correctly with one major problem of only generating one plan at the time. The plan is co...
Prolog planner only generates one plan Prolog planner only generates one plan prolog planning artificial-intelligence Add Prolog State Goal Moves reverse_print_stack Been_list Name Preconditions Delete conditions_met change_state Child_state member_state New_been_list New_moves S_new apply_del apply_add App Rest Interi...
[ -0.000865936279296875, 0.01904296875, -0.00020694732666015625, 0.007415771484375, -0.0263671875, 0.00970458984375, -0.0201416015625, -0.01507568359375, 0.016845703125, -0.051513671875, -0.0059814453125, 0.025146484375, -0.01422119140625, 0.004241943359375, 0.0027618408203125, 0.0052795...
[ 1250, 4867, 1774, 1679, 4734, 139392, 1632, 502, 58136, 66733, 130687, 29117, 22836, 2016, 289, 135828, 39531, 184, 35662, 590, 2594, 873, 33, 6562, 15757, 1914, 126940, 7, 46485, 27289, 1928, 15549, 61340, 123829, 32786, 2356, 372, 432, 15...
[ 0.2066650390625, 0.308837890625, 0.27587890625, 0.1903076171875, 0.15478515625, 0.2196044921875, 0.1876220703125, 0.1656494140625, 0.249755859375, 0.1785888671875, 0.1651611328125, 0.1102294921875, 0.1400146484375, 0.1461181640625, 0.0556640625, 0.1815185546875, 0.1513671875, 0.057...
embed
18636501_c0
18636501
prolog
0
Title: Embedding prolog engine in a dll Problem title: Embedding prolog engine in a dll Tags: mingw, c%2B%2B, prolog, dll, swi-prolog Problem: Embedding prolog engine in a dll I've been working on a C++ application that embeds a prolog reasoning engine lately and, as stated in the title, I am now trying to generate a D...
Embedding prolog engine in a dll Embedding prolog engine in a dll mingw c%2B%2B prolog dll swi-prolog Embedding likes.pl likes.cpp get_food PlQuery std::string food.cpp DLIKES_EXPORTS food.exe x86 DllMain swipl.exe qsave_program pltmp-4228.exe init_file stand_alone Embedding prolog engine in a dll I've been working on ...
[ 0.025146484375, 0.019287109375, -0.0155029296875, 0.0162353515625, -0.0196533203125, 0.00162506103515625, -0.0010223388671875, -0.007598876953125, 0.00408935546875, -0.0250244140625, 0.005615234375, 0.01348876953125, -0.03466796875, 0.01226806640625, 0.0279541015625, 0.002532958984375,...
[ 2775, 372, 59725, 502, 4867, 87907, 23, 10, 81717, 46996, 434, 91, 2452, 3454, 1884, 7, 2424, 6366, 2046, 49558, 29016, 41732, 6138, 91693, 15381, 391, 42563, 26939, 91599, 46480, 15276, 1181, 168793, 8096, 108999, 18749, 6456, 2676, 124596...
[ 0.1109619140625, 0.2452392578125, 0.10009765625, 0.1949462890625, 0.246826171875, 0.219970703125, 0.07794189453125, 0.027679443359375, 0.2447509765625, 0.06298828125, 0.066650390625, 0.02069091796875, 0.1781005859375, 0.1378173828125, 0.2529296875, 0.0204010009765625, 0.1595458984375...
embed
28840572_c0
28840572
prolog
0
Title: Prolog Recursion removing elements at index that is multiples of n from a list where n is any number Problem title: Prolog Recursion removing elements at index that is multiples of n from a list where n is any number Tags: list, prolog, recursion Problem: Prolog Recursion removing elements at index that is multi...
Prolog Recursion removing elements at index that is multiples of n from a list where n is any number Prolog Recursion removing elements at index that is multiples of n from a list where n is any number list prolog recursion a 1 Prolog Recursion Using Prolog Recursion removing elements at index that is multiples of n fr...
[ -0.01239013671875, 0.02587890625, 0.0020294189453125, -0.00518798828125, -0.0299072265625, 0.00494384765625, 0.006103515625, -0.00384521484375, 0.0301513671875, -0.0250244140625, 0.012939453125, -0.0036773681640625, -0.02392578125, -0.0096435546875, 0.019775390625, 0.0137939453125, 0...
[ 1250, 4867, 165428, 42, 6889, 49146, 6496, 80854, 99, 63262, 48716, 111, 653, 1295, 5303, 2499, 14012, 83, 7440, 502, 195625, 1830, 106, 345, 5117, 2967, 10336, 66211, 134598, 86869, 33022, 36069, 1653, 2063, 67, 43240, 1884, 903, 133063, ...
[ 0.1807861328125, 0.2462158203125, 0.15869140625, 0.15576171875, 0.1240234375, 0.1605224609375, 0.038330078125, 0.1944580078125, 0.0828857421875, 0.206298828125, 0.2177734375, 0.01251220703125, 0.12158203125, 0.06390380859375, 0.1485595703125, 0.05657958984375, 0.1409912109375, 0.01...
embed
75844607_c0
75844607
prolog
0
Title: Tesponse data must not be correct Tau-prolog.js Problem title: Tesponse data must not be correct Tau-prolog.js Tags: javascript, json, php, prolog, tau-prolog Problem: Tesponse data must not be correct Tau-prolog.js CODE PL I am using the prolog interpreter in javascript tau-prolog I see that there are not many ...
Tesponse data must not be correct Tau-prolog.js Tesponse data must not be correct Tau-prolog.js javascript json php prolog tau-prolog Tesponse Tau-prolog.js use_module Hechos Problemas no_enciende Verificar no_arranca_pantalla_azul RAM no_se_conecta_a_internet Limpiar bajo_rendimiento Realizar Reglas diagnosticar_probl...
[ 0.015869140625, 0.00185394287109375, 0.00201416015625, 0.0135498046875, 0.0027313232421875, 0.01806640625, -0.005279541015625, 0.0189208984375, -0.007720947265625, -0.052734375, 0.022216796875, 0.00004649162292480469, -0.016845703125, -0.004852294921875, 0.0164794921875, 0.016723632812...
[ 1413, 18908, 184, 2053, 8110, 959, 186, 26785, 21139, 3454, 4867, 28175, 136951, 1647, 1681, 3958, 502, 5705, 4527, 83279, 1529, 48746, 118416, 110, 27545, 2285, 202484, 19305, 16336, 133877, 1165, 18331, 26959, 208489, 116153, 1261, 36181, 2...
[ 0.17431640625, 0.25244140625, 0.1943359375, 0.16796875, 0.1328125, 0.138671875, 0.074462890625, 0.233642578125, 0.245849609375, 0.13623046875, 0.2142333984375, 0.177490234375, 0.1934814453125, 0.1090087890625, 0.1998291015625, 0.09027099609375, 0.1270751953125, 0.21435546875, 0.0...
embed
16895960_c1
16895960
prolog
1
Users/josephreddington/Documents/workspace/com.plancomps.prolog.helloworld/operator.pl compiled 0.00 sec, 1,280 bytes Welcome to SWI-Prolog (Multi-threaded, 64 bits, Version 5.10.5) Copyright (c) 1990-2011 University of Amsterdam, VU Amsterdam SWI-Prolog comes with ABSOLUTELY NO WARRANTY. This is free software, and you...
Users/josephreddington/Documents/workspace/com.plancomps.prolog.helloworld/operator.pl compiled 0.00 sec, 1,280 bytes Welcome to SWI-Prolog (Multi-threaded, 64 bits, Version 5.10.5) Copyright (c) 1990-2011 University of Amsterdam, VU Amsterdam SWI-Prolog comes with ABSOLUTELY NO WARRANTY. This is free software, and you...
[ 0.038818359375, -0.000843048095703125, 0.0255126953125, 0.0220947265625, -0.0029754638671875, 0.00191497802734375, 0.00714111328125, 0.000843048095703125, 0.0025634765625, -0.045166015625, -0.0057373046875, 0.0113525390625, -0.01324462890625, -0.0130615234375, 0.008544921875, -0.004302...
[ 53400, 3400, 4517, 13520, 59725, 1507, 239469, 7, 18244, 65421, 277, 5868, 58875, 5, 3454, 4867, 127, 13817, 32554, 206469, 2424, 375, 5974, 37509, 19216, 25568, 4836, 390, 91334, 47, 159, 38969, 9, 10752, 50657, 118, 927, 39116, 297, 791...
[ 0.1033935546875, 0.044281005859375, 0.006561279296875, 0.052978515625, 0.10479736328125, 0.1497802734375, 0.1011962890625, 0.08709716796875, 0.046783447265625, 0.12744140625, 0.075927734375, 0.1612548828125, 0.1888427734375, 0.007781982421875, 0.202392578125, 0.276123046875, 0.026550...
embed
16405344_c0
16405344
prolog
0
Title: Logic Programming: Solve the term constraint f(X; Y; g(a)) = f(g(Y ); Z; X) Problem title: Logic Programming: Solve the term constraint f(X; Y; g(a)) = f(g(Y ); Z; X) Tags: prolog, constraints, unification Problem: Logic Programming: Solve the term constraint f(X; Y; g(a)) = f(g(Y ); Z; X) I was not able to atte...
Logic Programming: Solve the term constraint f(X; Y; g(a)) = f(g(Y ); Z; X) Logic Programming: Solve the term constraint f(X; Y; g(a)) = f(g(Y ); Z; X) prolog constraints unification Logic Programming Solve Show Logic Programming: Solve the term constraint f(X; Y; g(a)) = f(g(Y ); Z; X) I was not able to attend my prog...
[ 0.0213623046875, 0.02587890625, 0.0011444091796875, 0.007110595703125, -0.0113525390625, -0.00634765625, -0.01123046875, 0.00799560546875, -0.0028076171875, -0.027587890625, 0.00396728515625, -0.0084228515625, -0.007415771484375, -0.004302978515625, -0.00787353515625, 0.01080322265625,...
[ 50592, 27958, 214, 6678, 272, 13579, 158, 2816, 4288, 1238, 1542, 990, 706, 11, 177, 1723, 567, 1193, 238, 74, 502, 4867, 51, 41274, 17367, 959, 19048, 29966, 56037, 46876, 18507, 4743, 58867, 2258, 169624, 10366, 1810, 163, 5368, 18244, ...
[ 0.1953125, 0.2015380859375, 0.029693603515625, 0.1658935546875, 0.065185546875, 0.225830078125, 0.1517333984375, 0.2294921875, 0.1475830078125, 0.135498046875, 0.1126708984375, 0.1551513671875, 0.117431640625, 0.0654296875, 0.048583984375, 0.140869140625, 0.1510009765625, 0.0617980...
embed
36966024_c0
36966024
prolog
0
Title: running prolog on a server from php (or make it daemon) Problem title: running prolog on a server from php (or make it daemon) Tags: prolog, daemon, php, server, swi-prolog Problem: running prolog on a server from php (or make it daemon) I'm learning Prolog, and I do want to find out how it may be used for real ...
running prolog on a server from php (or make it daemon) running prolog on a server from php (or make it daemon) prolog daemon php server swi-prolog php Calling SWI-Prolog myfile.pl Port http_server http_dispatch use_module thread_httpd http_parameters http_mime_plugin http_client html_write http_handler upload_form _Re...
[ 0.0233154296875, 0.0068359375, 0.005950927734375, -0.01025390625, -0.0196533203125, 0.00848388671875, 0.0084228515625, 0.01055908203125, 0.0022125244140625, -0.0791015625, 0.0206298828125, 0.037109375, -0.006866455078125, 0.00872802734375, 0.0238037109375, -0.0186767578125, 0.0267333...
[ 51042, 502, 4867, 98, 10, 10723, 1295, 3958, 748, 3249, 442, 48, 74768, 91, 2452, 3454, 26265, 159, 38969, 10752, 759, 29822, 2424, 13791, 1621, 39642, 83279, 86997, 5475, 266, 145301, 222978, 7693, 74258, 70622, 5037, 75836, 171958, 81903,...
[ 0.1666259765625, 0.2276611328125, 0.26416015625, 0.1199951171875, 0.02197265625, 0.2198486328125, 0.1768798828125, 0.2376708984375, 0.0167083740234375, 0.0699462890625, 0.07275390625, 0.059417724609375, 0.191650390625, 0.0276031494140625, 0.1593017578125, 0.154541015625, 0.0709228515...
embed
63200623_c0
63200623
prolog
0
Title: Variable bin packing problem with Prolog (CLP) Problem title: Variable bin packing problem with Prolog (CLP) Tags: clp, clpfd, prolog, swi-prolog Problem: Variable bin packing problem with Prolog (CLP) I am trying to find an algorithm for the NP-hard 2D Variable Size Bin Packing Problem (2DVSBPP) in (Swi-)Prolog...
Variable bin packing problem with Prolog (CLP) Variable bin packing problem with Prolog (CLP) clp clpfd prolog swi-prolog the Variable Prolog CLP use_module expects_dialect These product_either_way Number Width Length There Cost area_box_pos_combined W_total H_total Height Getting Constraint W_total-Width H_total-Heigh...
[ 0.006378173828125, 0.007171630859375, -0.006988525390625, 0.00836181640625, -0.0250244140625, 0.016357421875, -0.012451171875, 0.004425048828125, 0.018798828125, -0.0179443359375, 0.013671875, 0.00445556640625, 0.004364013671875, -0.009033203125, 0.01226806640625, 0.01220703125, 0.01...
[ 84572, 2886, 2394, 43824, 214, 2967, 678, 1250, 4867, 37352, 33139, 254, 71, 502, 2452, 3454, 313, 4527, 83279, 41206, 8996, 12996, 7514, 58302, 77554, 63099, 16128, 11728, 7522, 7568, 601, 188, 572, 1529, 2816, 13025, 19069, 143907, 40322,...
[ 0.203857421875, 0.131103515625, 0.2252197265625, 0.2125244140625, 0.022308349609375, 0.162841796875, 0.038177490234375, 0.127685546875, 0.21142578125, 0.2235107421875, 0.01324462890625, 0.07122802734375, 0.0221710205078125, 0.07318115234375, 0.130126953125, 0.09423828125, 0.006988525...
embed
70159132_c0
70159132
prolog
0
Title: Understanding Eliza Chatbot in prolog Problem title: Understanding Eliza Chatbot in prolog Tags: dictionary, prolog, chatbot Problem: Understanding Eliza Chatbot in prolog I'm trying to understand how it really works the next eliza chatbot provided as example at: https://swish.swi-prolog.org/p/yet%20another%20el...
Understanding Eliza Chatbot in prolog Understanding Eliza Chatbot in prolog dictionary prolog chatbot Understanding Eliza Chatbot Pattern Dictionary Target LeftTarget RightTarget Word _Dictionary Key Value _Dict Key1 _Val1 read_word_list Input Goodbye Stimulus Response Output Head Tail tokenize_atom Understanding Eliza...
[ 0.0037994384765625, -0.002899169921875, 0.0019683837890625, 0.0191650390625, 0.003936767578125, 0.0062255859375, -0.004058837890625, 0.01513671875, 0.0250244140625, -0.0130615234375, 0.01190185546875, 0.00238037109375, -0.0234375, -0.004180908203125, 0.0311279296875, 0.0034027099609375...
[ 9626, 144057, 126443, 18032, 9190, 502, 4867, 23, 10763, 3245, 9876, 147638, 160017, 2480, 63031, 3794, 90911, 22543, 26824, 190060, 42272, 12301, 47416, 6562, 1272, 21654, 39, 67478, 92748, 13538, 44816, 1218, 379, 47, 1098, 20650, 5928, 282...
[ 0.0849609375, 0.0701904296875, 0.240234375, 0.1591796875, 0.2291259765625, 0.1407470703125, 0.2071533203125, 0.0274200439453125, 0.0997314453125, 0.133056640625, 0.08935546875, 0.0980224609375, 0.1639404296875, 0.03643798828125, 0.06280517578125, 0.07977294921875, 0.026885986328125, ...
embed
60468428_c0
60468428
prolog
0
Title: Creating a queue structure in Prolog Problem title: Creating a queue structure in Prolog Tags: custom-data-type, data-structures, prolog, queue, structure Problem: Creating a queue structure in Prolog I am in the process of learning Prolog and I'm have trouble approaching the language coming from the object-orie...
Creating a queue structure in Prolog Creating a queue structure in Prolog custom-data-type data-structures prolog queue structure Creating Prolog Front Back add_to_q Syntax Operator remove_from_q Creating a queue structure in Prolog I am in the process of learning Prolog and I'm have trouble approaching the language co...
[ 0.041015625, 0.0260009765625, -0.01129150390625, 0.03173828125, -0.0172119140625, -0.000911712646484375, 0.01177978515625, -0.022705078125, 0.0009002685546875, -0.022705078125, 0.010009765625, 0.01953125, 0.007537841796875, -0.02001953125, 0.00029754638671875, 0.00018215179443359375, ...
[ 56781, 41, 13388, 45646, 1250, 4867, 114122, 10135, 50986, 2053, 137656, 502, 43643, 26828, 15190, 188, 864, 19010, 86531, 150922, 87388, 161063, 52080, 63134, 51515, 46876, 36746, 49133, 76615, 81887, 28484, 167934, 28219, 28282, 15005, 5, 242...
[ 0.1431884765625, 0.205078125, 0.196533203125, 0.264892578125, 0.159423828125, 0.26416015625, 0.0880126953125, 0.00103759765625, 0.09808349609375, 0.024017333984375, 0.1619873046875, 0.09075927734375, 0.0687255859375, 0.1351318359375, 0.0966796875, 0.058349609375, 0.109375, 0.000427...
embed
43844938_c0
43844938
prolog
0
Title: Querying Streams, serial input Swi prolog Problem title: Querying Streams, serial input Swi prolog Tags: swi-prolog, prolog, arduino Problem: Querying Streams, serial input Swi prolog I have an arduino set up in a simple manner that read a potentiometer and writes the output to the serial connection. void setup(...
Querying Streams, serial input Swi prolog Querying Streams, serial input Swi prolog swi-prolog prolog arduino Querying Streams Swi Serial.begin Serial.write startthread1 read_serial get_time Time write_file thread_create serial_mon Serial.print File Stream ttyACM0 Querying Streams, serial input Swi prolog I have an ard...
[ 0.0185546875, -0.0035400390625, -0.000377655029296875, -0.01123046875, 0.00506591796875, -0.000736236572265625, 0.0006866455078125, 0.00170135498046875, 0.006744384765625, -0.0732421875, 0.03271484375, 0.00634765625, -0.016845703125, -0.020751953125, 0.01251220703125, -0.00765991210937...
[ 58836, 38543, 115061, 4, 35686, 107730, 105432, 502, 4867, 91, 2452, 3454, 187, 693, 4043, 135188, 6820, 18781, 4034, 39116, 418, 12301, 184, 51626, 2046, 6032, 19055, 33022, 29822, 86997, 7612, 3796, 35662, 42724, 15145, 15012, 594, 2389, ...
[ 0.171142578125, 0.163818359375, 0.2357177734375, 0.003021240234375, 0.1708984375, 0.18994140625, 0.22607421875, 0.1683349609375, 0.2127685546875, 0.013153076171875, 0.1903076171875, 0.07855224609375, 0.044464111328125, 0.13916015625, 0.1290283203125, 0.1771240234375, 0.06298828125, ...
embed
16865337_c0
16865337
prolog
0
Title: Some problems with a Prolog predicate that execute a series of operation on list's elements Problem title: Some problems with a Prolog predicate that execute a series of operation on list's elements Tags: prolog Problem: Some problems with a Prolog predicate that execute a series of operation on list's...
Some problems with a Prolog predicate that execute a series of operation on list's elements Some problems with a Prolog predicate that execute a series of operation on list's elements prolog Some Prolog Number1 String1 Number2 String2 TokenTail NewToken TaggedTokenList Head1 Tail1 Head2 Tail2 char_type NewStr...
[ 0.01513671875, -0.007476806640625, 0.007568359375, 0.016845703125, -0.0035400390625, -0.0013427734375, 0.000408172607421875, 0.0086669921875, 0.004638671875, -0.01220703125, 0.02587890625, 0.017822265625, -0.0079345703125, -0.0089111328125, 0.0101318359375, 0.006134033203125, 0.01708...
[ 31384, 44402, 678, 1250, 4867, 1653, 2063, 67, 450, 71924, 36549, 41018, 98, 5303, 3768, 80854, 502, 103332, 418, 23351, 304, 717, 1098, 9874, 379, 2356, 7763, 57261, 154663, 44816, 1218, 21441, 50986, 71713, 2967, 29479, 54, 3060, 73342, ...
[ 0.052154541015625, 0.2056884765625, 0.03424072265625, 0.193115234375, 0.2607421875, 0.219482421875, 0.2430419921875, 0.124267578125, 0.0003662109375, 0.157470703125, 0.1448974609375, 0.20947265625, 0.0704345703125, 0.1859130859375, 0.04547119140625, 0.138671875, 0.14599609375, 0.09...
embed
16443833_c0
16443833
prolog
0
Title: Find all possible paths w/o loops in Graph in Prolog Problem title: Find all possible paths w/o loops in Graph in Prolog Tags: path, prolog, find, graph-theory Problem: Find all possible paths w/o loops in Graph in Prolog I got an homework assignment for my logic course, but more or less don't have any clue how ...
Find all possible paths w/o loops in Graph in Prolog Find all possible paths w/o loops in Graph in Prolog path prolog find graph-theory Find Graph Prolog Path Start Adjacent Restadj Rest Node AdjNode Seen Find all possible paths w/o loops in Graph in Prolog I got an homework assignment for my logic course, but more or ...
[ 0.00311279296875, 0.0257568359375, -0.0021514892578125, 0.013671875, -0.0166015625, 0.0064697265625, -0.010009765625, 0.00927734375, 0.01129150390625, -0.041259765625, 0.0064697265625, 0.00970458984375, -0.023193359375, -0.00013256072998046875, 0.0264892578125, 0.01214599609375, 0.01...
[ 26040, 756, 7722, 60875, 7, 64, 31, 40956, 6524, 11727, 1250, 4867, 148, 502, 7413, 41382, 2347, 108421, 13794, 145, 5481, 170, 49756, 438, 112, 5021, 503, 33, 5368, 18244, 95486, 62775, 86869, 41, 30646, 69407, 1690, 1542, 154663, 61924,...
[ 0.0841064453125, 0.112548828125, 0.1953125, 0.2445068359375, 0.036102294921875, 0.082763671875, 0.1103515625, 0.2008056640625, 0.1646728515625, 0.1636962890625, 0.1556396484375, 0.21630859375, 0.02166748046875, 0.1123046875, 0.169921875, 0.203857421875, 0.0592041015625, 0.199707031...
embed
59418715_c0
59418715
prolog
0
Title: CHR in SWI Prolog: Rule guard containing "just removed" constraint does not return, blows stack Problem title: CHR in SWI Prolog: Rule guard containing "just removed" constraint does not return, blows stack Tags: swi-prolog, prolog, constraint-handling-rules Problem: CHR in SWI Prolog: Rule g...
CHR in SWI Prolog: Rule guard containing "just removed" constraint does not return, blows stack CHR in SWI Prolog: Rule guard containing "just removed" constraint does not return, blows stack swi-prolog prolog constraint-handling-rules CHR SWI Prolog Rule use_module chr_constraint Could ERROR Out Ab...
[ 0.008544921875, 0.028076171875, 0.0111083984375, 0.01519775390625, 0.00885009765625, 0.00726318359375, -0.0186767578125, 0.0185546875, 0.0103759765625, -0.02392578125, 0.0115966796875, 0.00946044921875, -0.0223388671875, -0.0024261474609375, 0.04150390625, -0.0189208984375, 0.0065612...
[ 29562, 159, 38969, 1250, 4867, 139118, 56050, 70541, 20314, 184750, 158, 2816, 4288, 959, 30646, 102310, 177261, 2452, 3454, 502, 54885, 13500, 4527, 83279, 17656, 2271, 191147, 151206, 24638, 13538, 3422, 1916, 211603, 7, 10176, 3034, 18151, ...
[ 0.2232666015625, 0.023284912109375, 0.199951171875, 0.13623046875, 0.1700439453125, 0.149658203125, 0.21923828125, 0.112060546875, 0.09698486328125, 0.2021484375, 0.04974365234375, 0.1798095703125, 0.087890625, 0.03387451171875, 0.1820068359375, 0.1546630859375, 0.1688232421875, 0....
embed
56615310_c0
56615310
prolog
0
Title: Is there a way to reach the same result in a clause using less variables? Problem title: Is there a way to reach the same result in a clause using less variables? Tags: prolog Problem: Is there a way to reach the same result in a clause using less variables? I am trying to find/understand another way to reach a ...
Is there a way to reach the same result in a clause using less variables? Is there a way to reach the same result in a clause using less variables? prolog less Facts Name Town Percentage Price Total most_expensive second_most_expensive Price2 TopPrice top_house_owner TopPercentage Is there a way to reach the same resul...
[ -0.0020599365234375, 0.0208740234375, -0.01165771484375, 0.0233154296875, 0.00125885009765625, 0.004241943359375, 0.00274658203125, 0.00323486328125, 0.027099609375, -0.038330078125, 0.01177978515625, 0.01513671875, 0.00933837890625, -0.0159912109375, -0.002593994140625, 0.01611328125,...
[ 3917, 58359, 5701, 16750, 70731, 13, 17368, 40715, 77336, 502, 4867, 132640, 15757, 52649, 908, 108475, 429, 48025, 33867, 2684, 83613, 33, 29888, 17932, 304, 4792, 33163, 2663, 23923, 8770, 15277, 7413, 159029, 1286, 1653, 2063, 4092, 186560...
[ 0.05303955078125, 0.1171875, 0.1329345703125, 0.1607666015625, 0.204345703125, 0.1177978515625, 0.047271728515625, 0.2310791015625, 0.189453125, 0.089599609375, 0.1429443359375, 0.12646484375, 0.101806640625, 0.077392578125, 0.005706787109375, 0.133544921875, 0.001312255859375, 0.1...
embed
55943467_c0
55943467
prolog
0
Title: What does Prolog assert/1 do with the term it is passed? Problem title: What does Prolog assert/1 do with the term it is passed? Tags: prolog Problem: What does Prolog assert/1 do with the term it is passed? I'm trying to understand what assert and retract do with the term they are passed. If I run the following...
What does Prolog assert/1 do with the term it is passed? What does Prolog assert/1 do with the term it is passed? prolog What Prolog _2556 What does Prolog assert/1 do with the term it is passed? I'm trying to understand what assert and retract do with the term they are passed. If I run the following: retract/1 removes...
[ 0.027099609375, 0.00616455078125, 0.017333984375, 0.01226806640625, -0.0126953125, 0.0079345703125, -0.008544921875, 0.00634765625, 0.00101470947265625, -0.01055908203125, 0.0274658203125, 0.01019287109375, -0.015625, 0.004150390625, 0.01385498046875, 0.015380859375, 0.03369140625, ...
[ 1250, 4867, 237, 33657, 11583, 54, 678, 13579, 115081, 442, 502, 13683, 14602, 83, 28219, 136, 41499, 15390, 11675, 87388, 756, 111, 55769, 33022, 141, 19, 8306, 35839, 959, 166996, 449, 20594, 5361, 41018, 11789, 1029, 4734, 15824, 91736, ...
[ 0.1788330078125, 0.255615234375, 0.0999755859375, 0.280517578125, 0.2108154296875, 0.11279296875, 0.1451416015625, 0.19873046875, 0.1453857421875, 0.024688720703125, 0.1298828125, 0.0767822265625, 0.0234527587890625, 0.0128173828125, 0.03521728515625, 0.05926513671875, 0.2197265625, ...
embed
29776832_c0
29776832
prolog
0
Title: Attributed variables: library interfaces / implementations / portability Problem title: Attributed variables: library interfaces / implementations / portability Tags: prolog Problem: Attributed variables: library interfaces / implementations / portability When I was skimming some prolog related questions recentl...
Attributed variables: library interfaces / implementations / portability Attributed variables: library interfaces / implementations / portability prolog Attributed init_att_var put_attr get_att_value Value get_attr Attributed variables: library interfaces / implementations / portability When I was skimming some prolog ...
[ 0.0029754638671875, -0.000583648681640625, -0.0157470703125, -0.0031280517578125, 0.004364013671875, -0.011962890625, -0.018310546875, 0.0245361328125, 0.00439453125, -0.0245361328125, 0.0191650390625, 0.0198974609375, -0.01275634765625, 0.0146484375, 0.0244140625, 0.0036163330078125, ...
[ 1913, 191145, 71, 77336, 7, 35773, 1294, 101758, 208124, 4898, 83259, 502, 4867, 23, 217, 27639, 1961, 3884, 42, 2046, 27494, 190060, 2227, 11249, 33636, 8951, 187830, 238, 41382, 1250, 17203, 6958, 38648, 95378, 58732, 3357, 16981, 150380, ...
[ 0.1080322265625, 0.2666015625, 0.0859375, 0.300048828125, 0.003204345703125, 0.139892578125, 0.0103759765625, 0.1832275390625, 0.1641845703125, 0.1522216796875, 0.131591796875, 0.11962890625, 0.259521484375, 0.05938720703125, 0.120361328125, 0.16064453125, 0.193115234375, 0.1074218...
embed
15507010_c0
15507010
prolog
0
Title: Declarative interpretation of list concatenation program in Prolog Problem title: Declarative interpretation of list concatenation program in Prolog Tags: declarative, prolog Problem: Declarative interpretation of list concatenation program in Prolog I have this very simple problem: write a Prolog program that i...
Declarative interpretation of list concatenation program in Prolog Declarative interpretation of list concatenation program in Prolog declarative prolog Declarative Prolog myappend1 myappend2 Dimostra Declarative interpretation of list concatenation program in Prolog I have this very simple problem: write a Prolog prog...
[ 0.0035400390625, 0.0010528564453125, 0.01019287109375, -0.001708984375, 0.010498046875, 0.01129150390625, -0.0084228515625, 0.0216064453125, 0.04248046875, -0.0262451171875, 0.0164794921875, -0.0126953125, -0.020751953125, -0.00762939453125, 0.01904296875, 0.0033416748046875, 0.03295...
[ 98501, 4935, 206019, 5303, 158, 4460, 33, 1528, 1250, 4867, 21635, 502, 759, 9007, 3611, 418, 304, 803, 432, 2816, 8781, 2967, 33022, 29479, 114689, 71, 32354, 33478, 76, 6626, 79315, 4488, 3917, 275, 1542, 1193, 238, 1723, 990, 51347, ...
[ 0.169189453125, 0.0797119140625, 0.1912841796875, 0.194091796875, 0.0970458984375, 0.171875, 0.133056640625, 0.160400390625, 0.1751708984375, 0.2298583984375, 0.1695556640625, 0.0694580078125, 0.064453125, 0.09014892578125, 0.12841796875, 0.0455322265625, 0.1248779296875, 0.0097656...
embed
28773539_c0
28773539
prolog
0
Title: Declaring facts that are true only within the scope of a single unit test in SWI-Prolog Problem title: Declaring facts that are true only within the scope of a single unit test in SWI-Prolog Tags: unit-testing, swi-prolog, prolog, plunit Problem: Declaring facts that are true only within the scope of a single un...
Declaring facts that are true only within the scope of a single unit test in SWI-Prolog Declaring facts that are true only within the scope of a single unit test in SWI-Prolog unit-testing swi-prolog prolog plunit Declaring SWI-Prolog main.pl same_colour begin_tests shape_a colour_1 shape_b end_tests Call plunit_same_c...
[ 0.00762939453125, 0.0089111328125, -0.000408172607421875, -0.0159912109375, -0.020751953125, -0.027587890625, 0.0185546875, 0.001953125, 0.0205078125, 0.01007080078125, -0.010986328125, 0.04248046875, -0.018798828125, 0.0003223419189453125, 0.033935546875, 0.021728515625, 0.017700195...
[ 25755, 320, 15824, 7, 621, 29568, 4734, 28032, 70, 6, 70820, 10, 11001, 25072, 3034, 159, 38969, 9, 10752, 4867, 6954, 91, 2452, 3454, 502, 12266, 6773, 5201, 2424, 5701, 454, 22796, 9842, 115700, 11, 134855, 115187, 275, 3564, 26265, 4...
[ 0.0992431640625, 0.1322021484375, 0.1854248046875, 0.025604248046875, 0.0268402099609375, 0.19873046875, 0.087158203125, 0.1090087890625, 0.002716064453125, 0.00274658203125, 0.1478271484375, 0.002655029296875, 0.1219482421875, 0.13134765625, 0.1746826171875, 0.07269287109375, 0.2011...
embed
71230168_c0
71230168
prolog
0
Title: How to Escape Double Quotes on Prolog Web Server Problem title: How to Escape Double Quotes on Prolog Web Server Tags: quotes, double, escaping, prolog, server Problem: How to Escape Double Quotes on Prolog Web Server I used the following Prolog code to display an HTML form with info_server(8000). but it doesn't...
How to Escape Double Quotes on Prolog Web Server How to Escape Double Quotes on Prolog Web Server quotes double escaping prolog server How Escape Double Quotes Prolog Web Server info_server use_module thread_httpd http_dispatch http_error html_write http_client http_handler info_web_form Port http_server localhost:8000...
[ 0.0228271484375, 0.0098876953125, -0.013916015625, -0.0146484375, 0.000728607177734375, -0.00021266937255859375, -0.0026397705078125, 0.0126953125, -0.0007781982421875, -0.04248046875, 0.0233154296875, -0.01513671875, -0.008056640625, 0.00193023681640625, 0.0224609375, 0.02099609375, ...
[ 11249, 47, 181540, 107172, 109216, 7, 1250, 4867, 4002, 22687, 66747, 41929, 38940, 10366, 502, 10723, 3004, 39642, 83279, 86997, 5475, 1621, 188800, 7693, 222978, 74258, 14051, 5037, 13791, 4000, 40294, 87774, 75616, 70870, 44816, 159020, 8699...
[ 0.054962158203125, 0.012664794921875, 0.27294921875, 0.26220703125, 0.289794921875, 0.1087646484375, 0.1541748046875, 0.20556640625, 0.097412109375, 0.1527099609375, 0.261474609375, 0.1998291015625, 0.1915283203125, 0.0572509765625, 0.10400390625, 0.1190185546875, 0.0966796875, 0.1...
embed
40686973_c0
40686973
prolog
0
Title: Prolog: Asking the user for a value only if it is not known Problem title: Prolog: Asking the user for a value only if it is not known Tags: prolog Problem: Prolog: Asking the user for a value only if it is not known I want to write a KB that, when attempting to prove a goal, will ask the user for input if it do...
Prolog: Asking the user for a value only if it is not known Prolog: Asking the user for a value only if it is not known prolog Prolog Asking Prolog: Asking the user for a value only if it is not known I want to write a KB that, when attempting to prove a goal, will ask the user for input if it doesn't have a value for ...
[ 0.00164794921875, -0.004119873046875, -0.00048828125, -0.000713348388671875, -0.009521484375, 0.01519775390625, -0.015869140625, 0.00469970703125, -0.003265380859375, -0.00115966796875, 0.006256103515625, 0.031005859375, -0.0308837890625, 0.01043701171875, 0.0303955078125, 0.0250244140...
[ 1250, 4867, 1301, 6048, 38937, 100, 34292, 4734, 2174, 442, 959, 51529, 502, 12, 3444, 33022, 30742, 81887, 23534, 69236, 26458, 107730, 22027, 18, 29458, 1614, 519, 289, 16916, 7722, 109458, 104851, 16750, 30957, 57571, 11627, 10576, 51, 6...
[ 0.1849365234375, 0.254638671875, 0.1490478515625, 0.0869140625, 0.1910400390625, 0.1461181640625, 0.203857421875, 0.1158447265625, 0.138427734375, 0.0560302734375, 0.1417236328125, 0.242919921875, 0.1134033203125, 0.0164337158203125, 0.055816650390625, 0.09100341796875, 0.20654296875...
embed
67810114_c0
67810114
prolog
0
Title: Prolog: consider clauses from a dynamic module when calling a predicate Problem title: Prolog: consider clauses from a dynamic module when calling a predicate Tags: module, prolog, swi-prolog Problem: Prolog: consider clauses from a dynamic module when calling a predicate In the SWI Prolog manual , I found the f...
Prolog: consider clauses from a dynamic module when calling a predicate Prolog: consider clauses from a dynamic module when calling a predicate module prolog swi-prolog a Prolog allworlds:asserta allworlds:dynamic add_import_module greece:asserta greece:grandparent allworlds:grandparent greece:parent allworlds:parent a...
[ 0.02197265625, 0.009765625, 0.007049560546875, 0.030029296875, -0.0216064453125, 0.00946044921875, 0.0218505859375, 0.00634765625, 0.0084228515625, -0.051513671875, 0.01025390625, 0.0048828125, -0.019775390625, -0.001678466796875, 0.000904083251953125, -0.0045166015625, 0.00576782226...
[ 1250, 4867, 16916, 70731, 90, 1295, 84079, 88996, 159029, 1653, 2063, 67, 502, 2452, 3454, 756, 32554, 110965, 242554, 15190, 60270, 83279, 3514, 32405, 79139, 99547, 30145, 23550, 19714, 159, 38969, 23009, 10015, 4552, 4127, 76811, 31577, 69...
[ 0.152099609375, 0.21923828125, 0.13232421875, 0.193115234375, 0.1363525390625, 0.05059814453125, 0.1805419921875, 0.2213134765625, 0.1221923828125, 0.16015625, 0.1904296875, 0.041229248046875, 0.1007080078125, 0.1416015625, 0.07623291015625, 0.09405517578125, 0.185791015625, 0.1719...
embed
23484565_c0
23484565
prolog
0
Title: Prolog Expert System for the Farmer Goat Wolf Cabbage Puzzle Problem title: Prolog Expert System for the Farmer Goat Wolf Cabbage Puzzle Tags: expert-system, prolog, river-crossing-puzzle Problem: Prolog Expert System for the Farmer Goat Wolf Cabbage Puzzle I have been tasked with creating a General Expert Syste...
Prolog Expert System for the Farmer Goat Wolf Cabbage Puzzle Prolog Expert System for the Farmer Goat Wolf Cabbage Puzzle expert-system prolog river-crossing-puzzle Answer Prolog Expert System Farmer Goat Wolf Cabbage Puzzle Order start_state west_side end_state east_side move_goat move_wolf move_cabbage Move FarmerKB....
[ 0.047119140625, 0.008056640625, -0.0196533203125, 0.01171875, -0.00872802734375, 0.036376953125, -0.006317138671875, 0.00830078125, -0.01239013671875, -0.035400390625, 0.015380859375, 0.0089111328125, -0.012939453125, 0.00299072265625, -0.009521484375, 0.00750732421875, -0.0073852539...
[ 1250, 4867, 70523, 12353, 100, 51869, 56, 2016, 257, 45492, 30438, 402, 429, 179277, 26808, 16751, 502, 96113, 95665, 214, 1766, 13894, 130373, 81206, 4034, 61340, 65272, 8752, 3564, 25813, 519, 25400, 408, 45391, 135828, 39709, 2424, 109339,...
[ 0.15966796875, 0.23779296875, 0.215087890625, 0.2003173828125, 0.024017333984375, 0.1749267578125, 0.092041015625, 0.1552734375, 0.08612060546875, 0.189208984375, 0.13134765625, 0.1588134765625, 0.077392578125, 0.1968994140625, 0.1746826171875, 0.1400146484375, 0.11962890625, 0.176...
embed
44604038_c0
44604038
prolog
0
Title: Read https body in SWI-Prolog Problem title: Read https body in SWI-Prolog Tags: alexa-skills-kit, http, prolog, swi-prolog Problem: Read https body in SWI-Prolog Another question from me.. Overall I have been trying to define authenticate_alexa/1 . This (I think) is providing the same feature as this java code ...
Read https body in SWI-Prolog Read https body in SWI-Prolog alexa-skills-kit http prolog swi-prolog httpsbody base64//2 Read SWI-Prolog authenticate_alexa Request http_read_json_dict DictIn handle_dict DictOut my_json_answer reply_json check_sigchainurl URL portray_clause user_error get_certs ACert CertsRest checkcertv...
[ 0.0169677734375, 0.01556396484375, 0.015869140625, 0.0123291015625, -0.01385498046875, 0.0098876953125, 0.02880859375, -0.0038604736328125, 0.000812530517578125, -0.0233154296875, 0.01531982421875, -0.0011138916015625, -0.0181884765625, -0.0274658203125, 0.017333984375, -0.000564575195...
[ 4764, 3975, 14361, 23, 159, 38969, 9, 10752, 4867, 662, 3798, 1336, 42458, 9488, 1621, 502, 91, 2452, 3454, 37873, 3647, 13307, 12477, 195734, 2182, 1935, 853, 75616, 454, 39116, 170, 1681, 61669, 60897, 18, 4153, 34831, 759, 10133, 6488,...
[ 0.2073974609375, 0.278076171875, 0.25390625, 0.017486572265625, 0.083740234375, 0.23046875, 0.013336181640625, 0.1583251953125, 0.20166015625, 0.10986328125, 0.194091796875, 0.154541015625, 0.1527099609375, 0.168212890625, 0.1534423828125, 0.129638671875, 0.025177001953125, 0.18835...
embed
10268086_c0
10268086
prolog
0
Title: "Who is the barber" logic puzzle in Prolog Problem title: "Who is the barber" logic puzzle in Prolog Tags: prolog-dif, puzzle, prolog Problem: "Who is the barber" logic puzzle in Prolog I'm reading Raymond Smullyan's "To mock a Mockingbird". In the book there is a puzzle that goes like this: ...
"Who is the barber" logic puzzle in Prolog "Who is the barber" logic puzzle in Prolog prolog-dif puzzle prolog Who Prolog WigColor Barber "Who is the barber" logic puzzle in Prolog I'm reading Raymond Smullyan's "To mock a Mockingbird". In the book there is a puzzle that goes like this: I figured ou...
[ 0.015380859375, 0.005096435546875, 0.008056640625, 0.0113525390625, -0.0150146484375, 0.006805419921875, 0.005615234375, 0.0159912109375, 0.025390625, -0.0322265625, -0.008056640625, 0.025146484375, 0.009033203125, 0.00787353515625, 0.0157470703125, -0.0002880096435546875, 0.01397705...
[ 1456, 497, 83, 70, 125017, 41502, 62775, 104192, 23, 1250, 4867, 502, 428, 420, 40469, 601, 872, 10625, 1484, 144898, 16454, 161597, 24965, 43806, 1643, 7763, 8698, 92, 10, 2501, 41324, 91157, 12877, 1884, 903, 26366, 7477, 86869, 179933, ...
[ 0.019500732421875, 0.1226806640625, 0.1331787109375, 0.11865234375, 0.320556640625, 0.0068359375, 0.2227783203125, 0.2135009765625, 0.046173095703125, 0.2054443359375, 0.2822265625, 0.1307373046875, 0.03350830078125, 0.0869140625, 0.0931396484375, 0.09716796875, 0.1171875, 0.126831...
embed
59986522_c0
59986522
prolog
0
Title: Displaying all the members of database in Prolog Problem title: Displaying all the members of database in Prolog Tags: prolog Problem: Displaying all the members of database in Prolog I'm trying to make a predicate "find_recipe" which fetches a list of ingredients based on the name of the recipe, given by the us...
Displaying all the members of database in Prolog Displaying all the members of database in Prolog prolog Displaying Prolog Makaronilaatikko Curry Sandwich find_recipe Recipename Result Enter Ingredients recipeList.length Recipe result.ingredients Usertype Log Your Logged Any Displaying all the members of database in Pr...
[ -0.0052490234375, -0.0054931640625, 0.036376953125, 0.016357421875, -0.00469970703125, 0.0224609375, -0.0052490234375, 0.0277099609375, 0.0167236328125, -0.02392578125, 0.01458740234375, -0.003448486328125, -0.0179443359375, -0.00141143798828125, 0.0123291015625, 0.006500244140625, 0...
[ 90045, 756, 70, 43032, 111, 63399, 1250, 4867, 502, 13274, 34925, 198924, 17065, 1294, 13552, 69696, 7413, 107, 115052, 182378, 11627, 126684, 60816, 242238, 48564, 154663, 16750, 52627, 53400, 50986, 13146, 64906, 31577, 1653, 2063, 111607, 76...
[ 0.1759033203125, 0.10650634765625, 0.005523681640625, 0.19921875, 0.035400390625, 0.1995849609375, 0.1561279296875, 0.236083984375, 0.09930419921875, 0.073974609375, 0.1273193359375, 0.1927490234375, 0.067138671875, 0.07421875, 0.05889892578125, 0.1519775390625, 0.122802734375, 0.0...
embed
25966861_c0
25966861
prolog
0
Title: Trying to write a tree-height predicate - do I need Peano-style natural numbers? Problem title: Trying to write a tree-height predicate - do I need Peano-style natural numbers? Tags: successor-arithmetics, clpfd, prolog Problem: Trying to write a tree-height predicate - do I need Peano-style natural numbers? As ...
Trying to write a tree-height predicate - do I need Peano-style natural numbers? Trying to write a tree-height predicate - do I need Peano-style natural numbers? successor-arithmetics clpfd prolog Trying Peano-style tree_eq1 Previously tree_lt1 Trying to write a tree-height predicate - do I need Peano-style natural num...
[ 0.00885009765625, 0.0027313232421875, -0.01470947265625, -0.015625, 0.0130615234375, 0.00799560546875, -0.01080322265625, -0.00469970703125, -0.0002498626708984375, -0.0299072265625, -0.01080322265625, -0.005523681640625, -0.00921630859375, -0.01141357421875, 0.021728515625, -0.0044555...
[ 40858, 33022, 53201, 1106, 22553, 1653, 2063, 67, 3871, 1460, 3922, 40946, 6083, 101935, 39457, 42, 8962, 41637, 39557, 71, 502, 4867, 864, 1277, 62822, 1250, 81979, 66211, 32562, 2394, 6635, 155955, 4488, 40225, 12620, 19364, 72694, 51529, ...
[ 0.0970458984375, 0.1297607421875, 0.188232421875, 0.1529541015625, 0.169189453125, 0.13037109375, 0.1715087890625, 0.0345458984375, 0.10986328125, 0.1468505859375, 0.205322265625, 0.168212890625, 0.1697998046875, 0.1947021484375, 0.10540771484375, 0.007476806640625, 0.037841796875, ...
embed
62101727_c0
62101727
prolog
0
Title: Graph cycle detection with Prolog Problem title: Graph cycle detection with Prolog Tags: prolog Problem: Graph cycle detection with Prolog I am trying to write a prolog program that detects a cycle in an undirected graph. I have already consulted this question: prolog graph depth first search and have attempted ...
Graph cycle detection with Prolog Graph cycle detection with Prolog prolog Graph Prolog Node NextNode Visited StartNode Graph.get Graph cycle detection with Prolog I am trying to write a prolog program that detects a cycle in an undirected graph. I have already consulted this question: prolog graph depth first search a...
[ 0.0203857421875, 0.01611328125, -0.00077056884765625, 0.0198974609375, 0.0027923583984375, -0.01513671875, -0.0118408203125, -0.00927734375, 0.007415771484375, -0.0294189453125, -0.0107421875, 0.00469970703125, -0.018798828125, 0.0098876953125, 0.03515625, 0.0262451171875, -0.0147094...
[ 6524, 11727, 105823, 149, 58994, 678, 1250, 4867, 502, 438, 112, 4997, 5021, 98684, 297, 13794, 3794, 31577, 33022, 1528, 96391, 51, 80581, 41382, 147008, 168867, 5117, 33938, 37264, 17447, 234873, 42658, 2060, 208124, 33636, 237, 45, 10763, ...
[ 0.1666259765625, 0.1361083984375, 0.26025390625, 0.1636962890625, 0.093505859375, 0.046295166015625, 0.1634521484375, 0.2381591796875, 0.1202392578125, 0.124755859375, 0.080322265625, 0.1016845703125, 0.1396484375, 0.197021484375, 0.1575927734375, 0.0816650390625, 0.05108642578125, ...
embed
10428583_c0
10428583
prolog
0
Title: SWI-Prolog cgi_get_form(Arguments) saving and handling arguments web form Problem title: SWI-Prolog cgi_get_form(Arguments) saving and handling arguments web form Tags: forms, prolog, swi-prolog Problem: SWI-Prolog cgi_get_form(Arguments) saving and handling arguments web form I'm looking for a way of saving and...
SWI-Prolog cgi_get_form(Arguments) saving and handling arguments web form SWI-Prolog cgi_get_form(Arguments) saving and handling arguments web form forms prolog swi-prolog SWI-Prolog cgi_get_form Arguments Name Value nameofform1 value1 nameofform2 value2 extract_value Valor SWI-Prolog cgi_get_form(Arguments) saving and...
[ 0.0240478515625, 0.0167236328125, -0.0162353515625, -0.0157470703125, -0.005767822265625, 0.00141143798828125, 0.00286865234375, 0.02734375, -0.00023746490478515625, -0.037109375, 0.009033203125, 0.000797271728515625, -0.0299072265625, 0.00848388671875, 0.0167236328125, -0.012634277343...
[ 159, 38969, 10752, 4867, 501, 735, 3794, 5037, 7614, 1234, 9035, 57, 6496, 45064, 10750, 1467, 3173, 502, 2452, 3454, 112140, 15757, 190060, 9351, 4390, 34292, 418, 304, 125663, 27494, 91671, 3917, 7103, 3229, 137447, 11782, 5701, 1528, 139...
[ 0.06353759765625, 0.236572265625, 0.159912109375, 0.2144775390625, 0.024383544921875, 0.1927490234375, 0.06414794921875, 0.201416015625, 0.10064697265625, 0.2264404296875, 0.1051025390625, 0.0843505859375, 0.0985107421875, 0.14501953125, 0.2435302734375, 0.1064453125, 0.213623046875,...
embed
16585730_c0
16585730
prolog
0
Title: Some doubts related DCG grammar and parse tree relation in Prolog Problem title: Some doubts related DCG grammar and parse tree relation in Prolog Tags: prolog, dcg Problem: Some doubts related DCG grammar and parse tree relation in Prolog I am studying DCG grammar and parse tree in Prolog using Ivan Bratko book...
Some doubts related DCG grammar and parse tree relation in Prolog Some doubts related DCG grammar and parse tree relation in Prolog prolog dcg Some DCG Prolog Number noun_phrase verb_phrase Verb Det Noun Tree Some doubts related DCG grammar and parse tree relation in Prolog I am studying DCG grammar and parse tree in P...
[ 0.02099609375, 0.00457763671875, -0.008056640625, 0.0247802734375, 0.008544921875, 0.018310546875, -0.01318359375, 0.00125885009765625, 0.004302978515625, -0.03759765625, -0.00001800060272216797, -0.0172119140625, -0.0019073486328125, 0.005767822265625, 0.006439208984375, 0.01202392578...
[ 92814, 7, 391, 56367, 122092, 147, 366, 184, 53201, 41911, 1250, 4867, 502, 104, 238, 177, 103332, 110, 309, 179665, 42792, 1446, 579, 438, 101344, 35187, 23698, 119794, 265, 12877, 172895, 100, 231996, 157075, 206019, 139392, 71924, 25632, ...
[ 0.1278076171875, 0.0289459228515625, 0.0849609375, 0.2235107421875, 0.1572265625, 0.08343505859375, 0.1466064453125, 0.1055908203125, 0.2061767578125, 0.1033935546875, 0.1041259765625, 0.210205078125, 0.08056640625, 0.0264129638671875, 0.0161590576171875, 0.008026123046875, 0.1441650...
embed
78400905_c0
78400905
prolog
0
Title: Is there a way to convert a recursive Prolog code block into a DFS implementation for a Missionaries and Cannibals problem? Problem title: Is there a way to convert a recursive Prolog code block into a DFS implementation for a Missionaries and Cannibals problem? Tags: prolog, river-crossing-puzzle Problem: Is th...
Is there a way to convert a recursive Prolog code block into a DFS implementation for a Missionaries and Cannibals problem? Is there a way to convert a recursive Prolog code block into a DFS implementation for a Missionaries and Cannibals problem? prolog river-crossing-puzzle Prolog DFS Missionaries Cannibals Traversed...
[ 0.0250244140625, 0.0103759765625, 0.01287841796875, 0.0167236328125, -0.0076904296875, 0.0133056640625, -0.0286865234375, 0.00032806396484375, 0.01165771484375, -0.039306640625, 0.0157470703125, -0.01153564453125, -0.0093994140625, -0.008056640625, 0.01409912109375, 0.0120849609375, ...
[ 2685, 3917, 96760, 195625, 5844, 1250, 4867, 18151, 46389, 3934, 391, 36381, 208124, 77905, 11, 10484, 136, 4171, 93, 3571, 2967, 502, 96113, 95665, 214, 1766, 13894, 4937, 7864, 135828, 13538, 7650, 4527, 81887, 86869, 3871, 25813, 138, 29...
[ 0.016510009765625, 0.1021728515625, 0.1925048828125, 0.199462890625, 0.1063232421875, 0.1875, 0.2391357421875, 0.1884765625, 0.20703125, 0.0732421875, 0.0897216796875, 0.253662109375, 0.192626953125, 0.18408203125, 0.1055908203125, 0.1419677734375, 0.1231689453125, 0.0704345703125,...
embed
19974124_c0
19974124
prolog
0
Title: Finding items that meet a condition Problem title: Finding items that meet a condition Tags: prolog Problem: Finding items that meet a condition I have a database similar to: item(coin, [gold, metal, round]). .... item(ball, [sphere, bouncy, -red]). % notice the negated property My goal is to find the items that...
Finding items that meet a condition Finding items that meet a condition prolog Finding properties_true Items Prop SearchType List Property Rest property_true Finding items that meet a condition I have a database similar to: My goal is to find the items that match a given property. An example of what the problem is: fin...
[ -0.0022735595703125, -0.0150146484375, 0.0272216796875, -0.01092529296875, -0.01507568359375, -0.0030517578125, -0.01556396484375, -0.0033416748046875, 0.010498046875, -0.0172119140625, 0.0260009765625, 0.021240234375, 0.0027618408203125, -0.00726318359375, 0.0084228515625, 0.032226562...
[ 26040, 214, 55769, 450, 23356, 35431, 502, 4867, 183871, 9774, 78426, 43796, 33086, 196707, 32036, 206984, 49756, 57266, 10, 63399, 21373, 69236, 7413, 14858, 27781, 2967, 5584, 18113, 30646, 58837, 110527, 3996, 4734, 86761, 92610, 35735, 1247...
[ 0.1556396484375, 0.04644775390625, 0.208984375, 0.019744873046875, 0.167236328125, 0.22900390625, 0.0953369140625, 0.1590576171875, 0.1854248046875, 0.1390380859375, 0.19921875, 0.0986328125, 0.0758056640625, 0.1534423828125, 0.0855712890625, 0.1114501953125, 0.127197265625, 0.1467...
embed
43220441_c0
43220441
prolog
0
Title: Prolog Round-robin schedule Home and Away Problem title: Prolog Round-robin schedule Home and Away Tags: prolog Problem: Prolog Round-robin schedule Home and Away I'm currently trying to program a round robin schedule in Prolog and have managed to get all teams to play each other once, I would now like to progra...
Prolog Round-robin schedule Home and Away Prolog Round-robin schedule Home and Away prolog 1 match teams remaining Prolog Round-robin Home Away match_table NumTeams check_num_input reset_allocations check_not_allocated CurrentMatchesTail get_match_allocation CurrentMatches RemainingNumTeamsPerMatch Matches NewMatches R...
[ -0.00494384765625, -0.0040283203125, 0.014892578125, -0.002471923828125, -0.0361328125, 0.000385284423828125, -0.0020904541015625, 0.0103759765625, 0.01434326171875, 0.01025390625, 0.0238037109375, -0.00592041015625, 0.014404296875, -0.0164794921875, 0.0027923583984375, 0.0084228515625...
[ 1250, 4867, 162856, 42843, 19, 80889, 2005, 136, 62, 7514, 502, 106, 14858, 87199, 47143, 22819, 52782, 101409, 12765, 2606, 168398, 289, 87632, 10869, 116292, 114063, 79520, 9874, 379, 98753, 192, 316, 15277, 67407, 4343, 20706, 5584, 11399,...
[ 0.183349609375, 0.251953125, 0.193359375, 0.2109375, 0.109375, 0.25830078125, 0.15771484375, 0.11962890625, 0.0291748046875, 0.1903076171875, 0.1544189453125, 0.059112548828125, 0.09735107421875, 0.1875, 0.08740234375, 0.10198974609375, 0.10009765625, 0.178955078125, 0.1088867187...
embed
51961176_c0
51961176
prolog
0
Title: introduce further approval via prolog if code change exceed defined limitation Problem title: introduce further approval via prolog if code change exceed defined limitation Tags: prolog, gerrit, continuous-integration Problem: introduce further approval via prolog if code change exceed defined limitation if code...
introduce further approval via prolog if code change exceed defined limitation introduce further approval via prolog if code change exceed defined limitation prolog gerrit continuous-integration submit_rule gerrit:default_submit require_IP gerrit:commit_stats Files Insertions Deletions gerrit:remove_label IP-Approved r...
[ -0.00093841552734375, 0.01019287109375, 0.008056640625, -0.006256103515625, -0.0191650390625, -0.01092529296875, -0.003021240234375, 0.016357421875, 0.00726318359375, 0.0159912109375, 0.020263671875, -0.00897216796875, 0.00909423828125, -0.005889892578125, 0.037109375, 0.0181884765625,...
[ 65508, 53333, 35707, 1405, 1829, 502, 4867, 2174, 18151, 15549, 204839, 61924, 205969, 4155, 2783, 62005, 100743, 137447, 882, 214810, 22144, 4007, 64209, 10931, 17346, 42724, 2189, 262, 133, 26973, 152526, 8021, 516, 87388, 181139, 15757, 5650...
[ 0.1190185546875, 0.157958984375, 0.171875, 0.14404296875, 0.042755126953125, 0.15185546875, 0.208740234375, 0.028076171875, 0.1514892578125, 0.1800537109375, 0.1439208984375, 0.173583984375, 0.207763671875, 0.108154296875, 0.23095703125, 0.1136474609375, 0.130126953125, 0.183959960...
embed
13023656_c0
13023656
prolog
0
Title: C# and SWI-Prolog - Turn a List of characters into a List of facts Problem title: C# and SWI-Prolog - Turn a List of characters into a List of facts Tags: prolog, planning, c%23, unity-game-engine Problem: C# and SWI-Prolog - Turn a List of characters into a List of facts So, I am developing a game with Unity3D,...
C# and SWI-Prolog - Turn a List of characters into a List of facts C# and SWI-Prolog - Turn a List of characters into a List of facts prolog planning c%23 unity-game-engine SWI-Prolog Turn List Plan Out at_end_of_stream read_pending_input Codes atom_codes AtomList Init Get flush_output Initial write_sol Goal C# and SWI...
[ 0.0179443359375, 0.00555419921875, 0.0115966796875, 0.017333984375, -0.0050048828125, 0.00182342529296875, 0.00457763671875, -0.00156402587890625, 0.0020904541015625, -0.0203857421875, 0.0228271484375, 0.00628662109375, -0.0233154296875, 0.01611328125, -0.01708984375, 0.00909423828125,...
[ 313, 4904, 136, 159, 38969, 10752, 4867, 41961, 32036, 124850, 3934, 10, 15824, 502, 58136, 3742, 51, 2481, 35311, 128897, 5586, 13538, 3611, 86429, 12301, 96819, 28864, 34627, 40899, 69728, 154663, 217, 14838, 6056, 1890, 33022, 8748, 2016, ...
[ 0.024627685546875, 0.204833984375, 0.0771484375, 0.045379638671875, 0.21826171875, 0.12939453125, 0.22998046875, 0.127197265625, 0.19189453125, 0.197509765625, 0.0946044921875, 0.005340576171875, 0.2010498046875, 0.1246337890625, 0.195556640625, 0.0203094482421875, 0.033599853515625,...
embed
49010283_c0
49010283
prolog
0
Title: Prolog find corresponding element from list Problem title: Prolog find corresponding element from list Tags: prolog, list Problem: Prolog find corresponding element from list tennis([court, singles, doubles, outdoor, ball, racket]). games([tennis, diving, soccer]). /* A list of games */ game_detail(tennis, [[cou...
Prolog find corresponding element from list Prolog find corresponding element from list prolog list list questioner Prolog game_detail Game Calling Option Rest Options Random random_member game_init all_options Counter Initialize Set cnt_init Showing Pop Answering Guess Yes Invalid Prolog find corresponding element fro...
[ 0.0042724609375, -0.01220703125, 0.020751953125, -0.00141143798828125, 0.0157470703125, 0.006103515625, 0.008544921875, 0.005645751953125, 0.007720947265625, -0.00347900390625, -0.00836181640625, -0.004608154296875, 0.01031494140625, -0.002685546875, -0.00628662109375, 0.00762939453125...
[ 1250, 4867, 7413, 42518, 214, 12830, 1295, 5303, 502, 9655, 56, 6712, 119514, 13547, 26265, 86769, 49756, 152448, 39643, 96759, 27417, 73, 217, 756, 109585, 197956, 40705, 19943, 11584, 130373, 96274, 32635, 7013, 20662, 1528, 35166, 100, 198...
[ 0.1788330078125, 0.24169921875, 0.11181640625, 0.2236328125, 0.1341552734375, 0.1875, 0.0880126953125, 0.20166015625, 0.1239013671875, 0.1544189453125, 0.10418701171875, 0.087646484375, 0.1395263671875, 0.06585693359375, 0.07183837890625, 0.14208984375, 0.1265869140625, 0.166625976...
embed
57130192_c0
57130192
prolog
0
Title: What makes a DCG predicate expensive? Problem title: What makes a DCG predicate expensive? Tags: swi-prolog, dcg, prolog Problem: What makes a DCG predicate expensive? I'm building a Definite Clause Grammar to parse 20,000 pieces of semi-natural text. As the size of my database of predicates grows (now up to 1,2...
What makes a DCG predicate expensive? What makes a DCG predicate expensive? swi-prolog dcg prolog What DCG scalars.pl atom_number Qty Noun Scalar What makes a DCG predicate expensive? I'm building a Definite Clause Grammar to parse 20,000 pieces of semi-natural text. As the size of my database of predicates grows (now ...
[ 0.02197265625, -0.00396728515625, -0.00689697265625, 0.0031280517578125, -0.00121307373046875, 0.0186767578125, 0.01953125, -0.01470947265625, 0.01141357421875, -0.0302734375, 0.00457763671875, -0.01416015625, -0.01226806640625, -0.041015625, 0.01416015625, 0.0152587890625, -0.009216...
[ 4865, 30482, 391, 56367, 1653, 2063, 67, 135587, 10, 91, 2452, 3454, 4867, 104, 238, 177, 502, 146232, 4295, 2424, 34627, 2606, 1297, 2396, 939, 438, 309, 81543, 320, 33976, 88606, 100700, 13, 48078, 1727, 47, 366, 91578, 126371, 36137, ...
[ 0.0726318359375, 0.1112060546875, 0.12841796875, 0.236572265625, 0.19384765625, 0.2054443359375, 0.1116943359375, 0.2568359375, 0.00152587890625, 0.027984619140625, 0.1685791015625, 0.11083984375, 0.183349609375, 0.05963134765625, 0.065673828125, 0.1534423828125, 0.133056640625, 0....
embed
76970136_c0
76970136
prolog
0
Title: Minimax Algorithm Issue in Nim Game AI - Opponent Always Choosing 1 Matchstick Problem title: Minimax Algorithm Issue in Nim Game AI - Opponent Always Choosing 1 Matchstick Tags: prolog, nim-game, minimax Problem: Minimax Algorithm Issue in Nim Game AI - Opponent Always Choosing 1 Matchstick I'm working on imple...
Minimax Algorithm Issue in Nim Game AI - Opponent Always Choosing 1 Matchstick Minimax Algorithm Issue in Nim Game AI - Opponent Always Choosing 1 Matchstick prolog nim-game minimax Minimax Algorithm Issue Nim Game Opponent Always Choosing Matchstick Predicate Simple Player State Depth Value Base NextDepth Value1-Actio...
[ -0.00396728515625, -0.0194091796875, 0.0439453125, 0.00628662109375, 0.006591796875, 0.01287841796875, -0.00180816650390625, -0.005340576171875, -0.00775146484375, -0.0037841796875, -0.01220703125, 0.0247802734375, 0.0181884765625, -0.00311279296875, 0.0146484375, -0.0218505859375, 0...
[ 13468, 24084, 109847, 2783, 223317, 59285, 13547, 38730, 2331, 54137, 203623, 4960, 232, 214, 106, 67407, 69880, 23, 502, 4867, 15993, 35311, 83818, 425, 7145, 2063, 60552, 60560, 22836, 254, 927, 190060, 44978, 4997, 4657, 20268, 35604, 432,...
[ 0.22119140625, 0.2293701171875, 0.1458740234375, 0.1181640625, 0.148193359375, 0.233154296875, 0.10546875, 0.210693359375, 0.14453125, 0.1474609375, 0.1231689453125, 0.09423828125, 0.06695556640625, 0.0218353271484375, 0.138427734375, 0.17578125, 0.1810302734375, 0.042999267578125,...
embed
60699241_c0
60699241
prolog
0
Title: How to find a route between two stations in PROLOG Problem title: How to find a route between two stations in PROLOG Tags: predicate, prolog, transitive-closure, routes, recursion Problem: How to find a route between two stations in PROLOG Sorry, I know this question comes up a lot but I've done so much research...
How to find a route between two stations in PROLOG How to find a route between two stations in PROLOG predicate prolog transitive-closure routes recursion How PROLOG Aldgate Metropolitan Line Bethnal Green Central Brixton Victoria Baker Street Chancery Lane Elephant Castle Bakerloo Embankment Northern Lines Euston Fins...
[ -0.000873565673828125, -0.011474609375, 0.024169921875, 0.01483154296875, 0.006805419921875, -0.002593994140625, -0.0103759765625, 0.003662109375, 0.00494384765625, -0.04736328125, 0.0206298828125, 0.0167236328125, -0.0172119140625, 0.00457763671875, 0.03173828125, 0.00823974609375, ...
[ 11249, 7413, 10, 36439, 17721, 6626, 29398, 23, 10514, 47510, 1653, 2063, 502, 4867, 62621, 5844, 170224, 195625, 1830, 884, 71, 42118, 115364, 16777, 45291, 6236, 15497, 15881, 15640, 425, 1507, 31485, 133840, 15130, 76710, 1294, 239, 12701,...
[ 0.05511474609375, 0.153564453125, 0.04608154296875, 0.255126953125, 0.247314453125, 0.1964111328125, 0.246826171875, 0.052032470703125, 0.177490234375, 0.254150390625, 0.1202392578125, 0.1312255859375, 0.1285400390625, 0.22998046875, 0.07421875, 0.052398681640625, 0.1326904296875, ...
embed
36651637_c0
36651637
prolog
0
Title: Logic Puzzle in Prolog - using lists Problem title: Logic Puzzle in Prolog - using lists Tags: program-slicing, prolog, zebra-puzzle Problem: Logic Puzzle in Prolog - using lists I am trying to solve the following problem in Prolog, and I think I have coded it right, but my queries simply return false. Any advic...
Logic Puzzle in Prolog - using lists Logic Puzzle in Prolog - using lists program-slicing prolog zebra-puzzle lists Logic Puzzle Prolog Sol medium1 peanut_butter medium2 french_vanilla egg_bacon cream_cheese Logic Puzzle in Prolog - using lists I am trying to solve the following problem in Prolog, and I think I have co...
[ 0.00799560546875, 0.001190185546875, 0.01025390625, 0.0186767578125, -0.0086669921875, 0.025634765625, -0.0257568359375, -0.0017852783203125, 0.0174560546875, -0.015869140625, -0.0108642578125, 0.01324462890625, 0.009521484375, -0.00732421875, 0.0018310546875, 0.00830078125, 0.003326...
[ 50592, 238, 179277, 23, 1250, 4867, 17368, 5303, 1528, 9120, 502, 116232, 1766, 13894, 133, 6678, 57646, 418, 16320, 3609, 978, 3055, 304, 57217, 2187, 56125, 2271, 24709, 1430, 31577, 86869, 25632, 2967, 5351, 18151, 7108, 41, 30646, 98320...
[ 0.19189453125, 0.05401611328125, 0.230224609375, 0.04180908203125, 0.186279296875, 0.259765625, 0.101318359375, 0.242919921875, 0.0921630859375, 0.0919189453125, 0.110595703125, 0.127685546875, 0.06884765625, 0.09490966796875, 0.004730224609375, 0.18115234375, 0.1173095703125, 0.02...
embed
2102336_c0
2102336
prolog
0
Title: How do I wire up my Java UI to a JPL Prolog application? Problem title: How do I wire up my Java UI to a JPL Prolog application? Tags: user-interface, jpl, java, prolog, swi-prolog Problem: How do I wire up my Java UI to a JPL Prolog application? I'm writing an application in Java using JPL provided by SWI-Prolo...
How do I wire up my Java UI to a JPL Prolog application? How do I wire up my Java UI to a JPL Prolog application? user-interface jpl java prolog swi-prolog java.awt.Container java.awt.FlowLayout java.awt.event.ActionEvent java.awt.event.ActionListener javax.swing.JButton javax.swing.JFrame javax.swing.JTextArea javax.s...
[ 0.01080322265625, 0.005340576171875, 0.0108642578125, 0.00750732421875, 0.0006103515625, 0.0167236328125, 0.0123291015625, -0.000640869140625, 0.007568359375, -0.046142578125, 0.013427734375, 0.01068115234375, -0.033203125, -0.016845703125, 0.02734375, -0.007720947265625, 0.022460937...
[ 11249, 1439, 13, 1257, 41925, 111481, 47, 821, 21130, 1250, 4867, 38415, 38937, 10433, 1647, 2424, 79, 330, 502, 91, 2452, 3454, 15519, 18, 25500, 17336, 53, 6056, 90141, 10763, 192134, 154663, 425, 14775, 1375, 82212, 108386, 174379, 1283,...
[ 0.06768798828125, 0.14111328125, 0.07879638671875, 0.1243896484375, 0.259033203125, 0.2210693359375, 0.1151123046875, 0.1202392578125, 0.2254638671875, 0.1661376953125, 0.241455078125, 0.1531982421875, 0.080078125, 0.0419921875, 0.038177490234375, 0.1676025390625, 0.1016845703125, ...
embed
13547797_c0
13547797
prolog
0
Title: How to model Einstein's Riddle in a Constraint Satisfaction manner (Prolog) Problem title: How to model Einstein's Riddle in a Constraint Satisfaction manner (Prolog) Tags: zebra-puzzle, prolog, clpfd Problem: How to model Einstein's Riddle in a Constraint Satisfaction manner (Prolog) My IA assignment ...
How to model Einstein's Riddle in a Constraint Satisfaction manner (Prolog) How to model Einstein's Riddle in a Constraint Satisfaction manner (Prolog) zebra-puzzle prolog clpfd arc CA TDA How Einstein Riddle Constraint Satisfaction Prolog my_all_different all_different Attributes Color Nationality Drink Smok...
[ -0.01220703125, -0.007232666015625, -0.01361083984375, 0.015869140625, 0.0086669921875, 0.01251220703125, -0.032470703125, 0.01025390625, 0.00689697265625, -0.054443359375, -0.01068115234375, -0.01422119140625, -0.002044677734375, -0.0024871826171875, -0.004638671875, 0.0147705078125, ...
[ 11249, 47, 3299, 119225, 54764, 3768, 41231, 19298, 23, 1657, 2816, 4288, 947, 1814, 1021, 10763, 144996, 10752, 4867, 10, 116232, 1766, 13894, 502, 33139, 39557, 71, 46552, 23687, 384, 6538, 1250, 759, 5584, 238778, 756, 1913, 191145, 7, ...
[ 0.0760498046875, 0.044708251953125, 0.252197265625, 0.2548828125, 0.0150146484375, 0.1080322265625, 0.2115478515625, 0.2149658203125, 0.061798095703125, 0.0693359375, 0.24560546875, 0.1046142578125, 0.1138916015625, 0.154541015625, 0.127197265625, 0.001800537109375, 0.1256103515625, ...
embed
16999620_c0
16999620
prolog
0
Title: Best practices for data management in Prolog Problem title: Best practices for data management in Prolog Tags: inference-engine, persistence, database, prolog, datastore Problem: Best practices for data management in Prolog I'm just getting involved in using Prolog to handle more than just the simplest forms of ...
Best practices for data management in Prolog Best practices for data management in Prolog inference-engine persistence database prolog datastore Best Prolog first_name last_name Maintain Best practices for data management in Prolog I'm just getting involved in using Prolog to handle more than just the simplest forms of...
[ 0.0361328125, 0.0189208984375, 0.0086669921875, 0.0093994140625, 0.006378173828125, 0.00958251953125, 0.0126953125, 0.005035400390625, 0.0015716552734375, -0.0361328125, 0.0201416015625, 0.0201416015625, -0.01531982421875, 0.006622314453125, 0.01385498046875, 0.0152587890625, 0.01281...
[ 11345, 41361, 2053, 24365, 23, 1250, 4867, 53498, 6620, 128897, 70560, 63399, 502, 45804, 5117, 11627, 4568, 12321, 75412, 17368, 34831, 30362, 3173, 114700, 196219, 34003, 3444, 84079, 111240, 707, 15824, 13036, 44126, 16456, 429, 237, 16865, ...
[ 0.1336669921875, 0.248046875, 0.1737060546875, 0.2218017578125, 0.06231689453125, 0.2049560546875, 0.27978515625, 0.1431884765625, 0.00732421875, 0.125244140625, 0.1290283203125, 0.1536865234375, 0.09613037109375, 0.1474609375, 0.09033203125, 0.143310546875, 0.09991455078125, 0.055...
embed
13204768_c0
13204768
prolog
0
Title: Infinite Loop caused by Append? Problem title: Infinite Loop caused by Append? Tags: infinite, loops, recursion, prolog Problem: Infinite Loop caused by Append? I have a bit of a question regarding why my code seems to hang when I run it. The code is for a project I have in a class, but we spent one class period...
Infinite Loop caused by Append? Infinite Loop caused by Append? infinite loops recursion prolog Infinite Loop Append ActorList MovieList ActorsName MoviesIn LenMoviesIn Sees UpdatedActorList GSAName Goes Infinite Loop caused by Append? I have a bit of a question regarding why my code seems to hang when I run it. The co...
[ -0.001007080078125, 0.0194091796875, 0.018798828125, 0.004119873046875, -0.0133056640625, 0.001708984375, -0.009521484375, 0.0228271484375, 0.024169921875, -0.035888671875, 0.0225830078125, -0.020263671875, -0.0084228515625, 0.0034332275390625, 0.0189208984375, 0.00469970703125, 0.01...
[ 134322, 13, 199694, 143434, 390, 5659, 3611, 32, 54241, 40956, 7, 195625, 502, 4867, 185617, 154663, 10348, 163612, 83896, 4153, 18226, 187430, 6872, 28641, 284, 18770, 527, 35429, 15516, 2016, 9655, 15400, 759, 18151, 37202, 10756, 3229, 116...
[ 0.1842041015625, 0.1036376953125, 0.24658203125, 0.172119140625, 0.01275634765625, 0.1785888671875, 0.234130859375, 0.0284881591796875, 0.160400390625, 0.2393798828125, 0.000152587890625, 0.1639404296875, 0.14404296875, 0.2244873046875, 0.1630859375, 0.2003173828125, 0.0775146484375,...
embed
50709537_c0
50709537
prolog
0
Title: Best way to choose the best component? Problem title: Best way to choose the best component? Tags: dcg, prolog Problem: Best way to choose the best component? I'm building an expert system who should be able to assemble a computer after asking some question to the user to understand his needs! My problem is to c...
Best way to choose the best component? Best way to choose the best component? dcg prolog Best Dvd Price_range Proc_price Motherboard_price Ram_price Case_price Ali_price video_card Vga_price Ssd_price Monitor_price Dvd_price Hdd_price Price Best way to choose the best component? I'm building an expert system who should...
[ -0.0196533203125, 0.00193023681640625, 0.01373291015625, 0.01092529296875, 0.0042724609375, 0.004150390625, -0.01025390625, -0.0031280517578125, 0.01904296875, -0.02197265625, -0.0198974609375, 0.0286865234375, 0.006439208984375, -0.005706787109375, -0.0026702880859375, -0.000564575195...
[ 11345, 3917, 55076, 70, 2965, 82761, 47, 104, 238, 177, 502, 4867, 391, 59805, 48025, 94250, 84607, 5293, 115217, 24351, 8446, 43731, 2132, 1202, 38931, 310, 208, 71, 49570, 4028, 33976, 26808, 5426, 5608, 19048, 93457, 13909, 113292, 9655,...
[ 0.1422119140625, 0.12060546875, 0.171630859375, 0.0479736328125, 0.205810546875, 0.27734375, 0.017822265625, 0.0306243896484375, 0.045989990234375, 0.1351318359375, 0.1165771484375, 0.2139892578125, 0.011688232421875, 0.1602783203125, 0.1304931640625, 0.1229248046875, 0.0604858398437...
embed
25470468_c0
25470468
prolog
0
Title: How to specify soft constraints using prolog? (puzzle with soft constraints) Problem title: How to specify soft constraints using prolog? (puzzle with soft constraints) Tags: prolog Problem: How to specify soft constraints using prolog? (puzzle with soft constraints) I've been given as an assignment to solve a p...
How to specify soft constraints using prolog? (puzzle with soft constraints) How to specify soft constraints using prolog? (puzzle with soft constraints) prolog prolog How Sunday Monday Tuesday Wednesday Thursday Friday Saturday How to specify soft constraints using prolog? (puzzle with soft constraints) I've been give...
[ 0.0291748046875, -0.004241943359375, 0.015869140625, 0.026123046875, -0.019775390625, -0.0135498046875, -0.03662109375, 0.00909423828125, -0.004058837890625, -0.001922607421875, 0.0028228759765625, -0.0022430419921875, -0.004852294921875, 0.003875732421875, 0.028076171875, 0.0091552734...
[ 11249, 40140, 18929, 32977, 158, 2816, 4288, 17368, 502, 4867, 1766, 13894, 133, 678, 52305, 68318, 97001, 64227, 103616, 41626, 72864, 34475, 95486, 86869, 104192, 9842, 24941, 1118, 57143, 21974, 110, 6528, 3642, 4034, 105994, 112892, 1884, ...
[ 0.07147216796875, 0.1805419921875, 0.0953369140625, 0.2454833984375, 0.1199951171875, 0.19873046875, 0.1676025390625, 0.0576171875, 0.1710205078125, 0.233154296875, 0.05322265625, 0.0859375, 0.038238525390625, 0.0546875, 0.193603515625, 0.145263671875, 0.1234130859375, 0.1396484375...
embed
26181455_c0
26181455
prolog
0
Title: Prolog - high-level purpose of WAM Problem title: Prolog - high-level purpose of WAM Tags: vm-implementation, prolog Problem: Prolog - high-level purpose of WAM I am trying to understand the purpose of the WAM at a conceptual high level, but all the sources I have consulted so far assume that I know more than I ...
Prolog - high-level purpose of WAM Prolog - high-level purpose of WAM vm-implementation prolog Prolog WAM Prolog - high-level purpose of WAM I am trying to understand the purpose of the WAM at a conceptual high level, but all the sources I have consulted so far assume that I know more than I currently do at this junctu...
[ 0.0234375, 0.002838134765625, 0.01318359375, 0.004364013671875, -0.01409912109375, 0.015380859375, -0.0106201171875, -0.023193359375, 0.001007080078125, -0.01324462890625, 0.00072479248046875, 0.0247802734375, -0.01434326171875, -0.0135498046875, -0.01092529296875, 0.01055908203125, ...
[ 1250, 4867, 11192, 67919, 60042, 111, 4336, 594, 81, 39, 197648, 502, 31577, 28219, 70, 228113, 17366, 97264, 71, 221, 450, 3714, 82424, 99, 238, 6644, 4, 51515, 31089, 1295, 103136, 7, 4034, 104250, 1360, 90, 163, 7108, 5036, 444, 1428...
[ 0.20068359375, 0.29833984375, 0.1246337890625, 0.1553955078125, 0.23681640625, 0.068603515625, 0.2071533203125, 0.2174072265625, 0.09100341796875, 0.12744140625, 0.14697265625, 0.136962890625, 0.019317626953125, 0.08349609375, 0.03704833984375, 0.03448486328125, 0.0270538330078125, ...
embed
70733050_c0
70733050
prolog
0
Title: Introducing non-ground vars into a Prolog query for a custom DSL query language Problem title: Introducing non-ground vars into a Prolog query for a custom DSL query language Tags: prolog Problem: Introducing non-ground vars into a Prolog query for a custom DSL query language I have written an external DSL with ...
Introducing non-ground vars into a Prolog query for a custom DSL query language Introducing non-ground vars into a Prolog query for a custom DSL query language prolog Introducing Prolog DSL Result QueryTerm xform_wildcards_to_free_vars QueryWithVars term_variables FreeVars Wildcard assert_congruences assert_query Resul...
[ 0.025146484375, 0.0240478515625, 0.00152587890625, 0.006072998046875, 0.00091552734375, -0.0002613067626953125, -0.0074462890625, 0.007110595703125, -0.02490234375, -0.04296875, 0.01019287109375, -0.007720947265625, -0.01385498046875, -0.002899169921875, -0.00933837890625, 0.0184326171...
[ 44891, 351, 64330, 285, 7, 3934, 1250, 4867, 41, 1294, 114122, 114479, 46876, 502, 126684, 58836, 35484, 5037, 41123, 38931, 188, 32087, 1961, 194583, 81827, 13579, 21690, 5153, 33384, 237, 33657, 38242, 944, 146104, 32036, 2389, 31471, 284, ...
[ 0.1435546875, 0.1529541015625, 0.1817626953125, 0.2291259765625, 0.05560302734375, 0.0706787109375, 0.146240234375, 0.2408447265625, 0.1328125, 0.124267578125, 0.1494140625, 0.1558837890625, 0.1572265625, 0.0869140625, 0.1395263671875, 0.1478271484375, 0.12060546875, 0.158569335937...
embed
74841293_c0
74841293
prolog
0
Title: Prolog using append/3 predicate to redefine existing List Problem title: Prolog using append/3 predicate to redefine existing List Tags: prolog Problem: Prolog using append/3 predicate to redefine existing List I have taken up a Prolog based AI course recently and am working on an Assignment to build a card game...
Prolog using append/3 predicate to redefine existing List Prolog using append/3 predicate to redefine existing List prolog append/3 Prolog List CurrentDeck CurrentHand NewHand NewDeck Proceed Current Deck Hand Override Print Prolog using append/3 predicate to redefine existing List I have taken up a Prolog based AI cou...
[ -0.01287841796875, -0.007537841796875, 0.025634765625, 0.006622314453125, 0.007232666015625, 0.0057373046875, -0.00250244140625, 0.00909423828125, 0.040771484375, -0.0225830078125, 0.0166015625, 0.008056640625, -0.022216796875, 0.00018596649169921875, 0.007598876953125, -0.010437011718...
[ 1250, 4867, 17368, 114689, 71, 18113, 1653, 2063, 67, 15265, 64552, 144573, 32036, 502, 114063, 120152, 135679, 2356, 162163, 10639, 9578, 416, 39754, 35509, 38730, 15411, 20697, 31304, 45367, 20596, 6712, 7145, 1636, 2060, 32354, 139392, 5303,...
[ 0.1751708984375, 0.25439453125, 0.055419921875, 0.2169189453125, 0.1602783203125, 0.2315673828125, 0.1685791015625, 0.2027587890625, 0.052703857421875, 0.10302734375, 0.1903076171875, 0.150634765625, 0.185546875, 0.1187744140625, 0.1475830078125, 0.1240234375, 0.1629638671875, 0.06...
embed
10166942_c0
10166942
prolog
0
Title: Running prolog in Android Problem title: Running prolog in Android Tags: tuprolog, prolog, android Problem: Running prolog in Android I am testing tuProlog in Android. I have an Activity TuProlog, class Parser to interact with prolog code and data.pl which contains prolog code. I can run it fine as a java projec...
Running prolog in Android Running prolog in Android tuprolog prolog android NoSolutionException UnknownVarException MalformedGoalException InvalidTheoryException FileNotFoundException IOException onWarning java.io.FileNotFoundException Running Android TuProlog Activity OnClickListener TextView Button Called Override Bu...
[ 0.0213623046875, 0.00067901611328125, 0.014892578125, 0.0031890869140625, -0.00872802734375, 0.0024566650390625, 0.018798828125, -0.01495361328125, 0.00244140625, -0.06298828125, -0.00148773193359375, 0.0035858154296875, -0.0211181640625, -0.011962890625, 0.0264892578125, -0.0081787109...
[ 28398, 592, 502, 4867, 23, 3952, 370, 3454, 54527, 438, 102588, 34, 63928, 69723, 81827, 3658, 5037, 17903, 289, 7013, 3957, 42724, 122116, 27591, 17780, 98, 71947, 79, 330, 846, 174350, 1371, 10752, 42902, 2161, 181671, 154663, 24129, 1004...
[ 0.1435546875, 0.0303192138671875, 0.1907958984375, 0.262451171875, 0.094482421875, 0.27099609375, 0.127685546875, 0.177490234375, 0.2042236328125, 0.0433349609375, 0.09991455078125, 0.047698974609375, 0.0970458984375, 0.10430908203125, 0.1295166015625, 0.0350341796875, 0.156494140625...
embed
22946161_c0
22946161
prolog
0
Title: Is there a package manager for Prolog? Problem title: Is there a package manager for Prolog? Tags: git-submodules, module, package-managers, prolog, swi-prolog Problem: Is there a package manager for Prolog? I would like to know what are the best practices for sharing Prolog code / libraries with other programme...
Is there a package manager for Prolog? Is there a package manager for Prolog? git-submodules module package-managers prolog swi-prolog Prolog prolog_pack Is there a package manager for Prolog? I would like to know what are the best practices for sharing Prolog code / libraries with other programmers (and with oneself b...
[ 0.0010833740234375, 0.029296875, 0.00188446044921875, 0.00145721435546875, -0.0245361328125, 0.0101318359375, 0.00592041015625, -0.00830078125, 0.0045166015625, -0.01251220703125, 0.0093994140625, 0.0181884765625, -0.006744384765625, 0.007049560546875, 0.0230712890625, 0.00479125976562...
[ 2071, 2685, 10, 98169, 31095, 100, 1250, 4867, 62270, 22144, 83279, 88996, 141395, 502, 91, 2452, 3454, 29102, 2965, 41361, 53371, 18151, 35773, 3789, 77848, 48716, 77635, 17368, 159, 38969, 10752, 35978, 36461, 225490, 41925, 1556, 911, 1353...
[ 0.0272064208984375, 0.045166015625, 0.09954833984375, 0.265625, 0.269287109375, 0.10205078125, 0.2083740234375, 0.27685546875, 0.13623046875, 0.06341552734375, 0.09295654296875, 0.14404296875, 0.1790771484375, 0.1329345703125, 0.019866943359375, 0.1820068359375, 0.123291015625, 0.1...
embed
41676143_c0
41676143
prolog
0
Title: prolog improvement of an algorithm Problem title: prolog improvement of an algorithm Tags: clpfd, prolog, cryptarithmetic-puzzle Problem: prolog improvement of an algorithm Code signals: SEND, MORE, MONEY, VarList, Digits
prolog improvement of an algorithm prolog improvement of an algorithm clpfd prolog cryptarithmetic-puzzle SEND MORE MONEY VarList Digits prolog improvement of an algorithm if i decrease the number of varriables VarList. does it improves its speed? if i S*1000+E*100+N*10+D + M*1000+O*100+R*10+E =:= M*10000+O*1000+N*100+...
[ 0.0140380859375, 0.00124359130859375, -0.0031585693359375, 0.0238037109375, -0.0260009765625, 0.017578125, -0.0228271484375, 0.0130615234375, 0.010986328125, -0.008056640625, 0.017578125, -0.0078125, -0.00070953369140625, 0.0174560546875, 0.0034332275390625, 0.00433349609375, -0.0076...
[ 502, 4867, 136912, 234873, 39557, 71, 136791, 8962, 1766, 13894, 133, 159, 39015, 195879, 11507, 206688, 3323, 154663, 51174, 933, 2174, 17, 227204, 14012, 285, 416, 19736, 14602, 52295, 7, 38352, 1639, 14105, 1328, 647, 3559, 839, 191281, ...
[ 0.184326171875, 0.2279052734375, 0.20361328125, 0.235107421875, 0.03179931640625, 0.0599365234375, 0.1290283203125, 0.057464599609375, 0.04193115234375, 0.074951171875, 0.05096435546875, 0.04388427734375, 0.0965576171875, 0.1064453125, 0.053070068359375, 0.064697265625, 0.15856933593...
embed
724567_c0
724567
prolog
0
Title: What is SML used for? Problem title: What is SML used for? Tags: dcg, prolog, sml Problem: What is SML used for? What are the uses of SML in the real word? Are its practical uses similar to that of Prolog? Code signals: What, SML
What is SML used for? What is SML used for? dcg prolog sml What SML What is SML used for? What are the uses of SML in the real word? Are its practical uses similar to that of Prolog?
[ 0.01397705078125, -0.00994873046875, 0.0189208984375, 0.0081787109375, -0.0142822265625, 0.017333984375, -0.007049560546875, 0.0023193359375, 0.03271484375, 0, -0.008056640625, -0.00262451171875, -0.01116943359375, 0.006683349609375, 0.001373291015625, 0.01287841796875, 0.02172851562...
[ 4865, 83, 159, 39456, 11814, 100, 177, 502, 4867, 91, 7237, 4527, 7, 111, 2773, 2565, 6863, 138155, 1250 ]
[ 0.0712890625, 0.0439453125, 0.1220703125, 0.283935546875, 0.1273193359375, 0.0965576171875, 0.07440185546875, 0.085693359375, 0.196533203125, 0.059326171875, 0.2169189453125, 0.10772705078125, 0.01275634765625, 0.0028743743896484375, 0.06475830078125, 0.0716552734375, 0.0119934082031...
embed
70353119_c1
70353119
prolog
1
4, 4-3, 3-5] ; Out = [8-5, 5-3, 3-4, 4-8] ; Out = [8-4, 4-3, 3-5, 5-8] ; Out = [4-8, 8-5, 5-3, 3-4]. ?- domino_order2([4-3,3-5,5-8,8-5],Out). false. Code signals: Additional, Prolog, domino_order2, end_match, domino_order, X-Y, Y-X, Out, Piece, Remaining, swap_or_not
4, 4-3, 3-5] ; Out = [8-5, 5-3, 3-4, 4-8] ; Out = [8-4, 4-3, 3-5, 5-8] ; Out = [4-8, 8-5, 5-3, 3-4]. ?- domino_order2([4-3,3-5,5-8,8-5],Out). false. Code signals: Additional, Prolog, domino_order2, end_match, domino_order, X-Y, Y-X, Out, Piece, Remaining, swap_or_not
[ -0.00170135498046875, 0.00775146484375, 0.0130615234375, 0.007781982421875, -0.0302734375, 0.031982421875, -0.01177978515625, 0.02392578125, 0.0242919921875, 0.042724609375, -0.0005035400390625, 0.0157470703125, 0.010009765625, -0.0152587890625, 0.0059814453125, 0.00193023681640625, ...
[ 201, 4, 8316, 56573, 268, 2819, 13538, 2203, 1019, 10342, 190, 20444, 17376, 11565, 138573, 617, 382, 5, 705, 96889, 80596, 304, 167691, 79858, 98320, 28864, 26073, 7, 12, 29117, 14, 43315, 1250, 4867, 3564, 98753, 1193, 9, 1723, 990, 1...
[ 0.1832275390625, 0.061279296875, 0.2357177734375, 0.253662109375, 0.0167388916015625, 0.020233154296875, 0.2315673828125, 0.09918212890625, 0.1280517578125, 0.1845703125, 0.068603515625, 0.2174072265625, 0.175537109375, 0.197265625, 0.192138671875, 0.1416015625, 0.066162109375, 0.0...
embed
2019052_c0
2019052
prolog
0
Title: read numbers from file in prolog and sorting Problem title: read numbers from file in prolog and sorting Tags: prolog Problem: read numbers from file in prolog and sorting how to read numbers from file and sorting that in (prolog programming) Code signals: file
read numbers from file in prolog and sorting read numbers from file in prolog and sorting prolog file read numbers from file in prolog and sorting how to read numbers from file and sorting that in (prolog programming)
[ 0.0150146484375, -0.00885009765625, 0.006439208984375, -0.005462646484375, -0.00677490234375, 0.00665283203125, 0.004425048828125, 0.0030059814453125, 0.0064697265625, -0.0164794921875, -0.018310546875, -0.005767822265625, -0.02099609375, -0.005767822265625, 0.01239013671875, -0.023193...
[ 12301, 101935, 1295, 11435, 502, 4867, 12096, 214, 23, 136, 3454, 56037 ]
[ 0.163818359375, 0.161865234375, 0.09600830078125, 0.1507568359375, 0.1435546875, 0.2001953125, 0.1556396484375, 0.0215606689453125, 0.04022216796875, 0.019805908203125, 0.08843994140625, 0.06402587890625 ]
embed
70453704_c0
70453704
prolog
0
Title: Sublist from list Problem title: Sublist from list Tags: prolog Problem: Sublist from list Ieed to select a sublist from the list, from K to N indexes. Example: ?- sublist(2, 5, [1, 2, 3, 4, 5, 6, 7, 8, 9], Res) Res = [2, 3, 4, 5] Code signals: list, Sublist, Res
Sublist from list Sublist from list prolog list Sublist Res Sublist from list Ieed to select a sublist from the list, from K to N indexes. Example:
[ 0.00154876708984375, 0.000946044921875, 0.025634765625, 0.006561279296875, -0.01904296875, 0.00830078125, -0.017822265625, 0.0269775390625, 0.0062255859375, -0.0031890869140625, 0.00128936767578125, -0.0233154296875, -0.021728515625, 0.021484375, -0.015869140625, 0.002410888671875, 0...
[ 8273, 6562, 1295, 5303, 502, 4867, 9624, 87, 26420, 47, 36849, 1614, 341, 541, 63262, 90, 89536, 8705 ]
[ 0.2298583984375, 0.286865234375, 0.1583251953125, 0.2069091796875, 0.1317138671875, 0.20068359375, 0.179443359375, 0.05780029296875, 0.16552734375, 0.10791015625, 0.17822265625, 0.216552734375, 0.09771728515625, 0.08966064453125, 0.14892578125, 0.05096435546875, 0.0653076171875, 0....
embed
11628875_c0
11628875
prolog
0
Title: Override a list element? Problem title: Override a list element? Tags: prolog, list Problem: Override a list element? Is there a way to add an element to a list, without caring if it already exists and the list still not containing duplicates? Code signals: Override
Override a list element? Override a list element? prolog list Override Override a list element? Is there a way to add an element to a list, without caring if it already exists and the list still not containing duplicates?
[ 0.000545501708984375, 0.0284423828125, 0.005401611328125, -0.0142822265625, 0.00537109375, -0.003692626953125, 0.00567626953125, 0.010986328125, 0.033447265625, 0.01220703125, -0.01348876953125, 0.0157470703125, 0.01239013671875, 0.000637054443359375, -0.0106201171875, -0.0050964355468...
[ 9578, 416, 112, 5303, 12830, 502, 4867, 10, 3917, 15190, 47, 15490, 2258, 442, 21771, 32316, 7464, 959, 70541, 171763, 1636 ]
[ 0.11383056640625, 0.19775390625, 0.0892333984375, 0.197998046875, 0.18359375, 0.11785888671875, 0.1917724609375, 0.0305023193359375, 0.0689697265625, 0.13671875, 0.061737060546875, 0.04827880859375, 0.0550537109375, 0.0041961669921875, 0.10638427734375, 0.1322021484375, 0.04153442382...
embed
44520050_c0
44520050
prolog
0
Title: how to avoid repeating answers in PROLOG Problem title: how to avoid repeating answers in PROLOG Tags: prolog Problem: how to avoid repeating answers in PROLOG Here is My Question : ?- rule7(X,Y,t3). Code signals: PROLOG, rule7, s10, s11, s12, s13, course_lec, copy_rec
how to avoid repeating answers in PROLOG how to avoid repeating answers in PROLOG prolog PROLOG rule7 s10 s11 s12 s13 course_lec copy_rec how to avoid repeating answers in PROLOG Here is My Question : It will repeat it lot of times. How can I reduce these repeatings... The Code :
[ 0.01416015625, 0.00628662109375, -0.0024261474609375, 0.019775390625, -0.0027923583984375, -0.01324462890625, 0.0010986328125, 0.0125732421875, 0.0023345947265625, -0.04052734375, -0.01129150390625, 0.01318359375, -0.0098876953125, 0.0111083984375, -0.0002880096435546875, 0.01843261718...
[ 3642, 47, 71864, 119140, 214, 35166, 23, 10514, 47510, 7, 502, 4867, 79986, 966, 963, 1662, 1530, 2681, 15411, 8996, 43658, 31688, 1221, 442, 5915, 20028, 11249, 831, 34390, 5180, 28864 ]
[ 0.057464599609375, 0.0501708984375, 0.2347412109375, 0.252685546875, 0.1287841796875, 0.2205810546875, 0.0853271484375, 0.1695556640625, 0.2332763671875, 0.051025390625, 0.10662841796875, 0.177734375, 0.06024169921875, 0.05755615234375, 0.10223388671875, 0.0794677734375, 0.0784912109...
embed
44397007_c0
44397007
prolog
0
Title: making prolog program EXECUTABLE Problem title: making prolog program EXECUTABLE Tags: prolog Problem: making prolog program EXECUTABLE I am working on a prolog project and i would like to make it executable. How can I do this? I am using swi-prolog Code signals: EXECUTABLE
making prolog program EXECUTABLE making prolog program EXECUTABLE prolog EXECUTABLE making prolog program EXECUTABLE I am working on a prolog project and i would like to make it executable. How can I do this? I am using swi-prolog
[ 0.03857421875, -0.01324462890625, 0.01025390625, 0.0205078125, -0.0162353515625, 0.031982421875, -0.0076904296875, 0.00830078125, 0.0025177001953125, -0.0341796875, 0.0036773681640625, 0.007110595703125, -0.00848388671875, 0.000720977783203125, 0.01007080078125, 0.00885009765625, 0.0...
[ 20662, 502, 4867, 1528, 29426, 172211, 618, 183057, 444, 20697, 98, 13452, 2806, 1884, 47, 3249, 442, 71924, 2886, 11249, 831, 54, 903, 17368, 91, 2452, 9, 3454 ]
[ 0.1695556640625, 0.18505859375, 0.270263671875, 0.218017578125, 0.1353759765625, 0.234619140625, 0.1685791015625, 0.1962890625, 0.00592041015625, 0.1134033203125, 0.051910400390625, 0.1070556640625, 0.0626220703125, 0.1187744140625, 0.0792236328125, 0.15576171875, 0.09576416015625, ...
embed
282968_c0
282968
prolog
0
Title: What's a good Prolog IDE for Linux? Problem title: What's a good Prolog IDE for Linux? Tags: ide, linux, prolog Problem: What's a good Prolog IDE for Linux? I need to write some Prolog programs for a class. Any recommendations? Code signals: What, Prolog, IDE, Linux
What's a good Prolog IDE for Linux? What's a good Prolog IDE for Linux? ide linux prolog What Prolog IDE Linux What's a good Prolog IDE for Linux? I need to write some Prolog programs for a class. Any recommendations?
[ 0.0291748046875, -0.003753662109375, -0.00176239013671875, 0.02099609375, 0.005706787109375, 0.032470703125, 0.00927734375, -0.001708984375, -0.00738525390625, -0.033447265625, 0.0172119140625, -0.003387451171875, -0.016845703125, 0.0140380859375, -0.00201416015625, -0.0010452270507812...
[ 4865, 3768, 10, 4127, 1250, 4867, 6, 36497, 100, 29908, 5415, 11508, 6077, 502, 3871, 33022, 103391, 18507, 209236 ]
[ 0.058258056640625, 0.0474853515625, 0.054168701171875, 0.10504150390625, 0.1585693359375, 0.244384765625, 0.03790283203125, 0.26416015625, 0.0958251953125, 0.206787109375, 0.1956787109375, 0.08636474609375, 0.0848388671875, 0.1265869140625, 0.035400390625, 0.055084228515625, 0.080627...
embed
53807744_c0
53807744
prolog
0
Title: Prolog, understanding append/3 Problem title: Prolog, understanding append/3 Tags: prolog, append Problem: Prolog, understanding append/3 ?- append([], [X1], [a,b]). Why does this return no and not X1 = a,b Since ? - append([], [a,b], [a,b]) returns yes ? Code signals: Prolog
Prolog, understanding append/3 Prolog, understanding append/3 prolog append Prolog Prolog, understanding append/3 Why does this return no and not Since returns yes ?
[ 0.0223388671875, 0.018798828125, 0.0140380859375, 0.0012969970703125, -0.005096435546875, 0.023193359375, 0.0026092529296875, 0.01055908203125, 0.0201416015625, 0.021240234375, 0.00885009765625, -0.03515625, -0.0235595703125, 0.00165557861328125, 0.0106201171875, -0.007781982421875, ...
[ 1250, 4867, 100094, 114689, 18113, 502, 71, 44084, 14602, 903, 30646, 110, 136, 959, 66016, 72272 ]
[ 0.1129150390625, 0.185791015625, 0.0865478515625, 0.1326904296875, 0.1953125, 0.0494384765625, 0.0217742919921875, 0.0625, 0.0033473968505859375, 0.0175323486328125, 0.1605224609375, 0.1959228515625, 0.057952880859375, 0.1287841796875, 0.249267578125, 0.203369140625 ]
embed
20548853_c1
20548853
prolog
1
, T1, T2), !. replace(X, Y, [H1|T1], [H2|T2]) :- replace(X, Y, H1, H2), replace(X, Y, T1, T2). unfold(T1, [H|T2]) :- T1 =.. [H|T1Expanded], maplist(unfold, T1Expanded, T2). refold([H|T2],T1):- maplist(refold,T2,R), T1 =.. [H|R]. Code signals: T1list, is_list, L1unfold, L2sub, T1Expanded
, T1, T2), !. replace(X, Y, [H1|T1], [H2|T2]) :- replace(X, Y, H1, H2), replace(X, Y, T1, T2). unfold(T1, [H|T2]) :- T1 =.. [H|T1Expanded], maplist(unfold, T1Expanded, T2). refold([H|T2],T1):- maplist(refold,T2,R), T1 =.. [H|R]. Code signals: T1list, is_list, L1unfold, L2sub, T1Expanded
[ -0.00518798828125, 0.0263671875, 0.01544189453125, 0.0198974609375, -0.0027313232421875, -0.0103759765625, -0.034912109375, -0.0113525390625, 0.0179443359375, -0.0037078857421875, 0.0196533203125, 0.0021514892578125, -0.009765625, 0.00139617919921875, -0.0113525390625, 0.00823974609375...
[ 6, 4, 384, 418, 10461, 711, 5, 91995, 132, 1542, 990, 841, 58745, 618, 76172, 304, 90173, 15772, 572, 51, 42822, 2203, 113305, 22288, 6562, 309, 456, 17727, 107, 1052, 28864, 26073, 7, 12, 83, 454, 339, 22144, 19279, 71 ]
[ 0.0374755859375, 0.06378173828125, 0.1846923828125, 0.179931640625, 0.21923828125, 0.1248779296875, 0.0697021484375, 0.256103515625, 0.0457763671875, 0.1378173828125, 0.17529296875, 0.1343994140625, 0.036224365234375, 0.156005859375, 0.1622314453125, 0.1502685546875, 0.206298828125, ...
embed
23722600_c1
23722600
prolog
1
2) T Fail: (9) unify([3|_G608], [], _G602) T Fail: (8) unify([_G607|_G608], [3], [_G607|_G602]) T Fail: (7) unify([2], [_G512, 3], _G602) T Fail: (6) unify([2], [1, _G512, 3], _G520) false Code signals: Prolog, List1, Head, Rest, List2, Call, _G512, _G520, Redo, _G602, _G607, _G608, Fail
2) T Fail: (9) unify([3|_G608], [], _G602) T Fail: (8) unify([_G607|_G608], [3], [_G607|_G602]) T Fail: (7) unify([2], [_G512, 3], _G602) T Fail: (6) unify([2], [1, _G512, 3], _G520) false Code signals: Prolog, List1, Head, Rest, List2, Call, _G512, _G520, Redo, _G602, _G607, _G608, Fail
[ 0.0184326171875, 0.0201416015625, 0.01904296875, -0.00433349609375, 0.01123046875, -0.0145263671875, -0.01263427734375, -0.0096435546875, 0.005950927734375, 0.0260009765625, 0.01312255859375, -0.01153564453125, -0.0029144287109375, -0.0012359619140625, -0.005859375, 0.0106201171875, ...
[ 4958, 384, 190355, 12, 11438, 51, 40383, 363, 724, 170285, 4598, 10461, 10021, 197742, 50740, 4, 16, 8696, 758, 1530, 138, 6791, 132, 143886, 98320, 28864, 26073, 7, 1250, 4867, 32036, 418, 44816, 49756, 304, 26265, 6096, 31 ]
[ 0.1336669921875, 0.1715087890625, 0.2216796875, 0.020477294921875, 0.1754150390625, 0.1365966796875, 0.188720703125, 0.078125, 0.035003662109375, 0.2069091796875, 0.1368408203125, 0.07012939453125, 0.09771728515625, 0.1917724609375, 0.00762939453125, 0.0216217041015625, 0.02001953125...
embed
62109341_c0
62109341
prolog
0
Title: How to intersect two lists in Prolog Problem title: How to intersect two lists in Prolog Tags: prolog, intersection Problem: How to intersect two lists in Prolog I do this a([1,3,5,2,4]). b([6,1,2]). issn(L):-intersection(a,b,L). why do I get false? Thanks Code signals: How, Prolog
How to intersect two lists in Prolog How to intersect two lists in Prolog prolog intersection How Prolog How to intersect two lists in Prolog I do this a([1,3,5,2,4]). b([6,1,2]). issn(L):-intersection(a,b,L). why do I get false? Thanks
[ 0.00457763671875, 0.00153350830078125, 0.024169921875, 0.023193359375, -0.018310546875, 0.0250244140625, -0.003265380859375, -0.00677490234375, -0.0027618408203125, -0.0164794921875, 0.01263427734375, 0.026123046875, -0.0087890625, 0.004669189453125, 0.0133056640625, -0.002685546875, ...
[ 11249, 47, 1940, 7, 24762, 6626, 5303, 23, 1250, 4867, 502, 58994, 54, 10, 92714, 304, 617, 876, 910, 133063, 83, 19, 866, 10433, 11, 275, 15400, 2046, 98320 ]
[ 0.0667724609375, 0.03204345703125, 0.2152099609375, 0.20947265625, 0.178466796875, 0.16162109375, 0.241943359375, 0.06256103515625, 0.19091796875, 0.257568359375, 0.1488037109375, 0.2078857421875, 0.010711669921875, 0.01116943359375, 0.1500244140625, 0.0241851806640625, 0.10498046875...
embed
13408214_c1
13408214
prolog
1
,1,2]) ? 4 2 Call: _158 is 2+2 ? 4 2 Exit: 4 is 2+2 ? 5 2 Call: _186 is 4 mod 3 ? 5 2 Exit: 1 is 4 mod 3 ? 6 2 Call: member(1,[0,1,2]) ? 6 2 Exit: member(1,[0,1,2]) ? 1 1 Exit: group([0,1,2],3) ? true which does what it should. Code signals: Finding, Prolog, Redo, Fail, Exit, Call, _158, _186
,1,2]) ? 4 2 Call: _158 is 2+2 ? 4 2 Exit: 4 is 2+2 ? 5 2 Call: _186 is 4 mod 3 ? 5 2 Exit: 1 is 4 mod 3 ? 6 2 Call: member(1,[0,1,2]) ? 6 2 Exit: member(1,[0,1,2]) ? 1 1 Exit: group([0,1,2],3) ? true which does what it should. Code signals: Finding, Prolog, Redo, Fail, Exit, Call, _158, _186
[ 0.021728515625, 0.0177001953125, 0.006744384765625, 0.013671875, -0.00787353515625, 0.0128173828125, -0.005828857421875, 0.00787353515625, 0.0184326171875, 0.00433349609375, 0.00098419189453125, -0.00128936767578125, -0.007415771484375, 0.01495361328125, 0.0026702880859375, -0.01855468...
[ 133063, 268, 16, 705, 201, 116, 26265, 12, 101, 137197, 83, 54651, 5443, 217, 190, 1819, 910, 2811, 138, 106, 305, 32786, 21115, 2389, 21320, 29568, 14602, 2367, 5608, 5, 28864, 26073, 7, 26040, 214, 1250, 4867, 6096, 31, 190355 ]
[ 0.1650390625, 0.0623779296875, 0.0330810546875, 0.045196533203125, 0.1741943359375, 0.1165771484375, 0.1845703125, 0.01898193359375, 0.050048828125, 0.282470703125, 0.066650390625, 0.22900390625, 0.1365966796875, 0.1578369140625, 0.038909912109375, 0.17041015625, 0.197509765625, 0....
embed
46867263_c0
46867263
prolog
0
Title: How to force a result to be false in Prolog Problem title: How to force a result to be false in Prolog Tags: prolog Problem: How to force a result to be false in Prolog I want to know if it is possible to force a result e.g. test(0, 0, 0). to be false in Prolog. Code signals: How, Prolog
How to force a result to be false in Prolog How to force a result to be false in Prolog prolog How Prolog How to force a result to be false in Prolog I want to know if it is possible to force a result e.g. to be false in Prolog.
[ 0.01611328125, 0.0177001953125, 0.007568359375, 0.0015106201171875, -0.00433349609375, -0.00445556640625, -0.003021240234375, -0.013427734375, -0.005340576171875, 0.01226806640625, -0.0086669921875, -0.004913330078125, -0.0205078125, 0.016845703125, 0.00262451171875, 0.014892578125, ...
[ 11249, 47, 37772, 16750, 186, 98320, 23, 1250, 4867, 10, 502, 3444, 7722 ]
[ 0.05743408203125, 0.102294921875, 0.21533203125, 0.1959228515625, 0.1341552734375, 0.256103515625, 0.0626220703125, 0.156005859375, 0.229248046875, 0.01824951171875, 0.12255859375, 0.008880615234375, 0.0792236328125 ]
embed
7432156_c0
7432156
prolog
0
Title: Prolog: list of numbers Problem title: Prolog: list of numbers Tags: prolog, list Problem: Prolog: list of numbers How can I generate a list of numbers from 1 to N, where N >= 0? Predicate: numbers(N, L). ?-­ numbers(5,X). X = [1, 2, 3, 4, 5]. ?­- numbers(0,X). X = []. Code signals: Prolog
Prolog: list of numbers Prolog: list of numbers prolog list Prolog Prolog: list of numbers How can I generate a list of numbers from 1 to N, where N >= 0? Predicate: numbers(N, L).
[ 0.01324462890625, 0.001068115234375, -0.002410888671875, -0.01055908203125, 0.01116943359375, 0.032958984375, 0.00677490234375, 0.00946044921875, 0.0045166015625, -0.0279541015625, -0.0017242431640625, -0.0220947265625, -0.02392578125, 0.004974365234375, 0.0179443359375, -0.00156402587...
[ 1250, 4867, 12, 5303, 111, 101935, 502, 11249, 831, 87, 139392, 10, 1295, 106, 47, 541, 7440, 977, 1369, 757, 7145, 2063, 839, 339 ]
[ 0.192626953125, 0.259033203125, 0.0679931640625, 0.2342529296875, 0.060211181640625, 0.233642578125, 0.1497802734375, 0.043609619140625, 0.07537841796875, 0.039306640625, 0.203857421875, 0.039825439453125, 0.10540771484375, 0.122802734375, 0.14599609375, 0.1671142578125, 0.0405578613...
embed
8439890_c3
8439890
prolog
3
2, 2, 2)], [_G1012]) ? creep Exit: (6) puzzle(1, [_G1012]) ? creep Path = [_G1012] is the path I get. I seriously can't wrap Code signals: Building, List, Prolog, Size, StartX, StartY, GoalX, GoalY, Clues, Path, Turns, Visited, Newpath, XXX, YYY, Exit, _G1027, _G1028, _G1012, move2, _G1029, _G1030
2, 2, 2)], [_G1012]) ? creep Exit: (6) puzzle(1, [_G1012]) ? creep Path = [_G1012] is the path I get. I seriously can't wrap Code signals: Building, List, Prolog, Size, StartX, StartY, GoalX, GoalY, Clues, Path, Turns, Visited, Newpath, XXX, YYY, Exit, _G1027, _G1028, _G1012, move2, _G1029, _G1030
[ 0.0242919921875, 0.00439453125, 0.00640869140625, 0.0247802734375, 0.0079345703125, 0.0284423828125, -0.01904296875, -0.041259765625, 0.017333984375, -0.0064697265625, 0.005523681640625, 0.020751953125, 0.0012969970703125, 0.0213623046875, -0.010498046875, 0.02001953125, 0.0036773681...
[ 116, 4958, 454, 724, 35046, 90173, 49512, 254, 5443, 217, 6791, 104192, 41600, 16, 108421, 83, 60875, 87, 2046, 147115, 831, 18, 137565, 28864, 26073, 7, 104919, 32036, 1250, 4867, 80378, 13794, 1542, 1723, 2016, 289, 140077, 41961, 98684, ...
[ 0.1231689453125, 0.1397705078125, 0.002685546875, 0.0645751953125, 0.14453125, 0.1463623046875, 0.1844482421875, 0.1240234375, 0.1307373046875, 0.138916015625, 0.14404296875, 0.2626953125, 0.007110595703125, 0.048583984375, 0.17724609375, 0.0240325927734375, 0.2208251953125, 0.0570...
embed
49484369_c0
49484369
prolog
0
Title: Uncaught exception when using finite domain solver Problem title: Uncaught exception when using finite domain solver Tags: prolog Problem: Uncaught exception when using finite domain solver Code signals: finite, Uncaught, fd_domain_bool, Immortal, Mythical, Mammal, Horned, Magical, fd_labeling
Uncaught exception when using finite domain solver Uncaught exception when using finite domain solver prolog finite Uncaught fd_domain_bool Immortal Mythical Mammal Horned Magical fd_labeling Uncaught exception when using finite domain solver I'm trying to do the unicorn problem from R&N's AI textbook in Prolog, but I ...
[ 0.01708984375, -0.01031494140625, -0.011474609375, -0.0091552734375, -0.000701904296875, 0.003143310546875, 0.02392578125, 0.00970458984375, -0.0205078125, -0.026123046875, -0.013427734375, -0.021728515625, 0.00244140625, 0.001861572265625, 0.03271484375, -0.01190185546875, 0.0245361...
[ 992, 408, 46526, 131527, 17368, 94418, 13, 77758, 3115, 814, 502, 4867, 1238, 71, 56206, 73, 142484, 192814, 172555, 21533, 101860, 141, 78315, 297, 61707, 289, 152526, 31577, 60347, 42, 19, 2967, 1230, 839, 38730, 14137, 1250, 51, 109312, ...
[ 0.087158203125, 0.138671875, 0.1522216796875, 0.2259521484375, 0.052764892578125, 0.1768798828125, 0.05487060546875, 0.1611328125, 0.1373291015625, 0.114013671875, 0.096923828125, 0.204833984375, 0.0237274169921875, 0.0648193359375, 0.10211181640625, 0.030975341796875, 0.134887695312...
embed
50702746_c0
50702746
prolog
0
Title: Predicate not calling in SWI-Prolog Problem title: Predicate not calling in SWI-Prolog Tags: prolog, swi-prolog Problem: Predicate not calling in SWI-Prolog solve([("ab","abab"), ("b","a"), ("aba","b"), ("aa","a")], Solution) Answer has been delivered. Code signals: Predicate, SWI-Prolog, Solution
Predicate not calling in SWI-Prolog Predicate not calling in SWI-Prolog prolog swi-prolog Predicate SWI-Prolog Solution Predicate not calling in SWI-Prolog Answer has been delivered.
[ 0.0037078857421875, 0.01318359375, 0.00958251953125, 0.0206298828125, -0.0235595703125, 0.018310546875, -0.00194549560546875, -0.006378173828125, 0.0089111328125, 0.00933837890625, 0.00775146484375, 0.001312255859375, -0.007293701171875, -0.004150390625, 0.0140380859375, -0.01373291015...
[ 7145, 2063, 67, 959, 159029, 23, 159, 38969, 9, 10752, 4867, 502, 91, 2452, 3454, 187895, 130373, 75060 ]
[ 0.1878662109375, 0.2325439453125, 0.07275390625, 0.151611328125, 0.212646484375, 0.12054443359375, 0.09417724609375, 0.2392578125, 0.07220458984375, 0.1448974609375, 0.2286376953125, 0.110107421875, 0.03863525390625, 0.1922607421875, 0.1337890625, 0.162353515625, 0.08062744140625, ...
embed
4354503_c0
4354503
prolog
0
Title: convert float to integer in prolog Problem title: convert float to integer in prolog Tags: clpfd, floating-point, integer, prolog Problem: convert float to integer in prolog How to convert float to integer in prolog? I tried: ?- integer(truncate(sqrt(9))). false. ?- integer(round(sqrt(9))). false.
convert float to integer in prolog convert float to integer in prolog clpfd floating-point integer prolog convert float to integer in prolog How to convert float to integer in prolog? I tried:
[ -0.01275634765625, -0.018798828125, 0.0074462890625, -0.0125732421875, -0.004669189453125, -0.00004172325134277344, -0.00750732421875, -0.006683349609375, 0.000820159912109375, -0.0206298828125, -0.0057373046875, 0.01531982421875, -0.029052734375, 0.02490234375, 0.033203125, -0.0158691...
[ 96760, 21917, 257, 47, 892, 1505, 23, 502, 4867, 33139, 39557, 71, 26518, 38496, 11249, 37842 ]
[ 0.18212890625, 0.22607421875, 0.1971435546875, 0.1256103515625, 0.151123046875, 0.2218017578125, 0.08587646484375, 0.172119140625, 0.2423095703125, 0.033447265625, 0.07659912109375, 0.1097412109375, 0.0538330078125, 0.1279296875, 0.03717041015625, 0.081298828125 ]
embed
61765571_c1
61765571
prolog
1
(g, a, 1000, Y). c ... and so we should be able to ask: ?- fixed_point2(f, 4, T, N). % f:x/2 T=0, N=4 % f(4,2) % f(2,1) % f(1,0) % f(0,0) ?- fixed_point2(g, a, T, N) % g is a finite set of grounded facts. T=c, N=3 % f(a,b) % f(b,c) % f(c,c) Code signals: Fixed-point, Apply, N-1, Equivalent, fixed_point2, f:x
(g, a, 1000, Y). c ... and so we should be able to ask: ?- fixed_point2(f, 4, T, N). % f:x/2 T=0, N=4 % f(4,2) % f(2,1) % f(1,0) % f(0,0) ?- fixed_point2(g, a, T, N) % g is a finite set of grounded facts. T=c, N=3 % f(a,b) % f(b,c) % f(c,c) Code signals: Fixed-point, Apply, N-1, Equivalent, fixed_point2, f:x
[ 0.0054931640625, -0.0010833740234375, -0.00121307373046875, 0.006256103515625, 0.0072021484375, 0.010009765625, 0.01361083984375, 0.0079345703125, 0.01544189453125, -0.026123046875, 0.01397705078125, -0.01544189453125, -0.0218505859375, -0.01239013671875, 0.0126953125, 0.00043678283691...
[ 177, 10, 4382, 990, 501, 642, 5608, 19048, 26458, 705, 9, 188347, 454, 38496, 304, 420, 201, 384, 4, 541, 1745, 1238, 12, 425, 12477, 145407, 107947, 105801, 10461, 17727, 206808, 63527, 16, 706, 83, 94418, 13, 5423, 111, 61585, 297, ...
[ 0.1016845703125, 0.06536865234375, 0.1622314453125, 0.1343994140625, 0.039306640625, 0.003814697265625, 0.01165771484375, 0.05755615234375, 0.1600341796875, 0.028411865234375, 0.0160064697265625, 0.28466796875, 0.0161895751953125, 0.196533203125, 0.175537109375, 0.144287109375, 0.187...
embed
28915299_c0
28915299
prolog
0
Title: Prolog library to link with gcc Problem title: Prolog library to link with gcc Tags: ffi, prolog Problem: Prolog library to link with gcc Could you recommend a Prolog implementation featuring interpreter library which could be linked to C program built with gcc like Lua or Squirrel? Code signals: Prolog
Prolog library to link with gcc Prolog library to link with gcc ffi prolog Prolog Prolog library to link with gcc Could you recommend a Prolog implementation featuring interpreter library which could be linked to C program built with gcc like Lua or Squirrel?
[ 0.038330078125, 0.0002574920654296875, 0.0118408203125, -0.0135498046875, -0.008544921875, 0.017822265625, 0.0101318359375, 0.01123046875, -0.00848388671875, -0.05419921875, -0.00180816650390625, -0.01397705078125, -0.0250244140625, 0.0004520416259765625, 0.022705078125, -0.01892089843...
[ 1250, 4867, 35773, 1294, 47, 3126, 678, 22109, 238, 24500, 502, 191147, 67330, 208124, 241599, 29481, 56, 5809, 313, 1528, 88303, 3350, 11, 3181, 42, 7962 ]
[ 0.1796875, 0.27392578125, 0.223388671875, 0.098388671875, 0.10516357421875, 0.1844482421875, 0.1793212890625, 0.1722412109375, 0.1639404296875, 0.137939453125, 0.135986328125, 0.0009059906005859375, 0.06494140625, 0.12420654296875, 0.041412353515625, 0.1505126953125, 0.070556640625, ...
embed
40494862_c0
40494862
prolog
0
Title: Math inside predicate header Problem title: Math inside predicate header Tags: prolog Problem: Math inside predicate header Is there a way to make this work? add(X, X + 1) input: add(1, Y). expected output: Y = 2. output: Y = 1+1. Or is it only possible by doing this? add(X, Y):- Y is X+1. Code signals: Math
Math inside predicate header Math inside predicate header prolog Math Math inside predicate header Is there a way to make this work? input: add(1, Y). expected output: Y = 2. output: Y = 1+1. Or is it only possible by doing this?
[ 0.0067138671875, 0.004913330078125, -0.0025482177734375, 0.001617431640625, 0.0081787109375, 0.00927734375, 0.01025390625, 0.004638671875, -0.002685546875, -0.056396484375, 0.01287841796875, 0.0196533203125, -0.01214599609375, -0.01373291015625, 0.03466796875, -0.0035400390625, -0.03...
[ 78804, 46132, 1653, 2063, 67, 10336, 56, 502, 4867, 3917, 3249, 903, 4488, 107730, 15190, 41600, 990, 84751, 140992, 2203, 787, 179898, 7722 ]
[ 0.2509765625, 0.195068359375, 0.1544189453125, 0.202392578125, 0.1256103515625, 0.189453125, 0.12890625, 0.10809326171875, 0.1810302734375, 0.08624267578125, 0.056915283203125, 0.060302734375, 0.10430908203125, 0.1810302734375, 0.203857421875, 0.0501708984375, 0.1259765625, 0.20544...
embed
50250973_c0
50250973
prolog
0
Title: How much memory a goal uses? Problem title: How much memory a goal uses? Tags: swi-prolog, prolog Problem: How much memory a goal uses? In Swi-Prolog I can enclose a goal in time/1 to see how much CPU time a goal takes. How do I do use statistics/2 correctly to see how much RAM a goal takes? Code signals: How
How much memory a goal uses? How much memory a goal uses? swi-prolog prolog How How much memory a goal uses? In Swi-Prolog I can enclose a goal in time/1 to see how much CPU time a goal takes. How do I do use statistics/2 correctly to see how much RAM a goal takes?
[ 0.005645751953125, 0.01129150390625, 0.00543212890625, 0.00433349609375, -0.024658203125, -0.01312255859375, -0.00518798828125, 0.006683349609375, -0.00531005859375, -0.05615234375, 0.006988525390625, -0.004364013671875, -0.01806640625, 0.01507568359375, 0.01806640625, 0.01904296875, ...
[ 11249, 5045, 98323, 10, 69236, 4527, 91, 2452, 3454, 4867, 502, 7, 105432, 10752, 22, 155648, 1733, 11583, 1957, 86039, 51776, 80835, 12477, 26959 ]
[ 0.03521728515625, 0.14306640625, 0.25830078125, 0.06695556640625, 0.257080078125, 0.1304931640625, 0.0087738037109375, 0.1597900390625, 0.08892822265625, 0.1781005859375, 0.09515380859375, 0.0183868408203125, 0.1702880859375, 0.1007080078125, 0.0022182464599609375, 0.11053466796875, ...
embed
26980475_c0
26980475
prolog
0
Title: Prolog partial rule matching Problem title: Prolog partial rule matching Tags: prolog Problem: Prolog partial rule matching Is it possible to partially match rule in prolog ? a( b ) :- k(c),k( d ). a( e ) :- k(g),k( d ). So knowing that k(d):-true. is it somehow possible to obtain b & e ? Code signals: Prolog
Prolog partial rule matching Prolog partial rule matching prolog Prolog Prolog partial rule matching Is it possible to partially match rule in prolog ? a( b ) :- k(c),k( d ). a( e ) :- k(g),k( d ). So knowing that k(d):-true. is it somehow possible to obtain b & e ?
[ 0.0223388671875, 0.014404296875, 0.01214599609375, 0.0062255859375, -0.01434326171875, 0.00848388671875, -0.0159912109375, -0.006256103515625, -0.00323486328125, -0.016845703125, 0.002288818359375, -0.0003376007080078125, -0.012451171875, -0.00738525390625, 0.0235595703125, -0.00762939...
[ 1250, 4867, 2878, 289, 79986, 14858, 214, 502, 442, 7722, 47, 25958, 23, 10, 876, 15772, 472, 238, 92, 104, 28, 177, 141956, 71, 9774, 209303, 113054, 619 ]
[ 0.1561279296875, 0.2374267578125, 0.1875, 0.08355712890625, 0.189453125, 0.2374267578125, 0.045013427734375, 0.1568603515625, 0.049407958984375, 0.1494140625, 0.03759765625, 0.10498046875, 0.0633544921875, 0.040557861328125, 0.09033203125, 0.007904052734375, 0.075927734375, 0.03863...
embed
5895819_c0
5895819
prolog
0
Title: Strange operator (!) in Prolog Problem title: Strange operator (!) in Prolog Tags: operators, prolog-cut, prolog Problem: Strange operator (!) in Prolog hi(g,plus(A,B),int) :- hi(g,A,int),hi(g,B,int),!. in the above statement what does the '!' sign at the end of the statement do ? Code signals: Strange, Prolog
Strange operator (!) in Prolog Strange operator (!) in Prolog operators prolog-cut prolog Strange Prolog Strange operator (!) in Prolog in the above statement what does the '!' sign at the end of the statement do ?
[ 0.0264892578125, 0.006195068359375, 0.03515625, 0.00579833984375, 0.00994873046875, 0.0145263671875, 0.00665283203125, 0.01300048828125, 0.004425048828125, -0.01043701171875, -0.012451171875, 0.00107574462890625, 0.009521484375, -0.00384521484375, 0.0050048828125, 0.0067138671875, -0...
[ 187791, 39933, 72896, 1250, 4867, 23, 502, 19774, 70, 36917, 63805, 2367, 14602, 242, 38, 25, 24092, 99, 3564, 111, 54, 705 ]
[ 0.262939453125, 0.285888671875, 0.187744140625, 0.17529296875, 0.26806640625, 0.019683837890625, 0.1260986328125, 0.1983642578125, 0.0706787109375, 0.09893798828125, 0.253662109375, 0.1048583984375, 0.07452392578125, 0.009735107421875, 0.2344970703125, 0.0428466796875, 0.238403320312...
embed
69925718_c0
69925718
prolog
0
Title: How to define 'as long as' in prolog? Problem title: How to define 'as long as' in prolog? Tags: prolog Problem: How to define 'as long as' in prolog? Hi how can I define 'as long as' in prolog? for example: sam is the brother of jane as long as they have the same parents? Code signals: How
How to define 'as long as' in prolog? How to define 'as long as' in prolog? prolog How How to define 'as long as' in prolog? Hi how can I define 'as long as' in prolog? for example: sam is the brother of jane as long as they have the same parents?
[ 0.01708984375, 0.0263671875, -0.004547119140625, -0.002227783203125, -0.0096435546875, -0.0164794921875, -0.004974365234375, 0.01446533203125, 0.0186767578125, -0.046630859375, 0.00726318359375, 0.0166015625, -0.0250244140625, 0.01348876953125, 0.0086669921875, 0.02880859375, -0.0040...
[ 11249, 61924, 3768, 162, 4989, 237, 502, 4867, 23, 47, 3642, 1289, 82953, 47363, 5701, 27863 ]
[ 0.026123046875, 0.16943359375, 0.10186767578125, 0.129638671875, 0.1849365234375, 0.224609375, 0.112548828125, 0.1827392578125, 0.026702880859375, 0.004638671875, 0.003936767578125, 0.1236572265625, 0.1156005859375, 0.128173828125, 0.035064697265625, 0.0806884765625 ]
embed
41278310_c0
41278310
prolog
0
Title: Simplify Expressions in Prolog Problem title: Simplify Expressions in Prolog Tags: prolog Problem: Simplify Expressions in Prolog I wanted to ask how I can simplify expressions like: 1+2+a*5+0/b-c*0 = 3+a*5 And especially how can I separate such expressions in lists. Code signals: Simplify, Expressions, Prolog
Simplify Expressions in Prolog Simplify Expressions in Prolog prolog Simplify Expressions Prolog Simplify Expressions in Prolog I wanted to ask how I can simplify expressions like: And especially how can I separate such expressions in lists.
[ 0.031494140625, -0.0038299560546875, -0.0037689208984375, 0.02587890625, -0.00885009765625, 0.01080322265625, 0.0081787109375, -0.002349853515625, 0.009033203125, -0.0001850128173828125, -0.0106201171875, -0.00640869140625, -0.01312255859375, 0.00128936767578125, -0.004180908203125, 0....
[ 55331, 28574, 53, 25129, 17514, 23, 1250, 4867, 502, 36663, 26458, 3642, 831, 112892, 18929, 125195, 1884, 12, 84797, 6044, 5303 ]
[ 0.1446533203125, 0.1695556640625, 0.08184814453125, 0.1683349609375, 0.0750732421875, 0.0243377685546875, 0.1495361328125, 0.2210693359375, 0.10992431640625, 0.0189666748046875, 0.0272216796875, 0.0059356689453125, 0.0107421875, 0.2059326171875, 0.1539306640625, 0.2371826171875, 0.04...
embed
65267455_c0
65267455
prolog
0
Title: how to print star triangle in prolog using recursion Problem title: how to print star triangle in prolog using recursion Tags: prolog Problem: how to print star triangle in prolog using recursion Anyone knows how to draw this triangle using recursive in prolog? * ** *** **** ***** ****** Code signals: recursion
how to print star triangle in prolog using recursion how to print star triangle in prolog using recursion prolog recursion how to print star triangle in prolog using recursion Anyone knows how to draw this triangle using recursive in prolog?
[ 0.004425048828125, 0.000017762184143066406, -0.0011749267578125, -0.006988525390625, 0.004974365234375, 0.0042724609375, -0.003204345703125, 0.005767822265625, 0.01220703125, -0.00518798828125, 0.01190185546875, -0.0262451171875, -0.01129150390625, 0.0096435546875, 0.0169677734375, 0.0...
[ 3642, 28412, 6057, 1927, 109217, 502, 4867, 195625, 1830, 17368, 47, 23, 3630, 93002, 79442, 903, 5844 ]
[ 0.019287109375, 0.174072265625, 0.1861572265625, 0.191162109375, 0.21044921875, 0.1185302734375, 0.2130126953125, 0.1920166015625, 0.0853271484375, 0.0273284912109375, 0.005016326904296875, 0.00604248046875, 0.00865936279296875, 0.059967041015625, 0.134765625, 0.00896453857421875, 0....
embed
66079294_c1
66079294
prolog
1
no experience in Prolog. (*) So the question is: What would be the best way to do this? And if it's (*) then how to do that? Edit: for easier coding here the binary pattern of the numbers: 0x49ab = 0b0100100110101011 0x530b = 0b0101001100001011 0x0883 = 0b0000100010000011 0x1787 = 0b0001011110000111 Code signals: What
no experience in Prolog. (*) So the question is: What would be the best way to do this? And if it's (*) then how to do that? Edit: for easier coding here the binary pattern of the numbers: 0x49ab = 0b0100100110101011 0x530b = 0b0101001100001011 0x0883 = 0b0000100010000011 0x1787 = 0b0001011110000111 Code signals: What
[ -0.000347137451171875, -0.01470947265625, -0.0036468505859375, 0.00408935546875, -0.0206298828125, 0.0244140625, -0.0140380859375, 0.0147705078125, 0.01507568359375, -0.00921630859375, 0.0003604888916015625, -0.0146484375, -0.0103759765625, 0.02099609375, 0.006439208984375, 0.004425048...
[ 110, 16981, 23, 1250, 4867, 5, 80019, 9655, 4865, 2806, 70, 2965, 3917, 47, 54, 903, 2174, 442, 3642, 450, 32, 42079, 99156, 552, 6238, 3688, 2394, 6635, 103510, 101935, 757, 425, 12977, 2055, 2203, 275, 3559, 36053, 35046, 136485, 758,...
[ 0.08782958984375, 0.1497802734375, 0.009185791015625, 0.183349609375, 0.288330078125, 0.051513671875, 0.1494140625, 0.094970703125, 0.0816650390625, 0.0714111328125, 0.03814697265625, 0.152099609375, 0.1173095703125, 0.06903076171875, 0.1123046875, 0.1768798828125, 0.059844970703125,...
embed
15935053_c1
15935053
prolog
1
likes(jane, _G2267) T Call: (10) likes(jane, _G2267) T Call: (11) likes(jane, _G2267) T Call: (12) likes(jane, _G2267) T Call: (13) likes(jane, _G2267) T Call: (14) likes(jane, _G2267) T Call: (15) likes(jane, _G2267) and so on .. why likes(jane, _G2267) ?????? Code signals: ERROR, Out, Call, _G2162, Exit, Redo, _G226...
likes(jane, _G2267) T Call: (10) likes(jane, _G2267) T Call: (11) likes(jane, _G2267) T Call: (12) likes(jane, _G2267) T Call: (13) likes(jane, _G2267) T Call: (14) likes(jane, _G2267) T Call: (15) likes(jane, _G2267) and so on .. why likes(jane, _G2267) ?????? Code signals: ERROR, Out, Call, _G2162, Exit, Redo, _G226...
[ -0.004974365234375, 0.0120849609375, -0.019775390625, 0.05029296875, 0.000606536865234375, 0.013427734375, 0.00994873046875, -0.0032958984375, -0.00885009765625, -0.01068115234375, -0.01031494140625, -0.00872802734375, -0.0123291015625, 0.0155029296875, 0.0341796875, 0.01080322265625, ...
[ 1884, 7, 145, 86, 101, 724, 4015, 87053, 384, 26265, 17857, 21282, 23676, 28261, 31203, 12, 31592, 98, 15400, 132, 4, 85908, 28864, 26073, 151206, 24638, 13538, 3117, 10837, 5443, 217, 6096, 31, 18197 ]
[ 0.27587890625, 0.1845703125, 0.18798828125, 0.207275390625, 0.042938232421875, 0.110107421875, 0.1656494140625, 0.2470703125, 0.121337890625, 0.203125, 0.1297607421875, 0.09930419921875, 0.06683349609375, 0.07293701171875, 0.11669921875, 0.0159912109375, 0.1405029296875, 0.01692199...
embed
69835765_c0
69835765
prolog
0
Title: How do I print dynamic/1 in Prolog Problem title: How do I print dynamic/1 in Prolog Tags: prolog Problem: How do I print dynamic/1 in Prolog I want to print these all names under each dynamic/1. For example I want to print all names of male under one query for print all males in Prolog. Code signals: How, Prolo...
How do I print dynamic/1 in Prolog How do I print dynamic/1 in Prolog prolog How Prolog How do I print dynamic/1 in Prolog I want to print these all names under each dynamic/1. For example I want to print all names of male under one query for print all males in Prolog.
[ 0.01611328125, -0.005950927734375, 0.031005859375, 0.019287109375, -0.00787353515625, 0.03564453125, -0.005462646484375, 0.0028228759765625, -0.0079345703125, -0.025634765625, -0.0047607421875, -0.032958984375, -0.00872802734375, -0.0133056640625, 0.017333984375, 0.0108642578125, 0.0...
[ 11249, 54, 87, 28412, 84079, 11583, 23, 1250, 4867, 502, 3444, 756, 123055, 1379, 12638, 11280, 1632, 41 ]
[ 0.056854248046875, 0.048858642578125, 0.06402587890625, 0.225830078125, 0.2432861328125, 0.1822509765625, 0.060638427734375, 0.171630859375, 0.24560546875, 0.11932373046875, 0.041412353515625, 0.051422119140625, 0.148681640625, 0.08575439453125, 0.0212554931640625, 0.11358642578125, ...
embed
7335696_c0
7335696
prolog
0
Title: How to read the data from text file in Prolog Problem title: How to read the data from text file in Prolog Tags: swi-prolog, prolog Problem: How to read the data from text file in Prolog How do I read data from a text file in Prolog? Is there any example of file reading in SWI-prolog? Code signals: text, How, Pr...
How to read the data from text file in Prolog How to read the data from text file in Prolog swi-prolog prolog text How Prolog How to read the data from text file in Prolog How do I read data from a text file in Prolog? Is there any example of file reading in SWI-prolog?
[ 0.041015625, -0.00482177734375, 0.00909423828125, 0.0220947265625, -0.00653076171875, 0.0024566650390625, 0.014892578125, 0.00250244140625, -0.01416015625, -0.05078125, 0.007476806640625, -0.00848388671875, -0.03515625, -0.021484375, 0.02685546875, -0.00567626953125, 0.00564575195312...
[ 11249, 47, 12301, 2053, 1295, 7986, 11435, 1250, 4867, 23, 2452, 3454, 502, 54, 27781, 16454, 159, 38969 ]
[ 0.04656982421875, 0.062744140625, 0.2076416015625, 0.16064453125, 0.11737060546875, 0.202392578125, 0.187744140625, 0.1591796875, 0.2462158203125, 0.03692626953125, 0.1402587890625, 0.11370849609375, 0.1214599609375, 0.002696990966796875, 0.053924560546875, 0.1558837890625, 0.0207519...
embed
34291005_c0
34291005
prolog
0
Title: Show WAM code for a given Prolog program Problem title: Show WAM code for a given Prolog program Tags: warren-abstract-machine, prolog Problem: Show WAM code for a given Prolog program Given a Prolog program, is there any GNU Prolog command to view the WAM code relative to that program? Code signals: Show, WAM, ...
Show WAM code for a given Prolog program Show WAM code for a given Prolog program warren-abstract-machine prolog Show WAM Prolog Show WAM code for a given Prolog program Given a Prolog program, is there any GNU Prolog command to view the WAM code relative to that program?
[ 0.029541015625, 0.00244140625, 0.0126953125, 0.0279541015625, 0.0101318359375, 0.0224609375, -0.000766754150390625, -0.01953125, -0.01239013671875, -0.0133056640625, -0.00958251953125, -0.007080078125, -0.0206298828125, -0.010986328125, -0.0130615234375, 0.005615234375, 0.00531005859...
[ 17367, 4336, 594, 18151, 100, 34475, 1250, 4867, 1528, 1631, 982, 2816, 15390, 103149, 502, 165132, 75101, 47, 21455, 35845 ]
[ 0.119384765625, 0.2022705078125, 0.201171875, 0.22705078125, 0.027587890625, 0.045166015625, 0.1561279296875, 0.215087890625, 0.1778564453125, 0.0350341796875, 0.10577392578125, 0.10662841796875, 0.0007939338684082031, 0.12078857421875, 0.114013671875, 0.1309814453125, 0.19384765625,...
embed
19739958_c0
19739958
prolog
0
Title: How to separate files in prolog Problem title: How to separate files in prolog Tags: prolog Problem: How to separate files in prolog I wanna know if it´s possible to separate files in prolog, for example: I wanna have my interface, rules, facts, consults in separate files and make them work together. Code signal...
How to separate files in prolog How to separate files in prolog prolog How How to separate files in prolog I wanna know if it´s possible to separate files in prolog, for example: I wanna have my interface, rules, facts, consults in separate files and make them work together.
[ 0.043701171875, -0.00927734375, -0.0067138671875, 0.020751953125, -0.033203125, 0.0108642578125, 0.0068359375, 0.01904296875, -0.01141357421875, -0.031494140625, -0.0059814453125, 0.00909423828125, -0.01239013671875, 0.00445556640625, 0.0034332275390625, -0.01251220703125, -0.0045776...
[ 11249, 47, 84797, 102158, 23, 502, 4867, 6165, 76, 3714, 7722, 765, 101758, 91736, 15824, 75463, 4488, 25842 ]
[ 0.0693359375, 0.07696533203125, 0.238525390625, 0.2166748046875, 0.10546875, 0.1624755859375, 0.22265625, 0.028289794921875, 0.0487060546875, 0.015838623046875, 0.0994873046875, 0.0008411407470703125, 0.1307373046875, 0.082763671875, 0.05682373046875, 0.1234130859375, 0.0103836059570...
embed
6014961_c0
6014961
prolog
0
Title: Prolog list problem Problem title: Prolog list problem Tags: prolog, predicate, list Problem: Prolog list problem [a,b,c,d] and [[1,2,3,4],[5,6,7,8],[43,34,56,5],[23,32,2,2]] I want to make [[a,1,2,3,4],[b,5,6,7,8],[c,43,34,56,5],[d,23,32,2,2]] I use swi prolog is it possible do it ? Thanks a lot. Code signals: ...
Prolog list problem Prolog list problem prolog predicate list Prolog Prolog list problem I want to make I use swi prolog is it possible do it ? Thanks a lot.
[ 0.0230712890625, 0.0126953125, 0.002593994140625, 0.006439208984375, -0.0198974609375, 0.02734375, -0.0189208984375, 0.00787353515625, 0.00070953369140625, -0.016845703125, 0.0120849609375, -0.0196533203125, -0.0108642578125, -0.000797271728515625, -0.005615234375, -0.002899169921875, ...
[ 1250, 4867, 5303, 2967, 502, 1653, 2063, 67, 3444, 3249, 87, 4527, 91, 2452, 83, 442, 7722, 54, 5915 ]
[ 0.1412353515625, 0.2490234375, 0.2144775390625, 0.1705322265625, 0.1455078125, 0.12274169921875, 0.169189453125, 0.0460205078125, 0.0667724609375, 0.10345458984375, 0.0369873046875, 0.1295166015625, 0.09381103515625, 0.25390625, 0.03955078125, 0.0433349609375, 0.1494140625, 0.05160...
embed
10122780_c0
10122780
prolog
0
Title: if else if else clause in prolog similar to C/C++ Problem title: if else if else clause in prolog similar to C/C++ Tags: prolog Problem: if else if else clause in prolog similar to C/C++ In c language i have something like : if(cond1) {} else if(cond2) {} else {} how is this possible in Prolog? Code signals: con...
if else if else clause in prolog similar to C/C++ if else if else clause in prolog similar to C/C++ prolog cond1 cond2 if else if else clause in prolog similar to C/C++ In c language i have something like : how is this possible in Prolog?
[ 0.017822265625, 0.00616455078125, -0.013427734375, 0.032958984375, 0.0024261474609375, 0.00213623046875, -0.000614166259765625, 0.0322265625, -0.00262451171875, 0.004638671875, -0.00714111328125, -0.013916015625, -0.006378173828125, 0.005889892578125, 0.020263671875, 0.01446533203125, ...
[ 2174, 37076, 70731, 13, 23, 502, 4867, 21373, 313, 64, 37223, 441, 158, 71, 418, 304, 47, 501, 46876, 1884, 3642, 83, 903, 7722, 1250 ]
[ 0.19482421875, 0.2449951171875, 0.1788330078125, 0.07403564453125, 0.042205810546875, 0.152587890625, 0.236083984375, 0.1448974609375, 0.0677490234375, 0.083251953125, 0.197265625, 0.00823974609375, 0.09417724609375, 0.05816650390625, 0.01629638671875, 0.061248779296875, 0.0274505615...
embed
39917198_c0
39917198
prolog
0
Title: Writing grammars with prolog Problem title: Writing grammars with prolog Tags: dcg, context-free-grammar, prolog, grammar Problem: Writing grammars with prolog Is it possible to use Prolog to define a grammar for a non-natural language, for example, SQL? If so, please guide me to some starting point. Code signal...
Writing grammars with prolog Writing grammars with prolog dcg context-free-grammar prolog grammar Writing Writing grammars with prolog Is it possible to use Prolog to define a grammar for a non-natural language, for example, SQL? If so, please guide me to some starting point.
[ 0.0162353515625, 0.005615234375, -0.00081634521484375, 0.005035400390625, -0.005584716796875, 0.01422119140625, -0.01116943359375, 0.002685546875, 0.006256103515625, -0.0390625, 0.003631591796875, -0.0023956298828125, -0.0169677734375, 0.00628662109375, 0.0255126953125, -0.001174926757...
[ 213185, 122092, 21816, 678, 502, 4867, 238, 177, 43701, 32087, 107415, 147, 7722, 4527, 1250, 61924, 100, 351, 84832, 46876, 80866, 17997, 72134 ]
[ 0.1622314453125, 0.20703125, 0.169677734375, 0.10699462890625, 0.16015625, 0.260009765625, 0.01013946533203125, 0.11126708984375, 0.11590576171875, 0.09112548828125, 0.111328125, 0.1878662109375, 0.1214599609375, 0.0906982421875, 0.16455078125, 0.1748046875, 0.0274810791015625, 0.1...
embed
4077106_c0
4077106
prolog
0
Title: Writing to a binary file in PROLOG Problem title: Writing to a binary file in PROLOG Tags: file, binary, prolog Problem: Writing to a binary file in PROLOG I know how to write to ordinary files, but I haven't found any resources on the web about binary files in Prolog. I'm using Turbo Prolog. Code signals: Writi...
Writing to a binary file in PROLOG Writing to a binary file in PROLOG file binary prolog Writing PROLOG Writing to a binary file in PROLOG I know how to write to ordinary files, but I haven't found any resources on the web about binary files in Prolog. I'm using Turbo Prolog.
[ 0.0184326171875, 0.012451171875, 0.01416015625, 0.0025634765625, -0.01348876953125, 0.01470947265625, -0.023681640625, 0.00109100341796875, -0.007781982421875, 0.003082275390625, 0.000972747802734375, -0.002685546875, -0.0184326171875, 0.02001953125, 0.0302734375, 0.004913330078125, ...
[ 213185, 47, 2394, 6635, 11435, 23, 10514, 47510, 502, 4867, 3714, 3642, 33022, 23335, 102158, 65514, 1250, 17368, 102228 ]
[ 0.1817626953125, 0.1842041015625, 0.1630859375, 0.1290283203125, 0.156494140625, 0.045501708984375, 0.17724609375, 0.251220703125, 0.115966796875, 0.212890625, 0.031463623046875, 0.007541656494140625, 0.159912109375, 0.02813720703125, 0.1363525390625, 0.07415771484375, 0.147338867187...
embed
22961682_c1
22961682
prolog
1
H|T], X, R) :- H \= X, count(T, X, R). add_if_count_is_one(H, T, H) :- count(T, H, C), 0 is (C+1) mod 2. add_if_count_is_one(H, T, []) :- count(T, H, C), 0 is C mod 2. add_if_count_is_one(H, T, []) :- count(T, H, 0). listPair(M, RR):- num_pairs(M, R), delete(R,[],RR). Code signals: Seen, MMax, Max, add_if_count_is_one,...
H|T], X, R) :- H \= X, count(T, X, R). add_if_count_is_one(H, T, H) :- count(T, H, C), 0 is (C+1) mod 2. add_if_count_is_one(H, T, []) :- count(T, H, C), 0 is C mod 2. add_if_count_is_one(H, T, []) :- count(T, H, 0). listPair(M, RR):- num_pairs(M, R), delete(R,[],RR). Code signals: Seen, MMax, Max, add_if_count_is_one,...
[ -0.01348876953125, 0.014404296875, -0.00171661376953125, 0.0006256103515625, -0.00038909912109375, 0.020751953125, -0.01171875, -0.006561279296875, 0.037353515625, -0.027587890625, 0.00970458984375, -0.016845703125, 0.016845703125, 0.007232666015625, 0.0111083984375, -0.01336669921875,...
[ 572, 58745, 618, 268, 1193, 627, 15772, 41872, 1369, 54529, 194, 15190, 3190, 71013, 164, 3630, 841, 384, 313, 757, 441, 21748, 2811, 787, 454, 4, 5303, 8335, 481, 594, 37703, 13269, 109637, 154109, 1052, 28864, 26073, 503, 33, 276, 713...
[ 0.1929931640625, 0.0947265625, 0.1287841796875, 0.05963134765625, 0.12744140625, 0.13330078125, 0.0948486328125, 0.061309814453125, 0.04034423828125, 0.2061767578125, 0.047088623046875, 0.167724609375, 0.1185302734375, 0.2078857421875, 0.09765625, 0.1473388671875, 0.1485595703125, ...
embed
5949670_c0
5949670
prolog
0
Title: Dynamic Prolog clause-body generation Problem title: Dynamic Prolog clause-body generation Tags: prolog, code-generation, clause, dynamic, metaprogramming Problem: Dynamic Prolog clause-body generation For an assignment I have to generate a prolog procedure body dynamically. How can I do this? Code signals: Dyna...
Dynamic Prolog clause-body generation Dynamic Prolog clause-body generation prolog code-generation clause dynamic metaprogramming Dynamic Prolog Dynamic Prolog clause-body generation For an assignment I have to generate a prolog procedure body dynamically. How can I do this?
[ 0.046630859375, 0.024169921875, 0.005401611328125, 0.025146484375, -0.022216796875, 0.00933837890625, -0.01123046875, 0.00148773193359375, 0.004058837890625, -0.02783203125, -0.0283203125, 0.006622314453125, -0.02587890625, -0.02783203125, 0.030029296875, -0.001556396484375, -0.00729...
[ 73327, 21068, 1250, 4867, 70731, 13, 37873, 58093, 502, 18151, 48281, 84079, 23550, 28966, 95486, 674, 765, 139392, 50491, 14361, 831, 54 ]
[ 0.134033203125, 0.079833984375, 0.137939453125, 0.2266845703125, 0.1512451171875, 0.0150909423828125, 0.173583984375, 0.173583984375, 0.126708984375, 0.09918212890625, 0.1195068359375, 0.1761474609375, 0.10540771484375, 0.12939453125, 0.132568359375, 0.051849365234375, 0.036437988281...
embed
27008401_c0
27008401
prolog
0
Title: How do two atomic formulas unify? Problem title: How do two atomic formulas unify? Tags: prolog, unification Problem: How do two atomic formulas unify? I have learned loves(bob,Y) and loves(X,santa) can unify because {Y\santa,X\bob} . However, I'm not sure if the following can be unified: m(a,X) and n(Y,b) Code ...
How do two atomic formulas unify? How do two atomic formulas unify? prolog unification How How do two atomic formulas unify? I have learned loves(bob,Y) and loves(X,santa) can unify because {Y\santa,X\bob} . However, I'm not sure if the following can be unified:
[ 0.0194091796875, 0.0218505859375, 0.006591796875, 0.021728515625, -0.0031890869140625, 0.0010223388671875, -0.000545501708984375, -0.007568359375, 0.01068115234375, -0.001220703125, 0.0027618408203125, -0.00616455078125, 0.0093994140625, -0.007110595703125, -0.01397705078125, 0.0020141...
[ 11249, 54, 6626, 34627, 1771, 26168, 7, 51, 40383, 502, 4867, 41274, 97384, 5161, 837, 275, 1723, 136, 1542, 116357, 831, 6637, 9077, 25632, 186, 47314 ]
[ 0.130859375, 0.09259033203125, 0.187744140625, 0.183349609375, 0.1103515625, 0.2474365234375, 0.1002197265625, 0.2049560546875, 0.224609375, 0.12939453125, 0.1990966796875, 0.15576171875, 0.043701171875, 0.201171875, 0.0921630859375, 0.1163330078125, 0.122802734375, 0.0036315917968...
embed
5211010_c0
5211010
prolog
0
Title: Saving Variables Prolog Problem title: Saving Variables Prolog Tags: variables, prolog, save Problem: Saving Variables Prolog Is it possible to save variables in Prolog? I would like to save and edit a list as the program runs but I cannot find anyway of saving the list between edits. Code signals: Saving, Varia...
Saving Variables Prolog Saving Variables Prolog variables prolog save Saving Variables Prolog Saving Variables Prolog Is it possible to save variables in Prolog? I would like to save and edit a list as the program runs but I cannot find anyway of saving the list between edits.
[ 0.0198974609375, 0.0179443359375, 0.001617431640625, 0.000028848648071289062, 0.00160980224609375, 0.00958251953125, -0.017822265625, 0.02197265625, 0.0007171630859375, -0.02099609375, 0.0003643035888671875, 0.01129150390625, -0.0107421875, 0.0025634765625, 0.023681640625, 0.0009155273...
[ 947, 6496, 111477, 13566, 1250, 4867, 77336, 502, 30098, 442, 7722, 47, 7, 23, 1884, 136, 27211, 5303, 237, 1528, 127877, 53418, 7413, 109954, 57, 17721 ]
[ 0.1318359375, 0.09259033203125, 0.2088623046875, 0.151123046875, 0.18115234375, 0.24853515625, 0.283203125, 0.12359619140625, 0.20849609375, 0.0279998779296875, 0.13330078125, 0.021697998046875, 0.120361328125, 0.07427978515625, 0.04193115234375, 0.0007452964782714844, 0.141967773437...
embed
6806865_c0
6806865
prolog
0
Title: prolog term to string Problem title: prolog term to string Tags: string, prolog Problem: prolog term to string i have a prolog list like this: [p(X,Y,Z),r(H,G,K)] and i want convert it into this: 'p(X,Y,Z)r(H,G,K)' it is just a list of predicate, that should be transformed into a string. Do you have any idea? ( ...
prolog term to string prolog term to string string prolog prolog term to string i have a prolog list like this: and i want convert it into this: it is just a list of predicate, that should be transformed into a string. Do you have any idea? ( I use prolog)
[ 0.0103759765625, -0.0010528564453125, 0.0042724609375, 0.009033203125, -0.012451171875, 0.017822265625, -0.0107421875, 0.02392578125, -0.00970458984375, -0.052978515625, 0.0194091796875, 0.010498046875, -0.01531982421875, -0.0047607421875, 0.0025634765625, 0.0147705078125, 0.00177001...
[ 502, 4867, 13579, 47, 79315, 5303, 1884, 903, 3444, 96760, 3934, 1653, 2063, 67, 5608, 27198, 297, 10, 6528, 4527 ]
[ 0.150390625, 0.2427978515625, 0.2137451171875, 0.11883544921875, 0.2476806640625, 0.16259765625, 0.01476287841796875, 0.067626953125, 0.07781982421875, 0.1466064453125, 0.06805419921875, 0.1240234375, 0.1661376953125, 0.06005859375, 0.0535888671875, 0.1192626953125, 0.05279541015625,...
embed
71743913_c0
71743913
prolog
0
Title: how do i flatten a complicate list in prolog? Problem title: how do i flatten a complicate list in prolog? Tags: prolog Problem: how do i flatten a complicate list in prolog? I have a list, which looks like -> [[[7, 8, 9], [7, 8, 9]]], I want to become follow example, [[[7,8,9],[7,8,9]]] -> [[7,8,9],[7,8,9]] is ...
how do i flatten a complicate list in prolog? how do i flatten a complicate list in prolog? prolog how do i flatten a complicate list in prolog? I have a list, which looks like -> [[[7, 8, 9], [7, 8, 9]]], I want to become follow example, [[[7,8,9],[7,8,9]]] -> [[7,8,9],[7,8,9]] is this possible?
[ 0.01312255859375, 0.0023193359375, 0.013427734375, 0.0228271484375, -0.00179290771484375, 0.01416015625, 0.00052642822265625, 0.0067138671875, -0.00119781494140625, -0.0126953125, 0.00787353515625, 0.0026397705078125, -0.0159912109375, 0.0030059814453125, -0.006805419921875, -0.0115966...
[ 3642, 17, 49878, 510, 96704, 13, 5303, 23, 502, 4867, 54, 10, 33342, 1884, 966, 382, 483, 3444, 24209, 28960, 27781, 145180, 33079, 7722 ]
[ 0.061676025390625, 0.05645751953125, 0.2261962890625, 0.23095703125, 0.23193359375, 0.1337890625, 0.2274169921875, 0.064208984375, 0.1365966796875, 0.19970703125, 0.013763427734375, 0.0347900390625, 0.1221923828125, 0.044647216796875, 0.0831298828125, 0.115234375, 0.130859375, 0.05...
embed
4327912_c0
4327912
prolog
0
Title: Save output from Prolog execution Problem title: Save output from Prolog execution Tags: prolog Problem: Save output from Prolog execution I am running a tool in Prolog, and after I execute it, the result will appear on the screen, inside the Prolog shell. How can I copy this result into another file? Code signa...
Save output from Prolog execution Save output from Prolog execution prolog Prolog Save Save output from Prolog execution I am running a tool in Prolog, and after I execute it, the result will appear on the screen, inside the Prolog shell. How can I copy this result into another file?
[ 0.033935546875, 0.00592041015625, 0.00482177734375, 0.026123046875, -0.00848388671875, 0.02001953125, -0.000331878662109375, -0.01153564453125, -0.0011444091796875, -0.01806640625, -0.00189971923828125, 0.0296630859375, -0.0042724609375, 0.00113677978515625, 0.0126953125, -0.0031280517...
[ 64944, 140992, 1295, 1250, 4867, 71924, 1830, 502, 51042, 55516, 7103, 16750, 108975, 49119, 46132, 128019, 11249, 831, 43658, 903, 3934, 15700, 11435 ]
[ 0.16259765625, 0.23681640625, 0.116943359375, 0.1710205078125, 0.266357421875, 0.1668701171875, 0.054656982421875, 0.0867919921875, 0.0955810546875, 0.1893310546875, 0.05718994140625, 0.14892578125, 0.09210205078125, 0.116943359375, 0.052490234375, 0.1533203125, 0.00054931640625, 0...
embed
19927831_c0
19927831
prolog
0
Title: Operator of arity 3 in Prolog Problem title: Operator of arity 3 in Prolog Tags: operators, prolog Problem: Operator of arity 3 in Prolog In Prolog, how can I define the operator "relation" to work as a relation/3 predicate? For example: relation a b c. and produce it: relation(a, b, c). Thank you! Code signals:...
Operator of arity 3 in Prolog Operator of arity 3 in Prolog operators prolog Operator Prolog Operator of arity 3 in Prolog In Prolog, how can I define the operator "relation" to work as a relation/3 predicate? For example: relation a b c. and produce it: relation(a, b, c). Thank you!
[ 0.00677490234375, 0.01031494140625, 0.0303955078125, -0.00555419921875, 0.006683349609375, -0.003570556640625, 0.00177001953125, 0.006591796875, -0.0098876953125, -0.03759765625, -0.0201416015625, -0.01214599609375, -0.0035858154296875, -0.02392578125, 0.0130615234375, 0.00037574768066...
[ 150922, 111, 187, 2481, 138, 1250, 4867, 39933, 502, 61924, 107, 57860, 4488, 237, 41911, 18113, 1653, 2063, 67, 10, 876, 501, 27489, 11 ]
[ 0.244140625, 0.025299072265625, 0.137939453125, 0.1591796875, 0.199951171875, 0.152099609375, 0.2298583984375, 0.247314453125, 0.06365966796875, 0.12744140625, 0.0975341796875, 0.23046875, 0.077392578125, 0.00859832763671875, 0.233642578125, 0.187744140625, 0.1072998046875, 0.15832...
embed