



Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!




LINEAR DATA STRUCTURE NON-LINEAR DATA STRUCTURE LINEAR DATA STRUCTURE
NON-LINEAR DATA STRUCTURE
I) ARRAY
APPLICATIONS:
II) LINKED LIST
APPLICATIONS: Implementing stacks, queues, binary trees and graphs of predefined size Implement dynamic memory management functions of operating system. Polynomial implementation for mathematical operations
Circular linked list is used to implement OS or application functions that require round robin execution of tasks. Circular linked list is used in a slide show where a user wants to go back to the first slide after last slide is displayed. Doubly linked list is used in the implementation of forward and backward buttons in a browser to move backwards and forward in the opened pages of a website. Circular queue is used to maintain the playing sequence of multiple players in a game. III) STACKS A stack is a linear data structure in which insertion and deletion of elements are done at only one end, which is known as the top of the stack. Stack is called a last-in, first-out (LIFO) structure because the last element which is added to the stack is the first element which is deleted from the stack. A Stack In the computer’s memory, stacks can be implemented using arrays or linked lists. APPLICATIONS: Temporary storage structure for recursive operations Auxiliary storage structure for nested operations, function calls, Deferred/postponed functions Manage function calls Evaluation of arithmetic expressions in various programming languages Conversion of infix expressions into postfix expressions Checking syntax of expressions in a programming environment Matching of parenthesis String reversal In all the problems solutions based on backtracking. Used in depth first search in graph and tree traversal. Operating System functions UNDO and REDO functions in an edit IV) QUEUES
A graph is also a non-linear data structure. In a tree data structure, all data elements are stored in definite hierarchical structure. In other words, each node has only one parent node. While in graphs, each data element is called a vertex and is connected to many other vertexes through connections called edge APPLICATIONS: Representing networks and routes in communication, transportation and travel applications Routes in GPS Interconnections in social networks and other network-based applications Mapping applications Ecommerce applications to present user preferences Utility networks to identify the problems posed to municipal or local corporations Resource utilization and availability in an organization Document link map of a website to display connectivity between pages through hyperlinks Robotic motion and neural network