Problem:
Question 1: Explain in great detail with examples Priority Queues, Mergesort, and Quicksort. Please describe in detail.
Question 2: What is the value of total after the following loops complete? a. int total = 0; for (int i = 0; i < 10; i++) { total = total + a[i]; }
Show your all work step by step.