摘要: 作为新人,及时把自己在学习和工作中的所得记录输出是很有必要的,一方面便于日后回顾,另一方面文字驾驭能力也是一个人最重要的软实力之一。 之前有在CSDN写过一些学习笔记,但是时间越长越感觉那里很乱,尤其是各种奇葩广告。渐渐发现博客园是个比较纯粹的技术园地,适合安安静静地写一些东西,有很多大牛在这里分享 阅读全文
posted @ 2018-03-10 22:47 huidan 阅读(201) 评论(0) 推荐(0) 编辑
摘要: Lecture 3 Graph Problems Graph Theory(图论) 图论是数学的一个分支,它以图为研究对象,研究顶点和边组成的图形的数学理论和方法。nodes, edges 现实世界中很多事物都是有联系的,因此图论特别适合于解决现实问题。 可应用于路径规划 Adjacency Lis 阅读全文
posted @ 2018-03-06 14:48 huidan 阅读(229) 评论(0) 推荐(0) 编辑
摘要: Lecture 2 Decision Trees and Dynamic Programming Brute Force Algorithms 暴力算法,穷举法 Decision Tree class Food(object): def __init__(self, n, v, w): self.n 阅读全文
posted @ 2018-03-04 21:43 huidan 阅读(390) 评论(0) 推荐(0) 编辑
摘要: Introduction to Computational Thinking and Data Science Practice, practice, and practice ! Optimization models 优化模型 Statistical models 统计模型 Simulation 阅读全文
posted @ 2018-03-04 00:00 huidan 阅读(430) 评论(0) 推荐(0) 编辑
摘要: Computational Thinking is becoming a fundamental skill ! abstractions, algorithms, automated excution Use it! Computational Thinking is becoming a fun 阅读全文
posted @ 2018-03-03 10:41 huidan 阅读(263) 评论(0) 推荐(0) 编辑
摘要: 计算的复杂性 理解程序运行的效率 通过计时来评估 通过计数来评估 通过增长级来评估 Big O Notation大O符号 搜索算法和排序算法 搜索算法 线性搜索 二分搜索 排序算法 猴子排序Bogo Sort 冒泡排序Bubble Sort 选择排序Selection Sort 归并排序Merge 阅读全文
posted @ 2018-03-01 23:15 huidan 阅读(604) 评论(0) 推荐(0) 编辑
摘要: Object Oriented Programming-OOP Class instance Method Generator 练习题笔记 Object Oriented Programming-OOP pyhon中一切都是对象,各种对象实例 要将创建类和使用类中的实例区分开 创建类涉及:定义类的名 阅读全文
posted @ 2018-02-28 23:39 huidan 阅读(304) 评论(0) 推荐(0) 编辑
摘要: Testing and Debugging 防御性编程 测试的几种情况 Bugs Debugging Exceptions and Assertions try except else finally Assertions 练习题笔记 7 Testing and Debugging 防御性编程 一开 阅读全文
posted @ 2018-02-26 23:42 huidan 阅读(265) 评论(0) 推荐(0) 编辑
摘要: Structured Types Tuple 如果tuple中只有一个元素,需要加逗号“,”,否则不能被识别为tuple tuple中的元素不可被改变(string也是) 函数返回多个值时可以用tuple 使用tuple Lists # 删去list中元素的3种方法 list.del(list[in 阅读全文
posted @ 2018-02-25 23:28 huidan 阅读(218) 评论(0) 推荐(0) 编辑
摘要: Simple Programs Bisection Search 二分法能够极大地减少运算时间 穷举法 计算机如何处理浮点数 Newton-Raphson方法 牛顿迭代法(Newton’s method)又称为牛顿-拉夫逊方法(Newton-Raphson method) 使用牛顿迭代法来计算平方根 阅读全文
posted @ 2018-02-24 23:07 huidan 阅读(300) 评论(0) 推荐(0) 编辑