User Profile

Collapse

Profile Sidebar

Collapse
boolat
boolat
Last Activity: Apr 17 '10, 05:56 AM
Joined: Apr 14 '10
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • boolat
    replied to Hash Function
    in C
    yes.i know.but still it did divide into two partition right??
    correct me if im wrong
    See more | Go to post

    Leave a comment:


  • boolat
    replied to Hash Function
    in C
    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...
    See more | Go to post

    Leave a comment:


  • boolat
    replied to Hash Function
    in C
    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...
    See more | Go to post

    Leave a comment:


  • boolat
    replied to Hash Function
    in C
    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 =((
    See more | Go to post

    Leave a comment:


  • boolat
    started a topic Hash Function
    in C

    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.
    •...
    See more | Go to post
No activity results to display
Show More
Working...