public class TupleUtils extends Object
Constructor and Description |
---|
TupleUtils() |
Modifier and Type | Method and Description |
---|---|
int |
findPositionForInsert(int[] tuple)
searches for the position of the tuple in the tuple list.
|
int[][] |
recordTuples(int[][] ts)
It recordTuples to store so tuples can be reused across multiple
extensional constraints.
|
static boolean |
smallerEqualTuple(int[] left,
int[] right)
It compares tuples.
|
int[][] |
sortTuples(int[][] ts) |
static void |
sortTuplesWithin(int[][] ts)
It sorts tuples.
|
public int[][] recordTuples(int[][] ts)
ts
- tuples to be recorded.public int findPositionForInsert(int[] tuple)
tuple
- to be compared to.public int[][] sortTuples(int[][] ts)
ts
- tuples to be sorted.public static void sortTuplesWithin(int[][] ts)
ts
- tuples to be sorted.public static boolean smallerEqualTuple(int[] left, int[] right)
left
- tuple to be compared to.right
- tuple to compar with.Copyright © 2022. All rights reserved.