算法导论学习笔记
文章平均质量分 76
benhaben
中等水平菜鸟,饭量很大,颇具潜力。
展开
-
第一章 算法在计算机中的作用
什么是算法 What are algorithms? Informally, an algorithm is anywell-defined computational procedure that takes some value, or set of values,as input and produces some value, or set of values, as原创 2009-07-18 16:33:00 · 664 阅读 · 1 评论 -
第二章 算法入门
循环不变式 loop invariantsWe use loop invariants to help us understand whyan algorithm is correct. We must show three things about a loop invariant: · Initialization: It is true prior to原创 2009-07-18 16:41:00 · 499 阅读 · 0 评论 -
使用Google Unit Test 测试你的C++代码
最近看了Bob大叔的《程序员的职业素养》,明白专业程序员是要写覆盖率100%的单元测试的,所以就在网上找了一个开源的测试框架试试,Google C++ Testing Framework网站是 http://code.google.com/p/googletest/我是在windows上使用visual studio 2012来编译使用gtest的如何使用:1.原创 2013-07-14 23:55:48 · 1747 阅读 · 0 评论