-
基于栈结构的迷宫算法实现
参考《数据结构(C语言)》(严蔚敏版)所提的迷宫算法的概念,通过栈结构实现对迷宫从出口到入口的路径搜索算法实现,代码在vs2010环境下进行测试,全部代码包括main.cpp,maze arithmetic.cpp,maze stack.cpp,maze stack.h四个文件,其中maze stack.cpp文件为栈结构的实现代码,maze arithmetic.cpp为迷宫路径搜索算法的实现代码,main.cpp为测试代码。经过测试,代码能够正常运行。
- 2022-06-03 00:48:19下载
- 积分:1
-
k-均值算法 python
均值比率
试图生成速度快、 内存效率的 K-均值程序。
安装
gem来源-http://rubygems.org
sudo gem安装 k_means
如何使用
需要 "rubygems"
要求 "k_means"
数据 = [[1,1]、 [1,2],[1,1],[1000年、 1000年],[500、 500]]
kmeans = KMeans.new (数据,: 质心 = > 2)
kmeans.inspect # 使用 kmeans.view 拿到未检查数组
= > [[3,4],[0,1,2]]
自定义的质心
需要 "rubygems"
要求 "k_means"
# 您自定义的质心需要有 #position 和 #reposition 的方法
类 CustomCentroid
attr_acces
- 2022-04-28 00:29:05下载
- 积分:1
-
Unix下的复数运算,实现了复数的加减、开方运算
Unix下的复数运算,实现了复数的加减、开方运算-Unix complex operation, realized the plural number
addition and subtraction, the root has operated
- 2022-03-03 10:31:13下载
- 积分:1
-
Camshift跟踪
基于Camshift的目标跟踪。基于Camshift的目标跟踪。基于Camshift的目标跟踪。基于Camshift的目标跟踪。基于Camshift的目标跟踪。基于Camshift的目标跟踪。基于Camshift的目标跟踪。基于Camshift的目标跟踪。基于Camshift的目标跟踪。基于Camshift的目标跟踪。
- 2022-04-16 22:14:22下载
- 积分:1
-
程序实现多项式相乘 或者说是褶积 因为两者是本质是相同的 程序里边的算法很巧妙 是从一个地球物理学家拿学来的...
程序实现多项式相乘 或者说是褶积 因为两者是本质是相同的 程序里边的算法很巧妙 是从一个地球物理学家拿学来的-it is a good method to have convelution of two one_dimension array
- 2022-02-04 22:15:45下载
- 积分:1
-
本程序模拟细胞的自我繁殖,你会看到一个柔软的细胞诞生在电脑屏幕上,然后随着各个分子的撞击,细胞开始分裂,经过一段时间的演化,这个细胞会在溶液中把自己复制,然后这...
本程序模拟细胞的自我繁殖,你会看到一个柔软的细胞诞生在电脑屏幕上,然后随着各个分子的撞击,细胞开始分裂,经过一段时间的演化,这个细胞会在溶液中把自己复制,然后这个过程会继续进行……。这种自我复制是在人工化学的基础上进行,比起原来的基于细胞自动机的自我复制更加形象逼真-the cell simulation of self-reproduction, you will see a soft cell birth on the computer screen, and then with all the percussive elements, cell division, after a period of evolution, the cells in the solution themselves copied, and then the process will continue ... . This self-reproduction of the artificial chemical basis, compared to the original cell-based automatic machine self-replication more vivid
- 2022-07-16 13:06:16下载
- 积分:1
-
这是一个列主元消去法的VC程序,是计算方法中的一个重要的算法的编程。...
这是一个列主元消去法的VC程序,是计算方法中的一个重要的算法的编程。-This is a main-element method to eliminate the VC process, the calculation of an important programming algorithm.
- 2022-11-21 19:20:03下载
- 积分:1
-
vc++环境的快速傅立叶变换的算法库,含VC++的测试源代码
vc++环境的快速傅立叶变换的算法库,含VC++的测试源代码-vc++ environment Fast Fourier Transform algorithm library, containing VC++ the test source code
- 2023-06-18 09:10:03下载
- 积分:1
-
Zip压缩源代码
资源描述Zip压缩源代码Zip压缩源代码Zip压缩源代码Zip压缩源代码Zip压缩源代码Zip压缩源代码Zip压缩源代码Zip压缩源代码Zip压缩源代码Zip压缩源代码Zip压缩源代码Zip压缩源代码
- 2022-04-09 20:28:58下载
- 积分:1
-
MULLER s algorithm Muller classical algorithm
muller s algorithm 穆勒算法 经典-MULLER s algorithm Muller classical algorithm
- 2022-03-24 18:14:01下载
- 积分:1