【文件属性】:
文件名称:蛮力法求最近对
文件大小:2KB
文件格式:TXT
更新时间:2018-05-02 07:09:17
C语言
c语言蛮力法求解最近对问题
//蛮力法 --最近对问题
#include
#include
#define random(x) (rand()%x)
typedef struct node//定义点的结构
{
int x;
int y;
}node;
typedef struct nlist//定义点的一个集合链表存储
{
struct node data;
struct nlist *next;
}nlist;
typedef struct close//用于保留最近的两点
{
node a;
node b;
double space;
}close;