Class StoredSparseSet


  • public class StoredSparseSet
    extends Object
    Implementation based on "Maintaining GAC on adhoc r-ary constraints", Cheng and Yap, CP12.

    Created by cprudhom on 04/11/14. Project: choco.

    • Constructor Detail

      • StoredSparseSet

        public StoredSparseSet​(IEnvironment environment)
    • Method Detail

      • contains

        public boolean contains​(int k)
        Return if a value is contained.
        Parameters:
        k - the value to test
        Returns:
        true if `k` is contained, false otherwise
      • add

        public void add​(int k)
        Add the value `k` to the set.
        Parameters:
        k - value to add