home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.disi.unige.it
/
2015-02-11.ftp.disi.unige.it.tar
/
ftp.disi.unige.it
/
pub
/
.person
/
CataniaB
/
teach-act
/
esempi
/
Tipi_di_dato
/
Alberi
/
trees.h
< prev
Wrap
C/C++ Source or Header
|
1997-05-11
|
561b
|
28 lines
typedef struct node * tree;
struct node
{
int root;
tree left;
tree right;
};
tree emptytree(void); /* albero vuoto */
int is_empty_tree(tree); /* tree e' vuoto? */
tree maketree(int root,tree left,tree right);
/* Costruttore di alberi, dati: root,left,right
* restituisce l'albero T con radice root di left & right */
int root(tree);
int length(tree);
void dfs(tree);
void bfs(tree);
int append(int,tree,tree,tree);
void copy(tree,tree*);