Find the least number of comparisons needed to sort four elements and devise an algorithm that sorts

Question:

Find the least number of comparisons needed to sort four elements and devise an algorithm that sorts these elements using this number of comparisons.
Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question
Question Posted: