1.3.1 1.3.2 was best times of the was the it (1 left on stack) 1.3.3 解题思路: 因为栈是后进先出的,又是按0到9这个顺序进行压栈的(push),因此如果pop出了某个值x,则后边比x小的值出现的顺序必须是逆序的。 举例,如果出现了 ...
分类:
编程语言 时间:
2017-03-05 19:20:46
阅读次数:
452
http://open.163.com/special/opencourse/algorithms.html 个人理解 渐进分析 is to ignore machine-dependent constants and, instead of the actual running time look ...
分类:
编程语言 时间:
2017-03-01 20:42:10
阅读次数:
357
文章来源:https://www.dezyre.com/article/top-10-machine-learning-algorithms/202 本人自行翻译,如有错误,还请指出。后续会继续补充实例及代码实现。 3.机器学习算法概述 3.1 朴素贝叶斯分类器算法 手动分类网页,文档,电子邮件或任 ...
分类:
编程语言 时间:
2017-02-13 20:22:01
阅读次数:
441
文章来源:https://www.dezyre.com/article/top-10-machine-learning-algorithms/202 本人自行翻译,如有错误,还请指出。后续会继续补充实例及代码实现。 根据最近的一项研究,在未来10年,机器学习算法将取代全球25%的工作机会。 随着大数 ...
分类:
编程语言 时间:
2017-02-13 20:11:54
阅读次数:
165
根据Jikai Tang的网站和视频总结如下, http://www.tangjikai.com/algorithms/leetcode-binary-search 1. 在sorted array里面找一个特定的数。 由于left和right可以相等,所以L2使用的是while l <= r。L3 ...
分类:
其他好文 时间:
2017-02-05 12:31:53
阅读次数:
143
Mainpage OpenCV 2.4.13.0 documentation: OpenCV Tutorials (c++) Theory Note: The explanation below belongs to the book Computer Vision: Algorithms and ...
分类:
编程语言 时间:
2017-01-26 09:49:39
阅读次数:
205
策略模式的定义 策略模式(Strategy Pattern)是一种比较简单的模式,也叫做政策模式(Policy Pattern)。其定义如下: Define a family of algorithms,encapsulate each one,and make them interchangeab ...
分类:
其他好文 时间:
2017-01-13 00:40:49
阅读次数:
133
There is a plethora of classification algorithms available to people who have a bit of coding experience and a set of data. A common machine learning ...
分类:
其他好文 时间:
2017-01-12 21:28:27
阅读次数:
293
这周编程作业是实现检测点共线的算法。和排序算法有关系的地方在于,对斜率排序后可以很快的检测出来哪些点是共线的,另外这个算法的瓶颈也在于排序的性能。 一点收获: java传参数时传递的是值,这很多人都知道,只不过特别要注意的是对于引用类型,传递的是“引用的值”,也就是说传递的是指针的副本,因此虽然似乎 ...
分类:
其他好文 时间:
2017-01-05 23:45:57
阅读次数:
195