Verified Document

Algorithm, There Is A Need Term Paper

Compared to other associative array data structures, hash tables are most useful when a large number of records of data are to be stored.

The hash table size is unlimited (or limited only by available storage space). In this case no need to expand the table and recreate a hash function.

Disadvantages

It's difficult (not efficient) to print all elements in hash table.

It's not efficient to find minimum element or maximum element.

The hash table has fixed size. At some point all the elements in the array will be filled. The only alternative at that point is to expand the table, which means modify the hash function to accommodate the increased address space.

Hash table are more difficult and error-prone to write and use.

Hash tables in general exhibit poor locality of reference that is, the data to be accessed is distributed seemingly at random in memory. Because hash tables cause access patterns that jump around, this can be trigger microprocessor cache misses that cause long delays.

References

Augenstein Moshe J., Yedidyah, Langsam, and Aaron Tenenbaum. "Introduction to Data

Structures." Data Structures using C. And C++. United State of America: Prentice-Hall, Inc., 1996.22-24.

Carlson, David. "Hash Tables." Saint Vincent College. 2004. Saint Vincent College. 6 July 2005 http://cis.stvincent.edu/swd/hash/hash.html.

"Trees." Data Structures and Others Objects using C++.
Ed. Susan Hartman. Canada: Addison Wesley Longman, 1997. 424-429.

Parlante, Nick. "Binary Trees." cslibrary.stanford.edu. cslibrary.stanford.edu. 6 July 2005 http://cslibrary.stanford.edu/110/BinaryTrees.html.

Shahidi, Amin, and Dennis Schmidt. "Lecture 10 March 20, 2002." www.sis.pitt.edu.6 July 2005 http://www.sis.pitt.edu/~klynch/Spring2002/lecture10/Lecture10_032002.htm#_Linked_List_Pros.

Algorithmic efficiency - Wikipedia, the free encyclopedia." Wikipedia. 2005. Wikipedia. 6 July 2005 http://en.wikipedia.org/wiki/Algorithmic_efficiency.

Big O. notation - Wikipedia, the free encyclopedia." Wikipedia. 2005. Wikipedia. 6 July 2005 http://en.wikipedia.org/wiki/Big_O_notation.

Programming Tutorial: Linked Lists, Trees, Hash Tables." vergil.chemistry.gatech.edu. 2001.

The Sherill Group. 6 July 2005 http://vergil.chemistry.gatech.edu/resources/programming/c-tutorial/lists.html.

Linked list - Wikipedia, the free encyclopedia." Wikipedia. 2005. Wikipedia. 6 July 2005 http://en.wikipedia.org/wiki/Linked_list.

Run time." National Institute of Standard and Technology. 2005. National Institute of Standard and Technology. 6 July 2005 http://www.nist.gov/dads/HTML/runtime.html.

Sources used in this document:
References

Augenstein Moshe J., Yedidyah, Langsam, and Aaron Tenenbaum. "Introduction to Data

Structures." Data Structures using C. And C++. United State of America: Prentice-Hall, Inc., 1996.22-24.

Carlson, David. "Hash Tables." Saint Vincent College. 2004. Saint Vincent College. 6 July 2005 http://cis.stvincent.edu/swd/hash/hash.html.

Main, Michael, and Walter Savitch. "Trees." Data Structures and Others Objects using C++.
Parlante, Nick. "Binary Trees." cslibrary.stanford.edu. cslibrary.stanford.edu. 6 July 2005 http://cslibrary.stanford.edu/110/BinaryTrees.html.
Shahidi, Amin, and Dennis Schmidt. "Lecture 10 March 20, 2002." www.sis.pitt.edu.6 July 2005 http://www.sis.pitt.edu/~klynch/Spring2002/lecture10/Lecture10_032002.htm#_Linked_List_Pros.
Algorithmic efficiency - Wikipedia, the free encyclopedia." Wikipedia. 2005. Wikipedia. 6 July 2005 http://en.wikipedia.org/wiki/Algorithmic_efficiency.
Big O. notation - Wikipedia, the free encyclopedia." Wikipedia. 2005. Wikipedia. 6 July 2005 http://en.wikipedia.org/wiki/Big_O_notation.
The Sherill Group. 6 July 2005 http://vergil.chemistry.gatech.edu/resources/programming/c-tutorial/lists.html.
Linked list - Wikipedia, the free encyclopedia." Wikipedia. 2005. Wikipedia. 6 July 2005 http://en.wikipedia.org/wiki/Linked_list.
Run time." National Institute of Standard and Technology. 2005. National Institute of Standard and Technology. 6 July 2005 http://www.nist.gov/dads/HTML/runtime.html.
Cite this Document:
Copy Bibliography Citation

Sign Up for Unlimited Study Help

Our semester plans gives you unlimited, unrestricted access to our entire library of resources —writing tools, guides, example essays, tutorials, class notes, and more.

Get Started Now