Problem 2 Loop Invariants Consider the following binary search algorithm. The Qrequires indicate pre-conditions and Qensures indicate post conditions int binsearch(int x, int[] A, int n) //orequires 0<n && n <length(A); //orequires is_sorted (A, 0, n); /*Qensures (-1 result && !is in(x, A, 0, n))|I ((0 result result n) A[result] -x) ; &&
OR
OR