-
lisp utility lib
CLLIB is a varied collection of Common lisp tools and routines in CLOCC.
Includes:
â– "guess the animal" game; simple neural net (AI)
â– autoload function and snarfing autoloads from other files
â– basic definitions: package and path
â– base64 encoding and decoding (data format)
â– Rolodex: BBDB/vCard handling
â– check values and types of the elements of a list
â– Common Lisp HyperSpec access
â– read/write CLOS object
- 2022-02-01 20:05:38下载
- 积分:1
-
鼹鼠闯迷宫
资源描述void creatWay(int (*mg)[N],int x, int y)//在迷宫中产生一条路,使用图的深度遍历思想来实现,
{
static int dir[4][2] = {0, 1, 1, 0, 0, -1, -1, 0};////将要走的4个方向保存在二维数组中
int zx = x*2;
int zy = y*2;
int next, turn, i;
mg[zx][zy] = 0;
if(rand()%2)
turn = 1;
else
turn = 3;
for(i=0,next=rand()%4;i
- 2022-01-26 05:46:58下载
- 积分:1
-
割线算法
* To find a solution to the equation f(x) = 0* given initial approximations p0 and p1:** INPUT: initial approximation p0, p1; tolerance TOL;* maximum number of iterations N0.** OUTPUT: approximate solution p or* a message that the algorithm fails.*
- 2022-01-25 15:06:45下载
- 积分:1
-
K 遗憾查询的几何方法
返回用户可能感兴趣的元组是多准则决策的最重要目标之一。顶部 k 查询和天际线查询都是两个具代表性的查询。顶部 k 查询其优点是向用户返回元组的数目有限,但需要用户给他们确切的效用函数。轮廓查询有其优点用户不需要给其确切的效用函数但没有控制着要返回的元组数目。在本文中,我们研究了 k 遗憾查询,最近提出的查询,综合两个具代表性的查询的优点。我们先找一些有趣的几何性质为 k 遗憾查询。我们基于这些属性,定义候选点称为快乐点 k 遗憾查询,不在文献中研究了一套。这一结果不仅所有现有的算法,还所有新算法,以针对 k 遗憾查询是非常基本并且互惠互利。自从发现快乐点数目很小,可以显著改善所有现有算法的效率。此外,基于其他的几何性质,提出了两种有效的算法,每一种比最著名最快的算法更有效地执行。我们的实验结果表明我们提出的算法比跑得快的最著名的方法在合成和真实数据集上。尤其是,在我们在真实数据集上的实验中,最著名的方法花了 3 小时的时间来回答 k 遗憾查询,但我们建议的方法之一,花了大约几分钟和另一次在一秒钟内
- 2022-12-11 20:35:05下载
- 积分:1
-
verilog的111个经典实例
Verilog HDL是一种硬件描述语言,用于从算法级、结构级、门级到开关级的多种抽象设计层次的数字系统建模。 被建模的数字系统对象的复杂性可以介于开关级电路(例如pmos/nmos)、简单的门(例如库单元描述)和完整的复杂电子数字系统之间(例如CPU)
- 2022-01-28 02:35:43下载
- 积分:1
-
这是计算几个数的运算,对初学者用户有用,简单解释了代码运算...
这是计算几个数的运算,对初学者用户有用,简单解释了代码运算-This is the calculation of a few number of operations useful for the beginner users, the simple explanation of the code computing
- 2022-03-01 15:11:24下载
- 积分:1
-
Numerical calculation, using newton iteration method chord intercept method to c...
数值计算,利用newton迭代法和弦截法计算插值多项式-Numerical calculation, using newton iteration method chord intercept method to calculate the interpolation polynomial
- 2022-02-04 23:52:26下载
- 积分:1
-
经典算法,递归的典型,汉诺塔的程序,vb版的。。。。。接着还有java版本的...
经典算法,递归的典型,汉诺塔的程序,vb版的。。。。。接着还有java版本的-classic algorithms, the typical recursive, HANOR procedures, vb version. . . . . Then there java version of the.
- 2022-04-01 18:25:56下载
- 积分:1
-
链表的基本操作
#include
#include
#define LEN sizeof(struct student)
/*----------------数据定义----------------------*/
//定义一个学生信息的结构体,包括学号,姓名和结构体类型的指针
struct student
{
long num; //学号
char name[128]; //姓名
struct student *next; //结构体指针
};
typedef struct student * stuNode;
int n=0; //全局变量,记录链表的长度
/*---------------函数声明---------------------*/
stuNode Create(); //创建一个新的链表 &nbs
- 2022-03-11 02:44:17下载
- 积分:1
-
求概率密度函数
对未知的分布绘制分布曲线,将数据文件按照高度和分布准备,预先判断分布区间,然后对区间进行细分,得到每一区间的概率,最后获得所有区间的概率分布情况,绘制概率分布曲线。
- 2022-09-29 16:45:05下载
- 积分:1