-
zlib压缩源码
ZLIB 数据压缩库
zlib 1.2.5 是一个通用的数据压缩库。所有的代码
线程安全。Zlib 库所使用的数据格式是由 Rfc 描述的。
(评论要求) 1950 年到 1952 年的文件中
http://www.ietf.org/rfc/rfc1950.txt (zlib 格式)、 rfc1951.txt (紧缩格式)
和 rfc1952.txt (gzip 格式)。
压缩库的所有功能都记录在文件 zlib.h
(志愿者写的人的欢迎页面,联系 zlib@gzip.org)。用法示例
- 2022-05-21 06:30:25下载
- 积分:1
-
求解一个数是否为素数
大学C语言作业练习,求解一个数是否是素数,通过运行程序,输入一个数字,程序将自动判断这个数是否为素数。给出相应的结果。
- 2022-06-01 12:44:36下载
- 积分:1
-
//=== === === === === === =====
//函数说明
//函数名称:Correlation
//函数功能:计算最小二乘法拟合...
//=== === === === === === =====
//函数说明
//函数名称:Correlation
//函数功能:计算最小二乘法拟合的多项式的相关系数
//使用方法:int M------拟合多项式的项数(已知条件)
// double *b---拟合曲线的系数,按升次排列(已知条件)
// double *x---结点x轴数据(已知条件)
// double *y---结点y轴数据(已知条件)
// double *Yg--结点估计值,与*y相对应,个数为m(过程变量)
// int m------结点个数(已知条件)
//注意事项:多项式阶数最高为10,多项式的形式为 y = b0 + b1*(x-Xavr)...
-//=== === === === === === === === === === === =====// Function that// function name: Correlation// Function: Calculation of the polynomial least squares fitting correlation coefficient// Usage: int M------ polynomial fitting the number of (known conditions)// double* b-- Fitting curve coefficient, or times by arrangement (known conditions)// double* x--- node x-axis data (known conditions)// double* y--- node y-axis data (already known conditions)// double* Yg- the estimated value of node, and* y correspond to the number for m (process variables)// int m------ node number (known conditions)// Note: polynomial order up to 10, the polynomial
- 2023-05-06 14:40:03下载
- 积分:1
-
一、前言
24点游戏是一个常见游戏,出题者给出4个整数,要求答题者在指定时间内给出一个四则运算的表达式,恰好用上这这个整数各一次,计算结果为24,超出时间为...
一、前言
24点游戏是一个常见游戏,出题者给出4个整数,要求答题者在指定时间内给出一个四则运算的表达式,恰好用上这这个整数各一次,计算结果为24,超出时间为输。
二、分析
用计算机来算这个题,搜索速度当然有很大优势,我编程喜欢考虑通用一点,不限制输入数量和结果数,甚至不限制运算符数量。这样组合数就很大,如果输入数比较多,则搜索时间会非常长。
我用两个方法来提高搜索速度:一、是大家都能考虑到的重复搜索问题,比如1,2,3和2,3,1所有的组合情况是相同的,我只搜索使用递增序的数组,则可以降低一个组合数的数量级别;二、使用动态规划中的备忘录方法,比如你计算出2和3所有可能的计算结果,则他们与4结合的时候,要用到,与1结合的时候,也要用到,使用备忘录,可以只计算一次,大大降低运算复杂度。
三、设计
整体设计:分别设计4个类:游戏、表达式、运算、分数,各司其责,结构清晰,易于扩展。
-First, the preamble
24-point game is a common game, give the title are four integer requiring answer within a specified period of time in a four calculations give the expression, just use that the integral of the time, results for the 24, beyond the time to lose.
Second, analysis
Use computers to count the title, the search speed of course, there is a great advantage, I enjoy taking generic programming that does not restrict the importation of the volume and the number of results, and even limiting the number of operators. So on a large number of combinations, if you
- 2022-04-21 18:17:05下载
- 积分:1
-
sdfsdf sdfsdf sd 自卫队自卫队 sd s fsdfsdf
sdfsdf sdfsdf sd 自卫队自卫队 sd s fsdfsdfsdfsdf sdfsdf sd sdf sdf sd s fsdfsdfsdfsdf sdfsdf sd sdf sdf sd s fsdfsdfsdfsdf sdfsdf sd sdf sdf sd s fsdfsdfsdfsdf sdfsdf sd sdf sdf sd s fsdfsdfsdfsdf sdfsdf sd sdf sdf sd s fsdfsdfsdfsdf sdfsdf sd sdf sdf sd s fsdfsdfsdfsdf sdfsdf sd sdf sdf sd s fsdfsdfsdfsdf sdfsdf sd sdf sdf sd s fsdfsdfsdfsdf sdfsdf sd sdf sdf sd s fsdfsdfsdfsdf sdfsdf sd sdf sdf sd s fsdfsdfsdfsdf sdfsdf sd自卫队自卫队 sd s fsdfsdfsdfsdf sdfsdf sd sdf sdf sd s fsdfsdfsdfsdf sdfsdf sd sdf sdf sd s fsdfsdfsdfsdf sdfsdf sd sdf sdf sd s fsdfsdfsdfsdf sdfsdf sd sdf sdf sd s fsdfsdfsdfsdf sdfsdf sd sdf sdf sd s fsdfsdfsdfsdf sdfsdf sd sdf sdf sd s fsdfsdfsdfsdf sdfsdf sd sdf sdf sd s fsdfsdfsdfsdf sdfsdf sd sdf sdf sd s fsdfsdfsdfsdf sdfsdf sd sdf sdf sd s fsdfsdfsdfsdf sdfsdf sd sdf sdf sd s fsdfsdfsdfsdf sdfsdf sd sdf sdf sds fsdfsdfsdfsdf sdfsdf sd sdf sdf sd s fsdfsdfsdfsdf sdfsdf sd 自卫队自卫队 sd s fsdfsdfsdfsdf sdfsdf sd sdf sdf sd s fsdfsdfsdfsdf sdfsdf sd sdf sdf sd s fsdfsdfsdfsdf
- 2022-11-04 12:55:03下载
- 积分:1
-
traveling salesman problem source code traveling salesman problem
货郎担问题源代码 货郎担问题源代码-traveling salesman problem source code traveling salesman problem
- 2023-01-27 20:10:03下载
- 积分:1
-
层次聚类JBRICH算法
BIRCH(Balanced Iterative Reducing and Clustering using Hierarchies)天生就是为处理超大规模(至少要让你的内存容不下)的数据集而设计的,它可以在任何给定的内存下运行。BIRCH算法的过程就是要把待分类的数据插入一棵树中,并且原始数据都在叶子节点上。
- 2023-02-19 08:35:04下载
- 积分:1
-
DBSCAN聚类算法
实现DBSCAN聚类算法采用C# 数据挖掘中聚类算法,基于密度聚类的代表算法,dbscan。程序并不太难,方便大家学习。有三个文件,簇聚类的类datapoint-点的类clusteranalysis-以及聚类分析类
- 2022-05-28 14:26:17下载
- 积分:1
-
A fast Fourier transform tool
windows 平台下的很好用,很快速,功能强大的快速傅立叶变换动态连接库,有头文件和说明书。-A fast Fourier transform tool
- 2022-08-10 12:03:45下载
- 积分:1
-
外排序初始游程的生成
外排序中分为两步:初始游程的生成和有序文件的合并。请实现算法模拟初始游程的生成。假定系统中只能对规模为p的元素进行排序,现给定m个元素(m>p),对m个元素进行处理,给出所生成的若干个有序的初始游程。
要求:
(1) 请点击左侧文件开始预览 !预览只提供20%的代码片段,完整代码需下载后查看 加载中 侵权举报
- 2023-03-18 20:55:04下载
- 积分:1