• Non ci sono risultati.

(1)Write a Prolog program which computes the addition of te integers in a list of integers

N/A
N/A
Protected

Academic year: 2021

Condividi "(1)Write a Prolog program which computes the addition of te integers in a list of integers"

Copied!
1
0
0

Testo completo

(1)

Write a Prolog program which computes the addition of te integers in a list of integers.

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 (first find a representation

of binary trees by means of appropriate terms).

Write a Prolog program for checking if a list of integers is in ascending order.

Riferimenti

Documenti correlati

The purpose of this thesis is the study and analysis of a specic industrial drying system for the production of tissue paper using the software Matlab.. First, equations which

• precedenza (è indicata con un numero, compreso in un intervallo dipendente dalla particolare implementazione, più basso è il numero, più alta è la precedenza

•• Il Prolog può essere visto come un sistema a regole di produzione in Il Prolog può essere visto come un sistema a regole di produzione in

Si scriva un predicato Prolog list_to_set a due argomenti che data una lista di liste come primo argomento leghi il secondo argomento a una lista nella quale sono state eliminate

•• Per ogni produzione di tipo Per ogni produzione di tipo A A→ → a c’è un arco dallo stato A allo a c’è un arco dallo stato A allo stato finale F.. stato finale

La sintassi di Prolog ci permettere di definire ed utilizzare strutture di dati: dobbiamo decidere la rappresentazione (come insieme di termini) e poi definire i costruttori,

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.

Although the artifacts and texts explored in this collection reflect many local, regional, and global religious traditions, the papers – both individually and collectively