文件名称:max
- 所属分类:
- 数学计算/工程计算
- 资源属性:
- [Text]
- 上传时间:
- 2012-11-26
- 文件大小:
- 1kb
- 下载次数:
- 0次
- 提 供 者:
- tiang******
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
实验描述:给定X和Y都是n位整数,计算乘积XY。分治算法思想,将n位X和Y分成2段,每段n/2位。则X分为AB两段,Y分为CD两段。
有X=A*(10)^(n/2)+B,Y=C*(10)^(n/2)+D;XY=(A*(10)^(n/2)+B)(C*(10)^(n/2)+D)=AC*(10)^n+(AD+BC)*(10)^(n/2)+BD。 -Experiment: given X and Y are n-bit integers, calculate the product of the XY. The idea of divide and conquer algorithm, the n-bit X and Y is divided into two segments, each n/2. Then X is divided into AB two Y divided into CD two. X = A* (10) ^ (n/2)+B, Y, = C* (10) ^ (n/2)+D the XY = (A* (10) ^ (n/2)+B) (C* (10) ^ (n/2)+D) = AC* (10) ^ n+ (AD+BC)* (10) ^ (n/2)+BD.
有X=A*(10)^(n/2)+B,Y=C*(10)^(n/2)+D;XY=(A*(10)^(n/2)+B)(C*(10)^(n/2)+D)=AC*(10)^n+(AD+BC)*(10)^(n/2)+BD。 -Experiment: given X and Y are n-bit integers, calculate the product of the XY. The idea of divide and conquer algorithm, the n-bit X and Y is divided into two segments, each n/2. Then X is divided into AB two Y divided into CD two. X = A* (10) ^ (n/2)+B, Y, = C* (10) ^ (n/2)+D the XY = (A* (10) ^ (n/2)+B) (C* (10) ^ (n/2)+D) = AC* (10) ^ n+ (AD+BC)* (10) ^ (n/2)+BD.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
大整数乘法\大整数乘法.txt
大整数乘法
大整数乘法