加权随机算法一般应用在以下场景:有一个集合S,里面比如有A,B,C,D这四项。这时我们想随机从中抽取一项,但是抽取的概率不同,比如我们希望抽到A的概率是50%,抽到B和C的概率是20%,D的概率是10%。一般来说,我们可以给各项附一个权重,抽取的概率正比于这个权重。那么上述集合就成了: {A:5,B Read More
posted @ 2016-09-28 21:16 godjob Views(16395) Comments(0) Diggs(0) Edit
Linux comes with a host based firewall called Netfilter. According to the official project site: netfilter is a set of hooks inside the Linux kernel t Read More
posted @ 2016-09-28 09:59 godjob Views(301) Comments(0) Diggs(0) Edit