inizializzazione di graph e partition

This commit is contained in:
2014-05-20 17:51:31 +02:00
parent 0b0e20baf8
commit 4420be5086
4 changed files with 404 additions and 0 deletions

26
partition/Partition.java Normal file
View File

@@ -0,0 +1,26 @@
package partition;
import set.Set;
/**
* Created with xgiovio.macbookair.
* User: xgiovio
* Date: 19/05/14
* Time: 14:24
*/
public interface Partition <E> {
public int size();
public boolean isEmpty();
// Restituisce linsieme contenente il solo elemento x
public Set<E> makeSet(E x) ;
// Restituisce lunione di A e B, distruggendo i vecchi insiemi A e B
public Set <E>union(Set<E> A, Set<E> B) ;
// restituisce linsieme che contiene lelemento x
public Set <E> find(E x) ;
}