
数据结构
_shutter_
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
链队——c
// 链队.cpp: 定义控制台应用程序的入口点。//#include "stdafx.h"#include "stdio.h"#include "malloc.h"typedef struct linkduilie { struct link *top; struct link *foot;}LinkDuiLie;typedef struct link { struct...原创 2018-03-30 23:16:46 · 190 阅读 · 0 评论 -
普利姆算法——c
// 普利姆算法.cpp: 定义控制台应用程序的入口点。// 陈鹏#include "stdafx.h"#include "stdio.h"#define MAX 1000int arr[9][9] = { { 0 ,10 ,MAX,MAX,MAX,11 ,MAX,MAX,MAX }, { 10 ,0 ,18 ,MAX,MAX,MAX,16 ,MAX,12 }, { MA...原创 2018-03-31 09:38:28 · 1226 阅读 · 0 评论 -
哈夫曼树——c
// 哈夫曼树.cpp: 定义控制台应用程序的入口点。// 陈鹏#include "stdafx.h"#include "stdio.h"#include "malloc.h"#define MAXSIZE 100typedef struct shuZhu { //给定数组类型里面只可以存放hTree类型的指针 struct hTree *p;}ShuZhu;//这颗...原创 2018-03-31 09:38:38 · 183 阅读 · 0 评论 -
二叉树——c
// 二叉树.cpp: 定义控制台应用程序的入口点。// 三叉链表#include "stdafx.h"#include "stdio.h"#include "malloc.h"/****************测试数据AB#DF##G##C#E#H## left 左节点 right 右节点 top 上节点 dat...原创 2018-03-31 09:38:47 · 257 阅读 · 0 评论 -
堆排序——c
// 堆排序.cpp: 定义控制台应用程序的入口点。//#include "stdafx.h"#include "stdio.h"#include "malloc.h"#define MAXSIZE 100typedef struct yuanShu { char data; //数据 int weight; //权值}YuanShu;YuanShu...原创 2018-03-31 09:38:54 · 172 阅读 · 0 评论 -
排序——c
// 排序.cpp: 定义控制台应用程序的入口点。// 陈鹏20171125#include "stdafx.h"#include "stdio.h"//----------插入排序开始---------------void ChaRuPaiXu(int *Data,int length) { //传入数组和长度 int temp; //定义中间变量...原创 2018-03-31 09:39:06 · 229 阅读 · 0 评论 -
数组——c
// 数组_稀疏矩阵.cpp: 定义控制台应用程序的入口点。//#include "stdafx.h"#include "stdio.h"#include "malloc.h"#define MAXSIZE 400//定义三元表typedef struct sanyuanbiao { struct sanyuanbiao *next; int i, j, v;}SanYu...原创 2018-03-31 09:39:21 · 325 阅读 · 0 评论 -
串——c
// 串.cpp: 定义控制台应用程序的入口点。//#include "stdafx.h"#include "stdio.h"#include "malloc.h"#define MAXSIZ 256typedef struct seqstring { char data; struct seqstring *next;}SeqString;//初始化SeqStrin...原创 2018-03-30 23:23:08 · 209 阅读 · 0 评论 -
顺序表——c
// 顺序表.cpp: 定义控制台应用程序的入口点。// 陈鹏20171126#include "stdafx.h"#include "stdio.h"#include "malloc.h"#define MAXSIZE 1024 typedef int elemtype; typedef struct sequlist{ elemtype data[MAXSI...原创 2018-03-30 23:22:09 · 434 阅读 · 0 评论 -
链表——c
// 链表.cpp: 定义控制台应用程序的入口点。#include "stdafx.h"#include "stdio.h"#include "malloc.h"typedef int elemtype;typedef struct node{ elemtype data; struct node *next;}LinkList;//写入数据 x值 t位置int Ad...原创 2018-03-30 23:20:34 · 175 阅读 · 0 评论 -
链栈——c
// 链栈.cpp: 定义控制台应用程序的入口点。#include "stdafx.h"#include "stdio.h"#include "malloc.h"typedef struct linkzhan { int data; struct linkzhan *next;}LinkZhan;//初始化LinkZhan *Init() { LinkZhan * top;...原创 2018-03-30 23:19:19 · 152 阅读 · 0 评论 -
栈——c
// 栈.cpp: 定义控制台应用程序的入口点。#include "stdafx.h"#include "stdio.h"#include "malloc.h"#define MAXSIZE 1024typedef int elemtype;typedef struct zhan{ elemtype data[MAXSIZE]; int top;}Zhan;//初始化Z...原创 2018-03-30 23:18:15 · 200 阅读 · 0 评论 -
循环队列——c
// 循环队列.cpp: 定义控制台应用程序的入口点。//#include "stdafx.h"#include "stdio.h"#include "malloc.h"#define MAXSIZE 1024typedef struct duilie{ int data[MAXSIZE]; int top; int foot;}DuiLie;//初始化DuiLie...原创 2018-03-30 23:14:56 · 229 阅读 · 0 评论 -
图广度遍历与深度遍历
import java.util.ArrayList;import java.util.HashSet;import java.util.List;import java.util.Set;/** * chenPeng * * TuGuangDu.java * 创建人:chenpeng * 时间:2017年12月1日-下午7:47:43 * 2017陈鹏-版权所有 */...原创 2018-03-31 09:38:18 · 441 阅读 · 0 评论