![](https://img-blog.csdnimg.cn/20210728182343552.jpg?x-oss-process=image/resize,m_fixed,h_224,w_224)
数据结构
.
The_RedMaple
这个作者很懒,什么都没留下…
展开
-
考研408思维导图
考研408 高数,专业课思维导图原创 2022-08-21 13:25:23 · 346 阅读 · 0 评论 -
C语言实现冒泡排序和折半查找
#include <stdio.h>#include <time.h> #include <stdlib.h>#define MAXSIZE 8000typedef struct //创建顺序表,count用于记录查找次数 { int data[MAXSIZE]; int count=0;}SqList;void Bubble_Sort(SqList *&L,int i) //实现快速排序 { int temp; fo原创 2020-11-17 14:43:54 · 606 阅读 · 0 评论 -
C语言实现二叉树ADT、二叉排序树和二叉树遍历
#include <stdio.h>#include <stdlib.h>#include <time.h>#include "btree.h"#define COUNT 20void CreateBTree(BTNode *&b,char *str) //接收一个符号表示法的二叉树字符串,创建为一个二叉树结构 { BTNode *St[MAXSIZE],*p; int top = -1,k,j=0; char ch; b = NULL;原创 2020-11-16 22:16:41 · 393 阅读 · 0 评论 -
C语言实现串
#include <stdio.h> #include <malloc.h> #define MAXSIZE 30 typedef struct { char data[MAXSIZE]; int len; }SqString; void StrAssign(SqString &S,char a[]) { int i; for(i=0; a[i]!='\0'; i++) { S.data[i] = a[i]; } S.len = .原创 2020-11-03 16:38:52 · 818 阅读 · 1 评论 -
C语言实现数据结构单链表(头插法)
#include <stdio.h>#include <malloc.h> typedef struct LNode { int data; struct LNode *next; //指向后继元素; } LinkNode; void CreateList(LinkNode *&L,int a[],int n) { LinkNode *s; L = (LinkNode*)malloc(sizeof(LinkNode)); L->n原创 2020-10-12 14:48:11 · 318 阅读 · 0 评论 -
C语言实现数据结构的顺序表
#include <stdio.h>#include<malloc.h>typedef struct{ int data[10]; int length;}SqList;void CreateList(SqList *&L,int a[],int n) { int i=0,k=0; L= (SqList*)malloc(sizeof(SqList)); while(i<n) { L->data[k]=a[i]; k原创 2020-10-02 09:58:01 · 204 阅读 · 0 评论