码迷,mamicode.com
首页 >  
搜索关键字:顺序表    ( 1307个结果
5-3-行逻辑链接的顺序表(稀疏矩阵)-数组和广义表-第5章-《数据结构》课本源码-严蔚敏吴伟民版
《数据结构》第5章第3节行逻辑链接的顺序表(稀疏矩阵)。
分类:编程语言   时间:2016-02-29 19:55:19    阅读次数:187
5-2-三元组顺序表(稀疏矩阵)-数组和广义表-第5章-《数据结构》课本源码-严蔚敏吴伟民版
《数据结构》第5章第2节三元组顺序表(稀疏矩阵)。
分类:编程语言   时间:2016-02-29 16:20:14    阅读次数:149
数据结构顺序表Java实现
Java实现顺序表算法:1:首先我们需要定义我们的接口,关于顺序表的一些基本的操作:顺序表中的操作都有增删改查。 //List接口 public interface IList { //返回线性表的大小,即数据元素的个数。 public int getSize(); //如果线性表为空返回 true
分类:编程语言   时间:2016-02-29 09:25:53    阅读次数:247
数算 2
线性表 顺序表示 struct SeqList{ int n; int MAXNUM; DataType *element; } typedef struct SeqList *PSeqList; - 不适合随机插入和删除- 节省了空间但是操作的时间复杂度增加了 链接表示 数据域 指针域 struc
分类:其他好文   时间:2016-02-28 22:53:50    阅读次数:135
顺序表的实现---静态
"Seq_S.h"#ifndef__SEQ_LIST_H__#define__SEQ_LIST_H__#defineMAX100#include<stdio.h>#include<assert.h>#include<string.h>typedefintDataType;typedefstructSeqList{ DataTypearr[MAX]; intsize;}SeqList,*pSeqList;voidInitSeqList(pSeqListpSeq);//初始..
分类:其他好文   时间:2016-02-27 01:08:14    阅读次数:251
顺序表的实现---动态
“Seq_D.h”#ifndef__SEQ_LIST_H__#define__SEQ_LIST_H__#defineINIT_SIZE2#defineINC2#include<stdio.h>#include<assert.h>#include<string.h>#include<malloc.h>#include<stdlib.h>typedefintDataType;typedefstructSeqList{ DataType*data;//..
分类:其他好文   时间:2016-02-27 01:05:51    阅读次数:223
python笔记1
1.字典不包含从左到右的顺序 2.If for 表达式:for x in xx:表达式 写为 表达式 for x in xx 3.元组,字符串 不可变性 (1)t.index() t.count() (2)T[0]=1 #change #error (3)不能缩短、增长 无append 4.创建文件
分类:编程语言   时间:2016-02-23 00:50:52    阅读次数:192
链表初始化总结
顺序表: 声明:struct seqlist { Int last; Int data[12]; }seq,*seqlist; 初始化 seqlist init_seqlist() { seqlist sl = malloc(sizeof(seq)); sl->last =-1;//标记位,用于判断
分类:其他好文   时间:2016-02-21 14:22:03    阅读次数:158
动态顺序表
//SeqList.h #ifndef__SEQLIST_H__ #define__SEQLIST_H__ #include<string.h> #include<assert.h> #include<stdlib.h> typedefintDataType; typedefstructSeqList { DataType*array; size_tsize; DataTypecapacity;//容量 }SeqList,*pSeqList; voidIni..
分类:其他好文   时间:2016-02-21 06:45:59    阅读次数:281
C语言:【动态顺序表】动态顺序表的初始化、打印、尾插PushBack、尾删PopBack
#include<stdio.h> #include<stdlib.h> #include<assert.h> #include<string.h> #include<malloc.h> typedefintDateType; typedefstructSeqList { DateType*arr; size_tcapacility; size_tsize; }SeqList; //创建空间 voidCheckCapa(SeqList..
分类:编程语言   时间:2016-02-20 01:54:44    阅读次数:267
1307条   上一页 1 ... 91 92 93 94 95 ... 131 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!