代码改变世界

Using C for CGI Programming(5)

2010-09-18 12:20 by shuisheng, 200 阅读, 0 推荐, 收藏,
摘要:Mar 01, 2005ByClay DowlinginSoftware--You can speed up complex Web tasks while retaining the simplicity of CGI. With many useful libraries available, the jump from a scripting language to C isn't as ... 阅读全文

Using C for CGI Programming(4)

2010-09-18 12:19 by shuisheng, 243 阅读, 0 推荐, 收藏,
摘要:Mar 01, 2005ByClay DowlinginSoftware--You can speed up complex Web tasks while retaining the simplicity of CGI. With many useful libraries available, the jump from a scripting language to C isn't as ... 阅读全文

Using C for CGI Programming(3)

2010-09-18 12:18 by shuisheng, 480 阅读, 1 推荐, 收藏,
摘要:Mar 01, 2005ByClay DowlinginSoftware--You can speed up complex Web tasks while retaining the simplicity of CGI. With many useful libraries available, the jump from a scripting language to C isn't as ... 阅读全文

Using C for CGI Programming(1)

2010-09-18 12:16 by shuisheng, 268 阅读, 0 推荐, 收藏,
摘要:Mar 01, 2005ByClay DowlinginSoftware--You can speed up complex Web tasks while retaining the simplicity of CGI. With many useful libraries available, the jump from a scripting language to C isn't as ... 阅读全文

Using C for CGI Programming(2)

2010-09-18 12:16 by shuisheng, 178 阅读, 0 推荐, 收藏,
摘要:Mar 01, 2005ByClay DowlinginSoftware--You can speed up complex Web tasks while retaining the simplicity of CGI. With many useful libraries available, the jump from a scripting language to C isn't as ... 阅读全文

Computer programming thread FQA

2010-09-16 10:26 by shuisheng, 127 阅读, 0 推荐, 收藏,
摘要:这里是国外一个线程编程的newgroups FAQhttp://www.lambdacs.com/cpt/FAQ.html 阅读全文

How to enable IP Forwarding in Linux

2010-09-15 17:18 by shuisheng, 1231 阅读, 0 推荐, 收藏,
摘要:By default any modern Linux distributions will have IP Forwarding disabled. This is normally a good idea, as most peoples will not need IP Forwarding, but if we are setting up a Linux router/gateway o... 阅读全文

大数据量问题

2010-09-15 15:33 by shuisheng, 346 阅读, 0 推荐, 收藏,
摘要:1.Bloom filter适用范围:可以用来实现数据字典,进行数据的判重,或者集合求交集基本原理及要点:对于原理来说很简单,位数组+k个独立hash函数。将hash函数对应的值的位数组置1,查找时如果发现所有hash函数对应位都是1说明存在,很明显这个过程并不保证查找的结果是100%正确的。同时也不支持删除一个已经插入的关键字,因为该关键字对应的位会牵动到其他的关键字。所以一个简单的改进就是 c... 阅读全文

有个数组中有100w个数,其中有一个数重复了50w次,要求找出这个数字

2010-09-15 15:28 by shuisheng, 203 阅读, 0 推荐, 收藏,
摘要:todo 阅读全文

有10亿个浮点数,从中找出1万个最大的数

2010-09-15 15:27 by shuisheng, 215 阅读, 0 推荐, 收藏,
摘要:给一个基于最小二叉堆的方案。第一阶段,向最小二叉堆中插入前一万个浮点数。第二阶段,从第一万零一个浮点数开始,将之与最小二叉堆顶部的最小值比较。如果小于这个最小值,把最小值弹出并将新值插入到二叉堆中。重复此过程直到遍历完成。 阅读全文