src/com/michaelho/RandomizedAlgorithms/RA3.java
/**
         * Check if the data exists in the database.
         *
         * @param data The data to be checked.
         *
         * @return The boolean indicates whether the data exists in the database.
         * */
Check if the data exists in the database.
@param data The data to be checked.

@return The boolean indicates whether the data exists in the database.
Check if the data exists in the database . @param data The data to be checked . @return The boolean indicates whether the data exists in the database .
public boolean contains(Object data) {
            int[] keys = getCompleteHash(data);
            for (int i = 0; i < keys.length; i++) {
                if (this.bitArray[keys[i]] != 1) {
                    return false;
                }
            }
            return true;
        }
public boolean contains ( Object data ) { int [ ] keys = getCompleteHash ( data ) ; for ( int i = 0 ; i < keys . length ; i ++ ) { if ( this . bitArray [ keys [ i ] ] != 1 ) { return false ; } } return true ; }
Check if the data exists in the database.
Check if the data exists in the database .