Exam 9: Searching and Hashing Algorithms
Exam 1: Software Engineering Principles and C++ Classes42 Questions
Exam 2: Object-Oriented Design OOD and C++35 Questions
Exam 3: Pointers and Array-Based Lists45 Questions
Exam 4: Standard Template Library (STL) I47 Questions
Exam 5: Linked Lists44 Questions
Exam 6: Recursion36 Questions
Exam 7: Stacks44 Questions
Exam 8: Queues48 Questions
Exam 9: Searching and Hashing Algorithms49 Questions
Exam 10: Sorting Algorithms47 Questions
Exam 11: Binary Trees and B-Trees47 Questions
Exam 12: Graphs43 Questions
Exam 13: Standard Template Library (STL) II50 Questions
Select questions type
The unique member of an item is called the ____ of the item.
Free
(Multiple Choice)
4.9/5
(39)
Correct Answer:
D
The sequential search is also called a ____ search.
Free
(Multiple Choice)
4.9/5
(35)
Correct Answer:
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:
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)
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)
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)
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
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)