搜索资源列表
number_theory_c++
- 数论算法库 C++ 语言实现 代码内容 数论算法库,包括以下算法: 欧几里德算法求a,b的最大公倍数 扩展的欧几里德算法,求出gcd(a,b)和满足gcd(a,b)=ax+by的整数x和y 求解模线性方程 ax ≡ b (mod n) 其中n>0 求解模线性方程组(中国余数定理) 模取幂运算 计算a^b mod n (a,b可能很大) Miller-Rabin随机性素数测试算法
ibe具有认证功能算法
- 1 Boneh-Franlin的IBE算法主要由四个子算法组成:Setup,Extract,Encrypt和Decrypt,分别完成系统参数建立、密钥提取、加密和解密的功能。假定消息的明文空间为 ,密文空间 。 (1)、建立: 给定一个安全参数 k蝂+ Step 1: 执行G生成一个素数q, 两个q阶群G1, G2 , 和一个可用的双线性映射 ê: G1碐1瓽2。 此外选取G1 任一生成元 P蜧1,再选取两个HASH函数 H3:{ 0, 1}n×{0, 1}n。 -?, H4:。 :{ 0,
线性筛素数方法
- 线性筛100 0000 以内的素数
Image
- 采用GdI+编程实现了,图像的读入,图像像素数据的采集和分析,通过线性判别函数和一个圆形判别函数来分离图像和背景-By GdI+ programming, and read the image, the image pixel data collection and analysis, linear discriminant function and a circular discriminant function to separate the image and the background
shuangxianxingchazhisuofangtuxiang
- 本实验采用双线形插值技术进行图像的缩放。该方法输出的像素值是它在输入图像中2*2邻域采样点的平均值,它根据某像素周围4个像素的灰度值在水平和垂直方向两个方向上对其插值。在进行图像缩放时,其考虑到了相邻近的像素点间的关系。这种平均算法具有放锯齿效果,创造出来的图像拥有平滑的边缘,锯齿难以察觉,所以相对于最近邻法,其的效果比较好。在进行程序设计时,程序的输入参数为图像矩阵和结果图像的水平和垂直方向的像素数,可以忽略混叠效应。在程序运行之后可以对其前的实验结果进行比较分析异同,进而更深刻的理解最近邻插
Multiplicativefunction
- 这个文件主要介绍了3算法 1线性时间筛素数 2线性时间求前n个数的欧拉函数值 3线性时间求前n个数的约数个数 并附有实现的C++代码 -This paper introduces a linear time algorithm for three sieve prime number 2 for linear time ago n the number of Euler function value of 3 for linear time about the number
prime1
- 实现素数的求解方法,利用素数表进行线性时间筛选-Solving the achievement of prime numbers, using prime time table for the linear filter
zhifangtujunhanghua
- 直方图均衡,图像去雾处理,是把原始图像的灰度直方图从比较集中的某个灰度区间变成在全部灰度范围内的均匀分布。直方图均衡化就是对图像进行非线性拉伸,重新分配图像像素值,使一定灰度范围内的像素数量大致相同。-Histogram equalization, image processing to the fog, is the original image histogram to a gray scale from the more concentrated into the full range o
Interpolation
- /************************************************************************* * 函数名称: * Interpolation() * 参数: * LPSTR lpDIBBits - 指向源DIB图像指针 * LONG lWidth - 源图像宽度(象素数) * LONG lHeight - 源图像高度(象素数) * FLOAT x - 插值元素的x坐标 * FLOAT y
primesrennting
- 线性素数筛选发&0到100万的因子个数 ACM简单算法,筛选法,线性筛选加上因子数-Linear prime screening hair & 0 to 1 million the number of factors ACM simple algorithm, filtering, linear filtering with the number of factors
math-problems
- 一些数学问题算法模板,稍微做了下分类 目录 1 欧几里得和模线性方程 欧几里德 扩展欧几里德 模线性方程 2 欧拉φ函数 扩展欧拉函数 3 线性时间素数筛法 生成欧拉函数表 4 因式分解 5 Nim游戏和sg函数 合肥B 题 -Some mathematical problems algorithm template, do a little under Categories 1and mode of linear eq
TrueColor2SingleBand
- VC/C++源码,图形处理,图像转换 VC实现真彩色图像转换为8位图像,RGB三个波段的灰度通过一个线性变换式计算为单波段灰度。 关于代码: DWORD _width1 = WIDTHBYTES(width*8) //保存的8bits位图保存宽度 DWORD bytesCount1 = _width0*height //存储该真彩色位图数据段所用的字节数,不是像素数 DWORD bytesCount2 = _width1*height //存储8b
NumberTheory
- 简单的数论,包含求解模线性方程组,扩展欧几里德,以及米勒测试,快速筛素数的方法。-Simple number theory , including for solving the mode linear equations, extended Euclidean, as well as the Miller test, rapid screening primes.
shuangxianxing
- 编写一个以双线性插值技术进行图像缩放的程序,程序的输入参数为结果图像的水平和垂直方向的像素数。忽略混叠效应-Zooming and Shrinking Images by Bilinear Interpolation
prng
- 采用线性同余法的素数模乘同余发生器产生随机数,采用5级流水线设计-Using a linear congruential method prime modulus multiplicative congruential random number generator, using five pipeline design
Number-Theory
- 这里包含了各类数论基本算法:素数筛法,偶拉函数,欧几里德算法,扩展欧几里德算法,求逆元,线性模方程组-it contains many Number theory algorihm: prime sieve, euler function, gcd, exgcd, mod inv, congruence_equation
libtommath-ecc
- libtommath-ecc 用于大数计算,里面包括了详细的大素数、ecc、双线性对等现成的C++源代码,适合应用于VC++ 6.0-libtommath-ecc for the calculation of large numbers, which include a detailed large prime numbers, ecc, bilinear peer ready C++ source code, suitable for VC++ 6.0
liner
- 复杂度为线性的素数晒法,效率极高,代码可读性,适合学习-Complexity is linear primes drying method, high efficiency, readability, for learning
prime1
- 实现素数的求解方法,利用素数表进行线性时间筛选-Solving the achievement of prime numbers, using prime time table for the linear filter