sortedset
Java Program Design - Card Shuffler
I am trying to write a card shuffler, and I know the method by which I wish to shuffle the cards.However, I am at a loss of the best object-oriented way in which to write it.[详细]
2023-04-04 22:44 分类:问答SortedSet in Silverlight: looking for a memory- and time-efficient implementation
I am looking for a memory and performance efficient implementation of SortedSet<T> (corresponding to System.Collections.Generic.SortedSet<T> in vanilla .NET).[详细]
2023-04-02 11:31 分类:问答Compressed SortedSet<Long> implementation
I need to store a large number of Long values in a SortedSet implementation in a space-efficient manner.I was considering bit-set implem开发者_如何学运维entations and discovered Javaewah.However, the[详细]
2023-04-02 06:26 分类:问答What's a more efficient alternative than converting a SortedSet to a Vector in Java?
I\'m writing a contact book application in Java. The Contacts are displayed on a JList which uses a Sorted TreeSet list model.[详细]
2023-04-02 01:20 分类:问答C# fastest union of 2 sets of sorted values
What is the fastest way to union 2 sets of sorted values? Speed (big-O) is important here; not clarity - assume this is being done millions of times.[详细]
2023-03-30 08:16 分类:问答Redis: Is ZADD better than O(logN) when the inserted element is at the beginning or end?
The redis documentation for ZADD states the operation is O(log N). However,开发者_如何学JAVA does anyone know if ZADD is better than O(log N) when the inserted element is at the beginning or end of t[详细]
2023-03-29 11:08 分类:问答How to convert a SortedSet in Java to a Seq in Scala
The Jedis call I\'m using returns a Set, although at runtime it is actually a LinkedHashSet. I want to pull it into Scala, deseria开发者_如何学编程lize the elements, and return a Seq.Easy![详细]
2023-03-28 20:19 分类:问答How to find the index of an element in sorted set?
I can find an element in a sorted set (backed by BST) in O(logN). Now I would like the index of this element. For example, in set {1, 3, 4, 10}, the index of 4 is 2 and the index of 1 is 0.[详细]
2023-03-03 17:37 分类:问答How to assign an order for TreeSet in Scala without repeating myself
I have this segment of Scala code which defines an orderi开发者_JS百科ng and applies it to a TreeSet.This part compiles fine.[详细]
2023-02-20 08:21 分类:问答Implement ZMOVE with WATCH in Redis
The Redis documentation on transactions gives an example of how to implement 开发者_开发百科ZPOP. How do I implement ZMOVE for Redis sorted sets (analagous to SMOVE)?Is this right? .. to move an eleme[详细]
2023-02-07 03:37 分类:问答