# Is it possible to infer on the thermodynamics of two problems if a reduction from $B$ to $A$ exists?

Peter Shor commented on this post:

years of experience in theoretical computer science says that the thermodynamic behavior of two NP complete problems are in general not similar.

1. What can we say about the distribution/thermodynamics of $$A$$ w.r.t. $$B$$ if we know that $$A \le_M B$$ (there is a reduction from $$B$$ to $$A$$), or if we know that $$A, B \in C$$ where $$C$$ is some complexity class ($$P$$, $$NP$$, co-$$NP$$, etc.)?

2. What can we say on the thermodynamics if there isn't a reduction from $$A$$ to $$B$$, or given their complexity classes?

I am not sure if it is a wicked idea to use complexity theory whose main concern is the worst-case scenarios while discussing thermodynamics, or statistical physics, whose general aim is to characterize phase transitions and describe the average case (principle of maximum entropy). Here is somehow a related work that states "NP problems" in terms of an Ising model.

• Why would reductions(many one, others or even NP complete problems) only be the scope of study, are any results that relate to thermodynamic behaviour of problems that concern only NP complete problems. It could be the case average case complexity problems that thermodynamics of problems may fall within the scope, Issues such as P-computability, or P-samplability may be within scope, rather than reductions. – user3483902 Feb 20 '18 at 5:37
• @user3483902 I guess anything that relates complexity to thermodynamics would be interesting to study. – 0x90 Feb 20 '18 at 5:40
• @0x90 A slightly orthogonal comment. Do we really need to use term 'thermodynamics' when referring to the moments (as defined in the linked question) of the distribution on problem instances. I think it is confusing. Maybe just use the terms: 'distribution' or 'properties of distribution' or 'moments'? – A.2 Jul 3 '20 at 16:53
• @A.2, this is indeed a fair statement. Sorry for the confusion. The reason for not using moments and sticking to the thermodynamics jargon was that moments don't define the probability density function (the measure) uniquely if the system has an unbounded domain. – 0x90 Jul 3 '20 at 17:02

With thermodynamics you have to be careful with the kind of reductions you allow, or (as Peter Shor pointed out) there can be essentially no thermodynamic relationship implied by a reduction. For example, if we consider not just the complexity of languages, but also the complexity of functions, every language is equivalent (under pretty simple reductions) to a permutation of $\Sigma^*$, and permutations can in principle be computed with zero thermodynamic cost.