数据结构与算法
文章平均质量分 78
Malons
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
分别用连续整数检测、欧几里得和分解质因数算法求最大公约数
#include #include #include #define _MIN(x,y) (((x)>(y))?(x):(y)) int GetGcd1(int m,int n)/* 连续整数检测法 */ { int t; t=_MIN(m,n); while(t>0)/* 测试t的每个值 */ { if(m%t==0 && n%t==0) break; else原创 2014-08-21 10:15:18 · 3166 阅读 · 0 评论 -
线性表的应用——一元多项式的代数运算
/* * 程序功能:一元多项式的代数运算 * 程序作者:Yannis Zhao * */ #include #include //数据元素数据结构 typedef struct{ float coef; //系数 int expn; //指数 }Term; //多项式数据结构 typedef struct PolyList{ Term term; struct PolyLis原创 2014-08-15 19:19:39 · 2047 阅读 · 0 评论 -
线性表的链式表示与实现(单链表)
本示例实现了原创 2014-08-15 18:57:11 · 564 阅读 · 0 评论 -
C语言一个二叉树的实现
一个最基本的二叉树~~ 头文件BiTree.h转载 2014-08-17 14:36:01 · 492 阅读 · 0 评论 -
栈的应用——十进制数转其他进制
/************************************** * Number Converion(From decimal to others) * Author: Yannis Zhao * Date: 2014-8-15 * ***************************************/ #include #include /**********原创 2014-08-17 11:32:14 · 653 阅读 · 0 评论 -
栈的顺序表示与实现
#include #include /**********************Data Object Structure********************/ #define STACK_INIT_SIZE 100 #define STACK_INCREMENT 10 #define ElemType int typedef struct { ElemType *base;//St原创 2014-08-16 23:11:58 · 507 阅读 · 0 评论 -
线性表的顺序存储结构(Sequential Mapping)
#include #include /*-------------Data Object Structure--------------*/ #define ElemType int #define LIST_INIT_LENGTH 20/*Initial length of SqList*/ #define LIST_INCREMENT_LENGTH 5/*Step wight*/ typ原创 2014-08-13 22:45:13 · 740 阅读 · 0 评论 -
动态查找表之二叉排序树
/************************************************************** * Dynamic Search Table * --Binary Sort Tree * * Author: Yannis Zhao * Date: 2014-8-18 * *****************************************原创 2014-08-21 19:32:42 · 773 阅读 · 0 评论 -
C语言模拟String对象类型
用C语言模拟Java等面向对象语言中的String对象,原创 2014-08-20 20:42:33 · 812 阅读 · 0 评论 -
C语言一个队列的实现(链式)
头文件Queue.h转载 2014-08-17 14:44:10 · 598 阅读 · 0 评论
分享