JOJ ACM 1146》的相关内容

Ruby每周一测 - 容易记的电话号码

Ruby每周一测 - Ruby Quiz 是Ruby Talk邮件列表上的一个持续了很长时间活动,每周有一个小题目被提出来,然后大家进行解答讨论。Amazon上还有相关的书: Best of Ruby Quiz。我尝试挑选其中的一些题目进行翻译,做一个每周一测系列,欢迎大家参与讨论。 -----题目分割线----- 以前在国外的影视或者广告中看到出现含字母的电话号码,比如1-800-PICK- ...
by Quake Wang 2008-04-16 浏览 (4268) 回复 (16) 关键字:

目前最快的N皇后问题算法!!!

最近老师布置了一道算法题目--N皇后问题。这个算法在本科时已经做过,现在的要求是尽可能的提高算法的执行效率。如果采用传统的办法,用3个数组来记录列、主对角线和次对角线的方式,虽然优化过语句,并且使用对称原则来减少一半的运算时间,但在1.66Ghz的机器上计算16皇后仍需要100多秒。 有的同学使用多线程方式来改进了算法,有效利用了服务器的多个CPU同时计算,好像在4CPU机器上用了17秒。但我觉得 ...
by Craft 2006-04-24 浏览 (5489) 回复 (11) 关键字:

几种排序算法的对比

引用Programming: Sort Testing Your task this week is to implement four sorts, and do experiments to see how fast they run for different sizes and types of input data sets. The sorts are: selection sort ...
by ravenex 2008-03-24 浏览 (321) 回复 (0) 关键字:

字符串变异的演示

引用Programming: String Mutation Richard Dawkins, in his book The Blind Watchmaker, explains his much-debated experiment known as the weasel program. This algorithm is designed to show that random muta ...
by ravenex 2008-03-24 浏览 (156) 回复 (0) 关键字:

[提问]有没有人听说过注册表数据库

就是写一个jdbc,然后将windows的注册表封装成一个数据库的。 btw:我google过了,没找到。
by 庄表伟 2005-04-14 浏览 (4766) 回复 (19) 关键字:

JOJ ACM 1148

A prime number is a counting number (1, 2, 3, ...) that is evenly divisible only by 1 and itself. In this problem you are to write a program that will cut some number of prime numbers from the list of ...
by fuliang 2007-04-09 浏览 (282) 回复 (0) 关键字:

JOJ ACM 2155

Mr. Jojer has written an article, but now he wants to make a copy of it and check out how many characters he has used. Input and Output You will be given an article, you should output this article a ...
by fuliang 2007-04-09 浏览 (266) 回复 (0) 关键字:

JOJ ACM 1149

Given a positive integer n, nd the positions of all 1's in its binary representation. The position of the least significant bit is 0. Example The positions of 1's in the binary representation of 13 ar ...
by fuliang 2007-04-09 浏览 (270) 回复 (0) 关键字:

JOJ ACM 1149

Given a positive integer n, nd the positions of all 1's in its binary representation. The position of the least significant bit is 0. Example The positions of 1's in the binary representation of 1 ...
by fuliang 2007-04-09 浏览 (263) 回复 (0) 关键字:

非常有用的101道算法部分常见面试题

1. Given a rectangular (cuboidal for the puritans) cake with a rectangular piece removed (any size or orientation), how would you cut the remainder of the cake into two equal halves with one straight ...
by utopiazh 2006-10-07 浏览 (284) 回复 (1) 关键字:

麻烦高手 修改一个算法 谢谢

The discrete wavelet transform is a popular tool for signal compression. In this problem, your job is to write a program to decompress a one-dimensional signal (a list of integers) that has been compr ...
by yuanshichao 2008-02-06 浏览 (701) 回复 (0)

关于Informix数据库CheckPoint的问题。欢迎大家指教

我现在的数据库服务器,在每天早上数据处理的时候。每次做checkpoint的时间都太长了,有时候甚至达到300s的长度。请大家能给点建议。 服务器为一HP小型机,4CPU,8G内存。OS为Linux系统。数据库为Informix10下面贴出我的onconfig内容 #****************************************************************** ...
by billbai 2008-07-02 浏览 (117) 回复 (2)

DMD 1.011发布

引用 What's New for D 1.011 Apr 11, 2007 New/Changed Features * Extended Codeview symbolic debug output with LF_OEM types. * Extended Dwarf symbolic debug output with DW_TAG_darray_type, DW_TA ...
by qiezi 2007-04-11 浏览 (414) 回复 (4)

关于ddbi的问题

原因搞清楚了,原来是调用约定的问题,mysql导出的方法名可能是用def文件指定的,而在ddbi中,根据extern (windows)的约定会用_mysql_free_result@4的方法来引用函数名 按照qizi的方法,重生成一个lib就OK了 qiezi 写道 1、从dll生成def文件 2、在def文件中使用alias改名 3、从def生成lib 网上有一些,比如这篇http://w ...
by tomqyp 2007-03-24 浏览 (657) 回复 (4)

Lifting again the 'Tattered Flag'

I wish to complain very respectfully,but most urgently,that the Army Estimates involved by the scheme lately explained by the Secretary of State for War are much too high,and ought to be reduced,if no ...
by 回帖专用 2007-02-28 浏览 (772) 回复 (0)

Apache HTTP Server 2.2.9

最流行的HTTP服务器软件之一.快速、可靠、可通过简单的API扩展,Perl/Python解释器可被编译到服务器中,完全免费,完全源代码开放.如果你需要创建一个每天有数百万人访问的Web服务器,Apache可能是最佳选择. 下载:Apache HTTP Server 2.2.9 for Windows (9.38 MB)下载: Apache HTTP Server 2.2.9 for Linux ...
by galaxystar 2008-06-15 浏览 (1212) 回复 (2) 关键字: apache

NetBeans6.5 M1 众多期待的特性一览表!

NetBeans6.5 M1 众多期待的特性一览表! Netbeans 6.5 M1 已经发布,最新版本的NetBeans 增强了许多功能,同时也引入了许多值得期待的新特性. 其中我比较喜欢的是DataBase 的改进,Eclipse 项目导入变得比以前更方便了,可以正确的区分Web项目 和普通项目,还有Spring   Hibernate 增强. GUI 中新增了JD ...
by gml520 2008-06-25 浏览 (3758) 回复 (16) 关键字: netbeans 6.5 m1

基于Spindle的增强HTTP Spider

构建于lucene之上的可用的Java开源Spider少之又少,spindle长期没有更新且功能不够完善,故而自己参考其源 代码重新编写了一个可扩展的WebCrawler,本着开源共享,共同进步的想法发布于此,期冀得到大家的批评指正, 有任何意见及建议均可Email联系我(kaninebruno@hotmail.com) 以下代码基于lucene-2.3.1,htmlparser-1.6, ...
by brunoplum 2008-04-01 浏览 (1226) 回复 (6) 关键字: spindle

推荐知识库条目

Comming soon