Click here to Skip to main content
15,909,742 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHash Look up Logic Pin
mohant$.net31-Aug-09 19:55
mohant$.net31-Aug-09 19:55 
AnswerRe: Hash Look up Logic Pin
Adam Roderick J31-Aug-09 20:09
Adam Roderick J31-Aug-09 20:09 
GeneralRe: Hash Look up Logic Pin
mohant$.net31-Aug-09 20:16
mohant$.net31-Aug-09 20:16 
GeneralRe: Hash Look up Logic [modified] Pin
Adam Roderick J31-Aug-09 20:31
Adam Roderick J31-Aug-09 20:31 
AnswerRe: Hash Look up Logic Pin
Stuart Dootson31-Aug-09 23:04
professionalStuart Dootson31-Aug-09 23:04 
GeneralRe: Hash Look up Logic Pin
mohant$.net31-Aug-09 23:19
mohant$.net31-Aug-09 23:19 
GeneralRe: Hash Look up Logic Pin
Stuart Dootson31-Aug-09 23:22
professionalStuart Dootson31-Aug-09 23:22 
AnswerRe: Hash Look up Logic Pin
Alan Balkany1-Sep-09 5:32
Alan Balkany1-Sep-09 5:32 
"I tried Mod function too..But it is giving duplicate value.So plz gimme solution for this...."

I think I see your problem. Hash functions typically WILL give duplicate values. This is called a collision. There are various ways of dealing with collisions.

The simplest is to simply go to the next-highest slot (mod 5000), and store your value there. When you're looking up a value, and the desired value isn't at the hash location, you go to the next slot because it probably collided with another value already at the hash location.

You keep going to the next slot until you either find the desired value, or you hit an empty slot, which means the value isn't in the hash table.
Questionset dialog transparence but control not Pin
zhanghui543231-Aug-09 19:54
zhanghui543231-Aug-09 19:54 
QuestionOutlook Automation Pin
john563231-Aug-09 19:47
john563231-Aug-09 19:47 
AnswerRe: Outlook Automation Pin
Stuart Dootson31-Aug-09 23:13
professionalStuart Dootson31-Aug-09 23:13 
QuestionCan i send Array in command line parameter of CeCreateProcess? Pin
Le@rner31-Aug-09 19:19
Le@rner31-Aug-09 19:19 
AnswerNews: Nothing has changed today! Pin
Rajesh R Subramanian31-Aug-09 19:51
professionalRajesh R Subramanian31-Aug-09 19:51 
AnswerRe: Can i send Array in command line parameter of CeCreateProcess? Pin
Adam Roderick J31-Aug-09 19:58
Adam Roderick J31-Aug-09 19:58 
QuestionCFrameWnd and CToolBar and tooltips. Should be simple but.. [modified] Pin
FloatingMarc31-Aug-09 17:31
FloatingMarc31-Aug-09 17:31 
QuestionSetLayeredWindowAttributes , set a dialog . Pin
zhanghui543231-Aug-09 16:15
zhanghui543231-Aug-09 16:15 
AnswerRe: SetLayeredWindowAttributes , set a dialog . Pin
«_Superman_»31-Aug-09 17:56
professional«_Superman_»31-Aug-09 17:56 
Questionfrom Font Name and Font Size ==> TextWidth and Textheight ?? Pin
aa_zz31-Aug-09 15:29
aa_zz31-Aug-09 15:29 
AnswerRe: from Font Name and Font Size ==> TextWidth and Textheight ?? Pin
«_Superman_»31-Aug-09 18:03
professional«_Superman_»31-Aug-09 18:03 
QuestionQuestion about RichEdit: the style of underline Pin
xp52431-Aug-09 3:45
xp52431-Aug-09 3:45 
AnswerRe: Question about RichEdit: the style of underline Pin
xp5241-Sep-09 15:45
xp5241-Sep-09 15:45 
QuestionSDI Application Pin
susanne131-Aug-09 3:07
susanne131-Aug-09 3:07 
AnswerRe: SDI Application Pin
«_Superman_»31-Aug-09 3:29
professional«_Superman_»31-Aug-09 3:29 
GeneralRe: SDI Application Pin
susanne131-Aug-09 3:41
susanne131-Aug-09 3:41 
GeneralRe: SDI Application Pin
«_Superman_»31-Aug-09 6:16
professional«_Superman_»31-Aug-09 6:16 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.