![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
MAW版数据结构例题与习题recode
文章平均质量分 77
NotAnyMore_HCWY
记录 提高
展开
-
数据结构与算法C语言描述 第三章练习
习题3.2 3.4 3.5 3.5的实现是错误的,后面再来改吧,因为部分习题使用的是相同的数据结构,所以就把他们都放在一起,这里的基本数据结构是 循环链表 头文件 包含基本的数据结构实现 以及习题里所要求实现的函数原创 2014-03-20 17:00:13 · 855 阅读 · 0 评论 -
排序算法(未完成)
#include#include#include//插入排序int* sort(int* array){ for(int i=1;array[i]!=NULL;i++) { int tmp=array[i]; for(int j=i;j>0&&tmp<array[j-1];j--) array[j]=array[j-1]; array[j]=t原创 2014-04-01 21:24:52 · 542 阅读 · 0 评论 -
平衡树实现(未完成)
基本操作1、清空整棵树。2、查找元素。3、查找最大值和最小值。4、插入。5、删除。插入和删除明天再做#include#includetypedef int elemtype;////////////////////////////////////////////////////////////////////////////定义avl树结构str原创 2014-03-27 18:45:14 · 511 阅读 · 0 评论 -
链表实现多项式相加 相乘
csdn太差还是自己操作不对 代码插入就会卡死#include#include#include"string.h"typedef int elemType;struct Node{elemType coefficient;int highPower;Node *next;}; struct List{Node *heade原创 2014-03-26 22:41:40 · 1144 阅读 · 0 评论 -
链表中递归查找元素,非递归查找元素 以及基数排序(未完成)josephus问题(未完成)
#ifndef CIRCLECHAIN_H#define CIRCLECHAIN_Hstruct NODE;struct LIST;typedef NODE* node;typedef LIST* list;typedef int elemtype;//单链表struct NODE{ int n; node next;};struct LIST{ node tail;原创 2014-03-26 22:45:42 · 730 阅读 · 0 评论 -
简单的单链表实现 c
只实现创建链表头,插入操作,与打印操作,其它的慢慢加#include#include#include"string.h"typedef int elemType;struct Node{ elemType element; Node *next;}; struct List{ Node *header; Node *tail;};typedef Node* n原创 2014-03-24 19:27:25 · 546 阅读 · 0 评论