What are two possible problems with using an array-based bag implementation

What will be an ideal response?


. any two of the following:
. Arrays have a fixed size
a. Hard to predict maximum number of items in the bag
b. If the array is made too large, computer memory is wasted
Increasing the size of a dynamically allocated array can waste storage and time

Computer Science & Information Technology

You might also like to view...

A plastic scribe is a technology tool to write on smartphones and tablets

Indicate whether the statement is true or false

Computer Science & Information Technology

You must be logged in as the ____________________ user or have DROP privileges to delete a database.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology

In performing ____ on pointers, we must be careful to produce addresses that point to something meaningful.

A. comparisons B. arithmetic C. subscript operations D. duplication

Computer Science & Information Technology

Provide a brief description on the history of USENET.

What will be an ideal response?

Computer Science & Information Technology