《数据结构》第5章第3节行逻辑链接的顺序表(稀疏矩阵)。
分类:
编程语言 时间:
2016-02-29 19:55:19
阅读次数:
187
《数据结构》第5章第2节三元组顺序表(稀疏矩阵)。
分类:
编程语言 时间:
2016-02-29 16:20:14
阅读次数:
149
Java实现顺序表算法:1:首先我们需要定义我们的接口,关于顺序表的一些基本的操作:顺序表中的操作都有增删改查。 //List接口 public interface IList { //返回线性表的大小,即数据元素的个数。 public int getSize(); //如果线性表为空返回 true
分类:
编程语言 时间:
2016-02-29 09:25:53
阅读次数:
247
线性表 顺序表示 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
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
#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