Exam 12: Tables and Priority Queues

arrow
  • Select Tags
search iconSearch Question
flashcardsStudy Flashcards
  • Select Tags

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)

A heap is a ______.

(Multiple Choice)
4.9/5
(31)

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)

A(n)______ implementation of a table is nonlinear.

(Multiple Choice)
4.9/5
(30)

The ADT table is also known as a ______.

(Multiple Choice)
4.9/5
(38)

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)

The ADT table is position-oriented.

(True/False)
4.8/5
(44)

In a heap,the search keys of the children of a particular node have no relationship.

(True/False)
4.8/5
(36)

What is a semiheap?

(Essay)
4.9/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)

The heapsort is ______ in the average case.

(Multiple Choice)
4.9/5
(39)

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)

What are the four categories of linear implementations of tables?

(Essay)
4.8/5
(36)
Showing 21 - 40 of 60
close modal

Filters

  • Essay(0)
  • Multiple Choice(0)
  • Short Answer(0)
  • True False(0)
  • Matching(0)