You are writing an application. You need a data structure that will allow you to insert new elements. In addition, you must sometimes remove the maximum element and other times simply report the value of the maximum element. The client wants the program to be as efficient as possible. Which of the following data structures should you use in your design?   Question 24 options:   Unsorted linked list   Hash table   Array   Sorted linked list   Heap

EBK JAVA PROGRAMMING
9th Edition
ISBN:9781337671385
Author:FARRELL
Publisher:FARRELL
Chapter9: Advanced Array Concepts
Section: Chapter Questions
Problem 2PE
icon
Related questions
Question

You are writing an application. You need a data structure that will allow you to insert new elements. In addition, you must sometimes remove the maximum element and other times simply report the value of the maximum element. The client wants the program to be as efficient as possible. Which of the following data structures should you use in your design?

 

Question 24 options:

 

Unsorted linked list

 

Hash table

 

Array

 

Sorted linked list

 

Heap

Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Types of trees
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT