Location:
Search - sortedset
Search list
Description: 本程序用VC++完成
定义类模板SortedSet (包括方法的实现) ,即元素有序的集合,集合元素的类型和集合元素的最大个数可由使用者确定。要
求该类模板对外提供以下三种操作:
insert:加入一个新的元素到合适的位置上,并保证集合元素的值不重复;
get:返回比给定值大的最小元素的地址。若不存在,返回-1;
del:删除与给定值相等的那个元素,并保持剩余元素的有序性。-the completion of procedures with VC SortedSet class template definition (including the method of achieving) that is a collection of elements in an orderly manner, the type of set elements and elements set to the number users can be identified. External demand such templates for the following three operations : insert : to add a new element to the appropriate location, Set elements and ensure that the value of non-repetition; get : return to the setting than the smallest major element of the address. If not, return -1; Del : delete and given that the equal value of the elements, and maintain the remaining elements of the order.
Platform: |
Size: 3306 |
Author: zhangbb |
Hits:
Description: 本程序用VC++完成
定义类模板SortedSet (包括方法的实现) ,即元素有序的集合,集合元素的类型和集合元素的最大个数可由使用者确定。要
求该类模板对外提供以下三种操作:
insert:加入一个新的元素到合适的位置上,并保证集合元素的值不重复;
get:返回比给定值大的最小元素的地址。若不存在,返回-1;
del:删除与给定值相等的那个元素,并保持剩余元素的有序性。-the completion of procedures with VC SortedSet class template definition (including the method of achieving) that is a collection of elements in an orderly manner, the type of set elements and elements set to the number users can be identified. External demand such templates for the following three operations : insert : to add a new element to the appropriate location, Set elements and ensure that the value of non-repetition; get : return to the setting than the smallest major element of the address. If not, return-1; Del : delete and given that the equal value of the elements, and maintain the remaining elements of the order.
Platform: |
Size: 3072 |
Author: zhangbb |
Hits:
Description: 这个类库提供了集合运算功能,并且支持泛型。
功能: 主要是取得2个集合里,相同、相异、联集的部份。
使用说明:
1. 如果顺序是重要的,那 HashedSet 可以改成 SortedSet
2. 如果用SortedSet, 集合里面的元素必需继承IComparable接口-This class library provides a collection of computing functions, and support for generics. Function: mainly made two collections, the same as different, the part set. Usage: 1. If the order is important, it can HashedSet into SortedSet2. If SortedSet, set inside an element necessary to inherit IComparable interface
Platform: |
Size: 19456 |
Author: sning |
Hits:
Description:
The NavigableSet Interface.
The NavigableSet interface is a subinterface of SortedSet that provides methods for searching for elements.
java.util.TreeSet is an implementation of NavigableSet.
Platform: |
Size: 1024 |
Author: jack |
Hits:
Description: Collection:集合层次中的根接口,JDK没有提供这个接口直接的实现类。
Set:不能包含重复的元素。SortedSet是一个按照升序排列元素的Set。
List:是一个有序的集合,可以包含重复的元素。提供了按索引访问的方式。
Map:包含了key-value对。Map不能包含重复的key。SortedMap是一个按照升序排列key的Map。
-Collection
Platform: |
Size: 3072 |
Author: jack |
Hits:
Description: TreeSet 类 外部有序地遍历成员;附加实现了SortedSet, 支持子集等要求顺序的操作 成员要求实现caparable接口,或者使用 Comparator构造TreeSet。成员一般为同一类型。 -TreeSet orderly traversal outside the class members additional implements SortedSet, and other requirements in order to support a subset of the members requested the operation to achieve caparable interface, or use a Comparator construction TreeSet. Members of the general for the same type.
Platform: |
Size: 1024 |
Author: 马杰 |
Hits:
Description: 一些java常遇到的联系题,输入
public class ArraySortedSet implements SortedSet-import java.io.FileInputStream
import java.util.Properties
Platform: |
Size: 6144 |
Author: 刘凯 |
Hits:
Description: Redis命令参考中文版(Redis Command Reference)
本文翻译自Redis Command Reference,是Redis命令参考的中文翻译版。
全文共分为十个部分,其中主要的六个部分(Key、String、Hash、List、Set、SortedSet)的所有命令已经翻译完毕,剩余的四个部分(Pub/Sub、Transactions、Connection、Server)还有待日后跟进。-Redis Command Reference Chinese version (Redis Command Reference) This article translated from Redis Command Reference, is the Chinese translation Redis command reference version. Text is divided into ten parts, of which six main parts (Key, String, Hash, List, Set, SortedSet) all commands have been translated, the remaining four parts (Pub/Sub, Transactions, Connection, Server) have to be in the future follow-up.
Platform: |
Size: 97280 |
Author: 李文化 |
Hits:
Description: 定义类模板SortedSet,即元素有序的集合,集合元素的类型
和集合元素的最大个数可由使用者确定。要求该类模板对外提供
以下三种操作:
insert:加入一个新的元素到合适的位置上,并保证集合元
素的值不重复;
get:返回比给定值大的最小元素的地址。若不存在,返回0;
del:删除与给定值相等的那个元素,并保持剩余元素的有序性。
-#include <iostream>
using namespace std
template <class type>
class setlist
template <class type>
class setnode
Platform: |
Size: 3072 |
Author: 文字 |
Hits:
Description: Returns the comparator used to compare elements in this Sorted Set Source Code for Linux v2.13.6.
Platform: |
Size: 1024 |
Author: viviexai |
Hits:
Description: NavigableSet is a SortedSet with navigation methods answering the closest matches for specified item.
Platform: |
Size: 1024 |
Author: yaixiubai |
Hits:
Description: An immutable SortedSet that stores its elements in a sorted array.
Platform: |
Size: 6144 |
Author: piuwenda |
Hits:
Description: 定义类模板SortedSet,即元素有序的集合,集合元素的类型和集合元素的最大个数可由使用者确定。要求该类模板对外提供以下三种操作:insert:加入一个新的元素到合适的位置上,并保证集合元素的值不重复;get:返回比给定值大的最小元素的地址。若不存在,返回0;del:删除与给定值相等的那个元素,并保持剩余元素的有序性。-#include < iostream> using namespace std template < class type> class setlist template < class type> class setnode
Platform: |
Size: 3072 |
Author: sau4uiuu |
Hits: