Questions tagged as 'prolog'

0
answers

Labyrinth in prolog

I'm a big programming enthusiast and I have a little problem that I can not think of anymore. The situation is this: I set out to make a program in Prolog that is capable of getting out of a maze. I have researched a lot on the internet,...
asked by 25.10.2017 / 02:59
0
answers

Interface between python and prolog

Good morning. I need to make the communication between prolog and python. I ended up finding an api pySwip that interfaces between these two technologies, but I can not make it work because prolog needs to be installed as a shared library. I alr...
asked by 17.07.2016 / 16:01
0
answers

How to interconnect prolog with C #

I wanted to know how to create a knowledge base in prolog and use it in a interface created in c# or java , create new clauses via interface.     
asked by 30.05.2015 / 14:24
1
answer

Prolog related error on a .xhtml page using NetBeans

Is there any relationship between .xhtml and prolog pages? Or the compilation of pages and prolog in NetBeans? Using NetBeans I get a compilation error: Icannotunderstandtheconnectionbetweenathing(.xhtml,JSF)andProlog.DoestheIDEuseprologa...
asked by 24.08.2015 / 12:51
1
answer

prolog recurrence problem

How to solve this? I'm trying to make a program that gets a path and translates in the following directions (up (0), right (90), left (270), down (180)). The predicate vizinha of the Dir one of the directions (0,90,180,270), exampl...
asked by 08.11.2016 / 00:48
1
answer

What are free and bound variables in Prolog?

What is defined as a free or bound variable. I gave a little research, but I could not understand the mathematical concept very well and differentiate them. If possible, explain with examples defined in Prolog showing when a variable is said...
asked by 19.12.2015 / 06:44
1
answer

Manipulate list and add list items in Prolog

I'm a beginner in Prolog and I have questions about the list manipulation and the sum of your items. I have a historico(RA,[i1,i2,i3,...,in]) predicate where ra is the Academic Record of a student and each i is an item, w...
asked by 23.06.2015 / 15:44
1
answer

How to represent an array in Prolog?

I'm doing a work in Prolog that basically consists of a search problem, there is a scenario in a two-dimensional environment and one must trace the path that a character must follow to reach the other. There are some obstacles and rules but my q...
asked by 23.10.2018 / 02:06
1
answer

Deep Search with Prolog - how to limit depth?

I'm implementing an in-depth search on graphs in Prolog, I already have the following: %arestas: edge(c4,b4). edge(b4,b3). edge(b3,a3). edge(b3,c3). %determina que o grafo é nao direcionado edge(V1, V2) :- edge(V2, V1). %busca em profundida...
asked by 25.10.2018 / 21:02
1
answer

Insert an element at the beginning and end of a list in prolog

I want to implement a prolog program that receives an L list, an X number and a Y number, and insert X at the beginning of the list and Y at the end of the list (I wanted a way without using the SWI-prolog module lists )     
asked by 17.12.2016 / 16:20