文件名称:shuanxubiao
-
所属分类:
- 标签属性:
- 上传时间:2016-03-30
-
文件大小:10.81kb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
以单链表表示集合,设计算法建立先后输入的两个集合的差。
说明:已知两个集合A和B,集合A-B中包含所有属于集合A而不属于集合B的元素。
步骤:1.首先建立A和B的单链表
2.然后对集合B中的每个元素x,在A中查找,若存在和x相同的元素,则从该链表中删除。
3.打印A-B,进行验证。
-Expressed as a singly linked list collection, design algorithm has two sets of differential input.
Descr iption: known two sets A and B, set A- B contains all belong to the set and do not belong to the set B elements.
Steps: 1. First of all, establish A and B singly linked lists
2. And then to set each element of x, B in A search, if any, and x of the same element, is deleted the list.
3. Print A- B, for validation.
说明:已知两个集合A和B,集合A-B中包含所有属于集合A而不属于集合B的元素。
步骤:1.首先建立A和B的单链表
2.然后对集合B中的每个元素x,在A中查找,若存在和x相同的元素,则从该链表中删除。
3.打印A-B,进行验证。
-Expressed as a singly linked list collection, design algorithm has two sets of differential input.
Descr iption: known two sets A and B, set A- B contains all belong to the set and do not belong to the set B elements.
Steps: 1. First of all, establish A and B singly linked lists
2. And then to set each element of x, B in A search, if any, and x of the same element, is deleted the list.
3. Print A- B, for validation.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
1.顺序表的合并.docx
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.