
数据结构学习
Nino与林夕
这个作者很懒,什么都没留下…
展开
-
【Machine Learning 作业】第八周ex7&第九周ex8
ex7 Unsupervised Learning findClosestCentroids.m 这里又用上了repmat大法。毕竟初识数据结构之后,总想让时间复杂度最低,因此在想各种方式去减少。问题是matlab一个大问题就是不开源,因此各个函数的底层是未知的。比如自己编一个代码在C上跑和matlab用函数跑,往往是matlab更慢。但matlab就胜于自己的矩阵运算以及高度集成化,简单还易上手。走偏了,走偏了。。。 for i=1:size(X,1) dis=repmat(X(i,:),K,1);原创 2020-07-30 17:14:13 · 266 阅读 · 0 评论 -
04-树6 Complete Binary Search Tree (30分)【Python】【数据结构学习(2)】
04-树6 Complete Binary Search Tree (30分)【Python】 数据结构学习(2) A Binary Search Tree (BST) is recursively defined as a binary tree which has the following properties: The left subtree of a node contains only nodes with keys less than the node’s key. The right su原创 2020-05-22 17:19:16 · 212 阅读 · 0 评论