Project #2--Extra Credit (Due October, 21 2005)

Optimize insertion/deletion of word/meanings

The externalDictionary interaction with the dictionary application must remain intact (i.e. Nothing in the application should have to change because of this extra credit). You may choose to turn in this version of externalDictionary in place of what the assignment #2 requires; however, if you do so, you need to meet the deadline for the assignment itself, and not the extra credit.

The format of each record remains the same except for the addition of one byte that will act as your flag; a 'D' would indicate that a record is deleted.

The word vector should no longer be a vector of words ONLY. Deleted record of our file are not part of the dictionary and should not be in the word vector. Here is what needs to change:

Hand In

externalDictionary.java assuming you keep vectorElement in that file.