Use advanced data structures and support sorting

Assignment Help Data Structure & Algorithms
Reference no: EM131103948

Project 2 -

Extend Project 1 to use advanced data structures and support sorting on various keys. The project will be graded according the criteria for the final project - see below.

Elaboration:

  1. Use the Map class to support efficient searching on book and author indices.
  2. Implement comparators to support sorting by title, genre, price and index
  3. Extend the GUI from Project 1 to allow the user to: sort by title, genre, price and index
  4. Again, the GUI elements should be distinct from the other classes in the program.

Project 3 -

Implement a GUI interface using advanced Java Swing classes.

The project will be graded according the criteria for the final project - see below.

Elaboration:

  1. Extend Project 2 to use the Swing class JTable and JTree effectively to display the contents of the Library. See Liang, Chapter 36.
  2. As before, the GUI elements should be distinct from the other classes in the program

Final Project -

Implement a program to query and update the text database for a library using a client/server model allowing multiple clients safe access to the database, and using a producer-consumer model to control the inventory of each item.

The project will be graded according the criteria for the final project - see below.

Elaboration:

  1. Multiple instances of a client class should be supported.
  2. Use threads and locks to provide safe access to the database.
  3. Add a field to each record in the database representing the maximum number of that book the library will hold. This number should be given a default value if the field is not present in the text file.
  4. Functions should include:
    • Returning a book to the library, blocking if the maximum number of that book is reached until a book is borrowed.
    • Borrowing a book, blocking if the desired book is not in the library until a book is returned.
    • Allow a client to cancel a request that has been blocked.

Reference no: EM131103948

Questions Cloud

Economic market models : Disney World has doubled their ticket prices at their amusement parks over the last 10 years, which of the economic market models we covered explains this behavior?  Be sure to take into account that competitor parks are nearby.  Be sure to detail..
Dynamic pricing model : Ride hailing services utilize a dynamic pricing model. Using supply and demand tools (you don't have to actually show the graphs... but they may help you on scratch paper) illustrate how microeconomics explains the shifts in pricing and how it de..
Compute the speed of the car : You are in charge of calibrating the radar guns for a local police department. One such device emits microwaves at a frequency of 2.03 GHz. Calculate the speed of the car.
Calculate the expected value per customer : Calculate the expected value per customer of the new A/C service. Round your answer to one decimal place.
Use advanced data structures and support sorting : Extend Project 1 to use advanced data structures and support sorting on various keys. The project will be graded according the criteria for the final project - see below.
What happens to profits if it accepts the contract : An HMO guarantees at least 10 patients per week. It proposes a fee of $55. Should the clinic accept the contract? What happens to profits if it accepts the contract?
Compute the future value of the annuity : What is the future value of this annuity, the minimum basis for a possible settlement with the relatives of the victim if a fair settlement were indeed on the table?
Determine the magnitude and coordinate direction angles : If F1 = 100 lb and F2 = 200 lb, determine the magnitude and coordinate direction angles of the resultant couple moment.
Legal and regulatory requirements : Choose an organization you are familiar with, and choose one of the legal and regulatory requirements that was mentioned in this unit. Briefly explain the requirement. Why is it of specific importance to the organization you chose? What are the ris..

Reviews

Write a Review

Data Structure & Algorithms Questions & Answers

  Working with physicists that hav an inert lattice structure

working with Physicists that hav an inert lattice structure, and they use this for placing charged particles at regual spacing along a straight line

  Algorithm-decide whether language recognized by dfa is empty

Give an algorithm to decide whether the language recognized by a DFA is empty. Given two DFAs M1 and M2, give an algorithm to decide whether L(M1)subset or equal to L(M2).

  Create a work plan

Design a dynamic programming algorithm to find the value of the optimal plan. Implement your algorithm using any programming language you prefer. Describe the recurrence relation used by your algorithm at the top of your program or in a separate f..

  Design a simple randomized algorithm

Design a simple randomized algorithm to find the furthest pair in O(n log n) expected time - Explain why it is correct and design a simple randomized algorithm to find the furthest pair in O(n log n) expected time.

  Creating the flowchart for the decision structure

A telephone corporation service plan charges twenty-five cents for each call made. In addition, it charges five cents a minute for all calls made to a phone number that has a service plan with the corporation.

  Problems on edges and graphs

Suppose if we add an edge to a biconnected graph with k strongly connected components, then there are 3-situations: the endpoints of edge lie in different strongly connected component and there is no path between 2 in the original graph,

  Complex routing algorithm are used to maintain routing table

Complex routing algorithms are used to maintain routing table

  Use insertion sort on a randomly ordered array

Suppose that we use insertion sort on a randomly ordered array where items have only one of three values. Is the running time linear, quadratic, or something in between?

  Create each table and specify appropriate column data types

Create each table and specify appropriate column data types, primary keys, foreign keys, and any special column characteristics in the Access database implementation.

  Write algorithm to identify substrings which form numbers

Write the algorithm, by using pseudo code, to do the following task. Given string of numbers, identify all the substrings which form numbers that are divisible by 3.

  Explanation of oracle9i database

Take your current knowledge of Oracle Logs ect and project how a bank may make use of integrity control mechanisms.

  Mc cabe''s cyclamate number

Identify the proper scale for each of the following measures: LOC McCabe's cyclamate number Average depth of nesting Maximum depth of nesting

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd