All problems
Centralized-Decentralized Gap
Problem
Compute the gap between a centralized critic value and the sum of decentralized values: centralized_value - sum(decentralized_values).
Hint
The gap measures how much cooperative structure the joint value captures.
Test cases
case 1
in: [10,[3,4]]
expected: 3
case 2
in: [5,[]]
expected: 5
case 3
in: [-1,[1]]
expected: -2
Starter codePython
def centralized_decentralized_gap(centralized_value, decentralized_values):
# Your code here
pass3 test cases · run your code against them in the editor