Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Hashed table

Former Member
0 Likes
365

What exactly mean by the processing the time for the Hashed table is constant??

How can we say that time is constant... Not based on algorithm...

in a practical way !!

And what is the function code to check the attributes of the INFOTYPES..

1 ACCEPTED SOLUTION
Read only

Clemenss
Active Contributor
0 Likes
342

Hi Sai,

constant time means that the record access time is independent of the number of records stored.

If the table is unsorted, the avarage search time will grow directly with the number of records. In sorted tables, the binary search will we much faster but still access time will grow with the number of records.

Using hash algorithm, a unique hash key is calculated based on records contents allowing a direct access.

Read this article about hashing techniques: <a href="http://en.wikipedia.org/wiki/Hash_table">http://en.wikipedia.org/wiki/Hash_table#Time_complexity_and_common_uses_of_hash_tables</a>

Regards,

Clemens

2 REPLIES 2
Read only

Former Member
0 Likes
342

se11--->PA0001 or P0001 for infotype 01.

Regards

Peram

Read only

Clemenss
Active Contributor
0 Likes
343

Hi Sai,

constant time means that the record access time is independent of the number of records stored.

If the table is unsorted, the avarage search time will grow directly with the number of records. In sorted tables, the binary search will we much faster but still access time will grow with the number of records.

Using hash algorithm, a unique hash key is calculated based on records contents allowing a direct access.

Read this article about hashing techniques: <a href="http://en.wikipedia.org/wiki/Hash_table">http://en.wikipedia.org/wiki/Hash_table#Time_complexity_and_common_uses_of_hash_tables</a>

Regards,

Clemens