inizializzazione di graph e partition
This commit is contained in:
26
partition/Partition.java
Normal file
26
partition/Partition.java
Normal 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 l’insieme contenente il solo elemento x
|
||||
public Set<E> makeSet(E x) ;
|
||||
|
||||
// Restituisce l’unione di A e B, distruggendo i vecchi insiemi A e B
|
||||
public Set <E>union(Set<E> A, Set<E> B) ;
|
||||
|
||||
// restituisce l’insieme che contiene l’elemento x
|
||||
public Set <E> find(E x) ;
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user