The ADT dictionary that we discussed in this chapter assumes distinct search keys. Revise the specifications of the dictionary to remove this restriction. Consider each of the following possibilities:
a. The method add adds an entry whose search key is already in the dictionary but whose value is not. The remove method deletes all entries with a given search key. The method get Value retrieves all values associated with a given search key.
b. The methods behave as Part a describes, but a secondary search key enables remove and get Value to delete or retrieve a single entry.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here