The minimum number of comparisons to find the smallest number from 5 integers is 4.
<h3>How to find the Smallest Integer?</h3>
Let the five numbers be a,b,c,d and e.
Let s be an integer
Comparison 1:
a and b will be compared first and the smaller number of them will be equal to s
Comparison 2:
Now, a smaller number between a and b that is s will be compared with c. Similarly, the smaller number of both numbers will be taken as s in the next comparison.
Comparison 3:
Likewise, s and d will be compared and a smaller number will be taken as s for the next comparison
Comparison 4:
Likewise, s and e will be compared and a smaller number will be taken as s for the next comparison.
After 4th comparison, s will be equal to smallest number of 5 integers.
Thus;
Total comparisons = 4
Therefore, the minimum number of comparisons to find the smallest number from 5 integers is 4.
Read more about Smallest Integer at; brainly.com/question/13329614
#SPJ1
The function g(x) can be expressed as the inverse of f(x) as;
g(x) = ¼x - 3
<h3>Inverse Functions</h3>
Complete question is;
If g(x) is the inverse of f(x) and f(x) = 4x + 12 what is g(x)?
- Now, for us to find the inverse of a function, we need to make the output the subject of the formula first and then switch the input and new output values.
Thus;
f(x) = 4x + 12
Thus;
(f(x) - 12)/4 = x
x = ¼f(x) - 3
Thus, switching as said above, we now have;
g(x) = ¼x - 3
Read more about inverse functions at;brainly.com/question/8824268
The answer to your question has to false
Answer:C He could put the first card he removed into his pocket
Explanation:I TOOK THE TEST!!