Question: Develop a symbol-table implementation ArrayST that uses an (unordered) array as the underlying data structure to implement our basic symbol-table API. JAVA Implementation Basic Symbol

Develop a symbol-table implementation ArrayST that uses an (unordered) array as the underlying data structure to implement our basic symbol-table API. JAVA Implementation

Basic Symbol table API:

public class ST

ST() // Create a symbol table

void put (Key key, Value val) // put key-value pair in the table

Value get (Key key) // Value paired with key ( Null if absent)

Void delete( Key key) //remove key(and its value) from the table

boolean contains (Key key) // is there a Value paired with key?

boolean isEmpty() // is the table empty?

int size() // number of key-value pairs in the table

Iterable keys() // all the keys in the table

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!