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
67984845_c0
67984845
prolog
0
Title: Finding minimal maximum share Problem title: Finding minimal maximum share Tags: maximize, prolog, minimum, mms Problem: Finding minimal maximum share Recently I came across this question: Finding maximal minimum value set And the code answer to compute the maximal minimum: maximin(Elements, N, Maximin, LDistrib...
Finding minimal maximum share Finding minimal maximum share maximize prolog minimum mms Finding Elements Maximin LDistribution Sum TargetMaximin NMaximin LDistributionOnce Skipped Cur Distribution NElements Element NCur Minimax TargetMinimax NMinimax distribute_minimax Finding minimal maximum share Recently I came acro...
[ -0.007476806640625, 0.005889892578125, 0.033935546875, 0.0091552734375, -0.01239013671875, 0.006561279296875, 0.0072021484375, 0.004730224609375, 0.01385498046875, -0.01165771484375, 0.01226806640625, 0.017822265625, -0.0029754638671875, -0.01483154296875, 0.0279541015625, 0.0080566406...
[ 26040, 214, 20187, 38132, 12008, 39771, 20650, 502, 4867, 15440, 2866, 7, 48325, 46540, 73, 339, 179236, 36335, 160017, 71346, 4923, 44456, 3956, 20491, 48398, 17065, 75571, 19929, 474, 13468, 24084, 114986, 541, 15917, 9222, 9655, 111340, 34...
[ 0.13427734375, 0.035064697265625, 0.2081298828125, 0.21240234375, 0.2315673828125, 0.1632080078125, 0.07391357421875, 0.08172607421875, 0.1422119140625, 0.24609375, 0.098388671875, 0.038543701171875, 0.1416015625, 0.1256103515625, 0.07476806640625, 0.0237274169921875, 0.1202392578125...
embed
26260407_c0
26260407
prolog
0
Title: Prolog logic puzzle & constraint programming Problem title: Prolog logic puzzle & constraint programming Tags: prolog, logic, zebra-puzzle, constraint-programming Problem: Prolog logic puzzle & constraint programming I have a homework assignment to define 10 facts in prolog to solve this puzzle. Five tra...
Prolog logic puzzle & constraint programming Prolog logic puzzle & constraint programming prolog logic zebra-puzzle constraint-programming the Prolog Five Spaniard Englishman Frenchman German Russian Each Find French Spanish Four Exactly Only language1 language2 native_language possible_language fill_structure ...
[ 0.0106201171875, 0.003143310546875, 0.0130615234375, 0.02392578125, -0.0123291015625, -0.0020599365234375, -0.05126953125, -0.0086669921875, -0.0155029296875, -0.0302734375, 0.01025390625, -0.01141357421875, -0.00634765625, -0.01275634765625, -0.00439453125, 0.01275634765625, 0.01239...
[ 1250, 4867, 62775, 104192, 619, 25133, 158, 2816, 4288, 56037, 502, 116232, 1766, 13894, 133, 28966, 156615, 114181, 4216, 14941, 669, 92265, 30839, 102374, 98423, 26040, 195374, 65056, 202873, 87293, 46876, 304, 24, 4935, 196651, 7722, 26292, ...
[ 0.1705322265625, 0.26904296875, 0.1944580078125, 0.1954345703125, 0.013824462890625, 0.034210205078125, 0.0980224609375, 0.1612548828125, 0.12109375, 0.1336669921875, 0.1473388671875, 0.18505859375, 0.080322265625, 0.119873046875, 0.01287841796875, 0.123291015625, 0.1734619140625, ...
embed
23207576_c0
23207576
prolog
0
Title: Solving "Feed the Golorp" puzzle in Prolog Problem title: Solving "Feed the Golorp" puzzle in Prolog Tags: metaprogramming, constraint-programming, prolog Problem: Solving "Feed the Golorp" puzzle in Prolog Some time ago I created a problem for Codeforces April Fools Day Contest 2014 - "Feed ...
Solving "Feed the Golorp" puzzle in Prolog Solving "Feed the Golorp" puzzle in Prolog metaprogramming constraint-programming prolog Solving Feed Golorp Prolog _-_ ___ Vars Ineqs Result concat_string __-___ term_variables _____________________ _________________________ ________________________ ______...
[ 0.008056640625, -0.01251220703125, 0.0087890625, 0.00616455078125, -0.02001953125, 0.01953125, -0.0113525390625, -0.00360107421875, -0.00005888938903808594, -0.036376953125, 0.001678466796875, 0.01153564453125, -0.0098876953125, 0.0034027099609375, 0.01373291015625, 0.0174560546875, ...
[ 6678, 6496, 30154, 297, 70, 2016, 1484, 254, 104192, 1250, 4867, 23, 23550, 28966, 158, 2816, 4288, 502, 124689, 3323, 360, 13, 864, 126684, 4460, 91693, 13579, 21690, 75935, 2967, 28864, 50930, 7, 7071, 9572, 929, 10013, 185631, 1049, 40...
[ 0.1253662109375, 0.07080078125, 0.2120361328125, 0.161865234375, 0.136474609375, 0.1156005859375, 0.2144775390625, 0.238525390625, 0.2176513671875, 0.1527099609375, 0.2489013671875, 0.0144805908203125, 0.095458984375, 0.1094970703125, 0.043853759765625, 0.149169921875, 0.026184082031...
embed
43111832_c0
43111832
prolog
0
Title: SWI-Prolog family tree parent_of/2 Problem title: SWI-Prolog family tree parent_of/2 Tags: prolog Problem: SWI-Prolog family tree parent_of/2 male(jerry). male(stuart). male(warren). male(peter). female(kather). female(maryalice). female(ann). brother(jerry,stuart). brother(jerry,kather). brother(peter, warren)....
SWI-Prolog family tree parent_of/2 SWI-Prolog family tree parent_of/2 prolog SWI-Prolog parent_of another_parent_of SWI-Prolog family tree parent_of/2 I was given the facts above and I need to define a rule using the predicate parent_of . Yes, it is the same predicate as the above facts defined by parent_of. Assume I h...
[ 0.0025634765625, 0.01068115234375, -0.00193023681640625, 0.00860595703125, -0.0296630859375, -0.0072021484375, -0.01141357421875, 0.006500244140625, 0.01123046875, -0.0576171875, 0.0174560546875, -0.01239013671875, 0.0093994140625, 0.01361083984375, 0.03662109375, 0.006195068359375, ...
[ 159, 38969, 10752, 4867, 14449, 53201, 49129, 4390, 12477, 502, 15700, 99547, 15824, 3871, 61924, 10, 79986, 17368, 1653, 2063, 67, 454, 5701, 36917, 66596, 78, 79298, 1542, 990, 1221, 30646, 756, 26785, 80836, 33022, 237, 62, 208124, 37105...
[ 0.044189453125, 0.1864013671875, 0.1339111328125, 0.179931640625, 0.0963134765625, 0.19189453125, 0.27685546875, 0.279052734375, 0.1971435546875, 0.109375, 0.127197265625, 0.1998291015625, 0.114501953125, 0.010650634765625, 0.18212890625, 0.0101318359375, 0.202392578125, 0.03637695...
embed
60904783_c0
60904783
prolog
0
Title: Tau-Prolog results visible in browser window Problem title: Tau-Prolog results visible in browser window Tags: javascript, ffi, tau-prolog, prolog Problem: Tau-Prolog results visible in browser window I'm fairly new to Tau-Prolog and Javascript. At the beginning I would like to show some results computed by the ...
Tau-Prolog results visible in browser window Tau-Prolog results visible in browser window javascript ffi tau-prolog prolog Tau-Prolog show_result1 pl.create session.consult code.pl console.log pl.format_answer query1 session.query result1 document.getElementById pl.type.is_substitution answer.toString result.innerHTML ...
[ 0.0198974609375, 0.0145263671875, -0.00927734375, 0.0028533935546875, 0.01019287109375, 0.0020751953125, 0.010986328125, -0.012939453125, 0.032470703125, -0.0556640625, -0.0087890625, -0.00408935546875, -0.038818359375, -0.01043701171875, 0.0037841796875, 0.00921630859375, 0.02246093...
[ 21139, 9, 10752, 4867, 50339, 75693, 23, 31842, 76896, 136951, 24500, 5705, 3454, 502, 7639, 2109, 7136, 418, 6456, 7612, 56002, 147834, 18151, 2424, 130250, 51727, 10133, 16750, 12937, 19929, 50986, 164, 209828, 35166, 1679, 127068, 17376, 1...
[ 0.27880859375, 0.03546142578125, 0.15625, 0.2308349609375, 0.20556640625, 0.19873046875, 0.04888916015625, 0.2188720703125, 0.16259765625, 0.182373046875, 0.1270751953125, 0.233154296875, 0.12646484375, 0.1334228515625, 0.147216796875, 0.09930419921875, 0.1370849609375, 0.047271728...
embed
44219018_c0
44219018
prolog
0
Title: Prolog expert system: show predicates with certain property Problem title: Prolog expert system: show predicates with certain property Tags: prolog, expert-system Problem: Prolog expert system: show predicates with certain property This program ask the user questions about attributes of animals, and expects answ...
Prolog expert system: show predicates with certain property Prolog expert system: show predicates with certain property prolog expert-system Prolog animal.pro Animal has_tawny_color has_dark_spots has_black_stripes has_long_neck has_long_legs does_not_fly is_black_and_white appears_in_story_Ancient_Mariner flys_well ha...
[ 0.00677490234375, 0.0059814453125, 0.008056640625, 0.01220703125, 0.006500244140625, 0.01019287109375, 0.01312255859375, 0.01531982421875, -0.00909423828125, -0.02197265625, 0.007720947265625, 0.01483154296875, -0.01904296875, -0.0010833740234375, 0.00592041015625, 0.0186767578125, 0...
[ 1250, 4867, 26808, 5426, 12, 7639, 1653, 2063, 1636, 678, 24233, 57266, 502, 16751, 26249, 3454, 82821, 1556, 102, 434, 299, 46133, 1506, 53370, 151675, 7655, 13569, 10617, 86, 2594, 2828, 10869, 35121, 83, 2940, 148477, 135179, 86385, 4596...
[ 0.1905517578125, 0.27001953125, 0.21728515625, 0.18896484375, 0.00811767578125, 0.192626953125, 0.21142578125, 0.2457275390625, 0.137939453125, 0.1502685546875, 0.106201171875, 0.226318359375, 0.149658203125, 0.1546630859375, 0.2159423828125, 0.2119140625, 0.2457275390625, 0.097045...
embed
22209621_c0
22209621
prolog
0
Title: To Mock a Mockingbird Flower Garden in Prolog Problem title: To Mock a Mockingbird Flower Garden in Prolog Tags: prolog Problem: To Mock a Mockingbird Flower Garden in Prolog So I'm trying to solve the 1st problem in the famous book "To Mock A Mockingbird". It's called "Flower garden" and is defined as: In a cer...
To Mock a Mockingbird Flower Garden in Prolog To Mock a Mockingbird Flower Garden in Prolog prolog Mock Mockingbird Flower Garden Prolog subsets_contain_item Item subsets_length Len all_are_members_and_only Items all_are_members only_members Solution To Mock a Mockingbird Flower Garden in Prolog So I'm trying to solve ...
[ -0.00848388671875, -0.000667572021484375, 0.015625, 0.000392913818359375, -0.0172119140625, 0.00750732421875, 0.01025390625, -0.0078125, 0.03466796875, -0.002777099609375, 0.003570556640625, 0.029541015625, 0.007110595703125, -0.0130615234375, 0.0172119140625, 0.017333984375, 0.01599...
[ 717, 2501, 2594, 10, 41324, 91157, 158591, 38666, 23, 1250, 4867, 502, 1614, 3509, 98102, 217, 78426, 23986, 18226, 756, 1046, 39, 27417, 191, 4734, 187895, 31577, 86869, 106, 271, 2967, 170277, 12877, 7763, 62, 17336, 56, 80583, 61924, 2...
[ 0.0660400390625, 0.1978759765625, 0.1949462890625, 0.0281219482421875, 0.1463623046875, 0.2275390625, 0.2109375, 0.228759765625, 0.0435791015625, 0.1651611328125, 0.217529296875, 0.0849609375, 0.1197509765625, 0.134521484375, 0.0816650390625, 0.04449462890625, 0.147705078125, 0.050...
embed
63928475_c0
63928475
prolog
0
Title: Finding maximal minimum value set Problem title: Finding maximal minimum value set Tags: prolog, max, min Problem: Finding maximal minimum value set I'm attempting to write a (naive, or semi-naive) program that given a set of elements and a number of players divides it to this number of players, and for each suc...
Finding maximal minimum value set Finding maximal minimum value set prolog max min Finding Elements Players Value set_prolog_stack Returns Sum min_subset_value Sum1 subset_value RestP Min OtherMin divide_to_players Generate EmptySets generate_empty_sets remove_subset OtherElements N-1 Generates generate_all_divisions A...
[ -0.003265380859375, 0.0006103515625, 0.036865234375, 0.01324462890625, -0.01019287109375, 0.01275634765625, -0.000957489013671875, -0.0022125244140625, 0.030029296875, -0.0177001953125, 0.003662109375, 0.0267333984375, -0.00677490234375, -0.0205078125, 0.01336669921875, 0.0093994140625...
[ 26040, 111340, 15440, 34292, 5423, 502, 4867, 18389, 881, 48325, 60560, 190060, 3454, 590, 2594, 173340, 36335, 22144, 3509, 27494, 1614, 49756, 683, 4211, 64511, 59076, 101637, 188, 139570, 155370, 31678, 294, 139392, 33548, 87388, 19929, 5759...
[ 0.1116943359375, 0.2032470703125, 0.2271728515625, 0.1959228515625, 0.1796875, 0.115234375, 0.1778564453125, 0.1610107421875, 0.212890625, 0.15966796875, 0.1585693359375, 0.15576171875, 0.085693359375, 0.024749755859375, 0.03802490234375, 0.0941162109375, 0.0914306640625, 0.1049804...
embed
20777091_c0
20777091
prolog
0
Title: Why is prolog entering infinite loop? Problem title: Why is prolog entering infinite loop? Tags: infinite-loop, debugging, prolog Problem: Why is prolog entering infinite loop? Im working on a project which is basicly a prolog server with the logic for a game, which is communicating with a c++ openGL program tha...
Why is prolog entering infinite loop? Why is prolog entering infinite loop? infinite-loop debugging prolog Why Stream ClientMsg Received Parsing parse_input MyReply Wrote flush_output end_of_file BOARD PIECE LINE COLUMN Answer NEXTBOARD Accepted Prolog Why is prolog entering infinite loop? Im working on a project which...
[ 0.0140380859375, -0.0245361328125, 0.01141357421875, 0.013671875, 0.007598876953125, 0.0045166015625, 0.001190185546875, 0.00799560546875, 0.0203857421875, -0.0595703125, 0.00921630859375, 0.01116943359375, 0.002777099609375, -0.000827789306640625, 0.0255126953125, 0.0167236328125, 0...
[ 44084, 83, 502, 4867, 22, 33558, 54241, 13, 40956, 28354, 8, 978, 36659, 115061, 91732, 7, 177, 93908, 2392, 366, 184, 73, 2646, 62479, 14838, 1495, 6056, 3564, 4390, 29822, 14216, 49444, 25645, 113712, 130028, 80134, 130373, 9960, 70981, ...
[ 0.1455078125, 0.048431396484375, 0.16357421875, 0.251220703125, 0.1112060546875, 0.11474609375, 0.162841796875, 0.091064453125, 0.2296142578125, 0.1927490234375, 0.09173583984375, 0.1568603515625, 0.046722412109375, 0.15576171875, 0.147216796875, 0.03961181640625, 0.03375244140625, ...
embed
15618980_c0
15618980
prolog
0
Title: Declarative interpretation of a Prolog program that says if a list S is a sublist of another list L Problem title: Declarative interpretation of a Prolog program that says if a list S is a sublist of another list L Tags: declarative, prolog Problem: Declarative interpretation of a Prolog program that says if a l...
Declarative interpretation of a Prolog program that says if a list S is a sublist of another list L Declarative interpretation of a Prolog program that says if a list S is a sublist of another list L declarative prolog Declarative Prolog member2 Declarative interpretation of a Prolog program that says if a list S is a ...
[ 0.0091552734375, -0.00982666015625, 0.0101318359375, 0.00762939453125, -0.01043701171875, 0.00872802734375, -0.00872802734375, 0.0223388671875, 0.01165771484375, -0.0260009765625, 0.011474609375, 0.008056640625, -0.0194091796875, -0.005523681640625, 0.01153564453125, 0.0189208984375, ...
[ 98501, 4935, 206019, 1250, 4867, 1528, 17378, 2174, 5303, 159, 83, 1614, 6562, 111, 15700, 339, 21635, 502, 32786, 304, 185681, 42276, 38969, 2967, 28219, 3642, 4488, 8781, 5154, 149842, 647, 1653, 2063, 7842, 9127, 25632, 29806, 91084, 128...
[ 0.198486328125, 0.098876953125, 0.2010498046875, 0.1475830078125, 0.19775390625, 0.184326171875, 0.0192718505859375, 0.060211181640625, 0.2198486328125, 0.16943359375, 0.059814453125, 0.22314453125, 0.202392578125, 0.031402587890625, 0.08428955078125, 0.1279296875, 0.1917724609375, ...
embed
59989349_c0
59989349
prolog
0
Title: How to access database members when calling a predicate that you defined by yourself Problem title: How to access database members when calling a predicate that you defined by yourself Tags: prolog Problem: How to access database members when calling a predicate that you defined by yourself Right now I'm making ...
How to access database members when calling a predicate that you defined by yourself How to access database members when calling a predicate that you defined by yourself prolog How Dummies Chris Smith Java Jason Rash JavaScript Prolog Pete Fagan Usertype find_book Booktitle Result Enter Log Your Logged Any bookList.len...
[ 0.00167083740234375, -0.001495361328125, 0.02490234375, -0.002105712890625, -0.002716064453125, 0.0235595703125, -0.001373291015625, 0.0164794921875, 0.0021209716796875, -0.07080078125, 0.01556396484375, 0.00933837890625, -0.01495361328125, -0.021240234375, 0.028564453125, 0.0095214843...
[ 11249, 17203, 63399, 43032, 159029, 1653, 2063, 67, 450, 61924, 71, 390, 31949, 398, 502, 4867, 27919, 32747, 31745, 37700, 41925, 85613, 111992, 17925, 1250, 71470, 66, 53400, 50986, 7413, 14137, 27432, 5440, 126684, 60816, 13146, 64906, 128...
[ 0.0697021484375, 0.2193603515625, 0.239990234375, 0.2366943359375, 0.1722412109375, 0.1956787109375, 0.2449951171875, 0.118896484375, 0.0382080078125, 0.205810546875, 0.06695556640625, 0.06890869140625, 0.1173095703125, 0.012451171875, 0.144287109375, 0.2296142578125, 0.123779296875,...
embed
15997196_c0
15997196
prolog
0
Title: Prolog arg built in personal implementation, don't work Problem title: Prolog arg built in personal implementation, don't work Tags: prolog Problem: Prolog arg built in personal implementation, don't work I have some trouble with an exercise that ask me to implement the classic arg predicate in Prolog....
Prolog arg built in personal implementation, don't work Prolog arg built in personal implementation, don't work prolog Prolog Arg Term Value ArgIndex ValueArg ArgsList element_n Tail N-1 Call _G3148 _G3149 Exit Fail _G3483 _G3553 _G3554 Prolog arg built in personal implementation, don't work I have some troub...
[ 0.0067138671875, 0.0111083984375, 0.00836181640625, -0.0118408203125, -0.0164794921875, 0.0087890625, 0.00927734375, 0.01318359375, -0.0012054443359375, -0.0322265625, 0.0220947265625, -0.0036468505859375, -0.01806640625, 0.0130615234375, 0.01153564453125, -0.0087890625, 0.0354003906...
[ 1250, 4867, 79459, 88303, 23, 3357, 208124, 3768, 18, 4488, 502, 1172, 177, 2994, 190060, 4153, 39659, 7614, 9405, 154663, 12830, 1218, 379, 5759, 26265, 5016, 9285, 141605, 5443, 217, 190355, 135407, 104043, 363, 63134, 81979, 29479, 54704, ...
[ 0.1881103515625, 0.2371826171875, 0.2408447265625, 0.1575927734375, 0.10400390625, 0.1563720703125, 0.1715087890625, 0.0294036865234375, 0.07891845703125, 0.1590576171875, 0.128662109375, 0.183349609375, 0.1563720703125, 0.1444091796875, 0.1812744140625, 0.0738525390625, 0.1774902343...
embed
65359832_c0
65359832
prolog
0
Title: How do I construct a parse tree from a series of S-expression tokens in Prolog? Problem title: How do I construct a parse tree from a series of S-expression tokens in Prolog? Tags: parsing, dcg, grammar, prolog, parse-tree Problem: How do I construct a parse tree from a series of S-expression tokens in Prolog? I...
How do I construct a parse tree from a series of S-expression tokens in Prolog? How do I construct a parse tree from a series of S-expression tokens in Prolog? parsing dcg grammar prolog parse-tree a How S-expression Prolog base_tokenize Buffer Char Chars Tokens Tail_Tokens atom_concat New_Buffer filter_empty_blank Hea...
[ 0.031494140625, 0.0242919921875, -0.00885009765625, 0.01708984375, -0.005889892578125, 0.0174560546875, -0.0233154296875, -0.006683349609375, -0.00799560546875, -0.01904296875, 0.006561279296875, 0.01007080078125, -0.0113525390625, -0.001953125, 0.0186767578125, 0.0216064453125, 0.01...
[ 11249, 64549, 366, 184, 53201, 1295, 36549, 159, 204629, 47, 84694, 1250, 4867, 6953, 177, 122092, 147, 502, 62600, 3647, 6448, 33, 20650, 667, 18234, 21656, 717, 1218, 379, 7763, 34627, 4460, 46312, 33548, 165839, 44816, 126684, 60075, 925...
[ 0.0196380615234375, 0.1634521484375, 0.1591796875, 0.1197509765625, 0.2410888671875, 0.06365966796875, 0.04498291015625, 0.140380859375, 0.186767578125, 0.0826416015625, 0.1669921875, 0.144287109375, 0.222412109375, 0.0198516845703125, 0.060791015625, 0.0810546875, 0.0584716796875, ...
embed
10758749_c0
10758749
prolog
0
Title: Hangman Game in SWI Prolog (Enchance) Problem title: Hangman Game in SWI Prolog (Enchance) Tags: prolog, algorithm Problem: Hangman Game in SWI Prolog (Enchance) Possible Duplicate: Hangman Game in SWI Prolog I'm trying to enchance a simple hangman game in SWI Prolog with the following: 1) By keeping up with the...
Hangman Game in SWI Prolog (Enchance) Hangman Game in SWI Prolog (Enchance) prolog algorithm the Hangman Game SWI Prolog Enchance Guess AnsCodes AnsList BlankList CountFailed Sorry You Nope CountFailed1 Ans Answer AnswerList Welcome Randomly Possible a_picture_is_worth_a_thousand_words one_for_the_money dead_or_alive c...
[ -0.0025177001953125, -0.004547119140625, 0.01287841796875, -0.004150390625, 0.01336669921875, 0.0035858154296875, -0.002777099609375, 0.019775390625, 0.00469970703125, -0.0247802734375, -0.0126953125, -0.0240478515625, -0.00007772445678710938, 0.0184326171875, 0.0166015625, 0.015380859...
[ 43454, 669, 13547, 23, 159, 38969, 1250, 4867, 7768, 206, 7154, 502, 234873, 357, 96274, 7, 893, 114211, 154663, 132862, 108210, 17647, 14, 90502, 2583, 1081, 6259, 418, 130373, 91334, 39643, 115861, 18695, 93017, 47416, 1632, 2472, 43260, ...
[ 0.2156982421875, 0.186767578125, 0.1331787109375, 0.042816162109375, 0.06475830078125, 0.197265625, 0.131591796875, 0.180419921875, 0.07464599609375, 0.147705078125, 0.149658203125, 0.12890625, 0.1573486328125, 0.046966552734375, 0.147216796875, 0.0994873046875, 0.0826416015625, 0....
embed
39191184_c0
39191184
prolog
0
Title: Steadfastness: Definition and its relation to logical purity and termination Problem title: Steadfastness: Definition and its relation to logical purity and termination Tags: logical-purity, non-termination, prolog, steadfastness Problem: Steadfastness: Definition and its relation to logical purity and terminati...
Steadfastness: Definition and its relation to logical purity and termination Steadfastness: Definition and its relation to logical purity and termination logical-purity non-termination prolog steadfastness Steadfastness Definition integer_integer_maximum Steadfastness: Definition and its relation to logical purity and ...
[ 0.00579833984375, 0.0206298828125, 0.0107421875, -0.0033721923828125, -0.001220703125, 0.00099945068359375, -0.010498046875, 0.00007295608520507812, 0.00872802734375, -0.0185546875, 0.0086669921875, 0.0167236328125, -0.025634765625, 0.0086669921875, 0.0301513671875, 0.020263671875, 0...
[ 8694, 712, 39473, 7432, 155455, 6863, 41911, 47, 62775, 7398, 2481, 136, 29527, 289, 4717, 351, 720, 91407, 502, 4867, 2288, 892, 1505, 6191, 192, 53950, 316, 2060, 11343, 39958, 23, 1250, 103391, 29459, 18425, 34739, 53418, 4527, 34648, ...
[ 0.2037353515625, 0.2099609375, 0.26171875, 0.1982421875, 0.2103271484375, 0.0283050537109375, 0.152587890625, 0.000946044921875, 0.19287109375, 0.1866455078125, 0.096923828125, 0.050567626953125, 0.207763671875, 0.0859375, 0.177490234375, 0.110107421875, 0.145751953125, 0.084472656...
embed
10713690_c0
10713690
prolog
0
Title: How to - Graph Coloring in Prolog Problem title: How to - Graph Coloring in Prolog Tags: graph-theory, prolog, graph-coloring, algorithm Problem: How to - Graph Coloring in Prolog I'm trying to make the simple graph coloring algorithm in Prolog, but I'm having a bit of a hard time understanding the language. I k...
How to - Graph Coloring in Prolog How to - Graph Coloring in Prolog graph-theory prolog graph-coloring algorithm How Graph Coloring Prolog graph_coloring color_list vertex_list edge_list Our Subject init_dynamic_facts vertex_color is_connect Vertex paint_vertex Color find_vertex_color Current_vertex Curr_color Others O...
[ 0.00457763671875, 0.0179443359375, 0.001861572265625, 0.018310546875, -0.006500244140625, -0.01055908203125, -0.0244140625, 0.02392578125, 0.00164794921875, -0.04150390625, -0.00909423828125, -0.0026397705078125, -0.01904296875, -0.00469970703125, 0, 0.0091552734375, -0.010986328125,...
[ 11249, 47, 20, 6524, 11727, 51193, 214, 23, 1250, 4867, 41382, 502, 46133, 234873, 10576, 6562, 493, 24371, 121303, 22929, 94341, 217, 242554, 114700, 83, 135457, 1446, 112518, 814, 7413, 114063, 64511, 31577, 8781, 7941, 100094, 46876, 3714,...
[ 0.06036376953125, 0.0804443359375, 0.0791015625, 0.165283203125, 0.1727294921875, 0.2210693359375, 0.1312255859375, 0.0927734375, 0.161376953125, 0.223388671875, 0.207275390625, 0.0615234375, 0.165771484375, 0.1744384765625, 0.1949462890625, 0.06951904296875, 0.089599609375, 0.1412...
embed
57566271_c0
57566271
prolog
0
Title: Understanding reification - “What relationships hold between x and y?" Problem title: Understanding reification - “What relationships hold between x and y?" Tags: prolog Problem: Understanding reification - “What relationships hold between x and y?" I am reading the book "Prolog and Natural-Language An...
Understanding reification - “What relationships hold between x and y?" Understanding reification - “What relationships hold between x and y?" prolog Understanding What Ole Black Mustangs Lizzy Automobiles Ford Companies Dates Model Legal Persons Humans Physical Objects Universal have_mass self_propelled legal...
[ -0.0107421875, 0.017578125, 0.0103759765625, 0.034423828125, -0.000255584716796875, 0.01190185546875, -0.0123291015625, 0.009033203125, 0.00098419189453125, -0.044921875, -0.003143310546875, -0.002655029296875, -0.028076171875, 0.00112152099609375, 0.01129150390625, -0.00567626953125, ...
[ 9626, 144057, 456, 41274, 52231, 151618, 16401, 17721, 1022, 136, 113, 41502, 502, 4867, 4865, 31031, 10074, 41109, 449, 7, 1261, 151581, 80726, 90, 17652, 15612, 7833, 25512, 13293, 51825, 15270, 28076, 165712, 134549, 53900, 765, 1510, 1597...
[ 0.1710205078125, 0.1759033203125, 0.1744384765625, 0.28955078125, 0.1187744140625, 0.2646484375, 0.1695556640625, 0.1943359375, 0.1126708984375, 0.135498046875, 0.1578369140625, 0.0171051025390625, 0.135498046875, 0.22021484375, 0.093505859375, 0.161376953125, 0.144775390625, 0.088...
embed
72457516_c0
72457516
prolog
0
Title: Is it possible to insert a Clojure statement in the middle of a series of core.logic calls, "à la Prolog"? Problem title: Is it possible to insert a Clojure statement in the middle of a series of core.logic calls, "à la Prolog"? Tags: clojure, functional-logic-progr, clojure-core.logic, logic...
Is it possible to insert a Clojure statement in the middle of a series of core.logic calls, "à la Prolog"? Is it possible to insert a Clojure statement in the middle of a series of core.logic calls, "à la Prolog"? clojure functional-logic-progr clojure-core.logic logic-programming prolog Clojure cor...
[ 0.000965118408203125, 0.0026702880859375, 0.00665283203125, 0.0272216796875, -0.019287109375, 0.00141143798828125, -0.0238037109375, -0.0341796875, 0.00506591796875, -0.04345703125, -0.00982666015625, 0.0284423828125, -0.024169921875, -0.0250244140625, 0.0234375, -0.00787353515625, -...
[ 7722, 183540, 51053, 461, 107, 63805, 86991, 36549, 56458, 137043, 11782, 1298, 21, 1250, 4867, 20450, 123309, 75620, 42, 30854, 62775, 28966, 502, 10, 111, 17664, 9146, 109458, 9433, 33022, 12477, 33657, 11583, 678, 33342, 831, 4488, 35662, ...
[ 0.146240234375, 0.2222900390625, 0.182861328125, 0.208984375, 0.1734619140625, 0.221923828125, 0.2021484375, 0.093505859375, 0.153564453125, 0.1728515625, 0.1649169921875, 0.0877685546875, 0.093505859375, 0.158447265625, 0.2288818359375, 0.1312255859375, 0.09307861328125, 0.0378112...
embed
42468128_c0
42468128
prolog
0
Title: On ways to work around an unexpected "Undefined procedure" error Problem title: On ways to work around an unexpected "Undefined procedure" error Tags: prolog Problem: On ways to work around an unexpected "Undefined procedure" error NB: Just to be clear, my motivation for the question below is...
On ways to work around an unexpected "Undefined procedure" error On ways to work around an unexpected "Undefined procedure" error prolog Undefined ERROR Exception ONE-LETTER RESPONSE On ways to work around an unexpected "Undefined procedure" error NB: Just to be clear, my motivation for the question...
[ 0.00897216796875, 0.0263671875, 0.01171875, -0.01324462890625, -0.017822265625, -0.0137939453125, 0.0247802734375, -0.0201416015625, 0.00921630859375, -0.000797271728515625, 0.01025390625, 0.008544921875, -0.0087890625, -0.00634765625, 0.01068115234375, 0.0137939453125, 0.02392578125...
[ 2161, 48322, 4488, 10932, 241957, 1062, 1067, 5983, 50491, 18499, 502, 4867, 79912, 151206, 24638, 5443, 63928, 31261, 866, 227403, 61661, 79347, 34735, 98365, 1250, 159, 38969, 9, 10752, 11015, 26008, 21771, 1632, 3917, 30700, 7722, 81979, 7...
[ 0.04119873046875, 0.067138671875, 0.0928955078125, 0.1566162109375, 0.1534423828125, 0.07098388671875, 0.14697265625, 0.229736328125, 0.2138671875, 0.19287109375, 0.123046875, 0.216064453125, 0.127685546875, 0.1075439453125, 0.0550537109375, 0.054443359375, 0.13720703125, 0.1425781...
embed
64403797_c0
64403797
prolog
0
Title: Printing out a dynamically sized truth table using lists in prolog Problem title: Printing out a dynamically sized truth table using lists in prolog Tags: prolog Problem: Printing out a dynamically sized truth table using lists in prolog I have created a clause table for creating a truth table given 2 premises a...
Printing out a dynamically sized truth table using lists in prolog Printing out a dynamically sized truth table using lists in prolog prolog lists Printing Conclusion Get Print Evaluate Evalutes my_not _26 _27 Check Predicates Premises HEAD TAIL Printing out a dynamically sized truth table using lists in prolog I have ...
[ 0.0166015625, 0.0086669921875, 0.01397705078125, 0.00067901611328125, -0.015625, 0.007232666015625, -0.0091552734375, -0.01318359375, -0.0002574920654296875, 0.006561279296875, -0.0166015625, 0.00061798095703125, 0.00162506103515625, -0.01324462890625, 0.003631591796875, 0.015258789062...
[ 39754, 1810, 84079, 13267, 85027, 23180, 17368, 5303, 502, 4867, 135523, 151228, 27494, 759, 10869, 4046, 3768, 38679, 7145, 2063, 1636, 38394, 188328, 12998, 16444, 75935, 70731, 13, 105233, 116, 64881, 138, 1653, 93192, 41, 6044, 28282, 155...
[ 0.217041015625, 0.14453125, 0.1802978515625, 0.1326904296875, 0.1959228515625, 0.2413330078125, 0.0267486572265625, 0.205810546875, 0.149658203125, 0.2142333984375, 0.104248046875, 0.100830078125, 0.1083984375, 0.0633544921875, 0.1329345703125, 0.1171875, 0.09765625, 0.134765625, ...
embed
42734353_c0
42734353
prolog
0
Title: Concept questions about complex terms in Prolog Problem title: Concept questions about complex terms in Prolog Tags: prolog Problem: Concept questions about complex terms in Prolog I've just started learning Prolog at college and I have a concept question for which I don't find any concrete answer: I want to int...
Concept questions about complex terms in Prolog Concept questions about complex terms in Prolog prolog Concept Prolog Concept questions about complex terms in Prolog I've just started learning Prolog at college and I have a concept question for which I don't find any concrete answer: I want to interiorize the "philosop...
[ 0.03271484375, 0.02099609375, -0.00153350830078125, 0.0166015625, 0.0235595703125, 0.006744384765625, -0.005126953125, -0.00286865234375, 0.0015716552734375, -0.0303955078125, -0.001434326171875, -0.0128173828125, -0.004364013671875, 0.021484375, -0.00994873046875, 0.032470703125, 0....
[ 128182, 17582, 27140, 69407, 1250, 4867, 502, 52080, 40466, 23755, 9655, 7413, 122776, 35166, 14566, 119598, 46876, 28219, 13579, 83, 217773, 7477, 18770, 442, 187, 2481, 45367, 191428, 44978, 17368, 30957, 2499, 7722, 79315, 80836, 10750, 2500...
[ 0.235595703125, 0.1856689453125, 0.272216796875, 0.275634765625, 0.156494140625, 0.2252197265625, 0.0921630859375, 0.0190582275390625, 0.07562255859375, 0.1761474609375, 0.1033935546875, 0.0001220703125, 0.051361083984375, 0.040252685546875, 0.0154266357421875, 0.08258056640625, 0.05...
embed
16526720_c0
16526720
prolog
0
Title: BFS visit in Prolog, why this program don't work? Problem title: BFS visit in Prolog, why this program don't work? Tags: prolog Problem: BFS visit in Prolog, why this program don't work? I have take this program that implement BFS visit algorithm from Ivan Bratko book: "Programming for Artificial Intel...
BFS visit in Prolog, why this program don't work? BFS visit in Prolog, why this program don't work? prolog Start a the BFS Prolog GOAL Solution Paths Path1 Path2 SET CANDIDATES PATH RAPPRESENTATIONS BASE CASE HEAD FIRST Node GENERAL Otherwise Remove NewPaths Paths1 Execute NewNode Call _G367 Fail Redo _G443 E...
[ 0.022705078125, 0.0133056640625, 0.0274658203125, 0.0341796875, -0.0091552734375, 0.01190185546875, -0.037109375, -0.01556396484375, -0.003753662109375, -0.032958984375, 0.0181884765625, -0.009033203125, -0.01080322265625, 0.00885009765625, 0.0050048828125, -0.0169677734375, 0.013244...
[ 335, 36381, 19922, 23, 1250, 4867, 15400, 903, 1528, 2301, 3768, 18, 4488, 502, 13794, 25052, 7842, 187895, 108421, 418, 304, 128565, 45029, 27112, 436, 139909, 108057, 188328, 133907, 438, 210557, 181139, 2356, 683, 10519, 211603, 5021, 1441...
[ 0.105712890625, 0.2392578125, 0.252197265625, 0.0286712646484375, 0.1689453125, 0.2279052734375, 0.0994873046875, 0.04949951171875, 0.161376953125, 0.04852294921875, 0.0188140869140625, 0.111083984375, 0.1597900390625, 0.109619140625, 0.01116943359375, 0.091552734375, 0.158203125, ...
embed
32646685_c0
32646685
prolog
0
Title: Prolog JPL command with Java Problem title: Prolog JPL command with Java Tags: java, jpl, prolog Problem: Prolog JPL command with Java I have a expert system written in prolog that gives me problems when I run it from a java interface. The problems are related to the comunication of the output. I tried Streams b...
Prolog JPL command with Java Prolog JPL command with Java java jpl prolog Prolog JPL Java CurPlace Place text.txt Stream You jpl_get src.mypackage.interface jpl_call Start Message CallQuery Query q2.hasSolution Exception Prolog JPL command with Java I have a expert system written in prolog that gives me problems when I...
[ 0.020263671875, 0.0159912109375, -0.00110626220703125, 0.0177001953125, 0.01422119140625, 0.010986328125, 0.010009765625, -0.0027008056640625, 0.007293701171875, -0.0361328125, 0.01165771484375, 0.00848388671875, -0.02392578125, -0.00970458984375, 0.01300048828125, 0.00689697265625, ...
[ 1250, 4867, 821, 21130, 75101, 678, 41925, 79, 330, 1647, 2424, 502, 17065, 143, 41076, 7986, 124326, 115061, 3794, 19437, 1176, 29102, 10433, 40404, 85763, 13794, 48205, 4588, 26265, 41732, 58836, 5442, 10557, 102588, 5443, 63928, 26808, 542...
[ 0.1683349609375, 0.233154296875, 0.123046875, 0.2437744140625, 0.1834716796875, 0.1231689453125, 0.2144775390625, 0.10455322265625, 0.167236328125, 0.072021484375, 0.19091796875, 0.1383056640625, 0.0802001953125, 0.146484375, 0.1739501953125, 0.1376953125, 0.1724853515625, 0.168457...
embed
15883938_c0
15883938
prolog
0
Title: Negation as failure in Prolog is a procedural behavior? Problem title: Negation as failure in Prolog is a procedural behavior? Tags: answer-set-programming, negation-as-failure, prolog Problem: Negation as failure in Prolog is a procedural behavior? I have a little question about the negation as failure in Prolo...
Negation as failure in Prolog is a procedural behavior? Negation as failure in Prolog is a procedural behavior? answer-set-programming negation-as-failure prolog Negation Prolog Fatti Negation as failure in Prolog is a procedural behavior? I have a little question about the negation as failure in Prolog language: This ...
[ 0.017822265625, 0.0164794921875, 0.006439208984375, 0.0184326171875, -0.00007534027099609375, 0.0101318359375, -0.01165771484375, -0.004150390625, 0.01171875, -0.01483154296875, -0.0012664794921875, 0.01275634765625, -0.0177001953125, -0.00860595703125, 0.0247802734375, 0.01416015625, ...
[ 799, 125682, 237, 137578, 23, 1250, 4867, 59158, 141, 123166, 83, 10, 35166, 3509, 28966, 108, 162, 120540, 3408, 502, 24967, 118, 9655, 46876, 138155, 27781, 4488, 1528, 831, 5154, 16305, 53, 5161, 11907, 85825, 151654, 86725, 74368, 26168...
[ 0.20556640625, 0.1949462890625, 0.0972900390625, 0.25390625, 0.046630859375, 0.1712646484375, 0.224853515625, 0.2078857421875, 0.10369873046875, 0.1748046875, 0.032318115234375, 0.006591796875, 0.11376953125, 0.050140380859375, 0.1160888671875, 0.177734375, 0.0859375, 0.14660644531...
embed
42370513_c0
42370513
prolog
0
Title: Copy term with variables without variables being bound Problem title: Copy term with variables without variables being bound Tags: swi-prolog, prolog, free-variable, bound-variable Problem: Copy term with variables without variables being bound With SWI-Prolog. How can a term with variables be copied without the...
Copy term with variables without variables being bound Copy term with variables without variables being bound swi-prolog prolog free-variable bound-variable Copy copy_term duplicate_term Duplicate Need _9364 _9384 _9240 _9260 _9116 _9136 Global Local Input Copy term with variables without variables being bound With SWI...
[ -0.0040283203125, 0.0284423828125, -0.0086669921875, 0.0174560546875, -0.0181884765625, 0.00133514404296875, -0.0010528564453125, 0.015869140625, 0.0020294189453125, -0.025146484375, -0.00244140625, 0.009521484375, -0.00537109375, 0.038330078125, 0.01385498046875, 0.017578125, 0.0168...
[ 146930, 13579, 678, 77336, 15490, 8035, 99091, 2452, 3454, 4867, 502, 4092, 21690, 43658, 32166, 171763, 67, 786, 52721, 52889, 11591, 13307, 1126, 117180, 2839, 2485, 12183, 8659, 13453, 24172, 360, 17106, 159, 38969, 9, 10752, 11249, 831, ...
[ 0.243408203125, 0.252197265625, 0.094970703125, 0.25390625, 0.1224365234375, 0.05609130859375, 0.2003173828125, 0.1573486328125, 0.08056640625, 0.184326171875, 0.0863037109375, 0.0665283203125, 0.1103515625, 0.20849609375, 0.2392578125, 0.1781005859375, 0.078857421875, 0.0625610351...
embed
17784581_c1
17784581
prolog
1
0.00 sec, 1,720 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 are welcome to redistribute it under certain conditions. Please visit http://www.swi-prolog.or...
0.00 sec, 1,720 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 are welcome to redistribute it under certain conditions. Please visit http://www.swi-prolog.or...
[ 0.0247802734375, 0.01348876953125, 0.00408935546875, 0.0137939453125, -0.025634765625, 0.00811767578125, 0.00579833984375, -0.0257568359375, 0.008544921875, -0.0546875, 0.00054168701171875, 0.016357421875, -0.0252685546875, -0.0096435546875, 0.0211181640625, -0.0020599365234375, 0.01...
[ 37509, 19216, 70247, 1549, 390, 91334, 159, 38969, 9, 10752, 4867, 50657, 118, 927, 39116, 297, 7911, 4785, 40647, 190, 10179, 43317, 4189, 59532, 10680, 12535, 21391, 120403, 32497, 678, 93478, 1723, 9520, 60873, 30174, 27143, 4092, 10975, ...
[ 0.099853515625, 0.07806396484375, 0.006256103515625, 0.051361083984375, 0.003570556640625, 0.09912109375, 0.07330322265625, 0.23681640625, 0.05181884765625, 0.1719970703125, 0.24951171875, 0.107177734375, 0.0841064453125, 0.0040283203125, 0.16650390625, 0.031951904296875, 0.162719726...
embed
16636100_c0
16636100
prolog
0
Title: Some doubts about how work this DCG grammar for subset of natural language in Prolog Problem title: Some doubts about how work this DCG grammar for subset of natural language in Prolog Tags: prolog, dcg Problem: Some doubts about how work this DCG grammar for subset of natural language in Prolog I am studying DC...
Some doubts about how work this DCG grammar for subset of natural language in Prolog Some doubts about how work this DCG grammar for subset of natural language in Prolog prolog dcg Some DCG Prolog sentence2 noun_phrase2 Actor verb_phrase2 Name verb_phrase intrans_verb Somebody trans_verb Something Meaning Some doubts a...
[ 0.0159912109375, -0.00150299072265625, 0.005401611328125, 0.034423828125, 0.01031494140625, 0.0225830078125, -0.004913330078125, 0.004974365234375, 0.0166015625, -0.0211181640625, 0.0208740234375, 0.00164794921875, -0.004425048828125, -0.000039577484130859375, 0.009033203125, 0.0164794...
[ 92814, 7, 3642, 4488, 903, 391, 56367, 122092, 147, 1614, 3509, 6083, 46876, 1250, 4867, 502, 104, 177, 149357, 304, 309, 179665, 185617, 42792, 15757, 23, 30145, 81465, 31384, 37873, 3900, 200905, 1215, 11, 9433, 28219, 26785, 132283, 9844...
[ 0.1453857421875, 0.118408203125, 0.01385498046875, 0.13916015625, 0.06292724609375, 0.0882568359375, 0.2030029296875, 0.1903076171875, 0.1373291015625, 0.0682373046875, 0.055694580078125, 0.125732421875, 0.13671875, 0.13818359375, 0.240966796875, 0.06524658203125, 0.005096435546875, ...
embed
66973046_c0
66973046
prolog
0
Title: http_read_data(Request, Data, []) post data to prolog Problem title: http_read_data(Request, Data, []) post data to prolog Tags: prolog, swi-prolog Problem: http_read_data(Request, Data, []) post data to prolog I am trying to make a prolog api where I call a given prolog link from another program. After several ...
http_read_data(Request, Data, []) post data to prolog http_read_data(Request, Data, []) post data to prolog prolog swi-prolog http_read_data Request Data use_module thread_httpd http_dispatch http_client http_handler _Request Content-type Hello World http_server thread_get_message curl_init localhost:3000 curl_setopt C...
[ 0.017822265625, 0.01434326171875, 0.00604248046875, -0.00064849853515625, 0.002532958984375, 0.00592041015625, 0.025634765625, -0.005706787109375, -0.01336669921875, -0.060546875, 0.02783203125, -0.0146484375, -0.041259765625, -0.004425048828125, 0.0159912109375, 0.004425048828125, 0...
[ 1621, 39116, 10135, 4332, 75616, 11809, 1305, 2053, 47, 502, 4867, 91, 2452, 3454, 83279, 86997, 5475, 222978, 74258, 70870, 50986, 35378, 6661, 39642, 74157, 9709, 141, 73, 4000, 40294, 36605, 184, 13784, 121063, 17014, 22693, 41116, 30174, ...
[ 0.144287109375, 0.2086181640625, 0.1396484375, 0.049407958984375, 0.1534423828125, 0.1326904296875, 0.09912109375, 0.146728515625, 0.0849609375, 0.1964111328125, 0.231201171875, 0.0182342529296875, 0.154541015625, 0.1607666015625, 0.0345458984375, 0.1312255859375, 0.1033935546875, ...
embed
11759336_c0
11759336
prolog
0
Title: How do I show the results of pattern-matching goals with several free variables in SWI-Prolog from a shell invocation? Problem title: How do I show the results of pattern-matching goals with several free variables in SWI-Prolog from a shell invocation? Tags: non-interactive, prolog, shell Problem: How do I show ...
How do I show the results of pattern-matching goals with several free variables in SWI-Prolog from a shell invocation? How do I show the results of pattern-matching goals with several free variables in SWI-Prolog from a shell invocation? non-interactive prolog shell a How SWI-Prolog kb.pl AVariable Another Control-C Ho...
[ 0.007049560546875, 0.02685546875, -0.01519775390625, 0.01226806640625, -0.02587890625, -0.003997802734375, -0.0047607421875, 0.002655029296875, 0.005401611328125, -0.000713348388671875, 0.0201416015625, 0.014404296875, -0.005157470703125, 0.006256103515625, 0.01171875, 0.00637817382812...
[ 11249, 7639, 50339, 103510, 98753, 214, 109458, 678, 40368, 4092, 77336, 159, 38969, 10752, 4867, 1295, 128019, 23, 202010, 351, 71232, 502, 10, 9, 51882, 2424, 21611, 1686, 2886, 116267, 27131, 441, 3647, 112, 175201, 365, 91, 2452, 3454, ...
[ 0.0294189453125, 0.1636962890625, 0.179443359375, 0.22216796875, 0.22412109375, 0.11083984375, 0.1944580078125, 0.040679931640625, 0.13330078125, 0.1529541015625, 0.2039794921875, 0.04888916015625, 0.216796875, 0.1314697265625, 0.1844482421875, 0.02557373046875, 0.1864013671875, 0....
embed
20357046_c0
20357046
prolog
0
Title: In Prolog, how do you use member predicate to determine the best combination? Problem title: In Prolog, how do you use member predicate to determine the best combination? Tags: prolog Problem: In Prolog, how do you use member predicate to determine the best combination? I am very new to Prolog and find it except...
In Prolog, how do you use member predicate to determine the best combination? In Prolog, how do you use member predicate to determine the best combination? prolog Prolog Calories Price Burger Fries Shake Salad most_expensive In Prolog, how do you use member predicate to determine the best combination? I am very new to ...
[ 0.003387451171875, 0.002227783203125, -0.006561279296875, 0.0035858154296875, -0.01416015625, 0.021728515625, 0.007568359375, 0.0096435546875, 0.009765625, 0.00128936767578125, 0.01904296875, -0.0037078857421875, 0.0299072265625, -0.0045166015625, 0.00762939453125, -0.00799560546875, ...
[ 360, 1250, 4867, 3642, 4527, 32786, 1653, 2063, 67, 83324, 70, 2965, 162515, 502, 9113, 31, 10484, 48025, 99193, 9173, 90, 68161, 13, 13294, 71, 2684, 83613, 33, 29888, 4552, 3525, 7413, 210650, 55681, 41925, 37223, 66211, 90791, 12921, 4...
[ 0.0430908203125, 0.169921875, 0.269775390625, 0.048553466796875, 0.061279296875, 0.26953125, 0.1822509765625, 0.196533203125, 0.09124755859375, 0.14404296875, 0.0262908935546875, 0.1669921875, 0.253662109375, 0.10284423828125, 0.1046142578125, 0.09521484375, 0.013397216796875, 0.13...
embed
43807987_c0
43807987
prolog
0
Title: Prolog List Manipulation Assistance Problem title: Prolog List Manipulation Assistance Tags: prolog, list Problem: Prolog List Manipulation Assistance I have a prolog homework problem that I've been working on that I'm rather stuck on. The basic problem is that I have three lists, each of which has members conta...
Prolog List Manipulation Assistance Prolog List Manipulation Assistance prolog list Prolog List Manipulation Assistance Num Usedlist Garbage data1 More Season Yesterdays Month Randomly Current Tomorrows random_member Rand nth0 Add Test5 Test6 Usedlist3 Num3 Prolog List Manipulation Assistance I have a prolog homework p...
[ 0.001617431640625, -0.004058837890625, 0.008544921875, -0.00762939453125, -0.016357421875, 0.009765625, -0.0111083984375, 0.0128173828125, 0.0184326171875, -0.005584716796875, 0.006591796875, 0.00860595703125, -0.01904296875, -0.0038299560546875, 0.025146484375, 0.027587890625, 0.008...
[ 1250, 4867, 32036, 221169, 54360, 7154, 502, 5303, 52782, 345, 5281, 6562, 6389, 402, 2053, 5455, 85135, 1515, 5636, 39643, 306, 114063, 237215, 96759, 27417, 927, 2389, 29117, 8647, 758, 910, 363, 5368, 18244, 2967, 20697, 43257, 179933, 6...
[ 0.1719970703125, 0.236328125, 0.197021484375, 0.212158203125, 0.1673583984375, 0.0216827392578125, 0.147216796875, 0.2138671875, 0.146728515625, 0.106689453125, 0.05877685546875, 0.19580078125, 0.04278564453125, 0.126220703125, 0.10577392578125, 0.06768798828125, 0.1280517578125, 0...
embed
46635945_c0
46635945
prolog
0
Title: Prolog - Need help optimizing my code Problem title: Prolog - Need help optimizing my code Tags: database, search, prolog, optimization, find Problem: Prolog - Need help optimizing my code I just started learning Prolog and I am doing a school task. I have written the program and it has "passed" all the test cas...
Prolog - Need help optimizing my code Prolog - Need help optimizing my code database search prolog optimization find the Prolog Need Test Takes Finds Friends Returns AKA Possible Conspirators PossibleConspirators Checks Bagof Friend Check Lst Res Move Prolog - Need help optimizing my code I just started learning Prolog...
[ 0.00836181640625, 0.00677490234375, -0.0028076171875, 0.020751953125, -0.017333984375, -0.0130615234375, -0.0263671875, -0.0186767578125, -0.00022602081298828125, -0.05419921875, 0.00084686279296875, 0.0030059814453125, -0.0230712890625, -0.0086669921875, 0.01318359375, 0.0115966796875...
[ 1250, 4867, 52889, 4358, 15572, 84382, 759, 18151, 63399, 33938, 502, 87235, 7413, 8647, 2561, 26040, 102517, 173340, 38677, 115861, 2661, 1657, 54547, 22230, 38679, 19413, 4390, 128938, 9624, 135828, 26859, 52080, 20594, 10696, 66211, 59121, 1...
[ 0.1934814453125, 0.302490234375, 0.1270751953125, 0.1705322265625, 0.21044921875, 0.0958251953125, 0.07354736328125, 0.1990966796875, 0.1612548828125, 0.1346435546875, 0.1622314453125, 0.167236328125, 0.087890625, 0.1441650390625, 0.0906982421875, 0.10003662109375, 0.1845703125, 0....
embed
29950827_c0
29950827
prolog
0
Title: How to create bidirectional predicates in Prolog? Problem title: How to create bidirectional predicates in Prolog? Tags: prolog Problem: How to create bidirectional predicates in Prolog? In Prolog, there are predicates that are bidirectional (or even "multidirectional" ), in the sense that one can split the set ...
How to create bidirectional predicates in Prolog? How to create bidirectional predicates in Prolog? prolog How Prolog number_string parse_stuff Coeff Pow string_concat CoeffStr MonomialStr PowStr write_stuff ERROR Arguments How to create bidirectional predicates in Prolog? In Prolog, there are predicates that are bidir...
[ -0.00439453125, 0.004486083984375, 0.00604248046875, 0.01275634765625, -0.007354736328125, 0.05078125, 0.02197265625, -0.00119781494140625, 0.014404296875, -0.028564453125, 0.007293701171875, 0.021240234375, -0.0191650390625, -0.027099609375, 0.0137939453125, 0.0152587890625, 0.00387...
[ 11249, 28282, 333, 80581, 110117, 1653, 2063, 1636, 1250, 4867, 47, 502, 14012, 91693, 366, 184, 271, 21493, 1311, 68053, 53982, 79315, 2271, 4460, 71713, 77879, 266, 33022, 151206, 112140, 23, 360, 144227, 831, 65450, 77336, 107730, 140992, ...
[ 0.080078125, 0.1676025390625, 0.19140625, 0.2080078125, 0.141845703125, 0.2088623046875, 0.2337646484375, 0.14990234375, 0.1763916015625, 0.2529296875, 0.01800537109375, 0.0858154296875, 0.1429443359375, 0.179931640625, 0.1107177734375, 0.0289764404296875, 0.041748046875, 0.1000976...
embed
55360756_c0
55360756
prolog
0
Title: How to run a predicate that contains lists as argument using GNU Prolog for Java? Problem title: How to run a predicate that contains lists as argument using GNU Prolog for Java? Tags: ffi, java, prolog Problem: How to run a predicate that contains lists as argument using GNU Prolog for Java? I tried to use the ...
How to run a predicate that contains lists as argument using GNU Prolog for Java? How to run a predicate that contains lists as argument using GNU Prolog for Java? ffi java prolog GNU How Prolog Java gnu.prolog.vm.Environment Environment environment.ensureLoaded AtomTerm.get PrologTest.class.getResource main.pro gnu.pr...
[ 0.0164794921875, 0.01507568359375, 0.0020904541015625, 0.006256103515625, -0.017333984375, 0.022216796875, 0.01251220703125, 0.006622314453125, -0.004302978515625, -0.0361328125, 0.0228271484375, 0.018798828125, -0.01904296875, -0.0093994140625, 0.00124359130859375, -0.004058837890625,...
[ 11249, 11675, 1653, 2063, 67, 70541, 7, 5303, 237, 10750, 165132, 1250, 4867, 100, 41925, 17368, 24500, 79, 330, 502, 104155, 3454, 334, 39, 1900, 65998, 69728, 35484, 111337, 67413, 60427, 5201, 56359, 16428, 2994, 44401, 42539, 6562, 1992...
[ 0.063232421875, 0.1527099609375, 0.2073974609375, 0.2171630859375, 0.123779296875, 0.1162109375, 0.056976318359375, 0.22265625, 0.0557861328125, 0.23583984375, 0.1878662109375, 0.170166015625, 0.233642578125, 0.061309814453125, 0.2239990234375, 0.0435791015625, 0.1011962890625, 0.1...
embed
19450671_c0
19450671
prolog
0
Title: Convert MIndiGolog fluents to the IndiGolog causes_val format Problem title: Convert MIndiGolog fluents to the IndiGolog causes_val format Tags: golog, eclipse, planning, swi-prolog, prolog Problem: Convert MIndiGolog fluents to the IndiGolog causes_val format I am using Eclipse (version: Kepler Service Release ...
Convert MIndiGolog fluents to the IndiGolog causes_val format Convert MIndiGolog fluents to the IndiGolog causes_val format golog eclipse planning swi-prolog prolog Convert MIndiGolog IndiGolog causes_val Convert MIndiGolog fluents to the IndiGolog causes_val format I am using Eclipse (version: Kepler Service Release 1...
[ -0.0086669921875, 0.0016021728515625, 0.01361083984375, 0.0096435546875, -0.0022735595703125, -0.009521484375, 0.000804901123046875, -0.004608154296875, -0.009765625, -0.02197265625, -0.0007781982421875, 0.0213623046875, -0.00982666015625, -0.007049560546875, 0.002593994140625, -0.0080...
[ 1657, 11549, 276, 159310, 724, 14071, 155283, 7, 47, 22420, 113660, 454, 1405, 9384, 738, 4867, 106371, 184, 58136, 2452, 3454, 502, 17368, 234962, 46354, 46964, 603, 12349, 152590, 1250, 55441, 92285, 34427, 618, 76329, 34754, 23, 59720, 1...
[ 0.08642578125, 0.1630859375, 0.09515380859375, 0.2049560546875, 0.15869140625, 0.239013671875, 0.22705078125, 0.027587890625, 0.07562255859375, 0.17724609375, 0.203369140625, 0.008819580078125, 0.2071533203125, 0.21630859375, 0.065185546875, 0.22265625, 0.1312255859375, 0.039337158...
embed
62174656_c0
62174656
prolog
0
Title: Hidden Markov Model Coin & Dice Example with Prolog Problem title: Hidden Markov Model Coin & Dice Example with Prolog Tags: statistics, prolog, hidden-markov-models Problem: Hidden Markov Model Coin & Dice Example with Prolog I got the specific problem from here and wanted to implement it on Cplint as I...
Hidden Markov Model Coin & Dice Example with Prolog Hidden Markov Model Coin & Dice Example with Prolog statistics prolog hidden-markov-models Hidden Markov Model Coin Dice Example Prolog HMM use_module current_predicate use_rendering begin_lpad hmm1 next_state rd1 rd2 rd3 rd4 rd5 rd6 gd1 gd2 gd3 gd4 gd5 gd6 en...
[ 0.00927734375, -0.004425048828125, -0.0250244140625, 0.0322265625, -0.0198974609375, 0.023681640625, -0.021728515625, 0.018310546875, 0.00113677978515625, -0.04638671875, -0.001220703125, -0.007354736328125, -0.004364013671875, -0.00469970703125, 0.0245361328125, 0.0029754638671875, ...
[ 72483, 555, 7880, 515, 13293, 76123, 25133, 803, 329, 89536, 678, 1250, 4867, 80835, 502, 204105, 10015, 51734, 572, 25590, 4527, 83279, 43581, 19714, 2063, 18280, 9842, 4299, 114407, 11737, 61340, 3564, 11341, 3390, 25561, 1961, 16145, 927, ...
[ 0.1802978515625, 0.193115234375, 0.1329345703125, 0.1690673828125, 0.1962890625, 0.17919921875, 0.0159759521484375, 0.0711669921875, 0.0977783203125, 0.1180419921875, 0.055389404296875, 0.1575927734375, 0.1929931640625, 0.1258544921875, 0.0723876953125, 0.2232666015625, 0.04586791992...
embed
16445427_c0
16445427
prolog
0
Title: some doubts about a Prolog program that use a moves graph to move blocks on 3 stack Problem title: some doubts about a Prolog program that use a moves graph to move blocks on 3 stack Tags: prolog Problem: some doubts about a Prolog program that use a moves graph to move blocks on 3 stack I am studying Prolog usi...
some doubts about a Prolog program that use a moves graph to move blocks on 3 stack some doubts about a Prolog program that use a moves graph to move blocks on 3 stack prolog List Prolog BASE CASE HEAD NewList Tail GENERAL Tail1 Stacks Stack1 Top1 Stack2 OtherStacks Stacks1 Situation some doubts about a Prolog program ...
[ -0.000713348388671875, 0.004180908203125, 0.006439208984375, 0.01239013671875, -0.0089111328125, -0.00689697265625, -0.01434326171875, 0.01019287109375, 0.011474609375, -0.0289306640625, 0.01287841796875, 0.0169677734375, -0.007110595703125, -0.02099609375, 0.005584716796875, 0.0119018...
[ 92814, 7, 1250, 4867, 1528, 4527, 25813, 41382, 46389, 138, 177261, 502, 32036, 335, 76783, 572, 188328, 2356, 154663, 1218, 210557, 379, 6512, 4792, 42378, 22824, 53577, 35187, 23698, 119794, 265, 12877, 27958, 231996, 157075, 44402, 28219, ...
[ 0.1297607421875, 0.0821533203125, 0.1494140625, 0.219482421875, 0.1502685546875, 0.048492431640625, 0.193359375, 0.23876953125, 0.1898193359375, 0.123779296875, 0.1861572265625, 0.06597900390625, 0.141845703125, 0.0738525390625, 0.05230712890625, 0.0186309814453125, 0.06195068359375,...
embed
16467432_c0
16467432
prolog
0
Title: How to implement a solve predicate for this "moving blocks" Prolog exercise? Problem title: How to implement a solve predicate for this "moving blocks" Prolog exercise? Tags: prolog Problem: How to implement a solve predicate for this "moving blocks" Prolog exercise? I am studying Prolog usin...
How to implement a solve predicate for this "moving blocks" Prolog exercise? How to implement a solve predicate for this "moving blocks" Prolog exercise? prolog the How Prolog Tail Tail1 CurrentState SuccessorState Predicate Stacks Stack1 Top1 Stack2 OtherStacks Stacks1 Situation Queens Queen Ylist ...
[ -0.003631591796875, 0.01007080078125, 0.0036773681640625, 0.01611328125, -0.00799560546875, 0.017333984375, -0.01904296875, 0.0146484375, 0.01019287109375, -0.0146484375, 0.00335693359375, 0.01092529296875, -0.00811767578125, -0.0181884765625, -0.00653076171875, 0.0027313232421875, 0...
[ 11249, 29479, 10, 86869, 1653, 2063, 67, 100, 903, 432, 6496, 46389, 7, 1250, 4867, 81979, 502, 1218, 379, 418, 114063, 135206, 144053, 748, 7145, 6512, 22824, 4792, 42378, 53577, 44109, 990, 6562, 46295, 6678, 35187, 23698, 119794, 265, ...
[ 0.0836181640625, 0.224609375, 0.0159149169921875, 0.224853515625, 0.187255859375, 0.214111328125, 0.1173095703125, 0.008819580078125, 0.072265625, 0.110107421875, 0.1387939453125, 0.2449951171875, 0.07196044921875, 0.17822265625, 0.258056640625, 0.1900634765625, 0.1151123046875, 0....
embed
16424392_c0
16424392
prolog
0
Title: Some doubts about Prolog implementation of 2-3 Dictionary Problem title: Some doubts about Prolog implementation of 2-3 Dictionary Tags: prolog, tree, 2-3-tree, search-tree Problem: Some doubts about Prolog implementation of 2-3 Dictionary I am learning Prolog using SWI Prolog and I have some doubts about how wo...
Some doubts about Prolog implementation of 2-3 Dictionary Some doubts about Prolog implementation of 2-3 Dictionary prolog tree 2-3-tree search-tree Tree Some Prolog Dictionary Item BASE CASE THEN Otherwise Intem BUT NOT Insertion Add Tree1 After add23 del23 Delete Inserting CASES MINIMAL ELEMENT LEFT NT1 NT1a NT1b NT2...
[ 0.011474609375, -0.01165771484375, 0.0031585693359375, 0.010986328125, 0.0093994140625, 0.0244140625, -0.018310546875, -0.01202392578125, 0.01263427734375, -0.01708984375, 0.0224609375, -0.021240234375, 0.006988525390625, -0.00628662109375, 0.0172119140625, 0.0152587890625, 0.0251464...
[ 31384, 92814, 7, 1250, 4867, 208124, 10994, 147638, 502, 53201, 62600, 33938, 101344, 78426, 335, 76783, 313, 30131, 39, 151654, 86725, 360, 2189, 29117, 418, 15190, 3742, 146, 262, 46485, 74213, 86240, 114626, 9780, 25217, 65779, 363, 52080,...
[ 0.03619384765625, 0.150634765625, 0.0318603515625, 0.18115234375, 0.232177734375, 0.1402587890625, 0.31298828125, 0.2093505859375, 0.120361328125, 0.1951904296875, 0.17041015625, 0.1309814453125, 0.1873779296875, 0.12109375, 0.078857421875, 0.0850830078125, 0.0207977294921875, 0.05...
embed
41992142_c0
41992142
prolog
0
Title: extracting algorithm for building prolog rules Problem title: extracting algorithm for building prolog rules Tags: artificial-intelligence, logic, prolog Problem: extracting algorithm for building prolog rules I have to create some "list of predicates" in prolog. But I don't fully understand the way of thinking ...
extracting algorithm for building prolog rules extracting algorithm for building prolog rules artificial-intelligence logic prolog extracting algorithm for building prolog rules I have to create some "list of predicates" in prolog. But I don't fully understand the way of thinking that I have to learn if I want to creat...
[ 0.0128173828125, 0.00701904296875, 0.006866455078125, 0.0036468505859375, 0.01263427734375, 0.0303955078125, -0.0152587890625, 0.01336669921875, 0.023681640625, -0.0400390625, -0.00616455078125, -0.0167236328125, -0.010986328125, -0.007232666015625, 0.0026702880859375, 0.00823974609375...
[ 125663, 214, 234873, 33976, 502, 4867, 91736, 100, 66733, 130687, 62775, 765, 28282, 6562, 111, 1653, 2063, 1636, 18, 89554, 28219, 3917, 47644, 30698, 20697, 5700, 57143, 94957, 1774, 88491, 19917, 131830, 98441, 9598, 60822, 146104, 133071, ...
[ 0.2091064453125, 0.042877197265625, 0.2685546875, 0.15478515625, 0.1500244140625, 0.2344970703125, 0.1851806640625, 0.0029296875, 0.0526123046875, 0.0626220703125, 0.08782958984375, 0.0147705078125, 0.125732421875, 0.137939453125, 0.0740966796875, 0.166015625, 0.2025146484375, 0.09...
embed
53835559_c0
53835559
prolog
0
Title: Optimizing clp(FD) labeling Problem title: Optimizing clp(FD) labeling Tags: clpfd, prolog, swi-prolog Problem: Optimizing clp(FD) labeling I have been crunching through a scheduling problem following this article which references this program and trying to generalize it past the seven shifts. I am getting hung ...
Optimizing clp(FD) labeling Optimizing clp(FD) labeling clpfd prolog swi-prolog Assoc being Optimizing use_module employee_max_shifts employee_skill task_skills employee_unavailable employee_assigned web_design get_employees Employees get_tasks Tasks TName TShift create_assoc_list Find empty_assoc EmptyAssoc Assignment...
[ 0.00201416015625, 0.01507568359375, -0.0031280517578125, 0.0021514892578125, -0.023193359375, -0.0322265625, -0.0218505859375, -0.00830078125, -0.011474609375, -0.020751953125, 0.00131988525390625, -0.0137939453125, 0.01434326171875, -0.005462646484375, 0.01300048828125, -0.00254821777...
[ 43938, 84382, 33139, 254, 98553, 67967, 214, 39557, 71, 502, 4867, 2452, 3454, 1301, 7, 6652, 8035, 4527, 83279, 188183, 24084, 3767, 2480, 119261, 66211, 1336, 330, 31304, 1467, 34198, 2046, 109308, 365, 1073, 9598, 163612, 78567, 28282, 7...
[ 0.1776123046875, 0.046539306640625, 0.0863037109375, 0.148681640625, 0.208740234375, 0.25830078125, 0.03753662109375, 0.0306549072265625, 0.06561279296875, 0.09503173828125, 0.173828125, 0.1478271484375, 0.0948486328125, 0.041748046875, 0.090576171875, 0.17138671875, 0.03390502929687...
embed
68037276_c0
68037276
prolog
0
Title: Has anybody got "java.net.SocketException: Connection reset" when using Java-Prolog Connector Problem title: Has anybody got "java.net.SocketException: Connection reset" when using Java-Prolog Connector Tags: prolog, java Problem: Has anybody got "java.net.SocketException: Connection reset" w...
Has anybody got "java.net.SocketException: Connection reset" when using Java-Prolog Connector Has anybody got "java.net.SocketException: Connection reset" when using Java-Prolog Connector prolog java java.net.SocketException org.cs3.prolog.connector.process.PrologProcessException java.io.IOException...
[ 0.0267333984375, 0.022705078125, -0.002838134765625, -0.01123046875, -0.0089111328125, -0.002166748046875, 0.005889892578125, -0.0004215240478515625, -0.00150299072265625, -0.022216796875, 0.00787353515625, 0.0074462890625, -0.0302734375, -0.005157470703125, 0.0167236328125, -0.0061950...
[ 20625, 2499, 37873, 4163, 24071, 5, 1179, 8912, 27853, 19279, 63928, 62448, 1830, 168398, 41502, 74, 17368, 41925, 10752, 4867, 748, 3229, 502, 79, 330, 30910, 4439, 363, 3454, 135457, 63923, 26531, 846, 17780, 1250, 9433, 107, 17137, 90, ...
[ 0.1090087890625, 0.0149383544921875, 0.091064453125, 0.07171630859375, 0.21728515625, 0.007720947265625, 0.1427001953125, 0.0943603515625, 0.1846923828125, 0.082763671875, 0.201904296875, 0.2020263671875, 0.066162109375, 0.287353515625, 0.00958251953125, 0.006591796875, 0.09997558593...
embed
24120534_c0
24120534
prolog
0
Title: prolog logic gates aggregation recursion optimisation Problem title: prolog logic gates aggregation recursion optimisation Tags: query-optimization, prolog, aggregation Problem: prolog logic gates aggregation recursion optimisation I am trying to implement a logic gate type aggregation operation. And I am having...
prolog logic gates aggregation recursion optimisation prolog logic gates aggregation recursion optimisation query-optimization prolog aggregation Sample Reactome_Id State Probe ProbeValue Samples protein_reactome_Id_to_Uniprot_Id UniprotId Value uniProt_Sample_Probes Check ListOfOnes OFF state_of_entity Entity all_chil...
[ 0.00762939453125, -0.00140380859375, -0.0024261474609375, -0.0003223419189453125, -0.0302734375, -0.01153564453125, -0.017822265625, 0.001434326171875, 0.00811767578125, -0.051025390625, -0.00860595703125, 0.00921630859375, -0.00555419921875, -0.02001953125, 0.0291748046875, 0.00147247...
[ 502, 4867, 62775, 70836, 7, 197564, 1830, 195625, 15572, 15032, 41, 100433, 947, 33209, 853, 47013, 13450, 568, 71, 22836, 1250, 372, 856, 50770, 3362, 21308, 1283, 44150, 282, 188, 85600, 18606, 11789, 190060, 19844, 10752, 18, 38679, 3203...
[ 0.1865234375, 0.231689453125, 0.24609375, 0.2423095703125, 0.0231781005859375, 0.223876953125, 0.051666259765625, 0.2193603515625, 0.1575927734375, 0.0623779296875, 0.06939697265625, 0.14599609375, 0.0419921875, 0.1314697265625, 0.06170654296875, 0.12890625, 0.1927490234375, 0.0665...
embed
66601416_c0
66601416
prolog
0
Title: How to connect to MongoDB server via swi prolog? Problem title: How to connect to MongoDB server via swi prolog? Tags: prolog, mongodb Problem: How to connect to MongoDB server via swi prolog? I'm want to implement an API beetween Prolog and MongoDB and after some research the first hurdle would be connecting to...
How to connect to MongoDB server via swi prolog? How to connect to MongoDB server via swi prolog? prolog mongodb SocketException How MongoDB Host Port Connection new_connection free_connection get_database send_to_server read_reply Default mongo_defaults mongo_defaults:host mongo_defaults:port mongo_socket:new_socket S...
[ 0.01226806640625, 0.0167236328125, 0.0240478515625, -0.00262451171875, -0.00958251953125, 0.0016021728515625, -0.024169921875, -0.0167236328125, -0.00830078125, -0.048828125, 0.023193359375, -0.0037384033203125, -0.01470947265625, -0.016845703125, 0.01904296875, -0.002166748046875, 0...
[ 11249, 37067, 47, 7465, 519, 39463, 10723, 1829, 91, 2452, 502, 4867, 2667, 7803, 275, 1061, 27853, 63928, 100932, 13791, 62448, 3525, 135457, 4092, 2046, 37382, 25379, 188, 39642, 12301, 62479, 1021, 14896, 31, 214810, 40294, 6982, 991, 94...
[ 0.068359375, 0.20751953125, 0.105712890625, 0.133544921875, 0.2156982421875, 0.2451171875, 0.14697265625, 0.0589599609375, 0.023284912109375, 0.233154296875, 0.1531982421875, 0.2322998046875, 0.0882568359375, 0.1112060546875, 0.111083984375, 0.0679931640625, 0.169189453125, 0.12072...
embed
63424113_c0
63424113
prolog
0
Title: Proper definition of "atom" in Prolog and Logic Programming Problem title: Proper definition of "atom" in Prolog and Logic Programming Tags: prolog Problem: Proper definition of "atom" in Prolog and Logic Programming I posted this question on the SWI Prolog Discourse forum and got some useful...
Proper definition of "atom" in Prolog and Logic Programming Proper definition of "atom" in Prolog and Logic Programming prolog Proper Prolog Logic Programming Proper definition of "atom" in Prolog and Logic Programming I posted this question on the SWI Prolog Discourse forum and got some useful comm...
[ 0.0274658203125, 0.01116943359375, 0.032958984375, -0.0042724609375, 0.0031890869140625, -0.0020599365234375, 0.006591796875, -0.0029296875, -0.02392578125, -0.0211181640625, 0.01171875, -0.01373291015625, -0.00787353515625, -0.00640869140625, 0.0225830078125, 0.013427734375, 0.01257...
[ 1250, 1264, 80934, 41502, 11, 5928, 74, 23, 4867, 136, 50592, 27958, 502, 111, 214, 44183, 9655, 159, 38969, 100599, 4738, 80234, 4, 765, 25647, 28451, 208806, 55681, 5281, 3642, 4527, 70, 2565, 63, 10, 15122, 621, 32562, 360, 142, 3462...
[ 0.166015625, 0.09912109375, 0.2000732421875, 0.008270263671875, 0.1251220703125, 0.279052734375, 0.005340576171875, 0.06494140625, 0.234619140625, 0.03289794921875, 0.130615234375, 0.168701171875, 0.07244873046875, 0.022186279296875, 0.0059814453125, 0.01959228515625, 0.0352172851562...
embed
28086167_c0
28086167
prolog
0
Title: Take three tab separated tokens and make a Prolog "fact" Problem title: Take three tab separated tokens and make a Prolog "fact" Tags: perl, prolog, regex, sed, nlp Problem: Take three tab separated tokens and make a Prolog "fact" Essentially, to go from foo\tbar\tbaz on each line of input to...
Take three tab separated tokens and make a Prolog "fact" Take three tab separated tokens and make a Prolog "fact" perl prolog regex sed nlp Take Prolog Take three tab separated tokens and make a Prolog "fact" Essentially, to go from foo\tbar\tbaz on each line of input to 'bar'('foo', 'baz'). If any ...
[ 0.025146484375, 0.0103759765625, 0.0037384033203125, 0.0048828125, 0.00140380859375, 0.005279541015625, 0.01324462890625, 0.00848388671875, -0.00506591796875, -0.0186767578125, -0.00579833984375, 0.0174560546875, -0.0087890625, -0.0123291015625, 0.002197265625, -0.0079345703125, 0.01...
[ 46673, 17262, 20928, 84797, 71, 47, 84694, 3249, 1250, 4867, 114700, 117, 141, 502, 6835, 3355, 1736, 26775, 179769, 738, 1295, 5775, 31, 1299, 40300, 12638, 13315, 107730, 3584, 70541, 11001, 66747, 27117, 144281, 4420, 5544, 2301, 18, 129...
[ 0.0830078125, 0.1488037109375, 0.222412109375, 0.1497802734375, 0.0390625, 0.126220703125, 0.212646484375, 0.05169677734375, 0.1707763671875, 0.2474365234375, 0.2381591796875, 0.10302734375, 0.09222412109375, 0.09295654296875, 0.059814453125, 0.13916015625, 0.1273193359375, 0.08068...
embed
78437481_c0
78437481
prolog
0
Title: how can i solve the prolog puzzle below? Problem title: how can i solve the prolog puzzle below? Tags: prolog, zebra-puzzle Problem: how can i solve the prolog puzzle below? Quiz Quest: There has been a keenly fought quiz among five teams. The losers did not quite live up to their name and finish fourth. The num...
how can i solve the prolog puzzle below? how can i solve the prolog puzzle below? prolog zebra-puzzle Numbskulls Rhubarb Pickers Garden Heavy quiz_quest Teams pop_music rhubarb_pickers garden_gang current_affairs heavy_mob Name Subject Only Mob how can i solve the prolog puzzle below? Quiz Quest: There has been a keenl...
[ 0.0042724609375, 0.01495361328125, -0.00148773193359375, 0.007232666015625, -0.01904296875, 0.01263427734375, -0.028076171875, 0.004119873046875, 0.0185546875, 0.00823974609375, 0.006805419921875, -0.0032501220703125, 0.0087890625, 0.004058837890625, -0.006683349609375, 0.0252685546875...
[ 3642, 831, 17, 86869, 502, 4867, 104192, 35064, 32, 116232, 1766, 13894, 133, 52782, 16145, 77684, 7, 627, 32102, 75555, 122554, 1314, 38666, 200975, 81758, 75616, 11399, 7426, 94922, 18695, 25306, 80583, 4451, 43581, 2407, 93771, 99162, 432,...
[ 0.0980224609375, 0.0943603515625, 0.083251953125, 0.191650390625, 0.181396484375, 0.265869140625, 0.240966796875, 0.1964111328125, 0.000885009765625, 0.217041015625, 0.1055908203125, 0.1343994140625, 0.0151824951171875, 0.143310546875, 0.08837890625, 0.2178955078125, 0.01661682128906...
embed
11599549_c0
11599549
prolog
0
Title: Hierarchical undirected graph representation Problem title: Hierarchical undirected graph representation Tags: graph-theory, prolog Problem: Hierarchical undirected graph representation I need to represent the graph like this: Graph = graph([Object1,Object2,Object3,Object4], [arc(Object1,Object2,connected), arc(...
Hierarchical undirected graph representation Hierarchical undirected graph representation graph-theory prolog Hierarchical Graph Object1 Object2 Object3 Object4 similar_size Hierarchical undirected graph representation I need to represent the graph like this: I have no restriction for code, however I'd stick to this re...
[ -0.0067138671875, 0.022216796875, -0.0028076171875, -0.0012969970703125, -0.0191650390625, -0.0002231597900390625, -0.0262451171875, 0.0030670166015625, 0.0025177001953125, -0.017578125, -0.0115966796875, -0.03369140625, -0.005035400390625, 0.019287109375, 0.006195068359375, 0.00451660...
[ 5389, 54689, 51, 80581, 41382, 18811, 2347, 502, 4867, 6524, 11727, 134549, 418, 363, 617, 21373, 62539, 3871, 33636, 1884, 903, 110, 185190, 18151, 71, 47593, 11177, 45646, 21771, 297, 95378, 5170, 36746, 136, 121303, 91582, 17721, 76615, ...
[ 0.0955810546875, 0.1197509765625, 0.09002685546875, 0.2115478515625, 0.234619140625, 0.1917724609375, 0.00042724609375, 0.014068603515625, 0.0650634765625, 0.1331787109375, 0.057952880859375, 0.12451171875, 0.0067138671875, 0.0186920166015625, 0.078125, 0.0789794921875, 0.06860351562...
embed
70238387_c0
70238387
prolog
0
Title: Space-efficient reading of chars in canonical form Problem title: Space-efficient reading of chars in canonical form Tags: prolog, iso-prolog Problem: Space-efficient reading of chars in canonical form When using chars (lists of characters, thus atoms of length one) to represent text, we have the following optio...
Space-efficient reading of chars in canonical form Space-efficient reading of chars in canonical form prolog iso-prolog Space-efficient First double_quotes ignore_ops Further Space-efficient reading of chars in canonical form When using chars (lists of characters, thus atoms of length one) to represent text, we have th...
[ 0.027099609375, 0.0026397705078125, 0.0203857421875, 0.01177978515625, 0.00007534027099609375, -0.005950927734375, 0.00118255615234375, -0.0118408203125, -0.006744384765625, -0.01806640625, 0.00823974609375, -0.0169677734375, -0.0284423828125, -0.019287109375, -0.005584716796875, -0.00...
[ 43045, 13, 24500, 45964, 16454, 21441, 7, 74413, 21533, 3173, 502, 4867, 13882, 3454, 23972, 41929, 68726, 124962, 68818, 23, 17368, 6562, 124850, 34627, 140909, 1632, 33636, 7986, 25632, 50717, 32562, 28032, 69407, 207263, 66747, 5303, 110, ...
[ 0.217529296875, 0.08465576171875, 0.1651611328125, 0.043212890625, 0.2364501953125, 0.2196044921875, 0.07568359375, 0.203369140625, 0.154296875, 0.138427734375, 0.1322021484375, 0.21337890625, 0.108154296875, 0.1015625, 0.0987548828125, 0.1605224609375, 0.223388671875, 0.1821289062...
embed
61851162_c0
61851162
prolog
0
Title: Choicepoint pruning needs a cut, but I think the compiler should be sharp enough to do it by itself Problem title: Choicepoint pruning needs a cut, but I think the compiler should be sharp enough to do it by itself Tags: prolog-cut, prolog, swi-prolog Problem: Choicepoint pruning needs a cut, but I think the com...
Choicepoint pruning needs a cut, but I think the compiler should be sharp enough to do it by itself Choicepoint pruning needs a cut, but I think the compiler should be sharp enough to do it by itself prolog-cut prolog swi-prolog Choicepoint throw_ domain_error must_be between_enum Start TaggedEnd TaggedStep Value End S...
[ -0.0166015625, -0.000659942626953125, 0.01409912109375, 0.0191650390625, 0.0037078857421875, 0.038818359375, -0.0089111328125, -0.01300048828125, 0.0341796875, 0.003662109375, -0.003936767578125, 0.026123046875, 0.0011138916015625, 0.016845703125, 0.0301513671875, -0.00070953369140625,...
[ 181948, 38496, 25230, 592, 27117, 59226, 5351, 9969, 34759, 189173, 390, 68034, 502, 4867, 19774, 2452, 3454, 104250, 77758, 188800, 8110, 372, 17721, 316, 13794, 57261, 152378, 191644, 190060, 18878, 50478, 43731, 3805, 48650, 21672, 5455, 126...
[ 0.180908203125, 0.207763671875, 0.186279296875, 0.0916748046875, 0.096923828125, 0.1668701171875, 0.02288818359375, 0.1336669921875, 0.17041015625, 0.140869140625, 0.042572021484375, 0.13134765625, 0.109130859375, 0.161865234375, 0.131591796875, 0.1385498046875, 0.09423828125, 0.17...
embed
78401940_c0
78401940
prolog
0
Title: Prolog code won't complete due to computational bug Problem title: Prolog code won't complete due to computational bug Tags: zebra-puzzle, prolog Problem: Prolog code won't complete due to computational bug I'll preface this with the prompt I have to follow: Bobby went to Truman Theaters. Taking a quic...
Prolog code won't complete due to computational bug Prolog code won't complete due to computational bug zebra-puzzle prolog Prolog Arrangement Solution Rule Brisbane Long Shot Historical Long_Shot Jet Set Pigeon Western Jet_Set Musical Comedy Gentleman Frostfire The_Gentleman SciFi Horror Newton Laws Newton_s...
[ 0.0024261474609375, 0.00151824951171875, 0.00140380859375, 0.00927734375, -0.0098876953125, 0.0004558563232421875, -0.026123046875, -0.01153564453125, 0.0042724609375, -0.0262451171875, -0.013427734375, 0.0021514892578125, 0.0107421875, -0.006591796875, 0.029541015625, 0.01055908203125...
[ 1250, 4867, 18151, 23742, 3768, 18, 28484, 4743, 47, 181135, 43315, 54608, 116232, 1766, 13894, 133, 502, 5445, 187895, 139118, 15640, 7, 36012, 14407, 17779, 165837, 115729, 82589, 19943, 58593, 13, 191, 65925, 294, 126, 108341, 116512, 4470...
[ 0.2099609375, 0.2568359375, 0.2366943359375, 0.0947265625, 0.0615234375, 0.0927734375, 0.2430419921875, 0.087158203125, 0.050811767578125, 0.2064208984375, 0.0787353515625, 0.215087890625, 0.1734619140625, 0.056640625, 0.09735107421875, 0.1031494140625, 0.162841796875, 0.12890625, ...
embed
15674669_c0
15674669
prolog
0
Title: Stack automatically modifying when it shouldn't Problem title: Stack automatically modifying when it shouldn't Tags: prolog, ocaml, interpreter, stack Problem: Stack automatically modifying when it shouldn't I'm implementing a Prolog interpreter in OCaml. The problem I'm having is in the main function....
Stack automatically modifying when it shouldn't Stack automatically modifying when it shouldn't prolog ocaml interpreter stack Stack Queue.top Stack.top List.length Stack.copy mgu1 List.nth Fact Rule Headbody BackTrack NoUnifier Queue.Empty Stack.pop Queue.create Stack.push Queue.pop Stack automatically modif...
[ 0.0157470703125, 0.031982421875, 0.0269775390625, 0.00250244140625, -0.005889892578125, -0.03076171875, -0.0029754638671875, -0.005279541015625, 0.003143310546875, -0.029541015625, -0.0130615234375, 0.0201416015625, -0.01373291015625, -0.00970458984375, 0.0233154296875, 0.0008468627929...
[ 6512, 2594, 191082, 2811, 151138, 3229, 5608, 19, 3768, 18, 502, 4867, 36, 9779, 141, 29481, 56, 177261, 5813, 13388, 13784, 32036, 137366, 34, 927, 132640, 139118, 44816, 37873, 26828, 86147, 14256, 85789, 134332, 33554, 7612, 7332, 29479, ...
[ 0.19287109375, 0.1756591796875, 0.209228515625, 0.179931640625, 0.0726318359375, 0.10400390625, 0.1826171875, 0.0333251953125, 0.0303955078125, 0.07989501953125, 0.1148681640625, 0.2315673828125, 0.0517578125, 0.11279296875, 0.14697265625, 0.18408203125, 0.08294677734375, 0.2329101...
embed
37610341_c0
37610341
prolog
0
Title: Assigning people to beds - approaches to automate Problem title: Assigning people to beds - approaches to automate Tags: clpfd, constraint-programming, prolog, scipy, python Problem: Assigning people to beds - approaches to automate I help with a youth camp every year. Assigning attendees to bedrooms is a massiv...
Assigning people to beds - approaches to automate Assigning people to beds - approaches to automate clpfd constraint-programming prolog scipy python Assigning room1 Building1 is_ensuite has_cot room2 Building2 room3 room4 room5 must_share_with needs_cot Cambridge Bristol Room Capacity Assigning people to beds - approac...
[ 0.0213623046875, 0.0238037109375, 0.009033203125, 0.005157470703125, -0.006317138671875, -0.00408935546875, 0.009521484375, 0.00372314453125, -0.009521484375, -0.05810546875, 0.01068115234375, -0.0009918212890625, -0.0162353515625, 0.00909423828125, -0.00970458984375, -0.01275634765625...
[ 1301, 31304, 214, 3395, 47, 11958, 7, 51515, 90, 11408, 13, 39557, 71, 158, 2816, 4288, 28966, 502, 4867, 13047, 6493, 17198, 50828, 17155, 418, 104919, 83, 33, 68879, 1556, 47924, 304, 617, 758, 8110, 67886, 76228, 27117, 105109, 194510,...
[ 0.08197021484375, 0.2445068359375, 0.029693603515625, 0.142333984375, 0.164794921875, 0.2626953125, 0.1199951171875, 0.1485595703125, 0.0167694091796875, 0.244873046875, 0.10394287109375, 0.03753662109375, 0.04034423828125, 0.043731689453125, 0.17919921875, 0.1143798828125, 0.1315917...
embed
4807341_c0
4807341
prolog
0
Title: SWI-Prolog in Semantic Web Problem title: SWI-Prolog in Semantic Web Tags: prolog, swi-prolog, semantic-web, java, dcg Problem: SWI-Prolog in Semantic Web I would like to hear from people who have real world programming experience in using SWI-Prolog's semantic library. Edit: The reason for this question is, amo...
SWI-Prolog in Semantic Web SWI-Prolog in Semantic Web prolog swi-prolog semantic-web java dcg SWI-Prolog Semantic Web SWI-Prolog in Semantic Web I would like to hear from people who have real world programming experience in using SWI-Prolog's semantic library. Edit: The reason for this question is, among the many peopl...
[ 0.00897216796875, 0.018310546875, -0.000039577484130859375, 0.00927734375, -0.01373291015625, 0.019287109375, -0.00634765625, 0.00714111328125, -0.007415771484375, -0.036865234375, 0.01202392578125, 0.00799560546875, -0.01239013671875, -0.004791259765625, 0.014892578125, -0.00744628906...
[ 159, 38969, 9, 10752, 4867, 23, 10232, 109109, 4002, 502, 91, 2452, 3454, 484, 14051, 79, 330, 238, 1884, 47, 36802, 1295, 3395, 2773, 8999, 56037, 449, 16981, 17368, 7, 35773, 42079, 31635, 100, 4, 54940, 70, 5941, 297, 111, 11814, 4...
[ 0.0941162109375, 0.257568359375, 0.0460205078125, 0.1806640625, 0.28466796875, 0.047943115234375, 0.1712646484375, 0.1748046875, 0.1912841796875, 0.1678466796875, 0.011444091796875, 0.217529296875, 0.10498046875, 0.1912841796875, 0.1658935546875, 0.09246826171875, 0.16015625, 0.016...
embed
43662477_c0
43662477
prolog
0
Title: Uncertainty in a logic engine (Produce plausible relative positions based on local geography) Problem title: Uncertainty in a logic engine (Produce plausible relative positions based on local geography) Tags: prolog, logic-programming, constraint-programming Problem: Uncertainty in a logic engine (Produce plausi...
Uncertainty in a logic engine (Produce plausible relative positions based on local geography) Uncertainty in a logic engine (Produce plausible relative positions based on local geography) prolog logic-programming constraint-programming Uncertainty Produce Uncertainty in a logic engine (Produce plausible relative positi...
[ 0.0162353515625, 0.0096435546875, 0.0257568359375, -0.00147247314453125, -0.00396728515625, 0.007598876953125, 0.00555419921875, -0.0224609375, 0.00445556640625, -0.01495361328125, 0.002899169921875, 0.0130615234375, 0.001190185546875, -0.0057373046875, 0.002197265625, 0.00445556640625...
[ 992, 106290, 73, 939, 23, 62775, 87907, 10752, 106357, 65933, 55356, 35845, 19069, 35509, 4000, 700, 87168, 502, 4867, 28966, 214, 158, 2816, 4288, 103687, 13, 11192, 18227, 759, 5962, 1916, 143907, 2967, 3688, 5117, 7839, 1672, 1286, 4537,...
[ 0.10107421875, 0.275390625, 0.15625, 0.12939453125, 0.041107177734375, 0.190673828125, 0.20166015625, 0.0650634765625, 0.05120849609375, 0.1126708984375, 0.107666015625, 0.259765625, 0.1986083984375, 0.0810546875, 0.1199951171875, 0.1375732421875, 0.1324462890625, 0.1241455078125, ...
embed
44147207_c0
44147207
prolog
0
Title: I want to make this prolog file a stand-alone EXE file Problem title: I want to make this prolog file a stand-alone EXE file Tags: prolog, exe Problem: I want to make this prolog file a stand-alone EXE file I am new to prolog and I have written this code but I want to make this prolog file a stand-alone EXE file...
I want to make this prolog file a stand-alone EXE file I want to make this prolog file a stand-alone EXE file prolog exe radio rather EXE Welcome Micro-Computer Please Audio Sound Card question_1 question_2 Driver Warning Scratchy question_3 Num BIOS Invalid Drive Specification Error Mouse Pointer Jerks Onscreen System...
[ 0.0108642578125, -0.005615234375, -0.004058837890625, 0.032958984375, -0.01708984375, 0.0390625, -0.01129150390625, 0.007354736328125, 0.0118408203125, -0.042236328125, 0.00518798828125, 0.0302734375, 0.01153564453125, -0.005950927734375, 0.0201416015625, 0.00732421875, 0.017578125, ...
[ 3444, 3249, 903, 502, 4867, 11435, 9157, 11, 51684, 29426, 647, 10, 97733, 5977, 43257, 91334, 37992, 9, 10770, 134910, 30607, 32134, 42413, 23660, 9655, 115187, 131470, 5550, 240085, 53, 52782, 190743, 7013, 209052, 212059, 174799, 41097, 27...
[ 0.105224609375, 0.09814453125, 0.048583984375, 0.196533203125, 0.2626953125, 0.1783447265625, 0.1343994140625, 0.0435791015625, 0.192138671875, 0.2064208984375, 0.2137451171875, 0.007110595703125, 0.2335205078125, 0.225830078125, 0.0628662109375, 0.2000732421875, 0.135498046875, 0....
embed
41102912_c0
41102912
prolog
0
Title: Space-efficient immutable map implementation in Prolog? Problem title: Space-efficient immutable map implementation in Prolog? Tags: avl-tree, memory-efficient, prolog, swi-prolog Problem: Space-efficient immutable map implementation in Prolog? This is a question about a map datastructure which stays memory effi...
Space-efficient immutable map implementation in Prolog? Space-efficient immutable map implementation in Prolog? avl-tree memory-efficient prolog swi-prolog Space-efficient Prolog map_new Map map_get Key Val map_put OldVal NewMap map_rem Solution gen_fresh_states ListFresh gen_stale_states ListStale add_fresh_states del...
[ 0.01165771484375, 0.000522613525390625, 0.00823974609375, -0.00927734375, -0.02001953125, -0.005279541015625, -0.009033203125, 0.00555419921875, -0.000720977783203125, -0.0322265625, 0.0245361328125, 0.00927734375, -0.013671875, 0.0186767578125, 0.015625, 0.0201416015625, -0.00162506...
[ 43045, 24500, 45964, 566, 561, 22819, 22288, 208124, 23, 1250, 4867, 185, 141, 62600, 98323, 502, 2452, 3454, 54936, 42719, 3794, 26824, 4769, 25074, 42272, 2356, 166179, 7328, 187895, 9226, 81946, 61340, 32036, 105027, 590, 42378, 133, 15190...
[ 0.1942138671875, 0.156494140625, 0.010894775390625, 0.050811767578125, 0.1512451171875, 0.1177978515625, 0.2320556640625, 0.1761474609375, 0.0318603515625, 0.1607666015625, 0.23193359375, 0.0926513671875, 0.057861328125, 0.1646728515625, 0.1640625, 0.07904052734375, 0.1307373046875, ...
embed
68441044_c0
68441044
prolog
0
Title: nested lists in prolog Problem title: nested lists in prolog Tags: list, prolog Problem: nested lists in prolog
nested lists in prolog nested lists in prolog list prolog nested lists in prolog I have to separate this: In something like this Could someone help me?
[ 0.01373291015625, 0.00274658203125, 0.000972747802734375, 0.005035400390625, 0.0034637451171875, 0.01531982421875, -0.0086669921875, -0.007720947265625, -0.00958251953125, -0.0198974609375, 0.00092315673828125, -0.0223388671875, -0.007537841796875, 0.008544921875, 0.0026397705078125, -...
[ 8512, 71, 5303, 502, 4867, 23, 7, 765, 47, 84797, 903, 360, 1884, 191147, 22008, 4358 ]
[ 0.249755859375, 0.11468505859375, 0.2135009765625, 0.1566162109375, 0.211669921875, 0.049560546875, 0.0225372314453125, 0.058441162109375, 0.0504150390625, 0.1966552734375, 0.0931396484375, 0.0258636474609375, 0.0528564453125, 0.02447509765625, 0.01042938232421875, 0.09735107421875 ]
embed
51076090_c0
51076090
prolog
0
Title: Misunderstanding chain/2? Problem title: Misunderstanding chain/2? Tags: clpfd, prolog Problem: Misunderstanding chain/2? Code signals: Misunderstanding, test1, test2
Misunderstanding chain/2? Misunderstanding chain/2? clpfd prolog Misunderstanding test1 test2 Misunderstanding chain/2? If I have (with clpfd loaded): And query: Which gives one answer as I expect, but with: Query: I do not expect answers like: Where the terms with as are after the terms with bs. What am I misunderstan...
[ 0.021240234375, -0.004974365234375, -0.013427734375, 0.0244140625, -0.00055694580078125, 0.0247802734375, -0.00130462646484375, 0.001983642578125, 0.025390625, -0.01165771484375, 0.0011138916015625, -0.003936767578125, 0.0032196044921875, 0.0047607421875, 0.0201416015625, 0.00787353515...
[ 7950, 24658, 144057, 121293, 12477, 33139, 39557, 71, 502, 4867, 3034, 418, 304, 765, 76228, 72367, 297, 41, 1294, 76199, 1632, 35166, 237, 87, 41206, 1284, 678, 58836, 53, 54, 959, 78662, 69407, 7103, 876, 7, 1239 ]
[ 0.0987548828125, 0.1566162109375, 0.1468505859375, 0.19140625, 0.2142333984375, 0.054107666015625, 0.066650390625, 0.1119384765625, 0.1015625, 0.1414794921875, 0.1407470703125, 0.0166778564453125, 0.1204833984375, 0.038726806640625, 0.04345703125, 0.092041015625, 0.00286865234375, ...
embed
7697580_c0
7697580
prolog
0
Title: Issue with 'greater than' Problem title: Issue with 'greater than' Tags: prolog, io Problem: Issue with 'greater than' Code signals: Issue, instantiation_error
Issue with 'greater than' Issue with 'greater than' prolog io Issue instantiation_error Issue with 'greater than' Anyone knows why this keeps failing? Is a prolog function to print 3 input numbers in order. I keep getting this error:
[ 0.0240478515625, 0.0247802734375, 0.0157470703125, -0.01544189453125, -0.00958251953125, 0.00738525390625, 0.01611328125, 0.00933837890625, 0.003997802734375, -0.006805419921875, 0.01324462890625, -0.01708984375, -0.000518798828125, -0.0269775390625, 0.0225830078125, -0.01348876953125,...
[ 223317, 678, 3768, 7134, 46429, 3501, 502, 4867, 22995, 34648, 14, 2320, 188800, 3630, 93002, 15400, 903, 13695, 7, 35782, 214, 2071, 32354, 47, 28412, 138, 107730, 101935, 23, 12989, 20949, 18499 ]
[ 0.180908203125, 0.118408203125, 0.13037109375, 0.1641845703125, 0.1927490234375, 0.255126953125, 0.2000732421875, 0.251708984375, 0.2366943359375, 0.151611328125, 0.156982421875, 0.0243988037109375, 0.1890869140625, 0.0252685546875, 0.0850830078125, 0.08551025390625, 0.09881591796875...
embed
23428068_c0
23428068
prolog
0
Title: Replace elements in lists of list prolog Problem title: Replace elements in lists of list prolog Tags: prolog Problem: Replace elements in lists of list prolog Code signals: Replace
Replace elements in lists of list prolog Replace elements in lists of list prolog prolog Replace Replace elements in lists of list prolog I have a list like this: I want to replace in one function elements 16 with 15, 15 with 11, 11 with 12 and 12 with 16. I know how to replace elements in list but i don't know how to ...
[ 0.0020294189453125, 0.00909423828125, -0.00958251953125, 0.005615234375, -0.01507568359375, 0.0064697265625, -0.00958251953125, -0.002349853515625, 0.01531982421875, 0.014404296875, 0.01312255859375, 0.004791259765625, 0.004180908203125, -0.005584716796875, 0.007598876953125, -0.002761...
[ 853, 23935, 80854, 23, 5303, 7, 111, 502, 4867, 1884, 903, 3444, 47, 91995, 1632, 32354, 611, 678, 423, 534, 427, 6849, 3714, 3642, 54, 27781, 35166 ]
[ 0.086669921875, 0.1942138671875, 0.2098388671875, 0.057464599609375, 0.2076416015625, 0.07086181640625, 0.03167724609375, 0.1527099609375, 0.207763671875, 0.03472900390625, 0.013763427734375, 0.066650390625, 0.030303955078125, 0.1981201171875, 0.06427001953125, 0.1668701171875, 0.172...
embed
65422984_c0
65422984
prolog
0
Title: No implemantation in prolog MAZE Problem title: No implemantation in prolog MAZE Tags: prolog, maze Problem: No implemantation in prolog MAZE Maze from a to e. When I run get(a,e[a]). Code signals: MAZE
No implemantation in prolog MAZE No implemantation in prolog MAZE prolog maze MAZE No implemantation in prolog MAZE Maze from a to e. When I run get(a,e[a]).
[ 0.0203857421875, 0.01361083984375, 0.0042724609375, 0.00982666015625, 0.018798828125, 0.0189208984375, -0.01165771484375, 0.0115966796875, 0.02197265625, -0.00860595703125, 0.01416015625, 0.0196533203125, -0.0234375, 0.00537109375, 0.01202392578125, -0.0003147125244140625, 0.00337219...
[ 438, 17, 33209, 669, 22062, 23, 502, 4867, 9267, 19157, 291, 731, 29678, 13, 1295, 10, 47, 28, 11675, 2046, 132, 11, 1065 ]
[ 0.1011962890625, 0.0673828125, 0.232177734375, 0.1756591796875, 0.1292724609375, 0.043121337890625, 0.156005859375, 0.2073974609375, 0.136962890625, 0.2254638671875, 0.09637451171875, 0.13134765625, 0.1773681640625, 0.15966796875, 0.0877685546875, 0.0977783203125, 0.12744140625, 0....
embed
25834807_c0
25834807
prolog
0
Title: How to check if term exists? Problem title: How to check if term exists? Tags: prolog Problem: How to check if term exists? user(admin). user(guest). How to check if admin exists? Otherwise: assert(user(admin)). Code signals: How
How to check if term exists? How to check if term exists? prolog How How to check if term exists? How to check if admin exists? Otherwise:
[ 0.022705078125, 0.0194091796875, 0.00421142578125, 0.0185546875, -0.0002651214599609375, 0.02294921875, 0.0028839111328125, 0.0272216796875, -0.0028228759765625, -0.06396484375, 0.0272216796875, 0.027099609375, -0.0004482269287109375, -0.002471923828125, 0.0238037109375, -0.00698852539...
[ 11249, 47, 12765, 2174, 13579, 32316, 7, 502, 4867, 18022 ]
[ 0.105712890625, 0.0867919921875, 0.2481689453125, 0.14306640625, 0.293701171875, 0.2353515625, 0.1319580078125, 0.1021728515625, 0.1427001953125, 0.293212890625 ]
embed
5539094_c0
5539094
prolog
0
Title: input output in prolog Problem title: input output in prolog Tags: list, prolog, file-io Problem: input output in prolog i want to read characters from a file in prolog and place them in a list. could some one help me out with it? thanks
input output in prolog input output in prolog list prolog file-io input output in prolog i want to read characters from a file in prolog and place them in a list. could some one help me out with it? thanks
[ 0.0311279296875, -0.0084228515625, 0.006805419921875, 0.007476806640625, -0.0111083984375, 0.0208740234375, 0.0027923583984375, 0.000812530517578125, -0.014892578125, -0.041015625, 0.0174560546875, -0.0196533203125, -0.01239013671875, -0.0172119140625, -0.004730224609375, -0.0033111572...
[ 107730, 140992, 23, 502, 4867, 5303, 11435, 846, 3444, 12301, 124850, 1295, 3687, 4358 ]
[ 0.2169189453125, 0.234619140625, 0.04742431640625, 0.158935546875, 0.227783203125, 0.1632080078125, 0.154052734375, 0.1595458984375, 0.0767822265625, 0.16552734375, 0.1884765625, 0.053466796875, 0.11138916015625, 0.0535888671875 ]
embed
13310272_c4
13310272
prolog
4
edge(f,g,800,800/80 * 60, 800 * 3/5,bus). edge(f,g,800,800/100 * 60, 800 * 2/5,car). edge(f,g,800,800/5 * 60, 800 * 0,walk). connected(X,Y,D,T,C) :- edge(X,Y,D,T,C,M) ; edge(Y,X,D,T,C,M). path(A,B,D,T,C,Path) :- Code signals: Lists, Path, Visited
edge(f,g,800,800/80 * 60, 800 * 3/5,bus). edge(f,g,800,800/100 * 60, 800 * 2/5,car). edge(f,g,800,800/5 * 60, 800 * 0,walk). connected(X,Y,D,T,C) :- edge(X,Y,D,T,C,M) ; edge(Y,X,D,T,C,M). path(A,B,D,T,C,Path) :- Code signals: Lists, Path, Visited
[ 0.0205078125, 0.01708984375, 0.002166748046875, 0.0167236328125, 0.00439453125, 0.0220947265625, -0.02490234375, -0.012939453125, 0.0052490234375, -0.04638671875, -0.004974365234375, -0.01708984375, -0.019287109375, 0.01220703125, -0.02099609375, -0.015869140625, 0.01043701171875, ...
[ 121303, 132, 420, 177, 10253, 4, 64, 4836, 661, 1496, 7607, 138, 12147, 4223, 194, 83123, 3284, 757, 94449, 162711, 1542, 1723, 397, 618, 441, 15772, 594, 2819, 60875, 284, 571, 683, 10519, 28864, 26073, 7, 12, 32036, 108421, 98684, 297...
[ 0.291015625, 0.037353515625, 0.1109619140625, 0.094482421875, 0.230224609375, 0.06298828125, 0.073486328125, 0.1546630859375, 0.07696533203125, 0.15869140625, 0.166748046875, 0.018096923828125, 0.1094970703125, 0.1937255859375, 0.083251953125, 0.1224365234375, 0.1640625, 0.09307861...
embed
15807506_c0
15807506
prolog
0
Title: Prolog - functional term vs predicate Problem title: Prolog - functional term vs predicate Tags: prolog Problem: Prolog - functional term vs predicate What is the difference between functional term from predicate in prolog ? Code signals: Prolog
Prolog - functional term vs predicate Prolog - functional term vs predicate prolog Prolog Prolog - functional term vs predicate What is the difference between functional term from predicate in prolog ?
[ 0.039306640625, 0.01953125, 0.004791259765625, -0.01019287109375, -0.0177001953125, 0.0322265625, 0.011962890625, 0.0057373046875, -0.0172119140625, -0.016845703125, 0.01007080078125, -0.00390625, -0.006011962890625, 0.0028228759765625, -0.00439453125, 0.007415771484375, 0.0203857421...
[ 1250, 4867, 123309, 13579, 20209, 1653, 2063, 67, 502, 83, 70, 60212, 17721, 1295 ]
[ 0.169921875, 0.2568359375, 0.2381591796875, 0.22021484375, 0.1434326171875, 0.15380859375, 0.2198486328125, 0.1328125, 0.12164306640625, 0.004474639892578125, 0.026031494140625, 0.15576171875, 0.0654296875, 0.07086181640625 ]
embed
43562363_c0
43562363
prolog
0
Title: To find maximum and minimum of a list in prolog Problem title: To find maximum and minimum of a list in prolog Tags: list, max, minimum, prolog Problem: To find maximum and minimum of a list in prolog Code signals: Max, maximum_no, Maximum, List
To find maximum and minimum of a list in prolog To find maximum and minimum of a list in prolog list max minimum prolog Max maximum_no Maximum List To find maximum and minimum of a list in prolog Can someone please tell me how do I solve this error ? I do find the code is correct but it still says an error? I also have...
[ 0.007476806640625, 0.0054931640625, 0.03369140625, 0.016845703125, -0.0174560546875, 0.0103759765625, 0.0186767578125, 0.00653076171875, 0.0162353515625, 0.01220703125, -0.010009765625, -0.0230712890625, 0.0086669921875, -0.018310546875, 0.01361083984375, -0.00543212890625, 0.0068359...
[ 717, 7413, 38132, 136, 15440, 111, 5303, 23, 502, 4867, 18389, 9920, 157, 46540, 316, 32036, 86869, 18499, 18151, 26785, 7464, 17378, 33022, 14012, 1146 ]
[ 0.013092041015625, 0.0966796875, 0.1854248046875, 0.09625244140625, 0.21630859375, 0.0270843505859375, 0.163818359375, 0.03692626953125, 0.1385498046875, 0.2119140625, 0.11669921875, 0.1082763671875, 0.08184814453125, 0.1212158203125, 0.0504150390625, 0.150390625, 0.0787353515625, ...
embed
1901725_c0
1901725
prolog
0
Title: How to input the following data in prolog? Problem title: How to input the following data in prolog? Tags: prolog Problem: How to input the following data in prolog? not(A()) and not(D()) and not(B()) and not(A()). What's the right way? Code signals: How
How to input the following data in prolog? How to input the following data in prolog? prolog How How to input the following data in prolog? What's the right way?
[ -0.004364013671875, 0.0067138671875, -0.00421142578125, 0.0189208984375, -0.0162353515625, 0.0076904296875, 0.01177978515625, 0.0081787109375, -0.002471923828125, -0.03369140625, -0.01611328125, -0.021240234375, -0.005279541015625, 0.0106201171875, -0.0003032684326171875, -0.0046081542...
[ 11249, 47, 107730, 25632, 2053, 23, 502, 4867, 7108, 3917 ]
[ 0.09600830078125, 0.0794677734375, 0.2227783203125, 0.156005859375, 0.17822265625, 0.09515380859375, 0.18701171875, 0.25146484375, 0.035003662109375, 0.056884765625 ]
embed
10928544_c0
10928544
prolog
0
Title: Logics in Prolog Problem title: Logics in Prolog Tags: logic, prolog Problem: Logics in Prolog How can I express next 3 sentences in Prolog? All summers are warm. If it not summer, then it is winter. Now it is winter. Code signals: Logics, Prolog, All, Now
Logics in Prolog Logics in Prolog logic prolog Logics Prolog All Now Logics in Prolog How can I express next 3 sentences in Prolog?
[ 0.0087890625, 0.00848388671875, 0.0037994384765625, 0.0244140625, -0.0220947265625, 0.00823974609375, 0.00390625, 0.0174560546875, 0.0101318359375, -0.00006198883056640625, 0.0031280517578125, 0.02294921875, -0.0030364990234375, -0.00787353515625, 0.020263671875, 0.0087890625, 0.0051...
[ 50592, 4439, 23, 1250, 4867, 62775, 502, 3164, 14240, 831, 36510, 11737, 138, 149357 ]
[ 0.2415771484375, 0.1060791015625, 0.09393310546875, 0.164794921875, 0.22509765625, 0.1903076171875, 0.110595703125, 0.0718994140625, 0.1142578125, 0.01149749755859375, 0.1568603515625, 0.1343994140625, 0.1585693359375, 0.1864013671875 ]
embed
20357406_c0
20357406
prolog
0
Title: Initialize a Matrix of Pairs in Constructor Problem title: Initialize a Matrix of Pairs in Constructor Tags: prolog, opengl, matrix, c%2B%2B Problem: Initialize a Matrix of Pairs in Constructor Code signals: Initialize, Matrix, Pairs, Constructor, std::pair
Initialize a Matrix of Pairs in Constructor Initialize a Matrix of Pairs in Constructor prolog opengl matrix c%2B%2B Initialize Matrix Pairs Constructor std::pair Initialize a Matrix of Pairs in Constructor I'm creating a boardgame (Tzaar if curious :D) in openGL and I need to initialize my logical board with the start...
[ 0.010986328125, 0.005950927734375, -0.00531005859375, 0.0024261474609375, 0.0002536773681640625, 0.002960205078125, -0.00933837890625, -0.0021209716796875, 0.0101318359375, 0.0238037109375, 0.0035858154296875, -0.025390625, 0.031494140625, -0.01104736328125, -0.0172119140625, 0.0062561...
[ 360, 40705, 119066, 10, 194234, 111, 37897, 4295, 23, 82084, 18770, 502, 4867, 9803, 11016, 50944, 6138, 71, 109637, 105233, 45443, 35311, 596, 147, 193844, 78703, 3871, 61475, 20650, 62775, 678, 72134, 126371, 12638, 3687, 13547, 23831, 2563...
[ 0.1207275390625, 0.2000732421875, 0.1053466796875, 0.059967041015625, 0.290771484375, 0.1341552734375, 0.24169921875, 0.200439453125, 0.1197509765625, 0.2354736328125, 0.22412109375, 0.0823974609375, 0.1966552734375, 0.1126708984375, 0.150390625, 0.1756591796875, 0.0972900390625, 0...
embed
8741325_c0
8741325
prolog
0
Title: Prolog - readterm Problem title: Prolog - readterm Tags: predicate, prolog Problem: Prolog - readterm Does anyone know how the predicate readterm from Prolog works with facts/database? I gotta use that but I don't know how to fit it into facts. Code signals: Prolog
Prolog - readterm Prolog - readterm predicate prolog Prolog Prolog - readterm Does anyone know how the predicate readterm from Prolog works with facts/database? I gotta use that but I don't know how to fit it into facts.
[ 0.0400390625, 0.0125732421875, 0.017578125, 0.011962890625, -0.001007080078125, 0.0191650390625, 0.0076904296875, 0.00732421875, -0.016357421875, -0.059814453125, 0.03271484375, -0.0024566650390625, -0.0220947265625, -0.0223388671875, -0.00537109375, 0.001190185546875, -0.01818847656...
[ 1250, 4867, 12301, 32166, 1653, 2063, 67, 502, 35672, 3714, 3642, 1295, 43240, 678, 15824, 10135, 37382, 17763, 4527, 11177, 442, 3934 ]
[ 0.1619873046875, 0.260009765625, 0.17138671875, 0.279052734375, 0.1502685546875, 0.213134765625, 0.12432861328125, 0.09808349609375, 0.02667236328125, 0.08087158203125, 0.07293701171875, 0.0279693603515625, 0.1392822265625, 0.1260986328125, 0.1578369140625, 0.05731201171875, 0.173461...
embed
49391739_c0
49391739
prolog
0
Title: Prolog how to make a new list of numbers Problem title: Prolog how to make a new list of numbers Tags: prolog Problem: Prolog how to make a new list of numbers Code signals: Prolog, mark1, mark2, NEWLIST, Mark, _2918, _2930, _2942, _2954, _2966, _2978, _2990, _3002, _3014
Prolog how to make a new list of numbers Prolog how to make a new list of numbers prolog Prolog mark1 mark2 NEWLIST Mark _2918 _2930 _2942 _2954 _2966 _2978 _2990 _3002 _3014 Prolog how to make a new list of numbers I have a original list where the format is [name+name+mark, name+name+mark] and what I want to do is to ...
[ 0.013671875, -0.0001850128173828125, -0.0220947265625, 0.01123046875, -0.00726318359375, 0.02001953125, -0.0223388671875, 0.0267333984375, 0.037109375, 0.00445556640625, -0.016357421875, -0.02197265625, -0.00103759765625, 0.008544921875, 0.000316619873046875, -0.0024871826171875, 0.0...
[ 1250, 4867, 3642, 3249, 10, 3525, 5303, 111, 101935, 47, 502, 16188, 418, 304, 80111, 195977, 7880, 4235, 1819, 1197, 13023, 12338, 14604, 19051, 61158, 7739, 2592, 7311, 9384, 11627, 1328, 10015, 3444, 4734, 237, 12830, 90173, 83, 14012, ...
[ 0.1925048828125, 0.2491455078125, 0.027923583984375, 0.1455078125, 0.0614013671875, 0.184814453125, 0.2261962890625, 0.061248779296875, 0.2176513671875, 0.01092529296875, 0.166259765625, 0.161376953125, 0.053253173828125, 0.08917236328125, 0.0955810546875, 0.1875, 0.1453857421875, ...
embed
54456357_c0
54456357
prolog
0
Title: Prolog: How to generate simple math expressions? Problem title: Prolog: How to generate simple math expressions? Tags: prolog Problem: Prolog: How to generate simple math expressions? Code signals: Prolog, How, Numbers, Operators, list_sum, Item, Item1, Item2, Tail, Total
Prolog: How to generate simple math expressions? Prolog: How to generate simple math expressions? prolog Prolog How Numbers Operators list_sum Item Item1 Item2 Tail Total Prolog: How to generate simple math expressions? I need to write (not calculate) all the states of list of number that means : Input: Output: in desc...
[ 0.008544921875, 0.00799560546875, -0.00714111328125, 0.01422119140625, 0.003204345703125, 0.021728515625, -0.00958251953125, 0.0107421875, 0.0130615234375, -0.023193359375, 0.0155029296875, -0.034423828125, -0.00439453125, 0.0047607421875, 0.02685546875, 0.00439453125, 0.005950927734...
[ 1250, 4867, 11249, 47, 139392, 8781, 48909, 125195, 7, 502, 103332, 150922, 5303, 11832, 78426, 304, 1218, 379, 33867, 3871, 33022, 10869, 74481, 756, 117249, 14012, 26950, 360, 7077, 13538, 60887, 18151, 7639, 106, 54651, 85398, 85493 ]
[ 0.1099853515625, 0.1708984375, 0.036407470703125, 0.025054931640625, 0.1593017578125, 0.1458740234375, 0.109619140625, 0.19970703125, 0.0273895263671875, 0.052337646484375, 0.11328125, 0.1939697265625, 0.09942626953125, 0.1341552734375, 0.1153564453125, 0.010711669921875, 0.078735351...
embed
14910851_c0
14910851
prolog
0
Title: last element in a deep list Problem title: last element in a deep list Tags: prolog Problem: last element in a deep list So if the input is L=[1,[2,3,4],5] , the output should be R = [4,5] . The code for last element in a regular list is last([X],X]. last([H|T],X):-last(T,X).
last element in a deep list last element in a deep list prolog last element in a deep list So if the input is L=[1,[2,3,4],5] , the output should be R = [4,5] . The code for last element in a regular list is
[ 0.0113525390625, 0.02099609375, 0.001190185546875, -0.00119781494140625, 0.00469970703125, 0.017333984375, -0.005584716796875, -0.009521484375, 0.00994873046875, -0.034912109375, 0.033447265625, -0.03466796875, -0.00139617919921875, 0.01409912109375, 0.007537841796875, 0.00180053710937...
[ 4568, 12830, 23, 53894, 5303, 10, 502, 4867, 2174, 107730, 339, 1369, 418, 304, 82449, 758, 140992, 5608, 186, 627, 2203, 80389, 581, 18151, 100, 20324, 83 ]
[ 0.282470703125, 0.258544921875, 0.08892822265625, 0.2110595703125, 0.264404296875, 0.035003662109375, 0.14892578125, 0.2198486328125, 0.036224365234375, 0.2225341796875, 0.1661376953125, 0.019683837890625, 0.00560760498046875, 0.0162506103515625, 0.168212890625, 0.14892578125, 0.2404...
embed
3001825_c0
3001825
prolog
0
Title: What are the uses of the fail predicate in Prolog? Problem title: What are the uses of the fail predicate in Prolog? Tags: prolog-dif, prolog Problem: What are the uses of the fail predicate in Prolog? I can't come up with a situation where I would need it. Code signals: What, Prolog
What are the uses of the fail predicate in Prolog? What are the uses of the fail predicate in Prolog? prolog-dif prolog What Prolog What are the uses of the fail predicate in Prolog? I can't come up with a situation where I would need it.
[ 0.022216796875, 0.011962890625, 0.023193359375, 0.00113677978515625, -0.00469970703125, 0.01055908203125, 0.009033203125, 0.0037384033203125, -0.006134033203125, -0.0098876953125, 0.00390625, -0.0157470703125, -0.00518798828125, 0.00701904296875, 0.0020751953125, 0.00726318359375, 0....
[ 4527, 35782, 1653, 2063, 67, 1250, 4867, 7, 502, 428, 420, 23, 16648, 3871 ]
[ 0.1156005859375, 0.2127685546875, 0.1375732421875, 0.1754150390625, 0.050506591796875, 0.137451171875, 0.201171875, 0.006473541259765625, 0.10345458984375, 0.031585693359375, 0.08795166015625, 0.00415802001953125, 0.0047454833984375, 0.021728515625 ]
embed
3186888_c0
3186888
prolog
0
Title: Prolog term to Erlang Problem title: Prolog term to Erlang Tags: prolog, erlang Problem: Prolog term to Erlang Let's say you have this prolog term "city(London, England)". ie London is a city in England. How do you represent that in Erlang, pattern matching? Code signals: Prolog, Erlang
Prolog term to Erlang Prolog term to Erlang prolog erlang Prolog Erlang Prolog term to Erlang Let's say you have this prolog term "city(London, England)". ie London is a city in England. How do you represent that in Erlang, pattern matching?
[ 0.02490234375, 0.00299072265625, 0.00154876708984375, 0.0030517578125, -0.009765625, 0.0040283203125, -0.020751953125, 0.004425048828125, 0.002349853515625, -0.0478515625, 0.03173828125, 0.0023651123046875, -0.0024871826171875, 0.00738525390625, 0.009033203125, 0.0208740234375, 0.001...
[ 1250, 4867, 13579, 47, 1004, 3066, 502, 72, 5154, 903, 60089, 231454, 4, 30715, 9020, 83, 10, 26349, 23, 11249, 33636, 450, 103510, 14858, 214 ]
[ 0.148193359375, 0.27734375, 0.1912841796875, 0.09136962890625, 0.1632080078125, 0.30810546875, 0.137939453125, 0.07867431640625, 0.00414276123046875, 0.00894927978515625, 0.1505126953125, 0.2166748046875, 0.01357269287109375, 0.21728515625, 0.25927734375, 0.1038818359375, 0.074340820...
embed
13336713_c0
13336713
prolog
0
Title: Is there any way to do operations within predicate parameters? Problem title: Is there any way to do operations within predicate parameters? Tags: prolog Problem: Is there any way to do operations within predicate parameters? Something like this: increment(X, X2 is X + 1). Is there any way to do it?
Is there any way to do operations within predicate parameters? Is there any way to do operations within predicate parameters? prolog Is there any way to do operations within predicate parameters? Something like this: Is there any way to do it?
[ -0.0093994140625, 0.0028228759765625, 0.00933837890625, -0.00445556640625, -0.0062255859375, 0.0111083984375, 0.0225830078125, -0.01220703125, 0.002838134765625, -0.04638671875, 0.005828857421875, 0.0126953125, -0.01409912109375, -0.0191650390625, 0.02685546875, 0.00138092041015625, ...
[ 2071, 2685, 2499, 3917, 54, 41018, 7, 28032, 1653, 2063, 67, 171859, 47, 502, 4867, 1884, 442 ]
[ 0.05242919921875, 0.10858154296875, 0.130126953125, 0.1494140625, 0.1009521484375, 0.2437744140625, 0.1044921875, 0.2242431640625, 0.1773681640625, 0.222412109375, 0.15673828125, 0.254150390625, 0.10003662109375, 0.09869384765625, 0.1884765625, 0.033843994140625, 0.09619140625 ]
embed
14379746_c0
14379746
prolog
0
Title: OR condition in Prolog Problem title: OR condition in Prolog Tags: prolog Problem: OR condition in Prolog I want to check whether a number is divisible by one of 3, 5, or 7. How could I write a rule something like - isDivide(N) :- N mod 3 =:= 0 OR N mod 5 =:= 0 OR N mod 7 =:= 0. Code signals: Prolog
OR condition in Prolog OR condition in Prolog prolog Prolog OR condition in Prolog I want to check whether a number is divisible by one of 3, 5, or 7. How could I write a rule something like -
[ 0.0113525390625, 0.001007080078125, 0.0101318359375, -0.002777099609375, -0.00157928466796875, 0.00921630859375, -0.01123046875, 0.0002918243408203125, -0.0029296875, -0.01806640625, -0.00007152557373046875, -0.0218505859375, -0.00506591796875, -0.0025634765625, -0.004608154296875, 0.0...
[ 33172, 35431, 1250, 4867, 23, 502, 3444, 47, 12765, 36766, 14012, 83, 45, 99017, 390, 1632, 111, 138, 190, 707, 2861, 5809, 33022, 10, 79986, 9844, 1884 ]
[ 0.28955078125, 0.253662109375, 0.17822265625, 0.258544921875, 0.063720703125, 0.11431884765625, 0.07916259765625, 0.037017822265625, 0.203369140625, 0.10858154296875, 0.1920166015625, 0.0692138671875, 0.1484375, 0.2449951171875, 0.133544921875, 0.059295654296875, 0.11737060546875, ...
embed
16158589_c0
16158589
prolog
0
Title: Calling predicate at the begining of the run Problem title: Calling predicate at the begining of the run Tags: prolog Problem: Calling predicate at the begining of the run I need to check call a predicate automatically at the consult or start of pl. Is there a such code to this? Code signals: Calling
Calling predicate at the begining of the run Calling predicate at the begining of the run prolog Calling Calling predicate at the begining of the run I need to check call a predicate automatically at the consult or start of pl. Is there a such code to this?
[ 0.0157470703125, 0.00958251953125, -0.01507568359375, 0.0245361328125, -0.019287109375, 0.005889892578125, 0.015869140625, 0.005828857421875, 0.004241943359375, -0.0751953125, 0.0031585693359375, 0.028564453125, -0.01300048828125, 0.00010633468627929688, 0.022705078125, -0.008728027343...
[ 26265, 214, 1653, 2063, 67, 99, 9842, 111, 11675, 502, 4867, 3871, 12765, 11782, 10, 191082, 70, 75463, 4034, 6456, 6044, 18151, 47, 903 ]
[ 0.1953125, 0.11834716796875, 0.20703125, 0.240478515625, 0.1448974609375, 0.10772705078125, 0.1285400390625, 0.0272674560546875, 0.1407470703125, 0.147216796875, 0.18798828125, 0.09375, 0.197998046875, 0.224609375, 0.037139892578125, 0.2227783203125, 0.0031642913818359375, 0.218139...
embed
25328123_c0
25328123
prolog
0
Title: what is the idea of the accumulator in prolog? Problem title: what is the idea of the accumulator in prolog? Tags: accumulator, prolog Problem: what is the idea of the accumulator in prolog? i need to know what is the idea of implementing a predicate with accumulator and here is an example of my question:
what is the idea of the accumulator in prolog? what is the idea of the accumulator in prolog? accumulator prolog what is the idea of the accumulator in prolog? i need to know what is the idea of implementing a predicate with accumulator and here is an example of my question:
[ 0.02001953125, 0.0050048828125, -0.0037841796875, 0.0201416015625, -0.01507568359375, 0.0240478515625, -0.00970458984375, 0.021484375, 0.0019683837890625, -0.06640625, 0.0361328125, 0.0159912109375, -0.00537109375, 0.0024261474609375, 0.01470947265625, -0.0015411376953125, 0.01574707...
[ 2367, 83, 70, 6528, 111, 183278, 1290, 23, 502, 4867, 3714, 29479, 1653, 2063, 67, 678, 27781 ]
[ 0.032135009765625, 0.0205841064453125, 0.0728759765625, 0.175537109375, 0.09033203125, 0.265625, 0.2003173828125, 0.068603515625, 0.16552734375, 0.2034912109375, 0.010986328125, 0.1300048828125, 0.1177978515625, 0.154541015625, 0.040374755859375, 0.06939697265625, 0.04132080078125 ]
embed
16313296_c0
16313296
prolog
0
Title: Prolog fetch element in a sublist Problem title: Prolog fetch element in a sublist Tags: prolog Problem: Prolog fetch element in a sublist If we have a list with sublist, how do we get a specific element in that sublist? Example: [[a,b,c],[d,e,f],[g,h,i],[j,k,l]] . We want to fetch i . Code signals: Prolog
Prolog fetch element in a sublist Prolog fetch element in a sublist prolog Prolog Prolog fetch element in a sublist If we have a list with sublist, how do we get a specific element in that sublist? Example: [[a,b,c],[d,e,f],[g,h,i],[j,k,l]] . We want to fetch i .
[ 0.0194091796875, -0.004302978515625, 0.0198974609375, 0.004425048828125, -0.01806640625, 0.0146484375, -0.007415771484375, 0.0166015625, -0.001922607421875, -0.01251220703125, 0.029296875, -0.0108642578125, -0.0205078125, -0.01080322265625, -0.013427734375, 0.00116729736328125, 0.017...
[ 1250, 4867, 7647, 206, 12830, 23, 1614, 6562, 10, 502, 5303, 678, 3642, 642, 2046, 29458, 89536, 11, 275, 238, 71, 420, 177, 127, 14, 170, 92, 141, 3444, 17 ]
[ 0.149169921875, 0.2239990234375, 0.1722412109375, 0.09521484375, 0.2117919921875, 0.06884765625, 0.2242431640625, 0.219482421875, 0.03216552734375, 0.112060546875, 0.160400390625, 0.04229736328125, 0.035614013671875, 0.019500732421875, 0.1287841796875, 0.137939453125, 0.0409545898437...
embed
48426417_c0
48426417
prolog
0
Title: Prolog - Arguments are not sufficiently instantiated. lists/recursion Problem title: Prolog - Arguments are not sufficiently instantiated. lists/recursion Tags: prolog, list, instantiation-error Problem: Prolog - Arguments are not sufficiently instantiated. lists/recursion Code signals: Prolog, Arguments, QLEN
Prolog - Arguments are not sufficiently instantiated. lists/recursion Prolog - Arguments are not sufficiently instantiated. lists/recursion prolog list instantiation-error Prolog Arguments QLEN Prolog - Arguments are not sufficiently instantiated. lists/recursion I am trying to get the maximum number from a given list ...
[ 0.01336669921875, 0.00897216796875, 0.00946044921875, 0.017333984375, 0.0016326904296875, 0.0098876953125, -0.00115203857421875, -0.01348876953125, 0.0311279296875, 0.01312255859375, 0.0137939453125, -0.02197265625, -0.0029296875, 0.006011962890625, 0.0146484375, 0.00555419921875, 0....
[ 1250, 4867, 112140, 7, 621, 959, 129980, 538, 34648, 14, 27686, 5303, 107, 48650, 1830, 502, 188800, 2396, 47214, 31577, 2046, 38132, 14012, 1295, 34475, 866, 95486, 77336, 33022, 25632, 32354, 9969, 18151, 105876, 18389, 133063, 96386, 1542,...
[ 0.168701171875, 0.240966796875, 0.2425537109375, 0.1214599609375, 0.028778076171875, 0.1102294921875, 0.1630859375, 0.081787109375, 0.11474609375, 0.1214599609375, 0.0806884765625, 0.1773681640625, 0.065673828125, 0.193603515625, 0.0660400390625, 0.125, 0.18603515625, 0.06170654296...
embed
58090683_c0
58090683
prolog
0
Title: How to rotate a list to the right? Problem title: How to rotate a list to the right? Tags: prolog Problem: How to rotate a list to the right? My code just rotates to the left. How do I rotate right? rotar(X,X,0). rotar([CA|CO],L,X):-X1 is X-1, append(CO,[CA],CO1), rotar(CO1, L, X1). Code signals: How, X-1, CO1
How to rotate a list to the right? How to rotate a list to the right? prolog How X-1 CO1 How to rotate a list to the right? My code just rotates to the left. How do I rotate right?
[ 0.0059814453125, 0.001495361328125, 0.0302734375, -0.00701904296875, -0.01177978515625, 0.01397705078125, -0.007476806640625, 0.006195068359375, 0.02294921875, -0.0072021484375, 0.00140380859375, -0.00299072265625, -0.006622314453125, 0.00897216796875, 0.005828857421875, 0.005187988281...
[ 11249, 47, 47014, 67, 10, 5303, 70, 7108, 502, 4867, 1193, 5759, 8244, 418, 18151, 1636, 25737 ]
[ 0.06439208984375, 0.1641845703125, 0.2039794921875, 0.1416015625, 0.03826904296875, 0.222900390625, 0.1065673828125, 0.2413330078125, 0.06463623046875, 0.096923828125, 0.0999755859375, 0.11871337890625, 0.1385498046875, 0.057098388671875, 0.16650390625, 0.03466796875, 0.146484375 ]
embed
8404758_c0
8404758
prolog
0
Title: How do I make a variable empty in Prolog? Problem title: How do I make a variable empty in Prolog? Tags: prolog Problem: How do I make a variable empty in Prolog? I want to empty a used variable in Prolog. For example, I want to do like this: i = null; but in Prolog. How do I do this? Code signals: How, Prolog
How do I make a variable empty in Prolog? How do I make a variable empty in Prolog? prolog How Prolog How do I make a variable empty in Prolog? I want to empty a used variable in Prolog. For example, I want to do like this: but in Prolog. How do I do this?
[ 0.0252685546875, 0.006439208984375, 0.014892578125, 0.037109375, -0.00811767578125, 0.0233154296875, -0.0059814453125, 0.001983642578125, -0.0086669921875, 0.003509521484375, -0.007476806640625, -0.0103759765625, -0.0191650390625, 0.010498046875, 0.0247802734375, 0.005706787109375, 0...
[ 11249, 3249, 77336, 201505, 23, 1250, 4867, 502, 10, 3444, 11814 ]
[ 0.028472900390625, 0.09002685546875, 0.253662109375, 0.243896484375, 0.057373046875, 0.1336669921875, 0.221923828125, 0.038238525390625, 0.0104827880859375, 0.0018758773803710938, 0.0977783203125 ]
embed
40654257_c1
40654257
prolog
1
: Got it working, thank you! Code: count(_, [], 0) :- !. count(El, [El|T], N) :- count(El, T, N1), N #= N1 + 1. count(El, [Y|T], N) :- El \= Y, count(El, T, N). check(List1, List2) :- count(3, List1, M), count(2, List2, N), M #= N. Code signals: Prolog, Error, List1, List2, Arguments, Exception, _G1383, _L155, _G1385
: Got it working, thank you! Code: count(_, [], 0) :- !. count(El, [El|T], N) :- count(El, T, N1), N #= N1 + 1. count(El, [Y|T], N) :- El \= Y, count(El, T, N). check(List1, List2) :- count(3, List1, M), count(2, List2, N), M #= N. Code signals: Prolog, Error, List1, List2, Arguments, Exception, _G1383, _L155, _G1385
[ 0.00921630859375, 0.01336669921875, -0.003662109375, -0.0015869140625, 0.0034637451171875, 0.008056640625, -0.0118408203125, 0.00144195556640625, 0.025146484375, -0.013427734375, -0.003265380859375, -0.01080322265625, 0.010009765625, 0.0174560546875, 0.0115966796875, -0.0152587890625, ...
[ 152, 53983, 442, 20697, 51544, 398, 38, 28864, 12, 54529, 132, 454, 4, 378, 268, 757, 15772, 711, 5, 7623, 58745, 618, 541, 384, 17727, 468, 1369, 418, 997, 615, 1723, 540, 990, 194, 12765, 154663, 32036, 10461, 86827, 276, 54753, 304...
[ 0.0439453125, 0.1021728515625, 0.1370849609375, 0.2244873046875, 0.03887939453125, 0.00885009765625, 0.125244140625, 0.310546875, 0.0712890625, 0.278076171875, 0.02874755859375, 0.1097412109375, 0.04962158203125, 0.065673828125, 0.033111572265625, 0.203369140625, 0.1181640625, 0.13...
embed
22183011_c0
22183011
prolog
0
Title: Prolog - for all implication Problem title: Prolog - for all implication Tags: prolog, logic Problem: Prolog - for all implication How can I represent a for-all implication in Prolog? In logic: x is given For all a, b . [P(a) AND P(b) AND P(x) ---> Q(a,b)] The prolog would be pred(X) :- .... Code signals: Prolog
Prolog - for all implication Prolog - for all implication prolog logic Prolog Prolog - for all implication How can I represent a for-all implication in Prolog? In logic: The prolog would be
[ 0.0274658203125, 0.0032958984375, -0.01165771484375, 0.01324462890625, -0.017822265625, 0.032470703125, 0.01080322265625, -0.0017547607421875, 0.00518798828125, -0.009033203125, 0.022705078125, 0.012939453125, 0.006805419921875, 0.0032196044921875, -0.0091552734375, -0.0005569458007812...
[ 1250, 4867, 100, 756, 17914, 1363, 502, 62775, 831, 87, 33636, 10, 5584, 23, 581, 2806, 186 ]
[ 0.183349609375, 0.2861328125, 0.171875, 0.164306640625, 0.21923828125, 0.11322021484375, 0.174560546875, 0.1859130859375, 0.0281524658203125, 0.0042877197265625, 0.1868896484375, 0.0272064208984375, 0.2010498046875, 0.0271759033203125, 0.052978515625, 0.0751953125, 0.049163818359375 ...
embed
4218477_c0
4218477
prolog
0
Title: Double elements in list using prolog? Problem title: Double elements in list using prolog? Tags: prolog, list Problem: Double elements in list using prolog? How can I double even numbers in a list in Prolog? For example: X=[1,2,3,5,4] The result should be: X=[1,2,2,3,5,4,4] Thank you! Code signals: prolog, Doubl...
Double elements in list using prolog? Double elements in list using prolog? prolog list prolog Double Double elements in list using prolog? How can I double even numbers in a list in Prolog? For example: The result should be: Thank you!
[ 0.01220703125, 0.004608154296875, 0.0155029296875, 0.00592041015625, 0.002716064453125, 0.041259765625, -0.00848388671875, 0.002166748046875, 0.018798828125, -0.00150299072265625, 0.00726318359375, -0.0115966796875, -0.0098876953125, -0.01068115234375, 0.00787353515625, 0.0162353515625...
[ 107172, 80854, 23, 5303, 17368, 502, 4867, 11249, 831, 87, 41929, 3853, 101935, 1250, 16750, 5608 ]
[ 0.23046875, 0.203857421875, 0.055419921875, 0.2054443359375, 0.07427978515625, 0.1573486328125, 0.2342529296875, 0.044403076171875, 0.053131103515625, 0.00901031494140625, 0.238037109375, 0.18310546875, 0.166259765625, 0.1534423828125, 0.0601806640625, 0.01073455810546875 ]
embed
8124961_c0
8124961
prolog
0
Title: Prolog compact? Problem title: Prolog compact? Tags: calc, prolog, derivative Problem: Prolog compact? I have a problem, I need to compact a derivative result like this: 0*x*x + 2*(1*x + x*1) =====> example: 0+2*(2*x) =====> 0+2*4*x====>8*x Is it possible? Thanks for your help. Regards, Volter Code signals: Prol...
Prolog compact? Prolog compact? calc prolog derivative Prolog Prolog compact? I have a problem, I need to compact a derivative result like this: Is it possible? Thanks for your help. Regards, Volter
[ 0.032958984375, 0.01043701171875, 0.018310546875, 0.0004558563232421875, 0.0159912109375, 0.01220703125, 0.02783203125, -0.0220947265625, 0.01434326171875, -0.002716064453125, -0.0185546875, 0.002288818359375, -0.0198974609375, 0.01007080078125, -0.0068359375, 0.0234375, -0.006622314...
[ 1250, 4867, 94928, 32, 6510, 238, 502, 30057, 4935, 765, 2967, 3871, 47, 16750, 1884, 903, 2071, 442, 7722, 4358, 5976, 720 ]
[ 0.148193359375, 0.2376708984375, 0.271484375, 0.010467529296875, 0.109130859375, 0.11358642578125, 0.11566162109375, 0.1763916015625, 0.158203125, 0.01122283935546875, 0.09033203125, 0.10504150390625, 0.06793212890625, 0.1571044921875, 0.0777587890625, 0.047515869140625, 0.0130996704...
embed
59268954_c0
59268954
prolog
0
Title: how do you print stars n amount of times on multiple lines using prolog Problem title: how do you print stars n amount of times on multiple lines using prolog Tags: prolog Problem: how do you print stars n amount of times on multiple lines using prolog i need to print stars '*' n amount of time Code signals: pro...
how do you print stars n amount of times on multiple lines using prolog how do you print stars n amount of times on multiple lines using prolog prolog prolog how do you print stars n amount of times on multiple lines using prolog i need to print stars '*' n amount of time
[ 0.019287109375, -0.00579833984375, 0.0016021728515625, 0.0017852783203125, -0.01318359375, 0.00848388671875, 0.004486083984375, 0.00118255615234375, -0.0028228759765625, -0.02001953125, -0.0020904541015625, -0.034912109375, -0.01025390625, 0.004150390625, -0.004241943359375, 0.00741577...
[ 3642, 28412, 6057, 7, 653, 41170, 20028, 48716, 124519, 502, 4867, 98, 17368, 3871, 1639, 1733 ]
[ 0.042724609375, 0.200927734375, 0.2095947265625, 0.106201171875, 0.1380615234375, 0.1435546875, 0.1737060546875, 0.1300048828125, 0.138916015625, 0.1392822265625, 0.19140625, 0.049163818359375, 0.0222015380859375, 0.05572509765625, 0.1197509765625, 0.129638671875 ]
embed
40890781_c0
40890781
prolog
0
Title: swipl: how to reload file Problem title: swipl: how to reload file Tags: prolog, swi-prolog Problem: swipl: how to reload file First I load the file with SWI-Prolog $ swipl file.pl then I modify the file and save. Now how do I reload the file like ?- reload for this modified file.pl ? Code signals: SWI-Prolog, f...
swipl: how to reload file swipl: how to reload file prolog swi-prolog SWI-Prolog file.pl swipl: how to reload file First I load the file with SWI-Prolog then I modify the file and save. Now how do I reload the file like for this modified file.pl ?
[ -0.004425048828125, 0.0225830078125, 0.01409912109375, 0.0177001953125, -0.019775390625, -0.01251220703125, -0.007659912109375, 0.0169677734375, -0.0014190673828125, -0.05126953125, 0.01495361328125, 0.0115966796875, -0.0294189453125, -0.004180908203125, 0.033447265625, 0.0079956054687...
[ 91, 2452, 2424, 12, 3642, 47, 456, 63033, 11435, 502, 4867, 3454, 159, 38969, 10752, 72367, 678, 2811, 40383, 30098, 54, 1884, 73197 ]
[ 0.0301971435546875, 0.1846923828125, 0.2232666015625, 0.002292633056640625, 0.0684814453125, 0.0638427734375, 0.1280517578125, 0.2239990234375, 0.16064453125, 0.1124267578125, 0.193115234375, 0.11236572265625, 0.04327392578125, 0.1898193359375, 0.1390380859375, 0.1119384765625, 0.008...
embed
44459966_c0
44459966
prolog
0
Title: Prolog - merge digits to number Problem title: Prolog - merge digits to number Tags: prolog Problem: Prolog - merge digits to number I want to merge list of digits to number. [1,2,3] -> 123 My predicate: merge([X], X). merge([H|T], X) :- merge(T, X1), X is X1 + H * 10. But now I get: [1,2,3] -> 33 Code signals: ...
Prolog - merge digits to number Prolog - merge digits to number prolog Prolog Prolog - merge digits to number I want to merge list of digits to number. [1,2,3] -> 123 My predicate: But now I get: [1,2,3] -> 33
[ -0.002197265625, 0.0206298828125, 0.006683349609375, -0.00141143798828125, -0.01068115234375, 0.0272216796875, -0.0185546875, 0.0218505859375, 0.00787353515625, -0.017333984375, -0.0106201171875, 0.00335693359375, -0.017578125, 0.01275634765625, 0.01409912109375, -0.01141357421875, -...
[ 1250, 4867, 20, 42564, 153939, 7, 47, 14012, 502, 87, 3444, 5303, 111, 68252, 155761, 33079, 37638, 2646, 1653, 2063, 4966, 5036, 2046, 268, 3912 ]
[ 0.20556640625, 0.2705078125, 0.02301025390625, 0.262939453125, 0.2332763671875, 0.1124267578125, 0.15869140625, 0.188232421875, 0.157958984375, 0.0263671875, 0.1337890625, 0.1875, 0.011260986328125, 0.04022216796875, 0.205810546875, 0.079833984375, 0.240234375, 0.001129150390625, ...
embed
4987706_c0
4987706
prolog
0
Title: prolog: logic programming Problem title: prolog: logic programming Tags: prolog Problem: prolog: logic programming How do I write Prolog code that picks out only numbers out of a list containing numbers and letters? For example, if I have [a,b,7,d,3,e,f,5], I want to write code that gives me [7,3,5]. Thanks in a...
prolog: logic programming prolog: logic programming prolog prolog: logic programming How do I write Prolog code that picks out only numbers out of a list containing numbers and letters? For example, if I have [a,b,7,d,3,e,f,5], I want to write code that gives me [7,3,5]. Thanks in advance.
[ 0.007171630859375, 0.00799560546875, 0.01300048828125, 0.0167236328125, -0.00396728515625, 0.035888671875, -0.0128173828125, 0.00946044921875, 0.01416015625, -0.0279541015625, -0.0135498046875, -0.0390625, -0.0159912109375, -0.0040283203125, 0.01068115234375, -0.0020294189453125, 0.0...
[ 502, 4867, 12, 62775, 56037, 449, 11249, 54, 87, 33022, 1250, 18151, 450, 39580, 7, 1810, 4734, 101935, 111, 5303, 70541, 136, 120820, 32, 1326, 27781, 2174, 765, 11, 275, 966, 71, 363, 13, 420, 758, 4, 3444, 76199, 163, 92714, 22362,...
[ 0.1641845703125, 0.276611328125, 0.0174407958984375, 0.1868896484375, 0.154296875, 0.0457763671875, 0.07733154296875, 0.043304443359375, 0.058349609375, 0.1749267578125, 0.220947265625, 0.217041015625, 0.05352783203125, 0.1578369140625, 0.057342529296875, 0.1243896484375, 0.147094726...
embed
33724526_c0
33724526
prolog
0
Title: Prolog: Delete last list element Problem title: Prolog: Delete last list element Tags: list, prolog Problem: Prolog: Delete last list element I succeeded to reverse a list: reverse([],Z,Z). reverse([H|T],Z,A) :- reverse(T,Z,[H|A]). and I want a program that deletes the last element of a list. Code signals: Prolo...
Prolog: Delete last list element Prolog: Delete last list element list prolog Prolog Delete Prolog: Delete last list element I succeeded to reverse a list: and I want a program that deletes the last element of a list.
[ 0.005523681640625, 0.0238037109375, -0.00014495849609375, 0.004241943359375, -0.023193359375, 0.01458740234375, 0.01116943359375, 0.019287109375, 0.008544921875, -0.0111083984375, 0.01190185546875, -0.01312255859375, -0.001617431640625, -0.0006866455078125, 0.00055694580078125, -0.0014...
[ 1250, 4867, 262, 46485, 4568, 5303, 12830, 12, 502, 214493, 297, 47, 39531, 184, 3444, 10, 1528, 450, 8, 74635, 111 ]
[ 0.1737060546875, 0.25, 0.1353759765625, 0.2178955078125, 0.2352294921875, 0.20849609375, 0.22314453125, 0.0313720703125, 0.11669921875, 0.132568359375, 0.0487060546875, 0.0024280548095703125, 0.1754150390625, 0.1295166015625, 0.1160888671875, 0.051483154296875, 0.18310546875, 0.045...
embed
37011772_c0
37011772
prolog
0
Title: Implementing uniform cost search in prolog Problem title: Implementing uniform cost search in prolog Tags: prolog Problem: Implementing uniform cost search in prolog I am new in prolog programming and just needed to ask that if there is a way to implement uniform cost search technique in prolog ? Code signals: I...
Implementing uniform cost search in prolog Implementing uniform cost search in prolog prolog Implementing Implementing uniform cost search in prolog I am new in prolog programming and just needed to ask that if there is a way to implement uniform cost search technique in prolog ?
[ 0.030517578125, 0.03271484375, 0.00665283203125, -0.0003643035888671875, -0.00194549560546875, 0.0025177001953125, -0.0087890625, -0.006256103515625, 0.00616455078125, -0.05126953125, 0.005767822265625, -0.005584716796875, 0.00830078125, 0.0019683837890625, -0.0002918243408203125, -0.0...
[ 153941, 214, 61514, 11034, 33938, 23, 502, 4867, 3525, 56037, 44841, 26458, 3917, 29479, 61353 ]
[ 0.19091796875, 0.05487060546875, 0.2442626953125, 0.1812744140625, 0.23095703125, 0.056365966796875, 0.1341552734375, 0.2403564453125, 0.032501220703125, 0.052886962890625, 0.01763916015625, 0.0283050537109375, 0.03631591796875, 0.1729736328125, 0.1539306640625 ]
embed
43068667_c0
43068667
prolog
0
Title: mirroring a list in prolog Problem title: mirroring a list in prolog Tags: prolog, mirror, recursion, list Problem: mirroring a list in prolog My wanted output is this: ?- mirror ([1,2], [] , X ). X= [1,2,2,1] What I have so far: mirror(L,R,X):- L is R , [R| revertList(L,X)] . I cant think of how this works, ple...
mirroring a list in prolog mirroring a list in prolog prolog mirror recursion list mirroring a list in prolog My wanted output is this: What I have so far: I cant think of how this works, please help me
[ 0.0164794921875, 0.0059814453125, 0.0003986358642578125, -0.006378173828125, -0.003143310546875, 0.0260009765625, -0.0020599365234375, 0.01519775390625, 0.002044677734375, -0.0224609375, 0.0250244140625, -0.000522613525390625, -0.00061798095703125, 0.00860595703125, 0.0172119140625, -0...
[ 191551, 214, 5303, 23, 502, 4867, 195625, 1830, 36663, 140992, 903, 765, 2060, 45767, 5351, 111, 3642, 43240, 22936, 4358 ]
[ 0.281494140625, 0.0882568359375, 0.1793212890625, 0.018280029296875, 0.1324462890625, 0.1995849609375, 0.16796875, 0.0557861328125, 0.1568603515625, 0.168212890625, 0.0716552734375, 0.020538330078125, 0.0819091796875, 0.0711669921875, 0.062408447265625, 0.031036376953125, 0.028869628...
embed
49970295_c0
49970295
prolog
0
Title: Double factorial swi-prolog Problem title: Double factorial swi-prolog Tags: prolog Problem: Double factorial swi-prolog help please I need to find ((2n-1)!!) \ (2n)!! but I only know how to write factorial not double. factorial(0,1). factorial(N,F) :- N>0, N1 is N-1, factorial(N1,F1), F is N * F1. Code signals:...
Double factorial swi-prolog Double factorial swi-prolog prolog Double N-1 Double factorial swi-prolog help please I need to find ((2n-1)!!) \ (2n)!! but I only know how to write factorial not double.
[ 0.015869140625, 0.000713348388671875, 0.0089111328125, 0.0035400390625, 0.0113525390625, 0.0103759765625, 0.0010528564453125, -0.003021240234375, -0.00616455078125, -0.0211181640625, 0.014404296875, -0.007080078125, -0.005889892578125, -0.0179443359375, 0.00653076171875, 0.015869140625...
[ 107172, 31461, 15403, 91, 2452, 3454, 4867, 9, 502, 541, 5759, 4358, 22936, 3871, 47, 7413, 15, 54753, 19, 110218, 1146, 41872, 4700, 4734, 3714, 3642, 33022, 959, 41929 ]
[ 0.21337890625, 0.2047119140625, 0.2164306640625, 0.0733642578125, 0.22607421875, 0.164306640625, 0.2459716796875, 0.03814697265625, 0.163818359375, 0.1556396484375, 0.199951171875, 0.12164306640625, 0.09228515625, 0.10443115234375, 0.0169219970703125, 0.1759033203125, 0.0342407226562...
embed
44087945_c0
44087945
prolog
0
Title: Defining operators in Prolog Problem title: Defining operators in Prolog Tags: prolog Problem: Defining operators in Prolog Having defined two operators in Prolog: op(100, xfy, #). op(100, fy, ϴ). what is the expression a # ϴ b # c equivalent to? a # ϴ (b # c) or maybe a # ((ϴ b) # c) And why? Code signals: Defi...
Defining operators in Prolog Defining operators in Prolog prolog Defining Prolog Defining operators in Prolog Having defined two operators in Prolog: what is the expression equivalent to? or maybe And why?
[ 0.031494140625, 0.00101470947265625, -0.0040283203125, 0.0184326171875, 0.0191650390625, 0.00579833984375, -0.0152587890625, 0.0031585693359375, 0.005157470703125, -0.000110626220703125, -0.01287841796875, -0.015869140625, -0.0025634765625, -0.00469970703125, 0.017333984375, 0.00186920...
[ 88606, 449, 39933, 1250, 4867, 502, 171855, 61924, 6626, 125195, 183234, 47, 51139, 15400 ]
[ 0.1558837890625, 0.0135498046875, 0.234375, 0.1348876953125, 0.215576171875, 0.0855712890625, 0.004302978515625, 0.172119140625, 0.134521484375, 0.1798095703125, 0.134521484375, 0.0650634765625, 0.2125244140625, 0.115478515625 ]
embed
13490974_c0
13490974
prolog
0
Title: Prolog non-homogenous lists Problem title: Prolog non-homogenous lists Tags: prolog Problem: Prolog non-homogenous lists Is there a way to write non-homogenous lists in prolog? I want to create a list which contains symbols and integers. Something like: [A 2 3 B C D E] Thanks P.S. I user Turbo Prolog 2.0 Code si...
Prolog non-homogenous lists Prolog non-homogenous lists prolog Prolog Prolog non-homogenous lists Is there a way to write non-homogenous lists in prolog? I want to create a list which contains symbols and integers. Something like: [A 2 3 B C D E] Thanks P.S. I user Turbo Prolog 2.0
[ -0.0034027099609375, 0.00836181640625, 0.00151824951171875, 0.01123046875, -0.034912109375, 0.0294189453125, -0.0218505859375, -0.0101318359375, -0.00927734375, -0.00927734375, 0.006195068359375, -0.031982421875, 0.011962890625, 0.005096435546875, -0.000579833984375, 0.0107421875, -0...
[ 1250, 4867, 351, 29521, 62976, 5303, 10821, 502, 10, 3917, 33022, 9, 7, 23, 3444, 28282, 70541, 26582, 136, 892, 26255, 1884, 284, 116, 138, 335, 313, 391, 241, 38937, 102228, 16655 ]
[ 0.1617431640625, 0.255126953125, 0.171142578125, 0.116455078125, 0.1641845703125, 0.2381591796875, 0.13671875, 0.14892578125, 0.003021240234375, 0.0745849609375, 0.1451416015625, 0.0357666015625, 0.10711669921875, 0.03179931640625, 0.066650390625, 0.0924072265625, 0.080322265625, 0...
embed
21971037_c1
21971037
prolog
1
,RestQ,Xs). remUniqueVals(PrevQ,[Q1|RestQ],[Q1|Xs]) :- Q1 = PrevQ, remUniqueVals(PrevQ,RestQ,Xs). remUniqueVals(PrevQ,[_|RestQ],Xs) :- remUniqueVals(PrevQ,RestQ,Xs). remUniqueVals(0,[4,1,1,3,2,2,5,5],Q). Q = [1, 1, 2, 2, 5, 5]. remUniqueVals(0, [A,B,C], [1,1]). A = 1, B = 1, C = 1. Code signals: Prolog, RestQ, NewQ, Pr...
,RestQ,Xs). remUniqueVals(PrevQ,[Q1|RestQ],[Q1|Xs]) :- Q1 = PrevQ, remUniqueVals(PrevQ,RestQ,Xs). remUniqueVals(PrevQ,[_|RestQ],Xs) :- remUniqueVals(PrevQ,RestQ,Xs). remUniqueVals(0,[4,1,1,3,2,2,5,5],Q). Q = [1, 1, 2, 2, 5, 5]. remUniqueVals(0, [A,B,C], [1,1]). A = 1, B = 1, C = 1. Code signals: Prolog, RestQ, NewQ, Pr...
[ -0.01055908203125, 0.0166015625, 0.0235595703125, -0.0191650390625, -0.01336669921875, 0.003936767578125, 0.004547119140625, -0.0146484375, 0.0267333984375, -0.00122833251953125, 0.0040283203125, 0.015380859375, 0.048095703125, -0.017822265625, -0.0177001953125, 0.0216064453125, -0.0...
[ 1052, 525, 2737, 1542, 7, 194, 14194, 1062, 45602, 42272, 19273, 334, 418, 15772, 2396, 2203, 74717, 2389, 125592, 68252, 106, 190, 284, 571, 441, 76172, 62, 335, 313, 615, 28864, 26073, 12, 1250, 4867, 49756, 2356, 6422 ]
[ 0.09857177734375, 0.1455078125, 0.2437744140625, 0.1500244140625, 0.08837890625, 0.01922607421875, 0.234130859375, 0.1434326171875, 0.234375, 0.25244140625, 0.0897216796875, 0.123779296875, 0.1424560546875, 0.06060791015625, 0.25, 0.06640625, 0.184814453125, 0.07763671875, 0.1177...
embed
4416830_c1
4416830
prolog
1
R = [k(2, 1), k(2, 2)] ; R = [k(2, 2), k(1, 1)] ; R = [k(2, 2), k(1, 2)] ; R = [k(2, 2), k(2, 1)] ; false. It works correctly but is too slow when I use higher numbers. I think the predicate 'geni' is good but something is wrong with 'generate'. How could I optimize it? Code signals: Prolog, Min, Max, MinInc, TSize, T...
R = [k(2, 1), k(2, 2)] ; R = [k(2, 2), k(1, 1)] ; R = [k(2, 2), k(1, 2)] ; R = [k(2, 2), k(2, 1)] ; false. It works correctly but is too slow when I use higher numbers. I think the predicate 'geni' is good but something is wrong with 'generate'. How could I optimize it? Code signals: Prolog, Min, Max, MinInc, TSize, T...
[ -0.0203857421875, 0.0150146484375, 0.0091552734375, -0.004302978515625, 0.0001659393310546875, -0.003875732421875, 0.00799560546875, -0.01531982421875, 0.01953125, -0.0029296875, 0.0003757476806640625, 0.01519775390625, -0.013427734375, -0.00982666015625, 0.00909423828125, -0.008117675...
[ 627, 2203, 92, 54753, 4879, 472, 4958, 4, 98320, 1650, 43240, 26785, 1284, 5792, 72803, 4527, 77546, 101935, 5351, 1653, 2063, 67, 33781, 83, 4127, 44691, 48281, 5809, 15572, 20650, 28864, 26073, 7, 1250, 4867, 4211, 9920, 4153, 238, 1218...
[ 0.221923828125, 0.1063232421875, 0.130126953125, 0.099609375, 0.04779052734375, 0.10601806640625, 0.054779052734375, 0.012359619140625, 0.2305908203125, 0.0780029296875, 0.1383056640625, 0.1177978515625, 0.0325927734375, 0.09259033203125, 0.2235107421875, 0.0855712890625, 0.145385742...
embed