-
机器学习kNN算法的c语言实现
本人正在学习机器学习的算法,已经学习了几个,自己尝试着用c语言编写程序,这是其中的kNN算法,基于《机器学习实战》这本书。
- 2023-03-26 23:55:04下载
- 积分:1
-
本程序采用循环单链表的算法来解决约瑟夫环问题:建立一个循环单链表,按顺序查找指定结点,找到后删除,最后打印删除的编号序列。
本程序采用循环单链表的算法来解决约瑟夫环问题:建立一个循环单链表,按顺序查找指定结点,找到后删除,最后打印删除的编号序列。- This procedure uses circulates Shan Lianbiao algorithm to solve
the Joseph link problem: Establishes to circulate Shan Lianbiao,
assigns the point according to the smooth search, after found deletes,
finally prints the serial number sequence which deletes.
- 2022-05-30 07:29:42下载
- 积分:1
-
电影票
图书馆管理系统 C+ + * 递归程序为线性搜索 * /#includeint 线性 (int [],int,int) ;无效的主要 (){int a [20],pos = 1,n,k,我 ;clrscr() ;printf ("nEnter n 值:") ;scanf ("%d",& n) ;printf ("nEnter 元素的数组:") ;为 (我 = 0 ; 我 < n; i + +)scanf ("%d"& a[i]) ;printf ("n 输入要搜索的元素:") ;scanf ("%d"& k) ;pos=linear(a,n,k) ;if(pos!=-1)printf ("n 搜索成功,发现位置 %d 处的元素",pos) ;其他printf ("搜索失败,找不到元素") ;残培 () ;}int 线性 int k int n int []){int ;为 (我 = n-1 ; 我 > = 0; 我 — —){if(a[i]==k)return(i) ;其他{n = n-1 ;return(linear(a,n,k)) ;}}返回-1 ;}
- 2022-02-02 00:00:53下载
- 积分:1
-
快速福利叶变换C程序包
此程序包是通用的快速傅里叶变换C语言函数,移植性强,以下部分不依赖硬件。此程序包采用联合体的形式表示一个复数,
输入为自然顺序的复数(输入实数是可令复数虚部为0),输出为经过FFT变换的自然顺序的复数.此程序包可在初始化时
调用create_sin_tab()函数创建正弦函数表,以后的可采用查表法计算耗时较多的sin和cos运算,加快可计算速度.与Ver1.1版
相比较,Ver1.2版在创建正弦表时只建立了1/4个正弦波的采样值,相比之下节省了FFT_N/4个存储空间。
- 2022-03-02 18:12:30下载
- 积分:1
-
The use of time
时频分析使用的源代码,希望对大家有用,接着上传!-The use of time-frequency analysis of the source code, in the hope that useful to everybody, and then upload!
- 2022-11-04 01:50:02下载
- 积分:1
-
不动点迭代――方程根的求解
不动点迭代――方程根的求解-fixed-point iteration-- Solving the equation-
- 2023-03-27 17:30:03下载
- 积分:1
-
计算模拟的统计方法(即蒙特卡罗模拟…
圆周率统计计算方法仿真(即蒙特卡罗Monte Carlo仿真)
文件
应用程序:圆周率的统计计算.exe
源代码文件:圆周率的统计计算.c-Statistical method of calculating pi simulation (ie Monte Carlo simulation Monte Carlo) file applications: the statistical calculation of pi. Exe source code files: the statistical calculation of pi. C
- 2022-08-24 16:46:00下载
- 积分:1
-
2007年全国大学生数学建模竞赛A题全国二等奖优秀论文
2007年全国大学生数学建模竞赛A题全国二等奖优秀论文-2007 National Undergraduate Mathematical Contest in Modeling A title of the National Award for best second-class papers
- 2022-04-07 18:10:56下载
- 积分:1
-
Dijkstra c
这我来源代码当我还是教我的学生在我班的数据结构。从这段代码我们可以了解使用 dijkstra 算法的 shotest 路径使用可以使用的 greedy.the 数据,采用是这种格式 txt101 2 101 4 52 3 12 4 33 5 64 2 24 3 94 5 25 1 75 3 4
- 2023-06-22 06:40:03下载
- 积分:1
-
k-means 遗传算法
K-means遗传算法是硬聚类算法,是典型的基于原型的目标函数聚类方法的代表,它是数据点到原型的某种距离作为优化的目标函数,利用函数求极值的方法得到迭代运算的调整规则。本程序是K-means遗传算法的VC++实现,DOS界面输出。
- 2022-07-12 12:29:41下载
- 积分:1