Complexity and second moment of the mathematical theory of communication