Show that entropy and average code length depend only on source code, probability and alphabet

23 Views Asked by At

I have an exercise to show that the entropy and the average code length depend only on the source code with the probability and the alphabet, but I don't have an idea how to start.

If we observe the formulas for both of them, we will notice that the requirements are source code and probability, but is this a start?