Exam 12: Tables and Priority Queues

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

In an unsorted array-based implementation of the ADT table,the insertion operation is ______.

(Multiple Choice)
4.8/5
(35)

Which of the following is true about a linear implementation of a table?

(Multiple Choice)
4.9/5
(38)

A semiheap is a ______.

(Multiple Choice)
4.8/5
(36)

In a linear implementation of the priority queue based on a linked list,the item with the highest priority value is located ______.

(Multiple Choice)
4.9/5
(38)

The sorted array-based implementation of the tableInsert operation is ______.

(Multiple Choice)
4.8/5
(31)

For what kinds of situations is a linear implementation of the ADT table more efficient than a binary search tree implementation?

(Essay)
4.7/5
(41)

The mergesort is more efficient than the heapsort in the worst case.

(True/False)
4.7/5
(32)

When implementing an ADT such as a table,one design question is how often each ADT operation is to be performed.Why do we ask ourselves this question?

(Essay)
4.8/5
(35)

The first item to be removed from a priority queue is the item ______.

(Multiple Choice)
4.9/5
(45)

What is a linear implementation?

(Essay)
4.9/5
(31)

Which of the following is true about the heapsort?

(Multiple Choice)
4.9/5
(37)

A binary search tree implementation of a table is a linear implementation.

(True/False)
4.9/5
(46)

If the item with a given search key does not exist in a table,the tableRetrieve operation returns ______.

(Multiple Choice)
4.9/5
(39)

The ______ operation of the ADT table throws a TableException.

(Multiple Choice)
4.9/5
(34)

The sorted reference-based implementation of the tableDelete operation is ______.

(Multiple Choice)
4.9/5
(38)

A priority queue orders its items by their ______.

(Multiple Choice)
4.8/5
(35)

A heap in which the root contains the item with the smallest search key is called a ______.

(Multiple Choice)
4.8/5
(31)

What kind of implementation of the ADT table is appropriate for retrieval-dominated applications if the maximum size of the table is NOT known?

(Essay)
4.8/5
(41)

What is the effect of the assumption that all items in a table have distinct search keys,on the insertion operation of a table?

(Essay)
4.9/5
(32)

In an array-based implementation of a heap,the parent of the node in items[i] is always stored in ______.

(Multiple Choice)
4.7/5
(36)
Showing 41 - 60 of 60
close modal

Filters

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