登录
首页 » Windows开发 » 十字链表是这样构成的:用链表模拟矩阵的行(或者列,这可以根据个人喜好来定),然后,再构造代表列的链表,将每一行中的元素节点插入到对应的列中去。书中为了少存几个表...

十字链表是这样构成的:用链表模拟矩阵的行(或者列,这可以根据个人喜好来定),然后,再构造代表列的链表,将每一行中的元素节点插入到对应的列中去。书中为了少存几个表...

于 2022-03-13 发布 文件大小:1.82 kB
0 224
下载积分: 2 下载次数: 1

代码说明:

十字链表是这样构成的:用链表模拟矩阵的行(或者列,这可以根据个人喜好来定),然后,再构造代表列的链表,将每一行中的元素节点插入到对应的列中去。书中为了少存几个表头节点,将行和列的表头节点合并到了一起――实际只是省了几个指针域,如果行和列数不等,多余的数据域就把这点省出的空间又给用了。这点小动作让我着实废了半天劲,个人感觉,优点不大,缺点不少,不如老老实实写得象个十字链表,让人也好看一些,这是教科书,目的是教学。实在看得晕的人,参阅C版的这部分内容,很清晰。我也不会画图,打个比方吧:这个十字链表的逻辑结构就像是一个围棋盘(没见过,你就想一下苍蝇拍,这个总见过吧),而非零元就好像是在棋盘上放的棋子,总共占的空间就是,确定那些线的表头节点和那些棋子代表的非零元节点。最后,我们用一个指针指向这个棋盘,这个指针就代表了这个稀疏矩阵-Crusaders is the form : Chain Simulation matrix rows (or out, This can be based on individual preferences to be), and then constructed on behalf of the chain out, Each line of the elements inserted into the node corresponding to the series. To book a few small depositors table first node, out of line and the first node table to merge together-- the reality is that a number of indicators provincial jurisdictions, if the number of rows and columns ranging, redundant data domain put this province has granted the use of the space. This little trick I did waste a half-day efforts, personal feeling, not merit, a lot of shortcomings,

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • dynamic change to the information stall no longer recompile PE stalls can be use...
    动态更改信息暂停不再重新编译PE暂停可以用来更改序列号身份验证
    2022-08-21 07:12:04下载
    积分:1
  • 是一个经典的源代码论坛环境
    是一个ASP环境下的经典论坛源代码-ASP is a classic environment of the source code Forum
    2023-06-08 22:40:03下载
    积分:1
  • The first time, the Provisional contains some source code. There is nothing that...
    第一次来,临时载点儿源码。没有什么说明,就为自己能下一点儿源码而来。 如果真有所收获,我以后就常来这儿,就我自己的源码整理后在上传。-The first time, the Provisional contains some source code. There is nothing that they can for the next bit from the source. If the gain, I ll come here often on my own after finishing uploading source.
    2022-11-10 15:10:03下载
    积分:1
  • K r u s k a l算法每次选择n
    K r u s k a l算法每次选择n- 1条边,所使用的贪婪准则是:从剩下的 边中选择一条不会产生环路的具有最小耗费的边加入已选择的边的集合中。注意到所选 取的边若产生环路则不可能形成一棵生成树。K r u s k a l算法分e 步,其中e 是网络中 边的数目。按耗费递增的顺序来考虑这e 条边,每次考虑一条边。当考虑某条边时,若将其 加入到已选边的集合中会出现环路,则将其抛弃,否则,将它选入。-K ruskal algorithm for each choice of n-1 edges, the greed of the criteria used are: from the left edge select does not produce a loop with the smallest cost edge has been selected to join the edge of the collection. Taking note of the selected edges have a loop if it can not form a spanning tree. K ruskal algorithm sub-e-step, in which e is the number of network edge. According to the order of incremental cost to consider this e edges, each taking a side. When considering a certain edge when, if its added to a collection of selected edge loop will appear, will be its discarded, otherwise, it selected.
    2023-02-08 08:10:04下载
    积分:1
  • VB6 and SQL Database code ..
    VB6 and SQL .. Database code-VB6 and SQL Database code ..
    2022-08-03 07:53:14下载
    积分:1
  • windows的写字板的vc实现
    windows的写字板的vc实现-windows tablet to achieve the vc
    2023-08-02 06:45:03下载
    积分:1
  • c_astretch,this used for contrast auto stretch too,but this is a program that GI...
    c_astretch,this used for contrast auto stretch too,but this is a program that GIMP used in the past ,on the other hand we can understand the program more easily
    2022-03-15 13:26:38下载
    积分:1
  • 通过对实践过程的VC.NET阵列分析程序编写
    Vc.net编写的关于数组分析程序的练习程序-Vc.net prepared by the array analysis procedures on the practice procedures
    2023-06-23 07:40:04下载
    积分:1
  • 这是一本effectiveC++_2E,对于大多数用C或C++的学习者有很大帮助!...
    这是一本effectiveC++_2E,对于大多数用C或C++的学习者有很大帮助!-This is a effectiveC++ _2E, For most use C or C++ Learners are very helpful!
    2022-01-26 03:49:42下载
    积分:1
  • 绘画板,具有绘画软件的基本功能,对初学者比较有价值。
    绘画板,具有绘画软件的基本功能,对初学者比较有价值。-Drawing board, with a painting software for basic functions, valuable for beginners.
    2023-08-12 19:40:04下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载