Below is the given program to print if a list is palindrome or not but I am not able to use condition L1=L & L1<>L for printing "List is Pal ...
i'm pretty new to prolog and now only the very basics and i ran into a problem i need to write a statement line this: <cond.1> and (<cond.2& ...
I'm trying to understand why am I getting the result that I am. Lets say that this is the code and result: Sorry if this is trivial, but there isn' ...
I'm quite new in Prolog. I'm trying to find the nth term and sum of a Fibonacci Series. However while compiling in Turbo Prolog I'm getting 420 PR ...
I am trying to translate a simple Turbo Prolog problem to Visual Prolog 7.1 The original Turbo Prolog code is the following. And its resulting lis ...
How do I convert a string to Upper and to Lower case in Turbo Prolog. string_upper and string_lower function is for SWI Prolog, I found something li ...
Trying to solve the puzzle task with prolog and got some problems. So, I've tried to increase stack size in setup and run program again. But it cau ...
Have a list of users. Need to enter a character and find all users whose name starts with this character. !!! The following tasks embedded predicates ...
Here I want to make a prolog implementation that will generate the list of permutations of n,n+1,...2*n-1, having the absolute difference between 2 co ...
So my problem sounds like this: Given a list of integer numbers, generate the list of permutations with the property that the absolute value of the di ...
This code shows all the combinations of elements of a list. How should I modify it to show the arrangements. I have no ideas arrangements combin ...
Hi does anyone know other implementation to compute X at power N in Prolog beside this one: ...
Hello can anyone help me compute the sum of the first n numbers. For example n=4 => sum = 10. So far I've wrote this This one works but I need a ...
Problem statement: You're given a list containing integers and lists of integers. You must remove from each sublist, the 1st, 2n, 4th, 8th.. etc, elem ...
Hi I have to solve a problem in Prolog, that sounds like this: deletes all the sublists of a list that are increasing. For example the list [1,[2],[3, ...
I have to solve as a homework the following problem in turbo prolog: "Determine the product of a number represented as digits in a list to a given dig ...
In the code below, i'm getting error in sister function that "Illegal character" in ** Blockquote Person \= P1** (\= is for not equal to) B ...
Just started programming in Prolog. I wrote a couple of clauses. But when i am trying to ask question It is showing Free variable in expression ...
Doing a small example, I want to insert a symbol within a list at a certain pozition It doesn't work ... but I don't know why. Well it kinda works ...