Class SortedArraySetOperations


  • public class SortedArraySetOperations
    extends java.lang.Object
    • Constructor Detail

      • SortedArraySetOperations

        public SortedArraySetOperations()
    • Method Detail

      • diffSortedTIntArrays

        public static int[] diffSortedTIntArrays​(int size,
                                                 int[] indices)
      • diffSortedTIntList

        public static int[] diffSortedTIntList​(int size,
                                               int[] indices)
      • diffSortedTIntList

        public static int[] diffSortedTIntList​(int[] a,
                                               int[] b)
        Relative complement of b in a (or set-theoretic difference of a and b)
        Parameters:
        a -
        b -
        Returns:
      • unionSortedTIntList

        public static int[] unionSortedTIntList​(int[] a,
                                                int[] b)
      • unionSortedArrays

        public static int[] unionSortedArrays​(int[] a,
                                              int[] b)
      • intersectSortedArrays

        public static int[] intersectSortedArrays​(int[] a,
                                                  int[] b)