Computer Science Homework Solutions
Problem
#6553

A problem about ADT table in Java

Question:
(a) Based on the following scenario, describe one advantage and one disadvantage of each implementation of the ADT Table (using a binary search tree, ordered vector, or unordered vector). (Note that there is certainly more than one acceptable answer for this question.)
"Consider an implementation of the University of Waterloo staff telephone directory system as a dictionary. Given the high turnover of university staff and the unreliability of the telephone system, the addition and removal of persons to the dictionary is quite frequent and needs only occasional retrievals."

(b) Based on your analysis, what would be the most appropriate implementation of the three (a binary search tree, ordered vector, or unordered vector) for the given scenario? Explain your answer.  

The original course website where the problem comes from is here, I think it will be helpful if you take a look at it first: www.student.math.uwaterloo.ca/~cs134

Solution
What is this?
By OTA - Overall OTA Rating
Tyler Xie, MSc (IP) - 4.5/5
Purchase Cost Now
$2.19 CAD (was ~$15.96)
Included in Download
  • Plain text response
  • Attached file(s):
    • Answers_6553.doc
$2.19 Instant Download
Add to Cart
Why you can trust BrainMass.com
  • Your Information is Secure
  • Best Online Academic Help Service
  • Students find real academic Success
Related Solutions
  • Oracle 10g - Which of the data dictionary views are most useful, and why?
  • write a code in preparation for creating a spell-checker - Write a code in preparation for creating a spell-checker. I will provide a dictionary. For now don't worry about acutally spell checking: Just write a program that can read in the dictionary word by w ...
  • Phased Development Approach - What are the advantages and disadvantage of a phased development approach?
  • Software Algorithms and Implementation - Please see the attached file. Give the order of each of the following functions. TA(n) = 200(n +4)3 TB(n)= n4 + 300n3log2(n) TC(n)=(2n +3)2log3(n) Suppose that each is the time efficiency fu ...
  • Writing a program in C++. - Write a code in preparation for creating a spell-checker. For now don't worry about actually spell checking: Just write a program that can read in the dictionary word by word. The dictionary is large, ...
Browse