data-structures
Heap Sort in C++
Okay, so after struggling with trying to debug this, I have finally given up. I\'m a beginner in C++ & Data Structures and I\'m trying to implement Heap Sort in C++. The code that follows gives co[详细]
2023-04-07 00:24 分类:问答Efficient data structure/algorithm for transliteration based word lookup
I\'m looking for a efficient data structure/algorithm for storing and searching transliteration based word lookup (like google do: http://www.google.com/transliterate/ but I\'m not trying to use googl[详细]
2023-04-06 22:41 分类:问答Does PHP have an ordered dictionary?
Does PHP have an Ordered D开发者_运维百科ictionary, like that in Python? IE, each key value pair additionally has an ordinal associated with it.That\'s how PHP arrays work out of the box. Each key/val[详细]
2023-04-06 19:58 分类:问答Encoding a binary tree structure to json format
I have a python binary tree class like this: class BinaryTree: def __init__(self, data, left=None, right=None):[详细]
2023-04-06 19:20 分类:问答What data structure could I use for counting occurrences of a country code?
I need some kind of data structure don\'t know yet which would be most sui开发者_运维知识库table.[详细]
2023-04-06 17:55 分类:问答Use of SimpleExpandableListAdapter
I think this is fairly straightforward -- when using SimpleExpandableListAdapter, groups are populated via a List of Maps, and children are populated by a List of Lists o开发者_Go百科f Maps. When you[详细]
2023-04-06 16:42 分类:问答Set allowing quick insert/deletion and random selection in C#
What data structure could I use in C# to allow quick insertion/deletion as well as uniform random selection?A List has slow deletion by element (since it开发者_开发百科 needs to find the index of the[详细]
2023-04-06 15:15 分类:问答Circular buffer implementation in C
I have found pseudo code on how to implem开发者_C百科ent a circular buffer. // Producer. while (true) {[详细]
2023-04-06 12:52 分类:问答Multi key balanced trees
I am looking for a data structures that is like an AVL tree but with multiple keys. I want a balanced tree to prevent skewing average lookup time. I have a situation where a node can have multiple k[详细]
2023-04-06 12:27 分类:问答which c# collection to use instead of List<KeyValuePair<string, double>>?
I want to store data such as { {"apple",15} {"pear",12.5} {"", 10} {"", 0.45}[详细]
2023-04-06 06:37 分类:问答