![](https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
数学
我是路人戊
Nobody can go back and start a new beginning, but anyone can start now and make a new ending.
展开
-
高效寻找某个范围内的全部素数
素数:如果一个数只能被1和它本身整除,那么这个数就是素数。2是最小的素数。 问题描述:寻找[0,n]之间的全部素数。 代码实现: #include<iostream> #include<vector> using namespace std; #include<iostream> #include<vector> using namespace std; vector<bool> judgePrimes(int n) { v原创 2021-02-04 12:37:23 · 329 阅读 · 1 评论 -
霍夫丁不等式
问题描述:罐子里面有绿、黄N颗珠子,黄色珠子占比为。假设从罐子里取样出绿、黄n颗珠子,其中黄色珠子占比为。 Hpeffding Inequality:原创 2021-01-27 19:21:14 · 141 阅读 · 0 评论