My master thesis project s related to information theory and I was also teacher assistant and have dealt with such a problems. I had solve the similar questions last year for the information theory course at uni-kassel, where I am right now doing my thesis. I remain hearing from you.
Best Regards
Ehsun Azadbar