Data Structure Tutorial

Binary Tree Traversal | Tree Data Structure

Binary Tree Traversal Order of Traversal of Binary Tree The following are the possible orders in which a binary tree can be traversed: LDR LRD DLR RDL RLD DRL Where L stands for traversing the left subtree, R stands for traversing the right subtree, and D stands for processing the data of the node. Therefore, the order LDR is the order of traversal in which we …

Binary Tree Traversal | Tree Data Structure Read More »

Representations of Graph | Graph Data Structure

Choices of representation Two main data structures for the representation of graphs are used in practice. The first is called an adjacency list, and is implemented by representing each node as a data structure that contains a list of all adjacent nodes. The second is an adjacency matrix, in which the rows and columns of a two-dimensional …

Representations of Graph | Graph Data Structure Read More »

Hashing Function | Hashing, Searching & Sorting

A data object called a symbol table is required to be defined and implemented in many applications, such as compiler/assembler writing. A symbol table is nothing but a set of pairs (name, value), where value represents a collection of attributes associated with the name, and the collection of attributes depends on the program element identified by the name. For example, …

Hashing Function | Hashing, Searching & Sorting Read More »

Scroll to Top