Skip to Main Content
Introducing Data Structures with Java
book

Introducing Data Structures with Java

by David Cousins
March 2013
Intermediate to advanced content levelIntermediate to advanced
416 pages
9h 41m
English
Pearson Education India
Content preview from Introducing Data Structures with Java

15

Case Study 2—An Inventory Table

15.1 INTRODUCTION

Chapter 7 introduced the ‘hash table’ for direct access to an array without using sequential or binary searches. This case study will apply the processes involved.

15.2 THE APPLICATION

Ace Office Products needs to store the inventory of its products in a table whose contents may be accessed directly.

The data consists of a product code, which is a unique key, the name of the item and the number of each item in stock. Other data such as unit cost could be included, but we will restrict the data stored to the first three, although you might wish to extend the program to include such additional information.

The operations to be carried out are

  1. the addition of new items;
  2. the deletion of items ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Data Structures and Algorithms Using Java

Data Structures and Algorithms Using Java

William McAllister

Publisher Resources

ISBN: 9788131758649