The current values are as follows:
max1 = 89, max2 = 78, max3 = 67
Let us assume that we always compare a new card first with max1, then with max2 and finally with max3. A new card is now picked up from Pile-1 that has the maths marks as 95.
1)How many pairwise comparisons among the variables and cards are needed to update all the variables? Note that each pair consists of a card and one of the three variables?
2)What will be the value of max1 + max2 + max3 after the update?
3)After making this update, another card comes up with 50 as the maths marks. How many pairwise comparisons are needed to update all variables? Note that each pair consists of a card and one of the three variables