Question: 1. Give pseudocode of a comparison-based algorithm that outputs the maximum of four integers x1, x2, x3, x4. 2. Draw the decision tree of the
1. Give pseudocode of a comparison-based algorithm that outputs the maximum of four integers x1, x2, x3, x4.
2. Draw the decision tree of the algorithm in the style of below, clearly labeling i)each internal node with the comparison ("<") being performed, ii) each edge with a comparison outcome True or False (not done in below figure), and iii) each external node with the maximum found. 
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
