Computes the permanent of a nonnegative integer matrix. Notes: Compile in C++, "g++ -o permanent permanent.c".
标签: permanent nonnegative Computes Compile
上传时间: 2013-12-23
上传用户:zhangyi99104144
Computes the hafnian of a nonnegative integer matrix. Notes: Copy hafnian.c to main.c, in the same directory as Rothberg s code (see above). You can download the .tar directory with the code weighted-match.tar here. Then "make" the codes (this codes are in C, not C++). The program is then run by the command "wmatch".
标签: hafnian nonnegative the Computes
上传时间: 2013-12-23
上传用户:lmeeworm
merge sort give a set S of n integers and another integer x, determine whether or not there exits two elements in S whose sum is exactly x.
标签: determine integers another integer
上传时间: 2013-12-23
上传用户:xmsmh
a program that takes in an integer number as an argument and returns its equivalent in the binary and octal formats.
标签: equivalent argument program integer
上传时间: 2015-07-22
上传用户:h886166
ACM试题Problem K:Ones Description Given any integer 0 <= n <= 10000 not divisible by 2 or 5, some multiple of n is a number which in decimal notation is a sequence of 1 s. How many digits are in the smallest such a multiple of n?
标签: Description divisible Problem integer
上传时间: 2015-08-23
上传用户:zhenyushaw
BNB20 Finds the constrained minimum of a function of several possibly integer variables. % Usage: [errmsg,Z,X,t,c,fail] = % BNB20(fun,x0,xstatus,xlb,xub,A,B,Aeq,Beq,nonlcon,settings,options,P1,P2,...) % % BNB solves problems of the form: % Minimize F(x) subject to: xlb <= x0 <=xub % A*x <= B Aeq*x=Beq % C(x)<=0 Ceq(x)=0 % x(i) is continuous for xstatus(i)=0 % x(i) integer for xstatus(i)= 1 % x(i) fixed for xstatus(i)=2 %
标签: constrained variables function possibly
上传时间: 2014-01-13
上传用户:youth25
Power frequency harmonic measurement using integer periodic extension method
标签: measurement frequency extension harmonic
上传时间: 2015-10-17
上传用户:大三三
用GOSS解线性方程组 Dim i As integer 循环变量 Dim j As integer 循环变量 Dim k As integer 循环变量
上传时间: 2015-10-25
上传用户:xinzhch
Given an positive integer A (1 <= A <= 109), output the lowest bit of A. For example, given A = 26, we can write A in binary form as 11010, so the lowest bit of A is 10, so the output should be 2. Another example goes like this: given A = 88, we can write A in binary form as 1011000, so the lowest bit of A is 1000, so the output should be 8.
标签: A. positive integer example
上传时间: 2014-01-22
上传用户:rocketrevenge
Did anyone ask for an integer version of sqrt? Following is an implementation I found and adapted. Hope it is useful for somebody.
标签: implementation Following adapted integer
上传时间: 2013-12-24
上传用户:阿四AIR