登录
首页 » 算法 » 计算文本中数列的配对总和接近某数

计算文本中数列的配对总和接近某数

于 2022-08-04 发布 文件大小:1.06 kB
0 201
下载积分: 2 下载次数: 1

代码说明:

老婆做会计,公司是买通讯柜的,需要计算面积总和接近某数的多少次交易,本人使用的算法的基本原理为,先算出在总数列中N次的排列组合可能性,然后随机刷出组合,未记录的加入记录中,得出所有组合后,依次判断其与预设总数的接近程度,得出最佳组合

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • 超酷的走迷宫程序
    超酷的走迷宫程序 -cool Maze procedure
    2022-03-10 01:29:03下载
    积分:1
  • 分步傅利叶方解非线性方程
    分步傅利叶方法解非线性方程-Fourier step-by-step method for solving systems of nonlinear equations
    2022-12-13 00:25:03下载
    积分:1
  • / = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = /功能annot
    //=== === === === === === === = //函数说明 //函数名称:PolyFit //函数功能:最小二乘法曲线拟合 //使用方法:double *x ---- 存放n个数据点的X坐标 // double *y ---- 存放n个数据点的Y坐标 // int n -------- 给定数据点个数 // double *a ---- 返回m-1次拟合多项式的m个系数 // int m -------- 拟合多项式的项数,即拟合多项式的最高次为m-1。要求m20,则本函数自动按m=min{n,20}处理 // double *dt --- dt[0]返回拟合多项式与各数据点误差的平方和;dt[1]返回拟合多 // 项式与各数据点的误差绝对值之和;dt[2]返回拟合多项式与各数据 // 点误差绝对值的最大值 //注意事项:拟合多项式的形式为 y = b0 + b1*(x-Xavr)... -//=== === === === === ==== === === === === === === ==== === =// function annotations// function name : PolyFit// Function functions : Least Squares Curve Fitting// Use : double* x n-store data point coordinates of the X//* y double-storage n data point Y coordinates// int n-------- given the number of data points//* a double---- returned to the m-1 m fit polynomial coefficients// int m-------- polynomial fitting items , which is the highest polynomial fitting time for m-1. Request m
    2023-07-25 11:15:03下载
    积分:1
  • 雷达数据处理
    对雷达数据处理的单目标,多传感器的matlab源程序,简单的卡尔曼滤波算法,初学的朋友们可以看看
    2022-02-19 23:24:19下载
    积分:1
  • poj 1523的代码和方说明,个人原创
    poj 1523的代码和方法说明,个人原创 - the codes and solution for poj 1523
    2022-03-18 16:17:02下载
    积分:1
  • 对.bmp格式的图像进行快速傅立叶变换,包含测试图像。
    对.bmp格式的图像进行快速傅立叶变换,包含测试图像。-On. Bmp format images fast Fourier transform, including the test images.
    2022-09-08 11:35:02下载
    积分:1
  • 利用变步长来计积分,该中用到步长的折半方
    利用变步长来计算积分,该算法中用到步长的折半方法。-use variable step to calculate integrals, the algorithm uses the half step method.
    2022-06-20 02:56:02下载
    积分:1
  • A Star 和 dijkstra
    A Star 和 dijkstra
    2022-02-14 10:50:09下载
    积分:1
  • 求函数极小值,适用于不带约束的、函数可以为非线性的无约束规划问题的求解...
    求函数极小值,适用于不带约束的、函数可以为非线性的无约束规划问题的求解-Demand function is minimum applicable to non-binding, the function can be non-binding for the non-linear programming problem solving
    2022-07-17 09:40:31下载
    积分:1
  • 高斯解线性方程组
    高斯法解线性方程组-Gaussian method for solving linear equations
    2022-08-15 17:21:38下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载