14. Consider the following three problems. Assume that the only operations allowed on the data are●comparing the values of two floating-point numbers and identifying the larger value;
●comparing the distance between two array entries (the absolute value of the difference between the two array entries) with the distance between two other array entries;
●swapping two entries in the array.
Further assume that each allowed operation has unit cost. What are the worst-case optimal asymptotic running times for algorithms that solve these problems?