![](https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Data Structure
Doria_Lee
Danger is very real
But fear is a choice
展开
-
数据结构--基于天勤--二叉树
/* 树 2018.12.20 */ #include<stdio.h> #include<stdlib.h> #include<string.h> #define element char #define MAXSIZE 1000 ...原创 2018-12-22 20:57:03 · 615 阅读 · 0 评论 -
数据结构--基于天勤--数组表
/* 顺序表(数组实现) 2018.12.04 编写 */ #include<stdio.h> #define MAXSIZE 1000 typedef struct { int data[MAXSIZE];//数组元素 int length;//数组长度 }SequenceList; //初始化、并进行元素赋值 void init(SequenceList...原创 2018-12-23 15:05:32 · 258 阅读 · 0 评论 -
数据结构--基于天勤--链式表
/ * 顺序表(链表实现) 2018.12.07 * / #include <stdio.h> #include <stdlib.h> //需要使用malloc,所以加入stdlib头文件 #define MAXSIZE 10000 typedef struct LNode { int data; //结点数据 struct LNode * ...原创 2018-12-23 15:44:04 · 623 阅读 · 0 评论 -
数据结构--基于天勤--顺序栈
/* 顺序栈(数组实现) 2018.12.09 */ #include<stdio.h> #include<string.h> #define MAXSIZE 10000 //顺序栈结构体定义:数据+栈顶 typedef struct { int data[MAXSIZE]; int top; }SequenceStack; //初始化顺序栈 ...原创 2018-12-23 16:33:03 · 419 阅读 · 0 评论 -
数据结构--基于天勤--循环队
/* 循环队列(数组实现) 2018.12.10 */ #include<stdio.h> #define MAXSIZE 10 //顺序表实现的循环队列要损失一个结点空间 //所以 最多可以入队 MAXSIZE-1 个元素 typedef struct { int data[MAXSIZ...原创 2018-12-23 16:44:34 · 222 阅读 · 0 评论 -
数据结构--基于天勤--有向有权图
/* 图(有向有权图) 2018.12.16 初步完成 2018.12.18 加入文件操作 */ #include<stdio.h> #include<stdlib.h> #define MAXSIZE 100 #define INF 1000 int visit[MAXSIZE];//【深度/广度优先遍历使用】全局数组,存放元素访问标记,访问为1,未访问为0 in...原创 2018-12-23 19:17:14 · 754 阅读 · 0 评论 -
数据结构--基于天勤--多项式
/*-------------------------------- 顺序存储结构 直接表示 多项式非零项 2018.10.21 完成 --------------------------------*/ #include <stdio.h> #include <stdlib.h> #define MAX 100 typedef struct { double c...原创 2018-12-23 22:19:16 · 320 阅读 · 0 评论