Questions tagged [Prolog] (30)

0
answer

How to solve the problem?

Please help me with a solution. I am suffering for a long time, does not work. Need to solve the problem with the prologue.
marlon asked April 18th 20 at 12:47
1
answer

Why gives Syntax error: Operator expected?

The essence of the job: to Write the definitions of individual items of furniture, including their name and value, and identifying options for acquisition of furniture, taking into account limiting its value. To build the queries that allow to choose the set, the cost of which does not exceed the predetermined level. stul(...
lizeth.Ankundi asked April 8th 20 at 09:18
1
answer

Turboprop as easy to work?

Hi all, there is code TurboPage, you need to compile it and make a couple of screenshots. What modern means can it be done? without dancing with a tambourine through DOSBox etc
Esther.Cron asked April 4th 20 at 01:20
1
answer

How to realize the ratio of any two representatives,located in different parts of the database?

Task:to query the database (DB), which issues a parent / child relationship for any two members of the genus (i.e., it turns out, who is an ancestor, and who is a descendant).Database:parent('Rurik', 'Igor'). parent('Igor', 'Olga'). parent('Olga', 'Svyatoslav Igorevich'). parent('Svyatoslav Igorevich', 'Yaropolk'). parent('...
Rachae asked April 1st 20 at 17:09
1
answer

How to solve the task of selecting terms for the amount needed for Prolog?

Need to calculate the number of ways you can pick up an amount equal to 18 using the following components: 10,6,1. Thus the same components in a different order - different ways (e.g., 10+6+1+1 and 10+1+6+1).
Lexus asked March 31st 20 at 20:36
0
answer

How to solve errors when you Personal check Visual Prolog 7.5?

Studying in one of the far Eastern technical Universities. Using Visual Prolog 7.5 [while a year ago, 5.2]. When you register the product public version Personal had problems: after filling out the form on the website on the mail comes key 9 version, and it is not suitable for activation of 7.5. I e-mailed (sales@visual-p...
Noemi.Maggio9 asked March 18th 20 at 21:11
0
answer

How to fix the problem about wolf, goat and cabbage in prolog?

There is a known problem: a farmer has a wolf, goat and cabbage. They are all located on the left Bank of the river. Need to transport this trio to the right Bank, but the boat can fit one thing, wolf, goat or cabbage. It is impossible to leave on one side the wolf with the goat and the goat with the cabbage. Solution take...
Sean13 asked March 16th 20 at 12:37
1
answer

Is it possible to compare positions of elements in the two lists?

Hello, please help in the implementation of the algorithm for comparison of the positions of the elements in the two lists. The first list is a sequence of arbitrary elements. The second list is a sequence of elements from the first list. Need to write a predicate that will return true if the elements of the second list hav...
lamont.Kertzmann asked March 15th 20 at 22:19
1
answer

Magic squares in Prolog?

A question for prologista if there are any. I two years ago I tried software to look for "magic squares", like this: P O L O S O C K A L O T O K ON AND W A K A T In the Prologue it should be, the idea is trivial. To record facts of the form: word('P','O','L','O','Z'). And to make a request: word(A1,A2,A3,A4,A5),word(A2,B1,...
shakira_Johnson58 asked October 3rd 19 at 04:03
1
answer

Is it wise to use Prolog in the development of expert system?

Hello. Briefly describe the essence of what I have to work with. Write a program that monitors SQL queries to different databases and provides tips on how to optimize queries and database structures. I'm at the beginning, so gather information and try to come up with an algorithm. Question: Suppose I'll share the program pa...
eino.Zemlak asked September 30th 19 at 17:53