Exam 9: Searching and Hashing Algorithms

arrow
  • Select Tags
search iconSearch Question
  • Select Tags

The unique member of an item is called the ____ of the item.

Free
(Multiple Choice)
4.9/5
(39)
Correct Answer:
Verified

D

The sequential search is also called a ____ search.

Free
(Multiple Choice)
4.9/5
(35)
Correct Answer:
Verified

C

In linear probing, starting at location t, we search the array sequentially to find the next available array slot.

Free
(True/False)
4.9/5
(44)
Correct Answer:
Verified

True

Associated with each item in a data set is a special member that uniquely identifies the item in the data set.

(True/False)
4.8/5
(35)

In the random probing method, the ith slot in the probe sequence is ____.

(Multiple Choice)
4.9/5
(37)

The binary search algorithm uses the ____ technique to search the list.

(Multiple Choice)
4.8/5
(32)

A new item can be inserted at the beginning of the linked list because the data in a linked list is in no particular order.

(True/False)
4.9/5
(41)

When performing a sequential search, we assume all list elements are equally likely to be the target.

(True/False)
4.7/5
(28)

The sequential search always starts at the last element in the list and continues until either the item is found in the list or the entire list is searched.

(True/False)
4.8/5
(35)

You cannot write a recursive algorithm to implement a sequential search algorithm.

(True/False)
4.8/5
(34)

A binary search can be performed only on ____.

(Multiple Choice)
4.7/5
(34)

From the binary search algorithm, it follows that every iteration of the while loop cuts the size of the search list by half.

(True/False)
4.9/5
(35)

In ____, the data is stored within the hash table.

(Multiple Choice)
4.8/5
(40)

When an item is added to the hash table indexStatusList at position, say i, we set indexStatusList[i] to ____.

(Multiple Choice)
4.9/5
(36)

Open addressing can be implemented in several ways.

(True/False)
4.9/5
(44)

The elements of a list are usually in descending order.

(True/False)
4.9/5
(44)

One way to improve linear probing is to skip array positions by a ____.

(Multiple Choice)
4.9/5
(35)

In hashing, the data is organized with the help of a table, called the ____.

(Multiple Choice)
4.9/5
(35)

When analyzing a search algorithm, we count the number of key comparisons because this number gives us the most useful information.

(True/False)
4.7/5
(35)

In a sequential search, if the search item is the first element of a list, we make ____ comparison(s).

(Multiple Choice)
4.8/5
(40)
Showing 1 - 20 of 49
close modal

Filters

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