搜索资源列表
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次方个)都被找到时,记得所比较的次数,则这个次数就是这次匹配的结果。程序执行了
最大k乘积问题
- /*最大k乘积问题 问题描述: 设I是一个n位十进制整数。如果将I划分为k段,则可得到k个整数。这k个整数的乘积称为I的一个k乘积 。 试设计一个算法,对于给定的I和k,求出I的最大k乘积(n<=10)。 示例:输入为 : 4 3 结果:1234 */-/ k * Product of the biggest problems Descr iption : I set up is a n-bit decimal integer. If I will be divided into k, k
matlab第n位平面
- matlab 程序例子(利用matlab 求位平面)-Matlab procedures example (using Matlab for bit-plane)
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
给定n 位正整数a,去掉其中任意k≤n 个数字后
- 给定n 位正整数a,去掉其中任意k≤n 个数字后,剩下的数字按原次序排列组成一个新的正整数。对于给定的n位正整数a 和正整数k,设计一个算法找出剩下数字组成的新数最小的删数方案。 对于给定的正整数a,编程计算删去k个数字后得到的最小数。 ,Given n-bit positive integer a, which removed any k ≤ n digits, the remaining number of the original order to form a new po
gray
- Gray码是一个长度为2n的序列。序列中无相同元素,每个元素都是长度为n位的串,相邻元素恰好只有1位不同。用分治策略设计并实现一个算法对任意的n构造响应的Gray码。-Gray code is a sequence of length 2n. No similar sequence elements, each element is n-bit string length, the adjacent element is only a difference exactly. With sub-r
jj
- 问题描述: 给定n位正整数a,去掉其中任意k个数字后,剩下的数字按原次序排列成一个新的正整数。 算法设计: 给定n (1<=n<=200)位的正整数a和k,此时,k小于n。 试着设计一个算法,找出删去k个数,剩下数字组成的新数最小的删数方案。-Descr iption of the problem: given n-bit positive integer a, which removed the arbitrary k-figures, the rem
delNum
- 给定n位整数任意去掉其中k<=n位,剩下的数字按原次序排列组成一个新的正整数,且这个正整数最小-Given an arbitrary n-bit integers to remove where k < = n bits, the remaining number of original order of the formation of a new positive integer, and that this is the smallest integer
1
- 给定n 位正整数a,去掉其中任意k≤n 个数字后,剩下的数字按原次序排列组成一个新的正整数。对于给定的n位正整数a 和正整数k,设计一个算法找出剩下数字组成的新数最小的删数方案。对于给定的正整数a,编程计算删去k个数字后得到的最小数。-Given n-bit positive integer a, to remove any of them k ≤ n digits after the original order of the remaining figures to form a new
codes
- 1: MSE.m : to perform Mean Square Error between 2 images 2: most.m : to get the most redundant value in a matrix 3: getneighbors.m : to get circular neighbors of pixel 4: ColorSpaceConversion.m : convert an image into different color spaces and
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
Matlab_GUI_MAZHIchange
- Matlab 的GUI交互式界面程序,实现功能:自然码、折叠码、格雷码的相互转换,实现了N位转换。这是我的一份作业,程序及报告全在,绝对可以用。-Matlab' s GUI interactive interface program to achieve functional: the natural code, folding code, Gray code conversion, to achieve the N-bit converter. This is my copy of th
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
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
nprime
- 给定一个整数N(2 <= N <= 8),生成所有的具有下列特性的特殊的N位质数:其前任意位都是质数。-Given an integer N (2 < = N < = 8), to generate all of the following characteristics of the particular N-bit prime number: it before any bits are prime numbers.
GolayCodeNbit
- 生成Nbit的golay互补码,注意输入的码长数值必须是2^n,输出为2*n的矩阵。包含源代码和输出波形图。(This function is designed for generating a N-bit Golay complementary code sequence. The syntax is "y=GolayCodeNbit(N)", where N is pattern of 2^n. The output result, y, is an output m
穷举n位二进制数
- 输入一个小于20的正整数n,要求按从小到大的顺序输出所有的n位二进制数,每个数占一行。(Enter a positive integer that is less than 20, and you want to output all of the n-bit binary Numbers in the order of small to large, each of which is a row.)
