《JOJ ACM 1149》的相关内容
相关讨论
目前最快的N皇后问题算法!!!
最近老师布置了一道算法题目--N皇后问题。这个算法在本科时已经做过,现在的要求是尽可能的提高算法的执行效率。如果采用传统的办法,用3个数组来记录列、主对角线和次对角线的方式,虽然优化过语句,并且使用对称原则来减少一半的运算时间,但在1.66Ghz的机器上计算16皇后仍需要100多秒。
有的同学使用多线程方式来改进了算法,有效利用了服务器的多个CPU同时计算,好像在4CPU机器上用了17秒。但我觉得 ...
by Craft 2006-04-24 浏览 (5487) 回复 (11) 关键字:
Ruby每周一测 - 容易记的电话号码
Ruby每周一测 - Ruby Quiz 是Ruby Talk邮件列表上的一个持续了很长时间活动,每周有一个小题目被提出来,然后大家进行解答讨论。Amazon上还有相关的书: Best of Ruby Quiz。我尝试挑选其中的一些题目进行翻译,做一个每周一测系列,欢迎大家参与讨论。
-----题目分割线-----
以前在国外的影视或者广告中看到出现含字母的电话号码,比如1-800-PICK- ...
by Quake Wang 2008-04-16 浏览 (4263) 回复 (16) 关键字:
JAXB特性(读书)
这个星期要做Biztalk跟Java应用XML交互,研究一下JAXB相关资料,先收集一下有空了回头整理分类
附件中有一个简单的JAXB中文教程希望对大家有用
<<SOA Using Java Web Serivce>>关于JAX-WS的特性描述和我的一些理解。
JAXB 2.0 defines a standard Java/XML binding from Jav ...
by Joo 2008-04-21 浏览 (339) 回复 (3) 关键字:
自己翻译的Java.In.A.Nutshell.5th中泛型一章,欢迎拍砖把文章砸的漂亮一些
做些说明吧:转网页的东西,改起来稍觉得的麻烦,就可能滞后。不过pdf文件会不定时的及时更新
4.1. Generic Types
Generic types and methods are the defining new feature of Java 5.0. A generic type is defined using one or more type variables and has ...
by Julysea 2006-09-21 浏览 (11078) 回复 (19) 关键字:
[提问]有没有人听说过注册表数据库
就是写一个jdbc,然后将windows的注册表封装成一个数据库的。
btw:我google过了,没找到。
by 庄表伟 2005-04-14 浏览 (4766) 回复 (19) 关键字:
相关博客
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 1107
The most important part of a GSM network is so called Base Transceiver Station (BTS). These transceivers form the areas called cells (this term gave the name to the cellular phone) and every phone con ...
by fuliang 2007-04-09 浏览 (268) 回复 (0) 关键字:
JOJ ACM 1146
For each list of words, output a line with each word reversed without changing the order of the words.
This problem contains multiple test cases!
The first line of a multiple input is an integer N, t ...
by fuliang 2007-04-09 浏览 (377) 回复 (0) 关键字:
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) 关键字:
(经典)C++ tutorial for C users
C++ tutorial for C usersThis text enunciates and illustrates features and basic principles of C++. It is aimed at experienced C users wishing to learn C++. It can also be interesting for beginner C++ ...
by yeby 2005-12-07 浏览 (34) 回复 (0) 关键字:
相关圈子讨论
麻烦高手 修改一个算法 谢谢
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)
Flex With Spring [转]
来源: http://coenraets.org/flex-spring
What is Spring?Spring is one of the most popular Java frameworks. The foundation ofthe Spring framework is a lightweight component container thatimplements ...
by mikel 2007-11-23 浏览 (994) 回复 (1)
相关新闻
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 浏览 (1211) 回复 (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 浏览 (3753) 回复 (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 浏览 (1225) 回复 (6) 关键字: spindle
推荐知识库条目
Comming soon

