Why is a prime number used in the Rabin-Karp algorithm?

a. It is used to generate a safe, efficient hash
b. It is used to calculate the optimal size of the queue
c. It is used to calculate the height of a binary search tree
d. It is used to determine the array size used by the string


a. It is used to generate a safe, efficient hash

Computer Science & Information Technology

You might also like to view...

Which of the following number formats suppress leading zeros?

A) 0 B) & C) ^ D) #

Computer Science & Information Technology

When a workbook is marked as final, a yellow bar appears below the tabs with a(n) _____ button.?

A. ?Reverse Final B. ?Edit Anyway C. ?Review D. ?Update

Computer Science & Information Technology

?Identify a syntax of theoptionelement that contains an attributeto make an option as default in a selection list.?

A. ?text B. C. ? D. ?

Computer Science & Information Technology

The statement System.out.printf("%10s", 123456) outputs ___________. (Note: * represents a space)

a. 123456**** b. 23456***** c. 12345***** d. ****123456

Computer Science & Information Technology