搜索资源列表
MoShiPiPei
- 有一串10000位数的主串由1、2、3、4四位数随机获得,n位模式串是指有4的n次方个模式串,如2位模式串有:11、12、13、14、21、22、23、24、31、32、33、34、41、42、43、44等16个数组成。现在进行模式匹配,假设主串为:431324113122341324132等等,则第一次比较是43,第二次比较是31,第三次比较是13,依此类推,每比较一次则落得模式串中的一个,当所有模式串(有4的n次方个)都被找到时,记得所比较的次数,则这个次数就是这次匹配的结果。程序执行了
hyplas
- ************************************************************************ * * * * * THIS IS THE H Y P L A S 2.0 README FILE * * ----------------- * * * * HYPLAS is a finite element program for implicit small and large * * strain analisys of hyperelast
fan
- 问题描述: 球赛门票的售票处规定每位购票者限购一张门票,且每张门票售价50元。购票者中有 m位手持50元钱币,另有n人手持100元。假设售票处开始售票时无零钱。问这m+n人有 几种排队方式可使售票处不致出现找不出钱的局面。 编程任务: 对给定的m,n(0<=m,n<=11),输出各种排队方式(从小到大),计算出排队方式总数。 -Problem Descr iption: The box office ticket sales are limited to th
number1
- 设n是一个k(1≤k≤80)位的十进制正整数。 问题:对于给定的任意整数n,编程求解满足p3+p2+3p≤n的p的最大值。 -Set n is a k (1 ≤ k ≤ 80)-bit decimal integer. Question: For a given any integer n, programming to solve the meet p3+ p2+3 p ≤ n the p maximum.
TestAlgorithm
- 求花朵数的JAVA代码实现 一个N位的十进制正整数,如果它的每个位上的数字的N次方的和等于这个数本身,则称其为花朵数。 例如: 当N=3时,153就满足条件,因为 1^3 + 5^3 + 3^3 = 153,这样的数字也被称为水仙花数(其中,“^”表示乘方,5^3表示5的3次方,也就是立方)。 当N=4时,1634满足条件,因为 1^4 + 6^4 + 3^4 + 4^4 = 1634。 当N=5时,92727满足条件。 实际上,对N的每个取值,可能有多个数字满足条件。
HuaDuoTree_Algorithm
- 一个N位的十进制正整数,如果它的每个位上的数字的N次方的和等于这个数本身,则称其为花朵数。 例如: 当N=3时,153就满足条件,因为 1^3 + 5^3 + 3^3 = 153,这样的数字也被称为水仙花数(其中,“^”表示乘方,5^3表示5的3次方,也就是立方)。 当N=4时,1634满足条件,因为 1^4 + 6^4 + 3^4 + 4^4 = 1634。 当N=5时,92727满足条件。 实际上,对N的每个取值,可能有多个数字满足条件。 程序的任务是:求N=2
HP
- 高精度算法,精确到小数点后N位,是制作计算器的必备函数-High-precision algorithm, to the nearest N-bit, is to produce an essential function calculator
scientific_calculator
- 使用说明: 1、该计算器对表达式的要求比较严格 2、该计算器默认采用弧度制,计算角度时则要转换:sin(π/6)=0.5 3、括号必须要匹配 4、注意像And这样的运算,前后数值需要括号:(1011)And(1000) 其他说明: Backspace :删除当前输入的最后一位。 CE :清除当前显示的表达式。 C :清除当前的计算,开始新的计算。 MC :清除存储器中的数据。 MR:调用存储器中的数据。 Mod求模(即整数相除求余数)
max
- 实验描述:给定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
gray
- 格雷码生成 对于给定的正整数n,格雷码为满足如下条件的一个编码序列: (1) 序列由2n个编码组成,每个编码都是长度为n的二进制位串。 (2) 序列中无相同的编码。 (3) 序列中位置相邻的两个编码恰有一位不同。-Gray code are generated for a given positive integer n, the Gray code to meet a coding sequence of the following conditions: (1) sequences enco
How-many-prime-numbers
- 已知许多整数,求素数个数。先输入N(整数个数),再输入N个整数。每个都不超过32位整型,不小于2.-Give you a lot of positive integers, just to find out how many prime numbers there are.In each case, there is an integer N representing the number of integers to find. Each integer won’t exceed 32-bit
p_module-multiplier
- This the code written for the wallace multiplier and which is designed for the n bit multiplication and which can be done just by changing the variable width-This is the code written for the wallace multiplier and which is designed for the n bit mul
Representing-and-Operating-on-an-N-inary-Tree-V3.
- This representation is a bit annoying because the kids array must be allocated separately from the node, and you need to reallocate the kids array every time you add a new kid to a node. Alternatively, you could instead over-allocate in anticipation
