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
55022779_c0
55022779
prolog
0
Title: Using https with library(pillow) in SICStus Prolog Problem title: Using https with library(pillow) in SICStus Prolog Tags: https, prolog, sicstus-prolog Problem: Using https with library(pillow) in SICStus Prolog Recently, when I wanted to assemble and crunch some StackOverflow meta data , using library(pillow) ...
Using https with library(pillow) in SICStus Prolog Using https with library(pillow) in SICStus Prolog https prolog sicstus-prolog Using SICStus Prolog Using https with library(pillow) in SICStus Prolog Recently, when I wanted to assemble and crunch some StackOverflow meta data , using library(pillow) appeared the right...
[ -0.0267333984375, 0.0240478515625, -0.01031494140625, 0.0191650390625, -0.0274658203125, -0.00860595703125, -0.01214599609375, 0.000881195068359375, -0.021728515625, -0.01507568359375, 0.005126953125, -0.0201416015625, -0.006988525390625, 0.01165771484375, 0.0064697265625, -0.005126953...
[ 345, 3975, 678, 35773, 1294, 1434, 41566, 159, 102198, 2143, 1250, 4867, 23, 502, 26536, 18253, 3454, 93457, 22684, 19, 6512, 2594, 156673, 118664, 23550, 2053, 17368, 118775, 7108, 5117, 72713, 4527, 79786, 3664, 190647, 137578, 97264, 14602...
[ 0.07470703125, 0.28271484375, 0.1102294921875, 0.2115478515625, 0.148681640625, 0.123291015625, 0.2071533203125, 0.1246337890625, 0.1104736328125, 0.20703125, 0.14013671875, 0.2230224609375, 0.03094482421875, 0.133544921875, 0.10394287109375, 0.1717529296875, 0.0926513671875, 0.103...
embed
17389935_c0
17389935
prolog
0
Title: Handle table xpath/3 Problem title: Handle table xpath/3 Tags: prolog Problem: Handle table xpath/3 I have noticed that if i use xpath(DOM, //table(N), T), the system extracts only the external tables, but if i have a table into another table, i can see it only i use findall/3. The predicate findall/3 extract al...
Handle table xpath/3 Handle table xpath/3 prolog Handle DOM Handle table xpath/3 I have noticed that if i use xpath(DOM, //table(N), T), the system extracts only the external tables, but if i have a table into another table, i can see it only i use findall/3. The predicate findall/3 extract all table, but i can't acces...
[ 0.0103759765625, 0.0062255859375, -0.00107574462890625, -0.01904296875, -0.018310546875, -0.000942230224609375, 0.0186767578125, -0.00183868408203125, -0.004730224609375, -0.04052734375, 0.010498046875, 0.00372314453125, -0.0291748046875, 0.01904296875, -0.002593994140625, 0.0257568359...
[ 10639, 133, 23180, 1022, 128405, 18113, 502, 4867, 69285, 156672, 4527, 127214, 22819, 839, 384, 5426, 125663, 4734, 173591, 765, 3934, 15700, 831, 1957, 7413, 5584, 1653, 2063, 756, 18, 17203, 47, 70796, 44084, 541, 927, 1284, 4666, 2806, ...
[ 0.14599609375, 0.08587646484375, 0.2152099609375, 0.058624267578125, 0.2001953125, 0.1995849609375, 0.04022216796875, 0.1251220703125, 0.1710205078125, 0.0266571044921875, 0.0794677734375, 0.162841796875, 0.177978515625, 0.032196044921875, 0.046051025390625, 0.0931396484375, 0.177368...
embed
5312894_c0
5312894
prolog
0
Title: Prolog: How to select biggest value from a set of random numbers Problem title: Prolog: How to select biggest value from a set of random numbers Tags: prolog Problem: Prolog: How to select biggest value from a set of random numbers OK, the question is a bit poorly worded, but what I want to do is to select N num...
Prolog: How to select biggest value from a set of random numbers Prolog: How to select biggest value from a set of random numbers prolog a Prolog How rand_val Count Rng Res rand_int Prolog: How to select biggest value from a set of random numbers OK, the question is a bit poorly worded, but what I want to do is to sele...
[ -0.0074462890625, -0.000492095947265625, 0.016845703125, -0.0035552978515625, 0.001922607421875, 0.0157470703125, 0.005889892578125, -0.0011444091796875, 0.01507568359375, -0.031982421875, 0.0220947265625, 0.015625, 0.002777099609375, 0.00146484375, 0.037109375, -0.01324462890625, -0...
[ 1250, 4867, 11249, 47, 36849, 129058, 34292, 1295, 5423, 96759, 101935, 502, 27388, 454, 1405, 108210, 627, 449, 9624, 4288, 14315, 70425, 2565, 3444, 54, 541, 17721, 757, 136, 85378, 17368, 55076, 142105, 3642, 81887, 31635, 22027, 18, 448...
[ 0.16943359375, 0.2392578125, 0.09210205078125, 0.0384521484375, 0.2315673828125, 0.242431640625, 0.253662109375, 0.09259033203125, 0.127197265625, 0.183837890625, 0.2020263671875, 0.1402587890625, 0.228759765625, 0.06878662109375, 0.2017822265625, 0.1766357421875, 0.007781982421875, ...
embed
37294695_c0
37294695
prolog
0
Title: how to make a string into list with input in prolog Problem title: how to make a string into list with input in prolog Tags: prolog, list Problem: how to make a string into list with input in prolog hello i want to make variable i input with read(X) into list, for example : give_word(Word,Hiddenword):- first_and...
how to make a string into list with input in prolog how to make a string into list with input in prolog prolog list give_word Word Hiddenword first_and_last First Last MiddleLe Le-2 Hidden Firsthalf Give how to make a string into list with input in prolog hello i want to make variable i input with read(X) into list, fo...
[ -0.01904296875, -0.00185394287109375, -0.00616455078125, 0.0186767578125, -0.0164794921875, 0.031005859375, 0.0029754638671875, 0.00146484375, 0.01007080078125, -0.0272216796875, 0.0003910064697265625, -0.0220947265625, -0.0107421875, 0.01287841796875, -0.00970458984375, -0.01013183593...
[ 3642, 3249, 79315, 3934, 5303, 678, 107730, 502, 4867, 23, 8337, 47416, 22543, 72483, 555, 19777, 21672, 5267, 636, 5428, 4200, 77878, 47, 10, 3444, 77336, 17, 12301, 1542, 38937, 76199, 2565, 30816, 15824, 186, 13, 31 ]
[ 0.047393798828125, 0.1119384765625, 0.246337890625, 0.1826171875, 0.2178955078125, 0.0904541015625, 0.2049560546875, 0.1448974609375, 0.22900390625, 0.03759765625, 0.1331787109375, 0.1630859375, 0.134765625, 0.100830078125, 0.0877685546875, 0.0462646484375, 0.039031982421875, 0.062...
embed
73545822_c0
73545822
prolog
0
Title: What does the / slash mean in this Prolog Predicate Problem title: What does the / slash mean in this Prolog Predicate Tags: prolog Problem: What does the / slash mean in this Prolog Predicate Would anyone be able to explain to me what the forward slash '/' means in the context of this Prolog predicate. I've tri...
What does the / slash mean in this Prolog Predicate What does the / slash mean in this Prolog Predicate prolog What Prolog Predicate move_astar Square Path NextSquare SumG NewH Distance What does the / slash mean in this Prolog Predicate Would anyone be able to explain to me what the forward slash '/' means in the cont...
[ 0.016845703125, 0.00244140625, -0.00162506103515625, -0.00072479248046875, -0.0157470703125, 0.0166015625, -0.01226806640625, 0.0024871826171875, 0.0115966796875, -0.0191650390625, 0.0203857421875, 0.013671875, -0.013671875, -0.0303955078125, -0.0162353515625, 0.005126953125, -0.0175...
[ 4865, 14602, 70, 248, 91, 5544, 29459, 23, 903, 1250, 4867, 7145, 2063, 67, 502, 25813, 11, 5613, 68305, 108421, 4997, 94727, 36335, 724, 2356, 841, 154349, 329, 19048, 73342, 2367, 40225, 64, 25, 26950, 43701, 1653, 230596, 44836, 35166,...
[ 0.08544921875, 0.059295654296875, 0.05914306640625, 0.2469482421875, 0.121826171875, 0.265625, 0.1566162109375, 0.051849365234375, 0.10211181640625, 0.186767578125, 0.216552734375, 0.1839599609375, 0.1680908203125, 0.037322998046875, 0.16064453125, 0.1357421875, 0.03204345703125, 0...
embed
22565044_c0
22565044
prolog
0
Title: How can I refractor the display functions? Problem title: How can I refractor the display functions? Tags: prolog Problem: How can I refractor the display functions? I have these display functions: display_siblings(X,Y):- setof(X-Y, (siblings(X,Y), ordered(X-Y)), Sibs), write('The siblings of'), write(X), write(...
How can I refractor the display functions? How can I refractor the display functions? prolog How display_siblings X-Y Sibs Pair display_sisters How can I refractor the display functions? I have these display functions: As you can see only the second argument of setof is changing. Could I make one display function of bo...
[ 0.037109375, -0.001800537109375, 0.0208740234375, 0.00162506103515625, -0.01397705078125, -0.004730224609375, -0.00994873046875, -0.00130462646484375, 0.004302978515625, -0.0072021484375, 0.0233154296875, -0.01495361328125, -0.01226806640625, 0.00075531005859375, 0.017333984375, 0.0289...
[ 11249, 831, 87, 137930, 11, 18770, 44116, 32354, 7, 502, 4867, 76103, 33992, 1193, 9, 1723, 602, 16145, 1342, 481, 172, 37499, 70, 1957, 17932, 10750, 5423, 4390, 151134, 191147, 3249, 1632, 15044, 64093 ]
[ 0.0751953125, 0.06097412109375, 0.04461669921875, 0.1690673828125, 0.1417236328125, 0.20751953125, 0.1968994140625, 0.183349609375, 0.02020263671875, 0.0161285400390625, 0.0927734375, 0.0950927734375, 0.1580810546875, 0.022308349609375, 0.00640869140625, 0.09130859375, 0.101440429687...
embed
56307192_c0
56307192
prolog
0
Title: How to check if all elements in the list of lists are the same except one [Prolog] Problem title: How to check if all elements in the list of lists are the same except one [Prolog] Tags: prolog Problem: How to check if all elements in the list of lists are the same except one [Prolog] I would like to check if th...
How to check if all elements in the list of lists are the same except one [Prolog] How to check if all elements in the list of lists are the same except one [Prolog] prolog How Prolog How to check if all elements in the list of lists are the same except one [Prolog] I would like to check if the elements of an array are...
[ 0.0120849609375, 0.0093994140625, 0.004608154296875, -0.0040283203125, -0.00616455078125, -0.00860595703125, 0.0034027099609375, 0.0069580078125, 0.011962890625, 0.037109375, 0.007415771484375, -0.004486083984375, 0.01263427734375, -0.018310546875, -0.0291748046875, -0.004547119140625,...
[ 11249, 47, 12765, 2174, 756, 80854, 23, 5303, 111, 7, 621, 5701, 40494, 1632, 10752, 4867, 502, 1250, 1884, 10298, 53, 40715, 3501, 757, 106, 12830, 171859, 29367, 990, 22288, 6562, 76104, 161789, 30700 ]
[ 0.03338623046875, 0.03192138671875, 0.1982421875, 0.0911865234375, 0.0894775390625, 0.1893310546875, 0.06317138671875, 0.2132568359375, 0.06378173828125, 0.0811767578125, 0.07012939453125, 0.2115478515625, 0.164794921875, 0.0919189453125, 0.1031494140625, 0.2017822265625, 0.078857421...
embed
44476529_c0
44476529
prolog
0
Title: SWI-Prolog read http header Problem title: SWI-Prolog read http header Tags: swi-prolog, prolog, http Problem: SWI-Prolog read http header I don't fully understand how SWI Prolog handles http. I have the following code which mostly works apart from the get_header/1 . I need to be able to reader the header file o...
SWI-Prolog read http header SWI-Prolog read http header swi-prolog prolog http SWI-Prolog get_header http_read_header http_handler Request http_read_json_dict DictIn handle_dict DictOut reply_json current_input SWI-Prolog read http header I don't fully understand how SWI Prolog handles http. I have the following code w...
[ 0.007049560546875, 0.00177764892578125, 0.00445556640625, 0.01446533203125, -0.015869140625, -0.00909423828125, 0.006591796875, 0.01104736328125, -0.015869140625, -0.06689453125, 0.025146484375, 0.01019287109375, -0.03857421875, -0.015869140625, 0.0242919921875, -0.0081787109375, -0....
[ 159, 38969, 9, 10752, 4867, 12301, 1621, 10336, 56, 91, 2452, 3454, 502, 2046, 31251, 39116, 74258, 853, 75616, 170, 1681, 61669, 60897, 4153, 34831, 79858, 75836, 43581, 28219, 1250, 7, 25632, 18151, 153161, 43240, 34955, 11583, 3871, 1904...
[ 0.0819091796875, 0.2191162109375, 0.05230712890625, 0.15185546875, 0.2125244140625, 0.1845703125, 0.2122802734375, 0.1900634765625, 0.12060546875, 0.0135498046875, 0.1705322265625, 0.0799560546875, 0.08544921875, 0.0711669921875, 0.181884765625, 0.1861572265625, 0.1568603515625, 0....
embed
45117971_c0
45117971
prolog
0
Title: How to get the path of initialization or script files in SWI-Prolog Problem title: How to get the path of initialization or script files in SWI-Prolog Tags: swi-prolog, prolog, filepath Problem: How to get the path of initialization or script files in SWI-Prolog If I run the prolog scripts like this user:/home/u...
How to get the path of initialization or script files in SWI-Prolog How to get the path of initialization or script files in SWI-Prolog swi-prolog prolog filepath How SWI-Prolog init.pl script.pl working_directory source_file How to get the path of initialization or script files in SWI-Prolog If I run the prolog script...
[ 0.0255126953125, 0.00799560546875, -0.0035247802734375, 0.0244140625, -0.0262451171875, -0.0069580078125, 0.0194091796875, -0.00677490234375, 0.0022735595703125, -0.0498046875, 0.01287841796875, 0.0130615234375, -0.0302734375, 0.01611328125, 0.006134033203125, 0.0001220703125, 0.0031...
[ 11249, 2046, 70, 60875, 111, 61475, 47691, 707, 26499, 102158, 159, 38969, 10752, 4867, 91, 2452, 3454, 502, 11435, 128405, 23, 217, 2424, 20697, 80581, 30675, 31344, 29822, 11675, 1884, 903, 831, 35845, 4393, 15700, 936, 29552, 65918, 3871...
[ 0.0283660888671875, 0.117919921875, 0.03411865234375, 0.2392578125, 0.06488037109375, 0.1964111328125, 0.1357421875, 0.04205322265625, 0.2357177734375, 0.1702880859375, 0.08233642578125, 0.2138671875, 0.1485595703125, 0.1885986328125, 0.003265380859375, 0.182373046875, 0.128295898437...
embed
12715293_c0
12715293
prolog
0
Title: Prolog insertion sort Problem title: Prolog insertion sort Tags: prolog, sorting Problem: Prolog insertion sort There is a simple Prolog insertion sort alghoritm: sorting([A|B], Sorted) :- sorting(B, SortedTail), insert(A, SortedTail, Sorted). sorting([], []). insert(A, [B|C], [B|D]) :- A @> B, !, insert(A, C, D...
Prolog insertion sort Prolog insertion sort prolog sorting Prolog Sorted SortedTail Prolog insertion sort There is a simple Prolog insertion sort alghoritm: It does well on normal lists: But I also need to sort sublist of list contains any of them: Is what return now. And what I need to return. So how can I sort sublis...
[ -0.0003108978271484375, -0.00927734375, 0.0286865234375, -0.0002536773681640625, -0.0272216796875, 0.0166015625, -0.035888671875, -0.0174560546875, -0.004547119140625, -0.0238037109375, 0.01055908203125, 0.0089111328125, -0.0191650390625, 0.001251220703125, 0.005126953125, -0.010131835...
[ 1250, 4867, 241860, 12096, 502, 214, 53666, 297, 9874, 379, 8781, 144, 5922, 217, 39, 14602, 5299, 3638, 5303, 3871, 47, 1614, 6562, 111, 70541, 2499, 30646, 5036, 2367, 3642, 831, 129745 ]
[ 0.160888671875, 0.25341796875, 0.2005615234375, 0.2296142578125, 0.125732421875, 0.053070068359375, 0.15771484375, 0.03424072265625, 0.10089111328125, 0.08489990234375, 0.10174560546875, 0.000091552734375, 0.0189361572265625, 0.038330078125, 0.06097412109375, 0.037017822265625, 0.048...
embed
48343766_c0
48343766
prolog
0
Title: dynamically check membership swi-prolog Problem title: dynamically check membership swi-prolog Tags: membership, prolog, dynamic Problem: dynamically check membership swi-prolog Given a list of natural numbers List I want to check if the sums of the elements of each subset are distinct. Initially I used this cod...
dynamically check membership swi-prolog dynamically check membership swi-prolog membership prolog dynamic List Sums Sum Sub sum_list all_distinct dynamically check membership swi-prolog Given a list of natural numbers List I want to check if the sums of the elements of each subset are distinct. Initially I used this co...
[ 0.00341796875, -0.001129150390625, 0.024658203125, 0.017578125, -0.0224609375, -0.0032501220703125, -0.0047607421875, 0.02490234375, 0.02783203125, -0.0255126953125, -0.001434326171875, 0.00286865234375, 0.02734375, -0.010986328125, -0.0002956390380859375, 0.0234375, 0.035400390625, ...
[ 84079, 25958, 12765, 209274, 91, 2452, 3454, 4867, 502, 32036, 36335, 8273, 10554, 6562, 756, 46295, 38893, 5303, 6083, 101935, 3444, 47, 2174, 80854, 12638, 1614, 3509, 117781, 11814, 18151, 5351, 11522, 29806, 14575, 3917, 21771, 74481, 306...
[ 0.2091064453125, 0.0960693359375, 0.2137451171875, 0.247314453125, 0.00494384765625, 0.16845703125, 0.1092529296875, 0.181884765625, 0.0992431640625, 0.1461181640625, 0.1983642578125, 0.1607666015625, 0.208740234375, 0.1693115234375, 0.0904541015625, 0.08062744140625, 0.148681640625,...
embed
58399440_c2
58399440
prolog
2
,Y2,R7,R8,Y3],[B7,B4,B1,B8,b,B2,B9,B6,B3],[W7,O2,O3,W8,o,O6,W9,O8,O9],[O7,O4,O1,Y4,y,Y6,Y7,Y8,Y9],[G1,G2,G3,G4,g,G6,G7,G8,G9]]). m([[W1,W2,W3,W4,w,W6,W7,W8,W9],[R1,R2,R3,R4,r,R6,R7,R8,R9],[B1,B2,B3,B4,b,B6,B7,B8,B9],[O1,O2,O3,O4,o,O6,O7,O8,O9],[Y1,Y2,Y3,Y4,y,Y6,Y7,Y8,Y9],[G1,G2,G3,G4,g,G6,G7,G8,G9]], r, [[G1,W2,W3,G4,w...
,Y2,R7,R8,Y3],[B7,B4,B1,B8,b,B2,B9,B6,B3],[W7,O2,O3,W8,o,O6,W9,O8,O9],[O7,O4,O1,Y4,y,Y6,Y7,Y8,Y9],[G1,G2,G3,G4,g,G6,G7,G8,G9]]). m([[W1,W2,W3,W4,w,W6,W7,W8,W9],[R1,R2,R3,R4,r,R6,R7,R8,R9],[B1,B2,B3,B4,b,B6,B7,B8,B9],[O1,O2,O3,O4,o,O6,O7,O8,O9],[Y1,Y2,Y3,Y4,y,Y6,Y7,Y8,Y9],[G1,G2,G3,G4,g,G6,G7,G8,G9]], r, [[G1,W2,W3,G4,w...
[ -0.018798828125, 0.00144195556640625, 0.01397705078125, 0.0126953125, -0.0022125244140625, -0.01226806640625, -0.01068115234375, -0.00408935546875, 0.006683349609375, 0.043701171875, -0.0025482177734375, 0.0146484375, 0.01458740234375, -0.031494140625, -0.02099609375, -0.00121307373046...
[ 6, 4, 1723, 304, 1052, 966, 1019, 96386, 1065, 571, 617, 418, 275, 1126, 910, 1456, 670, 363, 31, 268, 53, 724, 177, 86245, 194, 347, 132, 434, 42, 1690, 110558, 454, 34 ]
[ 0.1114501953125, 0.135498046875, 0.179931640625, 0.1954345703125, 0.1456298828125, 0.18017578125, 0.2183837890625, 0.216552734375, 0.08404541015625, 0.1019287109375, 0.172607421875, 0.1153564453125, 0.08154296875, 0.21044921875, 0.162353515625, 0.1478271484375, 0.1636962890625, 0.1...
embed
65368998_c0
65368998
prolog
0
Title: Count the number of times a rule is declared - SWIProlog Problem title: Count the number of times a rule is declared - SWIProlog Tags: prolog, swi-prolog Problem: Count the number of times a rule is declared - SWIProlog I'd like to count the number of times a certain rule has been declared. For example "my_rule/...
Count the number of times a rule is declared - SWIProlog Count the number of times a rule is declared - SWIProlog prolog swi-prolog Count SWIProlog my_rule count_myrule Count the number of times a rule is declared - SWIProlog I'd like to count the number of times a certain rule has been declared. For example "my_rule/3...
[ 0.00970458984375, 0.01336669921875, -0.005584716796875, 0.017578125, -0.00173187255859375, 0.009033203125, 0.0003643035888671875, -0.0034332275390625, 0.0157470703125, -0.06494140625, -0.007720947265625, -0.0150146484375, 0.012939453125, 0.01519775390625, 0.0296630859375, 0.00772094726...
[ 108210, 70, 14012, 111, 20028, 10, 79986, 83, 159978, 71, 159, 38969, 10752, 4867, 502, 2452, 3454, 759, 882, 133, 54529, 1176, 1884, 47, 24233, 1556, 2809, 18113, 3444, 15824, 27781, 484, 109109, 91736, 26866, 28219, 7722, 3642, 5941, 76...
[ 0.1947021484375, 0.0006103515625, 0.1424560546875, 0.0357666015625, 0.2362060546875, 0.05657958984375, 0.236572265625, 0.051483154296875, 0.22509765625, 0.131591796875, 0.05255126953125, 0.1744384765625, 0.10137939453125, 0.1575927734375, 0.0875244140625, 0.1717529296875, 0.087097167...
embed
9683776_c0
9683776
prolog
0
Title: Convert Prolog functor to functor with difference lists Problem title: Convert Prolog functor to functor with difference lists Tags: dcg, difference-lists, palindrome, prolog Problem: Convert Prolog functor to functor with difference lists I'm working on my homework for Prolog (SWI) but can't figure out how to g...
Convert Prolog functor to functor with difference lists Convert Prolog functor to functor with difference lists dcg difference-lists palindrome prolog Convert Prolog Middle Convert Prolog functor to functor with difference lists I'm working on my homework for Prolog (SWI) but can't figure out how to get this done: I ha...
[ 0.0205078125, 0.00286865234375, 0.00689697265625, 0.006591796875, 0.0074462890625, 0.028076171875, -0.00244140625, 0.0018157958984375, 0.00543212890625, -0.0281982421875, 0.01434326171875, -0.006256103515625, -0.003997802734375, 0.00775146484375, -0.00390625, -0.010986328125, 0.00445...
[ 1657, 11549, 1250, 4867, 7477, 18770, 47, 678, 60212, 5303, 177, 6562, 17923, 19, 102851, 502, 102256, 20697, 5368, 18244, 100, 38969, 26366, 3642, 16940, 765, 14192, 2174, 34475, 83, 10, 33022, 12477, 15490, 114689, 18113, 3173, 1723, 5874...
[ 0.051300048828125, 0.1517333984375, 0.135986328125, 0.226806640625, 0.17236328125, 0.1856689453125, 0.054656982421875, 0.06787109375, 0.229248046875, 0.2086181640625, 0.0557861328125, 0.1688232421875, 0.1134033203125, 0.0611572265625, 0.204833984375, 0.07196044921875, 0.1136474609375...
embed
36820802_c0
36820802
prolog
0
Title: Prolog union fails Problem title: Prolog union fails Tags: prolog, functional-dependencies, list, unions Problem: Prolog union fails I'm trying to understand the use of union (the built in predicate) in Prolog. In many cases it seems to fail when it should succeed. It seems it has something to do with the order ...
Prolog union fails Prolog union fails prolog functional-dependencies list unions Prolog Prolog union fails I'm trying to understand the use of union (the built in predicate) in Prolog. In many cases it seems to fail when it should succeed. It seems it has something to do with the order of the elements of the lists. All...
[ 0.017578125, 0.036865234375, 0.0224609375, -0.0101318359375, -0.01953125, 0.0035247802734375, -0.01904296875, 0.0031585693359375, -0.000827789306640625, 0.010498046875, 0.00946044921875, -0.00156402587890625, 0.0018157958984375, 0.016845703125, 0.005706787109375, 0.00133514404296875, ...
[ 1250, 4867, 69941, 35782, 502, 123309, 105254, 13, 5303, 4527, 88303, 23, 1653, 2063, 67, 5941, 5608, 214493, 12989, 80854, 35064, 50218, 4420, 8710, 29568, 13695, 214, 959, 7413, 26785, 62 ]
[ 0.145263671875, 0.22802734375, 0.2337646484375, 0.1793212890625, 0.091064453125, 0.1180419921875, 0.10888671875, 0.0067138671875, 0.155517578125, 0.0280914306640625, 0.1708984375, 0.1385498046875, 0.12890625, 0.1614990234375, 0.082275390625, 0.0003662109375, 0.0217437744140625, 0.1...
embed
37906623_c0
37906623
prolog
0
Title: Prolog - backtracking with iterator Problem title: Prolog - backtracking with iterator Tags: prolog, iteration, backtracking Problem: Prolog - backtracking with iterator I have a predicate like: solve(parts(X), Places) :- "iterate Pl from Places to 0", tryPutPart(X, Pl), fail. I want to force the backtracking th...
Prolog - backtracking with iterator Prolog - backtracking with iterator prolog iteration backtracking Places Prolog Prolog - backtracking with iterator I have a predicate like: I want to force the backtracking there, because I want all the possible solutions.(Instead I would have found the place Pl recursively in diffe...
[ 0.003753662109375, 0.015869140625, 0.00015735626220703125, -0.015869140625, -0.0302734375, 0.010986328125, 0.004364013671875, -0.00653076171875, 0.006011962890625, -0.050537109375, -0.0001888275146484375, 0.020751953125, 0.000518798828125, -0.0146484375, 0.0196533203125, -0.00897216796...
[ 1250, 4867, 4420, 125728, 214, 678, 17, 720, 4597, 502, 41076, 87, 765, 1653, 2063, 67, 1884, 3444, 47, 37772, 70, 2685, 6637, 756, 7722, 51347, 824, 14037, 3687, 29016, 195625, 5844, 12921, 54, 209303, 6528, 5303, 140909, 136, 16487, 1...
[ 0.183837890625, 0.2161865234375, 0.2161865234375, 0.271240234375, 0.126708984375, 0.105224609375, 0.0733642578125, 0.223388671875, 0.1856689453125, 0.14892578125, 0.2066650390625, 0.010894775390625, 0.019134521484375, 0.1365966796875, 0.15966796875, 0.0745849609375, 0.1072998046875, ...
embed
20059831_c0
20059831
prolog
0
Title: Finding the k'th occurence of a given element Problem title: Finding the k'th occurence of a given element Tags: prolog Problem: Finding the k'th occurence of a given element I just started in Prolog and have the problem: (a) Given a list L, an object X, and a positive integer K, it returns the positio...
Finding the k'th occurence of a given element Finding the k'th occurence of a given element prolog Finding pos1 NewK ERROR Arguments Finding the k'th occurence of a given element I just started in Prolog and have the problem: So far I have: But I can't figure out why I'm getting: Any help would be much apprec...
[ 0.0037841796875, 0.0228271484375, -0.00003933906555175781, -0.0250244140625, 0.01153564453125, 0.0098876953125, -0.000789642333984375, -0.00860595703125, 0.01239013671875, -0.0169677734375, 0.0230712890625, -0.0186767578125, 0.00396728515625, -0.0037994384765625, 0.00543212890625, 0.00...
[ 26040, 214, 472, 3768, 74, 927, 74918, 6620, 34475, 12830, 70, 502, 4867, 3864, 418, 2356, 605, 151206, 24638, 112140, 25, 26859, 23, 1250, 2967, 2060, 765, 4966, 831, 18, 26366, 1810, 15400, 39, 20949, 4358, 2806, 5045, 77947, 71 ]
[ 0.132080078125, 0.011138916015625, 0.1981201171875, 0.1416015625, 0.0445556640625, 0.2027587890625, 0.204345703125, 0.126953125, 0.0953369140625, 0.1953125, 0.032501220703125, 0.13916015625, 0.2288818359375, 0.12548828125, 0.072265625, 0.112548828125, 0.169189453125, 0.1513671875, ...
embed
8272973_c0
8272973
prolog
0
Title: Working with logical functors in Prolog Problem title: Working with logical functors in Prolog Tags: semantics, ontology, prolog, logic Problem: Working with logical functors in Prolog I want to have logical connectives such as not(X), conj(X, Y), some(Y, K). and I want to be able to iterate over them. So for ex...
Working with logical functors in Prolog Working with logical functors in Prolog semantics ontology prolog logic Working Prolog Working with logical functors in Prolog I want to have logical connectives such as not(X), conj(X, Y), some(Y, K). and I want to be able to iterate over them. So for example I want to be able t...
[ 0.0283203125, 0.0034027099609375, 0.0169677734375, 0.00933837890625, 0.0002994537353515625, 0.0177001953125, 0.01251220703125, -0.03271484375, 0.0003795623779296875, -0.035888671875, -0.0032806396484375, -0.00167083740234375, -0.009765625, -0.01104736328125, 0.01019287109375, 0.0002918...
[ 27985, 678, 62775, 289, 7477, 18770, 1250, 4867, 23, 484, 109109, 3283, 25443, 502, 3444, 765, 37067, 60877, 959, 1542, 158, 170, 990, 3060, 1723, 341, 19048, 17, 8560, 645, 96760, 43452, 3934, 756, 605, 2856, 91084, 4488, 26168, 2965, ...
[ 0.081787109375, 0.0950927734375, 0.1942138671875, 0.1092529296875, 0.1483154296875, 0.1689453125, 0.155029296875, 0.251220703125, 0.001129150390625, 0.06396484375, 0.05865478515625, 0.078369140625, 0.052642822265625, 0.1075439453125, 0.092529296875, 0.04449462890625, 0.1390380859375,...
embed
42730327_c0
42730327
prolog
0
Title: Computing the quotient and remainder of two numbers using the successor representation in prolog Problem title: Computing the quotient and remainder of two numbers using the successor representation in prolog Tags: successor-arithmetics, prolog Problem: Computing the quotient and remainder of two numbers using t...
Computing the quotient and remainder of two numbers using the successor representation in prolog Computing the quotient and remainder of two numbers using the successor representation in prolog successor-arithmetics prolog the Computing greater_than Computing the quotient and remainder of two numbers using the successo...
[ -0.00146484375, 0.0283203125, -0.010009765625, 0.00213623046875, -0.0181884765625, -0.01312255859375, 0.00156402587890625, 0.0185546875, 0.009765625, -0.05126953125, -0.0030364990234375, 0.00830078125, -0.00689697265625, 0.00775146484375, 0.010009765625, -0.015869140625, 0.0022430419...
[ 159415, 214, 41502, 18750, 136, 47143, 820, 6626, 101935, 17368, 39457, 42, 18811, 502, 4867, 8962, 282, 117396, 21732, 1653, 2063, 1636, 1001, 36663, 29479, 20028 ]
[ 0.204345703125, 0.02886962890625, 0.15185546875, 0.215576171875, 0.10400390625, 0.1580810546875, 0.14306640625, 0.120849609375, 0.1268310546875, 0.06982421875, 0.1781005859375, 0.0751953125, 0.1693115234375, 0.1248779296875, 0.219482421875, 0.07476806640625, 0.0194854736328125, 0.1...
embed
52897182_c0
52897182
prolog
0
Title: comparing values of multiple facts with each other in prolog Problem title: comparing values of multiple facts with each other in prolog Tags: prolog Problem: comparing values of multiple facts with each other in prolog workers(name(nasrin,sultana),eng,address(dhanmondi,city1,bangladesh),40). workers(name(kabita...
comparing values of multiple facts with each other in prolog comparing values of multiple facts with each other in prolog prolog city1 city2 comparing values of multiple facts with each other in prolog my query is : Who lives in the same city?i have written a rule knowing that it ain't going to work for this query but ...
[ 0.00872802734375, -0.01025390625, 0.003875732421875, 0.004791259765625, -0.0093994140625, -0.01214599609375, 0.0034332275390625, 0.021484375, 0.0159912109375, -0.0206298828125, 0.007415771484375, 0.020751953125, 0.0189208984375, -0.010498046875, -0.0341796875, -0.003997802734375, -0....
[ 37397, 214, 142424, 48716, 15824, 678, 12638, 3789, 23, 502, 4867, 26349, 418, 304, 111, 41, 1294, 40469, 60742, 5701, 59121, 79986, 141956, 73, 18, 4488, 152018 ]
[ 0.196044921875, 0.05633544921875, 0.1763916015625, 0.164794921875, 0.1627197265625, 0.10791015625, 0.04058837890625, 0.1083984375, 0.1180419921875, 0.1666259765625, 0.2081298828125, 0.160888671875, 0.0888671875, 0.1640625, 0.002471923828125, 0.07427978515625, 0.071533203125, 0.1345...
embed
37001812_c0
37001812
prolog
0
Title: how to transpose multidimensional (3D) matrix in prolog Problem title: how to transpose multidimensional (3D) matrix in prolog Tags: transpose, prolog, matrix Problem: how to transpose multidimensional (3D) matrix in prolog I want to transpose matrix in Prolog. I'm new in Prolog and so far I know how to do it fo...
how to transpose multidimensional (3D) matrix in prolog how to transpose multidimensional (3D) matrix in prolog transpose prolog matrix how to transpose multidimensional (3D) matrix in prolog I want to transpose matrix in Prolog. I'm new in Prolog and so far I know how to do it for two dimensional matrix but not for mo...
[ 0.0118408203125, 0.004486083984375, 0.00020503997802734375, -0.005157470703125, -0.004241943359375, -0.01318359375, -0.01519775390625, -0.0023956298828125, -0.00518798828125, -0.036865234375, 0.01141357421875, 0.004302978515625, -0.007232666015625, 0.0021209716796875, -0.01531982421875, ...
[ 3642, 47, 3900, 78381, 6024, 157955, 6896, 397, 50944, 425, 23, 502, 4867, 3444, 1250, 3525, 54, 6626, 1286, 26484, 6305, 77947, 27781, 107730, 155761, 617, 104629, 145180, 1662, 1530, 140992, 163324, 963, 71928, 910 ]
[ 0.07177734375, 0.00787353515625, 0.1724853515625, 0.1895751953125, 0.1220703125, 0.189208984375, 0.1396484375, 0.161865234375, 0.17822265625, 0.09716796875, 0.05828857421875, 0.128173828125, 0.2099609375, 0.032867431640625, 0.130859375, 0.00286865234375, 0.012481689453125, 0.021743...
embed
72380518_c1
72380518
prolog
1
, doctor), adventure(C, T), hunter(C, colonel), animal(C, rhino), adventure(D, T), place(D, central_africa), tool(D, bare_hands), adventure(E, T), place(E, north_africa), animal(E, bison), adventure(F, T), hunter(F, fire_chief), place(F, south_africa), adventure(G, T), hunter(G, captain), animal(G, puma), tool(G, empty...
, doctor), adventure(C, T), hunter(C, colonel), animal(C, rhino), adventure(D, T), place(D, central_africa), tool(D, bare_hands), adventure(E, T), place(E, north_africa), animal(E, bison), adventure(F, T), hunter(F, fire_chief), place(F, south_africa), adventure(G, T), hunter(G, captain), animal(G, puma), tool(G, empty...
[ 0.0015716552734375, 0.01336669921875, -0.00335693359375, 0.0201416015625, -0.01177978515625, -0.00225830078125, -0.017333984375, -0.01324462890625, 0.006622314453125, -0.031005859375, -0.01239013671875, 0.017333984375, -0.01348876953125, 0.00726318359375, 0.006439208984375, 0.004455566...
[ 6, 4, 22072, 247, 156578, 132, 441, 384, 1926, 720, 46512, 583, 26249, 1690, 4505, 31, 397, 3687, 9879, 11, 72428, 55516, 3059, 12336, 647, 144477, 2464, 191, 919, 11476, 206, 29469, 127067, 724, 84495, 143926, 201505, 6967, 841, 65272, ...
[ 0.10760498046875, 0.0625, 0.23193359375, 0.1131591796875, 0.25, 0.0266876220703125, 0.06689453125, 0.09637451171875, 0.1505126953125, 0.149169921875, 0.0941162109375, 0.106689453125, 0.2274169921875, 0.000701904296875, 0.16259765625, 0.157958984375, 0.054962158203125, 0.16125488281...
embed
10364202_c0
10364202
prolog
0
Title: Prolog - return whole clause Problem title: Prolog - return whole clause Tags: prolog, clause Problem: Prolog - return whole clause I have some basic formulas like female(camilla). female(diana). ... parent(person, child). ... and predicate language/2 that specifies which predicates will I be using: langugage(fe...
Prolog - return whole clause Prolog - return whole clause prolog clause Prolog body_lit Prolog - return whole clause I have some basic formulas like and predicate language/2 that specifies which predicates will I be using: What I have to do is to create predicate called body_lit/1 that returns whole clauses specified i...
[ 0.0089111328125, -0.007232666015625, 0.00445556640625, 0.0228271484375, -0.0174560546875, 0.0198974609375, 0.01318359375, -0.00054168701171875, -0.0002002716064453125, -0.0625, -0.00118255615234375, 0.00921630859375, -0.0155029296875, -0.01123046875, 0.0341796875, -0.00080108642578125,...
[ 1250, 4867, 30646, 28271, 70731, 13, 502, 14361, 4353, 62822, 26168, 1653, 2063, 67, 46876, 12477, 58735, 1636, 17368, 28282, 11583, 3714, 3871, 4527, 11782, 64, 19, 32354, 7477, 18770, 18113, 43240, 45767, 26366, 64457, 9351 ]
[ 0.166748046875, 0.2225341796875, 0.1998291015625, 0.1881103515625, 0.2144775390625, 0.05755615234375, 0.131103515625, 0.1212158203125, 0.170166015625, 0.0745849609375, 0.14306640625, 0.1302490234375, 0.1846923828125, 0.0562744140625, 0.109619140625, 0.08905029296875, 0.1044921875, ...
embed
27273145_c0
27273145
prolog
0
Title: prolog counting occurrences knowledge base Problem title: prolog counting occurrences knowledge base Tags: count, prolog Problem: prolog counting occurrences knowledge base % Knowledgebase parents (pedro, jose). parents (pedro, john). parents (pedro, mary). parent (john, leidis). parent (john, marten). parents (...
prolog counting occurrences knowledge base prolog counting occurrences knowledge base count prolog Knowledgebase Cant_hijos Cant Qty prolog counting occurrences knowledge base It has a knowledge base as above in which parents interact and children (the first element is the father and the second son), is to develop a pr...
[ 0.0286865234375, 0.00144195556640625, -0.008544921875, 0.00946044921875, -0.003814697265625, 0.009765625, -0.0037994384765625, 0.01312255859375, 0.01171875, -0.06689453125, -0.0107421875, -0.042236328125, 0.0004444122314453125, 0.035888671875, 0.0111083984375, -0.019287109375, -0.000...
[ 502, 4867, 54529, 214, 74918, 42, 69098, 51359, 3647, 191428, 37382, 4171, 18, 127, 8648, 2396, 939, 1556, 237, 36917, 27863, 78974, 136, 20020, 5117, 12830, 83, 67373, 17932, 775, 47, 85493, 19542, 74694, 450, 6637, 49129, 176377, 5941, ...
[ 0.153564453125, 0.2237548828125, 0.2122802734375, 0.0609130859375, 0.1513671875, 0.1165771484375, 0.040191650390625, 0.164794921875, 0.208251953125, 0.08837890625, 0.1395263671875, 0.1510009765625, 0.058868408203125, 0.08270263671875, 0.21484375, 0.0906982421875, 0.1485595703125, 0...
embed
67279211_c0
67279211
prolog
0
Title: Prolog pathfinder Problem title: Prolog pathfinder Tags: prolog Problem: Prolog pathfinder I'm interested in pathfinder stuff and found a cool example on a site from 2011 but there isn't any explanation for the code. I understand what it does but don't understand how the steps work. So, for example these are the...
Prolog pathfinder Prolog pathfinder prolog Prolog Prolog pathfinder I'm interested in pathfinder stuff and found a cool example on a site from 2011 but there isn't any explanation for the code. I understand what it does but don't understand how the steps work. So, for example these are the edges: and with this I can te...
[ 0.032958984375, 0.0159912109375, 0.010498046875, 0.000888824462890625, 0.002716064453125, 0.0220947265625, -0.0101318359375, -0.00714111328125, -0.0025787353515625, -0.047119140625, 0.0074462890625, -0.020263671875, -0.032470703125, -0.00083160400390625, 0.01123046875, 0.0164794921875,...
[ 1250, 4867, 60875, 168719, 502, 60892, 41884, 21185, 27781, 1295, 1392, 187136, 18151, 28219, 14602, 18, 3642, 98441, 4488, 6097, 121303, 7, 831, 14192, 2174, 2685, 83, 17721, 2856, 140992, 903, 442, 66161, 4865, 378, 1542, 4, 1723, 54, 5...
[ 0.1357421875, 0.21337890625, 0.22998046875, 0.2607421875, 0.1015625, 0.073486328125, 0.0203399658203125, 0.10595703125, 0.155517578125, 0.006378173828125, 0.10394287109375, 0.12548828125, 0.1392822265625, 0.0806884765625, 0.08673095703125, 0.002960205078125, 0.06646728515625, 0.225...
embed
41671383_c0
41671383
prolog
0
Title: if list is ordered return true else if list is not ordered sort the list Problem title: if list is ordered return true else if list is not ordered sort the list Tags: prolog Problem: if list is ordered return true else if list is not ordered sort the list i want to write a program that get a list as input and is...
if list is ordered return true else if list is not ordered sort the list if list is ordered return true else if list is not ordered sort the list prolog if list is ordered return true else if list is not ordered sort the list i want to write a program that get a list as input and is list is ordered return ture and if l...
[ 0.0169677734375, 0.005615234375, 0.01300048828125, 0.01043701171875, -0.00750732421875, 0.0225830078125, -0.0081787109375, -0.00860595703125, -0.0108642578125, 0.0228271484375, 0.0107421875, 0.01397705078125, -0.01171875, -0.017333984375, 0.00653076171875, 0.000606536865234375, 0.012...
[ 2174, 5303, 83, 12989, 297, 30646, 29568, 37076, 959, 12096, 502, 4867, 3444, 33022, 1528, 2046, 237, 107730, 6644, 98320, 120262, 154663, 24862, 3134, 140992, 373, 73163, 62351, 143045, 56, 831, 18, 42564, 25842, 5351, 4358 ]
[ 0.0904541015625, 0.238525390625, 0.06878662109375, 0.2685546875, 0.16015625, 0.215576171875, 0.2171630859375, 0.15478515625, 0.170166015625, 0.2332763671875, 0.105224609375, 0.1644287109375, 0.07177734375, 0.135986328125, 0.161376953125, 0.0253448486328125, 0.0482177734375, 0.17822...
embed
15178848_c0
15178848
prolog
0
Title: Prolog: using bagof Problem title: Prolog: using bagof Tags: prolog Problem: Prolog: using bagof Basically I've defined a predicate to find all 'next possible states' from a current state, however I have to use the built-in bagof predicate to unify the list of all these states, however when I call it in the comm...
Prolog: using bagof Prolog: using bagof prolog bagof Prolog Prolog: using bagof Basically I've defined a predicate to find all 'next possible states' from a current state, however I have to use the built-in bagof predicate to unify the list of all these states, however when I call it in the command window I get the err...
[ 0.002227783203125, 0.0031585693359375, -0.005157470703125, 0.0225830078125, -0.01416015625, 0.0198974609375, -0.0257568359375, 0.00142669677734375, 0.002777099609375, -0.0634765625, -0.00555419921875, -0.02099609375, -0.0004405975341796875, -0.02734375, 0.00174713134765625, 0.010559082...
[ 1250, 4867, 17368, 41780, 420, 502, 61924, 1653, 2063, 67, 7413, 756, 86, 29062, 7722, 117249, 1295, 43581, 11341, 4527, 88303, 73, 51, 40383, 5303, 11782, 75101, 76896, 18499, 6056, 111, 7964, 177261, 1152, 21896, 11737, 195625, 19111, 204...
[ 0.13232421875, 0.1993408203125, 0.07574462890625, 0.1917724609375, 0.2314453125, 0.11962890625, 0.0936279296875, 0.1280517578125, 0.1688232421875, 0.0750732421875, 0.08935546875, 0.06805419921875, 0.06427001953125, 0.1363525390625, 0.1793212890625, 0.1614990234375, 0.0496826171875, ...
embed
27258188_c0
27258188
prolog
0
Title: Prolog : eliminating cycles from indirect relation Problem title: Prolog : eliminating cycles from indirect relation Tags: transitive-closure, prolog Problem: Prolog : eliminating cycles from indirect relation I have a list of user facts defined as: user(@michael). user(@ana). user(@bob). user(@george). user(@jo...
Prolog : eliminating cycles from indirect relation Prolog : eliminating cycles from indirect relation transitive-closure prolog indirect Prolog Prolog : eliminating cycles from indirect relation I have a list of user facts defined as: and so on. Furthermore, I have a set of facts as: I am trying to write a relation ind...
[ 0.0167236328125, 0.000469207763671875, 0.023193359375, 0.0272216796875, 0.0089111328125, -0.0157470703125, -0.021484375, 0.006683349609375, -0.00823974609375, -0.046630859375, 0.00055694580078125, 0.0211181640625, -0.0216064453125, 0.018798828125, 0.027587890625, 0.01171875, -0.00073...
[ 1250, 4867, 27169, 1916, 105823, 7, 1295, 116361, 41911, 62621, 170224, 502, 10, 5303, 38937, 15824, 61924, 31577, 33022, 65918, 418, 17727, 14192, 28960, 5442, 959, 19048, 187830, 238, 91582, 27781, 4053, 11, 583, 3877, 21895, 1221, 22304, ...
[ 0.1710205078125, 0.251220703125, 0.16943359375, 0.044219970703125, 0.26513671875, 0.1182861328125, 0.0736083984375, 0.265869140625, 0.2181396484375, 0.1431884765625, 0.167724609375, 0.1273193359375, 0.01324462890625, 0.0579833984375, 0.194580078125, 0.1712646484375, 0.09234619140625,...
embed
49484183_c0
49484183
prolog
0
Title: If-Then-Else Statements in Prolog Problem title: If-Then-Else Statements in Prolog Tags: prolog Problem: If-Then-Else Statements in Prolog I know that the If-Then-Else structure in Prolog is (Condition) -> Then block ; Else Block. But the first if-then-else condition is just showing me false and not letting the ...
If-Then-Else Statements in Prolog If-Then-Else Statements in Prolog prolog If-Then-Else Statements Prolog Condition Then Block Temp Median If-Then-Else Statements in Prolog I know that the If-Then-Else structure in Prolog is But the first if-then-else condition is just showing me false and not letting the other stateme...
[ 0.0198974609375, 0.021240234375, 0.0032958984375, 0.013427734375, 0.0194091796875, 0.0107421875, 0.002197265625, 0.0089111328125, 0.00634765625, 0.0198974609375, -0.0021514892578125, -0.01446533203125, 0.019287109375, -0.01409912109375, 0.017333984375, 0.006561279296875, 0.0045776367...
[ 4263, 3957, 19, 7623, 184, 22836, 9035, 1250, 4867, 502, 46347, 80231, 37446, 4794, 45646, 5117, 2174, 92733, 5557, 35431, 141377, 98320, 959, 95, 19514, 3789, 63805, 71924, 144681, 44691, 18151, 158012, 124519, 1193, 83, 990, 113292, 37076, ...
[ 0.169189453125, 0.1153564453125, 0.1175537109375, 0.1474609375, 0.0948486328125, 0.1619873046875, 0.0916748046875, 0.1336669921875, 0.2347412109375, 0.0921630859375, 0.138916015625, 0.1639404296875, 0.15380859375, 0.0631103515625, 0.14306640625, 0.070556640625, 0.1793212890625, 0.1...
embed
20499622_c0
20499622
prolog
0
Title: In PROLOG, How can I use assert recursively without getting 'true' result? Problem title: In PROLOG, How can I use assert recursively without getting 'true' result? Tags: prolog, prolog-assert Problem: In PROLOG, How can I use assert recursively without getting 'true' result? I'm planning to ...
In PROLOG, How can I use assert recursively without getting 'true' result? In PROLOG, How can I use assert recursively without getting 'true' result? prolog prolog-assert PROLOG How In PROLOG, How can I use assert recursively without getting 'true' result? I'm planning to make new facts based on exi...
[ 0.01513671875, 0.01336669921875, 0.006378173828125, 0.025146484375, -0.0169677734375, -0.0048828125, 0.000972747802734375, 0.0106201171875, -0.0002899169921875, -0.0218505859375, 0.0257568359375, 0.00180816650390625, -0.0302734375, 0.015869140625, 0.015380859375, 0.00927734375, 0.037...
[ 360, 10514, 47510, 11249, 831, 4527, 237, 33657, 195625, 5844, 538, 15490, 20949, 3768, 9774, 13, 16750, 502, 4867, 162, 58136, 3525, 15824, 35509, 144573, 17368, 14012, 7228, 2101, 11417, 40, 46029, 4759, 98441, 5670, 124962, 27875, 38969, ...
[ 0.044952392578125, 0.171142578125, 0.2275390625, 0.058807373046875, 0.052734375, 0.1351318359375, 0.1182861328125, 0.27099609375, 0.224609375, 0.155029296875, 0.0213775634765625, 0.1436767578125, 0.044708251953125, 0.0789794921875, 0.1632080078125, 0.056640625, 0.1488037109375, 0.1...
embed
8896937_c0
8896937
prolog
0
Title: Prolog Code Not Working Problem title: Prolog Code Not Working Tags: prolog Problem: Prolog Code Not Working I have the following code in prolog to produce a path from one node to other but I can't see my results on the screen. I just get true as an answer. The last variable name doesn't bind to the results: edg...
Prolog Code Not Working Prolog Code Not Working prolog Prolog Not Working path_1 Path last_element NewP Prolog Code Not Working I have the following code in prolog to produce a path from one node to other but I can't see my results on the screen. I just get true as an answer. The last variable name doesn't bind to the ...
[ 0.0198974609375, 0.020263671875, 0.01129150390625, 0.000911712646484375, -0.0108642578125, 0.028564453125, -0.03466796875, -0.00799560546875, 0.01043701171875, -0.0296630859375, 0.00135040283203125, -0.0169677734375, -0.0164794921875, 0.01177978515625, 0.00885009765625, -0.001998901367...
[ 1250, 4867, 28864, 11205, 27985, 214, 502, 60875, 115187, 108421, 4568, 62766, 2356, 683, 25632, 18151, 27489, 1295, 1632, 110, 112, 47, 3789, 1284, 831, 18, 1957, 50339, 49119, 29568, 35166, 77336, 9351, 22027, 68557, 3444, 2046, 341, 71, ...
[ 0.1962890625, 0.280029296875, 0.2149658203125, 0.1292724609375, 0.1666259765625, 0.034881591796875, 0.1522216796875, 0.2239990234375, 0.072509765625, 0.1851806640625, 0.162353515625, 0.171630859375, 0.12109375, 0.1378173828125, 0.07391357421875, 0.1689453125, 0.1187744140625, 0.078...
embed
71298345_c0
71298345
prolog
0
Title: Reverse List without duplicates ( convert it into Set ) -> Prolog Problem title: Reverse List without duplicates ( convert it into Set ) -> Prolog Tags: list, prolog, set Problem: Reverse List without duplicates ( convert it into Set ) -> Prolog I need to delete all duplicates from a list and then show it ...
Reverse List without duplicates ( convert it into Set ) -> Prolog Reverse List without duplicates ( convert it into Set ) -> Prolog list prolog set Reverse List Set Prolog Reverse List without duplicates ( convert it into Set ) -> Prolog I need to delete all duplicates from a list and then show it in reverse orde...
[ -0.00775146484375, 0.0400390625, 0.0155029296875, 0.004791259765625, -0.018310546875, 0.01239013671875, 0.0000209808349609375, 0.01544189453125, 0.003631591796875, -0.00921630859375, -0.01171875, 0.0322265625, 0.0098876953125, -0.0013427734375, 0.0012969970703125, 0.040771484375, 0.0...
[ 853, 37676, 32036, 15490, 171763, 1636, 96760, 3934, 19943, 5386, 1250, 4867, 5303, 502, 5423, 3871, 47, 154109, 756, 1295, 7639, 442, 23, 39531, 184, 12989, 2060, 765, 140992, 83, 903, 25647 ]
[ 0.1038818359375, 0.265625, 0.222900390625, 0.094970703125, 0.2122802734375, 0.10693359375, 0.09210205078125, 0.03314208984375, 0.2027587890625, 0.0292205810546875, 0.130126953125, 0.2042236328125, 0.21044921875, 0.09619140625, 0.13720703125, 0.10406494140625, 0.01043701171875, 0.21...
embed
30114309_c0
30114309
prolog
0
Title: How do I keep track of values in Prolog? Problem title: How do I keep track of values in Prolog? Tags: prolog, list Problem: How do I keep track of values in Prolog? I am new to Prolog and am having some difficulties coming from OOP. I need to recursively run through some characters, but remember what I have gon...
How do I keep track of values in Prolog? How do I keep track of values in Prolog? prolog list How Prolog How do I keep track of values in Prolog? I am new to Prolog and am having some difficulties coming from OOP. I need to recursively run through some characters, but remember what I have gone through. In OOP I would j...
[ 0.01361083984375, 0.005523681640625, 0.019287109375, 0.00445556640625, -0.009521484375, -0.00005173683166503906, 0.009765625, 0.01324462890625, 0.0172119140625, -0.030517578125, 0.00066375732421875, -0.00469970703125, -0.00421142578125, 0.00897216796875, 0.0034332275390625, 0.006439208...
[ 11249, 54, 87, 13695, 28560, 111, 142424, 23, 1250, 4867, 502, 5303, 3525, 34844, 180, 20880, 195625, 5844, 11675, 8305, 124850, 37629, 765, 74955, 28282, 10298, 53, 6562, 23937, 11814, 12765, 47, 1957, 2367, 272, 21771, 2967, 3444, 5423, ...
[ 0.101318359375, 0.010833740234375, 0.01007080078125, 0.173583984375, 0.252685546875, 0.152587890625, 0.2432861328125, 0.06787109375, 0.18994140625, 0.2469482421875, 0.122802734375, 0.143798828125, 0.0217742919921875, 0.0064697265625, 0.0240325927734375, 0.1602783203125, 0.09106445312...
embed
59024004_c0
59024004
prolog
0
Title: Is this logically and syntactically correct -- Nested Fact? Problem title: Is this logically and syntactically correct -- Nested Fact? Tags: logic, prolog, swi-prolog-for-sharing Problem: Is this logically and syntactically correct -- Nested Fact? I am trying to write the rule that D is my(me's) son-in-law if th...
Is this logically and syntactically correct -- Nested Fact? Is this logically and syntactically correct -- Nested Fact? logic prolog swi-prolog-for-sharing Nested Fact son_in_law Is this logically and syntactically correct -- Nested Fact? I am trying to write the rule that D is my(me's) son-in-law if they are male and ...
[ -0.00933837890625, 0.00982666015625, -0.00390625, 0.01092529296875, 0.0076904296875, 0.029052734375, -0.01129150390625, -0.01953125, 0.006195068359375, -0.03515625, -0.01312255859375, -0.0201416015625, -0.01300048828125, 0.0223388671875, 0.011474609375, 0.001068115234375, 0.006652832...
[ 2071, 903, 12684, 71407, 136, 6002, 18, 47013, 26785, 28701, 71, 132640, 62775, 502, 4867, 91, 2452, 3454, 2420, 2852, 775, 73, 19729, 31577, 33022, 79986, 450, 391, 83, 759, 282, 9, 2174, 11280, 76849, 5732, 4032, 111, 18499, 11675, 11...
[ 0.051422119140625, 0.1107177734375, 0.1943359375, 0.1405029296875, 0.1112060546875, 0.142822265625, 0.1007080078125, 0.1279296875, 0.219970703125, 0.269287109375, 0.1754150390625, 0.267333984375, 0.174560546875, 0.1282958984375, 0.172607421875, 0.0226593017578125, 0.197021484375, 0...
embed
25578215_c0
25578215
prolog
0
Title: Prolog Program Out of Global Stack Error Problem title: Prolog Program Out of Global Stack Error Tags: prolog, out-of-memory, error-handling, proof Problem: Prolog Program Out of Global Stack Error I am trying a theorem proving program. But Rule 4 seems to be badly implemented. % delete del(X, [X | Tail], Tail)....
Prolog Program Out of Global Stack Error Prolog Program Out of Global Stack Error prolog out-of-memory error-handling proof Prolog Program Out Global Stack Error Tail Tail1 Rule Prolog Program Out of Global Stack Error I am trying a theorem proving program. But Rule 4 seems to be badly implemented. prove([[p] seq [q]])...
[ 0.0242919921875, 0.02734375, -0.01409912109375, 0.017333984375, -0.0022125244140625, 0.008056640625, -0.0260009765625, 0.0264892578125, 0.00830078125, -0.037109375, 0.00823974609375, -0.009765625, -0.01434326171875, -0.010009765625, 0.030517578125, 0.015869140625, 0.00189208984375, ...
[ 1250, 4867, 7663, 13538, 111, 13453, 6512, 2594, 212059, 502, 1810, 4390, 109005, 18499, 54885, 98869, 1218, 379, 418, 139118, 31577, 58391, 1528, 201, 37202, 6494, 29479, 23534, 254, 40, 864, 155370, 98320, 26785, 1690, 4966, 707, 7964, 17...
[ 0.1712646484375, 0.255615234375, 0.210205078125, 0.1728515625, 0.1602783203125, 0.2220458984375, 0.2060546875, 0.1087646484375, 0.201416015625, 0.14013671875, 0.087158203125, 0.1297607421875, 0.1470947265625, 0.1787109375, 0.132080078125, 0.1318359375, 0.135986328125, 0.11047363281...
embed
30824700_c0
30824700
prolog
0
Title: How does pruning choice points in the code below make it more efficient (Prolog)? Problem title: How does pruning choice points in the code below make it more efficient (Prolog)? Tags: prolog, prolog-cut Problem: How does pruning choice points in the code below make it more efficient (Prolog)? In the code given ...
How does pruning choice points in the code below make it more efficient (Prolog)? How does pruning choice points in the code below make it more efficient (Prolog)? prolog prolog-cut How Prolog agent_do_moves solve_task Task Cost agent_current_position solve_task_a _NewPos _Init Path How does pruning choice points in th...
[ -0.003173828125, 0.03369140625, 0.020263671875, 0.039306640625, -0.020263671875, 0.03466796875, -0.007354736328125, 0.01434326171875, 0.02001953125, -0.02294921875, -0.024169921875, 0.028564453125, -0.000881195068359375, -0.0031890869140625, 0.00127410888671875, 0.0079345703125, 0.02...
[ 11249, 14602, 25230, 592, 44126, 26847, 18151, 35064, 3249, 442, 1286, 93766, 10752, 4867, 502, 9, 19774, 1250, 23882, 246, 432, 3132, 86869, 1073, 92, 9598, 63099, 163812, 40322, 11, 46568, 7192, 7, 4153, 217, 108421, 2685, 70, 711, 15, ...
[ 0.0994873046875, 0.048492431640625, 0.2269287109375, 0.139404296875, 0.230712890625, 0.212890625, 0.13818359375, 0.11474609375, 0.0899658203125, 0.004791259765625, 0.164794921875, 0.255615234375, 0.1561279296875, 0.260498046875, 0.155517578125, 0.00634765625, 0.1949462890625, 0.189...
embed
50299950_c0
50299950
prolog
0
Title: Recursively checking if all elements in a list are a certain value in Prolog Problem title: Recursively checking if all elements in a list are a certain value in Prolog Tags: prolog, list, recursion Problem: Recursively checking if all elements in a list are a certain value in Prolog I have defined it as follows...
Recursively checking if all elements in a list are a certain value in Prolog Recursively checking if all elements in a list are a certain value in Prolog prolog list recursion Recursively Prolog Recursively checking if all elements in a list are a certain value in Prolog I have defined it as follows in Prolog: It does ...
[ -0.0064697265625, -0.003631591796875, 0.00787353515625, 0.0201416015625, 0.006927490234375, 0.01483154296875, 0.01055908203125, -0.010498046875, 0.007476806640625, 0.0162353515625, 0.007415771484375, -0.01275634765625, -0.01385498046875, 0.021484375, 0.00165557861328125, 0.000583648681...
[ 853, 48650, 5844, 175199, 2174, 756, 80854, 5303, 621, 24233, 34292, 1250, 4867, 23, 502, 195625, 1830, 61924, 14602, 3444, 12765, 55769, 12830, 62816, 10, 30646, 29568, 98320, 201505, 2301, 18, 4527, 3647, 7225, 76104, 15490 ]
[ 0.056396484375, 0.1885986328125, 0.120849609375, 0.2303466796875, 0.105712890625, 0.1248779296875, 0.183837890625, 0.1861572265625, 0.078125, 0.1077880859375, 0.1851806640625, 0.1510009765625, 0.232177734375, 0.0570068359375, 0.09454345703125, 0.2213134765625, 0.1162109375, 0.05572...
embed
14387539_c0
14387539
prolog
0
Title: Prolog - omit all primary numbers in range [N-1,2] Problem title: Prolog - omit all primary numbers in range [N-1,2] Tags: primes, prolog Problem: Prolog - omit all primary numbers in range [N-1,2] I trying to write a function - noPrime(X,Result) which gives a list of all the non-primary number in range [X-1,2] ...
Prolog - omit all primary numbers in range [N-1,2] Prolog - omit all primary numbers in range [N-1,2] primes prolog Prolog N-1 Result X-1 Rest NewRest Prolog - omit all primary numbers in range [N-1,2] I trying to write a function - noPrime(X,Result) which gives a list of all the non-primary number in range [X-1,2] . F...
[ -0.0283203125, 0.02783203125, 0.0185546875, -0.011962890625, 0.01263427734375, 0.02392578125, 0.01434326171875, -0.0018768310546875, 0.0084228515625, -0.00933837890625, -0.00115203857421875, 0.00640869140625, -0.01458740234375, 0.00811767578125, 0.0025177001953125, 0.030517578125, 0....
[ 1250, 4867, 171, 217, 756, 158978, 101935, 37457, 839, 133063, 20809, 502, 541, 5759, 126684, 1193, 49756, 2356, 1052, 525, 23, 31577, 33022, 32354, 110, 145111, 13, 132, 1542, 4332, 7, 7136, 76199, 5303, 351, 44526, 1294, 14012, 2060, 37...
[ 0.1719970703125, 0.253662109375, 0.1302490234375, 0.109130859375, 0.0601806640625, 0.1671142578125, 0.1588134765625, 0.1458740234375, 0.043487548828125, 0.14306640625, 0.170654296875, 0.1302490234375, 0.0263824462890625, 0.092041015625, 0.212158203125, 0.0716552734375, 0.142456054687...
embed
63800032_c1
63800032
prolog
1
Stack sizes: local: 0.9Gb, global: 84.2Mb, trail: 0Kb ERROR: Stack depth: 11,028,501, last-call: 0%, Choice points: 12 ERROR: Probable infinite recursion (cycle): ERROR: [11,028,501] user:travel_to(raglan, _22060066) ERROR: [11,028,500] user:travel_to(raglan, _22060086) This should be false: ?- travel_to(losAngeles,me...
Stack sizes: local: 0.9Gb, global: 84.2Mb, trail: 0Kb ERROR: Stack depth: 11,028,501, last-call: 0%, Choice points: 12 ERROR: Probable infinite recursion (cycle): ERROR: [11,028,501] user:travel_to(raglan, _22060066) ERROR: [11,028,500] user:travel_to(raglan, _22060086) This should be false: ?- travel_to(losAngeles,me...
[ 0.00421142578125, 0.01519775390625, -0.013427734375, 0.006500244140625, -0.01507568359375, 0.0019683837890625, -0.0157470703125, -0.005859375, 0.017822265625, -0.04541015625, -0.00860595703125, 0.008056640625, -0.00823974609375, 0.005401611328125, 0.033447265625, 0.005126953125, 0.01...
[ 6512, 2594, 13267, 7, 4000, 6, 143161, 724, 275, 7964, 382, 117904, 147197, 141037, 757, 151206, 24638, 168867, 12, 534, 9550, 151003, 6746, 4568, 85763, 83137, 181948, 26847, 427, 1250, 2886, 54241, 13, 195625, 1830, 75457, 206808, 3882, 2...
[ 0.23828125, 0.1976318359375, 0.17626953125, 0.008148193359375, 0.1549072265625, 0.023193359375, 0.14697265625, 0.088134765625, 0.156494140625, 0.166748046875, 0.05218505859375, 0.09033203125, 0.13720703125, 0.26416015625, 0.0787353515625, 0.1864013671875, 0.0814208984375, 0.2731933...
embed
21328877_c0
21328877
prolog
0
Title: Prolog no operand Predicates Problem title: Prolog no operand Predicates Tags: prolog Problem: Prolog no operand Predicates I am examining a Prolog example as a tutorial. In this example I have a predicate with Zero operand like this: print_all_solutions :- findall(_,print_solution,_). how can I call print_all_s...
Prolog no operand Predicates Prolog no operand Predicates prolog Prolog Predicates print_all_solutions print_solution print_all_solution Prolog no operand Predicates I am examining a Prolog example as a tutorial. In this example I have a predicate with Zero operand like this: how can I call print_all_solution in the co...
[ 0.0047607421875, 0.00616455078125, -0.000682830810546875, 0.006988525390625, -0.01141357421875, 0.031982421875, 0.00555419921875, -0.006072998046875, 0.000225067138671875, -0.00506591796875, 0.002105712890625, -0.030517578125, -0.01202392578125, -0.003204345703125, 0.00634765625, 0.012...
[ 1250, 4867, 110, 6264, 2208, 7145, 2063, 1636, 502, 28412, 5584, 166589, 27781, 57143, 1653, 67, 678, 83947, 3642, 831, 11782, 23, 130250, 26458, 33720, 35166, 9655, 107838, 1957, 29806 ]
[ 0.14892578125, 0.2066650390625, 0.1292724609375, 0.1614990234375, 0.0738525390625, 0.15673828125, 0.18359375, 0.06512451171875, 0.0977783203125, 0.1981201171875, 0.1790771484375, 0.23291015625, 0.06634521484375, 0.05718994140625, 0.155517578125, 0.087158203125, 0.033599853515625, 0...
embed
42309154_c0
42309154
prolog
0
Title: Swap first two elements of a list in Prolog Problem title: Swap first two elements of a list in Prolog Tags: prolog Problem: Swap first two elements of a list in Prolog I'm doing this exercise from Learn Prolog Now : Exercise 4.4 Write a predicate swap12(List1,List2) which checks whether List1 is identical to Li...
Swap first two elements of a list in Prolog Swap first two elements of a list in Prolog prolog Swap Prolog swap12 Swap first two elements of a list in Prolog I'm doing this exercise from Learn Prolog Now : This is what I have so far: But when I try to evaluate this I get the following: What am I doing wrong? The goal i...
[ 0.01153564453125, 0.00970458984375, 0.003997802734375, 0.016845703125, -0.0106201171875, 0.00159454345703125, -0.0196533203125, 0.00250244140625, 0.00634765625, 0.00946044921875, 0.033203125, 0.03125, -0.003997802734375, 0.00689697265625, 0.0115966796875, 0.0152587890625, 0.018920898...
[ 43062, 254, 5117, 6626, 80854, 5303, 23, 1250, 4867, 502, 202317, 1530, 111, 20594, 81979, 134031, 14240, 3293, 765, 2060, 4966, 9790, 151575, 2046, 25632, 4865, 444, 44691, 69236, 83, 1884, 4358 ]
[ 0.2183837890625, 0.1180419921875, 0.180908203125, 0.188720703125, 0.207275390625, 0.1934814453125, 0.090576171875, 0.1728515625, 0.24755859375, 0.123779296875, 0.2362060546875, 0.172607421875, 0.0222320556640625, 0.0709228515625, 0.1337890625, 0.052581787109375, 0.0645751953125, 0....
embed
66054987_c0
66054987
prolog
0
Title: Prolog tries to find multiple solutions when only one exists Problem title: Prolog tries to find multiple solutions when only one exists Tags: prolog-toplevel, prolog Problem: Prolog tries to find multiple solutions when only one exists I've made a basic predicate ascending/1 to check if a list is in ascending o...
Prolog tries to find multiple solutions when only one exists Prolog tries to find multiple solutions when only one exists prolog-toplevel prolog Prolog Next Prolog tries to find multiple solutions when only one exists I've made a basic predicate ascending/1 to check if a list is in ascending order, on https://swish.swi...
[ 0.016845703125, 0.01287841796875, 0.015869140625, 0.004425048828125, -0.0140380859375, 0.01025390625, 0.007171630859375, -0.00592041015625, 0.006134033203125, -0.0096435546875, 0.00665283203125, -0.005767822265625, -0.00188446044921875, 0.006866455078125, 0.0038909912109375, 0.00891113...
[ 1250, 4867, 1927, 7413, 48716, 51347, 3229, 4734, 1632, 32316, 502, 13784, 67919, 4997, 7228, 62822, 1653, 2063, 67, 82800, 214, 11583, 12765, 2174, 5303, 23, 12989, 114686, 2452, 3454, 1478, 45831, 41, 1294, 705, 418, 116, 201, 305, 1286...
[ 0.1998291015625, 0.25341796875, 0.1407470703125, 0.1219482421875, 0.2017822265625, 0.223876953125, 0.0743408203125, 0.1444091796875, 0.129150390625, 0.1690673828125, 0.1221923828125, 0.07232666015625, 0.1275634765625, 0.19189453125, 0.01361083984375, 0.083251953125, 0.129150390625, ...
embed
39590126_c0
39590126
prolog
0
Title: CLPFD domain declaration with in or inequalities Problem title: CLPFD domain declaration with in or inequalities Tags: prolog, prolog-defaulty, clpfd Problem: CLPFD domain declaration with in or inequalities ?- X in 1..100. X in 1..100. ?- X #> 0, X #< 101. X in 1..100. So far so good! Now let's imagine that the...
CLPFD domain declaration with in or inequalities CLPFD domain declaration with in or inequalities prolog prolog-defaulty clpfd CLPFD ERROR Arguments CLPFD domain declaration with in or inequalities So far so good! Now let's imagine that the sup bound of X depends on Y in 100..200 . The domain of X propagates correctly ...
[ 0.0037994384765625, 0.006744384765625, 0.027587890625, 0.0037994384765625, 0.00118255615234375, 0.0145263671875, 0.01263427734375, -0.01092529296875, -0.00164794921875, 0.000713348388671875, 0.00677490234375, -0.01397705078125, -0.00921630859375, 0.0137939453125, 0.0234375, 0.019287109...
[ 46323, 41265, 397, 77758, 21635, 678, 23, 707, 13, 71723, 502, 4867, 214810, 53, 33139, 39557, 71, 151206, 112140, 31075, 2060, 4127, 28987, 15811, 99091, 1193, 56566, 990, 805, 5955, 175648, 26785, 47, 615, 158, 2816, 17721, 136, 17569, ...
[ 0.0927734375, 0.1312255859375, 0.1734619140625, 0.2186279296875, 0.1844482421875, 0.0843505859375, 0.22216796875, 0.1329345703125, 0.0662841796875, 0.1798095703125, 0.107666015625, 0.1629638671875, 0.169677734375, 0.050537109375, 0.005096435546875, 0.0672607421875, 0.08935546875, 0...
embed
24207592_c0
24207592
prolog
0
Title: How do I skip an element that already have been printing prolog Problem title: How do I skip an element that already have been printing prolog Tags: prolog, prolog-dif Problem: How do I skip an element that already have been printing prolog Im trying to do an exercise in Prolog like this: i introduce this list [...
How do I skip an element that already have been printing prolog How do I skip an element that already have been printing prolog prolog prolog-dif How How do I skip an element that already have been printing prolog Im trying to do an exercise in Prolog like this: i introduce this list [10,20, 10, 20, 30] , and the progr...
[ -0.003509521484375, -0.007537841796875, 0.0029449462890625, -0.002288818359375, -0.01422119140625, 0.00096893310546875, -0.004486083984375, 0.0107421875, 0.01397705078125, -0.0625, -0.0115966796875, -0.0218505859375, -0.01312255859375, 0.006378173828125, -0.00157928466796875, 0.0079956...
[ 11249, 54, 87, 21658, 142, 12830, 450, 21771, 765, 2809, 2448, 1916, 502, 4867, 428, 420, 31577, 81979, 1250, 65508, 903, 5303, 963, 1549, 209, 387, 496, 1528, 45831, 18151, 16750, 1529, 14012, 1733, 83, 23, 4358, 30607, 1146 ]
[ 0.083740234375, 0.03955078125, 0.0450439453125, 0.26123046875, 0.0196685791015625, 0.216552734375, 0.032989501953125, 0.1593017578125, 0.086181640625, 0.131103515625, 0.15380859375, 0.1256103515625, 0.165771484375, 0.2408447265625, 0.0849609375, 0.149658203125, 0.016693115234375, 0...
embed
40120898_c0
40120898
prolog
0
Title: Splitting a prolog list based on a delimiter from the list? Problem title: Splitting a prolog list based on a delimiter from the list? Tags: prolog, declarative Problem: Splitting a prolog list based on a delimiter from the list? In Prolog, let's say I have a list such as [fun, joke1, joke2, fun, joke3, fun, jok...
Splitting a prolog list based on a delimiter from the list? Splitting a prolog list based on a delimiter from the list? prolog declarative the Splitting joke1 joke2 joke3 joke4 joke5 joke6 Splitting a prolog list based on a delimiter from the list? In Prolog, let's say I have a list such as I'm trying to build a list o...
[ 0.000804901123046875, -0.00469970703125, 0.00274658203125, -0.0076904296875, -0.01409912109375, 0.031494140625, 0.005615234375, 0.0224609375, 0.011474609375, -0.01104736328125, -0.006011962890625, 0.0034942626953125, -0.0250244140625, -0.002227783203125, 0.00689697265625, 0.00680541992...
[ 46474, 1916, 502, 4867, 5303, 35509, 8, 93343, 56, 1295, 98, 21635, 4935, 122122, 363, 617, 758, 910, 1250, 31577, 45367, 16750, 17368, 7477, 47438, 88303, 140909, 106, 959, 46132, 65450, 91693, 4488, 3871, 113054, 195625, 1830, 114689, 71 ...
[ 0.212646484375, 0.117919921875, 0.1617431640625, 0.220703125, 0.201904296875, 0.1212158203125, 0.1171875, 0.2286376953125, 0.13671875, 0.0859375, 0.0276031494140625, 0.1156005859375, 0.046966552734375, 0.1466064453125, 0.0168914794921875, 0.038818359375, 0.02392578125, 0.0628662109...
embed
12597170_c0
12597170
prolog
0
Title: First Order Logic Statement for Proof. Manipulating Quantifiers Problem title: First Order Logic Statement for Proof. Manipulating Quantifiers Tags: first-order-logic, quantifiers, prolog, logic Problem: First Order Logic Statement for Proof. Manipulating Quantifiers Ok, I have the given relation: If F(x) is not...
First Order Logic Statement for Proof. Manipulating Quantifiers First Order Logic Statement for Proof. Manipulating Quantifiers first-order-logic quantifiers prolog logic First Order Logic Statement Proof Manipulating Quantifiers First Order Logic Statement for Proof. Manipulating Quantifiers Ok, I have the given relat...
[ 0.01239013671875, 0.00098419189453125, -0.0128173828125, 0.0045166015625, -0.0167236328125, -0.0159912109375, 0.01318359375, -0.0038909912109375, 0.00439453125, -0.0010223388671875, -0.005340576171875, 0.00811767578125, -0.015380859375, -0.00543212890625, 0.0025634765625, -0.0068054199...
[ 23972, 81206, 50592, 238, 22836, 674, 100, 1250, 4390, 221169, 26518, 75344, 85789, 5117, 80596, 137043, 55230, 502, 4867, 62775, 34475, 41911, 4263, 563, 132, 425, 959, 29568, 110, 7225, 40407, 3387, 527, 136, 572, 165304, 919, 4171, 14468...
[ 0.110107421875, 0.182373046875, 0.201416015625, 0.00848388671875, 0.17431640625, 0.05731201171875, 0.07012939453125, 0.113037109375, 0.1468505859375, 0.18994140625, 0.0860595703125, 0.1517333984375, 0.185791015625, 0.038909912109375, 0.1700439453125, 0.1348876953125, 0.1556396484375,...
embed
38942501_c0
38942501
prolog
0
Title: Recursive Decision Tree In Problems Problem title: Recursive Decision Tree In Problems Tags: recursion, prolog Problem: Recursive Decision Tree In Problems So I am trying to draw the decision of tree of 2 Prolog problems, one that uses the accumulator and other that doesn't. Here are my problems and the solution...
Recursive Decision Tree In Problems Recursive Decision Tree In Problems recursion prolog Recursive Decision Tree Problems Goal length_acc len_acc Recursive Decision Tree In Problems So I am trying to draw the decision of tree of 2 Prolog problems, one that uses the accumulator and other that doesn't. Here are my proble...
[ 0.02392578125, 0.034912109375, -0.01068115234375, 0.0216064453125, 0.00262451171875, 0.0274658203125, -0.020751953125, 0.00127410888671875, 0.0037689208984375, -0.0250244140625, 0.00994873046875, -0.0255126953125, 0.00543212890625, 0.049072265625, 0.014892578125, -0.00946044921875, 0...
[ 853, 48650, 5844, 49132, 6889, 101344, 360, 15649, 195625, 502, 4867, 2016, 289, 140909, 10060, 3098, 31577, 79442, 51957, 53201, 116, 1250, 44402, 4527, 183278, 1290, 18, 51347, 77648, 678, 1360, 90, 26785, 19, 121742, 3917, 47, 6097, 8562...
[ 0.047607421875, 0.188232421875, 0.1685791015625, 0.1661376953125, 0.111328125, 0.254150390625, 0.088623046875, 0.18408203125, 0.1844482421875, 0.09979248046875, 0.2081298828125, 0.125244140625, 0.02032470703125, 0.1470947265625, 0.04595947265625, 0.09033203125, 0.05731201171875, 0....
embed
24224472_c0
24224472
prolog
0
Title: Remove duplicate elements from list Problem title: Remove duplicate elements from list Tags: prolog Problem: Remove duplicate elements from list This is my code removevowels(L1, L2) :- removevowels(L1, L2, []). removevowels([], [], _). removevowels([X|L1], [X|L2], Aux) :- consonant(X), not(member(X, Aux)), remov...
Remove duplicate elements from list Remove duplicate elements from list prolog list Remove Aux Tail Remove duplicate elements from list This is my code If i run this: It should print but it's giving false and if i run this It's alright when it doesn't have repeated elements. Auxiliar predicates used: What's wrong in my...
[ -0.0091552734375, 0.01019287109375, 0.004241943359375, 0.01470947265625, -0.00732421875, 0.0029754638671875, -0.007415771484375, 0.006561279296875, 0.005401611328125, -0.0267333984375, 0.00958251953125, -0.005950927734375, 0.03173828125, -0.00970458984375, -0.00909423828125, 0.01928710...
[ 181139, 171763, 67, 80854, 1295, 5303, 502, 4867, 62, 6077, 1218, 379, 759, 18151, 11675, 903, 5608, 28412, 1284, 68772, 98320, 54969, 18, 119140, 297, 2104, 147, 1653, 2063, 11814, 44691 ]
[ 0.15380859375, 0.254150390625, 0.153564453125, 0.2027587890625, 0.10455322265625, 0.1966552734375, 0.1292724609375, 0.201171875, 0.011932373046875, 0.1707763671875, 0.1402587890625, 0.1353759765625, 0.009429931640625, 0.1715087890625, 0.1236572265625, 0.0894775390625, 0.0390319824218...
embed
64814365_c0
64814365
prolog
0
Title: Flattened form in WAM Problem title: Flattened form in WAM Tags: prolog, warren-abstract-machine Problem: Flattened form in WAM The WAM: A Tutorial Reconstruction states that a query, p(Z, h(Z,W), f(W)), needs to be flattened using the following principles: That being said, the query flattened form is: X3=h(X2, ...
Flattened form in WAM Flattened form in WAM prolog warren-abstract-machine Flattened WAM Flattened form in WAM The WAM: A Tutorial Reconstruction states that a query, p(Z, h(Z,W), f(W)), needs to be flattened using the following principles: That being said, the query flattened form is: I am lost with the definition of ...
[ 0.023193359375, 0.02490234375, -0.006866455078125, 0.02392578125, -0.000946044921875, 0.01397705078125, -0.003204345703125, 0.002288818359375, -0.01300048828125, -0.003173828125, 0.01043701171875, -0.0034637451171875, -0.023193359375, 0.0093994140625, 0.00396728515625, 0.00029754638671...
[ 106516, 510, 297, 3173, 4336, 594, 23, 502, 4867, 1631, 982, 2816, 103149, 183447, 853, 238478, 41, 1294, 915, 1511, 1096, 1456, 1238, 27117, 186, 49878, 17368, 24702, 72856, 80934, 173591, 77336, 16916, 990, 5608, 100094, 50961, 9077, 7213...
[ 0.2042236328125, 0.198486328125, 0.1204833984375, 0.2362060546875, 0.210693359375, 0.1951904296875, 0.042266845703125, 0.1064453125, 0.155029296875, 0.049102783203125, 0.1207275390625, 0.1260986328125, 0.14404296875, 0.13330078125, 0.002166748046875, 0.1087646484375, 0.1431884765625,...
embed
24297986_c0
24297986
prolog
0
Title: Prolog sorting lists by position Problem title: Prolog sorting lists by position Tags: list, prolog Problem: Prolog sorting lists by position I'm very new to Prolog and I'm trying to go through a list and check that each element is in the right spot of the list. for example, say you have a list of colours and ea...
Prolog sorting lists by position Prolog sorting lists by position list prolog Prolog list1 list2 Prolog sorting lists by position I'm very new to Prolog and I'm trying to go through a list and check that each element is in the right spot of the list. for example, say you have a list of colours and each color is assigne...
[ 0.00811767578125, 0.01123046875, 0.00049591064453125, -0.0045166015625, -0.019775390625, 0.021728515625, 0.000850677490234375, 0.01434326171875, 0.0081787109375, 0.0205078125, 0.01116943359375, 0.0294189453125, 0.008544921875, -0.0111083984375, -0.005401611328125, -0.005401611328125, ...
[ 1250, 4867, 12096, 214, 5303, 7, 390, 19069, 502, 418, 304, 4552, 3525, 31577, 8305, 12765, 12638, 12830, 83, 23, 7108, 13162, 134855, 10576, 95486, 54744, 34292, 757, 707, 615, 3444, 756, 3853, 70270, 765, 106, 6820, 198343, 27781, 71, ...
[ 0.1881103515625, 0.23974609375, 0.212158203125, 0.0816650390625, 0.224609375, 0.0166473388671875, 0.1038818359375, 0.2578125, 0.141845703125, 0.04901123046875, 0.109130859375, 0.005645751953125, 0.0540771484375, 0.03564453125, 0.0609130859375, 0.170654296875, 0.0394287109375, 0.121...
embed
28990855_c0
28990855
prolog
0
Title: family relation in Prolog Query :transitive relations Problem title: family relation in Prolog Query :transitive relations Tags: prolog, lisp, allegrograph Problem: family relation in Prolog Query :transitive relations I have information in AG knowlwedgebase like this Person1 hasBrother Person2 Person1 hasSister...
family relation in Prolog Query :transitive relations family relation in Prolog Query :transitive relations prolog lisp allegrograph Prolog Query Person1 Person2 Person Person3 SiblingOf Family ns:hasBrother ns:hasSister family relation in Prolog Query :transitive relations I have information in AG knowlwedgebase like ...
[ 0.02197265625, 0.00811767578125, 0.004058837890625, 0.01611328125, -0.00732421875, -0.023193359375, -0.0159912109375, 0.00531005859375, 0.00469970703125, -0.048828125, 0.012451171875, 0.01275634765625, -0.00860595703125, 0.007049560546875, 0.01031494140625, 0.0017242431640625, 0.0078...
[ 14449, 41911, 23, 1250, 4867, 58836, 53, 30145, 14, 4935, 91582, 502, 7008, 8407, 41382, 15270, 304, 363, 602, 79298, 132887, 59745, 10557, 80009, 9319, 294, 19656, 4677, 24639, 3714, 37382, 33022, 79986, 7413, 1810, 78301, 1295, 36917, 158...
[ 0.162353515625, 0.2166748046875, 0.04913330078125, 0.1309814453125, 0.2357177734375, 0.109130859375, 0.00286865234375, 0.0826416015625, 0.0462646484375, 0.10589599609375, 0.231689453125, 0.11767578125, 0.07208251953125, 0.048004150390625, 0.125244140625, 0.0797119140625, 0.0083312988...
embed
31690433_c0
31690433
prolog
0
Title: Excluding all occurrences of the minimum number in a list Problem title: Excluding all occurrences of the minimum number in a list Tags: list, prolog Problem: Excluding all occurrences of the minimum number in a list As a Prolog newbie, I try to define a predicate filter_min/2 which takes two lists to determine ...
Excluding all occurrences of the minimum number in a list Excluding all occurrences of the minimum number in a list list prolog Excluding filter_min ERROR List min_list Excluding all occurrences of the minimum number in a list As a Prolog newbie, I try to define a predicate filter_min/2 which takes two lists to determi...
[ -0.0086669921875, -0.0010223388671875, 0.00244140625, 0.000614166259765625, -0.00787353515625, -0.0005035400390625, 0.020263671875, -0.005645751953125, 0.0274658203125, 0.0244140625, 0.0169677734375, 0.00811767578125, -0.00194549560546875, -0.00799560546875, 0.014404296875, 0.003692626...
[ 110823, 822, 6238, 756, 74918, 42, 69098, 15440, 14012, 5303, 502, 4867, 46312, 1249, 151206, 24638, 32036, 881, 6562, 23, 1250, 9014, 9790, 61924, 1653, 2063, 12477, 51776, 6626, 83324, 17932, 5701, 184750, 33209, 41, 84751, 50339, 37842, ...
[ 0.0740966796875, 0.1387939453125, 0.0172882080078125, 0.0992431640625, 0.12841796875, 0.0794677734375, 0.0185546875, 0.2166748046875, 0.1357421875, 0.185302734375, 0.0975341796875, 0.1494140625, 0.19921875, 0.2257080078125, 0.1114501953125, 0.0199127197265625, 0.12451171875, 0.2025...
embed
15275833_c1
15275833
prolog
1
(S,T), printstate(T), fail. The next bit is the bit I am stuck on! So the aim is to define the value of a state to be 1 if the first player to move can force a win, and 0 otherwise. I am to write a predicate value(S,X) which will compute the value X of any game state S by a depth-first search through the game tree. I s...
(S,T), printstate(T), fail. The next bit is the bit I am stuck on! So the aim is to define the value of a state to be 1 if the first player to move can force a win, and 0 otherwise. I am to write a predicate value(S,X) which will compute the value X of any game state S by a depth-first search through the game tree. I s...
[ 0.003997802734375, 0.01104736328125, 0.01220703125, 0.01141357421875, -0.0064697265625, 0.0035400390625, -0.0087890625, -0.003326416015625, -0.0101318359375, -0.00860595703125, 0.008056640625, 0.036376953125, -0.00775146484375, 0.00762939453125, 0.0159912109375, 0.0205078125, 0.02966...
[ 294, 4, 618, 28412, 61340, 35782, 11737, 4785, 444, 179933, 98, 38, 10, 464, 61924, 34292, 11341, 47, 186, 106, 2174, 5117, 58585, 25813, 831, 37772, 19916, 757, 120262, 33022, 1653, 2063, 67, 1542, 9969, 6743, 1193, 111, 2499, 6712, 15...
[ 0.145751953125, 0.08154296875, 0.12744140625, 0.1650390625, 0.165771484375, 0.1854248046875, 0.04669189453125, 0.117431640625, 0.027496337890625, 0.124755859375, 0.052093505859375, 0.0261688232421875, 0.0160980224609375, 0.1280517578125, 0.1708984375, 0.2205810546875, 0.18896484375, ...
embed
29549053_c0
29549053
prolog
0
Title: How to find the minimum of the list of the terms? Problem title: How to find the minimum of the list of the terms? Tags: list, minimum, prolog Problem: How to find the minimum of the list of the terms? I have a list of terms as below [t('L', 76), t('I', 73), t('V', 86), t('E', 69)] I want to write a predicate in...
How to find the minimum of the list of the terms? How to find the minimum of the list of the terms? list minimum prolog How Min _G14650 _G14672 _G14683 _G14661 How to find the minimum of the list of the terms? I have a list of terms as below I want to write a predicate in prolog so that it will return the term with min...
[ 0.01361083984375, -0.005401611328125, 0.0299072265625, 0.0017547607421875, -0.008544921875, 0.000335693359375, 0.025634765625, 0.004486083984375, -0.006805419921875, -0.020263671875, 0.03515625, 0.01220703125, 0.02294921875, -0.005767822265625, -0.0079345703125, 0.019775390625, 0.021...
[ 11249, 47, 7413, 70, 15440, 111, 5303, 69407, 502, 4867, 4211, 724, 2592, 85399, 198493, 184929, 178046, 35064, 3444, 33022, 1653, 2063, 67, 30646, 13579, 678, 17932, 34292, 36917, 808, 647, 84772, 17336, 37842, 959, 20697, 140992, 107730 ]
[ 0.05126953125, 0.04351806640625, 0.129150390625, 0.12890625, 0.278076171875, 0.0859375, 0.175048828125, 0.2288818359375, 0.13818359375, 0.1976318359375, 0.2362060546875, 0.00152587890625, 0.07470703125, 0.186767578125, 0.15576171875, 0.13134765625, 0.1435546875, 0.04779052734375, ...
embed
54909665_c0
54909665
prolog
0
Title: Prolog Variable Name Starting Underscore then Capital Problem title: Prolog Variable Name Starting Underscore then Capital Tags: prolog Problem: Prolog Variable Name Starting Underscore then Capital Give the following knowledge base: cityinCountry(paris, france ) . /* Paris is a city in France*/ cityinCountry(be...
Prolog Variable Name Starting Underscore then Capital Prolog Variable Name Starting Underscore then Capital prolog Prolog Variable Name Starting Underscore Capital Paris France _City City Prolog Variable Name Starting Underscore then Capital Give the following knowledge base: Why does cityinCountry(_City, germany). ret...
[ 0.021728515625, 0.01220703125, 0.005035400390625, 0.016845703125, 0.00341796875, 0.016357421875, -0.00469970703125, 0.0091552734375, 0.01190185546875, 0.00506591796875, 0.017578125, -0.007415771484375, -0.0196533203125, 0.005615234375, 0.004791259765625, -0.00689697265625, 0.01177978...
[ 1250, 4867, 84572, 2886, 15757, 13794, 9626, 7, 30854, 32546, 502, 7270, 9942, 115411, 6406, 51359, 3647, 44084, 14602, 26349, 73, 108210, 42712, 53, 194, 30646, 87599, 12960, 176788, 74, 51072, 206, 80934, 77336, 117249, 8, 157, 42485, 403...
[ 0.14599609375, 0.234375, 0.1817626953125, 0.1126708984375, 0.1343994140625, 0.140869140625, 0.2010498046875, 0.0323486328125, 0.1544189453125, 0.266845703125, 0.12109375, 0.25927734375, 0.1883544921875, 0.15380859375, 0.13818359375, 0.055908203125, 0.04791259765625, 0.1739501953125...
embed
58950068_c0
58950068
prolog
0
Title: The results my Prolog program outputs are not what what they are supposed to be Problem title: The results my Prolog program outputs are not what what they are supposed to be Tags: prolog Problem: The results my Prolog program outputs are not what what they are supposed to be I am making a prolog program in whic...
The results my Prolog program outputs are not what what they are supposed to be The results my Prolog program outputs are not what what they are supposed to be prolog Prolog marks_chemistry Paul The results my Prolog program outputs are not what what they are supposed to be I am making a prolog program in which a perso...
[ 0.0147705078125, 0.00885009765625, 0.00396728515625, 0.0264892578125, -0.00897216796875, 0.0181884765625, -0.0167236328125, 0.024658203125, 0.0004825592041015625, -0.0181884765625, -0.007232666015625, 0.016845703125, 0.02001953125, 0.017333984375, 0.0185546875, -0.004608154296875, 0....
[ 50339, 759, 1250, 4867, 1528, 140992, 7, 621, 959, 2367, 1836, 134598, 47, 186, 581, 502, 16188, 1430, 6133, 10208, 20662, 3445, 831, 7413, 111, 25921, 22, 33558, 903, 18151, 1294, 30816, 11627, 33306, 3229, 30957, 110, 64457, 2363, 18066...
[ 0.18408203125, 0.0732421875, 0.18359375, 0.25927734375, 0.1927490234375, 0.243896484375, 0.036407470703125, 0.0701904296875, 0.1514892578125, 0.0997314453125, 0.012603759765625, 0.162109375, 0.0125732421875, 0.0926513671875, 0.00775146484375, 0.1571044921875, 0.2252197265625, 0.127...
embed
15313626_c0
15313626
prolog
0
Title: write a prolog program displaying an M*N grid of asterisk? Problem title: write a prolog program displaying an M*N grid of asterisk? Tags: prolog Problem: write a prolog program displaying an M*N grid of asterisk? I need to write a recursive predicate rectangle , such that rectangle(M, N) writes out a solid rect...
write a prolog program displaying an M*N grid of asterisk? write a prolog program displaying an M*N grid of asterisk? prolog N-1 A-1 write a prolog program displaying an M*N grid of asterisk? I need to write a recursive predicate rectangle , such that rectangle(M, N) writes out a solid rectangle of size M x N of asteri...
[ -0.006744384765625, -0.00101470947265625, 0.01220703125, 0.0030517578125, -0.00439453125, 0.017578125, -0.00396728515625, 0.005035400390625, 0.00921630859375, 0.000553131103515625, 0.0111083984375, 0.001434326171875, -0.004302978515625, -0.0079345703125, 0.00775146484375, 0.00282287597...
[ 33022, 502, 4867, 1528, 44116, 276, 1639, 839, 120067, 111, 1515, 6581, 10, 541, 5759, 62, 214, 87, 3871, 195625, 5844, 1653, 2063, 148734, 449, 133, 594, 1810, 18652, 13267, 1022, 5608, 15555, 136, 3365, 316, 2060, 63805, 13315, 28412, ...
[ 0.1591796875, 0.1700439453125, 0.2196044921875, 0.1915283203125, 0.12353515625, 0.08258056640625, 0.08319091796875, 0.14111328125, 0.248046875, 0.050445556640625, 0.1153564453125, 0.1683349609375, 0.025360107421875, 0.147216796875, 0.103271484375, 0.0977783203125, 0.010467529296875, ...
embed
14785477_c0
14785477
prolog
0
Title: Yes No in Prolog if not (yes/no) then display invalid command(input) Problem title: Yes No in Prolog if not (yes/no) then display invalid command(input) Tags: prolog Problem: Yes No in Prolog if not (yes/no) then display invalid command(input) I am creating an Expert System for Cell Phone Repair. The answers mus...
Yes No in Prolog if not (yes/no) then display invalid command(input) Yes No in Prolog if not (yes/no) then display invalid command(input) prolog Yes Prolog Question Response Input Yes No in Prolog if not (yes/no) then display invalid command(input) I am creating an Expert System for Cell Phone Repair. The answers must ...
[ -0.00933837890625, 0.03076171875, 0.033935546875, 0.017333984375, 0.010986328125, 0.0302734375, 0.005584716796875, -0.0130615234375, -0.01397705078125, 0.0059814453125, 0.00543212890625, 0.0084228515625, -0.01513671875, 0.01385498046875, 0.0031890869140625, 0.0115966796875, 0.0099487...
[ 32635, 438, 23, 1250, 4867, 2174, 959, 63736, 64, 157, 44116, 56649, 75101, 73, 7077, 502, 68185, 92748, 360, 105233, 70523, 12353, 80743, 41761, 109637, 35166, 8110, 1660, 707, 110, 23937, 37076, 7013, 107730, 63819, 18151, 29479, 44691, 1...
[ 0.1370849609375, 0.197021484375, 0.0780029296875, 0.159423828125, 0.22119140625, 0.0181427001953125, 0.1009521484375, 0.1805419921875, 0.00140380859375, 0.1431884765625, 0.13037109375, 0.262451171875, 0.207275390625, 0.06866455078125, 0.1251220703125, 0.1129150390625, 0.0777587890625...
embed
27001659_c0
27001659
prolog
0
Title: Prolog - &#x27;Member Of&#x27; List Problem title: Prolog - &#x27;Member Of&#x27; List Tags: prolog, list Problem: Prolog - 'Member Of' List I have a function called member that is supposed to take as arguments: 1) a name 2) a list of names. The list of names is already defined in my program, so I want to be abl...
Prolog - &#x27;Member Of&#x27; List Prolog - &#x27;Member Of&#x27; List prolog list Prolog Member List Element Tail Prolog - 'Member Of' List I have a function called member that is supposed to take as arguments: 1) a name 2) a list of names. The list of names is already defined in my program, so I want to be able to c...
[ 0.00799560546875, -0.00060272216796875, 0.0245361328125, 0.0289306640625, -0.022216796875, 0.01251220703125, 0.0017242431640625, 0.025634765625, -0.002166748046875, -0.050048828125, 0.0240478515625, -0.02294921875, 0.012451171875, -0.00007104873657226562, 0.0133056640625, -0.0220947265...
[ 1250, 4867, 3768, 594, 27417, 6619, 32036, 502, 5303, 74057, 48325, 1218, 379, 32354, 35839, 32786, 134598, 5646, 237, 10750, 9351, 4958, 123055, 21771, 61924, 1528, 3444, 19048, 11782, 55300, 678, 61475, 70541, 105876, 10644, 266, 350, 11627...
[ 0.1773681640625, 0.261474609375, 0.035369873046875, 0.09124755859375, 0.2130126953125, 0.2381591796875, 0.1846923828125, 0.1314697265625, 0.1925048828125, 0.224609375, 0.110595703125, 0.0765380859375, 0.0792236328125, 0.1796875, 0.00518798828125, 0.275390625, 0.0498046875, 0.053497...
embed
67108468_c0
67108468
prolog
0
Title: How can I bind the same variables together in prolog Problem title: How can I bind the same variables together in prolog Tags: prolog Problem: How can I bind the same variables together in prolog So, I'm relatively new to prolog and was wondering if it is possible to bind 2 variables together in a matrix and wou...
How can I bind the same variables together in prolog How can I bind the same variables together in prolog prolog How _23838 _23844 _23856 _23862 How can I bind the same variables together in prolog So, I'm relatively new to prolog and was wondering if it is possible to bind 2 variables together in a matrix and would th...
[ -0.003173828125, 0.0284423828125, 0.01171875, -0.016845703125, -0.001556396484375, 0.00958251953125, -0.00701904296875, 0.0203857421875, 0.026123046875, -0.00138092041015625, 0.00762939453125, 0.006927490234375, -0.0004024505615234375, -0.010986328125, -0.0089111328125, 0.0181884765625...
[ 11249, 831, 87, 68557, 5701, 77336, 7, 25842, 23, 502, 4867, 3742, 190955, 180344, 104342, 910, 105742, 304, 7722, 116, 50944, 425, 28350, 134477, 39555, 51, 151138, 207997, 80854, 14432, 99091, 34292 ]
[ 0.04046630859375, 0.044891357421875, 0.0150604248046875, 0.2330322265625, 0.1734619140625, 0.245849609375, 0.0418701171875, 0.2120361328125, 0.0211181640625, 0.1435546875, 0.231201171875, 0.09832763671875, 0.2144775390625, 0.18896484375, 0.08001708984375, 0.05828857421875, 0.05725097...
embed
71363051_c0
71363051
prolog
0
Title: prolog empty list error when reversing a list Problem title: prolog empty list error when reversing a list Tags: prolog, list Problem: prolog empty list error when reversing a list First of all I'm very new to Prolog and just trying to understand the very basics. I have to work a simple function that concatenes ...
prolog empty list error when reversing a list prolog empty list error when reversing a list prolog list Type prolog empty list error when reversing a list First of all I'm very new to Prolog and just trying to understand the very basics. I have to work a simple function that concatenes two lists and a function that rev...
[ 0.0019683837890625, 0.01214599609375, 0.00677490234375, 0.0264892578125, -0.00531005859375, 0.00579833984375, 0.002288818359375, 0.0179443359375, 0.023681640625, -0.0087890625, 0.00616455078125, -0.016357421875, -0.00096893310546875, -0.00055694580078125, 0.0162353515625, 0.00280761718...
[ 502, 4867, 201505, 5303, 18499, 39531, 6953, 60457, 1250, 8781, 32354, 33478, 6626, 5908, 208124, 43240, 5299, 159258, 2661, 84751, 14037, 1065, 44084, 183234 ]
[ 0.1363525390625, 0.19091796875, 0.20166015625, 0.216552734375, 0.175048828125, 0.2076416015625, 0.1094970703125, 0.1705322265625, 0.1053466796875, 0.0384521484375, 0.094482421875, 0.06201171875, 0.041351318359375, 0.07501220703125, 0.056060791015625, 0.0228118896484375, 0.01190185546...
embed
28740681_c0
28740681
prolog
0
Title: Writing prolog with recursive rules? &quot;ERROR: Out of local stack&quot; Problem title: Writing prolog with recursive rules? &quot;ERROR: Out of local stack&quot; Tags: transitive-closure, recursion, prolog Problem: Writing prolog with recursive rules? "ERROR: Out of local stack" Given facts such as: Jake is s...
Writing prolog with recursive rules? &quot;ERROR: Out of local stack&quot; Writing prolog with recursive rules? &quot;ERROR: Out of local stack&quot; transitive-closure recursion prolog Writing ERROR Out Writing prolog with recursive rules? "ERROR: Out of local stack" Given facts such as: Jake is smarter than Nik Nik i...
[ -0.0107421875, 0.016845703125, -0.0038604736328125, 0.021240234375, 0.00628662109375, -0.004058837890625, -0.0234375, 0.0185546875, 0.004852294921875, -0.0247802734375, 0.02001953125, 0.00982666015625, 0.000797271728515625, 0.00836181640625, 0.0439453125, 0.0086669921875, 0.007690429...
[ 213185, 502, 4867, 678, 195625, 5844, 91736, 12501, 14255, 1052, 13538, 111, 4000, 177261, 62621, 170224, 1830, 151206, 24638, 15824, 4422, 13, 83, 18775, 56, 3501, 17348, 1401, 7, 77730, 601, 18781, 1528, 83324, 29806, 140992, 1284, 3229, ...
[ 0.1661376953125, 0.1650390625, 0.251953125, 0.06097412109375, 0.2208251953125, 0.1474609375, 0.18603515625, 0.1265869140625, 0.1822509765625, 0.1427001953125, 0.2022705078125, 0.190673828125, 0.1766357421875, 0.2208251953125, 0.1051025390625, 0.1614990234375, 0.004913330078125, 0.1...
embed
49243017_c0
49243017
prolog
0
Title: make op in prolog with operator definition theres have &#x27;likes&#x27; and &#x27;and&#x27; Problem title: make op in prolog with operator definition theres have &#x27;likes&#x27; and &#x27;and&#x27; Tags: definition, prolog, operator-keyword Problem: make op in prolog with operator definition theres have 'like...
make op in prolog with operator definition theres have &#x27;likes&#x27; and &#x27;and&#x27; make op in prolog with operator definition theres have &#x27;likes&#x27; and &#x27;and&#x27; definition prolog operator-keyword Who make op in prolog with operator definition theres have 'likes' and 'and' I have knowladge base ...
[ 0.01904296875, 0.00171661376953125, 0.00091552734375, 0.0267333984375, 0.01312255859375, 0.01953125, -0.00147247314453125, 0.0235595703125, 0.005645751953125, -0.04345703125, -0.0162353515625, -0.0220947265625, 0.005035400390625, -0.01275634765625, 0.02099609375, 0.016357421875, 0.00...
[ 3249, 233, 23, 502, 4867, 678, 39933, 80934, 2685, 7, 765, 3768, 5062, 136, 2940, 19770, 47416, 40469, 3714, 6616, 429, 3647, 4677, 3871, 1653, 2063, 67, 33022, 18151, 1884, 30646, 903, 3444, 66159, 19, 74, 1727, 53, 7639 ]
[ 0.141357421875, 0.2305908203125, 0.07080078125, 0.168212890625, 0.218505859375, 0.08770751953125, 0.270751953125, 0.184326171875, 0.124755859375, 0.068359375, 0.1759033203125, 0.088623046875, 0.25830078125, 0.11767578125, 0.1759033203125, 0.06768798828125, 0.15185546875, 0.14172363...
embed
24510191_c0
24510191
prolog
0
Title: Prolog List Arguments Error Problem title: Prolog List Arguments Error Tags: prolog Problem: Prolog List Arguments Error I have a sum function described below: list_sum([], 0). list_sum([Head | Tail], TotalSum) :- list_sum(Tail, Sum1), TotalSum is Head + Sum1. If I call this function like this for example: list_...
Prolog List Arguments Error Prolog List Arguments Error prolog Prolog List Arguments Error list_sum Head Tail TotalSum Sum1 Sum Prolog List Arguments Error I have a sum function described below: If I call this function like this for example: The output is: However if I decide to input the list like this: The output is:...
[ 0.00897216796875, 0.01318359375, 0.006195068359375, -0.0106201171875, -0.014404296875, 0.0103759765625, -0.01312255859375, -0.0026397705078125, 0.0016021728515625, -0.0033416748046875, 0.032470703125, -0.0244140625, 0.00762939453125, 0.01226806640625, 0.0220947265625, 0.0103759765625, ...
[ 1250, 4867, 32036, 112140, 212059, 502, 5303, 11832, 44816, 1218, 379, 33867, 294, 316, 36335, 418, 10554, 32354, 151552, 35064, 11782, 903, 1884, 27781, 140992, 28288, 107730, 33938, 12960, 1152, 21896, 110, 6528, 1679, 22729, 129745 ]
[ 0.1749267578125, 0.246826171875, 0.1905517578125, 0.23779296875, 0.2161865234375, 0.1085205078125, 0.16552734375, 0.1949462890625, 0.116455078125, 0.0732421875, 0.0877685546875, 0.1202392578125, 0.08734130859375, 0.2027587890625, 0.1907958984375, 0.060394287109375, 0.2174072265625, ...
embed
22489311_c0
22489311
prolog
0
Title: SWI-Prolog Creating/Printing lists, Recursion etc Problem title: SWI-Prolog Creating/Printing lists, Recursion etc Tags: prolog Problem: SWI-Prolog Creating/Printing lists, Recursion etc I'm trying to teach myself some Prolog, however right now i'm really struggling just adapting to the declarative style having ...
SWI-Prolog Creating/Printing lists, Recursion etc SWI-Prolog Creating/Printing lists, Recursion etc prolog SWI-Prolog Creating Printing Recursion SWI-Prolog Creating/Printing lists, Recursion etc I'm trying to teach myself some Prolog, however right now i'm really struggling just adapting to the declarative style havin...
[ 0.0130615234375, 0.01068115234375, 0.0115966796875, 0.0233154296875, -0.0002727508544921875, 0.0262451171875, 0.003082275390625, -0.0036163330078125, 0.0146484375, -0.01190185546875, 0.0150146484375, -0.032958984375, -0.00994873046875, 0.0086669921875, 0.017578125, -0.009521484375, 0...
[ 159, 38969, 9, 10752, 4867, 56781, 1916, 64, 112079, 5303, 165428, 42, 6889, 502, 39754, 214, 31577, 94957, 35978, 1250, 6183, 237875, 39908, 21635, 4935, 20623, 8306, 56037, 81887, 1528, 1380, 6626, 24491, 892, 101935, 62, 619, 335, 997, ...
[ 0.0755615234375, 0.2366943359375, 0.017486572265625, 0.1527099609375, 0.2359619140625, 0.1280517578125, 0.019012451171875, 0.01800537109375, 0.1802978515625, 0.2059326171875, 0.1075439453125, 0.1202392578125, 0.0513916015625, 0.136474609375, 0.19140625, 0.013763427734375, 0.042236328...
embed
2107973_c0
2107973
prolog
0
Title: create a list from a list of lists Problem title: create a list from a list of lists Tags: prolog Problem: create a list from a list of lists I need to do the following: given a list of lists I need to find all possible combinations of the lists such that if some of these lists belong in such a combination, then...
create a list from a list of lists create a list from a list of lists prolog a Say create a list from a list of lists I need to do the following: given a list of lists I need to find all possible combinations of the lists such that if some of these lists belong in such a combination, then they have no elements in commo...
[ -0.00958251953125, 0.0311279296875, 0.00145721435546875, 0.0194091796875, -0.0194091796875, 0.00225830078125, 0.01019287109375, -0.0031585693359375, 0.00445556640625, -0.0390625, 0.0023193359375, -0.005950927734375, 0.0289306640625, 0.011474609375, -0.01458740234375, 0.0014190673828125...
[ 28282, 10, 5303, 1295, 111, 7, 502, 4867, 25916, 3871, 54, 34475, 7413, 756, 7722, 162515, 10617, 110, 80854, 39210, 75935, 1747, 96819, 140909, 25647, 89536, 541, 14012, 963, 33938, 436, 95307, 678, 15190, 339, 69941, 4068, 36917, 27781, ...
[ 0.1578369140625, 0.063232421875, 0.25048828125, 0.1995849609375, 0.1422119140625, 0.0887451171875, 0.1337890625, 0.2117919921875, 0.008392333984375, 0.0941162109375, 0.0203857421875, 0.0439453125, 0.090576171875, 0.0280914306640625, 0.1400146484375, 0.16064453125, 0.10479736328125, ...
embed
53331484_c0
53331484
prolog
0
Title: Compile time testfor &#x27;atoms&#x27; Problem title: Compile time testfor &#x27;atoms&#x27; Tags: prolog, swi-prolog Problem: Compile time testfor 'atoms' Completely new to prolog. Interesting journey so far in trying to change how I think, so appreciate any help here. I am trying to assert facts for a pre-defi...
Compile time testfor &#x27;atoms&#x27; Compile time testfor &#x27;atoms&#x27; prolog swi-prolog Compile full_name Charlie Steel Compile time testfor 'atoms' Completely new to prolog. Interesting journey so far in trying to change how I think, so appreciate any help here. I am trying to assert facts for a pre-defined se...
[ 0.0247802734375, -0.0091552734375, 0.0130615234375, 0.036865234375, -0.01519775390625, 0.021240234375, 0.011474609375, 0.010498046875, -0.009033203125, -0.0159912109375, 0.01123046875, 0.0093994140625, 0.01177978515625, 0.002685546875, 0.0228271484375, 0.010986328125, 0.0039978027343...
[ 15612, 1340, 1733, 3034, 2472, 3768, 257, 28016, 502, 4867, 91, 2452, 3454, 4393, 11627, 71305, 109028, 3525, 66348, 120696, 2060, 31577, 15549, 5351, 4358, 47, 237, 33657, 15824, 100, 479, 112, 5983, 5423, 123055, 27781, 41591, 765, 3395, ...
[ 0.1766357421875, 0.18359375, 0.20458984375, 0.209228515625, 0.09820556640625, 0.06671142578125, 0.1429443359375, 0.1717529296875, 0.1475830078125, 0.21484375, 0.045989990234375, 0.21533203125, 0.1727294921875, 0.140869140625, 0.1578369140625, 0.17138671875, 0.260498046875, 0.008270...
embed
43012390_c1
43012390
prolog
1
(10) elementAt([2, 3, 4, 5, 6, 7], _6836, _6554) ? creep 8 Exit: (10) elementAt([2, 3, 4, 5, 6, 7], 0, 2) ? creep 9 Call: (10) _6840 is 0+1 ? creep 10 Exit: (10) 1 is 0+1 ? creep 11 Exit: (9) elementAt([1, 2, 3, 4, 5, 6, 7], 1, 2) ? creep 12 Call: (9) 5 is 1+1 ? creep 13 Fail: (9) 5 is 1+1 ? creep 14 Redo: (10) elemen...
(10) elementAt([2, 3, 4, 5, 6, 7], _6836, _6554) ? creep 8 Exit: (10) elementAt([2, 3, 4, 5, 6, 7], 0, 2) ? creep 9 Call: (10) _6840 is 0+1 ? creep 10 Exit: (10) 1 is 0+1 ? creep 11 Exit: (9) elementAt([1, 2, 3, 4, 5, 6, 7], 1, 2) ? creep 12 Call: (9) 5 is 1+1 ? creep 13 Fail: (9) 5 is 1+1 ? creep 14 Redo: (10) elemen...
[ 0.005126953125, 0.014892578125, -0.01263427734375, 0.007720947265625, -0.006256103515625, 0.0264892578125, 0.0038909912109375, -0.004913330078125, -0.0033416748046875, -0.0003910064697265625, 0.02978515625, 0.0205078125, -0.02197265625, -0.0030517578125, 0.0244140625, -0.00698852539062...
[ 17857, 12830, 28848, 132, 1065, 304, 4, 138, 201, 190, 305, 361, 268, 101, 16028, 8659, 12424, 134463, 705, 49512, 254, 382, 5443, 217, 12, 757, 4958, 483, 26265, 2839, 83, 21748, 209, 106, 534, 11438, 116, 427, 179898, 702, 190355, 6...
[ 0.285400390625, 0.265380859375, 0.2274169921875, 0.0753173828125, 0.06268310546875, 0.1202392578125, 0.084228515625, 0.140625, 0.15966796875, 0.185546875, 0.1639404296875, 0.1395263671875, 0.003021240234375, 0.0765380859375, 0.203369140625, 0.2340087890625, 0.15087890625, 0.2263183...
embed
47941366_c1
47941366
prolog
1
], [2, 0, 3, 4], [3, 2, 4], [4, 2, 3, 6], [5, 6], [6, 4, 5]], connected(Groups, [0], R). connected([H|T], X, R) :- member(Y, H), member(Y, X) -> flatten([H|X], X1), connected(T, X1, R) ; R = X. The result I'm getting here is simply: [0,2,0] The result that I expect is: [0,2,0,2,0,3,4,3,2,4,4,2,3,6,5,6,6,4,5] I've reali...
], [2, 0, 3, 4], [3, 2, 4], [4, 2, 3, 6], [5, 6], [6, 4, 5]], connected(Groups, [0], R). connected([H|T], X, R) :- member(Y, H), member(Y, X) -> flatten([H|X], X1), connected(T, X1, R) ; R = X. The result I'm getting here is simply: [0,2,0] The result that I expect is: [0,2,0,2,0,3,4,3,2,4,4,2,3,6,5,6,6,4,5] I've reali...
[ -0.0206298828125, 0.02587890625, 0.01080322265625, 0.015869140625, -0.0107421875, 0.006561279296875, -0.01373291015625, 0.000396728515625, 0.02783203125, -0.030517578125, -0.0015411376953125, 0.0028228759765625, -0.01031494140625, 0.016845703125, -0.00823974609375, 0.006195068359375, ...
[ 10114, 304, 757, 138, 201, 4, 116, 617, 305, 758, 910, 190, 162711, 205072, 147352, 627, 841, 618, 1193, 32786, 1723, 572, 49878, 510, 1542, 17727, 418, 16750, 20949, 3688, 42856, 2389, 216969, 450, 41206, 82449, 363, 124093, 155761, 1296...
[ 0.04632568359375, 0.08251953125, 0.088134765625, 0.0821533203125, 0.13330078125, 0.01055908203125, 0.002655029296875, 0.0958251953125, 0.130859375, 0.069580078125, 0.09515380859375, 0.1016845703125, 0.2188720703125, 0.218994140625, 0.048583984375, 0.12255859375, 0.0770263671875, 0....
embed
43894571_c0
43894571
prolog
0
Title: prolog &#x27;once member&#x27; not working Problem title: prolog &#x27;once member&#x27; not working Tags: prolog Problem: prolog 'once member' not working I have a method that takes in a string and converts it into a sentence to then be used within my program, but I am trying to make it quit/exit out if I enter...
prolog &#x27;once member&#x27; not working prolog &#x27;once member&#x27; not working prolog read_sentence FirstWord RestOfSentence get0 Char NextChar prolog 'once member' not working I have a method that takes in a string and converts it into a sentence to then be used within my program, but I am trying to make it qui...
[ -0.00089263916015625, -0.01190185546875, 0.0167236328125, 0.0024871826171875, -0.026123046875, 0.0103759765625, 0.0125732421875, -0.01483154296875, 0.00151824951171875, -0.06298828125, 0.01116943359375, 0.00860595703125, -0.007232666015625, 0.0033416748046875, 0.007598876953125, -0.006...
[ 502, 4867, 3768, 191, 329, 32786, 959, 20697, 12301, 12832, 23972, 164805, 49756, 132887, 47290, 2389, 21656, 4997, 84068, 55300, 23, 79315, 96760, 149357, 11814, 28032, 1528, 31577, 569, 18, 23399, 1810, 30957, 3181, 23766, 864, 4358, 4527, ...
[ 0.1795654296875, 0.2490234375, 0.03662109375, 0.1328125, 0.1859130859375, 0.25439453125, 0.0960693359375, 0.1903076171875, 0.1124267578125, 0.052459716796875, 0.0467529296875, 0.0916748046875, 0.09002685546875, 0.1431884765625, 0.03350830078125, 0.0675048828125, 0.081298828125, 0.0...
embed
35521695_c0
35521695
prolog
0
Title: Difference between &#x27;scope:setting(Key, Value)&#x27; and &#x27;setting(scope:Key, Value)&#x27; Problem title: Difference between &#x27;scope:setting(Key, Value)&#x27; and &#x27;setting(scope:Key, Value)&#x27; Tags: module, prolog, setting, swi-prolog Problem: Difference between 'scope:setting(Key, Value)' an...
Difference between &#x27;scope:setting(Key, Value)&#x27; and &#x27;setting(scope:Key, Value)&#x27; Difference between &#x27;scope:setting(Key, Value)&#x27; and &#x27;setting(scope:Key, Value)&#x27; module prolog setting swi-prolog Difference scope:setting Key Value scope:Key scope:set_setting set_setting Type Default D...
[ 0.01190185546875, -0.0022125244140625, -0.010498046875, -0.004486083984375, 0.0023040771484375, 0.0029144287109375, 0.0004291534423828125, 0.0025634765625, 0.005615234375, 0.025390625, 0.01190185546875, 0.00439453125, -0.014892578125, -0.0101318359375, 0.00927734375, 0.0162353515625, ...
[ 803, 18234, 6620, 17721, 3768, 70820, 89840, 162429, 4, 190060, 136, 88996, 502, 4867, 53550, 91, 2452, 3454, 26824, 3509, 5423, 60457, 262, 1021, 29048, 132, 159, 38969, 10752, 35773, 1294, 12921, 25632, 7136, 831, 186, 23937, 1284, 38937,...
[ 0.080078125, 0.2049560546875, 0.050872802734375, 0.130859375, 0.038421630859375, 0.2392578125, 0.1900634765625, 0.2193603515625, 0.00994873046875, 0.237548828125, 0.06158447265625, 0.132568359375, 0.0943603515625, 0.1900634765625, 0.1409912109375, 0.0137939453125, 0.1600341796875, ...
embed
27806409_c0
27806409
prolog
0
Title: Prolog wildcard for completing a string Problem title: Prolog wildcard for completing a string Tags: prolog Problem: Prolog wildcard for completing a string I am currently stuck on a prolog problem. So far I have: film(Title) :- movie(Title,_,_). (Where ' movie(T,_,_,) ' is a reference to my database) namesearch...
Prolog wildcard for completing a string Prolog wildcard for completing a string prolog Prolog Title Firstword contains_term Prolog wildcard for completing a string I am currently stuck on a prolog problem. So far I have: film(Title) :- movie(Title,_,_). (Where ' movie(T,_,_,) ' is a reference to my database) It is hard...
[ 0.021728515625, -0.01373291015625, -0.004180908203125, 0.00543212890625, -0.0181884765625, 0.01312255859375, 0.0244140625, 0.0037689208984375, 0.00201416015625, -0.0634765625, 0.018310546875, 0.0052490234375, -0.01251220703125, 0.00408935546875, -0.01239013671875, 0.00909423828125, 0...
[ 1250, 4867, 56409, 38931, 100, 21721, 214, 79315, 502, 48962, 23972, 47416, 70541, 32166, 179933, 2967, 1346, 16734, 17991, 14277, 35593, 91067, 63399, 4358, 4527, 33938, 756, 54180, 72134, 678, 29458, 2565, 86595, 3957, 63769, 107730, 9351, ...
[ 0.167236328125, 0.26171875, 0.175537109375, 0.26416015625, 0.028717041015625, 0.185546875, 0.044464111328125, 0.211669921875, 0.10760498046875, 0.221435546875, 0.08233642578125, 0.1673583984375, 0.1502685546875, 0.151611328125, 0.0694580078125, 0.09326171875, 0.14208984375, 0.13171...
embed
62243384_c1
62243384
prolog
1
(_,_,_,mlik,_),Houses), firstHouse(house(norwegian,_,_,_,_),Houses), nextTo(house(_,_,rugby,_,_),house(_,fox,_,_,_),Houses), nextTo(house(_,_,chess,_,_),house(_,horse,_,_,_),Houses), exists(house(_,_,volleyball,orangejuice,_),Houses), exists(house(japanese,_,_,_,_),Houses), nextTo(house(norwegian,_,_,_,_),house(_,_,_,_...
(_,_,_,mlik,_),Houses), firstHouse(house(norwegian,_,_,_,_),Houses), nextTo(house(_,_,rugby,_,_),house(_,fox,_,_,_),Houses), nextTo(house(_,_,chess,_,_),house(_,horse,_,_,_),Houses), exists(house(_,_,volleyball,orangejuice,_),Houses), exists(house(japanese,_,_,_,_),Houses), nextTo(house(norwegian,_,_,_,_),house(_,_,_,_...
[ -0.01055908203125, 0.01458740234375, -0.002655029296875, 0.0047607421875, 0.006072998046875, 0.00994873046875, -0.0081787109375, -0.0006256103515625, 0.010498046875, -0.04296875, -0.009521484375, -0.00067901611328125, 0.015869140625, -0.0218505859375, 0.002166748046875, 0.0075073242187...
[ 454, 39, 597, 184964, 7, 247, 5117, 23923, 13665, 1177, 34958, 11737, 7763, 20078, 1272, 147797, 17007, 5922, 32316, 31940, 12126, 10727, 461, 76248, 143802, 17615, 266, 365, 731, 2844, 8770, 9626, 18276, 137458, 2481, 126, 31676, 35838, 78...
[ 0.009918212890625, 0.00616455078125, 0.1649169921875, 0.1900634765625, 0.0958251953125, 0.0152587890625, 0.0921630859375, 0.2080078125, 0.069091796875, 0.07861328125, 0.135498046875, 0.142822265625, 0.1702880859375, 0.0179290771484375, 0.09771728515625, 0.0859375, 0.1287841796875, ...
embed
29832164_c0
29832164
prolog
0
Title: Prolog - How to use multiple pl file inside pl file Problem title: Prolog - How to use multiple pl file inside pl file Tags: swi-prolog, prolog Problem: Prolog - How to use multiple pl file inside pl file I'm new at Prolog. I have two files. One of them is "names.pl" and the other one is "verbs.pl". This both fi...
Prolog - How to use multiple pl file inside pl file Prolog - How to use multiple pl file inside pl file swi-prolog prolog Prolog How Prolog - How to use multiple pl file inside pl file I'm new at Prolog. I have two files. One of them is "names.pl" and the other one is "verbs.pl". This both files have facts. "names.pl" ...
[ 0.010009765625, -0.004150390625, 0.002105712890625, 0.033447265625, -0.01611328125, 0.00823974609375, 0.015380859375, -0.0084228515625, 0.0103759765625, -0.057861328125, 0.0028076171875, 0.00555419921875, -0.011962890625, 0.00775146484375, 0.006317138671875, 0.00006818771362304688, -...
[ 1250, 4867, 11249, 4527, 48716, 6456, 11435, 46132, 2452, 3454, 502, 6626, 102158, 11627, 2424, 81465, 7, 15044, 15824, 5915, 309, 41911, 110934, 157, 1363, 107, 57860, 3642, 116, 23, 1632, 24927, 138, 4216, 17368, 60270 ]
[ 0.1407470703125, 0.1943359375, 0.04742431640625, 0.1357421875, 0.2298583984375, 0.2349853515625, 0.2060546875, 0.12353515625, 0.091796875, 0.07257080078125, 0.0716552734375, 0.057342529296875, 0.1771240234375, 0.09991455078125, 0.186279296875, 0.182861328125, 0.06378173828125, 0.00...
embed
31133110_c0
31133110
prolog
0
Title: How do I write a palindrome program while using different lists? Problem title: How do I write a palindrome program while using different lists? Tags: list, prolog, palindrome, difference-lists, dcg Problem: How do I write a palindrome program while using different lists? I tried to write a palindrome program by...
How do I write a palindrome program while using different lists? How do I write a palindrome program while using different lists? list prolog palindrome difference-lists dcg different How N-1 How do I write a palindrome program while using different lists? I tried to write a palindrome program by using lists. However, ...
[ -0.0098876953125, 0.0120849609375, -0.00579833984375, 0.01708984375, -0.0142822265625, 0.032470703125, 0.00811767578125, 0.0281982421875, 0.010498046875, -0.010986328125, 0.01544189453125, -0.026123046875, 0.000782012939453125, -0.01025390625, 0.00433349609375, -0.0179443359375, 0.01...
[ 11249, 33022, 17923, 19, 102851, 1528, 12960, 17368, 12921, 5303, 54, 87, 502, 4867, 60212, 6562, 177, 541, 5759, 37842, 4527, 140992, 5608, 186, 2060, 29479, 28484 ]
[ 0.05938720703125, 0.1805419921875, 0.1483154296875, 0.0726318359375, 0.2159423828125, 0.1956787109375, 0.0555419921875, 0.09368896484375, 0.1571044921875, 0.197998046875, 0.0211639404296875, 0.00653076171875, 0.041259765625, 0.135986328125, 0.1954345703125, 0.15576171875, 0.041412353...
embed
72469874_c0
72469874
prolog
0
Title: Define the relation `subsum(Set,Sum,Subset)` Problem title: Define the relation `subsum(Set,Sum,Subset)` Tags: prolog Problem: Define the relation `subsum(Set,Sum,Subset)` I have a problem. Define the relation subsum(Set,Sum,Subset) such that Set is a multiset of numbers expressed using lists, Subset is a subset...
Define the relation `subsum(Set,Sum,Subset)` Define the relation `subsum(Set,Sum,Subset)` prolog Define Set Sum Subset Sub Define the relation `subsum(Set,Sum,Subset)` I have a problem. My answer is: But this code does not work as I expected. Could you give me some hints?
[ -0.0125732421875, 0.01226806640625, 0.037109375, 0.014404296875, -0.01373291015625, -0.009033203125, -0.00897216796875, 0.006195068359375, 0.03759765625, 0.018310546875, -0.00157928466796875, 0.0089111328125, 0.005950927734375, -0.007049560546875, 0.006866455078125, 0.00086212158203125...
[ 262, 64552, 41911, 22144, 11832, 294, 126, 316, 96472, 3509, 70, 132, 502, 4867, 19943, 36335, 8273, 2967, 4966, 903, 18151, 14602, 959, 4488, 237, 84751, 5122 ]
[ 0.03350830078125, 0.1568603515625, 0.201171875, 0.20947265625, 0.275146484375, 0.146484375, 0.207275390625, 0.23876953125, 0.2186279296875, 0.26708984375, 0.0120849609375, 0.0271453857421875, 0.0921630859375, 0.14453125, 0.1927490234375, 0.2130126953125, 0.2159423828125, 0.07250976...
embed
1483119_c0
1483119
prolog
0
Title: Is there an alphabetical character check in prolog? Problem title: Is there an alphabetical character check in prolog? Tags: character, character-encoding, prolog, swi-prolog Problem: Is there an alphabetical character check in prolog? Greetings, Is there was test or a predicate I can use in prolog to verify tha...
Is there an alphabetical character check in prolog? Is there an alphabetical character check in prolog? character character-encoding prolog swi-prolog Checking Is there an alphabetical character check in prolog? Greetings, Is there was test or a predicate I can use in prolog to verify that a certain given character is ...
[ 0.01263427734375, -0.013427734375, 0.006500244140625, 0.0262451171875, -0.00933837890625, -0.01019287109375, 0.01141357421875, 0.0016937255859375, -0.00946044921875, 0.0230712890625, 0.010009765625, -0.0159912109375, 0.006866455078125, 0.005035400390625, -0.004486083984375, 0.012207031...
[ 2071, 2685, 142, 229231, 21533, 62816, 12765, 23, 502, 4867, 66332, 6238, 2452, 3454, 38679, 3034, 1653, 2063, 831, 4527, 47, 493, 450, 24233, 34475, 83, 5036, 32036, 220, 1165, 24243, 124850, 209, 32628, 2789, 711, 9185, 9271, 12465, 100...
[ 0.039947509765625, 0.0784912109375, 0.06256103515625, 0.2205810546875, 0.1507568359375, 0.212890625, 0.2210693359375, 0.10699462890625, 0.1810302734375, 0.244140625, 0.106201171875, 0.0286102294921875, 0.1273193359375, 0.1341552734375, 0.170654296875, 0.173095703125, 0.0816650390625,...
embed
10785027_c0
10785027
prolog
0
Title: DCG(Definite clause grammar) in Prolog Problem title: DCG(Definite clause grammar) in Prolog Tags: dcg, clause, grammar, prolog Problem: DCG(Definite clause grammar) in Prolog I am trying to make a DCG in prolog so that I create a sentence based on some predicates. I have two pieces of information = properties o...
DCG(Definite clause grammar) in Prolog DCG(Definite clause grammar) in Prolog dcg clause grammar prolog DCG Definite Prolog DCG(Definite clause grammar) in Prolog I am trying to make a DCG in prolog so that I create a sentence based on some predicates. I have two pieces of information = properties of objects ("Charles ...
[ 0.0233154296875, 0.0018768310546875, 0.01312255859375, 0.019287109375, 0.017333984375, 0.0135498046875, -0.00494384765625, -0.00640869140625, 0.003753662109375, -0.04443359375, -0.0208740234375, 0.0028076171875, -0.0234375, -0.00077056884765625, 0.0174560546875, 0.0233154296875, 0.00...
[ 391, 56367, 187423, 943, 67, 70731, 13, 122092, 147, 23, 1250, 4867, 104, 238, 177, 502, 88606, 31577, 3249, 28282, 149357, 35509, 1653, 2063, 6626, 126371, 4677, 183871, 36746, 84068, 1577, 83, 332, 91582, 17721, 67373, 111, 25031, 66211, ...
[ 0.122802734375, 0.2353515625, 0.12060546875, 0.1129150390625, 0.092041015625, 0.192626953125, 0.08453369140625, 0.1292724609375, 0.0936279296875, 0.035308837890625, 0.1488037109375, 0.2200927734375, 0.0256805419921875, 0.056396484375, 0.0751953125, 0.1407470703125, 0.126220703125, ...
embed
27728127_c0
27728127
prolog
0
Title: Prolog Find Cheapest Price Problem title: Prolog Find Cheapest Price Tags: prolog Problem: Prolog Find Cheapest Price I have following set of facts: flight(kul,syd,495,2205). flight(jhb,kul,45,321). flight(pen,kul,55,346). flight(lgk,kul,65,381). flight(lgk,pen,35,215). flight(kul,sin,65,760). flight(lgk,sin,90,...
Prolog Find Cheapest Price Prolog Find Cheapest Price prolog Prolog Find Cheapest Price EST Prolog Find Cheapest Price I have following set of facts: which is flight(FROM,TO,EST,PRICE). now i need to create a rule to find the cheapest fare between two cities. It will mean the world if someone could help me on this. Tha...
[ 0.020263671875, 0.01165771484375, 0.02001953125, 0.007568359375, -0.0023040771484375, 0.0194091796875, -0.001068115234375, 0.000415802001953125, 0.01220703125, -0.04052734375, -0.01336669921875, 0.00830078125, -0.0078125, -0.017822265625, 0.0022125244140625, -0.0086669921875, 0.00494...
[ 1250, 4867, 26040, 5024, 11, 113778, 48025, 502, 50149, 87, 765, 25632, 5423, 111, 15824, 3129, 83, 113014, 919, 61607, 8727, 21828, 17255, 31722, 5036, 17, 3871, 28282, 10, 79986, 47, 7413, 70, 64720, 525, 4889, 17721, 6626, 162708, 1650...
[ 0.165771484375, 0.264404296875, 0.182861328125, 0.1561279296875, 0.144287109375, 0.1934814453125, 0.1939697265625, 0.1239013671875, 0.219482421875, 0.0301055908203125, 0.039276123046875, 0.0836181640625, 0.063232421875, 0.031097412109375, 0.1016845703125, 0.064697265625, 0.0722045898...
embed
37059180_c2
37059180
prolog
2
? creep Call: (12) maxAltura([c(12, 0)], 10) ? creep Call: (13) max(10, 0, _G4361) ? creep Call: (14) 10>0 ? creep Exit: (14) 10>0 ? creep Call: (14) _G4359 is 10 ? creep Exit: (14) 10 is 10 ? creep Exit: (13) max(10, 0, 10) ? creep Exit: (12) maxAltura([c(12, 0)], 10) ? creep Exit: (11) maxAltura([c(11, 10), c(12, 0)...
? creep Call: (12) maxAltura([c(12, 0)], 10) ? creep Call: (13) max(10, 0, _G4361) ? creep Call: (14) 10>0 ? creep Exit: (14) 10>0 ? creep Call: (14) _G4359 is 10 ? creep Exit: (14) 10 is 10 ? creep Exit: (13) max(10, 0, 10) ? creep Exit: (12) maxAltura([c(12, 0)], 10) ? creep Exit: (11) maxAltura([c(11, 10), c(12, 0)...
[ 0.01519775390625, 0.0164794921875, 0.0184326171875, 0.034912109375, 0.0137939453125, 0.016357421875, -0.01470947265625, -0.006866455078125, 0.011474609375, -0.00189971923828125, -0.005584716796875, 0.01019287109375, -0.001861572265625, 0.008544921875, 0.0296630859375, -0.0130615234375,...
[ 705, 49512, 254, 26265, 23676, 18389, 6210, 3595, 238, 134186, 757, 209, 28261, 90980, 724, 168865, 17727, 31203, 2740, 2389, 5443, 217, 101, 617, 120301, 83, 21282, 1662, 65034, 17857, 11438, 10021, 501, 8696, 13956, 29568, 1957, 13695, 23...
[ 0.06597900390625, 0.2296142578125, 0.1568603515625, 0.2210693359375, 0.1717529296875, 0.2349853515625, 0.1864013671875, 0.21923828125, 0.052734375, 0.1317138671875, 0.1258544921875, 0.2147216796875, 0.135009765625, 0.1541748046875, 0.05731201171875, 0.18701171875, 0.0919189453125, ...
embed
14140678_c0
14140678
prolog
0
Title: Standard way to see what phrase/3 translates? Problem title: Standard way to see what phrase/3 translates? Tags: dcg, gnu-prolog, iso-prolog, prolog Problem: Standard way to see what phrase/3 translates? I am trying to dig into the GNU Prolog behaviour of: test(X,I,O) :- phrase(X,I,O). ?- test(("a",!,"b"),"ab","...
Standard way to see what phrase/3 translates? Standard way to see what phrase/3 translates? dcg gnu-prolog iso-prolog prolog Standard expand_term Standard way to see what phrase/3 translates? I am trying to dig into the GNU Prolog behaviour of: Is there a standard way to see to what phrase/3 translates? According to th...
[ 0.0380859375, -0.005523681640625, 0.00112152099609375, 0.033935546875, -0.0130615234375, 0.00335693359375, 0.00726318359375, -0.016357421875, 0.01312255859375, -0.0196533203125, 0.0167236328125, -0.00225830078125, -0.01287841796875, 0.003570556640625, -0.0106201171875, 0.027587890625, ...
[ 20744, 3917, 47, 1957, 2367, 113860, 18113, 3900, 19309, 7, 177, 104155, 3454, 4867, 13882, 502, 71062, 32166, 165132, 1250, 224833, 5570, 17408, 56367, 152132, 64209, 12477, 12765, 14192, 3642, 11814, 3034, 28981, 59531, 1662, 363, 22435, 88...
[ 0.1844482421875, 0.078125, 0.0792236328125, 0.1383056640625, 0.055511474609375, 0.236328125, 0.2457275390625, 0.15185546875, 0.182373046875, 0.046600341796875, 0.037567138671875, 0.09521484375, 0.0665283203125, 0.1973876953125, 0.03338623046875, 0.072998046875, 0.1328125, 0.1574707...
embed
44989887_c0
44989887
prolog
0
Title: SWI-Prolog parsing DCG predicate doesn&#x27;t work Problem title: SWI-Prolog parsing DCG predicate doesn&#x27;t work Tags: parsing, prolog Problem: SWI-Prolog parsing DCG predicate doesn't work I have a predicate with the goal of parsing a grammar. The productions of the grammar are: S-> B B->bB B->b The predica...
SWI-Prolog parsing DCG predicate doesn&#x27;t work SWI-Prolog parsing DCG predicate doesn&#x27;t work parsing prolog SWI-Prolog DCG List SWI-Prolog parsing DCG predicate doesn't work I have a predicate with the goal of parsing a grammar. The productions of the grammar are: S-> B B->bB B->b The predicate is intended to ...
[ 0.0224609375, 0.01251220703125, 0.0181884765625, 0.0240478515625, -0.015380859375, 0.031982421875, -0.015380859375, -0.01373291015625, -0.004241943359375, 0.002716064453125, 0.004913330078125, -0.00537109375, -0.01385498046875, -0.005218505859375, 0.0164794921875, 0.01434326171875, 0...
[ 159, 38969, 10752, 4867, 366, 6953, 391, 56367, 1653, 2063, 67, 22027, 3768, 18, 4488, 502, 32036, 69236, 122092, 147, 36049, 103607, 335, 275, 571, 179140, 23, 5303, 83324, 10617, 18151, 19048, 83, 29806, 51, 2886, 96391, 4, 2843, 10, ...
[ 0.1209716796875, 0.2291259765625, 0.135986328125, 0.1719970703125, 0.1627197265625, 0.038360595703125, 0.130126953125, 0.2371826171875, 0.17724609375, 0.218994140625, 0.0975341796875, 0.07403564453125, 0.054412841796875, 0.080810546875, 0.154052734375, 0.09918212890625, 0.11474609375...
embed
8809831_c0
8809831
prolog
0
Title: Prolog Arithmetic plus Problem title: Prolog Arithmetic plus Tags: prolog, addition Problem: Prolog Arithmetic plus I've stumbled on a rather weird problem (to me). Very easy, I want to an addition between 2 integers. I use the plus clause from swi Now when I do this (I'm calculation something in a graph) plus(L...
Prolog Arithmetic plus Prolog Arithmetic plus prolog addition Prolog Arithmetic LatestTime LengthPath TimeArrive Var1 Var2 Result Prolog Arithmetic plus I've stumbled on a rather weird problem (to me). Very easy, I want to an addition between 2 integers. I use the plus clause from swi Now when I do this (I'm calculatio...
[ -0.004364013671875, 0.01483154296875, -0.0024566650390625, 0.01385498046875, -0.02001953125, 0.01385498046875, -0.01092529296875, -0.002777099609375, 0.01361083984375, -0.07861328125, 0.0052490234375, -0.00115966796875, -0.00555419921875, 0.02587890625, 0.00579833984375, -0.01550292968...
[ 1250, 4867, 8962, 282, 9523, 1001, 502, 66044, 62805, 70059, 77554, 683, 10519, 19055, 7614, 416, 272, 3323, 418, 304, 126684, 40099, 43257, 179459, 2967, 99342, 23468, 3444, 17721, 116, 892, 26255, 4527, 70731, 13, 2452, 74481, 41382, 7733...
[ 0.1505126953125, 0.2281494140625, 0.10986328125, 0.07958984375, 0.047210693359375, 0.172607421875, 0.125244140625, 0.191650390625, 0.077880859375, 0.1231689453125, 0.002532958984375, 0.0183258056640625, 0.0853271484375, 0.1253662109375, 0.08367919921875, 0.133544921875, 0.1845703125,...
embed
25520626_c0
25520626
prolog
0
Title: Why does my Pradicate my_flatten/2 not flatten a nested list structure? (Prolog) Problem title: Why does my Pradicate my_flatten/2 not flatten a nested list structure? (Prolog) Tags: list, prolog, flatten Problem: Why does my Pradicate my_flatten/2 not flatten a nested list structure? (Prolog) The predicate i wr...
Why does my Pradicate my_flatten/2 not flatten a nested list structure? (Prolog) Why does my Pradicate my_flatten/2 not flatten a nested list structure? (Prolog) list prolog flatten Why Pradicate my_flatten Prolog is_list Why does my Pradicate my_flatten/2 not flatten a nested list structure? (Prolog) The predicate i w...
[ -0.01043701171875, 0.00946044921875, 0.0228271484375, 0.01007080078125, 0.00360107421875, 0.0341796875, 0.00537109375, -0.0011444091796875, 0.01806640625, 0.007049560546875, 0.0281982421875, -0.0205078125, -0.007598876953125, 0.01226806640625, 0.01385498046875, -0.0037994384765625, 0...
[ 44084, 4061, 18601, 67, 759, 150632, 510, 12477, 959, 49878, 8512, 71, 5303, 45646, 10752, 4867, 502, 1250, 83, 6562, 1653, 2063, 54397, 8781, 32036, 275, 238, 420, 304, 18151, 6528, 12765, 36766, 10336, 10, 51957, 195625, 114689, 46741, ...
[ 0.095947265625, 0.1197509765625, 0.14599609375, 0.1185302734375, 0.1253662109375, 0.1778564453125, 0.1895751953125, 0.187744140625, 0.08624267578125, 0.2113037109375, 0.1785888671875, 0.044464111328125, 0.18212890625, 0.1600341796875, 0.0931396484375, 0.187744140625, 0.0880126953125,...
embed
46072842_c0
46072842
prolog
0
Title: removing even number of duplicates in list Problem title: removing even number of duplicates in list Tags: prolog Problem: removing even number of duplicates in list I have a list of lists and I have to remove the even number of duplicates in every list. e.g. input1 : [[1,2,3],[1,4,5]], expected output : [[2,3],...
removing even number of duplicates in list removing even number of duplicates in list prolog input1 input2 LNew removing even number of duplicates in list I have a list of lists and I have to remove the even number of duplicates in every list. e.g. at moment, my coding is as follow:
[ -0.01495361328125, 0.032958984375, 0.001678466796875, -0.0220947265625, -0.01806640625, 0.007598876953125, 0.0157470703125, 0.00787353515625, 0.016357421875, -0.000324249267578125, -0.004241943359375, -0.00157928466796875, 0.0181884765625, -0.0037384033203125, 0.004180908203125, 0.0299...
[ 49146, 6496, 3853, 14012, 111, 171763, 1636, 23, 5303, 502, 4867, 107730, 304, 339, 46568, 765, 47, 87388, 11907, 3095, 552, 6238, 28960 ]
[ 0.1229248046875, 0.06365966796875, 0.1856689453125, 0.1470947265625, 0.041961669921875, 0.260009765625, 0.1552734375, 0.069580078125, 0.21142578125, 0.1219482421875, 0.156005859375, 0.10888671875, 0.012939453125, 0.0567626953125, 0.1685791015625, 0.0186920166015625, 0.002166748046875...
embed
58828723_c0
58828723
prolog
0
Title: Is the second of these solutions more efficient? Problem title: Is the second of these solutions more efficient? Tags: prolog Problem: Is the second of these solutions more efficient? Wondering if as a practical matter the post-compilation of the second solution below is more efficient . first solution : write_d...
Is the second of these solutions more efficient? Is the second of these solutions more efficient? prolog write_data LAST Rest vm_list s_virgin i_exit h_nil i_exitfact h_list h_void h_pop i_enter b_atom i_call i_depart h_list_ff b_unify_var b_unify_exit b_var1 b_var2 b_var Is the second of these solutions more efficient...
[ -0.00092315673828125, 0.01300048828125, 0.006072998046875, 0.025390625, 0.000537872314453125, 0.0086669921875, -0.01025390625, 0.00007772445678710938, 0.01953125, -0.008056640625, -0.00099945068359375, -0.014404296875, -0.00060272216796875, -0.005096435546875, 0.0072021484375, 0.009033...
[ 2071, 17932, 111, 6097, 51347, 1286, 93766, 502, 4867, 33022, 10135, 172905, 49756, 81, 39, 6562, 91, 7203, 6820, 17, 23399, 17324, 114700, 965, 33554, 36126, 5928, 85763, 17365, 4902, 309, 40383, 1961, 138155, 1305, 5974, 29806, 35064, 83,...
[ 0.0262451171875, 0.2105712890625, 0.01910400390625, 0.062103271484375, 0.1767578125, 0.15185546875, 0.2337646484375, 0.155517578125, 0.2247314453125, 0.1302490234375, 0.11962890625, 0.1617431640625, 0.199462890625, 0.037078857421875, 0.0306396484375, 0.183349609375, 0.017929077148437...
embed
17830524_c1
17830524
prolog
1
t : 0 1 2 3 4 where X means "we do not know" because x(-1) needs to be known for y(0) computation. The task is to compute x(t) for t in 1..4 when y(t) is known. x(0) and x(4) can be requested to have particular values or not. This only affects the number of solutions, but it is not crucial for the essence of the task,...
t : 0 1 2 3 4 where X means "we do not know" because x(-1) needs to be known for y(0) computation. The task is to compute x(t) for t in 1..4 when y(t) is known. x(0) and x(4) can be requested to have particular values or not. This only affects the number of solutions, but it is not crucial for the essence of the task,...
[ -0.00823974609375, 0.0322265625, 0.004150390625, 0.02490234375, -0.01263427734375, 0.005126953125, 0.00958251953125, 0.0262451171875, 0.007080078125, -0.0030670166015625, -0.0031585693359375, -0.0003204345703125, -0.006011962890625, 0.0186767578125, 0.01275634765625, 0.01422119140625, ...
[ 808, 152, 757, 106, 116, 138, 201, 7440, 1193, 26950, 1177, 54, 959, 3714, 6637, 1022, 110218, 27117, 51529, 113, 177609, 181135, 1363, 66211, 83, 47, 9969, 6743, 132, 18, 100, 23, 615, 5, 617, 3229, 136, 99217, 831, 186, 50336, 765, ...
[ 0.21044921875, 0.033966064453125, 0.1998291015625, 0.113525390625, 0.1771240234375, 0.21875, 0.27587890625, 0.00335693359375, 0.1561279296875, 0.051788330078125, 0.118408203125, 0.109619140625, 0.1490478515625, 0.1900634765625, 0.026092529296875, 0.140380859375, 0.153076171875, 0.0...
embed
7537921_c0
7537921
prolog
0
Title: SWI Prolog interpret/compile from command line Problem title: SWI Prolog interpret/compile from command line Tags: swi-prolog, prolog Problem: SWI Prolog interpret/compile from command line I am using Windows, and i want to interpret/compile a prolog file with cmd, is any method to do that?. The purpose is to ma...
SWI Prolog interpret/compile from command line SWI Prolog interpret/compile from command line swi-prolog prolog command SWI Prolog a.output a.pl swi-prolog.com a2.txt SWI Prolog interpret/compile from command line I am using Windows, and i want to interpret/compile a prolog file with cmd, is any method to do that?. The...
[ 0.005157470703125, -0.00811767578125, 0.000919342041015625, 0.02197265625, -0.0260009765625, 0.00970458984375, 0.01397705078125, -0.0091552734375, -0.010009765625, -0.03515625, -0.00848388671875, 0.0245361328125, -0.0172119140625, -0.00299072265625, -0.00262451171875, -0.00640869140625...
[ 159, 38969, 1250, 4867, 29481, 64, 58875, 1340, 1295, 75101, 13315, 91, 2452, 3454, 502, 10, 6056, 7077, 2424, 277, 5442, 124326, 17368, 3773, 3444, 47, 11435, 678, 1827, 71, 55300, 54, 60042, 128019, 56, 34759, 140992, 186, 35166, 100, ...
[ 0.09405517578125, 0.262939453125, 0.1915283203125, 0.248291015625, 0.252197265625, 0.040985107421875, 0.1461181640625, 0.1392822265625, 0.111083984375, 0.2215576171875, 0.1551513671875, 0.0340576171875, 0.2265625, 0.1495361328125, 0.198974609375, 0.1123046875, 0.084716796875, 0.020...
embed
50744844_c0
50744844
prolog
0
Title: Prolog Reciprocal Counting Problem title: Prolog Reciprocal Counting Tags: prolog Problem: Prolog Reciprocal Counting I'm trying to get Prolog to compute a reciprocal. I want to ask Prolog this question: rec/2 like so rec(3, Result). The formula i try to convert is this f(n) = 1 + 1/2 + 1/3 ... + 1/n It should l...
Prolog Reciprocal Counting Prolog Reciprocal Counting prolog Prolog Reciprocal Counting N-1 Prolog Reciprocal Counting I'm trying to get Prolog to compute a reciprocal. I want to ask Prolog this question: rec/2 like so rec(3, Result). The formula i try to convert is this It should lead to 1.833333... I have rec(0,0). a...
[ -0.0179443359375, 0.000396728515625, 0.0159912109375, 0.01263427734375, 0.0194091796875, -0.002716064453125, 0.00762939453125, -0.007232666015625, 0.016845703125, -0.035400390625, -0.000720977783203125, -0.0166015625, -0.01007080078125, 0.00299072265625, 0.01385498046875, -0.0125732421...
[ 1250, 4867, 87389, 3454, 6827, 1311, 128396, 502, 541, 5759, 31577, 9969, 6743, 159826, 289, 26458, 21954, 12477, 1884, 221, 86827, 126684, 26168, 9790, 96760, 903, 5608, 37105, 47, 79875, 9185, 66000, 765, 63527, 4034, 76199, 757, 2174, 10...
[ 0.1453857421875, 0.25146484375, 0.1143798828125, 0.1529541015625, 0.10205078125, 0.1376953125, 0.1805419921875, 0.07928466796875, 0.003662109375, 0.107666015625, 0.03338623046875, 0.0960693359375, 0.0965576171875, 0.265625, 0.164306640625, 0.0162200927734375, 0.2020263671875, 0.269...
embed
9708199_c0
9708199
prolog
0
Title: Sum of a list in prolog Problem title: Sum of a list in prolog Tags: successor-arithmetics, prolog Problem: Sum of a list in prolog I'm reading 'the art of prolog' book and I found an exercise that reads 'Define the relation sum(ListOfIntegers,Sum) which holds if Sum is the sum of the ListOfIntegers, without usi...
Sum of a list in prolog Sum of a list in prolog successor-arithmetics prolog Sum Sum of a list in prolog I'm reading 'the art of prolog' book and I found an exercise that reads 'Define the relation sum(ListOfIntegers,Sum) which holds if Sum is the sum of the ListOfIntegers, without using any auxiliary predicate' .I cam...
[ 0.000766754150390625, 0.0125732421875, 0.0107421875, 0.01373291015625, -0.026611328125, -0.004119873046875, -0.0076904296875, 0.024658203125, 0.0140380859375, -0.0223388671875, -0.007049560546875, -0.003997802734375, -0.0205078125, -0.00080108642578125, 0.0361328125, 0.0062255859375, ...
[ 36335, 111, 5303, 502, 4867, 39457, 42, 8962, 10, 23, 4927, 81979, 187423, 1212, 41911, 10554, 154663, 132887, 67, 26255, 294, 316, 16401, 2174, 83, 32036, 15490, 17368, 119591, 1653, 2063, 29806, 4488, 41206, 1193, 186, 2967, 40705, 119066...
[ 0.2476806640625, 0.135498046875, 0.1866455078125, 0.1507568359375, 0.2034912109375, 0.1343994140625, 0.016845703125, 0.0233612060546875, 0.001220703125, 0.025360107421875, 0.013275146484375, 0.04827880859375, 0.08514404296875, 0.021728515625, 0.146240234375, 0.2362060546875, 0.111938...
embed
74574315_c0
74574315
prolog
0
Title: What does the &#x27;line&#x27; predicate mean in Prolog? Problem title: What does the &#x27;line&#x27; predicate mean in Prolog? Tags: prolog Problem: What does the 'line' predicate mean in Prolog? I am currently trying to understand some Prolog code for a game, but I somehow can't find any documentation about a...
What does the &#x27;line&#x27; predicate mean in Prolog? What does the &#x27;line&#x27; predicate mean in Prolog? prolog What Prolog Line Constr Rest What does the 'line' predicate mean in Prolog? I am currently trying to understand some Prolog code for a game, but I somehow can't find any documentation about a specifi...
[ 0.013916015625, 0.00128936767578125, 0.01544189453125, 0.0223388671875, -0.007720947265625, 0.0242919921875, 0.01043701171875, 0.01470947265625, 0.00848388671875, -0.044677734375, -0.014404296875, -0.00555419921875, -0.01129150390625, -0.0194091796875, -0.01275634765625, 0.023803710937...
[ 4865, 54764, 3768, 2256, 1653, 2063, 67, 29459, 23, 1250, 4867, 502, 16777, 1657, 9297, 49756, 14602, 28219, 18151, 6712, 209806, 79986, 77848, 11814, 4527, 442, 10750, 5303, 61924, 11782, 41024, 29481, 56, 43240, 14192, 2367, 903, 26950, 8...
[ 0.063232421875, 0.0234375, 0.1412353515625, 0.269287109375, 0.2012939453125, 0.2244873046875, 0.09075927734375, 0.1572265625, 0.0679931640625, 0.1829833984375, 0.2406005859375, 0.1131591796875, 0.2237548828125, 0.099853515625, 0.1820068359375, 0.173828125, 0.0239410400390625, 0.027...
embed
41831661_c0
41831661
prolog
0
Title: sublist with boundary limiters as elements Problem title: sublist with boundary limiters as elements Tags: predicate, list, prolog, dcg Problem: sublist with boundary limiters as elements I have a basic predicate for list like this: sublist(List, Offset, Length, Sublist) sublist(List, Offset, Length, Sublist):- ...
sublist with boundary limiters as elements sublist with boundary limiters as elements predicate list prolog dcg List Offset Length Sublist Prefix Rest sublist with boundary limiters as elements I have a basic predicate for list like this: which returns a sublist from the first element in initial list for a given length...
[ -0.0115966796875, -0.005218505859375, 0.0264892578125, -0.0157470703125, -0.006500244140625, 0.016845703125, 0.003448486328125, 0.0162353515625, 0.018798828125, 0.00897216796875, -0.00634765625, -0.006805419921875, -0.00014495849609375, 0.009033203125, 0.0057373046875, 0.01220703125, ...
[ 1614, 6562, 678, 99091, 6635, 17475, 1314, 237, 80854, 1653, 2063, 5303, 502, 4867, 177, 32036, 9791, 3509, 77554, 8273, 55923, 49756, 62822, 67, 1884, 30646, 1295, 5117, 12830, 61475, 34475, 140909, 3444, 27198, 92319, 136, 1407, 56, 10523...
[ 0.20947265625, 0.234130859375, 0.07391357421875, 0.18115234375, 0.0906982421875, 0.1990966796875, 0.10675048828125, 0.0352783203125, 0.144775390625, 0.142822265625, 0.193359375, 0.16162109375, 0.066162109375, 0.126953125, 0.01190185546875, 0.12060546875, 0.11083984375, 0.0498352050...
embed
23833481_c0
23833481
prolog
0
Title: findall/3 returns an empty list instead of solutions Problem title: findall/3 returns an empty list instead of solutions Tags: prolog, gnu-prolog, prolog-findall Problem: findall/3 returns an empty list instead of solutions I use GNU Prolog to solve a problem. I have defined the following predicate : % P is the ...
findall/3 returns an empty list instead of solutions findall/3 returns an empty list instead of solutions prolog gnu-prolog prolog-findall clue_one clue_two findall/3 returns an empty list instead of solutions I use GNU Prolog to solve a problem. I have defined the following predicate : Prolog says that clue_two(17) is...
[ 0.0159912109375, -0.0033111572265625, -0.000518798828125, 0.0279541015625, -0.01129150390625, 0.0242919921875, -0.01263427734375, -0.0040283203125, 0.0201416015625, -0.00133514404296875, 0.01904296875, 0.00238037109375, -0.0113525390625, -0.000339508056640625, 0.0091552734375, 0.020019...
[ 7413, 5584, 18113, 30646, 201505, 5303, 64457, 51347, 502, 4867, 104155, 3454, 111607, 29786, 13, 3630, 55547, 4527, 165132, 1250, 86869, 2967, 61924, 1653, 2063, 59741, 29568, 1284, 87, 9790, 294, 339, 44084 ]
[ 0.133056640625, 0.203125, 0.2269287109375, 0.1424560546875, 0.17041015625, 0.1693115234375, 0.08929443359375, 0.1544189453125, 0.117431640625, 0.2225341796875, 0.08746337890625, 0.109375, 0.1217041015625, 0.1522216796875, 0.0496826171875, 0.08154296875, 0.1597900390625, 0.015701293...
embed
9809414_c0
9809414
prolog
0
Title: Would this predicate work ? this came on my quiz to find the position of element X in a data structure called list Problem title: Would this predicate work ? this came on my quiz to find the position of element X in a data structure called list Tags: prolog, list, data-structures, recursion Problem: Would this p...
Would this predicate work ? this came on my quiz to find the position of element X in a data structure called list Would this predicate work ? this came on my quiz to find the position of element X in a data structure called list prolog list data-structures recursion Would Would this predicate work ? this came on my qu...
[ -0.0052490234375, 0.0157470703125, 0.01025390625, -0.00927734375, -0.0228271484375, 0.0400390625, 0.013427734375, -0.0010528564453125, 0.01251220703125, -0.0361328125, 0.0155029296875, 0.002044677734375, 0.006317138671875, -0.01141357421875, 0.012939453125, 0.015380859375, 0.02600097...
[ 154559, 903, 1653, 2063, 67, 4488, 21449, 81758, 7413, 19069, 12830, 1193, 23, 2053, 45646, 5303, 70, 502, 4867, 137656, 195625, 1830, 27781, 6562, 17324, 1511, 567, 2203, 615, 86827, 1031, 83, 36917, 9384, 29806 ]
[ 0.146240234375, 0.1610107421875, 0.2044677734375, 0.233154296875, 0.1324462890625, 0.1893310546875, 0.014190673828125, 0.1412353515625, 0.08349609375, 0.1884765625, 0.1571044921875, 0.147705078125, 0.005584716796875, 0.0982666015625, 0.1605224609375, 0.16064453125, 0.0256805419921875...
embed
10606400_c0
10606400
prolog
0
Title: Changing global stack size, GNU Prolog Problem title: Changing global stack size, GNU Prolog Tags: prolog, stack, gnu-prolog, global Problem: Changing global stack size, GNU Prolog So I'm working with GNU Prolog on a bash server at my university and I need to increase the global stack size. I've tried compiling ...
Changing global stack size, GNU Prolog Changing global stack size, GNU Prolog prolog stack gnu-prolog global Changing GNU Prolog Fatal Error GLOBALSZ Changing global stack size, GNU Prolog So I'm working with GNU Prolog on a bash server at my university and I need to increase the global stack size. I've tried compiling...
[ 0.00872802734375, 0.009521484375, -0.000499725341796875, -0.00665283203125, -0.00537109375, -0.0218505859375, -0.0164794921875, 0.01611328125, -0.000919342041015625, -0.0169677734375, 0.023193359375, 0.0179443359375, -0.01312255859375, 0.0029144287109375, 0.045166015625, 0.013732910156...
[ 108193, 214, 7964, 177261, 13267, 165132, 1250, 4867, 502, 104155, 3454, 3036, 1803, 212059, 240597, 19934, 20697, 98, 87109, 10723, 759, 152363, 3871, 51312, 37842, 9969, 49725, 50717, 3034, 1660, 2424, 11435, 87, 7228, 100, 134234, 7464, 25...
[ 0.1719970703125, 0.0149078369140625, 0.1697998046875, 0.22607421875, 0.1893310546875, 0.2099609375, 0.16357421875, 0.2410888671875, 0.0950927734375, 0.12939453125, 0.100830078125, 0.12353515625, 0.007537841796875, 0.145751953125, 0.15576171875, 0.1329345703125, 0.07080078125, 0.001...
embed
21499606_c0
21499606
prolog
0
Title: Predicate not working as supposed to Problem title: Predicate not working as supposed to Tags: prolog Problem: Predicate not working as supposed to list_trawler([44|_],_). list_trawler([H|T],[H|T1]) :- list_trawler(T,T1). This predicate is supposed to take two lists (say "hello, world" and "hello") and return tr...
Predicate not working as supposed to Predicate not working as supposed to prolog Predicate list_trawler _G395 list_tralwer Correct _G30 Predicate not working as supposed to This predicate is supposed to take two lists (say "hello, world" and "hello") and return true if the second list is the first members of the first ...
[ -0.01275634765625, -0.004119873046875, 0.00146484375, 0.0076904296875, -0.0157470703125, 0.016845703125, 0.00946044921875, -0.000293731689453125, 0.00897216796875, -0.006744384765625, 0.00469970703125, 0.016357421875, -0.00537109375, -0.00014781951904296875, 0.01904296875, 0.0027160644...
[ 7145, 2063, 67, 959, 20697, 237, 134598, 47, 502, 4867, 5303, 1517, 434, 603, 724, 131715, 29088, 6488, 46348, 1197, 1653, 5646, 6626, 20347, 127, 13817, 4, 8999, 136, 30646, 29568, 2174, 17932, 5117, 43032, 24189, 96117, 241446, 102971, ...
[ 0.219482421875, 0.25390625, 0.1343994140625, 0.09783935546875, 0.186767578125, 0.15234375, 0.2020263671875, 0.0985107421875, 0.16552734375, 0.2236328125, 0.2247314453125, 0.08154296875, 0.10711669921875, 0.158203125, 0.07623291015625, 0.279541015625, 0.0828857421875, 0.188232421875...
embed
72553629_c1
72553629
prolog
1
will get all solutions and remove the duplicates, of course. But without those the correct solutions are repeated multiple times. For example (output truncated) | ?- split_atoms(aaaabcaaadef, Atoms). Atoms = [a,a,a,abc,a,a,a,def] ? a Atoms = [a,a,a,abc,a,a,a,def] Atoms = [a,a,a,abc,a,a,a,def] Atoms = [a,a,a,abc,a,a,a,...
will get all solutions and remove the duplicates, of course. But without those the correct solutions are repeated multiple times. For example (output truncated) | ?- split_atoms(aaaabcaaadef, Atoms). Atoms = [a,a,a,abc,a,a,a,def] ? a Atoms = [a,a,a,abc,a,a,a,def] Atoms = [a,a,a,abc,a,a,a,def] Atoms = [a,a,a,abc,a,a,a,...
[ -0.005889892578125, 0.01544189453125, 0.017822265625, 0.0032958984375, -0.024169921875, -0.00024318695068359375, 0.00128173828125, 0.00823974609375, 0.024169921875, -0.031494140625, 0.00775146484375, 0.0157470703125, 0.0228271484375, -0.00262451171875, -0.00677490234375, 0.02880859375,...
[ 1221, 2046, 756, 51347, 87388, 70, 171763, 1636, 15411, 4966, 15490, 8382, 26785, 621, 119140, 297, 48716, 20028, 27781, 6056, 7077, 14617, 16336, 3674, 705, 9, 65450, 257, 28016, 110777, 4240, 69728, 7, 2203, 11, 2055, 238, 4, 112, 420, ...
[ 0.081787109375, 0.107177734375, 0.1126708984375, 0.23095703125, 0.1405029296875, 0.0048828125, 0.199462890625, 0.06982421875, 0.0115966796875, 0.05084228515625, 0.1549072265625, 0.00811767578125, 0.1949462890625, 0.067626953125, 0.23193359375, 0.1099853515625, 0.1751708984375, 0.17...
embed
40987056_c0
40987056
prolog
0
Title: Get unvisited coordinates in Prolog Problem title: Get unvisited coordinates in Prolog Tags: prolog Problem: Get unvisited coordinates in Prolog I am attempting to write a rule in SWI-Prolog for coordinates that have not already been visited. In my current example, the grid is a simple 4x4. visited(1,1). visited...
Get unvisited coordinates in Prolog Get unvisited coordinates in Prolog prolog Get Prolog Xcoordinate Ycoordinate Get unvisited coordinates in Prolog I am attempting to write a rule in SWI-Prolog for coordinates that have not already been visited. In my current example, the grid is a simple 4x4. When I call candidate(X...
[ 0.01416015625, 0.0283203125, 0.0274658203125, 0.00982666015625, -0.0093994140625, -0.0067138671875, 0.0177001953125, 0.0120849609375, -0.00592041015625, 0.002197265625, -0.00518798828125, 0.00009489059448242188, -0.004974365234375, -0.01080322265625, -0.005157470703125, -0.001480102539...
[ 20779, 51, 169697, 297, 176866, 90, 23, 1250, 4867, 502, 1193, 587, 43297, 67, 990, 81887, 33022, 79986, 159, 38969, 10752, 100, 765, 959, 21771, 2809, 36997, 43581, 27781, 120067, 8781, 201, 425, 617, 11782, 25469, 13, 1542, 69236, 28412...
[ 0.094970703125, 0.101806640625, 0.22412109375, 0.107177734375, 0.2454833984375, 0.10888671875, 0.01983642578125, 0.1781005859375, 0.2354736328125, 0.1204833984375, 0.09228515625, 0.114990234375, 0.2305908203125, 0.041748046875, 0.125, 0.0867919921875, 0.040771484375, 0.146118164062...
embed
64440138_c0
64440138
prolog
0
Title: SWI-Prolog Parsing input without querying Problem title: SWI-Prolog Parsing input without querying Tags: prolog Problem: SWI-Prolog Parsing input without querying I have some simple code here: main:- read_string(user_input,"\n","\r\t",_,S), split_string(S," ", "", Ls), ask(Ls). ask([First, Second|O]) :- First = ...
SWI-Prolog Parsing input without querying SWI-Prolog Parsing input without querying prolog SWI-Prolog Parsing read_string user_input split_string First Second SWI-Prolog Parsing input without querying I have some simple code here: The problem is when you type this: I want the 1st option to work like the second and I ca...
[ -0.0021209716796875, 0.01141357421875, -0.0015411376953125, 0.0194091796875, -0.0286865234375, 0.019775390625, 0.01513671875, -0.01397705078125, -0.0081787109375, -0.054931640625, 0.007232666015625, 0.0091552734375, -0.0211181640625, 0.003936767578125, 0.0076904296875, 0.00389099121093...
[ 159, 38969, 9, 10752, 4867, 2392, 6953, 107730, 15490, 41, 1294, 502, 12301, 91693, 38937, 73, 7077, 65450, 23972, 77648, 8781, 18151, 2967, 10644, 903, 3444, 106, 271, 35829, 4488, 1884, 17932, 28219, 15400, 22027, 18, 497, 74703, 7, 512...
[ 0.07763671875, 0.22802734375, 0.001556396484375, 0.135009765625, 0.1986083984375, 0.180908203125, 0.064697265625, 0.1826171875, 0.10107421875, 0.10302734375, 0.0772705078125, 0.108642578125, 0.120361328125, 0.1494140625, 0.09600830078125, 0.072021484375, 0.012603759765625, 0.141113...
embed
64859192_c0
64859192
prolog
0
Title: Negation predicate not/2 for SAT Solver in Prolog Problem title: Negation predicate not/2 for SAT Solver in Prolog Tags: logic, sat, prolog, negation Problem: Negation predicate not/2 for SAT Solver in Prolog I'm writing a SAT Solver in Prolog. Here's what I've been able to come up so far: cst(true). cst(false)....
Negation predicate not/2 for SAT Solver in Prolog Negation predicate not/2 for SAT Solver in Prolog logic sat prolog negation Negation SAT Solver Prolog is_true is_false Negation predicate not/2 for SAT Solver in Prolog I'm writing a SAT Solver in Prolog. Here's what I've been able to come up so far: I'm stuck on the n...
[ 0.0216064453125, -0.0184326171875, 0.0223388671875, -0.00160980224609375, -0.0296630859375, -0.00714111328125, 0.00714111328125, -0.00848388671875, -0.00921630859375, -0.01141357421875, -0.024169921875, -0.01043701171875, -0.00982666015625, 0.01416015625, 0.00958251953125, 0.0072937011...
[ 799, 125682, 1653, 2063, 959, 12477, 100, 75210, 6678, 814, 1250, 4867, 62775, 11736, 502, 108, 83, 9774, 8710, 67, 23, 32562, 179933, 11583, 29786, 206019, 29479, 17932, 1328, 919, 64457, 29568, 26168, 563, 98320, 131148, 44759 ]
[ 0.1610107421875, 0.1317138671875, 0.155517578125, 0.1785888671875, 0.204345703125, 0.22216796875, 0.0255889892578125, 0.1767578125, 0.1417236328125, 0.1463623046875, 0.12646484375, 0.183349609375, 0.06427001953125, 0.093994140625, 0.07855224609375, 0.1405029296875, 0.0928955078125, ...
embed