-
ForK1
我们的目的是将一个分数拆分成若干个分子是1分母是正整数的分数之和的形式。例如2/3可以拆分成1/2+1/6的形式。这里不考虑顺序,比如1/6+1/2和1/2+1/6相同。
输入p, q, a, n, 其中p/q为分数,对这个分数进行拆分,要求拆分的分数个数不能多于n个,所有分母的乘积不能大于a。求有多少种拆分方法?
输入:最多200组数据。在每行中都有四个数分别表示p, q, a, n,之间以空格隔开,并且满足p,q<=800,a<=12000,n<=7,最后以四个0做为输入的结束。
输入示例:
2 3 120 3
2 3 300 3
0 0 0 0
输出示例:
4
7
(Our aim is to split a fraction into a number of elements is a denominator is a positive integer fraction of the sum of form. For example, 2/3 can be split into 1/2+1/6 form. Not considered here, the order, such as 1/6+1/2 and 1/2+1/6 of the same. Input p, q, a, n, where p/q as a fraction of this split scores require no more than the number of split points n-all the product of the denominator can not be larger than a. How many kinds of demand split method? Input: Up to 200 sets of data. In each line has four numbers indicate the p, q, a, n, separated by a space between, and meet the p, q < = 800, a < = 12000, n < = 7, the end, four 0 as the input end. Input Example: 2,312,032,330,030,000 sample output: 47)
- 2009-11-12 09:54:17下载
- 积分:1
-
pcaMethods_1.52.0
丢失数据的主成分分析,处理不完整数据的pca分解。pcaMatlab(Principal component analysis of missing data, incomplete data processing pca decomposition.pcaMatlab)
- 2013-12-09 20:01:58下载
- 积分:1
-
DAB1
一个在matlab环境下的DAB仿真程序源码。内含ofdm收发,AWGN等(One in the matlab environment DAB simulation program source. Includes OFDM transceiver, AWGN, etc.)
- 2008-04-18 17:29:59下载
- 积分:1
-
FD
说明: 本程序用矩阵实现有限差分算法,本程序求解第一类边界条件下无源矩形金属槽电位分布,计算电磁学。(A simple code for finite difference method.)
- 2010-03-10 11:24:44下载
- 积分:1
-
classification
This code get the path of images
and extract features of these images , then use the NN tool for training
- 2012-04-25 19:56:20下载
- 积分:1
-
Kalman-filter-for-Colored-noise
卡尔曼滤波处理有色噪声的matlab程序
-kalman filter(Kalman filter for Colored noise)
- 2015-01-26 10:50:24下载
- 积分:1
-
k-means
K-means算法是最为经典的基于划分的聚类方法,是十大经典数据挖掘算法之一。K-means算法的基本思想是:以空间中k个点为中心进行聚类,对最靠近他们的对象归类。通过迭代的方法,逐次更新各聚类中心的值,直至得到最好的聚类结果。(K-means algorithm is based on the division of the classic clustering method, is ten classic one of data mining algorithm. K-means the basic idea of the algorithm is: to the space K point as the center of the cluster analysis, near their object classification. Through the iterative method, each successive update clustering center value, until get the best clustering results.
)
- 2011-06-26 19:53:19下载
- 积分:1
-
Multigrid-method
用多重网格法解非线性偏微分方程,假定N=4时为第0层l为输入的层数
r为MGM在在J-1层调用的次数(With multi-grid method for solving nonlinear partial differential equations, assuming N = 4 when the input layer 0 l layers
r for MGM in the number of J-1 layer calls)
- 2014-09-05 23:02:41下载
- 积分:1
-
马尔科夫链
说明: 对物种灭绝的一个马尔科夫链仿真,利用循环和概率来进行逐步仿真。(For a Markov chain simulation of species extinction, cycle and probability are used for step-by-step simulation.)
- 2020-06-24 19:20:02下载
- 积分:1
-
FDTD-Maxwell_equations
FDTD解Maxwell旋度方程,三维直角坐标空间格子内包含均匀三次单元格(finite-difference time-domain solution of Maxwell s curl equations over a three-dimensional Cartesian space lattice comprised of uniform cubic grid cells.
)
- 2009-04-30 10:47:55下载
- 积分:1