登录
首页 » 算法 » Prim算法

Prim算法

于 2022-02-10 发布 文件大小:116.35 kB
0 269
下载积分: 2 下载次数: 1

代码说明:

资源描述很简单的代码做了Prim算法。它没有超过200条线。你可以在代码中编辑变量。

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

发表评论

0 个回复

  • Goertzel基本在每次采样后立即进行处理,在每个第N次采样进行一次音调检测。在采用FFT时,我们要对成块的采样进行处理,但这并不意味着必须按块来处理...
    Goertzel基本算法在每次采样后立即进行处理,在每个第N次采样进行一次音调检测。在采用FFT算法时,我们要对成块的采样进行处理,但这并不意味着必须按块来处理数据。数字处理的时间很短,因此如果每次采样都存在一次中断,那么这些数字处理完全可以在中断服务程序(ISR)内完成。或者,如果系统中存在采样缓存,那么可以持续采样,然后进行批处理。-Goertzel basic algorithms in each sample immediately after processing, in each of the first N sub-samples to conduct a tone detection. In the use of FFT algorithms, we would like to be processed into a block of samples, but this does not mean that must block processing the data. Digital processing time is very short, so if an interrupt for each sample are present, then the digital processing is fully able to interrupt service routine (ISR) to complete. Or, if the system exists in sample buffer, you can continue to sample, and then batch.
    2022-05-27 11:46:36下载
    积分:1
  • on the book everyone a good look! !
    关于c方面的新书大家-on the book everyone a good look! !
    2023-01-08 02:30:03下载
    积分:1
  • OpenCV自带的HOG详解
    应用背景行人检测目前是研究的热点呢,谷歌无人驾驶汽车已经开始研究最新的行人检测技术。关键技术HOG+SVM。2005年Da等人提出HOG之后,HOG成为了行人检测较为流行的算法。
    2022-05-18 01:09:26下载
    积分:1
  • C++实现基于用户的协同过滤
    算法过程:1).读入数据,将数据用user_brands存起来,同时建立userid_id,再建立id_brands  2).遍历id_brands得到物品-用户倒排表brand_ids,根据倒排表得到用户的相似矩阵sim_mat  3).为每个用户推荐产品:      3.1).求用户u买过的brand和所有brand的差集得到用户u没有买过的物品集合brand_unused;      3.2).用户u对每一个没用过的物品i的兴趣p(u,i):          3.2.1).找到与用户u最近的k个用户          对于每一个没用过的物品i:          3.2.2).找出这k个用户中对物品i有过行为的用户v[]√          3.2.3).将用户u和v[j]的兴趣相似度累加      3.3).取前m个最感兴趣的brand推荐给用户;  代码:UCF.cc(用户协同过滤核心代码):#include  #include  #include  #include  #include  #include  #include  #include  #include  #include  
    2023-03-01 07:45:04下载
    积分:1
  • 矩阵乘
    矩阵乘法
    2022-03-11 03:31:02下载
    积分:1
  • C++拟合圆的程序
    根据输入的点拟合为一个圆,最小二乘法拟合圆程序。对学习和理解最小二乘法算法有很大帮助。
    2022-08-02 22:14:00下载
    积分:1
  • ACM亚洲主题的比赛(在任务调度),和我的程序实现…
    acm亚洲区竞赛的一个题目(关于任务调度的)以及我的程序实现Asia Regional_Taipei Site Dec.10-13.1999Program EBroadcast Scheduling -acm Asia a topic of race (on the task scheduling), and I realize the procedures Asia Regional_Taipei Site GC.6/Dec.10- 13.1999Program EBroadcast Scheduling
    2023-08-13 13:45:02下载
    积分:1
  • plane eight
    平面8节点单元类,可以输出单元的刚度、质量、阻尼矩阵,并可通过形函数插值得到内部各点得位移、应力等。对各位以前编写的程序的一个补充和完善吧。-plane eight-unit category, the output unit stiffness, mass, damping matrix, through the shape function can be interpolation points in the internal displacement and stress. Right before you and the procedure for the preparation of a supplement and perfect it.
    2023-02-03 03:45:04下载
    积分:1
  • 杭州电子科技大学acm 赛题第1001题的源代码
    杭州电子科技大学acm 赛题第1001题的源代码-Hangzhou University of Electronic Science and Technology acm title section 1001 title game source code
    2022-03-17 09:48:22下载
    积分:1
  • BPSK simulation in C++
    C++中的BPSK仿真包括发射机、接收机和
    2022-06-22 03:52:15下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载