Homework

Let p=17 16 1  5  -4  2  -6  -3  8  13  12  9  11  10  14  7 15

Determine c(p), h(p) and d(p).
Use the algorithm described to find an optimal sorting of p.

The homework should be easy to read and statements clearly motivated.