搜索结果
找到约 27 项符合
Merge 的查询结果
按分类筛选
数据结构 编程题(15_01.c) 结构 struct student { long num char name[20] int score struct student *
编程题(15_01.c)
结构
struct student
{
long num
char name[20]
int score
struct student *next
}
链表练习:
(1).编写函数struct student * creat(int n),创建一个按学号升序排列的新链表,每个链表中的结点中
的学号、成绩由键盘输入,一共n个节点。
(2).编写函数void print(struct student *head),输出 ...
Jsp/Servlet 此小程序用java实现了可以分割的背包问题
此小程序用java实现了可以分割的背包问题,开发平台是Eclipse。其中主要是用贪心算法实现背包问题,在将物品进行排序时,没有使用经典的merge-sort算法,而是直接使用了java中Arrays类的sort的方法,但要自己定义类,实现接口Comparator。 ...
Linux/Unix编程 LINUX下的文件比较工具
LINUX下的文件比较工具,和WINDOWS下的MERGE工具差不多
其他 Input : A set S of planar points Output : A convex hull for S Step 1: If S contains no more than f
Input : A set S of planar points
Output : A convex hull for S
Step 1: If S contains no more than five points, use exhaustive searching to find the convex hull and return.
Step 2: Find a median line perpendicular to the X-axis which divides S into SL and SR SL lies to the left of SR .
Step 3: Recursi ...
软件设计/软件工程 Creating barcodes in Microsoft庐 Office has never been easier. With BarCodeWiz Toolbar you can add b
Creating barcodes in Microsoft庐 Office has never been easier.
With BarCodeWiz Toolbar you can add barcodes to Microsoft庐 Office applications with a click of a button. In Microsoft庐 Word, create single barcodes, pages of labels, or mail merge documents. In Microsoft庐 Excel庐, select a range of ce ...
其他 此文件夹中共包括十二个小程序 AVL创建平衡二叉树,通过加入一个个的结点创建,并实现了平衡二叉树中的结点删除 Boyer_Moore算法的串模式匹配 Horspool算法的串模式匹配 Grap
此文件夹中共包括十二个小程序
AVL创建平衡二叉树,通过加入一个个的结点创建,并实现了平衡二叉树中的结点删除
Boyer_Moore算法的串模式匹配
Horspool算法的串模式匹配
Graph实现了有向图的非递归广度优先遍历及非递归深度优先遍历
HeapSort利用堆排序实现优先级队列
Merge实现二路归并排序算法
MFK动态规划解背包问题
nqueu ...
源码 c语言算法排序
1.Describe a Θ(n lg n)-time algorithm that, given a set S of n integers and
another integer x, determines whether or not there exist two elements in S whose sum is exactly x. (Implement exercise 2.3-7.)
#include<stdio.h>
#include<stdlib.h>
void merge(int arr[],int low,int mid,int high){
&nbsp; ...