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
Answer:
24 years is the age limit
Explanation:
Explanation:
12: life line for commoners
13.started riot, especially
14.unfaur taxation, voting issues, unequal lang, estates gets all the votes, 1st and 2nd estates more votes than 3rd estates.
15. most of the population who were the 3rd estates (97%) treated people poorly with high taxes and decided to revolt
The time for the collision is 3.6S.
<h3>
What is collision
?</h3>
The collision is an encounter between particles resulting in exchange or transformation of energy.
According to the question,
Force,
F = 5 N
Mass,
m = 3 kg
Velocity,
v₁ = 9 m/s and v₂ = 3 m/s
As we know,
F=m*(v/t)
so,
5=3*(9-3/t)
T=3*6/5
T=18/5
hence, the time for the collision is
T= 3.6S.
Learn more about collision here,
brainly.com/question/13138178
#SPJ1