- 博客(5)
- 资源 (1)
- 收藏
- 关注
原创 Fibonacci法
#includeiostream>#includestdio.h>#includecmath>using namespace std;//the accuracyconst double delta=1e-4;const int MAX=200;double fib[MAX];//the functiondouble func(double x)...{ return exp(x)
2008-04-08 14:14:00 562
原创 0.618法(golden ratio search)
最优化方法课程里面的,照书上的方法编了一个程序。 #includeiostream>#includecmath>using namespace std;const double delta=0.00001;//the functiondouble func(double x)...{ return exp(x)+exp(-x);}int main(
2008-04-08 14:09:00 615
原创 disjoint set (union-find set) (并查集)
ref:http://en.literateprograms.org/Disjoint_set_data_structure_(C)The three main operations in disjoint set are: MakeSet: Create a new partition containing a single given element. Find: Figure out wh
2008-03-27 17:18:00 559
原创 Config log4j
reference:http://www.vipan.com/htdocs/log4jhelp.html package log4j;import java.util.Enumeration;import java.util.Properties;import org.apache.log4j.Category;import org.apache.log4j.Priority;pub
2008-03-25 15:30:00 349
原创 summary on DB_logging_handle
1.two comments on mysql.drop table in Mysql database:DROP TABLE IF EXISTS table_name; create table in Mysql database:CREATE TABLE table_name( id INT NOT NULL AUTO_INCREMENT PRIMARY KEY
2008-03-23 19:24:00 259
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人