search for: hashtable

Displaying 20 results from an estimated 218 matches for "hashtable".

Did you mean: rhashtable
2009 Feb 13
4
How to get first 10 items from hash in ruby?
Hello All, I am new to programming, i have little problem with hash. I want to retrieve first 10 items(key value pairs) from given hash{} hashTable = {"a" => 1, "b" => 5, "c" => 2, "d" => 6, "e" => 4, "f" => 7, "g" => 9, "h" => 5, "i" => 1, "j" => 8, "k" => 9, "l" => 3, "m" =>...
2013 Jul 25
1
[LLVMdev] Passing String to an external function in llvm
...OK - seems you might want to take a few steps back & understand how > C++ code is written/structured generally (and/or take a look at other > parts of the compiler). You'll need a header file with the declaration > of your function & you can include that header file in the > hashtable.cpp and testing.cpp - if that sentence doesn't make sense to > you yet, please find some general C++ programming resources to provide > further detail as such a discussion isn't really on-topic here. I know it could be a bit frustrating for you to answer such foolish question, but a...
2013 Jul 25
2
[LLVMdev] Passing String to an external function in llvm
I have one file named hashtable.cpp whose link is "http://pastebin.com/Cq2Qy50C" and one llvm pass named testing.cpp whose link is "http://pastebin.com/E3RemxLF" Now on this testing.cpp pass I have computed the string named "expr" which I want to pass to the function named hashtable(string) in has...
2013 Jul 25
0
[LLVMdev] Passing String to an external function in llvm
On Thu, Jul 25, 2013 at 11:40 AM, Abhinash Jain <omnia at mailinator.com> wrote: > I have one file named hashtable.cpp whose link is > "http://pastebin.com/Cq2Qy50C" > > and one llvm pass named testing.cpp whose link is > "http://pastebin.com/E3RemxLF" > > Now on this testing.cpp pass I have computed the string named "expr" which I > want to pass to the functio...
2006 Jan 30
2
beginner Q: hashtable or dictionary?
Hi, Is there something like a hashtable or (python) dictionary in R/Splus? (If not, is there a reason why it's not needed / typical way to accomplish the same thing?) Thank you
2017 May 05
10
[Bug 12769] New: error allocating core memory buffers (code 22) depending on source file system
...sn't change the behaviour as expected. The error occurs with and without the option -n, in this case it is just for testing reasons included. In case the source is located on an Ext4 file system we run into the following error message after about 26 million files copied: ERROR: out of memory in hashtable_node [sender] rsync error: error allocating core memory buffers (code 22) at util2.c(102) [sender=3.1.0] In case the source is located on an XFS file system the above command copies all files without error. Both of the file systems hold the same data as the one is the backup copy of the other. The...
2004 Jun 25
4
more questions.
I forgot to ask a few more. Is there a relation between the hashtable ID /(parent,handle) so that if I used 2: for a hash table I could or couldn''t use 2: for a (parent,handle)ID? I also noticed that you type the hashtables like 2:2: can you have more levels with this? like 2:2:2:1: ? and I guess the same question with the parent/handles. thanks again....
2008 Apr 06
3
Multiset Permutations
...second level have each n-1 children, the nodes at the third level have n-2 children, etc. Each leaf of this tree will be a permutation. The idea is to add an element to the permutation, remove it from the set, and call the recursive function on that set. Because it's a multiset i'm using a Hashtable to eliminate duplicate entries. A pointer to the Hashtable gets passed along with each recursive call. The recursive function will know that it's on a "leaf" when the size of the set is 0, at which point it will insert its permutation in the Hashtable. Since identical permutations map...
2006 Feb 18
2
Sharing a Hashtable between all sessions?
Is it possible with RoR? In my case this shared Hashtable is a language translation table for several hundred terms, and does not need to be updated. I would like it to be shared in order to avoid loading it once for each session. Thanks, Marcus O. -- Posted via http://www.ruby-forum.com/.
2001 Apr 26
0
how to do java-like hashtables in R, R from a java progra mmer's p onit of view
It sounds like we are kindred spirits. I am using an old PC, with linux installed, running tcpdump as my packet sniffer. I will experiment with data frames as you suggest to get the hang of R some more before worrying about hashtables again. Chris Marshall -----Original Message----- From: M. Edward (Ed) Borasky To: Chris Marshall Cc: r-help at stat.math.ethz.ch Sent: 4/25/01 4:44 PM Subject: Re: [R] how to do java-like hashtables in R, R from a java programmer's p onit of view On Wed, 25 Apr 2001, Chris Marshall wrote:...
2009 Apr 29
0
[LLVMdev] infinite looping on hashtables
...hing. :) This did come up in a real situation where I know the size of a particular set. The set can get large enough to justify giving size advice to the implementation, but it can also be quite small, which triggered this bug. 2 is not an a priori unreasonable initial size to give to a hashtable (although I should've been scaling the size upwards to prevent excess collisions anyway). > Question: How can I test this? I was able to create a nifty > Googletest unit test: > This test works fine, so long as it passes. If the observed failure > happens, it hangs at the set...
2010 Mar 11
1
Associative array?
Hi, can someone tell me how to use associative arrays in R? It can be a hashtable or some kind of tree, as long as the lookups aren't O(n). One way to do this is to use names, e.g. in: list(a=3, ...)[["a"]] presumably looking up "a" is very quick. (Can someone tell me offhand how that is implemented? Hashtable?) However, if I wanted to, say, memo...
2005 Aug 12
8
Java Problems
...rchives/html/xen-devel/2005-04/msg00185.html And is possibly related to the bug referenced here: http://bugs.sun.com/bugdatabase/view_bug.do;:YfiG?bug_id=4335360 In summary: Java processes are doing odd things. 1) It appears that number values are mysteriously changing. e.g. if you look at the Hashtable error there is no way the IllegalArgumentException could be thrown, unless the float value passed into a function is being corrupted somehow on the stack. 2) I''m seeing JVM crashes (e.g. the ColorModel crash below). I''m seeing other crashes inside native code methods in other...
2014 Nov 12
2
How to maintain memory in R extension
Hello, I wrote a system to perform data analysis in C++. Now I am integrating it to R. I need to allocate memory for my own C++ data structures, which can't be represented by any R data structures. I create a global hashtable to keep a reference to the C++ data structures. Whenever I allocate one, I register it in the hashtable and return its key to the R code. So later on, the R code can access the C++ data structures with their keys. The problem is how to perform garbage collection on the C++ data structures. Once an...
2017 Jun 30
2
llvm-profdata determinism
...ing output (eg: >> InstrProfRecordWriterTrait::EmitData loops through the data in the same >> SmallDenseMap and writes content in that order so far as I can tell. >> >> > Binary dump does not have the problem. The binary format of the indexed > profile data is on-disk hashtable. Before serializing into the disk, the > instProfRecord is first inserted into the in memory hashtable and the > hashtable is then dumped into the disk. The entry order of the hashtable > only depends on the string hashes and in case of conflicts, the function > content hash. > Ah,...
2009 Apr 28
2
[LLVMdev] infinite looping on hashtables
On OS X, this test: ------------------------------------------------------ #include <llvm/ADT/DenseSet.h> #include <new> #include <stdio.h> int main(int argc, char** argv) { llvm::DenseSet<unsigned> set(2); set.insert(0); set.insert(1); if (set.count(2)) printf("error\n"); return 0; } ------------------------------------------------------ saved
2012 Aug 16
1
Where does "cmd" initailize in qemu_command.c?
...n qemu_driver.c, there is a function call "vm = virDomainFindByUUID(&driver->domains, dom->uuid);", whose returned value "vm" is important in the next functions. Then we could get the "vm"'s value in hash.c which is the end part to lookup domains saved in hashtable. May I know where does HashTable initialize? I mean where can I set the hashtable's values in detail, if I want to modify some values? 3. This might be the same as question 1. In command.c, "execve(cmd->args[0], cmd->args, cmd->env)" is a way t...
2017 Jun 30
2
llvm-profdata determinism
I haven't tested it, but it looks to me like llvm-profdata merge (well, InstrProfWriter specifically) would not have deterministic output. Certainly the textual output iterates over FunctionData which is a StringMap of SmallDenseMaps, neither of which has deterministic iteration. The binary writing looks like it'd have similar issues - looping through these unordered maps & writing
2004 Jun 25
1
Hashtables major:minor and prio
I have a question about a few things: ok when you have parent x:x and handle x:x link x:x flowid and so on. What is the max values of each of these, also where these or some of these hex numbers? I tried this on redhat 7.3 so there may have been some updates, but this is one of the tests I did. [root@RL1 root]# tc filter add dev eth0 protocol ip parent 1:0 prio 10 u32 ht fffe:: match ip dst
2017 Jun 30
0
llvm-profdata determinism
...fRecordWriterTrait::EmitData >>> loops through the data in the same SmallDenseMap and writes content in that >>> order so far as I can tell. >>> >>> >> Binary dump does not have the problem. The binary format of the indexed >> profile data is on-disk hashtable. Before serializing into the disk, the >> instProfRecord is first inserted into the in memory hashtable and the >> hashtable is then dumped into the disk. The entry order of the hashtable >> only depends on the string hashes and in case of conflicts, the function >> content...