yes.i know.but still it did divide into two partition right??
correct me if im wrong
User Profile
Collapse
-
i dont knw how to partition the 10 digits of int 5 and 5..
meaning for example if my id is 1234567890
then i need to divide to (12345)yyyyy+ 67890 (zzzzz) while after that i have to add them up...Leave a comment:
-
well i got the hint to do formula part..
here is my formula..but i dont knw if its correct or not..
int hashfunc(unsign ed int ID){
int a,b,c;
float j,k;
int e=0;
j=ID/1000.0;
a=j,".";
b=j,"\n";
c=a+b;
k=c/1000.0;
e=k,"\n";
return e;
for the maths part its like add yyyyy+zzzzz
then truncate??i...Leave a comment:
-
well,i have to submit by this monday..and im totally desprate..
the 10 digit mean,if the id number entered is 1231112020.
then divided into two parts of yyyyy and xxxxx.
help me please..im bad in programming =((Leave a comment:
-
Hash Function
hi,im doing my assignment,,but sadly i dnt knw how to do...help me please b4 19april2010
Code a hash function, which computes the index number based on the MMU ID, which is
a 10-digit key. The hashing algorithm used to compute the hash index is given as follows:
• Partition the 10-digit key (yyyyyzzzzz) into two 5-digit numbers: yyyyy and
zzzzz.
• Add the two partitioned numbers, yyyyy and zzzzz.
•...
No activity results to display
Show More
Leave a comment: