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

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

public class ArrayBasedInverseNSMQueryOperations
extends java.lang.Object

The array-based version of basic queries in the IDS.

Author:
gianmariasilvello

Constructor Summary
ArrayBasedInverseNSMQueryOperations()
           
 
Method Summary
static int[] IDSdirectSupersets(int[][] directSubsets, int[][] supersets, int set)
          Return the direct supersets of a given set for the IDS.
static int[] IDSsubsets(int[][] directSubsets, int set)
          Returns all the direct subsets of the given set.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ArrayBasedInverseNSMQueryOperations

public ArrayBasedInverseNSMQueryOperations()
Method Detail

IDSsubsets

public static int[] IDSsubsets(int[][] directSubsets,
                               int set)
Returns all the direct 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 direct subsets of the given set.

IDSdirectSupersets

public static int[] IDSdirectSupersets(int[][] directSubsets,
                                       int[][] supersets,
                                       int set)
Return the direct supersets of a given set for the IDS.

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