<?xml version="1.0" encoding="utf-8"?><feed xmlns="http://www.w3.org/2005/Atom"><title type="text">博客园_Gigabyte</title><subtitle type="text">香依香偎孤旅独行的驿站</subtitle><id>http://feed.cnblogs.com/blog/u/3934/rss</id><updated>2010-05-20T00:28:45Z</updated><author><name>香依香偎孤旅独行的驿站</name><uri>http://www.cnblogs.com/Gigabyte/</uri></author><generator>feed.cnblogs.com</generator><link rel="alternate" type="text/html" href="http://www.cnblogs.com/Gigabyte/"/><link rel="self" type="application/atom+xml" href="http://feed.cnblogs.com/blog/u/3934/rss"/><entry><id>http://www.cnblogs.com/Gigabyte/archive/2010/04/16/Reader-Notes-02.html</id><title type="text">读书笔记二</title><summary type="text">《编程珠玑》第二章问题一：给定一个包含40亿个32位整数的文件，整数排列次序随机。请查找一个此文件中不存在的32位整数。解答：32位整数共有0xFFFFFFFF个。如果用一个bit标示一个整数，一共需要约537MB内存。如果内存足够，就构建一个这样大的位图，就可以很快找到的不存在的整数了。问题二：问题一中，如果内存限制为100MB，如何实现？解答：可以采用之前提过的多通道算法，对文件读取六次，每次...</summary><published>2010-04-15T17:48:00Z</published><updated>2010-04-15T17:48:00Z</updated><author><name>香依香偎孤旅独行的驿站</name><uri>http://www.cnblogs.com/Gigabyte/</uri></author><link rel="alternate" href="http://www.cnblogs.com/Gigabyte/archive/2010/04/16/Reader-Notes-02.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/Gigabyte/archive/2010/04/16/Reader-Notes-02.html"/><content type="text">《编程珠玑》第二章问题一：给定一个包含40亿个32位整数的文件，整数排列次序随机。请查找一个此文件中不存在的32位整数。解答：32位整数共有0xFFFFFFFF个。如果用一个bit标示一个整数，一共需要约537MB内存。如果内存足够，就构建一个这样大的位图，就可以很快找到的不存在的整数了。问题二：问题一中，如果内存限制为100MB，如何实现？解答：可以采用之前提过的多通道算法，对文件读取六次，每次...</content></entry><entry><id>http://www.cnblogs.com/Gigabyte/archive/2010/04/14/Reader-Notes-01.html</id><title type="text">读书笔记一</title><summary type="text">《编程珠玑》第一章问题一：一个文件包含了10,000,000个记录，每个记录的内容是7位的整数。记录不会重复。需要一个程序来读取文件内容，需要将这些记录排序后输出文件，内存限制1M左右。解答：由于记录不会重复，因此每个记录用一个bit标示，就可以很简单的完成记录的标记和排序。这样需要大约1.25M的内存，时间和空间都不大。问题二：问题一中，如果严格限定不能超过1M的内存呢？解答：多通道进行，以时间...</summary><published>2010-04-13T16:50:00Z</published><updated>2010-04-13T16:50:00Z</updated><author><name>香依香偎孤旅独行的驿站</name><uri>http://www.cnblogs.com/Gigabyte/</uri></author><link rel="alternate" href="http://www.cnblogs.com/Gigabyte/archive/2010/04/14/Reader-Notes-01.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/Gigabyte/archive/2010/04/14/Reader-Notes-01.html"/><content type="text">《编程珠玑》第一章问题一：一个文件包含了10,000,000个记录，每个记录的内容是7位的整数。记录不会重复。需要一个程序来读取文件内容，需要将这些记录排序后输出文件，内存限制1M左右。解答：由于记录不会重复，因此每个记录用一个bit标示，就可以很简单的完成记录的标记和排序。这样需要大约1.25M的内存，时间和空间都不大。问题二：问题一中，如果严格限定不能超过1M的内存呢？解答：多通道进行，以时间...</content></entry><entry><id>http://www.cnblogs.com/Gigabyte/archive/2010/02/15/jisuanjijiafa.html</id><title type="text">计算机加法</title><summary type="text">数学中最简单的运算就是加法和减法。然而在计算机中，最简单的运算却是 AND、OR 和 NOT。那计算机是如何计算这三个基本操作，通过这三个基本操作又是如何计算出数学中的加法呢？</summary><published>2010-02-15T13:48:00Z</published><updated>2010-02-15T13:48:00Z</updated><author><name>香依香偎孤旅独行的驿站</name><uri>http://www.cnblogs.com/Gigabyte/</uri></author><link rel="alternate" href="http://www.cnblogs.com/Gigabyte/archive/2010/02/15/jisuanjijiafa.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/Gigabyte/archive/2010/02/15/jisuanjijiafa.html"/><content type="text">数学中最简单的运算就是加法和减法。然而在计算机中，最简单的运算却是 AND、OR 和 NOT。那计算机是如何计算这三个基本操作，通过这三个基本操作又是如何计算出数学中的加法呢？</content></entry><entry><id>http://www.cnblogs.com/Gigabyte/archive/2010/02/07/jianti_fanti_auto_convert.html</id><title type="text">简繁体转换</title><summary type="text">在页面上自动进行简体和繁体转换的代码</summary><published>2010-02-07T08:25:00Z</published><updated>2010-02-07T08:25:00Z</updated><author><name>香依香偎孤旅独行的驿站</name><uri>http://www.cnblogs.com/Gigabyte/</uri></author><link rel="alternate" href="http://www.cnblogs.com/Gigabyte/archive/2010/02/07/jianti_fanti_auto_convert.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/Gigabyte/archive/2010/02/07/jianti_fanti_auto_convert.html"/><content type="text">在页面上自动进行简体和繁体转换的代码</content></entry><entry><id>http://www.cnblogs.com/Gigabyte/archive/2010/01/24/1655198.html</id><title type="text">所未见的2009</title><summary type="text"/><published>2010-01-24T07:26:00Z</published><updated>2010-01-24T07:26:00Z</updated><author><name>香依香偎孤旅独行的驿站</name><uri>http://www.cnblogs.com/Gigabyte/</uri></author><link rel="alternate" href="http://www.cnblogs.com/Gigabyte/archive/2010/01/24/1655198.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/Gigabyte/archive/2010/01/24/1655198.html"/><content type="text"/></entry><entry><id>http://www.cnblogs.com/Gigabyte/archive/2009/06/18/1505433.html</id><title type="text">质数筛选器</title><summary type="text">质数筛选器</summary><published>2009-06-17T16:23:00Z</published><updated>2009-06-17T16:23:00Z</updated><author><name>香依香偎孤旅独行的驿站</name><uri>http://www.cnblogs.com/Gigabyte/</uri></author><link rel="alternate" href="http://www.cnblogs.com/Gigabyte/archive/2009/06/18/1505433.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/Gigabyte/archive/2009/06/18/1505433.html"/><content type="text">质数筛选器</content></entry><entry><id>http://www.cnblogs.com/Gigabyte/archive/2009/01/03/you_can_shine.html</id><title type="text">让自己闪亮</title><summary type="text"/><published>2009-01-03T14:12:00Z</published><updated>2009-01-03T14:12:00Z</updated><author><name>香依香偎孤旅独行的驿站</name><uri>http://www.cnblogs.com/Gigabyte/</uri></author><link rel="alternate" href="http://www.cnblogs.com/Gigabyte/archive/2009/01/03/you_can_shine.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/Gigabyte/archive/2009/01/03/you_can_shine.html"/><content type="text"/></entry><entry><id>http://www.cnblogs.com/Gigabyte/archive/2008/09/28/1301115.html</id><title type="text">去医院看病</title><summary type="text">排队三小时，治病只需要十秒钟。 “什么问题呀？哦，小问题。好吃好睡就行啦，开点药回去吃吃吧。下一个！” 继续排队一小时，交钱领药。回家打开包装，发现几瓶药分别治疗： 神经病。老年痴呆。中风。偏瘫。 OK，问题来了。知道这是什么病么？</summary><published>2008-09-27T16:11:00Z</published><updated>2008-09-27T16:11:00Z</updated><author><name>香依香偎孤旅独行的驿站</name><uri>http://www.cnblogs.com/Gigabyte/</uri></author><link rel="alternate" href="http://www.cnblogs.com/Gigabyte/archive/2008/09/28/1301115.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/Gigabyte/archive/2008/09/28/1301115.html"/><content type="text">排队三小时，治病只需要十秒钟。 “什么问题呀？哦，小问题。好吃好睡就行啦，开点药回去吃吃吧。下一个！” 继续排队一小时，交钱领药。回家打开包装，发现几瓶药分别治疗： 神经病。老年痴呆。中风。偏瘫。 OK，问题来了。知道这是什么病么？</content></entry><entry><id>http://www.cnblogs.com/Gigabyte/archive/2008/01/16/1040631.html</id><title type="text">新手训练课</title><summary type="text">消息来源：Alfred Thompson: How To Teach Your Child to Program M$的Randy Guthrie发现自己的孩子Seth有兴趣学习编程，便开始亲自辅导，并在BOSS的提醒下将辅导的过程以BLOG记之，挺有趣的。如果你也想将某人推入Programmer或者Coder的幻暝界中，不妨参考一下这位微软校园关系经理的博客MIS Laboratory。 Ran...</summary><published>2008-01-15T18:33:00Z</published><updated>2008-01-15T18:33:00Z</updated><author><name>香依香偎孤旅独行的驿站</name><uri>http://www.cnblogs.com/Gigabyte/</uri></author><link rel="alternate" href="http://www.cnblogs.com/Gigabyte/archive/2008/01/16/1040631.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/Gigabyte/archive/2008/01/16/1040631.html"/><content type="text">消息来源：Alfred Thompson: How To Teach Your Child to Program M$的Randy Guthrie发现自己的孩子Seth有兴趣学习编程，便开始亲自辅导，并在BOSS的提醒下将辅导的过程以BLOG记之，挺有趣的。如果你也想将某人推入Programmer或者Coder的幻暝界中，不妨参考一下这位微软校园关系经理的博客MIS Laboratory。 Ran...</content></entry><entry><id>http://www.cnblogs.com/Gigabyte/archive/2007/12/02/980083.html</id><title type="text">其言也善哉</title><summary type="text">原文：jaybaz [MS] WebLog: Parting words for dear friends 在临走之前，我乐于表达一些对于M$的软件开发的建议。 清晰的代码价值连城 M$的许多开发人员还没有明白，努力写出清晰易读的代码能带来多么巨大的价值。我曾经看到某个家伙在一个600行的函数中间又签入了200行代码。我觉得那个函数原本已经超长597行了！完全可以用Extract Method把代...</summary><published>2007-12-02T09:21:00Z</published><updated>2007-12-02T09:21:00Z</updated><author><name>香依香偎孤旅独行的驿站</name><uri>http://www.cnblogs.com/Gigabyte/</uri></author><link rel="alternate" href="http://www.cnblogs.com/Gigabyte/archive/2007/12/02/980083.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/Gigabyte/archive/2007/12/02/980083.html"/><content type="text">原文：jaybaz [MS] WebLog: Parting words for dear friends 在临走之前，我乐于表达一些对于M$的软件开发的建议。 清晰的代码价值连城 M$的许多开发人员还没有明白，努力写出清晰易读的代码能带来多么巨大的价值。我曾经看到某个家伙在一个600行的函数中间又签入了200行代码。我觉得那个函数原本已经超长597行了！完全可以用Extract Method把代...</content></entry></feed>
