Answered You can hire a professional tutor to get the answer.
Common Sum problem, two arrays A and B of length n containing non-negative integers, and must determine whether there are indices i 1 ; i 2 ; j 1 ; j...
Common Sum problem, two arrays A and B of length n containing non-negative integers, and must determine whether there are indices 1 ; 2 ; j1 ; 2 {1,2,...,n} for which A[1] + A[2] = B[j1] + B[2]
We need to Design an algorithm that solves the problem and has time complexity O(n^2 log(n)) in the setting where operations on individual integers take constant time.
Our Solution must include a description of the algorithm in words, the pseudocode for the algorithm, a justification of its correctness, and an analysis of its time complexity in big- notation