Exam 12: Tables and Priority Queues
Exam 1: Review of Java Fundamentals60 Questions
Exam 2: Principles of Programming and Software Engineering60 Questions
Exam 3: Recursion: the Mirrors60 Questions
Exam 4: Data Abstraction: The Walls60 Questions
Exam 5: Linked Lists60 Questions
Exam 6: Problem Solving With Abstract Data Types60 Questions
Exam 7: Stacks60 Questions
Exam 8: Queues60 Questions
Exam 9: Advanced Java Topics60 Questions
Exam 10: Algorithm Efficiency and Sorting60 Questions
Exam 11: Trees60 Questions
Exam 12: Tables and Priority Queues60 Questions
Exam 13: Advanced Implementations of Tables60 Questions
Exam 14: Graphs60 Questions
Exam 15: External Methods30 Questions
Select questions type
In an array-based implementation of the priority queue,where is the item with the highest priority value located?
Free
(Essay)
4.9/5
(41)
Correct Answer:
In an array-based implementation of the priority queue,the item with the highest priority value is located at the end of the array.
In an array-based implementation of a heap,the heapInsert operation is ______.
Free
(Multiple Choice)
4.7/5
(44)
Correct Answer:
D
In an array-based implementation of a heap,the number of array items that must be swapped to transform a semiheap of n nodes into a heap is ______.
Free
(Multiple Choice)
4.9/5
(38)
Correct Answer:
D
In an array-based implementation of the priority queue,the pqDelete operation returns the item in ______.
(Multiple Choice)
4.9/5
(41)
In an unsorted array-based implementation of a table,a new item is inserted at location ______.
(Multiple Choice)
4.8/5
(32)
What kind of implementation of the ADT table is appropriate for retrieval-dominated applications if the maximum size of the table is known?
(Essay)
4.8/5
(42)
The sorted reference-based implementation of the tableInsert operation is ______.
(Multiple Choice)
4.8/5
(39)
In an unsorted array-based implementation of the ADT table,the retrieval operation is ______.
(Multiple Choice)
4.8/5
(40)
What function is performed by the tableLength operation of the ADT table?
(Essay)
4.9/5
(46)
What are the two possible outcomes of the tableRetrieve operation of the ADT table?
(Essay)
4.8/5
(45)
Which of the following operations of the binary search tree implementation of the ADT tree is O(n)?
(Multiple Choice)
5.0/5
(39)
A binary search tree implementation of the ADT table is easier to understand than a linear implementation.
(True/False)
4.8/5
(42)
What is the major advantage that a heap implementation of a priority queue has over a binary search tree implementation?
(Essay)
4.8/5
(33)
An array based implementation of an ADT is a ______ implementation.
(Multiple Choice)
4.7/5
(33)
In a maxheap,the root contains a search key greater than or equal to the search key in each of its children.
(True/False)
4.8/5
(35)
Why is a binary search operation impractical for a reference-based implementation of the ADT table?
(Essay)
4.8/5
(34)
In an unsorted reference-based implementation of a table,the tableInsert operation requires a constant time regardless of the table size.
(True/False)
4.7/5
(35)
In the sorted linear implementation of a table,the proper position of a new item to be inserted is determined ______.
(Multiple Choice)
4.8/5
(37)
Showing 1 - 20 of 60
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)