Exercises 1 in Statistical mechanics: entropy, order parameters, and complexity
这里记录一下一些在《Statistical mechanics: entropy, order parameters, and complexity》这本书的第一章中的一些比较有趣的题目。
Q1
There are M dice each with N sides(labeled by integers) and at each turn every dice is thrown independently one after another, and then the points of each dice are recorded, and a sequence of length M obtained in one turn is recorded as a pattern. A legal pattern requires that the number in the sequence is monotonically un-decreasing. The problem is how many legal patterns are there?
Solution 1
我们先从一些简单的例子开始入手,比如说当
11 | 2 | 3
在不同数字的交界处放置一个隔板(bar), 当pattern是由三种数字组成的时候(本例子),就必然会放上
111 | | 3
照理说这里一个隔板就可以将不同的数字隔开了,为什么这里要用两个隔板呢?实际上我们放上隔板的目的一方面是为了将不同的数字隔开,更重要还是为了体现不同数字使用次数的情况,如果只放上一个一个隔板,我们就不知道数字2到底用没有,但是有了两个放在一起的隔板,我们从这个事实得出的信息就是有的数字没有被使用,你可能会说这不是明摆着的吗?都说了这个pattern是由两种数字组成的了,但是这里放两个隔板就可以延续上面讨论中的当
In general, 对于
其中
那么如何求不同representation的个数呢?从上面的讨论来看似乎取决于隔板的位置,但如果从这个角度去求解的话,很难得出结果,因为隔板的位置实在是太多了,很难归纳出一定的结论。但是如果从整体来看,我们需要
Solution 2
和放隔板的思想类似,这里假设一个合理的pattern里面有
https://en.wikipedia.org/wiki/Composition_(combinatorics)
Q2
Let us consider just the probability distribution of one molecule’s velocities. If vx, vy, and vz of a molecule are independent and each distributed with a Gaussian distribution with
then we describe the combined probability distribution as a function of three variables as the product of the three Gaussians:
here.
Show that the probability that the speed isis given by a Maxwellian distribution:
首先我们来明确几个概念,
现在冷静下来想一下,因为
其中
这样一来,我们就建立了速率与速度之间的关系
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· winform 绘制太阳,地球,月球 运作规律
· 震惊!C++程序真的从main开始吗?99%的程序员都答错了
· AI与.NET技术实操系列(五):向量存储与相似性搜索在 .NET 中的实现
· 超详细:普通电脑也行Windows部署deepseek R1训练数据并当服务器共享给他人
· 【硬核科普】Trae如何「偷看」你的代码?零基础破解AI编程运行原理