Data structure in C

profilemahinder_sharma


package hw3;

/******************************************************************************

* Your homework assignment is to design the below data structure in the form
* of a BST to maintain a symbol table of words and their lists of definitions.
* An entry in this dictionary is composed of a word and a list of definitions.

* Hint: you may implement and use a LinkedList data structure to store
* the list of definitions for each entry (i.e., word).
*
*/

public class BSTDict implements Dictionary {

// TODO : design the data structure so that the below methods function as intended

@Override
public void addDefinition(String word, String defn) {
// TODO Auto-generated method stub

}

@Override
public Iterable<String> getDefinitions(String word) {
// TODO Auto-generated method stub
return null;
}

@Override
public void remDefinition(String word, String defn) {
// TODO Auto-generated method stub

}

@Override
public boolean contains(String word) {
// TODO Auto-generated method stub
return false;
}

@Override
public int numEntries() {
// TODO Auto-generated method stub
return 0;
}

}

    • 9 years ago
    • 5
    Answer(0)
    Bids(0)