<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Rohan Pandav on Medium]]></title>
        <description><![CDATA[Stories by Rohan Pandav on Medium]]></description>
        <link>https://medium.com/@rohanpandav?source=rss-89d89f412e40------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*zW5RMHiRSSui7z256JJUrw@2x.jpeg</url>
            <title>Stories by Rohan Pandav on Medium</title>
            <link>https://medium.com/@rohanpandav?source=rss-89d89f412e40------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 11:04:55 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@rohanpandav/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Applications of Data Structures]]></title>
            <link>https://medium.com/geekculture/applications-of-data-structures-6ab9920ea3e5?source=rss-89d89f412e40------2</link>
            <guid isPermaLink="false">https://medium.com/p/6ab9920ea3e5</guid>
            <category><![CDATA[data-structures]]></category>
            <category><![CDATA[linked-lists]]></category>
            <category><![CDATA[arrays]]></category>
            <category><![CDATA[algorithms]]></category>
            <dc:creator><![CDATA[Rohan Pandav]]></dc:creator>
            <pubDate>Tue, 13 Apr 2021 23:05:43 GMT</pubDate>
            <atom:updated>2021-04-19T10:57:04.434Z</atom:updated>
            <content:encoded><![CDATA[<blockquote>A data structure is a way of organizing data in a way so that the data becomes accessible effortlessly and quickly.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*yoIjtawVSdMyory7" /><figcaption>Photo by <a href="https://unsplash.com/@hishahadat?utm_source=medium&amp;utm_medium=referral">Shahadat Rahman</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Data Structure is a collection of values; the values have relationships among them, and they can have functions applied to them. Each function is unique and specialized for its own thing. They are key components in building powerful algorithms, make the code cleaner and easier to understand.</p><p>Before we talk about applications of Data Structures, we need to understand the concept of Abstract Data Types. It is an abstraction of data structure. It provides the interface to which a data structure must stick to. This data type is called “Abstract” as it is just a theoretical concept, and every programming language has different ways of implementing these concepts.</p><p><strong>Array: </strong>a fixed-length container which contains n elements that have a range from [0, n-1] e.g.: if an array contains 5 elements, the range will be [0, 5–1] (n=5) =&gt; [0,4]. This range is also known as indexable range. Indexable means that each slot of an array can be reference with a number called index key (it is zero based). This indexing allows random access to any element of the array. Static Arrays are finite in size, that is, the programmer defines the length of the array. High-level programming languages have the concept of Dynamic Arrays in which the array grows/resizes and allows adding more elements to it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/396/0*6HX5x2j6ZQiuyxP7" /></figure><p><em>Applications of Array:</em></p><p>i. Contacts of a mobile phone</p><p>ii. Storing data in a tabular format</p><p>iii. Storage of matrices and binary tree elements of fixed count</p><p>iv. Building block element of other data structures such as heaps, vectors and more</p><p>v. Online ticket booking system — if a user wants to book a seat in C-4, the array becomes seat[C][4] or seat[3][4]</p><p><strong>Stack:</strong> a linear data structure which has a predefined capacity. It follows the Last in First Out (LIFO) order or First in Last Out (FILO) order. Every time an element is added by using the Push operation, it goes on top of the stack and the element can either be removed from top of the stack with the help of Pop operation.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/462/0*qw--_czin0WnbUtz" /></figure><p><em>Applications of Stack:</em></p><p>i. UNDO and REDO functions in a text editor</p><p>ii. Virtual Machines</p><p>iii. Expression Conversion (Infix to Postfix and vice versa)</p><p>iv. Reversal of a string</p><p>v. Back/Forward button in browsers and file browsers</p><p><strong>Singly Linked List: </strong>collection of objects called nodes that are stored in a random manner in the memory. A node consists of two parts, one being the data stored at that specific address and the other being a pointer which contains the address of the next node in the memory. The last node of this type of a list contains a pointer to NULL.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Q3fv0v3w8fFepNVd" /></figure><p><em>Applications of Singly Linked List:</em></p><p>i. Prevent collision between data in a hash map</p><p>ii. UNDO, REDO or DELETE operations in a notepad</p><p>iii. Photo viewer to look at photos continuously in a slide show</p><p>iv. If one wants to add a bogie, they can either take a new bogie to add at the last or in between two bogies.</p><p>v. The next track feature of a music player</p><p><strong>Doubly Linked List: </strong>a complex type of linked list in which a node contains a pointer to the previous as well as the next node in the sequence.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/727/0*iJ29OeaATDz9ZoFm.png" /></figure><p><em>Applications of Doubly Linked List:</em></p><p>i. Represent deck of cards in games</p><p>ii. Used to represent various states of a game</p><p>iii. UNDO or REDO function</p><p>iv. Used by browsers to implement backward and forward navigation of the visited web pages</p><p>v. The next track and previous track feature of a music player</p><p><strong>Circular Linked List: </strong>the last node of the list contains a pointer to the first node of the list. We can have circular singly linked list as well as circular doubly linked list.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/711/0*eWfSjd5kz2gAN57l.png" /></figure><p><em>Applications of Circular Linked List:</em></p><p>i. All the running applications in an Operating System are kept in a circular linked list and the Operating System gives a fixed time slot to all for running. The Operating System iterates the list over and over again until all the applications get completed</p><p>ii. In Role Based Multiplayer games, all the players are kept in a circular linked list and the pointer keeps moving forward as a player’s chance ends</p><p>iii. Snake game in mobile phones, where head of the list is the snake’s head and tail of the list is the snake’s tail</p><p>iv. The repeat feature in a music player wherein a user will continuously listen to the playlist on repeat that is, when the songs of the playlist get over, the first song is played</p><p><strong>Graphs: </strong>a non-linear data structure which consists of nodes and edges. They are used to represent networks. The network includes paths in a city, a telephone network or a circuit network.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*vImAVcceKR0Hd20h" /></figure><p><em>Applications of Graphs:</em></p><p>i. Resource utilization and availability in an organization</p><p>ii. Interconnections in Social Media and other Network Based platforms</p><p>iii. Ecommerce applications where user preferences are set</p><p>iv. Shortest path from Point A to Point B can be found with the help of certain algorithms</p><p><strong>Queues: </strong>a linear structure which follows a particular order in which the operations have to be performed. The order of a queue is First in First Out i.e., a person who gets in queue first will get served first.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/542/0*xk7nK4c8A-RiG6BL" /></figure><p><em>Applications of Queues:</em></p><p>i. Processing requests on a single shared resource such as a printer, CPU task scheduling</p><p>ii. In a call center, queues are used to hold people calling them in an order until a service representative is free</p><p>iii. Handling of interrupts in a real-time system</p><p>iv. Priority queues used in file downloading operation of a browser</p><p><strong>Trees: </strong>a non-linear data structure that represents hierarchical data. It is a hierarchical structure as elements present inside this tree are arranged in multiple levels. The top most node is known as a Root Node and every node underneath this node is known as Child Node.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*Hu1i8uwruEeB8C75" /></figure><p><em>Applications of Trees:</em></p><p>i. In computer systems, directory and file systems</p><p>ii. Implementation of navigation structure of a website</p><p>iii. Decision making in video games</p><p>iv. Path Finding Algorithms which are then implemented in Artificial Intelligence, Robotics and Video Games</p><p>This article was written by my colleagues —</p><h4>Amber Upadhyay, Kedar Trivedi and Ashwin Sapariya and Rohan Pandav (me) as a project given to us by our teaching faculty of Data Structures and Algorithms.</h4><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6ab9920ea3e5" width="1" height="1" alt=""><hr><p><a href="https://medium.com/geekculture/applications-of-data-structures-6ab9920ea3e5">Applications of Data Structures</a> was originally published in <a href="https://medium.com/geekculture">Geek Culture</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>