• Non ci sono risultati.

Write a Prolog program to check if two not ordered input vectors contain the same elements

N/A
N/A
Protected

Academic year: 2021

Condividi "Write a Prolog program to check if two not ordered input vectors contain the same elements"

Copied!
1
0
0

Testo completo

(1)

Write a Prolog program to check if the number of elements in two binary trees T1 and T2 is the same.

Write a Prolog program to select from an input list of integers all odd values.

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 consecutive, i.e. for one

element in the first list there exists one which is its successor in the second list.

Compute the depth of a binary tree.

Riferimenti

Documenti correlati

In contrast to the analogue methods of radiation measurements in that time the spinthariscope was a single- particle counter, being the precursor of scintillation counters since..

Abate: how to check if the eigenvalues of a matrix have negative real parts?. (Marco Abate was professor in Tor Vergata; now he is professor in SNS of Pisa) Assume n

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,

Solution proposed by Roberto Tauraso, Dipartimento di Matematica, Universit`a di Roma “Tor Vergata”, via della Ricerca Scientifica, 00133 Roma,

[r]

•• 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

•• 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

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.