原子:单词抠掉个别字母的子串,如:abc 中的ac bc ab abc注意:ca不算
有效原子:长度大于单词长60%的原子,可用于联想记忆,比较相似单词.
<SCRIPT LANGUAGE= "vbScript ">
str= "aaccb "
' '创建全局字典对象,用来存储所有得到的原子结果
Set dict=CreateObject( "Scripting.Dictionary ")
Dim a(100)
strLength=Len(str)
' '原子
atomyLength=round(strLength*0.6)
For x=atomyLength To strLength
a(0)=x
 阅读全文>
发表于 @ 2008年07月22日 17:12:00|评论(loading...)|收藏
using System;
using System.Collections.Generic;
public class UTest
{
static 阅读全文>
发表于 @ 2008年07月22日 17:06:00|评论(loading...)|收藏
已知点集合 V={v1,v2,v3...vn}通过边连接起来
深度优先模型:
void Find1(v)
{
while(广度++)
{
Find1(新找到的点);//递归
}
}
可以看出他先把某一分支的第一分支一直搜到底,再搜第2分支的第一。。。。
广度优先模型:
声明全局点集合 R={r0}初始为出发节点。
void Find2(r)
{
while(广度++)
{
R.添加(新找到的点);
}
R.移除(旧的点);
while(新广度++)
{
Find2(r);//递归
}阅读全文>
发表于 @ 2008年07月22日 16:59:00|评论(loading...)|收藏
写了一个生成迷宫的算法:),贴代码,效果见
http://www.dullwolf.cn/Wall/
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="Wall._Default" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server"&阅读全文>
发表于 @ 2008年07月22日 16:27:00|评论(loading...)|编辑|收藏