![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
数据结构
一条小猫咪
大啊好!!!!!!!!
展开
-
算法最后一次作业
//邻接矩阵和邻接表的dfs算法#include <iostream>#include <stdio.h>using namespace std;#define INF 1000000#define MAXL 100#define MAXV 100//图的邻接矩阵类型的声明typedef struct{ int no;//顶点编号 char data[MAXL];//顶点其他信息 }VertexType;typedef struct{ int edges[.原创 2021-10-21 17:06:24 · 140 阅读 · 0 评论 -
算法分析作业
#include <iostream>#include <stdio.h>#include <malloc.h>using namespace std;#define INF 1000000000#define MAXVEX 100typedef char VertexType[10];typedef struct vertex { int adjvex; //顶点编号 VertexType data; //顶点其他信息 }VType;t.原创 2021-10-14 16:44:59 · 140 阅读 · 0 评论 -
java作业
import java.util.*;import java.io.*;public class test { public static void main(String[] args) { // TODO code application logic here try{ Scanner sc = new Scanner(new File("C:/Users/Administrator/Desktop/1.txt"));//导入文件.原创 2021-10-11 11:46:47 · 43 阅读 · 0 评论 -
c语言的普利姆算法实现代码
#include<iostream>#include<stdio.h>#include <stdlib.h>using namespace std;#define MAXVEX 100#define INF 100000000#define MAXE 100typedef char VertexType[10];typedef struct vertex{ int adjvex; VertexType data;} VType...原创 2021-10-09 16:23:04 · 200 阅读 · 0 评论 -
插入
#include <iostream>using namespace std;#define MaxSize 100typedef char ElemType;typedef int Keytype;typedef struct{ Keytype key; ElemType data;}SqType;//直接插入排序void insert(SqType R[], int n){ int i, j; SqType tmp; for(i=1;i<n;i++){ .原创 2021-04-21 15:29:29 · 1040 阅读 · 0 评论 -
循环字符队列的基本操作
#include <stdio.h>#include <stdlib.h>#define MaxSize 100 //指定队列的容量typedef char ElemType;//循环队列的类型声明typedef struct { ElemType data[MaxSize]; //基地址 int front; //头指针 int rear; //尾指针}SqQueue;// 初始化队列void InitQueue(SqQueue& sq)原创 2021-03-28 00:06:40 · 393 阅读 · 0 评论