|
|||||||||
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. |
static int |
ONE_INDEXED
Same as BLOCK but the set is 1 to n. |
Method Summary | |
---|---|
int[][] |
getBlocks()
|
boolean |
isRelated(int i,
int j)
|
boolean |
isRepresentative(int i)
|
boolean |
isZero()
|
Partition |
join(Partition part2)
* 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 |
size()
|
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)
|
Field Detail |
---|
static final int INTERNAL
static final int EWK
static final int BLOCK
static final int HUMAN
static final int ONE_INDEXED
Method Detail |
---|
int[] toArray()
Partition join(Partition part2)
Partition meet(Partition part2)
boolean leq(Partition part2)
void normalize()
int size()
int numberOfBlocks()
boolean isRelated(int i, int j)
java.lang.String toString(int kind)
int representative(int i)
boolean isRepresentative(int i)
int[] representatives()
int[][] getBlocks()
boolean isZero()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |