Question: (10 marks) Give a divide and conquer algorithm to find a U3-majority element in an array A, if such an element exists (i.e., find an

(10 marks) Give a divide and conquer algorithm to find a U3-majority" element in an array A, if such an element exists (i.e., find an element that appears in more than n/3 positions of A). Your algorithm is only allowed to compare array elements for equality (i.e., it cannot tell if one element is less than or greater than another, only if it is equal or not). Analyze the running time of your algorithm, which should be as efficient as possible. (10 marks) Give a divide and conquer algorithm to find a U3-majority" element in an array A, if such an element exists (i.e., find an element that appears in more than n/3 positions of A). Your algorithm is only allowed to compare array elements for equality (i.e., it cannot tell if one element is less than or greater than another, only if it is equal or not). Analyze the running time of your algorithm, which should be as efficient as possible
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
