搜索资源列表
hi-precision
- 实现大数操作的算法模板,重载了基本操作(+,-,* ,/),取模,次方,gcd等-Operation of the algorithm to achieve large numbers templates, overloads the basic operation (+,-,*, /), modulus, power, gcd, etc.
Repeat-square-modulus-calculation
- 模重复平方计算法,可以计算形如 a^b(modc)-Repeat square modulus calculation, we can calculate the form a ^ b (modc)
PRIME-TEST
- 素数测试问题, 如果把乘、除法(包括取模)看成常数时间, 则算法的时间复杂度为 (k)= (log m)=O(log n)。 而当n极大时,与n在同一数量级的两个数相乘除, 不超过O(log2n)次二进制位操作。 ∴算法的时间复杂性为O(log3n)二进制位操作 -Prime test, If the multiplication, division ( including the modulus as a constant
nweixiangliang
- 编写一个n维向量类,要求具有构造函数和拷贝构造函数,实现如下功能: a) 成员变量为正整数n和n维float数组 b) 能够计算该向量的模(长度),并将向量单位化 c) 进行向量的加减运算 d) 计算两个向量的内积 -Preparation of an n-dimensional vector class, the constructor and copy constructor, the following functions: a) the member variable
