搜索资源列表
aaa
- 分治法解决最近对问题 画一条垂直线x=c,把这些给定点分为两个包含n/2个点的子集S1和S2,使得n/2个点位于直线的左侧或直线上,另外n/2个点位于直线的右侧或直线上;遵循分治法的思想,递归地求出左子集S1和右子集S2中的最近对,分别为d1与d2;之后d=min{d1,d2}。合并过程:在以垂线x=c为对称轴,2d为宽度的区域内求最近两个点的距离,记为d3;求D=min{d,d3};
aaa
- 稀疏矩阵十字链表相乘
迷宫问题aaa
- 迷宫问题 数据结构-maze data structure problem
栈aaa
- 数据结构中栈的相关操作,数据结构中栈的相关操作-data structure stack of operation, stack data structure of operation
aaa
- 数据结构书上例子的代码,非常之全 可以用于学习参考-Data structure example of the code book, a very wide learning can be used for reference
aaa
- 根据《算法与数据结构》课程的结构体系,设计一个基于DOS菜单的应用程序。要利用多级菜单实现各种功能。比如,主界面是大项,诸如线性表、栈与队列、串与数组及广义表等,子菜单使这些大项中的一些功能或者小项。要求所有子菜单退出到他的父菜单。-According to " Algorithms and Data Structures" course of the structural system, design a menu-based DOS applications. To tak
aaa
- 对任意给定的图(顶点数不小于20,边数不少于30,图的类型可以是有向图、无向图、有向网、无向网),能够输入图的顶点和边(或弧)的信息,并存储到相应存储结构(邻接矩阵、邻接表、十字链表、邻接多重表,任选其中两种类型),对自己所创建的图完成以下操作: 对无向图求每个顶点的度,或对有向图求每个顶点的入度和出度(5分) 完成插入顶点和边(或弧)的功能(5分) 完成删除顶点和边(或弧)的功能(5分) 两种存储结构的转换(5分),如果其中一种存储结构为十字链表或邻接多重表则增加5分。
aaa
- 清华版 严蔚敏 数据结构实验(C语言)二叉树实现程序-Wei-Min Yan Tsinghua Science experiment data structure (C language) Binary Tree program
IDL
- 教程是比较基础,从数组、结构体领入门,简单易懂-aaa
aaa
- 已知A[n]为整数数组,试写出实现下列运算的递归算法: (1) 求数组A中的最大整数。 (2) 求n个整数的和。 (3) 求n个整数的平均值。 -Known to A [n] is an integer array, try to write to achieve the following recursive algorithm for computing: (1) Find the largest integer in the array A. (2) Find n i
aaa
- 给定一个k值 在任意一个n阶矩阵中找出最长且最接近k的一条路径-Given a k value in any of the matrix of order n to find the longest and closest to the path of k
DeleateSubList
- 自行设计随机生成n=30的S串;实现删除子串算法Deletestr(sqstr s,sqstr sub);分析T(n);讨论s=’aaa….abbb….b’,sub=’ab’的执行结果。-Design their own randomly generated n = 30 S-string Delete the substring the algorithm Deletestr (sqstr s, sqstr sub) analysis of T (n) discussion s =
aPaaPaaaP....
- 求s=a+a aa+aaaa+aa...a的值,其中a是一个数字。例如2+22+222+2222+22222(此时共有5个数相加),几个数相加有键盘控制。 1.程序分析:关键是计算出每一项的值。 -S = a+aa+aaa+aaaa+aa ... a required value, wherein a is a number. For example 2+22+222+2222+22222 (In this case the number of the sum total of fi
