DATA STUCTURE

DATA STUCTURE

Definition:

Hashing index is used to retrieve data. We can find, insert and delete data by using the hashing index and the idea is to map keys of a given file. A hash means a 1 to 1 relationship between data. This is a common data type in languages. A hash algorithm is a way to take an input and always have the same output, otherwise known as a 1 to 1 function. An ideal hash function is when this same process unique

Hash Function

Choosing a hash function that minimizes the number of collisions and also hashes uniformly is another critical issue. It is also used in Main formula for hashing index is H(k) means that where is the location of that key

Explanation:

So far, to find something in a tree, or in a list, we have searched. However, there is another technique called hashing. Assume we are looking for some element e in a set S, where S may be implemented as a vector. We apply some function to e, hash (e), and this delivers the position of e in S, and we can then go directly to that location to get e or information on e. For example, e might be the key to a record, such as someone's name, and we wish to extract details/info on that person. e might be a telephone number and we want to know address, or e might be address and we want telephone number.

A hashing algorithm takes a variable length data message and creates a fixed size message digest. 

A tree is a disjointed data structure that programmers mostly use to store data in a hierarchical structure. In this discussion, we examine two types of trees, B-tree and binary tree. A binary tree is a tree structure that has a firm computational characteristic that provides for an efficient operation. Programmers recognise a binary tree as a tree structure where each node can consist of two or more children. By assigning a minimum value of children to two, we can come up with programs for manipulating the data in a binary tree. A binary tree is balanced if it is not “heavy” on either sub-trees. There are three traversal algorithms available in a binary tree. These are sometimes referred as pre orderin order, and post order traversal. In order is where the left sub-tree is visited first, then the node and the right sub-tree. Pre order is where the node is visited then the left sub-tree followed by the right sub-tree. For post order, the left sub-tree followed by the right sub-tree and later the node is traversed (McMillan, 2007).

Unlike a binary tree structure, each node of a b-tree may consist of variable values of keys as well as children. B-tree is an efficient data structure, which is used to manipulate large amount of data for a faster access. A b-tree is normally used for column manipulations in expressions that employ the use of the =, ≥, ≥=, ≤, operators. B-trees are used in databases such as Oracle. In addition, it is used in file-structures to enable faster random retrieval of an arbitrary block in a certain file (Alapati, 2008).

Hashing algorithm is a function that takes a variable string input and changes it into a constant numeric code. It is normally used in cryptography, fast data storage and error corrections cryptograms.

A hashing algorithm can cause problems if there are various strings with the same hash value. This is especially when there is a wider range of strings. To prevent these problems, a larger hash table should be provided .

BY

KRISHNA.P

To view or add a comment, sign in

More articles by Krishna P

  • GSM-Global System For Mobile Telecommunication

    Global System for Mobile Communications (GSM) Introduction The Global System for Mobile Communications (GSM) is a…

  • FLUTTER TECHNOLOGY IN THE FUTURE

    As we look to the future, Flutter's trajectory points toward several key developments that could reshape mobile and…

  • AGILE MODEL

    The Agile model is a project management framework that focuses on delivering small, incremental improvements to a…

  • CyberCrime and CyberVulnerabilities

    Introduction: In our increasingly digital world, cybercrime has become a significant threat to individuals, businesses,…

  • JAVA VS JAVASCRIPT

    Java and JavaScript – two of the most dominant forces in the programming world, often get confused due to their…

  • Overcoming Challenges and Finding Success: My Journey to Career Development

    One day, A boy born in a small town called Udumalpet. currently lived in Coimbatore.

  • JAVA DEVELOPER

    In the ever-evolving world of technology, Java remains a steadfast cornerstone, powering countless applications and…

  • Quantam Cloud Computing

    Imagine combining super-fast computers with the convenience of cloud services. That's what Quantum Cloud Computing…

  • OPERATING SYSTEM

    OPERATING SYSTEM : An Operating System (OS) is an interface between a computer user and computer hardwares. An…

  • FREEDOM OF INDIA

    INTRODUCTION: The Indian freedom struggle has great importance in the history of India. the people of entire India…

Others also viewed

Explore content categories