logo
publist
写文章

简介

该用户还未填写简介

擅长的技术栈

可提供的服务

暂无可提供的服务

学习c++树的双亲表示法,顺序存储(王道数据结构)

//双亲表示法:每个结点中保存指向双亲的"指针"类似于静态链表#define MAX_TREE_SIZE 100typedef struct{//结点定义ElemType data;int parent;}PTNode;typedef struct{PTNode nodes[MAX_TREE_SIZE];int n;}PTree;//删除一个结点//空数据遍历更慢,删除结点填充会更简单//孩子表示

#数据结构#学习#c++
王道数据结构20页第11题

#include "stdafx.h"#include <stdio.h>#include <iostream>using namespace std;#define Maxsize 30typedef struct {int data[Maxsize];int length;}SqList;void Mid_search(SqList &L1, SqList &a

#数据结构#list
到底了