anyone possible prove by using proof of contraposition on this function...? I ha
ID: 3667381 • Letter: A
Question
anyone possible prove by using proof of contraposition on this function...? I have no idea how to start
Explanation / Answer
We can prove by contraposition by this way ..
Normally to find maximum from array, we must go through n-1 comparisions.
By contraposition ..
if Array A have comparisions lesser than n-1 comparisions, then A is not correct.
So for our contrapostive proof we will consider reverse..
"Array A is correct, if it doesnt have minimum n-1 comparisions in all cases."
So by going to fewer comparisions, we will not found exact maximum number from array.
So our assumption "Array A is correct, if it doesnt have minimum n-1 comparisions in all cases."
is wrong.
Hence proved
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.