The Problem. 求解8数码问题。用最少的移动次数能使8数码还原. Best-first search.使用A*算法来解决,我们定义一个Seach Node,它是当前搜索局面的一种状态,记录了从初始到达当前状态的移动次数和上一个状态。初始化时候,当前状态移动次数为0,上一个状态为null,将...
分类:
其他好文 时间:
2014-07-16 21:29:13
阅读次数:
187
JDBC是Sun公司制定的一个能够用Java语言连接数据库的技术。一、JDBC基础知识 JDBC(Java Data Base Connectivity,java数据库连接)是一种用于执行SQL语句的Java API,能够为多种关系数据库提供统一訪问,它由一组用Java语言编写的类和接...
分类:
数据库 时间:
2014-07-16 20:54:12
阅读次数:
280
##Grunt的配置和使用(一) Grunt 和 Grunt 的插件都是通过 Node.js 的包管理器 npm 来安装和管理的。为了方便使用 Grunt ,你应该在全局范围内安装 Grunt 的命令行接口(CLI)。要做到这一点,你可能需要使用 sudo (OS X,*nix,BSD 等平台中)权...
分类:
其他好文 时间:
2014-07-16 20:42:56
阅读次数:
167
C语言链队列基本操作#include #include #include /* C语言链队列基本操作 2014年7月11日10:11:41*/typedef int qType;typedef struct node{ qType data; struct node *pNe...
分类:
编程语言 时间:
2014-07-16 19:48:26
阅读次数:
167
从官网下载 http://nodejs.org/download/Linux Binaries (.tar.gz) 下载下来的是node-v0.10.29-linux-x64.tar.gz文件解压 $ tar zxvf node-v0.10.29-linux-x64.tar.gz/etc/profi...
分类:
Web程序 时间:
2014-07-13 10:54:53
阅读次数:
267
Given a binary tree, find the maximum path sum.The path may start and end at any node in the tree.For example:Given the below binary tree, 1 ...
分类:
其他好文 时间:
2014-07-13 08:13:53
阅读次数:
251
什么是JDBC?
Java语言访问数据库的一种规范,是一套API。JDBC(Java Database Connectivity)API,即Java数据库编程接口,是一组标准的Java语言中的接口和类,使用这些接口和类,Java客户端程序可以访问各种不同类型的数据库。比如建立数据库连接、执行SQL语句进行数据的存取操作。
JDBC规范采用接口和实现分离的思想设计了J...
分类:
数据库 时间:
2014-07-12 23:19:03
阅读次数:
305
1 #include 2 #include 3 typedef struct Node 4 { 5 int data; 6 struct Node *next; 7 }Node,*LinkList; 8 9 void initList(LinkList *L)10 {11 ...
分类:
其他好文 时间:
2014-07-12 14:38:30
阅读次数:
201
#include #include #include #include using namespace std;char map[110][110];int n,m;#define inf 100000struct node{ int x,y;};vector nn;int main(){ ...