Applications of Data-Structure

Slides:



Advertisements
Similar presentations
Analysis of Algorithms CS 477/677
Advertisements

A stack is a data linear data structure in which addition of new element or deletion of an existing element always takes place at the same end. This.
Data Structures: A Pseudocode Approach with C
© 2004 Goodrich, Tamassia Stacks. © 2004 Goodrich, Tamassia Stacks2 The Stack ADT (§4.2) The Stack ADT stores arbitrary objects Insertions and deletions.
Advanced Data Structures
Lecture - 1 on Data Structures. Prepared by, Jesmin Akhter, Lecturer, IIT,JU Data Type and Data Structure Data type Set of possible values for variables.
Graphs CS-240/341. Graphs Used for representing many-to-many relationships –can take two forms directed (digraph) - a finite set of elements called vertices.
Graphs CS-240/341. Uses for Graphs computer networks and routing airline flights geographic maps course prerequisite structures tasks for completing a.
Lists A list is a finite, ordered sequence of data items. Two Implementations –Arrays –Linked Lists.
Chapter 12 C Data Structures Acknowledgment The notes are adapted from those provided by Deitel & Associates, Inc. and Pearson Education Inc.
© Copyright 1992–2004 by Deitel & Associates, Inc. and Pearson Education Inc. All Rights Reserved. Chapter 12 – Data Structures Outline 12.1Introduction.
Applied Algorithmics - week2
Review of Graphs A graph is composed of edges E and vertices V that link the nodes together. A graph G is often denoted G=(V,E) where V is the set of vertices.
Self Referential Structure. A structure may not contain a member of its own type. struct check { int item; struct check n; // Invalid };
Important Problem Types and Fundamental Data Structures
C o n f i d e n t i a l Developed By Nitendra NextHome Subject Name: Data Structure Using C Title: Overview of Data Structure.
Introduction to Data Structures. Data Structures A data structure is a scheme for organizing data in the memory of a computer. Some of the more commonly.
Trees & Graphs Nell Dale & John Lewis (adaptation by Michael Goldwasser and Erin Chambers)
Chapter 12 Data Structure Associate Prof. Yuh-Shyan Chen Dept. of Computer Science and Information Engineering National Chung-Cheng University.
Introduction to Data Structures. About the document. The document is prepared by Prof. Shannon Bradshaw at Drew University. The key concepts in data structure.
Introduction to Data Structures. Definition Data structure is representation of the logical relationship existing between individual elements of data.
Design and Analysis of Algorithms CSC201 Shahid Hussain 1.
Graphs – ADTs and Implementations ORD DFW SFO LAX
ECE 103 Engineering Programming Chapter 61 Abstract Data Types Herbert G. Mayer, PSU CS Status 6/4/2014 Initial content copied verbatim from ECE 103 material.
Graphs1 Definitions Examples The Graph ADT LAX PVD LAX DFW FTL STL HNL.
© 2004 Goodrich, Tamassia Stacks. © 2004 Goodrich, Tamassia Stacks2 Abstract Data Types (ADTs) An abstract data type (ADT) is an abstraction of a data.
 DATA STRUCTURE DATA STRUCTURE  DATA STRUCTURE OPERATIONS DATA STRUCTURE OPERATIONS  BIG-O NOTATION BIG-O NOTATION  TYPES OF DATA STRUCTURE TYPES.
Stacks. A stack is a data structure that holds a sequence of elements and stores and retrieves items in a last-in first- out manner (LIFO). This means.
Spring 2007Graphs1 ORD DFW SFO LAX
Data Structures: Advanced Damian Gordon. Advanced Data Structure We’ll look at: – Linked Lists – Trees – Stacks – Queues.
Foundation of Computing Systems Lecture 3 Stacks and Queues.
Data Structures Types of Data Structure Data Structure Operations Examples Choosing Data Structures Data Structures in Alice.
Elementary Data Organization. Outline  Data, Entity and Information  Primitive data types  Non primitive data Types  Data structure  Definition 
Chapter 16 – Data Structures and Recursion. Data Structures u Built-in –Array –struct u User developed –linked list –stack –queue –tree Lesson 16.1.
Data Structures Chapter 6. Data Structure A data structure is a representation of data and the operations allowed on that data. Examples: 1.Array 2.Record.
Copyright © 2007 Pearson Education, Inc. Publishing as Pearson Addison-Wesley. Ver Chapter 13: Graphs Data Abstraction & Problem Solving with C++
Welcome to CSCE 221 – Data Structures and Algorithms
CH 5 : STACKS, QUEUES, AND DEQUES ACKNOWLEDGEMENT: THE SLIDES ARE PREPARED FROM SLIDES PROVIDED WITH DATA STRUCTURES AND ALGORITHMS IN C++, GOODRICH, TAMASSIA.
Graphs and Paths : Chapter 15 Saurav Karmakar
Onlinedeeneislam.blogspot.com1 Design and Analysis of Algorithms Slide # 1 Download From
Data Structure and Algorithms
Linked list: a list of items (nodes), in which the order of the nodes is determined by the address, called the link, stored in each node C++ Programming:
ARRAYS IN C/C++ (1-Dimensional & 2-Dimensional) Introduction 1-D 2-D Applications Operations Limitations Conclusion Bibliography.
© Copyright 1992–2004 by Deitel & Associates, Inc. and Pearson Education Inc. All Rights Reserved. Linked Lists Outline Introduction Self-Referential Structures.
Department of Computer Engineering Faculty of Engineering, Prince of Songkla University Graphs Original Slides by Rada Mihalcea.
INTRODUCTION TO DATA STRUCTURES 1. DATA STRUCTURES A data structure is a scheme for organizing data in the memory of a computer. Some of the more commonly.
BCA-II Data Structure Using C Submitted By: Veenu Saini
Data Structures & Algorithm Analysis lec(8):Graph T. Souad alonazi
Graphs.
STACKS & QUEUES for CLASS XII ( C++).
Data Structure By Amee Trivedi.
Set Collection A Bag is a general collection class that implements the Collection interface. A Set is a collection that resembles a Bag with the provision.
Chapter 12 – Data Structures
Data Structure Interview Question and Answers
DATA STRUCTURES AND OBJECT ORIENTED PROGRAMMING IN C++
UNIT-3 LINKED LIST.
Graphs 7/18/2018 7:39 AM Presentation for use with the textbook Data Structures and Algorithms in Java, 6th edition, by M. T. Goodrich, R. Tamassia, and.
Data Structures Data Structure is a way of collecting and organising data in such a way that we can perform operations on these data in an effective.
Stacks and Queues.
Queues Queues Queues.
Graphs ORD SFO LAX DFW Graphs Graphs
Introduction to Data Structure
Arrays and Linked Lists
Introduction to Data Structures
Introduction to Data Structures
What is a Graph? a b c d e V= {a,b,c,d,e} E= {(a,b),(a,c),(a,d),
Review & Lab assignments
Graphs 4/29/15 01:28:20 PM Presentation for use with the textbook Data Structures and Algorithms in Java, 6th edition, by M. T. Goodrich, R. Tamassia,
What is a Graph? a b c d e V= {a,b,c,d,e} E= {(a,b),(a,c),(a,d),
Important Problem Types and Fundamental Data Structures
Presentation transcript:

Applications of Data-Structure Presentation On Applications of Data-Structure

Contents What is Data Structure? Array & its applications Stack & its applications Queue & its applications Linked List & its applications Tree & its applications Graph & its applications Conclusion

Data Structure Data structure is representation of the logical relationship existing between individual elements of data . Data Structure is the logical or mathematical model of a particular organization of data is called the Data Structure

Arrays An Array is a group of similar data items which are referred by a common name. Simply ,Array may be defined abstractly as finite order set of homogeneous elements.

Applications of Array To store elements of the same data type. Used for maintaining multiple variable names using single name. Used for Sorting Elements Used in CPU Scheduling [Queue] Can be Used in Recursive Function

Stacks : Last in First out Queue:First in First out Stacks & Queues Stacks : Last in First out Queue:First in First out

Stacks A Stack is a list in which all insertions and deletions are made at one end, called the TOP. The last element to be inserted into the stack will be the first to be removed.

Applications of Stacks Direct Applications Page-visited history in a Web browser Undo sequence in a text editor Saving local variables when one function calls another, and this one calls another, and so on. Indirect Applications Auxiliary data structure for algorithms Component of other data structures

Queues A Queue is an ordered collection of items from which items may be deleted at one end (called the front of the queue) and into which items may be inserted at the other end (the rear of the queue).

Applications of Queues Direct Applications Waiting lines Access to shared resources (e.g., printer) Multiprogramming Indirect Applications Auxiliary data structure for algorithms Component of other data structures

Linked List A Linked List is a data structure which can change during execution. Successive elements are connected by pointers. Last element points to NULL.

Applications of Linked List For representing Polynomials It means in addition/subtraction/multiplication.. of two polynomials. Eg: We have p1=2x^2+3x+7 and p2=3x^3+5x+2 then p1+p2=3x^3+2x^2+8x+9 In Dynamic Memory Management In allocation and releasing memory at runtime

Trees Tree Nodes Each node can have 0ne or more children A node can have at most one parent Binary tree Tree with 0–2 children per node

Applications of Tree DBMS(Data Base Management) Operating System Network Topology (LAN,MAN & WAN.)

Graph a b c d e A graph G = (V,E) is composed of: V: set of vertices E: set of edges connecting the vertices in V An edge e = (u,v) is a pair of vertices Example: a b V= {a,b,c,d,e} E= {(a,b),(a,c),(a,d), (b,e),(c,d),(c,e), (d,e)} c d e

Applications of Graph Electronic circuits Networks CS16 Electronic circuits Networks (roads, flights, communications) LAX JFK DFW STL HNL

CONCLUSION Waiting lines Page-visited history in a Web browser Undo sequence in a text edition CONCLUSION Electronic circuits Networks (roads, flights, communications) Network Topology DBMS(Data Base Management) Operating System

THANKS

QUERY ????