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
56873873_c0
56873873
prolog
0
Title: Recursion with or cases Problem title: Recursion with or cases Tags: prolog Problem: Recursion with or cases I am very new to prolog and I wanted to write a program that will either increase or decrease a number by 1 and then do the same to the result three times. The result I expected was a series of three numb...
Recursion with or cases Recursion with or cases prolog Recursion J-1 Recursion with or cases I am very new to prolog and I wanted to write a program that will either increase or decrease a number by 1 and then do the same to the result three times. The result I expected was a series of three numbers that represent all ...
[ -0.01611328125, 0.02099609375, -0.00823974609375, -0.00128173828125, -0.01397705078125, -0.00341796875, -0.00933837890625, 0.00909423828125, -0.0045166015625, 0.00142669677734375, 0.004180908203125, -0.00213623046875, -0.005340576171875, 0.0186767578125, 0.033447265625, -0.01220703125,...
[ 165428, 42, 6889, 678, 707, 50218, 502, 4867, 821, 5759, 3525, 36663, 33022, 1528, 1221, 40101, 51312, 227204, 14012, 106, 5701, 16750, 17262, 20028, 84751, 36549, 101935, 33636, 756, 48322, 5809, 15504, 1810, 27781, 2174, 8337, 201, 2046, ...
[ 0.177734375, 0.1839599609375, 0.1363525390625, 0.167236328125, 0.218994140625, 0.261962890625, 0.162841796875, 0.2366943359375, 0.1427001953125, 0.1522216796875, 0.04302978515625, 0.100341796875, 0.1146240234375, 0.159423828125, 0.030364990234375, 0.0186309814453125, 0.1739501953125,...
embed
49820458_c0
49820458
prolog
0
Title: How do I create the same function (html input to jsp) using prolog Problem title: How do I create the same function (html input to jsp) using prolog Tags: prolog, jsp Problem: How do I create the same function (html input to jsp) using prolog I am doing program that use prolog to be integrated with HTML and curr...
How do I create the same function (html input to jsp) using prolog How do I create the same function (html input to jsp) using prolog prolog jsp prolog How page2.jsp Name Next request.getParameter session.setAttribute How do I create the same function (html input to jsp) using prolog I am doing program that use prolog ...
[ 0.02392578125, 0.0078125, -0.005035400390625, 0.00153350830078125, -0.01055908203125, 0.01806640625, -0.00823974609375, 0.0140380859375, -0.0174560546875, -0.07568359375, 0.0279541015625, -0.007598876953125, -0.017333984375, -0.01416015625, 0.008056640625, 0.0050048828125, 0.00546264...
[ 11249, 87, 28282, 5701, 32354, 7693, 107730, 47, 1647, 7008, 17368, 502, 4867, 9191, 5442, 170, 15757, 4997, 50336, 3794, 55292, 29089, 56002, 3509, 191145, 1528, 78779, 678, 19097, 136, 179933, 100094, 135913, 65596, 118596, 821, 9434, 35064...
[ 0.054046630859375, 0.00030517578125, 0.184326171875, 0.1448974609375, 0.199951171875, 0.167236328125, 0.1868896484375, 0.1085205078125, 0.1051025390625, 0.1904296875, 0.02734375, 0.1591796875, 0.23291015625, 0.1473388671875, 0.126953125, 0.08099365234375, 0.06866455078125, 0.104980...
embed
79369704_c1
79369704
prolog
1
ointment/4. :- use_module(library(persistency)). :- persistent(appointment(id:integer, timefrom:integer, timeto:integer, staff:atom)). doctor(brian). doctor(abe). doctor(rufus). is_between(StartTime, EndTime, SuggestedStart, SuggestedEnd):- (between(StartTime, EndTime, SuggestedStart); between(StartTime, EndTime, Sugge...
ointment/4. :- use_module(library(persistency)). :- persistent(appointment(id:integer, timefrom:integer, timeto:integer, staff:atom)). doctor(brian). doctor(abe). doctor(rufus). is_between(StartTime, EndTime, SuggestedStart, SuggestedEnd):- (between(StartTime, EndTime, SuggestedStart); between(StartTime, EndTime, Sugge...
[ -0.000934600830078125, 0.0147705078125, 0.03076171875, 0.01202392578125, -0.010986328125, 0.00848388671875, -0.0103759765625, 0.00193023681640625, 0.00079345703125, -0.06640625, 0.00555419921875, 0.01202392578125, 0.00341796875, -0.003814697265625, 0.0130615234375, -0.01104736328125, ...
[ 36, 4288, 674, 17357, 5, 15772, 4527, 83279, 13, 150, 2844, 1294, 21777, 6892, 2408, 70560, 2517, 140545, 532, 6191, 1505, 1733, 161063, 188, 23082, 5928, 22072, 7928, 66, 194, 34669, 47323, 223, 83, 4626, 1177, 33, 126597, 70059, 18878, ...
[ 0.090087890625, 0.2164306640625, 0.2135009765625, 0.257080078125, 0.06817626953125, 0.08709716796875, 0.19091796875, 0.2274169921875, 0.05865478515625, 0.0665283203125, 0.168212890625, 0.0601806640625, 0.1270751953125, 0.1953125, 0.1094970703125, 0.254638671875, 0.1922607421875, 0....
embed
47528307_c0
47528307
prolog
0
Title: Splitting a list before and after a particular element in prolog (without using "split" predicate?) Problem title: Splitting a list before and after a particular element in prolog (without using "split" predicate?) Tags: split, prolog, list Problem: Splitting a list before and after a particu...
Splitting a list before and after a particular element in prolog (without using "split" predicate?) Splitting a list before and after a particular element in prolog (without using "split" predicate?) split prolog list Splitting Splitting a list before and after a particular element in prolog (withou...
[ -0.00701904296875, 0.00909423828125, -0.010009765625, -0.01116943359375, -0.0311279296875, 0.01409912109375, -0.00506591796875, 0.006683349609375, 0.00811767578125, -0.0213623046875, 0.003936767578125, 0.01177978515625, -0.01397705078125, -0.00579833984375, 0.0172119140625, 0.020019531...
[ 46474, 1916, 5303, 8108, 136, 7103, 17311, 12830, 502, 4867, 6056, 4353, 1653, 2063, 65450, 17368, 7008, 31577, 3934, 55769, 29458, 2565, 19111, 4527, 3525, 45258, 32354, 82424, 1884, 3714, 7722, 678, 6397, 3444, 99, 137802 ]
[ 0.2098388671875, 0.0831298828125, 0.2060546875, 0.1494140625, 0.075927734375, 0.1455078125, 0.0772705078125, 0.1429443359375, 0.15625, 0.2052001953125, 0.0384521484375, 0.1842041015625, 0.08660888671875, 0.1024169921875, 0.2279052734375, 0.008636474609375, 0.010955810546875, 0.0600...
embed
53989755_c0
53989755
prolog
0
Title: Associative list in Prolog Problem title: Associative list in Prolog Tags: associative-array, list, logic, predicate, prolog Problem: Associative list in Prolog i m doing associative list in prolog i seen this topic but i dont understand the code. Associative Lists in Prolog For checking list is associative isn'...
Associative list in Prolog Associative list in Prolog associative-array list logic predicate prolog Associative Prolog Associative list in Prolog i m doing associative list in prolog i seen this topic but i dont understand the code. Associative Lists in Prolog For checking list is associative isn't enough do this: Beca...
[ 0.018310546875, 0.010986328125, -0.003326416015625, 0.00970458984375, -0.01348876953125, 0.0030517578125, 0.0118408203125, 0.009765625, -0.003570556640625, -0.028076171875, 0.0252685546875, 0.01348876953125, -0.01165771484375, 0.00653076171875, 0.0162353515625, 0.000823974609375, 0.0...
[ 159594, 4935, 5303, 1250, 4867, 166027, 272, 19305, 62775, 1653, 2063, 502, 13319, 28219, 18151, 32036, 23, 175199, 83, 20174, 903, 5117, 11583, 12765, 2174, 12830, 3917, 11, 96386, 12477, 5646, 617, 27875, 11782, 29568, 3647, 7225, 44691, ...
[ 0.1962890625, 0.1527099609375, 0.2218017578125, 0.1591796875, 0.2398681640625, 0.1842041015625, 0.1446533203125, 0.033660888671875, 0.0933837890625, 0.040496826171875, 0.07196044921875, 0.1156005859375, 0.03826904296875, 0.08544921875, 0.09033203125, 0.239990234375, 0.0133056640625, ...
embed
19266913_c0
19266913
prolog
0
Title: Tree parsing in Prolog Problem title: Tree parsing in Prolog Tags: prolog, tree Problem: Tree parsing in Prolog you can suggest the following: I have something like a warehouse and I gained a graph out of it. The vertices are (0-0), (0-1) and so on and the edges are weighted, for example: e(0-0,0-1,1). From this...
Tree parsing in Prolog Tree parsing in Prolog prolog tree Tree Prolog tree_walker Tree parsing in Prolog you can suggest the following: I have something like a warehouse and I gained a graph out of it. The vertices are (0-0), (0-1) and so on and the edges are weighted, for example: e(0-0,0-1,1). From this graph (which ...
[ 0.0296630859375, 0.023193359375, -0.0255126953125, 0.00897216796875, -0.001495361328125, 0.0103759765625, -0.0257568359375, -0.0166015625, -0.0033416748046875, -0.0478515625, -0.0064697265625, -0.01324462890625, -0.01324462890625, -0.008544921875, 0.017333984375, 0.017578125, -0.0018...
[ 101344, 366, 6953, 1250, 4867, 23, 502, 53201, 94449, 56, 42459, 765, 1884, 105816, 23923, 21647, 41382, 1810, 95378, 5170, 22085, 23320, 82343, 121303, 57888, 28, 2389, 105823, 44506, 234873, 20187, 175884, 3444, 738, 8305, 28271, 678, 4420,...
[ 0.2457275390625, 0.1888427734375, 0.1148681640625, 0.172607421875, 0.25244140625, 0.0256195068359375, 0.1239013671875, 0.2259521484375, 0.1739501953125, 0.08734130859375, 0.09857177734375, 0.0160369873046875, 0.00286865234375, 0.09381103515625, 0.09832763671875, 0.04742431640625, 0.1...
embed
74682115_c0
74682115
prolog
0
Title: How to fix an error in implementing a quicksort algorithm in Prolog? Problem title: How to fix an error in implementing a quicksort algorithm in Prolog? Tags: prolog, quicksort Problem: How to fix an error in implementing a quicksort algorithm in Prolog? I am working on my understanding of Quicksort in Prolog. T...
How to fix an error in implementing a quicksort algorithm in Prolog? How to fix an error in implementing a quicksort algorithm in Prolog? prolog quicksort How Prolog Head Pivot Tail Sorted Less Greater SortedLess SortedGreater instantiation_error How to fix an error in implementing a quicksort algorithm in Prolog? I am...
[ 0.00830078125, 0.022705078125, 0.0201416015625, -0.0185546875, -0.01177978515625, 0.0223388671875, -0.017822265625, -0.0155029296875, -0.00145721435546875, -0.01092529296875, 0.02783203125, 0.009765625, -0.003662109375, -0.0216064453125, 0.0211181640625, -0.0087890625, -0.01354980468...
[ 11249, 30022, 18499, 29479, 63773, 62351, 234873, 1250, 4867, 23, 502, 44816, 5777, 1218, 379, 53666, 1734, 32774, 56, 68016, 297, 91127, 46429, 34648, 14, 188800, 20697, 100094, 89038, 2060, 14847, 9790, 9969, 1340, 1528, 76199, 163, 25632, ...
[ 0.0469970703125, 0.147705078125, 0.2086181640625, 0.1519775390625, 0.18115234375, 0.2802734375, 0.2060546875, 0.1524658203125, 0.24853515625, 0.02838134765625, 0.0889892578125, 0.145751953125, 0.141845703125, 0.099609375, 0.0631103515625, 0.19970703125, 0.0860595703125, 0.029190063...
embed
15956521_c0
15956521
prolog
0
Title: Sort code in Prolog Problem title: Sort code in Prolog Tags: syntax, sorting, prolog Problem: Sort code in Prolog I'm writing a program in prolog and need some help. This could probably be considered a homework question. I have two sort algorithms written and working. My goal is to pass in a list, and if it is g...
Sort code in Prolog Sort code in Prolog syntax sorting prolog Sort Prolog Main List Result sort1 sort2 Sort code in Prolog I'm writing a program in prolog and need some help. This could probably be considered a homework question. I have two sort algorithms written and working. My goal is to pass in a list, and if it is...
[ 0.0191650390625, 0.0262451171875, 0.0244140625, -0.00157928466796875, -0.031494140625, 0.00445556640625, -0.01177978515625, 0.0089111328125, 0.00457763671875, -0.01336669921875, 0.00640869140625, -0.01336669921875, -0.01513671875, -0.00933837890625, 0.00592041015625, -0.0174560546875, ...
[ 53666, 18151, 23, 1250, 4867, 6002, 86531, 12096, 502, 12321, 32036, 126684, 304, 32562, 1528, 4358, 18244, 6626, 234873, 59121, 20697, 69236, 27875, 5303, 117396, 105950, 140909, 190, 4527, 55300, 40715, 787, 150624, 30646, 17497, 5201, 11814,...
[ 0.239013671875, 0.2171630859375, 0.0640869140625, 0.1805419921875, 0.25634765625, 0.066162109375, 0.064697265625, 0.2257080078125, 0.132568359375, 0.1007080078125, 0.126708984375, 0.11865234375, 0.06396484375, 0.0679931640625, 0.08697509765625, 0.06707763671875, 0.069091796875, 0.0...
embed
28467011_c0
28467011
prolog
0
Title: What are the main technical differences between Prolog and miniKanren, with respect to logic programming? Problem title: What are the main technical differences between Prolog and miniKanren, with respect to logic programming? Tags: prolog, minikanren, logic-programming Problem: What are the main technical diffe...
What are the main technical differences between Prolog and miniKanren, with respect to logic programming? What are the main technical differences between Prolog and miniKanren, with respect to logic programming? prolog minikanren logic-programming What Prolog What are the main technical differences between Prolog and m...
[ 0.019287109375, 0.01470947265625, 0.01336669921875, 0.0118408203125, -0.006500244140625, 0.01953125, 0.0133056640625, -0.0155029296875, 0.002838134765625, 0.0062255859375, 0.0011749267578125, -0.006927490234375, -0.011962890625, -0.00110626220703125, 0.0169677734375, 0.01092529296875, ...
[ 5201, 121392, 60212, 7, 17721, 1250, 4867, 136, 7665, 50245, 982, 62775, 56037, 449, 502, 331, 28966, 214, 4865, 12301, 1257, 11343, 6626, 24931, 48322, 134523, 5636, 196651, 65508, 236267, 34702, 1991, 5700, 3095, 56458, 137043, 5117, 32976,...
[ 0.08392333984375, 0.1739501953125, 0.2059326171875, 0.07073974609375, 0.055816650390625, 0.1734619140625, 0.276611328125, 0.0382080078125, 0.1671142578125, 0.148681640625, 0.2071533203125, 0.224853515625, 0.1959228515625, 0.074951171875, 0.1153564453125, 0.1153564453125, 0.1624755859...
embed
50105265_c0
50105265
prolog
0
Title: Length of a list Problem title: Length of a list Tags: prolog Problem: Length of a list I am a beginner to ProLog and I am attempting the following question: Write a predicate len to calculate the total duration of a list of x tasks, e.g. ?- len([d, j, l, n], Time). Time = 15 There are a set of rules which need ...
Length of a list Length of a list prolog Length Time Singleton Syntax Operator Length of a list I am a beginner to ProLog and I am attempting the following question: Write a predicate len to calculate the total duration of a list of x tasks, e.g. There are a set of rules which need to be followed : I have tried the fol...
[ -0.00103759765625, 0.02783203125, 0.021240234375, 0.0084228515625, -0.0107421875, -0.01806640625, -0.00031280517578125, 0.027099609375, 0.015869140625, -0.053955078125, -0.0125732421875, -0.008056640625, -0.00185394287109375, 0.0008697509765625, -0.012451171875, 0.015380859375, 0.018...
[ 77554, 927, 111, 10, 5303, 502, 4867, 19055, 43609, 1507, 19010, 86531, 150922, 1679, 1250, 113972, 81887, 18781, 1653, 2063, 67, 3098, 74481, 3622, 115, 30494, 1022, 66211, 621, 5423, 91736, 3871, 134629, 37842, 25632, 18499, 26008, 53418, ...
[ 0.1728515625, 0.09375, 0.12744140625, 0.033233642578125, 0.2437744140625, 0.123779296875, 0.2242431640625, 0.1513671875, 0.18115234375, 0.197998046875, 0.0682373046875, 0.1568603515625, 0.25732421875, 0.04046630859375, 0.145263671875, 0.2412109375, 0.0701904296875, 0.01150512695312...
embed
53399006_c0
53399006
prolog
0
Title: Extract the minimum value of a Prolog tree Problem title: Extract the minimum value of a Prolog tree Tags: prolog Problem: Extract the minimum value of a Prolog tree I'm a very Prolog beginner, so this question might be and become useless, anyway I have defined a Prolog tree as follows: type([null, tree(T, tree(...
Extract the minimum value of a Prolog tree Extract the minimum value of a Prolog tree prolog Extract Prolog calc_min Root Left Right Result LeftRes RightRes Extract the minimum value of a Prolog tree I'm a very Prolog beginner, so this question might be and become useless, anyway I have defined a Prolog tree as follows...
[ 0.0301513671875, -0.01275634765625, 0.019287109375, 0.00051116943359375, -0.004974365234375, 0.0120849609375, 0.007659912109375, -0.0296630859375, 0.01611328125, -0.0390625, -0.0166015625, -0.0205078125, -0.0018310546875, 0.0004329681396484375, 0.01434326171875, 0.0162353515625, 0.01...
[ 31501, 15390, 15440, 34292, 1250, 4867, 53201, 502, 6510, 238, 1249, 150948, 2480, 90911, 126684, 4332, 61924, 26950, 56574, 25737, 1614, 62600, 7108, 1653, 2063, 140992, 110, 112, 3647, 70731, 13 ]
[ 0.1494140625, 0.0390625, 0.2327880859375, 0.1917724609375, 0.150634765625, 0.237548828125, 0.208984375, 0.1092529296875, 0.0780029296875, 0.011383056640625, 0.2066650390625, 0.183837890625, 0.05029296875, 0.082763671875, 0.1297607421875, 0.064697265625, 0.09033203125, 0.01098632812...
embed
8394117_c0
8394117
prolog
0
Title: Prolog Family Tree query issues Problem title: Prolog Family Tree query issues Tags: prolog Problem: Prolog Family Tree query issues % facts mother(john, dana). father(john, david). mother(chelsea, dana). father(chelsea, david). mother(jared, dana). father(jared, david). % queries father(X,Y) :- father(X,Y), wri...
Prolog Family Tree query issues Prolog Family Tree query issues prolog Prolog Family Tree Prolog Family Tree query issues I am having trouble getting these queries to work. when I type in the father command, it will tell me yes or no correctly, but won't do the write command (same with mother). "parent" doesn't work at...
[ 0.0341796875, 0.021484375, -0.00506591796875, 0.005279541015625, -0.02392578125, 0.00101470947265625, -0.0146484375, -0.00689697265625, -0.0166015625, -0.020263671875, 0.0087890625, -0.024169921875, -0.000667572021484375, 0.0150146484375, 0.015625, 0.00927734375, 0.00927734375, 0.0...
[ 1250, 4867, 59745, 101344, 41, 1294, 37348, 502, 19441, 63134, 20949, 6097, 10484, 4488, 10644, 67373, 75101, 14192, 163, 72272, 707, 110, 26785, 1284, 23742, 18, 33022, 678, 42732, 99547, 58, 22027, 756, 78, 79298, 2174, 87, 23, 1542, 17...
[ 0.129150390625, 0.20263671875, 0.07464599609375, 0.2012939453125, 0.1439208984375, 0.052520751953125, 0.1307373046875, 0.0859375, 0.033355712890625, 0.116943359375, 0.0404052734375, 0.01312255859375, 0.127685546875, 0.0831298828125, 0.1751708984375, 0.1849365234375, 0.1832275390625, ...
embed
67446830_c1
67446830
prolog
1
29974], [[0, 16], _30004, _30010, _30016, _30022], [[0, 26], _30052, _30058, _30064|...], [[0, 17], _30100, _30106|...]], _32024, h) ? line 129 is: maplist(espacos_fila(h), Puzzle, Espacos_h_l) and the function espacos_fila/3 receives a constant (h or v (horizontal or vertical)), a line with the format [[0,17], P52, P5...
29974], [[0, 16], _30004, _30010, _30016, _30022], [[0, 26], _30052, _30058, _30064|...], [[0, 17], _30100, _30106|...]], _32024, h) ? line 129 is: maplist(espacos_fila(h), Puzzle, Espacos_h_l) and the function espacos_fila/3 receives a constant (h or v (horizontal or vertical)), a line with the format [[0,17], P52, P5...
[ -0.005035400390625, -0.01123046875, -0.00927734375, 0.018798828125, -0.007049560546875, 0.00186920166015625, -0.003997802734375, 0.02490234375, 0.012451171875, -0.01544189453125, -0.003936767578125, 0.004486083984375, 0.02001953125, -0.0042724609375, -0.01165771484375, 0.0074462890625,...
[ 122418, 16360, 268, 4, 110558, 2389, 611, 101, 36605, 617, 7739, 963, 2485, 4015, 1381, 12744, 10057, 13307, 75606, 729, 1197, 3559, 54100, 58745, 27, 86245, 76531, 2357, 1096, 16, 705, 13315, 53472, 83, 22288, 6562, 132, 90, 763, 7840, ...
[ 0.255126953125, 0.2469482421875, 0.06591796875, 0.037353515625, 0.019805908203125, 0.132568359375, 0.17626953125, 0.05615234375, 0.208251953125, 0.1517333984375, 0.215087890625, 0.1727294921875, 0.157958984375, 0.10650634765625, 0.1663818359375, 0.188720703125, 0.161865234375, 0.11...
embed
33294842_c0
33294842
prolog
0
Title: Maximum Sublist Length (Prolog) - No cuts or logical Prolog built-ins Problem title: Maximum Sublist Length (Prolog) - No cuts or logical Prolog built-ins Tags: prolog Problem: Maximum Sublist Length (Prolog) - No cuts or logical Prolog built-ins I am beginner to Prolog ... What I want to do is similar to a tran...
Maximum Sublist Length (Prolog) - No cuts or logical Prolog built-ins Maximum Sublist Length (Prolog) - No cuts or logical Prolog built-ins prolog Maximum Sublist Length Prolog my_pred Maximum Sublist Length (Prolog) - No cuts or logical Prolog built-ins I am beginner to Prolog ... What I want to do is similar to a tra...
[ 0.0269775390625, 0.0164794921875, 0.0181884765625, 0.007537841796875, -0.013671875, 0.0201416015625, 0.002532958984375, 0.01019287109375, 0.036376953125, -0.0164794921875, -0.00007963180541992188, 0.00860595703125, -0.00640869140625, 0.00823974609375, 0.0016632080078125, -0.00334167480...
[ 46540, 316, 8273, 6562, 77554, 927, 10752, 4867, 438, 314, 933, 62775, 1250, 88303, 5425, 502, 759, 19714, 1679, 3444, 21373, 3900, 78381, 15490, 2174, 5303, 14602, 959, 2499, 80854, 370, 8705, 42805, 5608, 116, 990, 140992, 15190, 1614, ...
[ 0.18212890625, 0.102294921875, 0.2381591796875, 0.248291015625, 0.1376953125, 0.048828125, 0.1424560546875, 0.21142578125, 0.0943603515625, 0.128662109375, 0.0374755859375, 0.090087890625, 0.15087890625, 0.1029052734375, 0.05572509765625, 0.08148193359375, 0.1102294921875, 0.211791...
embed
56275849_c0
56275849
prolog
0
Title: How can labeling/2 generate solutions starting from the midpoint of a domain? Problem title: How can labeling/2 generate solutions starting from the midpoint of a domain? Tags: prolog, clpfd, labeling Problem: How can labeling/2 generate solutions starting from the midpoint of a domain? Having a list with indepe...
How can labeling/2 generate solutions starting from the midpoint of a domain? How can labeling/2 generate solutions starting from the midpoint of a domain? prolog clpfd labeling the How use_module EMPLOYEES POSTS LIST LIMIT POSTS-EMPLOYEES How can labeling/2 generate solutions starting from the midpoint of a domain? Ha...
[ -0.00830078125, 0.0206298828125, 0.021240234375, 0.00689697265625, -0.0230712890625, 0.01422119140625, 0.0033111572265625, -0.003326416015625, 0.01422119140625, -0.01336669921875, -0.00445556640625, 0.0091552734375, 0.0096435546875, 0.0118408203125, 0.01104736328125, -0.02734375, 0.0...
[ 11249, 831, 67967, 214, 12477, 139392, 51347, 72134, 1295, 4122, 38496, 77758, 502, 4867, 39557, 71, 4527, 83279, 81903, 195977, 16970, 95409, 111, 5303, 41371, 77336, 839, 3642, 4034, 27024, 86991, 49938, 7, 37842, 6454, 24762, 316, 24084, ...
[ 0.04180908203125, 0.03607177734375, 0.25439453125, 0.1451416015625, 0.260498046875, 0.1639404296875, 0.1905517578125, 0.087158203125, 0.0968017578125, 0.1474609375, 0.1695556640625, 0.149169921875, 0.0772705078125, 0.1468505859375, 0.0200653076171875, 0.044342041015625, 0.06124877929...
embed
29325289_c1
29325289
prolog
1
sublists contains the elements of the matrix where constraint needs to be applied. The constraint is applied in the constraint_apply predicate. However, I discovered that the findall predicate creates copies of the original list instead of using the actual elements/variables in the original list after struggling for m...
sublists contains the elements of the matrix where constraint needs to be applied. The constraint is applied in the constraint_apply predicate. However, I discovered that the findall predicate creates copies of the original list instead of using the actual elements/variables in the original list after struggling for m...
[ -0.008544921875, -0.0028839111328125, 0.024658203125, 0.00830078125, -0.0157470703125, -0.01031494140625, -0.01953125, 0.022216796875, 0.01385498046875, -0.0142822265625, -0.00244140625, -0.01092529296875, 0.0162353515625, 0.01275634765625, -0.01409912109375, 0.0186767578125, 0.03564...
[ 1614, 6562, 7, 70541, 80854, 50944, 425, 158, 2816, 4288, 27117, 190659, 9007, 538, 1653, 2063, 67, 134053, 7413, 5584, 28282, 71200, 111, 7311, 5303, 64457, 17368, 8561, 21690, 19736, 237875, 5941, 21974, 52490, 959, 47644, 44691, 59911, 4...
[ 0.2144775390625, 0.23681640625, 0.0165252685546875, 0.0657958984375, 0.1002197265625, 0.121337890625, 0.04888916015625, 0.10107421875, 0.19873046875, 0.1387939453125, 0.073486328125, 0.125244140625, 0.119873046875, 0.10614013671875, 0.16455078125, 0.1739501953125, 0.05047607421875, ...
embed
33467108_c0
33467108
prolog
0
Title: Understanding Prolog lists and recursion Problem title: Understanding Prolog lists and recursion Tags: reverse, tail-recursion, recursion, prolog, list Problem: Understanding Prolog lists and recursion reverse([], X, X). reverse([H|Original], Result, Reverse) :- reverse(Original, Result, [H|Reverse]). ?- reverse...
Understanding Prolog lists and recursion Understanding Prolog lists and recursion reverse tail-recursion recursion prolog list Understanding Prolog Original Result Reverse Understanding Prolog lists and recursion So above is a fairly simple Prolog program to reverse a list. I'm just looking for someone to explain to me...
[ -0.01080322265625, 0.033447265625, 0.01025390625, 0.01806640625, -0.005767822265625, 0.021484375, 0.0010223388671875, 0.00061798095703125, 0.0142822265625, 0.004638671875, 0.00689697265625, -0.0244140625, -0.0023193359375, -0.002197265625, 0.0233154296875, 0.005218505859375, 0.034423...
[ 9626, 144057, 1250, 4867, 5303, 195625, 136, 1830, 39531, 184, 46741, 48650, 502, 34525, 126684, 853, 37676, 36917, 8781, 1528, 16487, 73342, 3642, 77336, 79986, 3564, 678, 16750, 47644, 154107, 10336, 7311, 3525, 6953, 78974, 15400, 16401, 2...
[ 0.0797119140625, 0.049530029296875, 0.1702880859375, 0.225341796875, 0.1845703125, 0.2003173828125, 0.006317138671875, 0.0305938720703125, 0.248291015625, 0.188720703125, 0.18212890625, 0.14111328125, 0.11083984375, 0.14306640625, 0.220703125, 0.08447265625, 0.30029296875, 0.044189...
embed
72744409_c0
72744409
prolog
0
Title: Am I allowed to use variables in my facts / rules? Problem title: Am I allowed to use variables in my facts / rules? Tags: prolog Problem: Am I allowed to use variables in my facts / rules? I'm working through the first problem in a famous collection of 99 Prolog problems . Here is the question: Find the last el...
Am I allowed to use variables in my facts / rules? Am I allowed to use variables in my facts / rules? prolog my_last Am I allowed to use variables in my facts / rules? I'm working through the first problem in a famous collection of 99 Prolog problems . Here is the question: and here is my file of facts and rules: and m...
[ -0.0021209716796875, 0.00579833984375, 0.00970458984375, 0.007049560546875, 0.004974365234375, 0.013427734375, 0.01165771484375, 0.0140380859375, 0.0191650390625, -0.03955078125, 0.005157470703125, -0.035400390625, -0.00787353515625, -0.00933837890625, 0.00335693359375, -0.003036499023...
[ 2022, 87, 107003, 4527, 77336, 7, 23, 759, 15824, 248, 91736, 502, 4867, 19777, 47, 20697, 5117, 2967, 170277, 42486, 10078, 1250, 44402, 11435, 136, 41, 140992, 29568, 1284, 3444, 186, 34292, 1193, 3229, 13909, 62163, 6275, 151575, 11814, ...
[ 0.10626220703125, 0.047821044921875, 0.196044921875, 0.1728515625, 0.31884765625, 0.16064453125, 0.1123046875, 0.161865234375, 0.19091796875, 0.10003662109375, 0.1903076171875, 0.1201171875, 0.2039794921875, 0.219970703125, 0.094970703125, 0.010955810546875, 0.0062255859375, 0.0895...
embed
26979040_c1
26979040
prolog
1
if there are enough preceding values in the list to accomplish it, if so, return the completed operation with the tail, if not, return false. Continue until no more words are found Scenario 2 'Look ahead' (main predicate, which has list1(before evaluation), and list2 (the final list) ): Look at each element in the lis...
if there are enough preceding values in the list to accomplish it, if so, return the completed operation with the tail, if not, return false. Continue until no more words are found Scenario 2 'Look ahead' (main predicate, which has list1(before evaluation), and list2 (the final list) ): Look at each element in the lis...
[ 0.01300048828125, 0.012451171875, 0.005767822265625, 0.01806640625, -0.0174560546875, 0.03857421875, -0.0019989013671875, 0.00396728515625, 0.006988525390625, -0.0147705078125, 0.004119873046875, -0.008544921875, -0.0029144287109375, -0.01116943359375, 0.0026702880859375, 0.00723266601...
[ 2174, 20174, 107671, 214, 142424, 5303, 163846, 30646, 140528, 41018, 678, 46741, 98320, 24812, 1286, 34153, 14037, 152365, 6723, 116, 15363, 685, 99255, 24931, 1653, 2063, 89700, 219836, 304, 2704, 2077, 60818, 12638, 12830, 23, 120260, 28560,...
[ 0.009735107421875, 0.0865478515625, 0.1561279296875, 0.07061767578125, 0.135009765625, 0.211669921875, 0.131591796875, 0.14404296875, 0.1624755859375, 0.2003173828125, 0.0172576904296875, 0.2471923828125, 0.181640625, 0.0897216796875, 0.0078125, 0.17041015625, 0.10577392578125, 0.2...
embed
67880231_c0
67880231
prolog
0
Title: A prolog predicate to split a list into sperate lists ever n elements Problem title: A prolog predicate to split a list into sperate lists ever n elements Tags: prolog, list Problem: A prolog predicate to split a list into sperate lists ever n elements The title is the required predicate and here are few sample ...
A prolog predicate to split a list into sperate lists ever n elements A prolog predicate to split a list into sperate lists ever n elements prolog list List Res splitEveryHelper1 Acc _new C_new A prolog predicate to split a list into sperate lists ever n elements The title is the required predicate and here are few sam...
[ -0.00897216796875, 0.0033416748046875, -0.0034332275390625, -0.006378173828125, -0.024169921875, 0.038330078125, 0.001617431640625, -0.00689697265625, 0.0257568359375, -0.0296630859375, 0.0220947265625, -0.022705078125, -0.0022735595703125, -0.0194091796875, 0.016357421875, 0.014221191...
[ 502, 4867, 1653, 2063, 67, 47, 65450, 5303, 3934, 76338, 17669, 653, 80854, 32036, 9624, 200647, 60785, 1264, 418, 29899, 54936, 44759, 56065, 10846, 121413, 41, 18151, 2060, 903, 49903, 20697, 155965 ]
[ 0.1510009765625, 0.2056884765625, 0.170166015625, 0.1878662109375, 0.1607666015625, 0.01409912109375, 0.22119140625, 0.197998046875, 0.09967041015625, 0.2012939453125, 0.1114501953125, 0.140869140625, 0.1761474609375, 0.1337890625, 0.07666015625, 0.1116943359375, 0.188720703125, 0....
embed
29846208_c1
29846208
prolog
1
: (8) (-)\== (-) ? creep Fail: (7) www_browser:has_command('gnome-open') ? creep Redo: (7) www_browser:open_command(_G396) ? creep Exit: (7) www_browser:open_command(open) ? creep Call: (7) www_browser:has_command(open) ? creep Call: (8) www_browser:command_cache(open, _G397) ? creep Exit: (8) www_browser:command_cache...
: (8) (-)\== (-) ? creep Fail: (7) www_browser:has_command('gnome-open') ? creep Redo: (7) www_browser:open_command(_G396) ? creep Exit: (7) www_browser:open_command(open) ? creep Call: (7) www_browser:has_command(open) ? creep Call: (8) www_browser:command_cache(open, _G397) ? creep Exit: (8) www_browser:command_cache...
[ 0.0093994140625, 0.00640869140625, 0.0123291015625, 0.0205078125, 0.0291748046875, 0.0257568359375, -0.007080078125, -0.0255126953125, -0.0016632080078125, -0.005889892578125, -0.006927490234375, -0.0029754638671875, 0.0018463134765625, -0.0211181640625, -0.0050048828125, -0.0113525390...
[ 152, 10021, 9, 16, 41872, 69112, 705, 49512, 254, 190355, 12, 8696, 1426, 215725, 10557, 277, 12018, 11137, 282, 59636, 25, 6096, 31, 454, 132, 724, 363, 109241, 5443, 217, 26265, 408, 1430, 149729, 4, 64, 7568, 242, 15, 83613, 2940, ...
[ 0.08514404296875, 0.251708984375, 0.165283203125, 0.0107421875, 0.07562255859375, 0.1949462890625, 0.079345703125, 0.22998046875, 0.197998046875, 0.257080078125, 0.03460693359375, 0.1461181640625, 0.1763916015625, 0.212646484375, 0.11083984375, 0.0875244140625, 0.22607421875, 0.199...
embed
61026071_c0
61026071
prolog
0
Title: parsing stdin with dcg Problem title: parsing stdin with dcg Tags: dcg, swi-prolog, prolog Problem: parsing stdin with dcg I am having some difficulties understanding how to parse some text from stdin to the desired variables using DCG. Players: player1 & player2 Board : 3 moves 1A : player1 5D : player2 8Z : pl...
parsing stdin with dcg parsing stdin with dcg dcg swi-prolog prolog Players player1 player2 turn1 turn2 read_string user_input FirstLine parsing stdin with dcg I am having some difficulties understanding how to parse some text from stdin to the desired variables using DCG. So a game has two player variable names and th...
[ 0.00909423828125, -0.0123291015625, 0.01806640625, 0.023193359375, -0.006622314453125, 0.0205078125, 0.003509521484375, -0.019287109375, 0.0025787353515625, -0.050537109375, -0.01422119140625, 0.0093994140625, -0.01611328125, -0.00086212158203125, 0.006805419921875, 0.006195068359375, ...
[ 366, 6953, 6138, 3035, 678, 104, 238, 177, 2452, 3454, 4867, 502, 60560, 58585, 304, 15504, 418, 12301, 91693, 38937, 23972, 93232, 34844, 100094, 184, 7986, 1295, 47, 104851, 77336, 17368, 391, 56367, 6712, 6626, 123055, 25813, 12638, 1884...
[ 0.1485595703125, 0.0267791748046875, 0.1707763671875, 0.21337890625, 0.0751953125, 0.06658935546875, 0.06268310546875, 0.1668701171875, 0.149169921875, 0.07769775390625, 0.15283203125, 0.0731201171875, 0.1964111328125, 0.1483154296875, 0.0859375, 0.1549072265625, 0.03662109375, 0.0...
embed
49864583_c0
49864583
prolog
0
Title: Prolog - Reduce the knowledge base by deduction Problem title: Prolog - Reduce the knowledge base by deduction Tags: prolog, prolog-directive-dynamic Problem: Prolog - Reduce the knowledge base by deduction I need to create a rule that will search for the facts that matches my_rule. These facts will be use to ch...
Prolog - Reduce the knowledge base by deduction Prolog - Reduce the knowledge base by deduction prolog prolog-directive-dynamic Prolog Reduce my_rule Conclusion Premise Prolog - Reduce the knowledge base by deduction I need to create a rule that will search for the facts that matches my_rule. These facts will be use to...
[ 0.01324462890625, -0.0002956390380859375, 0.00897216796875, 0.032958984375, 0.002777099609375, 0.014892578125, -0.01519775390625, 0.00946044921875, 0.0026397705078125, -0.05859375, 0.00177764892578125, -0.00787353515625, -0.0089111328125, -0.001007080078125, 0.0167236328125, -0.0030670...
[ 1250, 4867, 853, 106357, 51359, 3647, 390, 8, 77391, 502, 936, 100034, 242554, 759, 882, 133, 135523, 38394, 3871, 28282, 79986, 1221, 33938, 100, 15824, 450, 14858, 90, 4527, 15549, 454, 11935, 67158, 184, 903, 4034, 678, 14847, 14037, 1...
[ 0.158447265625, 0.2257080078125, 0.16064453125, 0.2169189453125, 0.1732177734375, 0.2025146484375, 0.07232666015625, 0.1893310546875, 0.224365234375, 0.11669921875, 0.065673828125, 0.09130859375, 0.1722412109375, 0.1630859375, 0.1846923828125, 0.1666259765625, 0.220458984375, 0.204...
embed
67301959_c1
67301959
prolog
1
2 empty") :- wrap_match("","atcg",Count), assertion(Count == 0). test("both strings empty") :- wrap_match("","",Count), assertion(Count == 0). test("both strings match, 1 char only") :- wrap_match("a","a",Count), assertion(Count == 1). test("both strings match") :- wrap_match("atcgatcgatcg","atcgatcgatcg",Count), asse...
2 empty") :- wrap_match("","atcg",Count), assertion(Count == 0). test("both strings empty") :- wrap_match("","",Count), assertion(Count == 0). test("both strings match, 1 char only") :- wrap_match("a","a",Count), assertion(Count == 1). test("both strings match") :- wrap_match("atcgatcgatcg","atcgatcgatcg",Count), asse...
[ 0.005218505859375, 0.003509521484375, -0.0123291015625, 0.0203857421875, 0.00015735626220703125, -0.00836181640625, -0.001983642578125, -0.0098876953125, 0.0106201171875, 0.00909423828125, -0.00127410888671875, 0.02392578125, -0.004119873046875, 0.017333984375, 0.01104736328125, 0.0104...
[ 116, 201505, 18939, 15772, 137565, 98753, 257, 238, 177, 108210, 10, 16865, 1363, 69112, 757, 3034, 837, 927, 79315, 14858, 106, 21441, 4734, 11, 4879, 8554, 79520, 427, 678, 1379, 12064, 20499, 14609, 56367, 77816, 330, 93905, 26137, 18, ...
[ 0.129638671875, 0.24951171875, 0.035888671875, 0.06182861328125, 0.1842041015625, 0.191162109375, 0.0633544921875, 0.0479736328125, 0.1473388671875, 0.1669921875, 0.02716064453125, 0.1531982421875, 0.0262451171875, 0.051849365234375, 0.1207275390625, 0.2196044921875, 0.07427978515625...
embed
52211171_c0
52211171
prolog
0
Title: How does this Prolog code really work - Shuffle two Lists Problem title: How does this Prolog code really work - Shuffle two Lists Tags: prolog, non-deterministic, shuffle, list, recursion Problem: How does this Prolog code really work - Shuffle two Lists I have the following code, working , that shuffles two li...
How does this Prolog code really work - Shuffle two Lists How does this Prolog code really work - Shuffle two Lists prolog non-deterministic shuffle list recursion How Prolog Shuffle Lists How does this Prolog code really work - Shuffle two Lists I have the following code, working , that shuffles two lists: I understan...
[ 0.01141357421875, 0.01904296875, 0.0089111328125, 0.01556396484375, -0.01434326171875, 0.01397705078125, -0.02685546875, -0.00116729736328125, 0.00142669677734375, 0.020751953125, 0.017822265625, 0.017333984375, -0.006683349609375, 0.01318359375, 0.0181884765625, 0.00927734375, 0.032...
[ 11249, 14602, 903, 1250, 4867, 18151, 6183, 4488, 13684, 4902, 133, 6626, 32036, 502, 351, 112, 30524, 170052, 5303, 195625, 7, 25632, 20697, 28219, 2831, 5117, 70731, 13, 53299, 1193, 10336, 46741, 16750, 78219, 4734, 17932, 5646, 990, 584...
[ 0.07275390625, 0.07635498046875, 0.07318115234375, 0.1600341796875, 0.236572265625, 0.1676025390625, 0.13037109375, 0.1588134765625, 0.1314697265625, 0.185546875, 0.1151123046875, 0.1385498046875, 0.219482421875, 0.107666015625, 0.048919677734375, 0.009613037109375, 0.09942626953125,...
embed
41209630_c0
41209630
prolog
0
Title: How to make path restrictions using Prolog CLP FD? Problem title: How to make path restrictions using Prolog CLP FD? Tags: puzzle, prolog, clpfd, clp Problem: How to make path restrictions using Prolog CLP FD? I'm trying to use restrictions programming through Prolog CLP FD to solve a puzzle that was proposed. T...
How to make path restrictions using Prolog CLP FD? How to make path restrictions using Prolog CLP FD? puzzle prolog clpfd clp Prolog How CLP How to make path restrictions using Prolog CLP FD? I'm trying to use restrictions programming through Prolog CLP FD to solve a puzzle that was proposed. This puzzle consists in th...
[ -0.0101318359375, -0.0198974609375, -0.0135498046875, 0.0213623046875, -0.00933837890625, 0.0159912109375, -0.00732421875, -0.012451171875, 0.003936767578125, -0.043212890625, -0.0135498046875, -0.011962890625, 0.00299072265625, 0.01251220703125, 0.013916015625, 0.018310546875, 0.002...
[ 11249, 3249, 60875, 185190, 7, 17368, 1250, 4867, 313, 37352, 98553, 104192, 502, 33139, 71, 254, 4527, 56037, 86869, 26171, 8781, 91736, 18151, 21771, 29256, 116, 425, 304, 120067, 1632, 63847, 67699, 162711, 47, 5701, 10576, 2967, 53418, ...
[ 0.066162109375, 0.10546875, 0.2283935546875, 0.263671875, 0.09808349609375, 0.0701904296875, 0.1375732421875, 0.1949462890625, 0.042327880859375, 0.1982421875, 0.2247314453125, 0.164794921875, 0.07147216796875, 0.01226806640625, 0.0186614990234375, 0.043731689453125, 0.00128173828125...
embed
13893576_c0
13893576
prolog
0
Title: Prolog for beginners about logic and syntax Problem title: Prolog for beginners about logic and syntax Tags: prolog Problem: Prolog for beginners about logic and syntax I have this question : I need to create a paradict "rightGuesses" which will get 3 arguments, each one of them is a list of letters, The list of...
Prolog for beginners about logic and syntax Prolog for beginners about logic and syntax prolog Prolog Ans ERROR file3.pl:5:0 Syntax Operator Warning file3.pl:6 Prolog for beginners about logic and syntax I have this question : I need to create a paradict "rightGuesses" which will get 3 arguments, each one of them is a ...
[ 0.015869140625, -0.01202392578125, 0.02197265625, 0.00628662109375, 0.00323486328125, -0.0020294189453125, -0.0142822265625, 0.0211181640625, 0.003875732421875, -0.0201416015625, -0.0042724609375, -0.0024261474609375, 0.01129150390625, 0.005279541015625, 0.0128173828125, 0.018310546875...
[ 1250, 4867, 9842, 43148, 1672, 62775, 6002, 86531, 100, 136, 502, 893, 151206, 24638, 11435, 363, 2424, 758, 53861, 19010, 150922, 5550, 910, 765, 903, 9655, 3871, 28282, 121, 61669, 54969, 22769, 15650, 7, 1221, 2046, 138, 10750, 12638, ...
[ 0.1685791015625, 0.2406005859375, 0.0670166015625, 0.0692138671875, 0.0328369140625, 0.1536865234375, 0.0889892578125, 0.126220703125, 0.01641845703125, 0.0200653076171875, 0.131591796875, 0.0226287841796875, 0.1239013671875, 0.091796875, 0.144287109375, 0.0565185546875, 0.0985717773...
embed
7498758_c0
7498758
prolog
0
Title: Sicstus Prolog - Put words into a list Problem title: Sicstus Prolog - Put words into a list Tags: cpu-word, list, prolog Problem: Sicstus Prolog - Put words into a list Got another problem: There is a list with some words. If the length of the word is more than a given length (ex. 4), it will be put in an anoth...
Sicstus Prolog - Put words into a list Sicstus Prolog - Put words into a list cpu-word list prolog Sicstus Prolog Put require_min_length Word Words Minl List word_length ABCD ABCDE AAA require_min_weight Lists Resource Sicstus Prolog - Put words into a list Got another problem: There is a list with some words. If the l...
[ 0.0003032684326171875, 0.0023345947265625, 0.0107421875, 0.0247802734375, -0.014404296875, 0.00775146484375, 0.006744384765625, 0.0181884765625, 0.00775146484375, -0.03466796875, 0.000926971435546875, -0.0159912109375, -0.00732421875, 0.0023345947265625, 0.00531005859375, 0.00005960464...
[ 63457, 18253, 1250, 4867, 19577, 34153, 3934, 10, 5303, 1766, 47416, 502, 64209, 1249, 23986, 22543, 4211, 141, 32036, 2565, 47457, 397, 8399, 155616, 165598, 152055, 15700, 2967, 83, 678, 3060, 4263, 140909, 111, 1286, 3501, 34475, 13956, ...
[ 0.158447265625, 0.2435302734375, 0.113525390625, 0.2099609375, 0.08074951171875, 0.20263671875, 0.12158203125, 0.037078857421875, 0.2088623046875, 0.149658203125, 0.1326904296875, 0.0753173828125, 0.1800537109375, 0.1669921875, 0.096435546875, 0.1715087890625, 0.1405029296875, 0.03...
embed
67561100_c0
67561100
prolog
0
Title: Finding a pattern in a list, prolog Problem title: Finding a pattern in a list, prolog Tags: prolog, list Problem: Finding a pattern in a list, prolog I´m trying to build a predicate pattern(List,Pattern) that takes a List formed only by a repeated pattern and the output has to be that pattern. Some examples of ...
Finding a pattern in a list, prolog Finding a pattern in a list, prolog prolog list Finding List1 List2 List3 Pattern1 Pattern2 Pattern3 Finding a pattern in a list, prolog I´m trying to build a predicate pattern(List,Pattern) that takes a List formed only by a repeated pattern and the output has to be that pattern. So...
[ -0.0089111328125, 0.0264892578125, 0.00048065185546875, 0.00830078125, -0.01165771484375, 0.01116943359375, -0.017333984375, 0.030029296875, 0.0203857421875, -0.0225830078125, 0.0096435546875, -0.00653076171875, 0.001953125, 0.009033203125, 0.00096893310546875, 0.0150146484375, 0.026...
[ 26040, 10, 103510, 23, 5303, 502, 4867, 214, 32036, 418, 304, 363, 9876, 22766, 31577, 45367, 1653, 2063, 67, 154663, 8335, 3055, 19, 51776, 100, 4734, 119140, 140992, 27781, 12638, 831, 12921, 37473, 9703, 7225, 3917, 5351, 29806, 35971, ...
[ 0.138671875, 0.0557861328125, 0.30419921875, 0.104736328125, 0.2293701171875, 0.1337890625, 0.1851806640625, 0.0360107421875, 0.1845703125, 0.045501708984375, 0.06170654296875, 0.10235595703125, 0.169921875, 0.1785888671875, 0.061187744140625, 0.09442138671875, 0.07177734375, 0.107...
embed
59288346_c0
59288346
prolog
0
Title: Get duplicate items in a list and display answer in a list Problem title: Get duplicate items in a list and display answer in a list Tags: list, prolog Problem: Get duplicate items in a list and display answer in a list I'm trying to find duplicate (non unique) items in a list. For example from duplicate([a,b,c,...
Get duplicate items in a list and display answer in a list Get duplicate items in a list and display answer in a list list prolog Get First Rest Element duplicate_first Head duplicate_second Get duplicate items in a list and display answer in a list I'm trying to find duplicate (non unique) items in a list. For example...
[ -0.004058837890625, 0.0024566650390625, 0.0111083984375, 0.01458740234375, -0.00347900390625, 0.0322265625, -0.0084228515625, 0.01007080078125, -0.0052490234375, -0.0296630859375, -0.003814697265625, -0.0067138671875, -0.0033416748046875, 0.0167236328125, -0.01007080078125, 0.039550781...
[ 20779, 171763, 67, 55769, 23, 5303, 136, 44116, 35166, 502, 4867, 23972, 49756, 48325, 44816, 191633, 31577, 47, 7413, 6431, 36998, 1295, 42, 71, 238, 627, 3871, 2046, 11, 275, 59121, 2060, 1528, 7, 80854, 237, 11001, 2452, 3454, 45367, ...
[ 0.1002197265625, 0.25439453125, 0.184814453125, 0.1876220703125, 0.08135986328125, 0.19189453125, 0.046783447265625, 0.1358642578125, 0.17333984375, 0.086181640625, 0.1629638671875, 0.05035400390625, 0.155517578125, 0.1268310546875, 0.10357666015625, 0.047454833984375, 0.054901123046...
embed
71019404_c0
71019404
prolog
0
Title: Depth First Search in Prolog Problem title: Depth First Search in Prolog Tags: depth-first-search, prolog Problem: Depth First Search in Prolog subtrees([]). subtrees([(Cost,T)|Rest]) :− number(Cost), istree(T), subtrees(Rest). istree(tree(_,Children)) :− subtrees(Children). dfs(GoalValue,tree(GoalValue,_),GoalV...
Depth First Search in Prolog Depth First Search in Prolog depth-first-search prolog Depth First Search Prolog Cost Rest Children GoalValue Value Path FinalCost string_concat Depth First Search in Prolog Can someone help me understand this Prolog implementation of Depth First Search? A subpart of my question also includ...
[ 0.06005859375, 0.0189208984375, -0.006011962890625, 0.0036773681640625, 0.00201416015625, 0.004669189453125, -0.021484375, -0.0115966796875, 0.0037078857421875, -0.035888671875, 0.0145263671875, -0.02001953125, -0.0172119140625, 0.0029296875, 0.020751953125, 0.00408935546875, 0.01428...
[ 262, 254, 927, 23972, 33086, 23, 1250, 4867, 168867, 13448, 86250, 502, 63099, 49756, 91345, 2016, 856, 50770, 190060, 108421, 27188, 441, 5510, 79315, 4460, 4358, 28219, 208124, 1614, 17365, 3642, 29481, 65450, 1916, 28032, 44816, 2831, 1074...
[ 0.116943359375, 0.1871337890625, 0.145263671875, 0.1663818359375, 0.24072265625, 0.035247802734375, 0.16064453125, 0.245361328125, 0.2110595703125, 0.0845947265625, 0.17431640625, 0.1063232421875, 0.1712646484375, 0.1434326171875, 0.1448974609375, 0.0418701171875, 0.048065185546875, ...
embed
26538695_c0
26538695
prolog
0
Title: How to split a list filled with logic variables in prolog? Problem title: How to split a list filled with logic variables in prolog? Tags: prolog Problem: How to split a list filled with logic variables in prolog? I want to write a predicate split(List, Pivot, Result) holds when Result is a list of sublists that...
How to split a list filled with logic variables in prolog? How to split a list filled with logic variables in prolog? prolog How List Pivot Result How to split a list filled with logic variables in prolog? I want to write a predicate split(List, Pivot, Result) holds when Result is a list of sublists that List divided b...
[ -0.01470947265625, 0.017822265625, 0.01239013671875, 0.006866455078125, -0.03466796875, 0.0208740234375, -0.0135498046875, -0.00107574462890625, 0.00811767578125, -0.006134033203125, 0.00811767578125, 0.005096435546875, -0.00701904296875, 0.0089111328125, 0.007415771484375, 0.01171875,...
[ 11249, 47, 65450, 5303, 152382, 678, 62775, 77336, 7, 23, 502, 4867, 32036, 436, 5777, 18, 126684, 3444, 33022, 1653, 2063, 67, 154663, 16401, 1614, 6562, 101637, 390, 335, 4904, 313, 391, 397, 29568, 80854, 959, 4488, 237, 86869, 2967 ]
[ 0.08782958984375, 0.046478271484375, 0.2421875, 0.2154541015625, 0.1087646484375, 0.087890625, 0.202880859375, 0.2364501953125, 0.06927490234375, 0.0592041015625, 0.143310546875, 0.21044921875, 0.1614990234375, 0.041412353515625, 0.16357421875, 0.1119384765625, 0.1939697265625, 0.0...
embed
71882793_c0
71882793
prolog
0
Title: How to get a full name from user input in SWI-Prolog and display it as an output? Problem title: How to get a full name from user input in SWI-Prolog and display it as an output? Tags: prolog Problem: How to get a full name from user input in SWI-Prolog and display it as an output? I'm new to SWI-Prolog and stil...
How to get a full name from user input in SWI-Prolog and display it as an output? How to get a full name from user input in SWI-Prolog and display it as an output? prolog user How SWI-Prolog name:-nl Write FName First Middle Last How to get a full name from user input in SWI-Prolog and display it as an output? I'm new ...
[ 0.017822265625, -0.015625, 0.0052490234375, 0.0291748046875, -0.01025390625, 0.027099609375, 0.0184326171875, -0.00089263916015625, -0.006591796875, -0.0238037109375, 0.01507568359375, 0.003021240234375, -0.0264892578125, -0.005615234375, -0.001190185546875, -0.000530242919921875, 0....
[ 11249, 2046, 10, 4393, 9351, 1295, 38937, 107730, 159, 38969, 10752, 4867, 44116, 237, 140992, 23, 502, 13169, 601, 18781, 563, 163612, 23972, 102256, 21672, 442, 3525, 52080, 8781, 1528, 26458, 237875, 25842, 32628, 17721, 5117, 11627, 4122,...
[ 0.050445556640625, 0.109619140625, 0.041717529296875, 0.1871337890625, 0.226806640625, 0.11767578125, 0.1898193359375, 0.2437744140625, 0.070556640625, 0.2198486328125, 0.154541015625, 0.1947021484375, 0.1356201171875, 0.04974365234375, 0.220947265625, 0.03155517578125, 0.11767578125...
embed
37162955_c0
37162955
prolog
0
Title: Could someone explain how exactly this predicate is working? Problem title: Could someone explain how exactly this predicate is working? Tags: list, prolog Problem: Could someone explain how exactly this predicate is working? So I have the following predicate which takes a list of symbols as its first parameter,...
Could someone explain how exactly this predicate is working? Could someone explain how exactly this predicate is working? list prolog Could Could someone explain how exactly this predicate is working? So I have the following predicate which takes a list of symbols as its first parameter, then outputs this list with all...
[ 0.01025390625, 0.0157470703125, 0.0101318359375, -0.005584716796875, -0.0230712890625, 0.017822265625, -0.0036773681640625, 0.0003147125244140625, 0.001434326171875, -0.017578125, -0.004425048828125, 0.011962890625, 0.006866455078125, 0.0103759765625, 0.0018768310546875, 0.02294921875,...
[ 191147, 22008, 73342, 3642, 66161, 903, 1653, 2063, 67, 83, 20697, 5303, 502, 4867, 765, 25632, 51776, 26582, 237, 5117, 171859, 140992, 756, 171763, 184750, 43240, 179140, 9077, 10422, 217064, 2060, 169581, 6626, 201505, 44816, 136, 1218, 78...
[ 0.038543701171875, 0.012359619140625, 0.1514892578125, 0.107421875, 0.1356201171875, 0.0972900390625, 0.207275390625, 0.2437744140625, 0.1524658203125, 0.0762939453125, 0.182373046875, 0.203369140625, 0.1595458984375, 0.218017578125, 0.011383056640625, 0.07769775390625, 0.04638671875...
embed
48063040_c0
48063040
prolog
0
Title: Recurrence results stored in list in Prolog Problem title: Recurrence results stored in list in Prolog Tags: error-handling, list, prolog, instantiation-error, recurrence Problem: Recurrence results stored in list in Prolog I am trying to create a Prolog program for solving the recurrent equation: f(1)=2, f(2)=5...
Recurrence results stored in list in Prolog Recurrence results stored in list in Prolog error-handling list prolog instantiation-error recurrence Recurrence Prolog X-1 X-2 ERROR Arguments _12587334 _12587360 rec.pl:6 Recurrence results stored in list in Prolog I am trying to create a Prolog program for solving the recu...
[ 0.00909423828125, -0.002960205078125, 0.006988525390625, -0.0018157958984375, -0.0002593994140625, -0.0059814453125, -0.0157470703125, 0.0115966796875, 0.00872802734375, -0.01806640625, 0.0140380859375, -0.005859375, -0.01104736328125, -0.0047607421875, 0.0174560546875, -0.01708984375,...
[ 853, 64240, 6620, 50339, 4343, 23, 5303, 1250, 4867, 71, 18499, 54885, 502, 34648, 14, 188800, 456, 1193, 5759, 5428, 151206, 24638, 112140, 202118, 124618, 38230, 21954, 2424, 910, 28282, 1528, 3115, 6496, 163812, 5490, 2320, 145755, 32354, ...
[ 0.1190185546875, 0.283447265625, 0.05810546875, 0.212158203125, 0.1807861328125, 0.05712890625, 0.1949462890625, 0.177734375, 0.26904296875, 0.0042724609375, 0.1202392578125, 0.077392578125, 0.0927734375, 0.00262451171875, 0.0142669677734375, 0.12646484375, 0.0526123046875, 0.04315...
embed
58016289_c0
58016289
prolog
0
Title: "Looping" in Prolog by replacing goals with `fail` Problem title: "Looping" in Prolog by replacing goals with `fail` Tags: prolog Problem: "Looping" in Prolog by replacing goals with `fail` In the following code: bestof(Val, GT, Goal) :- retract(queue(WorstVal)), call(Goal), greater(GT, Worst...
"Looping" in Prolog by replacing goals with `fail` "Looping" in Prolog by replacing goals with `fail` prolog Looping Prolog Val Goal WorstVal GTVal "Looping" in Prolog by replacing goals with `fail` In the following code: I see in the debugger (LPA Prolog) that after fail ing, it executes call(Goal)...
[ 0.00921630859375, 0.0213623046875, 0.01129150390625, 0.01416015625, -0.000499725341796875, -0.017333984375, 0.0155029296875, -0.0203857421875, 0.01080322265625, -0.01080322265625, 0.01019287109375, 0.03369140625, -0.006256103515625, -0.016845703125, 0.025634765625, -0.00156402587890625...
[ 15363, 31, 10366, 1250, 4867, 456, 133266, 109458, 678, 120540, 23, 502, 199694, 214, 4769, 2016, 289, 145062, 271, 42272, 43448, 18151, 1957, 8, 978, 21407, 37352, 284, 7103, 35782, 3305, 71924, 90, 11782, 132, 17903, 44084, 4568, 1653, ...
[ 0.1015625, 0.1251220703125, 0.157958984375, 0.1712646484375, 0.2337646484375, 0.02783203125, 0.1124267578125, 0.1944580078125, 0.011566162109375, 0.226806640625, 0.01068115234375, 0.1116943359375, 0.1859130859375, 0.046966552734375, 0.1436767578125, 0.1104736328125, 0.1561279296875, ...
embed
77652241_c0
77652241
prolog
0
Title: Prolog program query not terminating Problem title: Prolog program query not terminating Tags: prolog, failure-slice Problem: Prolog program query not terminating I aa new to prolog. I tried this simple program. man(rahul). person(X) :- man(X). male(X) :- man(X). female(X) :- \+ man(x). female(samita). married(s...
Prolog program query not terminating Prolog program query not terminating prolog failure-slice Prolog Prolog program query not terminating I aa new to prolog. I tried this simple program. my query is. According to me. the answer must be. but in swi prolog the program is not terminating. can someone please help me with ...
[ 0.0220947265625, 0.038330078125, -0.004150390625, 0.016357421875, -0.0130615234375, -0.00408935546875, -0.0012969970703125, 0.00787353515625, -0.0084228515625, -0.041748046875, -0.004547119140625, -0.03125, -0.0159912109375, -0.00408935546875, 0.01806640625, 0.0299072265625, 0.023681...
[ 1250, 4867, 1528, 41, 1294, 959, 121011, 214, 502, 137578, 13348, 3525, 37842, 8781, 129551, 35166, 8110, 23, 91, 2452, 83, 4358, 100094, 44691, 18151 ]
[ 0.186767578125, 0.249267578125, 0.2056884765625, 0.1903076171875, 0.1259765625, 0.15869140625, 0.198974609375, 0.1173095703125, 0.1622314453125, 0.20751953125, 0.1507568359375, 0.0207366943359375, 0.056396484375, 0.056365966796875, 0.013763427734375, 0.05487060546875, 0.0378112792968...
embed
16026899_c0
16026899
prolog
0
Title: Length of path between 2 nodes in defined grid [Prolog] Problem title: Length of path between 2 nodes in defined grid [Prolog] Tags: recursion, prolog Problem: Length of path between 2 nodes in defined grid [Prolog] edge(a, b). edge(b, d). edge(d, c). edge(d, e). edge(d, f). edge(e, g). edge(f, g). edge(g, h). (...
Length of path between 2 nodes in defined grid [Prolog] Length of path between 2 nodes in defined grid [Prolog] recursion prolog Length Prolog Length of path between 2 nodes in defined grid [Prolog] (assuming every edge is the same length). For example, to get the length of the path between a and d: ?- length(a,d) shou...
[ 0.004974365234375, 0.025390625, 0.00146484375, 0.015869140625, 0.0076904296875, 0.0067138671875, -0.0242919921875, 0.016845703125, 0.01397705078125, -0.0625, 0.005645751953125, -0.0164794921875, -0.01348876953125, 0.021484375, 0.00921630859375, 0.002899169921875, 0.0064697265625, 0...
[ 77554, 927, 111, 60875, 17721, 116, 110, 988, 23, 61924, 120067, 10752, 4867, 195625, 1830, 502, 1250, 66596, 11907, 121303, 5701, 140909, 2046, 10, 136, 104, 705, 11, 71, 30646, 1639, 2271, 42539, 876, 3714, 5844, 50491, 83, 235603, 297,...
[ 0.168212890625, 0.14794921875, 0.07354736328125, 0.251220703125, 0.1884765625, 0.1370849609375, 0.1724853515625, 0.1529541015625, 0.03472900390625, 0.169921875, 0.226806640625, 0.108642578125, 0.1898193359375, 0.179931640625, 0.05230712890625, 0.1092529296875, 0.13623046875, 0.0411...
embed
37858447_c1
37858447
prolog
1
03, 13, 23]). verbindung('3A',[hubertusplatz], [wilder, mann], [35, 45, 55, 05, 15, 25]). verbindung('3A',[wilder, mann], [xxx1], [38, 48, 58, 08, 18, 28]). %xxx ist hier damit man auch die ankuftszeiten an der Enthaltestelle angeben kann. %Linie 3B = Linie 3 Richtung coschütz verbindung('3B',[wilder, mann],[hubertuspl...
03, 13, 23]). verbindung('3A',[hubertusplatz], [wilder, mann], [35, 45, 55, 05, 15, 25]). verbindung('3A',[wilder, mann], [xxx1], [38, 48, 58, 08, 18, 28]). %xxx ist hier damit man auch die ankuftszeiten an der Enthaltestelle angeben kann. %Linie 3B = Linie 3 Richtung coschütz verbindung('3B',[wilder, mann],[hubertuspl...
[ -0.02392578125, 0.00567626953125, 0.005218505859375, 0.003753662109375, -0.01904296875, 0.0106201171875, -0.01385498046875, 0.000675201416015625, 0.01251220703125, -0.00019550323486328125, -0.0074462890625, -0.0135498046875, 0.0191650390625, -0.007110595703125, 0.00157928466796875, 0.0...
[ 5098, 17480, 1105, 219029, 363, 284, 1132, 1297, 2143, 46149, 41123, 820, 12789, 5843, 2678, 4859, 4777, 423, 714, 43883, 76172, 10991, 4572, 9318, 3843, 543, 1372, 1745, 1791, 9168, 142, 319, 2480, 109607, 16511, 66181, 46266, 44175, 1876,...
[ 0.212890625, 0.09735107421875, 0.1329345703125, 0.234619140625, 0.161865234375, 0.14599609375, 0.05572509765625, 0.1292724609375, 0.1553955078125, 0.1729736328125, 0.1026611328125, 0.0865478515625, 0.0963134765625, 0.1158447265625, 0.10589599609375, 0.112548828125, 0.09246826171875, ...
embed
14680829_c1
14680829
prolog
1
but it is odd not be resolved. 0 +7 +1 +2 +0 +1 +0 +0 +0 +3 = 14 The solution is designed to create a knowledge base with all possible states of a number on the board and we'll see how many numbers less than N there after the current position. Here's my code: %***********************Have Solution**********************...
but it is odd not be resolved. 0 +7 +1 +2 +0 +1 +0 +0 +0 +3 = 14 The solution is designed to create a knowledge base with all possible states of a number on the board and we'll see how many numbers less than N there after the current position. Here's my code: %***********************Have Solution**********************...
[ -0.002532958984375, -0.01904296875, 0.007293701171875, 0.0205078125, 0.006134033203125, 0.00909423828125, -0.0172119140625, 0.0185546875, 0.01055908203125, -0.0113525390625, 0.0038299560546875, 0.00946044921875, 0.013427734375, 0.0267333984375, 0.0032958984375, -0.01104736328125, 0.0...
[ 1284, 442, 83, 70270, 959, 186, 103608, 71, 5, 757, 160743, 57157, 94369, 138790, 6, 85398, 2203, 616, 581, 29806, 82775, 47, 28282, 51359, 3647, 756, 7722, 117249, 14012, 45443, 1957, 3642, 5941, 101935, 40715, 3501, 541, 2685, 7103, 435...
[ 0.146240234375, 0.1343994140625, 0.141845703125, 0.283447265625, 0.18212890625, 0.1474609375, 0.25634765625, 0.192138671875, 0.035888671875, 0.16845703125, 0.228515625, 0.1966552734375, 0.1900634765625, 0.2176513671875, 0.07763671875, 0.261474609375, 0.1561279296875, 0.25830078125,...
embed
52796975_c0
52796975
prolog
0
Title: Yap Prolog - Translating an SQL Query Problem title: Yap Prolog - Translating an SQL Query Tags: sql, yap, prolog Problem: Yap Prolog - Translating an SQL Query I'm trying to create a Prolog query for a database I translated from mySql to Prolog facts. The Prolog facts regard many tables, but the relevant ones f...
Yap Prolog - Translating an SQL Query Yap Prolog - Translating an SQL Query sql yap prolog Yap Prolog Translating SQL Query film_actor actor_id film_id AID FID Yap Prolog - Translating an SQL Query I'm trying to create a Prolog query for a database I translated from mySql to Prolog facts. The Prolog facts regard many t...
[ 0.03857421875, 0.019775390625, 0.00927734375, 0.01068115234375, -0.00140380859375, 0.0032196044921875, -0.0211181640625, -0.00112152099609375, 0.00121307373046875, -0.05908203125, 0.021728515625, -0.0322265625, -0.007598876953125, 0.0029754638671875, -0.0238037109375, 0.01708984375, ...
[ 47246, 1250, 4867, 11062, 143, 1916, 142, 80866, 58836, 53, 91, 99247, 15850, 502, 1346, 11, 18770, 39329, 532, 62, 7146, 563, 31577, 47, 28282, 41, 1294, 100, 63399, 3900, 1295, 759, 294, 15824, 7, 28601, 5941, 23180, 4, 70, 29191, 6...
[ 0.2578125, 0.196533203125, 0.27197265625, 0.172119140625, 0.2188720703125, 0.06640625, 0.06048583984375, 0.251220703125, 0.2200927734375, 0.0860595703125, 0.006011962890625, 0.2064208984375, 0.1998291015625, 0.1334228515625, 0.156005859375, 0.0872802734375, 0.1265869140625, 0.23364...
embed
49134117_c0
49134117
prolog
0
Title: How to get the last answer of the recursion directly in Prolog Problem title: How to get the last answer of the recursion directly in Prolog Tags: prolog, recursion Problem: How to get the last answer of the recursion directly in Prolog Here is the main part of my code in Prolog: state(N, Sf) :- get_initial_stat...
How to get the last answer of the recursion directly in Prolog How to get the last answer of the recursion directly in Prolog prolog recursion How Prolog get_initial_state test.csv state_sequence transition_state How to get the last answer of the recursion directly in Prolog Here is the main part of my code in Prolog: ...
[ -0.003265380859375, 0.00848388671875, 0.01507568359375, 0.0021820068359375, 0.0003643035888671875, -0.0093994140625, -0.01556396484375, 0.0023040771484375, -0.0033111572265625, -0.041015625, 0.0184326171875, -0.00482177734375, -0.0230712890625, 0.01904296875, 0.0081787109375, -0.025756...
[ 11249, 2046, 70, 4568, 35166, 111, 195625, 1830, 105237, 1250, 4867, 502, 61340, 3034, 4439, 334, 11341, 149307, 23, 18151, 91736, 26866, 13695, 34292, 11737, 541, 58359, 757, 3444, 4572, 927, 16750, 41, 24234, 214, 128219, 24189, 98320, 15...
[ 0.024871826171875, 0.090576171875, 0.05645751953125, 0.1949462890625, 0.16748046875, 0.0159912109375, 0.191162109375, 0.0982666015625, 0.164306640625, 0.1451416015625, 0.21533203125, 0.110595703125, 0.13037109375, 0.133544921875, 0.0184478759765625, 0.1126708984375, 0.118896484375, ...
embed
55650278_c0
55650278
prolog
0
Title: Problem with mathematical operation with findall/3 in a List (Prolog) Problem title: Problem with mathematical operation with findall/3 in a List (Prolog) Tags: prolog Problem: Problem with mathematical operation with findall/3 in a List (Prolog) I want to multiply elements in a List with findall/3. Specifically...
Problem with mathematical operation with findall/3 in a List (Prolog) Problem with mathematical operation with findall/3 in a List (Prolog) prolog Problem List Prolog map_f Operation Results Predicate Yes Problem with mathematical operation with findall/3 in a List (Prolog) I want to multiply elements in a List with fi...
[ 0.00860595703125, -0.00909423828125, 0.00653076171875, -0.0028228759765625, -0.0062255859375, 0.00616455078125, -0.004913330078125, 0.01116943359375, -0.000537872314453125, -0.0211181640625, 0.0137939453125, -0.0096435546875, -0.00848388671875, -0.0208740234375, -0.007232666015625, 0.0...
[ 15649, 678, 291, 140363, 70760, 41018, 7413, 5584, 18113, 32036, 10752, 4867, 23, 502, 1250, 22288, 454, 420, 102203, 146104, 7145, 2063, 32635, 3444, 6024, 62479, 80854, 6626, 32354, 41929, 1542, 1723, 1193, 108047, 30646, 71, 34292, 2967, ...
[ 0.15576171875, 0.06341552734375, 0.0294952392578125, 0.1448974609375, 0.062255859375, 0.197998046875, 0.1925048828125, 0.23583984375, 0.29541015625, 0.209716796875, 0.1351318359375, 0.2178955078125, 0.026458740234375, 0.110595703125, 0.141845703125, 0.1575927734375, 0.00189208984375,...
embed
39947534_c0
39947534
prolog
0
Title: Gnu Prolog does not accept any user definitions Problem title: Gnu Prolog does not accept any user definitions Tags: gnu-prolog, prolog Problem: Gnu Prolog does not accept any user definitions I am trying to learn Prolog. I have installed Gnu Prolog 1.4.4 on my Mac. I was directly following the example given in ...
Gnu Prolog does not accept any user definitions Gnu Prolog does not accept any user definitions gnu-prolog prolog Gnu Prolog Compiled Sep Daniel Diaz Copyright Hit Ctl-D existence_error top_level Gnu Prolog does not accept any user definitions I am trying to learn Prolog. I have installed Gnu Prolog 1.4.4 on my Mac. I ...
[ 0.01904296875, 0.0189208984375, 0.0140380859375, 0.005950927734375, -0.009033203125, 0.0419921875, 0.00311279296875, -0.0003490447998046875, 0.000244140625, -0.043212890625, -0.00494384765625, -0.0078125, -0.02783203125, 0.01177978515625, 0.0341796875, 0.0037841796875, 0.019409179687...
[ 527, 539, 1250, 4867, 959, 26946, 2499, 38937, 80934, 104155, 3454, 502, 15612, 21693, 11555, 4512, 169, 4189, 43482, 397, 116311, 188800, 2663, 67919, 31577, 30698, 20600, 615, 180874, 4727, 105237, 25632, 27781, 111021, 1398, 120883, 239550, ...
[ 0.10333251953125, 0.2393798828125, 0.1806640625, 0.267333984375, 0.0723876953125, 0.16552734375, 0.047149658203125, 0.2169189453125, 0.250244140625, 0.208984375, 0.13427734375, 0.1162109375, 0.00616455078125, 0.030059814453125, 0.0618896484375, 0.06768798828125, 0.04052734375, 0.14...
embed
34142312_c0
34142312
prolog
0
Title: Prolog: Check if it is a matrix and count rows and columns Problem title: Prolog: Check if it is a matrix and count rows and columns Tags: list, matrix, prolog Problem: Prolog: Check if it is a matrix and count rows and columns Considering that a matrix is a list of rows, how to check if my matrix is truly a mat...
Prolog: Check if it is a matrix and count rows and columns Prolog: Check if it is a matrix and count rows and columns list matrix prolog Prolog Check Row Col Rows Cols Prolog: Check if it is a matrix and count rows and columns Considering that a matrix is a list of rows, how to check if my matrix is truly a matrix. I n...
[ 0.009521484375, 0.00286865234375, 0.0272216796875, 0.01446533203125, 0.004730224609375, -0.007537841796875, 0.00142669677734375, 0.006805419921875, 0.01446533203125, 0.0048828125, 0.00927734375, -0.0277099609375, -0.00970458984375, -0.0086669921875, -0.0006103515625, 0.0025787353515625...
[ 1250, 4867, 38679, 2174, 442, 83, 10, 50944, 425, 136, 54529, 15555, 3365, 316, 5303, 502, 96190, 11554, 47, 12765, 759, 87607, 33022, 1653, 2063, 13267, 594, 959, 35782, 4263, 14012, 41, 84751, 11737, 18151, 2046, 69101, 140909, 5701, 30...
[ 0.1434326171875, 0.1959228515625, 0.1781005859375, 0.08154296875, 0.037445068359375, 0.07598876953125, 0.0860595703125, 0.214599609375, 0.142578125, 0.0921630859375, 0.1727294921875, 0.1910400390625, 0.070068359375, 0.08404541015625, 0.08056640625, 0.087890625, 0.2154541015625, 0.1...
embed
36449714_c1
36449714
prolog
1
person(Person,_,_,_,_,_,_,PetPref). genderMatch(Person1,Person2):- gender(Person1,Gender1), genderPref(Person2,Gender1), gender(Person2,Gender2), genderPref(Person1,Gender2), different(Person1,Person2). heightMatch(Person1,Person2):- height(Person1,Height1), heightPref(Person2,Height1), height(Person2,Height2), height...
person(Person,_,_,_,_,_,_,PetPref). genderMatch(Person1,Person2):- gender(Person1,Gender1), genderPref(Person2,Gender1), gender(Person2,Gender2), genderPref(Person1,Gender2), different(Person1,Person2). heightMatch(Person1,Person2):- height(Person1,Height1), heightPref(Person2,Height1), height(Person2,Height2), height...
[ 0.0024566650390625, 0.01434326171875, 0.01104736328125, 0.0009307861328125, -0.00830078125, 0.000156402587890625, -0.033203125, 0.007171630859375, 0.001983642578125, -0.00150299072265625, -0.0038909912109375, 0.0023193359375, 0.01116943359375, -0.00836181640625, 0.006622314453125, -0.0...
[ 3445, 132, 160054, 4, 454, 683, 126, 19273, 420, 194, 127501, 79520, 206, 418, 10461, 12, 9, 23894, 17727, 304, 12921, 155955, 13025, 5, 57888, 12137, 8093, 14858, 154663, 28864, 26073, 1250, 4867, 155370, 1916, 15270, 527, 1529, 22553, 1...
[ 0.229736328125, 0.04180908203125, 0.1927490234375, 0.0273895263671875, 0.036956787109375, 0.10247802734375, 0.162109375, 0.1622314453125, 0.1541748046875, 0.098876953125, 0.2362060546875, 0.216796875, 0.1849365234375, 0.1260986328125, 0.19873046875, 0.0455322265625, 0.021636962890625...
embed
40037874_c0
40037874
prolog
0
Title: How to check for any answer satisfying a condition Problem title: How to check for any answer satisfying a condition Tags: prolog Problem: How to check for any answer satisfying a condition I have just started with Prolog and I have come to a roadblock. I have searched for an answer to this here and on google fo...
How to check for any answer satisfying a condition How to check for any answer satisfying a condition prolog How Here How to check for any answer satisfying a condition I have just started with Prolog and I have come to a roadblock. I have searched for an answer to this here and on google for maybe 2 hours now. Its pro...
[ -0.00799560546875, 0.0101318359375, -0.004974365234375, 0.0228271484375, -0.01416015625, 0.0086669921875, 0.00121307373046875, 0.005889892578125, 0.006011962890625, -0.04345703125, 0.0004520416259765625, -0.01434326171875, -0.00885009765625, 0.01361083984375, -0.0079345703125, 0.008422...
[ 11249, 47, 12765, 100, 2499, 35166, 40407, 38543, 35431, 10, 502, 4867, 11853, 26859, 678, 1250, 81409, 26484, 21974, 21652, 23468, 1257, 4358, 26458, 27781, 3444, 3249, 79986, 27289, 2174, 87, 444, 62548, 23937, 3871, 3714, 6863, 756, 2686...
[ 0.07403564453125, 0.059326171875, 0.2489013671875, 0.1473388671875, 0.123779296875, 0.253662109375, 0.201904296875, 0.1534423828125, 0.243408203125, 0.01300048828125, 0.126220703125, 0.20849609375, 0.0723876953125, 0.01983642578125, 0.06787109375, 0.13232421875, 0.0955810546875, 0....
embed
33160427_c0
33160427
prolog
0
Title: Prolog - query outputs limited answers Problem title: Prolog - query outputs limited answers Tags: prolog-toplevel, prolog Problem: Prolog - query outputs limited answers To begin with - this is coursework so I can't post code. This is more about how prolog outputs its answers rather than "is my code right"? I'm...
Prolog - query outputs limited answers Prolog - query outputs limited answers prolog-toplevel prolog Prolog Paths Prolog - query outputs limited answers To begin with - this is coursework so I can't post code. This is more about how prolog outputs its answers rather than "is my code right"? I'm creating a predicate tha...
[ 0.0301513671875, 0.006256103515625, 0.00982666015625, -0.00131988525390625, -0.004974365234375, 0.0067138671875, 0.00445556640625, 0.003326416015625, 0.00506591796875, -0.033935546875, -0.0009765625, -0.01080322265625, -0.01519775390625, 0.0211181640625, 0.01953125, 0.01220703125, 0....
[ 1250, 4867, 41, 1294, 140992, 84046, 35166, 502, 13784, 67919, 108421, 18244, 1305, 18151, 7, 43257, 164, 759, 7108, 105233, 1653, 2063, 30646, 756, 8781, 60875, 17721, 41382, 5303, 121303, 11, 1193, 7722, 4034, 678, 10, 30742, 71, 420, 5...
[ 0.172119140625, 0.265380859375, 0.1302490234375, 0.066162109375, 0.202392578125, 0.1962890625, 0.1697998046875, 0.14404296875, 0.006195068359375, 0.0662841796875, 0.1651611328125, 0.1046142578125, 0.000885009765625, 0.1419677734375, 0.0169525146484375, 0.013580322265625, 0.0063781738...
embed
50666742_c0
50666742
prolog
0
Title: Prolog retract more then one fact and then assert Problem title: Prolog retract more then one fact and then assert Tags: prolog Problem: Prolog retract more then one fact and then assert :- dynamic flat/3. addr('Nollendorfstr',5). addr('Nollendorfstr',14). addr('Nollendorfstr',18). addr('Maxplanckstr',2). flat([...
Prolog retract more then one fact and then assert Prolog retract more then one fact and then assert prolog Prolog Nollendorfstr Maxplanckstr Street Rooms Price Num Newprice Prolog retract more then one fact and then assert We have for each flat three arguments. So flat(array of rooms, price, address) . I'd like to chan...
[ 0.01275634765625, 0.00107574462890625, 0.01556396484375, 0.0169677734375, 0.01287841796875, 0.00933837890625, -0.0079345703125, 0.01220703125, 0.02880859375, -0.00146484375, 0.0022430419921875, 0.036376953125, -0.0257568359375, -0.01202392578125, 0.012451171875, -0.00124359130859375, ...
[ 1250, 4867, 41499, 15390, 1286, 7068, 1632, 15824, 237, 33657, 502, 438, 1181, 127830, 9297, 9920, 5868, 2594, 15130, 38484, 48025, 52782, 2356, 5293, 765, 12638, 49878, 17262, 10750, 19305, 112875, 27167, 29823, 1884, 47, 15549, 756, 903, ...
[ 0.1588134765625, 0.26220703125, 0.176025390625, 0.1463623046875, 0.0970458984375, 0.09674072265625, 0.07281494140625, 0.155517578125, 0.06585693359375, 0.1734619140625, 0.1175537109375, 0.07916259765625, 0.0933837890625, 0.254150390625, 0.15625, 0.047332763671875, 0.1663818359375, ...
embed
54933733_c0
54933733
prolog
0
Title: Prolog predicate different solution cases Problem title: Prolog predicate different solution cases Tags: prolog Problem: Prolog predicate different solution cases I have 2 simple rules, which defines if 2 variables are in relation ship grandfather: grandfather(X,Y):-male(X), parent(X,Z), parent(Z,Y). father: sve...
Prolog predicate different solution cases Prolog predicate different solution cases prolog Prolog Prolog predicate different solution cases I have 2 simple rules, which defines if 2 variables are in relation ship grandfather: grandfather(X,Y):-male(X), parent(X,Z), parent(Z,Y). father: svekr(X,Y):-male(X), female(Y),pa...
[ 0.01300048828125, 0.0283203125, -0.00145721435546875, 0.016845703125, -0.0189208984375, 0.031494140625, -0.01202392578125, 0.00958251953125, -0.002716064453125, 0.002593994140625, 0.005523681640625, -0.025146484375, -0.01043701171875, 0.00159454345703125, 0.019287109375, 0.001327514648...
[ 1250, 4867, 1653, 2063, 67, 12921, 29806, 50218, 502, 116, 8781, 91736, 61924, 2174, 77336, 621, 41911, 109923, 9963, 1021, 9319, 1723, 49100, 1542, 49129, 1511, 67373, 2378, 5019, 117776, 99547, 1727, 1651, 100, 31577, 2046, 756, 7722, 503...
[ 0.1729736328125, 0.2469482421875, 0.1534423828125, 0.188232421875, 0.034027099609375, 0.19482421875, 0.1993408203125, 0.1875, 0.1282958984375, 0.111572265625, 0.06219482421875, 0.145751953125, 0.10211181640625, 0.039642333984375, 0.19970703125, 0.00347900390625, 0.156494140625, 0.1...
embed
57887576_c0
57887576
prolog
0
Title: Month not associated with unique value? Problem title: Month not associated with unique value? Tags: prolog Problem: Month not associated with unique value? I'm just learning prolog and stumbled across a problem. I'm not quite sure if the problem is syntactic or if what I'm trying to do doesn't make any sense at...
Month not associated with unique value? Month not associated with unique value? prolog Month Month not associated with unique value? I'm just learning prolog and stumbled across a problem. I'm not quite sure if the problem is syntactic or if what I'm trying to do doesn't make any sense at all. Maybe I don't yet fully u...
[ -0.006744384765625, 0.00616455078125, 0.0181884765625, -0.009765625, 0.002471923828125, -0.0126953125, -0.00092315673828125, 0.0023345947265625, -0.004608154296875, -0.000759124755859375, -0.0186767578125, 0.01123046875, 0.01300048828125, -0.0098876953125, 0.0157470703125, 0.0043334960...
[ 12982, 127, 959, 137272, 678, 36998, 34292, 502, 4867, 52080, 2967, 102, 831, 18151, 22759, 12921, 21775, 8337, 30309, 42485, 56, 14012, 1542, 1723, 32354, 8, 1029, 6626, 2080, 5701, 26458, 26785, 35166, 1528, 98320, 17569, 1250, 103876, 11...
[ 0.226318359375, 0.143798828125, 0.14697265625, 0.213134765625, 0.0926513671875, 0.2274169921875, 0.2144775390625, 0.132080078125, 0.2257080078125, 0.026641845703125, 0.06976318359375, 0.039459228515625, 0.0260162353515625, 0.099365234375, 0.132568359375, 0.1121826171875, 0.2335205078...
embed
41786881_c1
41786881
prolog
1
2, 9_285), is_classroom_occupied(wed, 12, 9_285), is_classroom_occupied(fri, 12, 9_285), is_classroom_occupied(mon, 2, 8_247), is_classroom_occupied(wed, 2, 8_247), is_classroom_occupied(fri, 2, 8_247), is_classroom_occupied(tu, 5, 8_348), is_classroom_occupied(thu, 5, 8_348). The first half is a collection of facts th...
2, 9_285), is_classroom_occupied(wed, 12, 9_285), is_classroom_occupied(fri, 12, 9_285), is_classroom_occupied(mon, 2, 8_247), is_classroom_occupied(wed, 2, 8_247), is_classroom_occupied(fri, 2, 8_247), is_classroom_occupied(tu, 5, 8_348), is_classroom_occupied(thu, 5, 8_348). The first half is a collection of facts th...
[ 0.01220703125, 0.00457763671875, 0.00872802734375, 0.0166015625, -0.02392578125, 0.018310546875, 0.005340576171875, 0.0032958984375, -0.00640869140625, -0.033935546875, -0.0135498046875, -0.03515625, -0.009765625, -0.00433349609375, -0.0126953125, 0.004302978515625, 0.0157470703125, ...
[ 116, 483, 101800, 83, 67413, 28905, 6652, 1010, 138518, 24243, 427, 247, 7151, 3796, 382, 142430, 458, 190, 135407, 8805, 23552, 42486, 15824, 7639, 5155, 1733, 17155, 14012, 759, 61112, 17932, 2831, 79986, 27781, 41, 1294, 140992, 29568, 2...
[ 0.0880126953125, 0.094970703125, 0.207763671875, 0.090576171875, 0.1104736328125, 0.206787109375, 0.1180419921875, 0.1502685546875, 0.1634521484375, 0.1048583984375, 0.100341796875, 0.003753662109375, 0.1295166015625, 0.0980224609375, 0.158203125, 0.111328125, 0.06646728515625, 0.0...
embed
36985169_c0
36985169
prolog
0
Title: SWI-Prolog: findall/3 not finding all solutions? Problem title: SWI-Prolog: findall/3 not finding all solutions? Tags: prolog, transitive-closure Problem: SWI-Prolog: findall/3 not finding all solutions? I'm trying to solve this Pebble Solitaire problem, and this is part of my code: % Base case play(List, X) :- ...
SWI-Prolog: findall/3 not finding all solutions? SWI-Prolog: findall/3 not finding all solutions? prolog transitive-closure SWI-Prolog Base List count_pebbles JUMP RIGHT Tail Xoo-XXXXXXXX XXoo-XXXXXXX XXXoo-XXXXXX XXXXoo-XXXXX XXXXXoo-XXXX XXXXXXoo-XXX XXXXXXXoo-XX XXXXXXXXoo-X XXXXXXXXXoo LEFT X-ooXXXXXXXX XX-ooXXXXXX...
[ -0.00994873046875, 0.0031585693359375, 0.017333984375, 0.02294921875, 0.000762939453125, 0.00927734375, -0.013427734375, -0.00457763671875, 0.0228271484375, -0.0042724609375, 0.0184326171875, 0.01251220703125, 0.016845703125, 0.00970458984375, 0.018798828125, 0.000423431396484375, 0....
[ 159, 38969, 10752, 4867, 7413, 5584, 18113, 959, 90791, 756, 51347, 502, 62621, 5844, 170224, 44978, 32036, 54529, 1081, 73163, 821, 149101, 167177, 1218, 379, 24107, 31, 205378, 25217, 16635, 190060, 13547, 31577, 86869, 1460, 124725, 44386, ...
[ 0.0020751953125, 0.1873779296875, 0.125244140625, 0.18701171875, 0.15869140625, 0.240966796875, 0.263916015625, 0.1260986328125, 0.17236328125, 0.146484375, 0.21923828125, 0.10986328125, 0.123779296875, 0.07568359375, 0.1973876953125, 0.129150390625, 0.1356201171875, 0.148803710937...
embed
42161151_c0
42161151
prolog
0
Title: Remove repetitions more than once Problem title: Remove repetitions more than once Tags: prolog Problem: Remove repetitions more than once I would like to remove more than one repetition from a previously ordered list in prolog. I would like the output to look like this: Example 1. ?- remove_dups ([1,1,2,2,3,4,5...
Remove repetitions more than once Remove repetitions more than once prolog Remove remove_dups List Remove repetitions more than once I would like to remove more than one repetition from a previously ordered list in prolog. I would like the output to look like this: Example 1. As you can see, it would remove not a repet...
[ -0.001953125, 0.0234375, 0.017822265625, 0.0037689208984375, -0.01458740234375, 0.01141357421875, -0.0140380859375, -0.00567626953125, -0.00262451171875, -0.0194091796875, -0.014404296875, 0.010009765625, -0.00183868408203125, 0.00811767578125, -0.01177978515625, 0.032470703125, 0.01...
[ 181139, 57346, 5256, 1286, 3501, 24145, 502, 4867, 87388, 693, 6423, 32036, 1884, 47, 1632, 1363, 1295, 198395, 12989, 5303, 23, 140992, 6713, 89536, 5701, 12830, 756, 111, 442, 25632, 234873, 129344, 15490, 36272, 903, 237, 27781, 6305 ]
[ 0.1806640625, 0.308349609375, 0.1552734375, 0.1519775390625, 0.1334228515625, 0.2078857421875, 0.1678466796875, 0.2269287109375, 0.1900634765625, 0.1595458984375, 0.146728515625, 0.136474609375, 0.0789794921875, 0.001129150390625, 0.10028076171875, 0.1383056640625, 0.0831298828125, ...
embed
40449995_c0
40449995
prolog
0
Title: Trying to connect with local database using Prolog and ODBC Problem title: Trying to connect with local database using Prolog and ODBC Tags: odbc, prolog Problem: Trying to connect with local database using Prolog and ODBC I'm trying to make a connection from a Prolog program to my local database using ODBC. Thi...
Trying to connect with local database using Prolog and ODBC Trying to connect with local database using Prolog and ODBC odbc prolog Prolog Trying ODBC use_odbc open_wordnet disconnect_database odbc_connect Data Source LocalDb MSSQLLocalDB Integrated Security SSPI odbc_disconnect ERROR State S1090 Microsoft Driver Manag...
[ 0.01312255859375, 0.011474609375, 0.001861572265625, 0.02294921875, -0.017822265625, 0.0206298828125, -0.0230712890625, -0.015380859375, -0.010986328125, -0.05224609375, 0.0147705078125, -0.0245361328125, 0.01177978515625, -0.0164794921875, -0.00921630859375, -0.01092529296875, 0.003...
[ 40858, 37067, 678, 4000, 63399, 17368, 1250, 4867, 136, 34687, 24318, 229, 65037, 502, 4527, 2199, 9803, 47416, 1179, 2837, 135457, 37382, 77641, 24172, 275, 158897, 203758, 39463, 91969, 48748, 29581, 15185, 151206, 22836, 159, 963, 5039, 72...
[ 0.0924072265625, 0.169189453125, 0.108642578125, 0.139404296875, 0.1785888671875, 0.036346435546875, 0.15576171875, 0.2392578125, 0.0814208984375, 0.16455078125, 0.2137451171875, 0.0985107421875, 0.157958984375, 0.0816650390625, 0.0345458984375, 0.09130859375, 0.08349609375, 0.0796...
embed
13390544_c0
13390544
prolog
0
Title: Prolog implementation of a Truth Maintenance System Problem title: Prolog implementation of a Truth Maintenance System Tags: prolog, tms Problem: Prolog implementation of a Truth Maintenance System A truth maintenance system (TMS) stores justifications of inferences which result in a specific conclusion in a giv...
Prolog implementation of a Truth Maintenance System Prolog implementation of a Truth Maintenance System prolog tms Prolog Truth Maintenance System good_student study_hard party_person Prolog implementation of a Truth Maintenance System A truth maintenance system (TMS) stores justifications of inferences which result in...
[ 0.0150146484375, 0.0281982421875, 0.007659912109375, 0.021728515625, 0.00543212890625, 0.0142822265625, -0.006134033203125, 0.00775146484375, -0.005859375, -0.037109375, 0.016845703125, 0.007659912109375, -0.003021240234375, 0.00213623046875, 0.01348876953125, 0.0164794921875, 0.0185...
[ 1250, 4867, 208124, 184431, 12321, 510, 12353, 502, 808, 4432, 4127, 96610, 35187, 25612, 19085, 30816, 85027, 121097, 5426, 10111, 294, 4343, 58569, 53498, 69098, 16750, 29458, 93192, 191428, 44978, 27781, 33342, 11205, 53418, 756, 26366, 3642...
[ 0.16650390625, 0.23681640625, 0.1668701171875, 0.2030029296875, 0.10400390625, 0.1273193359375, 0.16650390625, 0.1590576171875, 0.06988525390625, 0.1409912109375, 0.135498046875, 0.2021484375, 0.167724609375, 0.23046875, 0.125, 0.122314453125, 0.2159423828125, 0.2330322265625, 0....
embed
54877150_c0
54877150
prolog
0
Title: Why is this ancestor code not working - Prolog Problem title: Why is this ancestor code not working - Prolog Tags: prolog Problem: Why is this ancestor code not working - Prolog parent(jill, john). parent(john, pam). parent(pam, bob). parent(tom, bob). parent(tom, liz). parent(bob, ann). parent(bob, pat). parent...
Why is this ancestor code not working - Prolog Why is this ancestor code not working - Prolog prolog Why Prolog Why is this ancestor code not working - Prolog This is the whole code plus some other stuff not related to the ancestor part. When I try to test it in swipl, the ancestor code gives me false. I am trying ance...
[ 0.017822265625, 0.01434326171875, 0.009033203125, 0.0157470703125, -0.0174560546875, 0.017822265625, -0.006927490234375, 0.007537841796875, -0.016357421875, -0.01953125, 0.0096435546875, -0.031494140625, 0.00604248046875, 0.010498046875, 0.0086669921875, -0.00830078125, 0.02270507812...
[ 44084, 83, 903, 60502, 1290, 18151, 959, 20697, 1250, 4867, 502, 28271, 2831, 9790, 3034, 91, 2452, 2424, 70, 163, 98320, 31577, 4453, 20304, 136, 1542, 4527, 2819, 64457, 111, 43240, 119140, 123055, 3445, 1556, 15044, 27863, 5303 ]
[ 0.1142578125, 0.039459228515625, 0.1171875, 0.199951171875, 0.20166015625, 0.2171630859375, 0.1390380859375, 0.160400390625, 0.126953125, 0.189697265625, 0.05963134765625, 0.044281005859375, 0.047332763671875, 0.04620361328125, 0.1370849609375, 0.042144775390625, 0.1795654296875, 0...
embed
55384607_c0
55384607
prolog
0
Title: How to represent situation calculus in Prolog? Problem title: How to represent situation calculus in Prolog? Tags: prolog Problem: How to represent situation calculus in Prolog? I am trying to represent a situation in situation calculus with swi-prolog. The situation is the sale of an item, where: "Person A sell...
How to represent situation calculus in Prolog? How to represent situation calculus in Prolog? prolog How Prolog Seller Buyer Item Price How to represent situation calculus in Prolog? I am trying to represent a situation in situation calculus with swi-prolog. The situation is the sale of an item, where: "Person A sells ...
[ 0.0159912109375, 0.009521484375, 0.0238037109375, 0.01397705078125, -0.014404296875, 0.01336669921875, -0.02880859375, 0.00130462646484375, -0.001922607421875, -0.003997802734375, 0.0025787353515625, 0.0267333984375, -0.0252685546875, 0.000530242919921875, 0.0277099609375, -0.017089843...
[ 11249, 47, 33636, 16648, 44805, 223, 23, 1250, 4867, 502, 36394, 42, 47184, 56, 78426, 48025, 31577, 91, 2452, 3454, 83, 11473, 35735, 160054, 62, 74703, 87, 15270, 335, 168404, 1902, 34292, 3650, 1549, 8108, 3647, 15824, 5351, 61924, 165...
[ 0.082763671875, 0.112060546875, 0.26025390625, 0.259033203125, 0.22607421875, 0.1639404296875, 0.06109619140625, 0.16650390625, 0.262939453125, 0.0921630859375, 0.1414794921875, 0.034637451171875, 0.1370849609375, 0.055908203125, 0.14404296875, 0.1683349609375, 0.035064697265625, 0...
embed
60911024_c0
60911024
prolog
0
Title: Using Tau-Prolog with React Problem title: Using Tau-Prolog with React Tags: node.js, prolog, tau-prolog, ffi, reactjs Problem: Using Tau-Prolog with React I am trying to use Tau-Prolog with Node.js and React. At the step: session.consult(program); I get this error message: TypeError: fs.existsSync is not a func...
Using Tau-Prolog with React Using Tau-Prolog with React node.js prolog tau-prolog ffi reactjs TypeError React ReactDOM Using Tau-Prolog session.consult fs.existsSync These core.js tau-prolog.js App React.Component pl.create Until Session src_predicates Hello ReactDOM.render document.getElementById node.js Using Tau-Pro...
[ 0.0023345947265625, 0.01434326171875, -0.01904296875, 0.00701904296875, -0.00946044921875, 0.002655029296875, 0.0115966796875, -0.005615234375, -0.00433349609375, -0.057861328125, 0.01434326171875, -0.0169677734375, -0.0050048828125, 0.01416015625, 0.01348876953125, -0.01513671875, 0...
[ 345, 21139, 9, 10752, 4867, 678, 853, 47013, 110, 112, 28175, 502, 5705, 3454, 24500, 131300, 60457, 18468, 31611, 127214, 56002, 147834, 1238, 7, 54376, 217835, 32255, 56458, 5659, 10770, 54137, 6456, 7612, 3675, 148735, 19437, 19714, 2063, ...
[ 0.1146240234375, 0.298828125, 0.0919189453125, 0.1522216796875, 0.2257080078125, 0.1319580078125, 0.119873046875, 0.2247314453125, 0.13134765625, 0.1842041015625, 0.174560546875, 0.117431640625, 0.26708984375, 0.130859375, 0.142578125, 0.2020263671875, 0.177978515625, 0.12719726562...
embed
40795644_c0
40795644
prolog
0
Title: Prolog - creating cumulative duplicates in a list? Problem title: Prolog - creating cumulative duplicates in a list? Tags: duplicates, list, prolog Problem: Prolog - creating cumulative duplicates in a list? I have a list L given and my task is to create cumulative duplicates, depending on how many I want. I hav...
Prolog - creating cumulative duplicates in a list? Prolog - creating cumulative duplicates in a list? duplicates list prolog Prolog list_copy Prolog - creating cumulative duplicates in a list? I have a list L given and my task is to create cumulative duplicates, depending on how many I want. I have the list [a,b,c,d] f...
[ -0.005462646484375, 0.0093994140625, -0.00860595703125, 0.0140380859375, -0.00396728515625, 0.01123046875, 0.000408172607421875, -0.01177978515625, 0.03369140625, -0.038330078125, -0.0130615234375, -0.0067138671875, 0.02392578125, 0.0279541015625, -0.0020904541015625, 0.018310546875, ...
[ 1250, 4867, 105233, 1452, 202, 45023, 171763, 1636, 5303, 23, 502, 137366, 339, 34475, 66211, 28282, 96819, 5941, 3444, 5117, 12830, 3674, 201, 20028, 109585, 1884, 997, 1653, 2063, 866, 1052, 16750, 71, 341, 116, 145755, 32813, 18151, 1916...
[ 0.1494140625, 0.2381591796875, 0.154052734375, 0.1285400390625, 0.11962890625, 0.1326904296875, 0.2315673828125, 0.1573486328125, 0.1881103515625, 0.03167724609375, 0.109130859375, 0.1732177734375, 0.04510498046875, 0.0249481201171875, 0.078857421875, 0.1201171875, 0.0396728515625, ...
embed
68017468_c0
68017468
prolog
0
Title: How can i automate in SWI Prolog the download of a file manually resulting from an Ajax script? Problem title: How can i automate in SWI Prolog the download of a file manually resulting from an Ajax script? Tags: prolog, http, ajax, swi-prolog Problem: How can i automate in SWI Prolog the download of a file manu...
How can i automate in SWI Prolog the download of a file manually resulting from an Ajax script? How can i automate in SWI Prolog the download of a file manually resulting from an Ajax script? prolog http ajax swi-prolog an How SWI Prolog Ajax How can i automate in SWI Prolog the download of a file manually resulting fr...
[ -0.003662109375, 0.0133056640625, 0.01397705078125, 0.01287841796875, -0.0147705078125, -0.004730224609375, -0.0045166015625, 0.031982421875, -0.00640869140625, -0.03857421875, 0.0135498046875, -0.01287841796875, -0.0225830078125, 0.009521484375, 0.01544189453125, -0.00823974609375, ...
[ 11249, 831, 17, 11408, 13, 159, 38969, 1250, 4867, 7026, 11435, 23009, 16750, 157715, 26499, 23, 1295, 502, 1621, 7767, 425, 91, 2452, 3454, 142, 1884, 313, 43486, 75060, 903, 9191, 3939, 86, 29062, 1764, 111021, 27781, 18158, 57571, 1182...
[ 0.060638427734375, 0.061279296875, 0.05963134765625, 0.222412109375, 0.094970703125, 0.0732421875, 0.2373046875, 0.1671142578125, 0.2080078125, 0.1815185546875, 0.13232421875, 0.191162109375, 0.0682373046875, 0.2340087890625, 0.191162109375, 0.04864501953125, 0.0205841064453125, 0....
embed
74620179_c0
74620179
prolog
0
Title: Prolog from command line wont return true/false Problem title: Prolog from command line wont return true/false Tags: prolog Problem: Prolog from command line wont return true/false The indication of a successful or failed goal won't print when compiling with the command line. f(X,X) :- !, false. f(0,1). online c...
Prolog from command line wont return true/false Prolog from command line wont return true/false prolog command Prolog prob4.pl N-1 print_true print_false Prolog from command line wont return true/false The indication of a successful or failed goal won't print when compiling with the command line. online compiler on the...
[ 0.0162353515625, 0.02197265625, 0.000804901123046875, 0.0016326904296875, -0.036865234375, 0.00433349609375, 0.019775390625, -0.004913330078125, -0.0093994140625, -0.0123291015625, -0.00848388671875, 0.0001659393310546875, -0.0111083984375, 0.0069580078125, 0.01171875, -0.00439453125, ...
[ 1250, 4867, 1295, 75101, 13315, 23742, 18, 30646, 29568, 8710, 502, 43011, 617, 2424, 541, 5759, 28412, 9774, 14585, 1363, 111, 10, 65771, 707, 165523, 69236, 3229, 9969, 49725, 678, 1118, 34759, 438, 140992, 54811, 209806, 49938, 33720, 79...
[ 0.1934814453125, 0.24609375, 0.08154296875, 0.19091796875, 0.1544189453125, 0.08648681640625, 0.1097412109375, 0.19384765625, 0.1473388671875, 0.1339111328125, 0.160400390625, 0.209228515625, 0.133056640625, 0.1151123046875, 0.0218505859375, 0.1097412109375, 0.21875, 0.11328125, ...
embed
34823329_c1
34823329
prolog
1
Catalin"> <IsMale>true</IsMale> <Varsta>38</Varsta> <PersoanaPlacuta>"Iulia"</PersoanaPlacuta> </Persoane> <Persoane nume ="Iulia"> <IsMale>false</IsMale> <Varsta>32</Varsta> <PersoanaPlacuta>"Bob"</PersoanaPlacuta> </Persoane> <Persoane nume ="Ana"> <IsMale>false</IsMale> <Varsta>27</Varsta> <PersoanaPlacuta>"Bogdan"<...
Catalin"> <IsMale>true</IsMale> <Varsta>38</Varsta> <PersoanaPlacuta>"Iulia"</PersoanaPlacuta> </Persoane> <Persoane nume ="Iulia"> <IsMale>false</IsMale> <Varsta>32</Varsta> <PersoanaPlacuta>"Bob"</PersoanaPlacuta> </Persoane> <Persoane nume ="Ana"> <IsMale>false</IsMale> <Varsta>27</Varsta> <PersoanaPlacuta>"Bogdan"<...
[ 0.0234375, 0.018798828125, -0.0020599365234375, 0.01416015625, 0.01171875, 0.03271484375, -0.02783203125, -0.01275634765625, 0.00616455078125, -0.01519775390625, -0.00433349609375, -0.0322265625, -0.0166015625, -0.0272216796875, 0.005767822265625, 0.00927734375, 0.01483154296875, 0...
[ 128342, 73, 70902, 4426, 29598, 4613, 133, 2740, 9774, 13, 81827, 590, 10991, 15277, 7, 55237, 683, 143, 145051, 58, 568, 53588, 6, 42946, 80499, 66919, 8710, 6460, 571, 3522, 73026, 184, 3768, 1663, 549, 8912, 32041, 4235, 26951, 1577, ...
[ 0.300537109375, 0.29833984375, 0.1448974609375, 0.032073974609375, 0.184814453125, 0.190673828125, 0.1627197265625, 0.04180908203125, 0.208984375, 0.0560302734375, 0.2255859375, 0.21240234375, 0.293701171875, 0.08514404296875, 0.1143798828125, 0.17041015625, 0.03125, 0.146362304687...
embed
26519547_c0
26519547
prolog
0
Title: Generic prolog cryptarithmetic program Problem title: Generic prolog cryptarithmetic program Tags: prolog, cryptarithmetic-puzzle Problem: Generic prolog cryptarithmetic program I'm trying to write a program to solve general cryptarithmetic puzzles such as AM+PM=DAY, SEND+MORE=MONEY.. The program I've written is...
Generic prolog cryptarithmetic program Generic prolog cryptarithmetic program prolog cryptarithmetic-puzzle Generic ERROR Type _G3922 Generic prolog cryptarithmetic program I'm trying to write a program to solve general cryptarithmetic puzzles such as AM+PM=DAY, SEND+MORE=MONEY.. The program I've written is: The input ...
[ -0.000507354736328125, 0.00885009765625, -0.0238037109375, 0.00021266937255859375, -0.020263671875, 0.0164794921875, -0.020751953125, 0.0029144287109375, 0.006256103515625, -0.017822265625, 0.0164794921875, -0.012451171875, 0.006927490234375, 0.008056640625, -0.01806640625, -0.00823974...
[ 88342, 1771, 502, 4867, 136791, 8962, 1528, 282, 1766, 13894, 133, 151206, 24638, 60457, 724, 131564, 304, 31577, 33022, 86869, 4537, 104192, 9677, 1328, 20266, 67141, 39015, 54003, 12013, 206688, 59121, 107730, 3173, 10336, 5117, 6626, 5303, ...
[ 0.1541748046875, 0.036285400390625, 0.1690673828125, 0.23291015625, 0.1448974609375, 0.10205078125, 0.1827392578125, 0.0246124267578125, 0.049041748046875, 0.078369140625, 0.030181884765625, 0.16259765625, 0.1102294921875, 0.1158447265625, 0.0277862548828125, 0.2281494140625, 0.15942...
embed
68138381_c0
68138381
prolog
0
Title: How to collect all the results Problem title: How to collect all the results Tags: swi-prolog, prolog Problem: How to collect all the results I have the following program: ingrediente(X):- member(X, [ "almendra" , "arroz" , "atun" ] ) . tortitas(X):- ingrediente(Y) ,atom_concat("Tortitas de ", Y,X) . ensalada(X)...
How to collect all the results How to collect all the results swi-prolog prolog How atom_concat Tortitas Ensalada Con ConZ YConz Sopa write_menu output.txt Out Platillos Platillo How to collect all the results I have the following program: It creates the file for me, but does not write the results. How can I correct th...
[ 0.018798828125, 0.00653076171875, 0.0023651123046875, 0.0189208984375, -0.00848388671875, 0.000537872314453125, -0.0091552734375, 0.0031280517578125, 0.0064697265625, -0.01483154296875, 0.01251220703125, 0.007171630859375, -0.0054931640625, -0.00421142578125, 0.0220947265625, 0.0011825...
[ 11249, 47, 43799, 756, 70, 50339, 2452, 3454, 4867, 502, 34627, 2271, 4460, 6653, 18, 5232, 20088, 85, 1657, 1511, 990, 11935, 169, 65018, 11, 33022, 30144, 140992, 124326, 13538, 22387, 24049, 7, 25632, 1528, 28282, 11435, 100, 1284, 959...
[ 0.07763671875, 0.072509765625, 0.2392578125, 0.1744384765625, 0.133056640625, 0.248779296875, 0.188720703125, 0.10516357421875, 0.1915283203125, 0.0989990234375, 0.183349609375, 0.0193939208984375, 0.143310546875, 0.04547119140625, 0.02655029296875, 0.1151123046875, 0.119873046875, ...
embed
16766135_c0
16766135
prolog
0
Title: what does C1 mean in cryptarithmetic puzzle in polog? Problem title: what does C1 mean in cryptarithmetic puzzle in polog? Tags: prolog, cryptarithmetic-puzzle Problem: what does C1 mean in cryptarithmetic puzzle in polog? Here is a snippet of cryptarithmetic in prolog sum1( [D1|N1], [D2|N2], [D|N], C1, C, Digs1...
what does C1 mean in cryptarithmetic puzzle in polog? what does C1 mean in cryptarithmetic puzzle in polog? prolog cryptarithmetic-puzzle the sum1 Digs1 Digs Digs2 Digits1 Digits what does C1 mean in cryptarithmetic puzzle in polog? Here is a snippet of cryptarithmetic in prolog As below explains I really don't get it ...
[ 0.01287841796875, -0.00982666015625, 0.009521484375, 0.0234375, -0.006805419921875, 0.003753662109375, 0.00860595703125, 0.0035858154296875, 0.0150146484375, -0.01385498046875, 0.0045166015625, -0.004852294921875, -0.0162353515625, -0.00133514404296875, 0.002197265625, -0.0090942382812...
[ 313, 418, 29459, 136791, 8962, 104192, 3788, 177, 502, 4867, 1766, 13894, 133, 10554, 49688, 7, 304, 51174, 6, 9523, 2046, 397, 839, 76172, 90173, 9157, 100, 85358, 3173, 7108, 25737 ]
[ 0.1485595703125, 0.2099609375, 0.135986328125, 0.1026611328125, 0.08367919921875, 0.1470947265625, 0.131591796875, 0.1495361328125, 0.102294921875, 0.1817626953125, 0.01416015625, 0.02178955078125, 0.000518798828125, 0.181884765625, 0.107177734375, 0.0182952880859375, 0.1961669921875...
embed
71633220_c0
71633220
prolog
0
Title: How can I find all the valid divisors (AKA A%B == 0) of a number? Problem title: How can I find all the valid divisors (AKA A%B == 0) of a number? Tags: prolog, math, logic, list, modulo Problem: How can I find all the valid divisors (AKA A%B == 0) of a number? I am writing a method modded, which is defined as m...
How can I find all the valid divisors (AKA A%B == 0) of a number? How can I find all the valid divisors (AKA A%B == 0) of a number? prolog math logic list modulo How AKA Base Recursive Need How can I find all the valid divisors (AKA A%B == 0) of a number? I am writing a method modded, which is defined as modded(X,Y,Z)....
[ -0.0184326171875, -0.000942230224609375, 0.03369140625, 0.0027618408203125, 0.0038299560546875, 0.02978515625, -0.0167236328125, -0.0016632080078125, 0.031494140625, -0.005859375, 0.0152587890625, -0.0228271484375, 0.0037689208984375, 0.005401611328125, -0.00030517578125, -0.0072326660...
[ 11249, 831, 7413, 756, 70, 35604, 45, 51858, 7, 38677, 62, 3949, 571, 69112, 757, 14012, 111, 502, 4867, 48909, 62775, 5303, 140807, 44978, 853, 48650, 5844, 52889, 87, 32562, 55300, 98198, 297, 61924, 1542, 1723, 1511, 1193, 139392, 1503...
[ 0.08013916015625, 0.0692138671875, 0.165771484375, 0.151611328125, 0.0745849609375, 0.2445068359375, 0.1982421875, 0.299560546875, 0.13671875, 0.1427001953125, 0.0633544921875, 0.1217041015625, 0.136962890625, 0.173583984375, 0.2196044921875, 0.1934814453125, 0.038116455078125, 0.0...
embed
54715040_c0
54715040
prolog
0
Title: Prolog - return list of unique numbers in nested lists Problem title: Prolog - return list of unique numbers in nested lists Tags: list, prolog, recursion Problem: Prolog - return list of unique numbers in nested lists Hi everyone I'm trying to learn Prolog on my own and I am stuck trying to create a function th...
Prolog - return list of unique numbers in nested lists Prolog - return list of unique numbers in nested lists list prolog recursion Prolog Prolog - return list of unique numbers in nested lists Hi everyone I'm trying to learn Prolog on my own and I am stuck trying to create a function that takes a nested list and retur...
[ -0.00927734375, 0.0228271484375, 0.0191650390625, -0.0279541015625, 0.00119781494140625, 0.0296630859375, -0.00152587890625, 0.0027618408203125, 0.0002155303955078125, -0.0245361328125, -0.006072998046875, -0.02734375, -0.003814697265625, 0.017822265625, 0.0169677734375, 0.019409179687...
[ 1250, 4867, 30646, 5303, 36998, 101935, 8512, 71, 23, 502, 195625, 30309, 31577, 30698, 10002, 179933, 28282, 32354, 51776, 4734, 70, 866, 4, 618, 26950, 384, 125663, 1295, 339, 9384, 6713, 1884, 501, 11343, 134629, 18, 758, 96386, 617, 8...
[ 0.15771484375, 0.2449951171875, 0.1798095703125, 0.1982421875, 0.271240234375, 0.185791015625, 0.21142578125, 0.1229248046875, 0.062744140625, 0.1043701171875, 0.14599609375, 0.03045654296875, 0.008941650390625, 0.043487548828125, 0.042755126953125, 0.084228515625, 0.046966552734375,...
embed
23375279_c0
23375279
prolog
0
Title: Recursion in· Prolog Problem title: Recursion in· Prolog Tags: prolog, recursion Problem: Recursion in· Prolog I am trying to understand recursion in Prolog, but it is certainly different than how it is in other languages like PHP, Java and C. I have been reading all the tutorials about it, but I still don't get...
Recursion in· Prolog Recursion in· Prolog prolog recursion Recursion Prolog Recursion in· Prolog I am trying to understand recursion in Prolog, but it is certainly different than how it is in other languages like PHP, Java and C. I have been reading all the tutorials about it, but I still don't get specific, rather com...
[ 0.0068359375, 0.0289306640625, 0.0211181640625, 0.015869140625, 0.0108642578125, 0.0224609375, -0.0186767578125, -0.004486083984375, -0.0020294189453125, -0.0264892578125, -0.00555419921875, -0.032958984375, -0.0194091796875, -0.00185394287109375, 0.0205078125, -0.004364013671875, 0....
[ 165428, 42, 6889, 23, 1280, 1250, 4867, 502, 195625, 1830, 28219, 12921, 46876, 47302, 41925, 57143, 96704, 50218, 2046, 14012, 74918, 12830, 5303, 765, 831, 35839, 17368, 12, 5608, 16750, 44084, 83, 13315, 138, 3853, 123087, 20594, 54397, ...
[ 0.1903076171875, 0.202880859375, 0.1727294921875, 0.06243896484375, 0.0171661376953125, 0.1632080078125, 0.23876953125, 0.1246337890625, 0.2408447265625, 0.1463623046875, 0.049163818359375, 0.073486328125, 0.1002197265625, 0.1187744140625, 0.09423828125, 0.0955810546875, 0.0659179687...
embed
34764273_c0
34764273
prolog
0
Title: How to check if variable is instantiated in Prolog? Problem title: How to check if variable is instantiated in Prolog? Tags: instantiation, prolog Problem: How to check if variable is instantiated in Prolog? I need to know if variable is instantiated in a given rule, yet I'm not allowed to use var(X), and have n...
How to check if variable is instantiated in Prolog? How to check if variable is instantiated in Prolog? instantiation prolog How Prolog How to check if variable is instantiated in Prolog? I need to know if variable is instantiated in a given rule, yet I'm not allowed to use var(X), and have no clue on how to do so. To ...
[ 0.01177978515625, 0.0179443359375, 0.011962890625, 0.0150146484375, 0.010986328125, 0.02197265625, 0.0078125, -0.0164794921875, 0.00762939453125, -0.0159912109375, 0.01531982421875, -0.029296875, -0.01708984375, -0.003692626953125, 0.01177978515625, 0.007110595703125, 0.016357421875,...
[ 11249, 12765, 2174, 77336, 83, 34648, 14, 27686, 23, 1250, 4867, 502, 47, 3714, 79986, 107003, 4527, 285, 1542, 201, 171859, 683, 335, 436, 65395, 29568, 1328, 571, 13415, 5772, 30646, 34292, 142027, 28740, 213185, 23468, 50218, 959, 14012,...
[ 0.0498046875, 0.2099609375, 0.10595703125, 0.274169921875, 0.052734375, 0.188720703125, 0.1378173828125, 0.087890625, 0.0777587890625, 0.1585693359375, 0.227783203125, 0.107421875, 0.000091552734375, 0.080810546875, 0.14697265625, 0.042449951171875, 0.053497314453125, 0.12670898437...
embed
66500227_c0
66500227
prolog
0
Title: Prolog - Multiplication by recursive addition Problem title: Prolog - Multiplication by recursive addition Tags: prolog Problem: Prolog - Multiplication by recursive addition I am trying to recursively do addition to multiply two numbers in swi-prolog. I am currently learning Prolog and I do not want to use any ...
Prolog - Multiplication by recursive addition Prolog - Multiplication by recursive addition prolog Prolog Multiplication Prolog - Multiplication by recursive addition I am trying to recursively do addition to multiply two numbers in swi-prolog. I am currently learning Prolog and I do not want to use any library like cl...
[ 0.002349853515625, 0.035888671875, 0.02294921875, 0.0299072265625, -0.00787353515625, 0.0126953125, -0.01495361328125, 0.004364013671875, 0.00604248046875, -0.0242919921875, 0.0108642578125, -0.0106201171875, -0.0213623046875, 0.0014801025390625, 0.0152587890625, -0.0247802734375, 0....
[ 1250, 4867, 19335, 182867, 390, 195625, 5844, 66044, 502, 31577, 54, 6024, 62479, 6626, 101935, 91, 2452, 3454, 82424, 52080, 959, 3444, 4527, 35773, 33139, 39557, 71, 441, 134598, 16750, 143126, 25632, 234873, 41925, 26866, 285, 107730, 1221...
[ 0.1903076171875, 0.2420654296875, 0.1473388671875, 0.138671875, 0.073486328125, 0.2327880859375, 0.16259765625, 0.2138671875, 0.14208984375, 0.08544921875, 0.0158538818359375, 0.115234375, 0.1588134765625, 0.15283203125, 0.1539306640625, 0.028472900390625, 0.177490234375, 0.1303710...
embed
53562868_c0
53562868
prolog
0
Title: Prolog - Getting Syntax error: Operator expected Problem title: Prolog - Getting Syntax error: Operator expected Tags: prolog Problem: Prolog - Getting Syntax error: Operator expected symptom(thermal nociceptors, acrocyanosis). symptom(swelling, acrocyanosis). symptom(cold temperature, acrocyanosis). symptom(dis...
Prolog - Getting Syntax error: Operator expected Prolog - Getting Syntax error: Operator expected prolog Prolog Getting Syntax Operator Illness Acrocyanosis Symptom Treatment Test Sympt Treat Examin Prolog - Getting Syntax error: Operator expected Need help with
[ 0.0208740234375, -0.004852294921875, -0.006927490234375, 0.01141357421875, 0.0020751953125, 0.006103515625, -0.002777099609375, 0.0245361328125, -0.01397705078125, -0.0390625, 0.01312255859375, -0.013916015625, -0.0135498046875, -0.0224609375, 0.0186767578125, -0.013671875, -0.011596...
[ 1250, 4867, 210732, 19010, 86531, 18499, 150922, 84751, 502, 87, 1181, 7432, 9852, 22153, 1643, 84125, 149450, 183367, 8647, 2676, 4804, 89536, 4358 ]
[ 0.1685791015625, 0.247314453125, 0.070068359375, 0.1307373046875, 0.19287109375, 0.1636962890625, 0.265380859375, 0.19921875, 0.11907958984375, 0.0204620361328125, 0.09796142578125, 0.0082550048828125, 0.0308074951171875, 0.09185791015625, 0.1580810546875, 0.1593017578125, 0.09368896...
embed
6676740_c0
6676740
prolog
0
Title: Allegrograph - Functors like RDF objects properties? Problem title: Allegrograph - Functors like RDF objects properties? Tags: allegrograph, functor, inference, prolog Problem: Allegrograph - Functors like RDF objects properties? Using Allegrograph , Prolog functors are pretty awesome, but there is one downside....
Allegrograph - Functors like RDF objects properties? Allegrograph - Functors like RDF objects properties? allegrograph functor inference prolog Allegrograph Functors RDF Allegrograph - Functors like RDF objects properties? Using Allegrograph , Prolog functors are pretty awesome, but there is one downside. Let's say you...
[ 0.0322265625, -0.000017762184143066406, 0.016357421875, 0.01513671875, -0.00469970703125, -0.01336669921875, -0.000614166259765625, -0.010986328125, 0.002777099609375, -0.056884765625, 0.0247802734375, 0.0125732421875, -0.0172119140625, -0.007232666015625, -0.006011962890625, 0.0043945...
[ 4344, 8407, 41382, 28670, 18770, 1884, 627, 38997, 36746, 183871, 747, 7477, 53498, 502, 4867, 345, 1250, 28875, 79929, 1632, 7565, 8752, 61924, 22317, 6626, 77630, 49129, 132887, 105950, 432, 9319, 33172, 1021, 4216, 420, 3283, 25443, 162738...
[ 0.1370849609375, 0.1661376953125, 0.2159423828125, 0.1724853515625, 0.189697265625, 0.115478515625, 0.08587646484375, 0.2498779296875, 0.1654052734375, 0.1478271484375, 0.10321044921875, 0.1748046875, 0.132080078125, 0.09515380859375, 0.212890625, 0.02862548828125, 0.1317138671875, ...
embed
10489540_c0
10489540
prolog
0
Title: OWL reasoning in Prolog query from AllegroGraph Python API Problem title: OWL reasoning in Prolog query from AllegroGraph Python API Tags: allegrograph, python, prolog, triplestore Problem: OWL reasoning in Prolog query from AllegroGraph Python API I noticed that in the AllegroGraph Python API tutorial here , wh...
OWL reasoning in Prolog query from AllegroGraph Python API OWL reasoning in Prolog query from AllegroGraph Python API allegrograph python prolog triplestore AllegroGraph OWL Prolog Python API conn.getStatements ex:owned-by owl:inverseOf ex:owns ex:someone ex:something OWL reasoning in Prolog query from AllegroGraph Pyt...
[ 0.01226806640625, 0.00677490234375, 0.0126953125, -0.006591796875, -0.00176239013671875, -0.01300048828125, 0.004150390625, -0.01422119140625, 0.004913330078125, -0.054931640625, 0.0205078125, -0.003143310546875, -0.01336669921875, -0.02685546875, 0.00531005859375, 0.007781982421875, ...
[ 180, 181280, 31635, 214, 1250, 4867, 41, 4344, 8407, 37878, 11727, 145581, 61687, 747, 41382, 17198, 50828, 502, 162738, 45804, 158, 19, 3794, 135206, 5911, 1119, 157272, 1272, 36, 27751, 37676, 132887, 8770, 57143, 55300, 64457, 60436, 2737,...
[ 0.1168212890625, 0.27490234375, 0.20654296875, 0.112060546875, 0.1669921875, 0.245361328125, 0.116455078125, 0.0904541015625, 0.1732177734375, 0.1796875, 0.09002685546875, 0.18115234375, 0.121337890625, 0.04766845703125, 0.128662109375, 0.009490966796875, 0.05682373046875, 0.076416...
embed
51794895_c0
51794895
prolog
0
Title: Prolog callable expected found integer error Problem title: Prolog callable expected found integer error Tags: prolog Problem: Prolog callable expected found integer error I have a 2x2 axis (20 by 15). In there, I want to compute the location of the centers of two circles. computeShapeBelow/2 looks for possible ...
Prolog callable expected found integer error Prolog callable expected found integer error prolog Prolog Radius use_module Shape1 Shape2 Xcord1 Ycord1 Xcord2 Ycord2 nth0 Location1 Location2 Dim1 Dim2 circle1 ERROR Type Prolog callable expected found integer error I have a 2x2 axis (20 by 15). In there, I want to compute...
[ -0.0087890625, 0.0107421875, -0.0078125, 0.038330078125, -0.0118408203125, 0.024169921875, -0.01287841796875, -0.00677490234375, 0.0086669921875, -0.00616455078125, -0.00154876708984375, -0.002960205078125, 0.0013580322265625, -0.01373291015625, 0.01239013671875, -0.02783203125, 0.01...
[ 1250, 4867, 11782, 2886, 84751, 14037, 892, 1505, 18499, 502, 26368, 223, 4527, 83279, 7224, 418, 304, 1193, 32271, 990, 927, 90788, 45247, 42154, 133, 151206, 60457, 116, 425, 33102, 28583, 423, 9969, 6743, 31913, 27585, 6626, 130370, 4079...
[ 0.1480712890625, 0.242919921875, 0.1986083984375, 0.2352294921875, 0.247314453125, 0.17626953125, 0.1317138671875, 0.13720703125, 0.1903076171875, 0.10174560546875, 0.0948486328125, 0.07415771484375, 0.06109619140625, 0.094970703125, 0.1224365234375, 0.023162841796875, 0.10302734375,...
embed
58636987_c0
58636987
prolog
0
Title: Prolog - filter a list with a list as condition Problem title: Prolog - filter a list with a list as condition Tags: prolog Problem: Prolog - filter a list with a list as condition I have the following facts: breads([italian_wheat, hearty_italian, honey_oat, parmesan_oregano, multigrain, flatbread]). sauces([chi...
Prolog - filter a list with a list as condition Prolog - filter a list with a list as condition prolog Prolog italian_wheat hearty_italian honey_oat parmesan_oregano chipotle_southwest chili_sauce tomato_sauce mustard_sauce unhealthy_breads unhealthy_sauces Healthy Prolog - filter a list with a list as condition I have...
[ 0.01348876953125, 0.007171630859375, 0.003662109375, 0.0125732421875, -0.0155029296875, 0.005706787109375, -0.01190185546875, 0.016845703125, -0.002044677734375, 0.00045013427734375, 0.02197265625, -0.00433349609375, -0.00811767578125, -0.01483154296875, 0.01513671875, -0.009765625, ...
[ 1250, 4867, 20, 46312, 5303, 678, 237, 35431, 10, 502, 111880, 156253, 26498, 53, 89597, 19, 80493, 31, 257, 366, 3716, 66, 4524, 46487, 1658, 7804, 133, 25617, 96698, 18666, 329, 168390, 8110, 5861, 51, 94005, 4134, 712, 7, 19102, 2563...
[ 0.1368408203125, 0.2449951171875, 0.003753662109375, 0.2445068359375, 0.2198486328125, 0.102294921875, 0.09423828125, 0.225341796875, 0.0210723876953125, 0.10650634765625, 0.1568603515625, 0.149658203125, 0.07379150390625, 0.1065673828125, 0.131103515625, 0.043914794921875, 0.1660156...
embed
3129483_c0
3129483
prolog
0
Title: prolog, a conditional like form Problem title: prolog, a conditional like form Tags: prolog, probability Problem: prolog, a conditional like form well i'm having a hard time working with prolog (gprolog). My problem is this, I've the next predicate: prob(factA,factB,X,first):- X=<50. prob(factA,factB,X,second):-...
prolog, a conditional like form prolog, a conditional like form prolog probability prolog, a conditional like form well i'm having a hard time working with prolog (gprolog). My problem is this, I've the next predicate: that is factA have 50% of probability of occur, factB a 30%, and lastly 20% of non of the facts occur...
[ 0.018310546875, -0.0205078125, 0.0040283203125, 0.0003643035888671875, -0.007659912109375, 0.01263427734375, 0.0087890625, -0.000278472900390625, -0.007293701171875, -0.037841796875, 0.033447265625, 0.028076171875, -0.031494140625, -0.01416015625, 0.01092529296875, 0.015625, 0.016235...
[ 502, 4867, 10, 35431, 289, 1884, 3173, 37242, 2481, 19441, 7941, 1733, 20697, 678, 177, 3454, 2967, 272, 11737, 1653, 2063, 67, 15824, 284, 765, 9071, 111, 74918, 4, 571, 16279, 4568, 12719, 351, 27060, 15549, 959, 1193, 51514, 7477, 18...
[ 0.1903076171875, 0.2486572265625, 0.003814697265625, 0.1876220703125, 0.1396484375, 0.0843505859375, 0.1878662109375, 0.2337646484375, 0.17431640625, 0.008270263671875, 0.05987548828125, 0.0611572265625, 0.0745849609375, 0.0269775390625, 0.026947021484375, 0.149169921875, 0.085632324...
embed
53671973_c2
53671973
prolog
2
15, 3, 6), row(17, 22, 12, 9, 19)), Vars = [1, 24, 14, 2, 25, 16, 21, 5, 8|...]. ?- number_puzzle_(_Square, Vars), Vars = [1,24,14,2,25, 16,21,5,_,_ |_], time(once(labeling([], Vars))). % 385,799,962 inferences, 54.939 CPU in 54.940 seconds (100% CPU, 7022377 Lips) _Square = square(row(1, 24, 14, 2, 25), row(16, 21, 5,...
15, 3, 6), row(17, 22, 12, 9, 19)), Vars = [1, 24, 14, 2, 25, 16, 21, 5, 8|...]. ?- number_puzzle_(_Square, Vars), Vars = [1,24,14,2,25, 16,21,5,_,_ |_], time(once(labeling([], Vars))). % 385,799,962 inferences, 54.939 CPU in 54.940 seconds (100% CPU, 7022377 Lips) _Square = square(row(1, 24, 14, 2, 25), row(16, 21, 5,...
[ -0.0037994384765625, -0.018798828125, 0.00830078125, 0.0242919921875, -0.00445556640625, -0.008544921875, -0.027099609375, -0.00482177734375, 0.01397705078125, -0.04296875, 0.0042724609375, -0.015869140625, 0.0125732421875, 0.017333984375, -0.01055908203125, 0.00131988525390625, -0.0...
[ 423, 4, 138, 35914, 6, 15555, 2489, 24470, 427, 483, 953, 16, 247, 3323, 7, 2203, 68252, 744, 616, 116, 714, 611, 21416, 190, 382, 75606, 5, 705, 9, 14012, 454, 1766, 13894, 133, 94727, 13, 2357, 2592, 304, 2588, 57626, 268, 1733, ...
[ 0.2354736328125, 0.0625, 0.190185546875, 0.2100830078125, 0.0290374755859375, 0.231689453125, 0.159912109375, 0.115234375, 0.09320068359375, 0.130615234375, 0.18798828125, 0.0287628173828125, 0.0290374755859375, 0.266845703125, 0.134765625, 0.1253662109375, 0.013763427734375, 0.188...
embed
74962351_c0
74962351
prolog
0
Title: prolog, checking if all members of a list are unique without built-in predicates Problem title: prolog, checking if all members of a list are unique without built-in predicates Tags: prolog Problem: prolog, checking if all members of a list are unique without built-in predicates I want to write the rule unique(L...
prolog, checking if all members of a list are unique without built-in predicates prolog, checking if all members of a list are unique without built-in predicates prolog Element List in_list prolog, checking if all members of a list are unique without built-in predicates I want to write the rule unique(List) that checks...
[ -0.00014495849609375, 0.01165771484375, 0.0269775390625, 0.004547119140625, -0.0164794921875, 0.000514984130859375, -0.001983642578125, 0.0194091796875, 0.01312255859375, -0.0250244140625, -0.00110626220703125, -0.0133056640625, 0.02197265625, 0.0223388671875, 0.0113525390625, 0.003845...
[ 502, 4867, 175199, 2174, 756, 43032, 5303, 36998, 15490, 88303, 73, 1653, 2063, 48325, 32036, 23, 6562, 33022, 79986, 154663, 12765, 80854, 107003, 32786, 4527, 10869, 54397, 39, 27417, 35978, 882, 133, 20697, 83, 111, 4966, 22027, 18, 4488...
[ 0.157958984375, 0.19873046875, 0.1802978515625, 0.09149169921875, 0.0999755859375, 0.2066650390625, 0.1739501953125, 0.26953125, 0.1029052734375, 0.10089111328125, 0.0377197265625, 0.099853515625, 0.1446533203125, 0.2083740234375, 0.14892578125, 0.0850830078125, 0.183837890625, 0.0...
embed
30383361_c0
30383361
prolog
0
Title: Creating a counter Prolog Problem title: Creating a counter Prolog Tags: prolog Problem: Creating a counter Prolog I'm trying to make a counter out of the following code: contador([], 0,[]). contador([via(A,_,_)|R], Tot,Regiao):- cidade(A,_,_,Reg1),Reg1==Regiao, Tr is Tot + 1, contador(R,Tr,Regiao). Given my lis...
Creating a counter Prolog Creating a counter Prolog prolog Creating Prolog Tot Regiao Reg1 Creating a counter Prolog I'm trying to make a counter out of the following code: Given my list's format and cidade: Why isn't it working? With this list: I'm trying to do the following: My objective is to count the cities that h...
[ -0.01202392578125, -0.010009765625, -0.006195068359375, 0.028076171875, 0.0128173828125, -0.021484375, -0.0159912109375, 0.00927734375, 0.02197265625, -0.060302734375, -0.0194091796875, -0.0007476806640625, 0.017333984375, 0.000499725341796875, 0.00946044921875, -0.006561279296875, 0...
[ 56781, 10, 105416, 1250, 4867, 1916, 502, 13715, 31951, 11, 31, 11678, 418, 31577, 3249, 1810, 25632, 18151, 5303, 9384, 10365, 44084, 56112, 18, 442, 20697, 151814, 54529, 162708, 765, 62, 125379, 7, 284, 237, 171859 ]
[ 0.1285400390625, 0.0648193359375, 0.256103515625, 0.1365966796875, 0.2088623046875, 0.0293121337890625, 0.1007080078125, 0.0877685546875, 0.109619140625, 0.0338134765625, 0.047760009765625, 0.1163330078125, 0.0158233642578125, 0.08380126953125, 0.050689697265625, 0.06494140625, 0.029...
embed
31823086_c0
31823086
prolog
0
Title: Prolog - working out average of every 2 elements in a list Problem title: Prolog - working out average of every 2 elements in a list Tags: prolog, list Problem: Prolog - working out average of every 2 elements in a list I've been working on a Prolog assignment and one of the questions has completely baffled me. ...
Prolog - working out average of every 2 elements in a list Prolog - working out average of every 2 elements in a list prolog list Prolog Tail Ave Prolog - working out average of every 2 elements in a list I've been working on a Prolog assignment and one of the questions has completely baffled me. Question: Define a pre...
[ -0.0019073486328125, -0.0030059814453125, 0.00640869140625, 0.0042724609375, 0.00933837890625, 0.0294189453125, 0.002227783203125, 0.00750732421875, 0.0118408203125, -0.01165771484375, 0.037353515625, -0.00081634521484375, -0.004425048828125, -0.00653076171875, 0.004119873046875, 0.016...
[ 1250, 4867, 20697, 1810, 83080, 11907, 116, 80854, 5303, 502, 1218, 379, 40168, 23, 95486, 17582, 4902, 6259, 262, 64552, 1653, 2063, 67, 606, 170, 284, 272, 866, 29568, 70541, 12638, 148390, 6626, 101935, 339, 70270, 14012, 4568, 124962, ...
[ 0.15673828125, 0.2342529296875, 0.0830078125, 0.1116943359375, 0.247314453125, 0.112548828125, 0.1331787109375, 0.193603515625, 0.1859130859375, 0.091552734375, 0.117919921875, 0.10546875, 0.251708984375, 0.016510009765625, 0.08416748046875, 0.06829833984375, 0.040618896484375, 0.0...
embed
19944969_c0
19944969
prolog
0
Title: Prolog Accumulators. Are they really a &quot;different&quot; concept? Problem title: Prolog Accumulators. Are they really a &quot;different&quot; concept? Tags: accumulator, prolog, recursion, tail-recursion Problem: Prolog Accumulators. Are they really a "different" concept? I am learning Prolog under my Artifi...
Prolog Accumulators. Are they really a &quot;different&quot; concept? Prolog Accumulators. Are they really a &quot;different&quot; concept? accumulator prolog recursion tail-recursion Prolog Accumulators Anew Prolog Accumulators. Are they really a "different" concept? I am learning Prolog under my Artificial Intelligen...
[ 0.0216064453125, 0.02197265625, 0.0103759765625, 0.02197265625, 0.0014495849609375, 0.00653076171875, -0.007110595703125, 0.023681640625, 0.0211181640625, -0.036376953125, 0.0211181640625, 0.006256103515625, 0.0024871826171875, -0.01214599609375, 0.02294921875, -0.00191497802734375, ...
[ 1250, 4867, 29899, 316, 129073, 7, 15901, 1836, 6183, 238778, 23755, 183278, 1290, 502, 195625, 1830, 46741, 48650, 54936, 52080, 231996, 157075, 21488, 134031, 14240, 190, 117615, 30698, 27781, 6626, 18151, 58134, 26040, 77554, 32036, 15490, 2...
[ 0.183349609375, 0.2469482421875, 0.123779296875, 0.2001953125, 0.272705078125, 0.0684814453125, 0.01385498046875, 0.0447998046875, 0.0985107421875, 0.2430419921875, 0.2044677734375, 0.283203125, 0.2001953125, 0.13330078125, 0.1654052734375, 0.043914794921875, 0.193603515625, 0.1022...
embed
50932725_c0
50932725
prolog
0
Title: Two list have 1 element both and show the repetition Problem title: Two list have 1 element both and show the repetition Tags: prolog Problem: Two list have 1 element both and show the repetition I have an exercise today that there was two lists, list1 and list2 ,there will be the result that should calculate ho...
Two list have 1 element both and show the repetition Two list have 1 element both and show the repetition prolog Two list1 list2 Result and_list Head Tail Tail2 List Two list have 1 element both and show the repetition I have an exercise today that there was two lists, list1 and list2 ,there will be the result that sho...
[ 0.00067901611328125, 0.005340576171875, -0.0123291015625, 0.0242919921875, -0.0002269744873046875, 0.01422119140625, 0.000736236572265625, -0.005401611328125, 0.016845703125, -0.01123046875, -0.00872802734375, -0.00897216796875, -0.004302978515625, 0.02294921875, 0.006744384765625, -0....
[ 32964, 5303, 765, 106, 12830, 15044, 7639, 57346, 1363, 502, 4867, 418, 304, 126684, 6562, 44816, 1218, 379, 32036, 81979, 18925, 6626, 136, 16750, 450, 74481, 5941, 45234, 177609, 1295, 541, 45831, 111, 135523, 83, 68252, 206808, 63527, 76...
[ 0.1397705078125, 0.2447509765625, 0.026123046875, 0.1094970703125, 0.193115234375, 0.1136474609375, 0.1339111328125, 0.25439453125, 0.08154296875, 0.132568359375, 0.1610107421875, 0.083984375, 0.1741943359375, 0.163818359375, 0.1510009765625, 0.083984375, 0.048004150390625, 0.03787...
embed
42862178_c0
42862178
prolog
0
Title: Converting a list of Bytes to Integer in Prolog Problem title: Converting a list of Bytes to Integer in Prolog Tags: byte-shifting, prolog Problem: Converting a list of Bytes to Integer in Prolog I'm trying to convert a list of bytes to it's corresponding integer. I would like to bind to the second variable as t...
Converting a list of Bytes to Integer in Prolog Converting a list of Bytes to Integer in Prolog byte-shifting prolog Converting Bytes Integer Prolog bytes_int ByteList IntegerRepresentation BytesList Num Num0 Converting a list of Bytes to Integer in Prolog I'm trying to convert a list of bytes to it's corresponding int...
[ -0.0203857421875, -0.005035400390625, 0.015869140625, 0.0081787109375, -0.0031890869140625, 0.01544189453125, -0.024658203125, -0.002899169921875, 0.01239013671875, 0.0030975341796875, 0.0184326171875, 0.010498046875, -0.01055908203125, 0.0240478515625, 0.005889892578125, -0.0078735351...
[ 1657, 814, 1916, 5303, 3311, 1636, 47, 44401, 23, 1250, 4867, 390, 67, 3767, 2480, 502, 4288, 154663, 55247, 52782, 2389, 31577, 96760, 42518, 892, 1505, 1884, 68557, 17932, 77336, 2448, 1810, 142458, 85526, 26785, 34292, 959, 128239, 4527,...
[ 0.02935791015625, 0.134765625, 0.020172119140625, 0.1778564453125, 0.16015625, 0.1322021484375, 0.0897216796875, 0.24462890625, 0.031494140625, 0.15576171875, 0.2301025390625, 0.1317138671875, 0.07708740234375, 0.04718017578125, 0.07012939453125, 0.1253662109375, 0.135986328125, 0....
embed
46151226_c0
46151226
prolog
0
Title: n-queens solution not working in Prolog Problem title: n-queens solution not working in Prolog Tags: clpfd, n-queens, prolog Problem: n-queens solution not working in Prolog I am trying to run following code from N-Queens Problem‍​..How far can we go? to find solutions to n-queens problem : generate([],_). gener...
n-queens solution not working in Prolog n-queens solution not working in Prolog clpfd n-queens prolog Prolog Syntax n-queens solution not working in Prolog I am trying to run following code from N-Queens Problem‍​..How far can we go? to find solutions to n-queens problem : I have swi-prolog installed on Debian-9 (stabl...
[ 0.0181884765625, 0.01019287109375, 0.025146484375, 0.01019287109375, -0.004638671875, -0.01031494140625, -0.0035858154296875, -0.0108642578125, -0.010009765625, -0.017822265625, -0.0128173828125, -0.0181884765625, -0.0029449462890625, -0.01202392578125, 0.007171630859375, -0.0100708007...
[ 653, 9, 944, 1755, 29806, 959, 20697, 23, 1250, 4867, 33139, 39557, 71, 502, 19010, 86531, 31577, 11675, 25632, 18151, 541, 41732, 15649, 2060, 831, 738, 51347, 2967, 91, 2452, 3454, 20600, 262, 62806, 15205, 22819, 29908, 51042, 36917, 7...
[ 0.181640625, 0.055084228515625, 0.20263671875, 0.2039794921875, 0.1654052734375, 0.08367919921875, 0.1307373046875, 0.0811767578125, 0.1534423828125, 0.2315673828125, 0.025543212890625, 0.0209808349609375, 0.03350830078125, 0.126220703125, 0.06842041015625, 0.0057373046875, 0.0030212...
embed
65332359_c1
65332359
prolog
1
(T), write(', '), print_tokens(N). main :- % tokenize(['(', 'f', 'o', 'o', '(', 'b', 'a', 'r', ')', 'b', 'a', 'z', ')'], '', Tokens), tokenize(['(', 'f', 'o', 'o', ')'], '', Tokens), print_tokens(Tokens). When running the result, below, like this: gprolog --consult-file lisp_parser.pl it just tells me no . I traced mai...
(T), write(', '), print_tokens(N). main :- % tokenize(['(', 'f', 'o', 'o', '(', 'b', 'a', 'r', ')', 'b', 'a', 'z', ')'], '', Tokens), tokenize(['(', 'f', 'o', 'o', ')'], '', Tokens), print_tokens(Tokens). When running the result, below, like this: gprolog --consult-file lisp_parser.pl it just tells me no . I traced mai...
[ 0.0004138946533203125, 0.01446533203125, 0.00775146484375, 0.0145263671875, -0.034423828125, 0.01141357421875, -0.004791259765625, -0.01348876953125, -0.006256103515625, 0.0003490447998046875, 0.01904296875, -0.01190185546875, -0.001220703125, -0.0198974609375, 0.0133056640625, -0.0209...
[ 618, 33022, 25, 28412, 6448, 1755, 839, 5201, 1745, 47, 1098, 20650, 420, 31, 275, 169, 5106, 717, 84694, 7763, 51042, 16750, 35064, 3454, 4867, 147834, 29822, 400, 7008, 2500, 2189, 2424, 14192, 110, 144851, 177261, 959, 28219, 15400, 35...
[ 0.07550048828125, 0.0736083984375, 0.01165771484375, 0.1358642578125, 0.11865234375, 0.08544921875, 0.034942626953125, 0.0947265625, 0.079833984375, 0.1300048828125, 0.181396484375, 0.17724609375, 0.0977783203125, 0.1046142578125, 0.020050048828125, 0.0179443359375, 0.051544189453125...
embed
42331015_c0
42331015
prolog
0
Title: Why can&#x27;t I assert the following rule in SWI-Prolog? Problem title: Why can&#x27;t I assert the following rule in SWI-Prolog? Tags: prolog Problem: Why can't I assert the following rule in SWI-Prolog? I'm trying to define a rule to convert natural numbers to integers as follows : ?- assert(nat_to_int(0, 0))...
Why can&#x27;t I assert the following rule in SWI-Prolog? Why can&#x27;t I assert the following rule in SWI-Prolog? prolog Why SWI-Prolog nat_to_int ERROR Uninstantiated _5706 _5712 _5772 _5776 _5778 _5782 _5788 Why can't I assert the following rule in SWI-Prolog? I'm trying to define a rule to convert natural numbers ...
[ 0.0015411376953125, 0.0234375, 0.0030364990234375, 0.0194091796875, -0.00732421875, 0.0047607421875, 0.01055908203125, 0.022216796875, 0.01611328125, -0.00897216796875, 0.0223388671875, -0.0087890625, -0.014404296875, 0.01275634765625, 0.037109375, 0.0213623046875, 0.033447265625, ...
[ 44084, 831, 3768, 18, 237, 33657, 25632, 79986, 159, 38969, 10752, 4867, 502, 24, 188, 4288, 151206, 24638, 992, 143034, 14, 27686, 12243, 9016, 1530, 165467, 11835, 758, 170702, 183282, 304, 146406, 9, 61924, 96760, 6083, 101935, 47, 892, ...
[ 0.093017578125, 0.1087646484375, 0.01300048828125, 0.12255859375, 0.0433349609375, 0.208984375, 0.071044921875, 0.1751708984375, 0.06341552734375, 0.2130126953125, 0.150146484375, 0.192626953125, 0.1033935546875, 0.1195068359375, 0.150146484375, 0.15087890625, 0.1468505859375, 0.05...
embed
34068914_c0
34068914
prolog
0
Title: subtree program in Prolog Problem title: subtree program in Prolog Tags: prolog Problem: subtree program in Prolog I'm trying to write a program for subtree(S,T) where S is a subtree of T . This is my program, unfortunately it doesn't work and I don't know why. I'm very much a newbie in Prolog, so be gentle plea...
subtree program in Prolog subtree program in Prolog prolog Prolog S_left S_right X_left X_right subtree program in Prolog I'm trying to write a program for subtree(S,T) where S is a subtree of T . This is my program, unfortunately it doesn't work and I don't know why. I'm very much a newbie in Prolog, so be gentle plea...
[ 0.023193359375, 0.0169677734375, 0.004730224609375, -0.010009765625, 0.004638671875, 0.007293701171875, -0.0162353515625, -0.003753662109375, -0.001922607421875, -0.0203857421875, -0.0064697265625, -0.0185546875, -0.01336669921875, 0.0050048828125, 0.01171875, 0.00970458984375, 0.029...
[ 1614, 62600, 1528, 23, 1250, 4867, 502, 159, 133, 2480, 54969, 1193, 31577, 33022, 294, 618, 83, 384, 104272, 22027, 18, 4488, 3714, 15400, 9014, 6626, 91736, 90791, 2921, 37457, 2407, 53201, 4568, 134598, 7413, 90, 54, 959, 47, 11782, ...
[ 0.20068359375, 0.2783203125, 0.197021484375, 0.037841796875, 0.1514892578125, 0.2353515625, 0.07196044921875, 0.1417236328125, 0.003143310546875, 0.0258636474609375, 0.0953369140625, 0.069580078125, 0.028594970703125, 0.07257080078125, 0.06292724609375, 0.08642578125, 0.0256805419921...
embed
37469017_c0
37469017
prolog
0
Title: Prolog - How to limit variable list length Problem title: Prolog - How to limit variable list length Tags: prolog, prolog-dif, list Problem: Prolog - How to limit variable list length I am having trouble generating all lists that meet certain criteria. city(new_york, 47). city(chicago, 100). all_unique([]). all_...
Prolog - How to limit variable list length Prolog - How to limit variable list length prolog prolog-dif list Prolog How new_york all_unique Head Tail ERROR Out Prolog - How to limit variable list length I am having trouble generating all lists that meet certain criteria. When I issue the query cities(L) , I want it to ...
[ -0.0081787109375, 0.018798828125, 0.01470947265625, 0.00055694580078125, 0.001983642578125, -0.00811767578125, -0.015380859375, 0.009765625, 0.01416015625, -0.037841796875, 0.0027618408203125, -0.0162353515625, 0.013916015625, 0.0032196044921875, 0.014892578125, -0.0005950927734375, ...
[ 1250, 4867, 11249, 17475, 77336, 5303, 140909, 502, 428, 420, 3525, 13437, 92, 756, 34, 45602, 44816, 1218, 379, 151206, 24638, 13538, 63134, 12663, 23356, 24233, 55738, 31089, 41, 1294, 162708, 866, 3444, 139392, 678, 38132, 116, 110, 5734...
[ 0.156494140625, 0.243408203125, 0.0574951171875, 0.25537109375, 0.2666015625, 0.1966552734375, 0.1773681640625, 0.0889892578125, 0.02294921875, 0.076416015625, 0.0567626953125, 0.11376953125, 0.0848388671875, 0.074462890625, 0.09136962890625, 0.18017578125, 0.1376953125, 0.12548828...
embed
56467530_c0
56467530
prolog
0
Title: Best way to print array/list in prolog without commas, brackets, or spacing? Problem title: Best way to print array/list in prolog without commas, brackets, or spacing? Tags: output, prolog, swi-prolog, list, arrays Problem: Best way to print array/list in prolog without commas, brackets, or spacing? So I am jus...
Best way to print array/list in prolog without commas, brackets, or spacing? Best way to print array/list in prolog without commas, brackets, or spacing? output prolog swi-prolog list arrays Best X-1 Best way to print array/list in prolog without commas, brackets, or spacing? So I am just getting started and fooling ar...
[ -0.015869140625, 0.014892578125, -0.0022430419921875, 0.00127410888671875, -0.02197265625, 0.01336669921875, 0.00274658203125, 0.000942230224609375, 0.006317138671875, 0.0179443359375, 0.02001953125, -0.0194091796875, -0.01263427734375, -0.00762939453125, -0.006591796875, 0.00723266601...
[ 11345, 3917, 28412, 10298, 53, 6562, 23, 502, 4867, 15490, 375, 1510, 1620, 27853, 5623, 21896, 140992, 2452, 3454, 5303, 1193, 5759, 64, 150863, 101935, 3444, 49119, 59801, 37842, 33022, 1542, 32166, 35662, 88996, 38246, 36272, 55300, 28282,...
[ 0.0628662109375, 0.0604248046875, 0.197021484375, 0.1734619140625, 0.123291015625, 0.205078125, 0.060333251953125, 0.170654296875, 0.2376708984375, 0.113525390625, 0.1199951171875, 0.109130859375, 0.1121826171875, 0.1173095703125, 0.1513671875, 0.09527587890625, 0.083251953125, 0.0...
embed
66878954_c0
66878954
prolog
0
Title: How to filter a list in Prolog with multiple conditions? Problem title: How to filter a list in Prolog with multiple conditions? Tags: prolog, filter Problem: How to filter a list in Prolog with multiple conditions? I can filter a list based on 1 condition with the following steps: building the list with findall...
How to filter a list in Prolog with multiple conditions? How to filter a list in Prolog with multiple conditions? prolog filter goal How Prolog Tom ReturnList How to filter a list in Prolog with multiple conditions? I can filter a list based on 1 condition with the following steps: building the list with findall using ...
[ 0.006561279296875, 0.014892578125, -0.007171630859375, 0.01708984375, -0.00396728515625, 0.005218505859375, -0.0137939453125, 0.006805419921875, 0.007293701171875, -0.053955078125, 0.0203857421875, -0.014404296875, -0.004974365234375, 0.01422119140625, -0.000614166259765625, 0.01458740...
[ 11249, 47, 46312, 10, 5303, 23, 1250, 4867, 678, 48716, 27289, 502, 69236, 8352, 173340, 154663, 831, 35509, 106, 35431, 98441, 33976, 7413, 5584, 26698, 54015, 80854, 15072, 3642, 172337, 14012, 69723, 1653, 2063, 152431, 43701, 27781, 45367...
[ 0.0721435546875, 0.0168914794921875, 0.2685546875, 0.027557373046875, 0.2269287109375, 0.05950927734375, 0.16064453125, 0.241943359375, 0.1099853515625, 0.2176513671875, 0.236083984375, 0.10736083984375, 0.1275634765625, 0.120361328125, 0.154052734375, 0.1549072265625, 0.017761230468...
embed
15755986_c0
15755986
prolog
0
Title: correct SWI_HOME_DIR value? Problem title: correct SWI_HOME_DIR value? Tags: prolog, swi-prolog Problem: correct SWI_HOME_DIR value? I encountered error: "FATAL ERROR: Could not find system resources" I then added the following code: putenv("SWI_HOME_DIR=/usr/lib/swi-prolog"); I ran into another problem of: "$c_...
correct SWI_HOME_DIR value? correct SWI_HOME_DIR value? prolog swi-prolog SWI_HOME_DIR FATAL ERROR Could c_call_prolog...Undefined Ubuntu mortal.pl mortal.c correct SWI_HOME_DIR value? I encountered error: I then added the following code: I ran into another problem of: (More details here) I ran the below command on Ubu...
[ 0.01611328125, 0.004974365234375, -0.00872802734375, -0.00055694580078125, -0.0308837890625, -0.00019073486328125, 0.013671875, 0.00823974609375, 0.0101318359375, -0.038330078125, 0.0157470703125, 0.02294921875, -0.021484375, -0.0018157958984375, 0.019287109375, -0.006683349609375, 0...
[ 26785, 159, 38969, 841, 91245, 123237, 34292, 454, 502, 4867, 91, 2452, 3454, 15491, 30487, 151206, 191147, 501, 85763, 1067, 5983, 116890, 67573, 2424, 238, 18499, 49814, 18151, 2967, 35064, 75101, 4068, 1530, 8781, 313, 1528, 3034, 3996, ...
[ 0.191650390625, 0.04901123046875, 0.23095703125, 0.080810546875, 0.12744140625, 0.18017578125, 0.1708984375, 0.029876708984375, 0.1424560546875, 0.22265625, 0.044036865234375, 0.2030029296875, 0.159423828125, 0.1251220703125, 0.08245849609375, 0.114501953125, 0.071044921875, 0.1029...
embed
33905846_c0
33905846
prolog
0
Title: Prolog taking inverse of a predicate Problem title: Prolog taking inverse of a predicate Tags: prolog Problem: Prolog taking inverse of a predicate I got a database that looks like hasChild(person1, person2). hasChild(person1, person3). hasChild(person4, person5). Which means that (for example) person1 has child...
Prolog taking inverse of a predicate Prolog taking inverse of a predicate prolog Prolog person1 person2 person3 person4 person5 Prolog taking inverse of a predicate I got a database that looks like Which means that (for example) person1 has child named person2. I then create a predicate that identifies if the person is...
[ 0.0084228515625, 0.006988525390625, 0.0205078125, 0.006011962890625, -0.02197265625, 0.007659912109375, 0.005859375, 0.005645751953125, -0.007049560546875, -0.04541015625, 0.0005950927734375, 0.0021820068359375, 0.00390625, 0.029296875, 0.0040283203125, 0.0067138671875, 0.01623535156...
[ 1250, 4867, 35971, 23, 37676, 111, 1653, 2063, 502, 3445, 304, 363, 617, 758, 67, 63399, 33342, 1884, 1556, 29041, 24, 5442, 28282, 42485, 49129, 2499, 20020, 9393, 284, 30646, 29568, 38937, 22027, 18, 765, 116, 17582, 7722, 209303, 5646,...
[ 0.1820068359375, 0.23583984375, 0.0689697265625, 0.128173828125, 0.259521484375, 0.06591796875, 0.18017578125, 0.2130126953125, 0.1456298828125, 0.093017578125, 0.00848388671875, 0.04034423828125, 0.0474853515625, 0.06512451171875, 0.08197021484375, 0.1595458984375, 0.068603515625, ...
embed
22626196_c0
22626196
prolog
0
Title: Solving a specific loop Problem title: Solving a specific loop Tags: prolog Problem: Solving a specific loop near(a1,b1). near(b1,c1). near(c1,d1). near(d1,e1). near(e1,f1). near(f1,g1). near(a1,a2). near(a2,a3). near(a3,a4). near(a4,a5). near(a5,a6). near(a6,a7). near(a7,a8). near(a8,a9). near(b1,b2). near(b2,b...
Solving a specific loop Solving a specific loop prolog Solving Path_List Route1 Solving a specific loop This is finding way maze. I want print out like this and showing other 4 Routes. I think using cut? or Backtracking. But i can't touch this code..
[ 0.029052734375, -0.0010528564453125, 0.00238037109375, 0.0264892578125, -0.0024261474609375, 0.0074462890625, -0.0208740234375, 0.01214599609375, 0.007110595703125, -0.0400390625, -0.007537841796875, -0.0091552734375, -0.00286865234375, 0.0169677734375, 0.0302734375, -0.001754760742187...
[ 6678, 6496, 29458, 40956, 502, 4867, 108421, 154663, 106015, 418, 3293, 90791, 3917, 291, 731, 3444, 28412, 1810, 1884, 903, 141377, 3789, 201, 5351, 17368, 59226, 32, 26828, 125728, 214, 831, 18, 23996, 18151 ]
[ 0.1612548828125, 0.0833740234375, 0.19677734375, 0.21240234375, 0.1527099609375, 0.1705322265625, 0.16259765625, 0.1884765625, 0.2376708984375, 0.112060546875, 0.033355712890625, 0.1317138671875, 0.1427001953125, 0.10284423828125, 0.1695556640625, 0.0750732421875, 0.159423828125, 0...
embed
74386752_c0
74386752
prolog
0
Title: Negation by Failure and Logical Monotonicity in Prolog? Problem title: Negation by Failure and Logical Monotonicity in Prolog? Tags: logic, prolog Problem: Negation by Failure and Logical Monotonicity in Prolog? I am learning prolog. It seems to me that prolog's rules (relations and simple facts) are "positive" ...
Negation by Failure and Logical Monotonicity in Prolog? Negation by Failure and Logical Monotonicity in Prolog? logic prolog Negation Failure Logical Monotonicity Prolog Negation by Failure and Logical Monotonicity in Prolog? I am learning prolog. It seems to me that prolog's rules (relations and simple facts) are "pos...
[ 0.00836181640625, 0.0264892578125, 0.0166015625, 0.0242919921875, 0.01092529296875, 0.0115966796875, 0.00860595703125, -0.008544921875, -0.001495361328125, -0.0020599365234375, -0.007049560546875, 0.00311279296875, -0.0283203125, -0.01263427734375, 0.01214599609375, 0.01202392578125, ...
[ 799, 125682, 390, 190355, 3408, 13146, 21533, 77879, 27706, 60089, 23, 1250, 4867, 62775, 502, 52080, 91736, 25653, 8781, 15824, 67890, 5154, 2367, 707, 831, 29568, 62, 59725, 3525, 47, 1528, 4734, 15190, 51359, 3331, 18, 35839, 182902, 177...
[ 0.166748046875, 0.1544189453125, 0.146240234375, 0.1802978515625, 0.079345703125, 0.16162109375, 0.0294647216796875, 0.1314697265625, 0.2139892578125, 0.087890625, 0.030029296875, 0.165283203125, 0.23193359375, 0.230224609375, 0.16162109375, 0.01129150390625, 0.1683349609375, 0.116...
embed
43140801_c0
43140801
prolog
0
Title: Prolog answers Argument = Argument, instead of answer No Problem title: Prolog answers Argument = Argument, instead of answer No Tags: arguments, list, prolog, undefined Problem: Prolog answers Argument = Argument, instead of answer No How can I make prolog answer No , if search_answer didn't find an answer , an...
Prolog answers Argument = Argument, instead of answer No Prolog answers Argument = Argument, instead of answer No arguments list prolog undefined Prolog Argument found_list search_answer _496 is_list liar_detector found_answer Prolog answers Argument = Argument, instead of answer No How can I make prolog answer No , if...
[ -0.0142822265625, -0.0032958984375, 0.009033203125, -0.0147705078125, -0.03271484375, 0.019287109375, 0.0021209716796875, -0.00139617919921875, 0.00171661376953125, -0.01336669921875, -0.004302978515625, -0.0244140625, -0.0125732421875, 0.023681640625, 0.006072998046875, -0.01416015625...
[ 1250, 4867, 35166, 112140, 2203, 64457, 111, 438, 10750, 5303, 502, 9232, 5983, 14037, 6562, 33938, 10133, 186410, 83, 400, 147, 112, 67, 18770, 831, 3249, 2174, 15935, 18, 7413, 32635, 678, 339, 130373, 6488, 1653, 2063, 30646, 62, 4092,...
[ 0.1766357421875, 0.2481689453125, 0.2017822265625, 0.26220703125, 0.03387451171875, 0.1370849609375, 0.00482177734375, 0.253173828125, 0.2064208984375, 0.1378173828125, 0.156005859375, 0.0302276611328125, 0.097900390625, 0.131591796875, 0.163818359375, 0.1556396484375, 0.154907226562...
embed
48847020_c1
48847020
prolog
1
working'), is_true('Power switch is working'), is_true('Plug is working'), is_true('Cord is not working'). mat_issue(cord) :- is_true('Bulb is working'), is_true('Power switch is working'), is_true('Plug is working'), is_true('Cord is working'), is_true('Outlet is not working. Replace outlet.'). is_true(X) :- remember...
working'), is_true('Power switch is working'), is_true('Plug is working'), is_true('Cord is not working'). mat_issue(cord) :- is_true('Bulb is working'), is_true('Power switch is working'), is_true('Plug is working'), is_true('Cord is working'), is_true('Outlet is not working. Replace outlet.'). is_true(X) :- remember...
[ 0.02392578125, -0.00433349609375, 0.0218505859375, 0.033935546875, 0.001129150390625, 0.0091552734375, -0.01153564453125, -0.00098419189453125, 0.007049560546875, -0.0230712890625, 0.00927734375, 0.01458740234375, -0.01153564453125, -0.0107421875, 0.000904083251953125, -0.0034484863281...
[ 20697, 83, 9774, 105022, 101089, 247, 35159, 441, 6651, 959, 194, 2589, 454, 174404, 32271, 15772, 7235, 48543, 79858, 1974, 853, 23935, 148053, 1542, 37629, 63736, 26458, 242554, 12477, 14537, 45215, 195136, 33022, 12301, 91693, 65918, 94399, ...
[ 0.224609375, 0.1063232421875, 0.1988525390625, 0.2059326171875, 0.2314453125, 0.003875732421875, 0.1842041015625, 0.0266571044921875, 0.1787109375, 0.1190185546875, 0.0084228515625, 0.18212890625, 0.04296875, 0.2298583984375, 0.1998291015625, 0.052764892578125, 0.06988525390625, 0....
embed
35072478_c0
35072478
prolog
0
Title: Prolog &quot;filter&quot; a list Problem title: Prolog &quot;filter&quot; a list Tags: filter, list, prolog Problem: Prolog "filter" a list I am trying to solve an exercise for my school in which I am asked to make a function called filter(+Lin,+Min,+Max,-Lout) which is supposed to modify Lin(List) so that Lout(...
Prolog &quot;filter&quot; a list Prolog &quot;filter&quot; a list filter list prolog Prolog MIN MAX LOUT LIST Prolog "filter" a list I am trying to solve an exercise for my school in which I am asked to make a function called filter(+Lin,+Min,+Max,-Lout) which is supposed to modify Lin(List) so that Lout(List) only has...
[ 0.0003204345703125, 0.020263671875, 0.011962890625, -0.01373291015625, -0.005584716796875, 0.0152587890625, -0.006500244140625, -0.0019989013671875, 0.0235595703125, -0.00101470947265625, -0.0108642578125, -0.00823974609375, -0.034423828125, -0.000020503997802734375, 0.0296630859375, -...
[ 1250, 4867, 120337, 10, 5303, 46312, 502, 69048, 85378, 339, 52001, 195977, 31577, 86869, 81979, 10696, 37170, 32354, 1328, 866, 73, 59076, 71346, 6056, 134598, 2811, 40383, 25497, 154663, 42225, 18, 4734, 1556, 101935, 28032, 17475, 5423, 42...
[ 0.197265625, 0.2724609375, 0.33349609375, 0.0859375, 0.231689453125, 0.2861328125, 0.1719970703125, 0.17919921875, 0.1552734375, 0.046905517578125, 0.183349609375, 0.1934814453125, 0.0404052734375, 0.0986328125, 0.1134033203125, 0.09942626953125, 0.051116943359375, 0.180908203125, ...
embed
13782324_c0
13782324
prolog
0
Title: DCG for idiomatic phrase preference Problem title: DCG for idiomatic phrase preference Tags: prolog, iso-prolog, dcg Problem: DCG for idiomatic phrase preference I have a manually made DCG rule to select idiomatic phrases over single words. The DCG rule reads as follows: seq(cons(X,Y), I, O) :- noun(X, I, H), se...
DCG for idiomatic phrase preference DCG for idiomatic phrase preference prolog iso-prolog dcg DCG DCG for idiomatic phrase preference I have a manually made DCG rule to select idiomatic phrases over single words. The DCG rule reads as follows: The first clause is manually made, since (:-)/2 is used instead of (-->)/2 ....
[ 0.00021457672119140625, 0.0052490234375, -0.00823974609375, 0.02734375, 0.009765625, 0.006256103515625, 0.0040283203125, -0.002960205078125, 0.01708984375, -0.037841796875, 0.00185394287109375, 0.01275634765625, -0.0159912109375, -0.002777099609375, 0.025390625, 0.023681640625, -0.01...
[ 391, 56367, 100, 49666, 9523, 113860, 205537, 502, 4867, 13882, 3454, 104, 238, 177, 23009, 7228, 79986, 36849, 645, 11001, 34153, 12301, 28960, 5117, 70731, 13, 16792, 53483, 12477, 11814, 64457, 152745, 4171, 87, 91995, 903, 390, 4527, 55...
[ 0.1396484375, 0.268310546875, 0.0775146484375, 0.18310546875, 0.123046875, 0.2130126953125, 0.22998046875, 0.12109375, 0.1920166015625, 0.1370849609375, 0.112548828125, 0.066650390625, 0.06317138671875, 0.1085205078125, 0.1846923828125, 0.1256103515625, 0.163330078125, 0.1457519531...
embed
12958897_c0
12958897
prolog
0
Title: Pattern matching types in Prolog Problem title: Pattern matching types in Prolog Tags: prolog, pattern-matching Problem: Pattern matching types in Prolog Let's say I have a list looking like this: List=[alpha(1,2),beta(3,4),gamma(4,1)] Ok, so I want to make a certain pattern matching here... I know I can do: Try...
Pattern matching types in Prolog Pattern matching types in Prolog prolog pattern-matching Pattern Prolog List Try Type Value1 Value2 Input Pattern matching types in Prolog Let's say I have a list looking like this: Ok, so I want to make a certain pattern matching here... I know I can do: But I would like to do for exam...
[ 0.005035400390625, 0.0201416015625, 0.0019989013671875, 0.0113525390625, -0.0130615234375, 0.0037689208984375, -0.0218505859375, 0.00677490234375, 0.002532958984375, -0.027587890625, 0.0140380859375, -0.00927734375, -0.01416015625, -0.02294921875, 0.0162353515625, 0.006256103515625, ...
[ 9876, 22766, 14858, 214, 52895, 1250, 4867, 23, 502, 103510, 98753, 32036, 40858, 60457, 190060, 418, 304, 360, 5303, 16487, 1884, 3444, 3249, 3688, 3714, 831, 27781, 27875, 2053, 1653, 2063, 4358, 10644, 11675, 10932 ]
[ 0.148193359375, 0.1165771484375, 0.2115478515625, 0.0718994140625, 0.1881103515625, 0.1514892578125, 0.1988525390625, 0.0147705078125, 0.1220703125, 0.2100830078125, 0.207763671875, 0.08758544921875, 0.028045654296875, 0.158935546875, 0.1162109375, 0.004486083984375, 0.00814819335937...
embed