Data structures in programming : Arrays, LinkedList, stack, queue, tree, heap, and graph

Data structures

A data structure represents the way of organizing data in the memory by a program for its effective usage. This is a critical concept with the amount of data we are currently processing through different systems. A proper choice of data structure increases the overall efficiency of a program or algorithm. Different data structures have got varying time complexity and space complexity w.r.t the operations.

In the below sections, we will see the different data structures. They are broadly classified as linear and non-linear data structures.

Please note that the data structures are defined as microideations. You can read more about microideation below and also download the app for this and more content for free.

MICROIDEATION APP: Programming and tech topics explained as quick learning cards ( ideations ).
We have launched our new mobile app for learning programming and other tech-based topics in under 30 seconds. The content is crafted by subject-matter experts on the field and each topic is explained in 500 or fewer characters with examples and sample code. You can swipe for the next content or freeze and follow a particular topic. Each content is self-contained and complete with links to related ideations. You can get it free (for the first 1000 users) with no mandatory registration required in the play store now.

Visit : https://portal.microideation.com/about

Linear

In the linear data structures, the data elements are arranged in a sequential order and each element is connected to its previous or next elements. Following are the linear data structures.

Arrays

Linked list

Doubly linked list

Circular linked list

Stack

Queue

Non-linear

A non-linear data structure has no set sequence of connecting all its elements and each element can have multiple paths to connect to other elements.

Binary Tree

Heap

Graph

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *