1 1 vote Consider the following pseudocode for a function that operates on an $N$ element array $A[1],A[2],\dots,A[N]$ of integers. function mystery (A[1...N]) { int i,j,position,tmp; for i=1 to N { position=i; for j=i+1 to N { if(A[j]<A[position]) { position=j; } } tmp=A[i]; A[i]=A[position]; A[position]=tmp; } } Explain what effect the function has on the input array $A$. If $N=100$, how many times is the comparison $A[i]<A[position]$ checked? Others cmi2019-datascience + – soujanyareddy13 388 views answer comment Share Follow Print 0 reply Please log in or register to add a comment.
0 0 votes Answer: soujanyareddy13 answered May 8, 2021 soujanyareddy13 comment Share Follow 0 reply Please log in or register to add a comment.