Mena Sargios
Test por , creado hace más de 1 año

Algorithms and Data Structures | Test 3 Review | CSCI-3110-002 MTSU

250
0
0
Mena Sargios
Creado por Mena Sargios hace más de 7 años
Cerrar

10. Hashing Collision

Pregunta 1 de 16

1

Which probing applies a hash function until it finds an empty space or the key that is sought for?

Selecciona una de las siguientes respuestas posibles:

  • Linear

  • none of the above

Explicación

Pregunta 2 de 16

1

What does separate chaining allow for in the case of collisions?

Selecciona una de las siguientes respuestas posibles:

  • Allows the hash table to accommodate more than one item in the same location

  • none of the above

Explicación

Pregunta 3 de 16

1

Pick a correct example of Quadratic Probing increments:

Selecciona una de las siguientes respuestas posibles:

  • A) 1, 2^2, 3^3, etc

  • B) 2^0, 2^1, 2^2, etc

  • C) 1^2, 2^2, 3^2, etc

  • D) 1^1, 2^2, 3^3, etc

Explicación

Pregunta 4 de 16

1

What are two ways to handle hashing collisions?

Selecciona una de las siguientes respuestas posibles:

  • 1.Move down one at a time till a free space is found.
    2.Move down n^2 where n is how many times you have collided and moved.

  • none of the above

Explicación

Pregunta 5 de 16

1

what is a hash collision?

Selecciona una de las siguientes respuestas posibles:

  • A,two distinct pieces of data have the same hash value

  • B.two distinct pieces of data have the different hash value

  • C.it hold 3 values at once

  • D.none of the above

Explicación

Pregunta 6 de 16

1

Separate Chaining allows the hash table to accommodate more than one item in the same location.

Selecciona uno de los siguientes:

  • VERDADERO
  • FALSO

Explicación

Pregunta 7 de 16

1

Double Hasing uses two has functions what does each do?

Selecciona una de las siguientes respuestas posibles:

  • one specifies the first location, the other gives the step size.

  • none of the above

Explicación

Pregunta 8 de 16

1

Which type of probing searches the hash table at the beginning at the
original specified by the hash function and continuing at increments
of 1^2, 2^2, 3^2, ...?

Selecciona una de las siguientes respuestas posibles:

  • A) Linear Probing

  • B) Square Probing

  • C) Polynomial Probing

  • D) Quadratic Probing

Explicación

Pregunta 9 de 16

1

What does Separate Chaining do?

Selecciona una de las siguientes respuestas posibles:

  • Allows the hash table to accommodate more than one item in the same location (each location is a linked list). This makes the hash table dynamic

  • none of the above

Explicación

Pregunta 10 de 16

1

What searches the hash table sequentially, starting from the original locatiom specified by the hash function?

Selecciona una de las siguientes respuestas posibles:

  • A. Linear Probing

  • B. Bilinear Probing

  • C. Circular Probing

  • D. Alien Probing

Explicación

Pregunta 11 de 16

1

What is separate chaining?

Selecciona una de las siguientes respuestas posibles:

  • A) Each location in a hash table is a linked list. Effectively, it's dynamic.

  • B) Making each has table a linked list

  • C) None of the above

Explicación

Pregunta 12 de 16

1

Which of the following is NOT a type of collision handling?

Selecciona una de las siguientes respuestas posibles:

  • A. Separate chaining

  • B. Linear probing

  • C. Double Hashing

  • D. Trigonometic probing

Explicación

Pregunta 13 de 16

1

In separate chaining, what is the load factor?

Selecciona una de las siguientes respuestas posibles:

  • A. the load factor is the average length of all the lists, including the lists with the length of zero

  • B. the load factor is the shortest length of all the lists, including the lists with the length of zero

  • C. the load factor is the longest length of all the lists, including the lists with the length of zero

  • D. the load factor is the average length of all the lists, excluding the lists with the length of zero

Explicación

Pregunta 14 de 16

1

When using separate chaining for collision handling in a hash table the load factor is the average length of all of the list.

Selecciona uno de los siguientes:

  • VERDADERO
  • FALSO

Explicación

Pregunta 15 de 16

1

collision resolution schemes that probe for an empty, or open, location in the hash table

Selecciona uno de los siguientes:

  • VERDADERO
  • FALSO

Explicación

Pregunta 16 de 16

1

What is the difference between separate chaining and open addressing?

Selecciona una de las siguientes respuestas posibles:

  • Separate chaining uses linked lists as each index of the has table, and pushes older entries back from the front when new entries are provided. Open adressing uses two types of probing (linear and quadratic) to find an open location within the hash table.

  • none of the above

Explicación