正在加载图片...
//kC指向下一个可用位置! return OK 1// MatrixAdd TSMatrix 2.行逻辑联接顺序表 C表示 #define maXsize 12500 #define maxrc 100 typedef struct int 1, J //非零元的行列下标 ElemType e I Triple typedef struct Triple a Data [MAXSIZE +1] int rpos [MAXRC+1 Int mu, nu, tu. FRLSMatrix 算法同1。只是要更新该表示法中的rpos数组 十字链表 typedef struct OLNode int 1, J ElemType e Struct OLNode *pRight, *pDo JOLNode, eli typedef struct 0link* pLEad,* pLEad;//行和列链表头指针向量所在数组的基地址 int mu, nu, t I CrossListC.tu = kC - 1; //kC 指向下一个可用位置! return OK; }// MatrixAdd_TSMatrix; 2.行逻辑联接顺序表 C 表示: #define MAXSIZE 12500 #define MAXRC 100 typedef struct { int i, j; //非零元的行列下标 ElemType e; }Triple; typedef struct { Triple a_Data[MAXSIZE + 1]; int rpos[MAXRC + 1]; Int mu, nu, tu; }RLSMatrix; 算法同 1。只是要更新该表示法中的 rpos 数组。 3.十字链表 typedef struct OLNode { int i, j; ElemType e; Struct OLNode *pRight, *pDown; }OLNode, *Olink; typedef struct { Olink *pRHead, *pCHead; //行和列链表头指针向量所在数组的基地址; int mu, nu, tu; }CrossList;
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有