Home > Backend Development > PHP Tutorial > [算法]排列组合的算法

[算法]排列组合的算法

WBOY
Release: 2016-06-13 12:10:17
Original
828 people have browsed it

[算法求助]求一个排列组合的算法
是这样的
从0~9,a~z这36个字符中随机抽取3个数,计算有多少种排列组合的方法
求大神指教
------解决思路----------------------
对 
从2个数里提出两个数来 组合 就是 1
排列 才是 2
p(n,m)=n(n-1)(n-2)……(n-m+1)=n!/(n-m)!(规定0!=1).

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template