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

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

于 2022-03-13 发布 文件大小:1.82 kB
0 175
下载积分: 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 个回复

  • C++Builder计算器
    C++Builder计算器-C Builder Calculator
    2022-10-08 16:00:02下载
    积分:1
  • how to use sendmessage
    SENDMESSAGE消息的使用-how to use sendmessage
    2022-01-28 21:07:40下载
    积分:1
  • CRC码,这是用在网络效验方面的,最高可达到10位效验,通过该程序可在数据传输方面有一定保证。...
    CRC码,这是用在网络效验方面的,最高可达到10位效验,通过该程序可在数据传输方面有一定保证。-CRC, which is used in the network of well-tested, the maximum reached 10 well-tested through the program in data transmission, there is a definite guarantee.
    2022-08-31 19:00:04下载
    积分:1
  • 8 皇后之谜 AI
    八皇后问题是在 8 × 8 的棋盘上放置八国际象棋皇后,所以,没有两个皇后威胁到对方的问题。因此,一种解决方案要求没有两个皇后共享相同的行、 列或对角线。这场比赛是作为赋值 AI 开发的。
    2022-07-14 13:21:42下载
    积分:1
  • D3D纹理贴图
    应用背景一个简单的d3d纹理贴图。将一张图片纹理贴图到一个立方体上,并能实现鼠标控制任意拖动,旋转。一个简单的d3d纹理贴图。将一张图片纹理贴图到一个立方体上,并能实现鼠标控制任意拖动,旋转。关键技术 DRECT3D, 通过d3d创建纹理,并在窗口中显示  mfc. 在MFC单文档窗口显示 c++. 整个框架用C++语言编写 轨迹球 可实现旋转拖动等功能
    2022-02-24 19:35:51下载
    积分:1
  • 熟悉jsp和javabean的基础,对大家学习jsp和java好有帮助!
    熟悉jsp和javabean的基础,对大家学习jsp和java好有帮助!-Jsp and javabean familiar with the basis for all of us good to learn jsp and java help!
    2023-03-24 06:50:04下载
    积分:1
  • 在方程组的运算中可以经常遇到多个未知数,算起来比较的麻烦,利用高斯消元法可以快速的求解....
    在方程组的运算中可以经常遇到多个未知数,算起来比较的麻烦,利用高斯消元法可以快速的求解.-The algorithm can achieve the operation of Gauss Erosion.
    2022-11-30 16:00:03下载
    积分:1
  • J2ME/MIDP应用,生成PalmOS PRC文件
    J2ME/MIDP应用,生成PalmOS PRC文件-J2ME/MIDP applications, document generation PalmOS PRC
    2023-04-30 21:45:03下载
    积分:1
  • gfg
    小票打印机驱动程序,适合[Version]Signature="$Windows NT$"Provider=%AUTHOR%LayoutFile=ntprint.infClassGUID={4D36E979-E325-11CE-BFC1-08002BE10318}Class=PrinterDriverVer=3/22/2011;; Manufacturer section;[Manufacturer]"POS58"=Generic, NTx86, NTamd64, NTia64;; Model sections. ; ; Each section here corresponds with an entry listed in the; [Manufacturer] section, above. The models will be displayed in the order; that they appear in the INF file.;[Generic]"POS58"          = POS58Drv.GPD[Generic.NTx86]"POS58"          = POS58Drv.GPD[Generic.NTamd64]"POS58"          = POS58Drv.GPD[Generic.NTia64]"POS58"       &n
    2022-03-01 06:55:37下载
    积分:1
  • Mainly through the document serialization to achieve the creation of contacts, b...
    主要通过文档序列化,实现通讯录的创建、浏览、查询等功能。-Mainly through the document serialization to achieve the creation of contacts, browsing, query and other functions.
    2022-05-14 06:29:11下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载