473,395 Members | 1,756 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Can A single hash tabble do the work done by 2 hash tables?

Hi

I am having a code in which I am using 2 hash tables for storing 2 values for a particular key on which i do some mathametical operation. Can i store the two values for a particualr key with using only 1 hash table???

can anyone help me on that ASAP

thanks
Mar 20 '07 #1
2 1009
bartonc
6,596 Expert 4TB
Hi

I am having a code in which I am using 2 hash tables for storing 2 values for a particular key on which i do some mathametical operation. Can i store the two values for a particualr key with using only 1 hash table???

can anyone help me on that ASAP

thanks
A snippet of you code would be very helpful. Please read "REPLY GUIDELINES" to learn how to use CODE tags. Thanks for joining.
Mar 20 '07 #2
bvdet
2,851 Expert Mod 2GB
Hi

I am having a code in which I am using 2 hash tables for storing 2 values for a particular key on which i do some mathametical operation. Can i store the two values for a particualr key with using only 1 hash table???

can anyone help me on that ASAP

thanks
A dictionary is the Python version of a hash table. Dictionaries can associate an object with each key. The object can be a single value, a list, tuple, set, another dictionary, etc. As you can see, there is no reason you must store two separate values with the same key in separate dictionaries. Check out this thread: http://www.thescripts.com/forum/thread618948.html
Mar 20 '07 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: Pelo GANDO | last post by:
Hi everybody ! I am a beginner in C++. I am looking for a (simple if it's possible) source code in C++ about hash table... Thank you ! Pelo
12
by: wxs | last post by:
Many times we have a bunch of enums we have from either different enums or the same enum that will have various numeric values assigned. Rarely will there be collisions in numbering between the...
1
by: Gene Kahn | last post by:
Hello, How do single-file databases do it? If a database has, say, 10 tables, does that mean that the single-file is just a trick to hold ten separate 'boxes' inside, one for each table, or...
24
by: kdotsky | last post by:
Hello, I am using some very large dictionaries with keys that are long strings (urls). For a large dictionary these keys start to take up a significant amount of memory. I do not need access to...
12
by: Arash Partow | last post by:
Hi all, I've ported various hash functions to python if anyone is interested: def RSHash(key): a = 378551 b = 63689 hash = 0
12
by: shaanxxx | last post by:
I wanted to write hash function float or double. Any suggestion would be appreciated.
0
by: shane1 | last post by:
Hello, I'm working on an application that will read in the contents of a dictionary which has about 250,000 words in it. I've got my hash function and hash routines done. The only thing left to...
139
by: ravi | last post by:
Hi can anybody tell me that which ds will be best suited to implement a hash table in C/C++ thanx. in advanced
23
by: raylopez99 | last post by:
A quick sanity check, and I think I am correct, but just to make sure: if you have a bunch of objects that are very much like one another you can uniquely track them simply by using an ArrayList...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.