• Non ci sono risultati.

Write a Prolog program which computes the permutations of a list of elements

N/A
N/A
Protected

Academic year: 2021

Condividi "Write a Prolog program which computes the permutations of a list of elements"

Copied!
1
0
0

Testo completo

(1)

Write a Prolog program for computing the addition of two natural numbers represented

in the Peano form: using the constant 0 and the unary successor function for

the terms representing the natural numbers.

Using the same notation compute the product of two natural numbers.

Write a Prolog program which computes the permutations of a list of elements.

Write a (Prolog) program which computes the merge sort of the input list.

Write a (Prolog) program which computes the vectorial product of two input lists of integers

having the same length.

Write a program which computes the reversed list LO of an input list L (LO

contains the same values in L, in reversed order).

Write a Prolog program which takes an input list of characters (single

character constant) and check if it is ‘palindrome’.

Riferimenti

Documenti correlati

At the beginning of the Novena for the birthday of Mary Most Holy, he went to his director and said: “I would like to make this Novena well, and, amongst other things, I want to

geomorphological framework, and historical setting of the Villarbasse area (Marco Giardino, T4C; Eugenio Aghemo, Walter Cavigliasso, Villarbasse; Piera Capello, Elena

The breast epithelial cells and the stroma of the lobules type 1 found in the breast tissue of postmenopausal parous women has a genomic signature different from similar

First lecture on March 2nd, 2022, 11:00 (date already fixed, see the Calendar of activities at https://dottorato.math.unipd.it/calendar), Torre Archimede, Room 2BC/30

Write a program which given two lists L1 and L2 of integers decides if all elements in the first list are present in the second one.

Write a Prolog program which returns the element of a list L1 which are not included in a second list L2.. Write a Prolog program which decides if two binary trees are equivalent

Write a Prolog program to check if two not ordered input vectors contain the same elements.. Write a Prolog program which checks if two lists of integer values are

values in ascending order) whose values are