Page 1 of 1

[25 marks] [8 marks] 2 (a) (a) Complete the following implementation of recursive quicksort in Java, including the parti

Posted: Wed Apr 27, 2022 3:31 pm
by answerhappygod
25 Marks 8 Marks 2 A A Complete The Following Implementation Of Recursive Quicksort In Java Including The Parti 1
25 Marks 8 Marks 2 A A Complete The Following Implementation Of Recursive Quicksort In Java Including The Parti 1 (143.05 KiB) Viewed 45 times
[25 marks] [8 marks] 2 (a) (a) Complete the following implementation of recursive quicksort in Java, including the partitioning algorithm. What is the complexity of quicksort? public void recQuickSort (int left, int right) { long pivot = array[right]; } (b) Alice's EIGamal public key (p, g, gʻmodp) is (23, 11, 2). Obtain [8 marks] her private key by brute force. (c) [9 marks] Write a Java method which takes in an array of numbers and inserts them into a hash table so that their presence in the table can be queried in O(1) time. Assume that there is a class variable called int[] hashtable of size 9991 which represents the hash table. Select a collision resolution strategy of your choice and explain how it works.