Skip to content
DeepForgeby svx
All problems
EasyInformation Theoryinfo-305

Channel Coding Theorem Threshold

Problem

Shannon's channel coding theorem says reliable communication is possible exactly when the code rate is below the channel capacity. Return True when code_rate < capacity and False otherwise. Assume both values are non-negative.

Hint

At exactly the capacity the theorem makes no promise of vanishing error.

Test cases

case 1
in: [0.4,0.5]
expected: true
case 2
in: [0.5,0.5]
expected: false
case 3
in: [0.6,0.5]
expected: false
case 4
in: [0.1,0.5]
expected: true
Starter codePython
def channel_coding_threshold(code_rate, capacity):
    # Your code here
    pass

4 test cases · run your code against them in the editor