src/com/michaelho/RandomizedAlgorithms/RA3.java
/**
         * Function to add an object.
         * */
Function to add an object.
Function to add an object .
public void add(Object data) {
            int[] keys = getCompleteHash(data);
            for (int i = 0; i < keys.length; i++) {
                this.bitArray[keys[i]] = 1;
            }
        }
public void add ( Object data ) { int [ ] keys = getCompleteHash ( data ) ; for ( int i = 0 ; i < keys . length ; i ++ ) { this . bitArray [ keys [ i ] ] = 1 ; } }
Function to add an object.
Function to add an object .