A Dynamic And Thermodynamic Approach To Complexity.