Question: QUESTION 1 One simple implementation of an ordered map that uses randomization for efficiency as well as a way to achieve search and update times
QUESTION
One simple implementation of an ordered map that uses randomization for efficiency as well as a way to achieve search and update times which are Olog n on average is known as the
A
Spring List
B
Hop List
C
Skim List
D
Skip List
points
QUESTION
A map data structure is also known as an associative array, associate store or associative container.
True
False
points
QUESTION
The difference between a map and a dictionary data structure is that a dictionary
A
is in sorted order alphabetically
B
allows for multiple entries to have the same key
C
doesn't store keyvalue pairs called entities
D
contains entries called definitions
points
QUESTION
What is the below being used for when it is being used with a priority queue?
public Object deletekey
ifcount
System.out.printlnQ is empty";
System.exit;
else
Node cur head.getNext;
Node dup cur.getNext;
Object e cur.getEle;
head.setNextdup;
count;
return e;
A
To delete the second element in the list
B
To return but not delete the second element in the list
C
To delete the first element in the list
D
To return but not delete the first element in the list
points
QUESTION
A heap exhibits a property of a binary tree?
True
False
points
QUESTION
If all of the elements to be stored in a heap are unknown in advance, a bottomup heap construction can be used that runs in On time.
True
False
points
QUESTION
A hash table is composed of a hash function and a
A
binary tree
B
decreasing order array
C
stack
D
bucket array
points
QUESTION
What is the time complexity to insert a node based on a keys value in a priority queue built using a singly linked list worst case
A
On
B
Olog n
C
On
D
On log n
points
QUESTION
Which of the following is NOT a compression function used with hash tables?
A
the division method
B
the subtract, add and divide or SAD method
C
the multiply, add and divide or MAD method
points
QUESTION
Which of the following strategies is NOT considered an "openaddressing" method or scheme in hashing?
A
Separate Chaining
B
Linear Probing
C
Double Hashing
D
Quadratic Probing
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
