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
What are the advantages of a linear implementation of the ADT table over a binary search tree implementation?
(Essay)
4.9/5
(49)
What are the two main differences between a heap and a binary search tree?
(Essay)
4.8/5
(32)
Heapsort is a sorting algorithm that uses the heap data structure.Discuss how we can use a binary search tree to sort a list of values.Why would such an algorithm not perform as efficiently as heapsort?
(Essay)
4.8/5
(37)
The search key of an item must not change for as long as the item is stored in a table.
(True/False)
4.8/5
(35)
The Java Collections Framework includes classes called maps such as HashMap and TreeMap.In such classes,the individual elements each have two attributes.What are they?
(Essay)
5.0/5
(36)
A sorted implementation of a table can insert a new item into any convenient location.
(True/False)
4.8/5
(37)
How does the pqDelete operation work in a linear implementation of the priority queue based on a linked list?
(Essay)
4.9/5
(35)
In an array-based implementation of a heap,the heapDelete operation is ______.
(Multiple Choice)
4.8/5
(44)
In a binary search tree implementation of the ADT table,the item with the highest priority value is always in the ______.
(Multiple Choice)
4.9/5
(34)
In a heap,the search keys of the children of a particular node have no relationship.
(True/False)
4.8/5
(36)
A heap in which the root contains the item with the largest search key is called a ______.
(Multiple Choice)
4.9/5
(38)
What does the priority value in a priority queue correspond to in a heap?
(Essay)
4.8/5
(33)
In the Java Collections Framework,what is the difference between a Collection and a Set?
(Essay)
4.9/5
(37)
Showing 21 - 40 of 60
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)