it.unipd.dei.ims.nestor.experiment.primitives
Class ArrayBasedNSMQueryOperations

java.lang.Object
  extended by it.unipd.dei.ims.nestor.experiment.primitives.ArrayBasedNSMQueryOperations

public class ArrayBasedNSMQueryOperations
extends java.lang.Object

The array-based version of the basic queries on the DDS.

Author:
silvello

Constructor Summary
ArrayBasedNSMQueryOperations()
           
 
Method Summary
static int directSupersets_NSM(int[][] supersets, int set)
          Return the superset (one by definition) of a given set for the DDS.
static int[] subsets_NSM(int[][] directSubsets, int set)
          Returns all the subsets of the given set.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ArrayBasedNSMQueryOperations

public ArrayBasedNSMQueryOperations()
Method Detail

subsets_NSM

public static int[] subsets_NSM(int[][] directSubsets,
                                int set)
Returns all the subsets of the given set.

Parameters:
directSubsets - The matrix containing all the subsets of each set.
set - The integer value of the given set.
Returns:
The array containing all the subsets of the given set.

directSupersets_NSM

public static int directSupersets_NSM(int[][] supersets,
                                      int set)
Return the superset (one by definition) of a given set for the DDS.

Parameters:
supersets - The matrix containing all the supersets of each set.
set - The given set.
Returns:
The integer value of the superset of the given set.