文件名称:xxbgb

  • 所属分类:
  • 数值算法/人工智能
  • 资源属性:
  • [C/C++] [源码]
  • 上传时间:
  • 2008-10-13
  • 文件大小:
  • 1.01kb
  • 下载次数:
  • 0次
  • 提 供 者:
  • 皮*
  • 相关连接:
  • 下载说明:
  • 别用迅雷下载,失败请重下,重下不扣分!

介绍说明--下载内容均来自于网络,请自行研究使用

首先,用前插法建立链表,在算法中以create函数表示;其次,定义mergeab函数,表示算法的归并:

本算法的思路为:顺次逐个将单链表的ha中的节点(P节点)在链表 hb中查找是否有重复的结点,若有,则不插入到链表hb中,将其从链表ha中删除。若在链表hb中找到第一个大于P的节点的数据域值的节点(Q节点),则在Q节点之前插入P节点,否则将链表ha联接到链表hb的表尾。为了实现方便在单连表hb之前附加一个表头节点,带归并完成后,再归还该表头节点,返回归并后连表的头指针。

     最后,定义main函数,引用之前定义函数完成程序。

-First, the voting method used chain, in the algorithm to create Functions; Secondly, mergeab function definition, the merging algorithm : the idea of this algorithm are : Solve each of the single linked list of nodes ha (P nodes) in the linked list hb whether the search duplicated nodes, if they are not inserted into the chain hb, from its chain ha deleted. If the chain hb find a resolution greater than the P-domain data nodes value of the node (Q nodes), Q node in P insert nodes, or they will Chain link to the chain ha hb end of the table. To achieve even the convenience of the single-table hb an additional table before the first node, with merger, after the completion of the return of the table first node, Even after the return of merging the head table pointer. Finally, the definition o
(系统自动生成,下载前可以参看下载内容)

下载文件列表

压缩包 : 41695036xxbgb.rar 列表
xxbgb.cpp

相关说明

  • 本站资源为会员上传分享交流与学习,如有侵犯您的权益,请联系我们删除.
  • 本站是交换下载平台,提供交流渠道,下载内容来自于网络,除下载问题外,其它问题请自行百度更多...
  • 请直接用浏览器下载本站内容,不要使用迅雷之类的下载软件,用WinRAR最新版进行解压.
  • 如果您发现内容无法下载,请稍后再次尝试;或者到消费记录里找到下载记录反馈给我们.
  • 下载后发现下载的内容跟说明不相乎,请到消费记录里找到下载记录反馈给我们,经确认后退回积分.
  • 如下载前有疑问,可以通过点击"提供者"的名字,查看对方的联系方式,联系对方咨询.

相关评论

暂无评论内容.

发表评论

*主  题:
*内  容:
*验 证 码:

源码中国 www.ymcn.org