Exam 12: Tables and Priority Queues

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

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:
Verified

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:
Verified

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:
Verified

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)

The heapsort is ______ in the worst case.

(Multiple Choice)
4.9/5
(40)

The ADT table uses a search key to identify its items.

(True/False)
4.8/5
(42)

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
close modal

Filters

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