|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface Partition
This interface specifies the basic operations for partitions on the set {0, 1, ..., n-1}. This also specifies that the partition should have a system of distinct representatives, an SDR.
| Field Summary | |
|---|---|
static int |
BLOCK
Printing types: blocks, the useual way of writing a partition. |
static int |
EWK
Printing types: the algebra program representtation: a comma separated sequence of ints defining a map whose kernel is the partition. |
static int |
HUMAN
Printing types: blocks, plus number of blocks at the end. |
static int |
INTERNAL
Printing types: the internal representation. |
| Method Summary | |
|---|---|
int |
blockIndex(int i)
|
int[][] |
getBlocks()
|
boolean |
isRelated(int i,
int j)
|
boolean |
isRepresentative(int i)
|
boolean |
isZero()
|
Partition |
join(Partition part2)
|
void |
joinBlocks(int r,
int s)
Note r and s must be roots and distinct. |
boolean |
leq(Partition part2)
|
Partition |
meet(Partition part2)
|
void |
normalize()
|
int |
numberOfBlocks()
|
int |
representative(int i)
|
int[] |
representatives()
|
int[] |
toArray()
This returns the array representation of the partition as described in Ralph Freese's notes on partitions, see http://www.math.hawaii.edu/~ralph/Notes/. |
java.lang.String |
toString(int kind)
|
int |
universeSize()
|
| Methods inherited from interface org.uacalc.alg.conlat.BinaryRelation |
|---|
getPairs |
| Methods inherited from interface java.lang.Iterable |
|---|
iterator |
| Methods inherited from interface java.lang.Comparable |
|---|
compareTo |
| Field Detail |
|---|
static final int INTERNAL
static final int EWK
static final int BLOCK
static final int HUMAN
| Method Detail |
|---|
int[] toArray()
void joinBlocks(int r,
int s)
Partition join(Partition part2)
Partition meet(Partition part2)
boolean leq(Partition part2)
void normalize()
int universeSize()
universeSize in interface BinaryRelationint numberOfBlocks()
boolean isRelated(int i,
int j)
isRelated in interface BinaryRelationjava.lang.String toString(int kind)
int representative(int i)
boolean isRepresentative(int i)
int[] representatives()
int blockIndex(int i)
int[][] getBlocks()
boolean isZero()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||