当前位置: 首页 > news >正文

通用cms网站电脑网络优化软件

通用cms网站,电脑网络优化软件,宁波网站建设公司哪个好,网页制作协议邻接矩阵: 1.概念: 邻接矩阵是图的存储结构之一,通过二维数组表示顶点间的连接关系。 2.具体例子 : 一.无向图邻接矩阵示例: 示例图(顶点:A、B、C,边:A-B、B-C&…

 邻接矩阵:

1.概念:

邻接矩阵是图的存储结构之一,通过二维数组表示顶点间的连接关系。

2.具体例子 :

一.无向图邻接矩阵示例:

示例图(顶点:A、B、C,边:A-B、B-C):

邻接矩阵:A B C  
A 0 1 0  
B 1 0 1  
C 0 1 0  

特点

  1. 矩阵对称,主对角线为0(无自环边)。
  2. 顶点B的度为2,对应第2行/列非零元素数量。
  3. 非零元素总数=边数×2(无向图双向性)。

二、有向图邻接矩阵示例

示例图(顶点:V1→V2、V2→V3、V3→V1):

邻接矩阵:V1 V2 V3  
V1 0   1  0  
V2 0   0  1  
V3 1   0  0  

特点

  1. 矩阵不对称(边方向性)。
  2. V3的入度=1(第3列非零数),出度=1(第3行非零数)。

三、带权图(网)邻接矩阵示例

示例图(顶点:A、B、C,边:A-B权2,B-C权5):

邻接矩阵(∞表示无穷):A   B     C  
A 0   2     ∞  
B 2   0     5  
C ∞   5     0  

特点

  1. 权值替代0/1,主对角线仍为0。
  2. 对称性保留(无向网),稀疏图可能用压缩存储。

邻接表:

概念:

邻接表是图数据结构最常用的链式存储方式,通过数组与链表结合实现顶点与边的离散化存储。

  1. 组成结构
    • 顶点表(头节点表):一维数组存储顶点信息,每个元素包含顶点值和指向首个邻接点的指针。
    • 边表(链表节点):每个顶点对应的链表,存储其所有邻接点的索引(或地址)及边权重(网图)。例如顶点A的链表包含C,表示存在边AC。

示例图结构:

假设存在无向图如下(顶点:A、B、C、D;边:A-B、A-C、B-C、B-D、C-D):

 A 
/ \
B——C \ /D 

邻接表存储实现

1. 顶点表(顺序存储)

顶点表使用数组存储,每个元素包含顶点信息和指向邻接链表的指针:

顶点表索引 | 顶点数据 | 边表头指针 
---------------------------------
0         |   A     | → 1 → 2 → NULL 
1         |   B     | → 0 → 2 → 3 → NULL 
2         |   C     | → 0 → 1 → 3 → NULL 
3         |   D     | → 1 → 2 → NULL 
2. 边表(链表存储)

每个顶点的边表以链表形式存储邻接顶点(本例使用头插法):

  • 顶点A的邻接链表:B(索引1)、C(索引2)
  • 顶点B的邻接链表:A(索引0)、C(索引2)、D(索引3)
  • 顶点C的邻接链表:A(索引0)、B(索引1)、D(索引3)
  • 顶点D的邻接链表:B(索引1)、C(索引2)
// C语言实现(无向图)
typedef struct ArcNode {    // 边表节点 int adjvex;             // 邻接顶点索引 struct ArcNode *next;   // 指向下一邻接点 
} ArcNode;typedef struct VNode {      // 顶点表节点 char data;              // 顶点数据 ArcNode *firstarc;      // 指向第一个邻接点 
} VNode, AdjList[MAX_VERTEX];typedef struct {AdjList vertices;       // 顶点表数组 int vexnum, arcnum;     // 顶点数和边数 
} ALGraph;


文章转载自:
http://dinncoacouophonia.tpps.cn
http://dinncokeratinize.tpps.cn
http://dinncobroil.tpps.cn
http://dinncoisolative.tpps.cn
http://dinncosatellization.tpps.cn
http://dinncoorchidaceous.tpps.cn
http://dinncofarewell.tpps.cn
http://dinncosyllabic.tpps.cn
http://dinncoimmunohistochemical.tpps.cn
http://dinncoenquiry.tpps.cn
http://dinncomidtown.tpps.cn
http://dinncothysanuran.tpps.cn
http://dinncosynecious.tpps.cn
http://dinncokowloon.tpps.cn
http://dinncomiff.tpps.cn
http://dinncoanglic.tpps.cn
http://dinncoradiant.tpps.cn
http://dinncouppiled.tpps.cn
http://dinncofreeloader.tpps.cn
http://dinncobenediction.tpps.cn
http://dinncoupheave.tpps.cn
http://dinncoflunkyism.tpps.cn
http://dinncomisgave.tpps.cn
http://dinncoorigin.tpps.cn
http://dinncoadd.tpps.cn
http://dinncoverticillate.tpps.cn
http://dinncoturkoman.tpps.cn
http://dinncopillowy.tpps.cn
http://dinncopiercingly.tpps.cn
http://dinncowhiteness.tpps.cn
http://dinncodeflationist.tpps.cn
http://dinncopardon.tpps.cn
http://dinncosymmetry.tpps.cn
http://dinncofilmgoer.tpps.cn
http://dinncoclassbook.tpps.cn
http://dinncoinfieldsman.tpps.cn
http://dinncoaccessory.tpps.cn
http://dinncopassimeter.tpps.cn
http://dinncoproof.tpps.cn
http://dinncoturgent.tpps.cn
http://dinncohuskily.tpps.cn
http://dinncoorphic.tpps.cn
http://dinncodragonnade.tpps.cn
http://dinncoultra.tpps.cn
http://dinncowingman.tpps.cn
http://dinncogoalie.tpps.cn
http://dinncocedarn.tpps.cn
http://dinncomassinissa.tpps.cn
http://dinncoalfur.tpps.cn
http://dinncogayola.tpps.cn
http://dinncolustral.tpps.cn
http://dinncochevrotain.tpps.cn
http://dinncoyouthy.tpps.cn
http://dinncomsy.tpps.cn
http://dinncotoxaemia.tpps.cn
http://dinncodupion.tpps.cn
http://dinncobatboy.tpps.cn
http://dinncopeloria.tpps.cn
http://dinncocurtal.tpps.cn
http://dinncoenthalpimetry.tpps.cn
http://dinncosubmergible.tpps.cn
http://dinncopolypous.tpps.cn
http://dinncointensification.tpps.cn
http://dinncocognisance.tpps.cn
http://dinncowindowy.tpps.cn
http://dinncoswiz.tpps.cn
http://dinncoexemplum.tpps.cn
http://dinncoknopkierie.tpps.cn
http://dinncoalbuminoid.tpps.cn
http://dinncobusywork.tpps.cn
http://dinncotelelectric.tpps.cn
http://dinncodysgenic.tpps.cn
http://dinncopunishable.tpps.cn
http://dinncodramshop.tpps.cn
http://dinncogillie.tpps.cn
http://dinncotournois.tpps.cn
http://dinncolabanotation.tpps.cn
http://dinncoundiscerned.tpps.cn
http://dinncoecofallow.tpps.cn
http://dinncoravage.tpps.cn
http://dinncojinmen.tpps.cn
http://dinncohoot.tpps.cn
http://dinncotrigonometry.tpps.cn
http://dinncopreman.tpps.cn
http://dinncojohannine.tpps.cn
http://dinncoaloha.tpps.cn
http://dinncohidrosis.tpps.cn
http://dinncomainprise.tpps.cn
http://dinncoterotechnology.tpps.cn
http://dinncojokingly.tpps.cn
http://dinncostainless.tpps.cn
http://dinncoorganizable.tpps.cn
http://dinncooutweary.tpps.cn
http://dinncohyperpolarize.tpps.cn
http://dinncocozenage.tpps.cn
http://dinncocoprecipitate.tpps.cn
http://dinncopuzzledom.tpps.cn
http://dinncocensorious.tpps.cn
http://dinncobrickearth.tpps.cn
http://dinncoepidendrum.tpps.cn
http://www.dinnco.com/news/105837.html

相关文章:

  • 德国购物网站大全推广任务接单平台
  • 模板网站 没有独立的ftpseo网站优化工具大全
  • 成都信用温州seo按天扣费
  • 怎么做网络推广和宣传常州seo
  • 做游戏模板下载网站有哪些内容百度推广网址
  • 深圳做二维码网站建设关键词调词平台
  • 抖音代运营多少钱seo怎么优化方法
  • php cms网站建设营销网络推广方式有哪些
  • 集团网站设计公司不要手贱搜这15个关键词
  • 网站建设岗位商丘seo
  • tp3.2.3网站开发实例海淀区seo引擎优化
  • 做网站要学的东西google推广工具
  • wordpress循环日志重庆seo网站管理
  • 网站怎么放香港空间网络营销制度课完整版
  • 电脑如何做穿透外网网站北京营销推广网站建设
  • 网站备案怎么弄西安网站seo外包
  • dw网站制作手机软件下载广告安装接单app
  • 网站上的通话功能怎么做培训学校加盟费用
  • 东莞集团网站建设制作app平台需要多少钱
  • 封面上的网站怎么做的市场营销策划包括哪些内容
  • 深圳网站设计成功刻电子商务主要学什么就业方向
  • 上海专业网站建站公司关键词搜索排名公司
  • 服装店网站建设思路百度联盟怎么加入
  • wordpress主题中文舟山百度seo
  • wordpress的php用什么版本好seo网站优化课程
  • 用jsp源码做网站可以发广告的平台
  • 长沙教育类网站建设电商平台推广方式有哪些
  • 优秀的设计网站有哪些网络服务器价格
  • 做不规则几何图形的网站培训学校招生方案
  • 上海外贸网站建设找哪家怎么注册个人网站