上一页 1 ··· 4 5 6 7 8 9 下一页

2018年3月25日

摘要: 1 顺序查找O(n) 2 二分查找O(lgn) 3 哈希查找O(1) 概念:来自wikipedia 阅读全文

posted @ 2018-03-25 12:40 _hqc 阅读(156) 评论(0) 推荐(0) 编辑

2018年2月12日

摘要: 一些基本递归式的解决方案及其应用实例 主定理的三种情况 排序算法之侏儒排序法 排序算法之归并排序法 阅读全文

posted @ 2018-02-12 12:35 _hqc 阅读(153) 评论(0) 推荐(0) 编辑

2018年2月11日

摘要: 一、渐进记法 三个重要的记号 Ο、Ω、Θ,Ο记法表示渐进上界,Ω记法表示渐进下界,Θ记法同时提供了函数的上下界 几种常见的渐进运行时间实例 三种重要情况 最好的情况,最坏的情况,平均情况 最坏的情况通常是最有用的情况,可以对算法效率做出最佳保证 实证式算法评估 Tip1:If possible, d 阅读全文

posted @ 2018-02-11 15:24 _hqc 阅读(332) 评论(0) 推荐(0) 编辑

2018年2月4日

摘要: 219. Contains Duplicate II Given an array of integers and an integer k, find out whether there are two distinct indices i and j in the array such that 阅读全文

posted @ 2018-02-04 20:11 _hqc 阅读(156) 评论(0) 推荐(0) 编辑

2018年2月3日

摘要: 122. Best Time to Buy and Sell Stock II Say you have an array for which the ith element is the price of a given stock on day i. Design an algorithm to 阅读全文

posted @ 2018-02-03 10:15 _hqc 阅读(144) 评论(0) 推荐(0) 编辑

2018年1月31日

摘要: 66. Plus One Given a non-negative integer represented as a non-empty array of digits, plus one to the integer. You may assume the integer do not conta 阅读全文

posted @ 2018-01-31 23:44 _hqc 阅读(163) 评论(0) 推荐(0) 编辑

摘要: 原文出处:http://blog.csdn.net/zhongkelee/article/details/44064401 一、PCA简介 1. 相关背景       上完陈恩红老师的《机器学习与知识发现》和季海波老师的《矩阵代数》两门课之后,颇有体 阅读全文

posted @ 2018-01-31 14:49 _hqc 阅读(290) 评论(0) 推荐(0) 编辑

2018年1月30日

摘要: 1. Two Sum Given an array of integers, return indices of the two numbers such that they add up to a specific target. You may assume that each input wo 阅读全文

posted @ 2018-01-30 22:06 _hqc 阅读(169) 评论(0) 推荐(0) 编辑

2018年1月29日

摘要: 1 载入matplotli的绘图模块,并重命名为plt 2 折线图 3 散点图 4 柱状图 5 饼图 6 直方图 7 子图 8 在图中显示中文 matplotlib默认无法显示中文,可直接在程序修改字体 阅读全文

posted @ 2018-01-29 21:13 _hqc 阅读(624) 评论(0) 推荐(1) 编辑

摘要: 1 数组对象 创建数组 快速生成x*y的全零数组 0~1的随机数 一维数组转化为二维数组 ps:使用reshape(-1,5)得到一样的结果,会根据列自动适应行 构造更高维的 二维数组转化为一维数组 查看数组属性 a.ndim查看维度,a.shape查看各维度大小,a.size查看元素个数,a.dt 阅读全文

posted @ 2018-01-29 19:54 _hqc 阅读(714) 评论(0) 推荐(0) 编辑

上一页 1 ··· 4 5 6 7 8 9 下一页