SlideShare a Scribd company logo
1 of 17
Download to read offline
Module:
                            Data
                         Structures
                           with C


Introduction to Data Structures




                                  C3: Protected
Icons Used


                                                                   Hands on
 Questions          Tools                                          Exercise




Coding              Test Your
                                                                    Reference
Standards           Understanding




                    A Welcome
Demonstration                                                       Contacts
                    Break



                2   ©Copyright 2007, Cognizant Technology Solutions, All Rights Reserved
Introduction to Data Structures:
                               Overview
Introduction:
  The session briefly explains about what a data
  structure is, what are the different data structures
  available, and how to decide on the data
  structure to be used for a particular application.




                   3    ©Copyright 2007, Cognizant Technology Solutions, All Rights Reserved
Introduction to Data Structures:
                                  Objectives
  Objective:
After completing this session, you will be able to:
      Define a data structure
      List the types of data structures
      Identify how to analyze and select data structure
      for a particular application




                      4    ©Copyright 2007, Cognizant Technology Solutions, All Rights Reserved
Overview

Data type - specification of a set of data and
the characteristics for that data.
Data structure - actual implementation of the
data type.
  Examples:
     Arrays
     Stack
     Queue
     Lists




                5    ©Copyright 2007, Cognizant Technology Solutions, All Rights Reserved
Abstract Data Type

Definition - a data type together with the
operations, whose properties are specified
independently of any particular
implementation.
Implementation details are not considered.
The definition can be mathematical or can
be programmed as an interface.




                6   ©Copyright 2007, Cognizant Technology Solutions, All Rights Reserved
Types of Data Structures

Linear structures:
   A data structure is said to be linear if its elements form a
   sequence or a linear list.
Hash tables:
   A hash table, or a hash map, is a data structure that
   associates keys with values.
Trees:
   A tree can be viewed as a branching structure with no
   loops
Graph:
   A graph is a data structure, that consists of a set of nodes
   and a set of edges that establish relationships
   (connections) between the nodes.

                       7      ©Copyright 2007, Cognizant Technology Solutions, All Rights Reserved
Selecting a Data Structure

Selecting a Data Structure begins from
choice of an appropriate Abstract Data Type
ADT.
Abstract Data Structure: An abstract storage
for data defined in terms of the set of
operations to be performed on the data and
computational complexity for performing
these operations. This is regardless of the
implementation in a concrete data structure.



                8   ©Copyright 2007, Cognizant Technology Solutions, All Rights Reserved
Selecting a Data Structure
                                 (Contd.)
Selection of an abstract data structure is
crucial in the design of efficient algorithms
and in estimating their computational
complexity.
Selection of concrete data structures is
important for efficient implementation of
algorithms.




                 9    ©Copyright 2007, Cognizant Technology Solutions, All Rights Reserved
Performance Analysis and
                             Measurements
Space and time complexity:
   Space complexity: The amount of main memory needed to
   execute a program (space for program and data) till it
   produces output.
   Time complexity: Total CPU time taken by a program
   during execution till it produces output.
Complexity can be classified into the following three
categories.
   Best Case:
      The minimum CPU time taken by a program.
   Worst Case:
      The maximum CPU time taken by a program.
   Average Case:
      The average CPU time taken by a program.
                     10     ©Copyright 2007, Cognizant Technology Solutions, All Rights Reserved
Big O Notation

Big O notation:
  A mathematical notation used to describe the
  asymptotic behavior of functions.
  Used to characterize a function's behavior for
  very large / very small inputs in a simple but
  rigorous way that enables comparison to other
  functions.
  Notations:
     O
     Ω
     Θ



                  11   ©Copyright 2007, Cognizant Technology Solutions, All Rights Reserved
Big O Notation (Contd.)

The Big O notation is used to measure:
  The complexity of algorithms
  The efficiency of algorithms
Used to express an ordering property among
functions.
T(N) – gives the amount of the resource
(usually time or the count of some specific
operation) consumed when the input to the
algorithm is of size N.


                 12     ©Copyright 2007, Cognizant Technology Solutions, All Rights Reserved
Questions from participants




               13   ©Copyright 2007, Cognizant Technology Solutions, All Rights Reserved
Test Your Understanding

1. What is the difference between a data type
   and a data structure?
2. What is the complexity of the following
   program?
     Calculation of average mark of the students in a
     class.




                   14    ©Copyright 2007, Cognizant Technology Solutions, All Rights Reserved
Introduction to Data Structures:
                                Summary
Study of data structure deals with the actual
implementation of the data type and gives a way of
storing data in an efficient manner.
An Abstract Data Type (ADT) is a data type together
with the operations, whose properties are specified
independently of any particular implementation.
The different types of data structure available are:
  Linear
  Hash table
  Trees
  Graphs



                  15    ©Copyright 2007, Cognizant Technology Solutions, All Rights Reserved
Introduction to Data Structures:
                                               Source
    Fundamentals of Data Structures by Ellis Horowitz
    Data structures through C by G.S. Baluja
    www.wikipedia.com
    http://www.macs.hw.ac.uk/~alison/ds98/ds98.html
    http://www.idevelopment.info/data/Programming/data_structure
    s/overview/Data_Structures_Algorithms_Introduction.shtml
    http://www.cs.auckland.ac.nz/software/AlgAnim/lists.html
    http://students.washington.edu/mukundn/courses/cse490b/ove
    rview.html


Disclaimer: Parts of the content of this course is based on the materials available from the
Web sites and books listed above. The materials that can be accessed from linked sites are
not maintained by Cognizant Academy and we are not responsible for the contents thereof.
All trademarks, service marks, and trade names in this course are the marks of the respective
owner(s).

                                    16        ©Copyright 2007, Cognizant Technology Solutions, All Rights Reserved
You have successfully completed
 Introduction to Data Structures

More Related Content

What's hot (7)

Supervised learning
Supervised learningSupervised learning
Supervised learning
 
Introduction to Data warehousiing and Mining
Introduction to Data warehousiing and MiningIntroduction to Data warehousiing and Mining
Introduction to Data warehousiing and Mining
 
Database system structure
Database system structureDatabase system structure
Database system structure
 
Artificial Neural Networks for Data Mining
Artificial Neural Networks for Data MiningArtificial Neural Networks for Data Mining
Artificial Neural Networks for Data Mining
 
Implementation Issue with ORDBMS
Implementation Issue with ORDBMSImplementation Issue with ORDBMS
Implementation Issue with ORDBMS
 
SULTHAN's - Data Structures
SULTHAN's - Data StructuresSULTHAN's - Data Structures
SULTHAN's - Data Structures
 
Chapt 1 odbms
Chapt 1 odbmsChapt 1 odbms
Chapt 1 odbms
 

Viewers also liked

Soc fundraising presentation
Soc fundraising presentationSoc fundraising presentation
Soc fundraising presentationMyVitaleCards
 
Teknofikir hizmetler
Teknofikir hizmetlerTeknofikir hizmetler
Teknofikir hizmetlerteknofikir
 
Desarrolla competencias personales
Desarrolla competencias personalesDesarrolla competencias personales
Desarrolla competencias personaleslaura10lopez
 
Trabajo sobre los plasmas
Trabajo sobre los plasmasTrabajo sobre los plasmas
Trabajo sobre los plasmaslaura10lopez
 
Ordenadores de bolsillo u organisador personal digital
Ordenadores de bolsillo u organisador personal digitalOrdenadores de bolsillo u organisador personal digital
Ordenadores de bolsillo u organisador personal digitallaura10lopez
 
03 isi gabungan (updated)
03 isi gabungan (updated)03 isi gabungan (updated)
03 isi gabungan (updated)Nuriy Nurhane
 
SSIS ibvahandbook
SSIS ibvahandbookSSIS ibvahandbook
SSIS ibvahandbooknadonassis
 
Desarrollo de competencias personales
Desarrollo de competencias personalesDesarrollo de competencias personales
Desarrollo de competencias personaleslaura10lopez
 
Question 6
Question 6 Question 6
Question 6 caddy20
 
Question 4
Question 4 Question 4
Question 4 caddy20
 
Stridepresentation
StridepresentationStridepresentation
Stridepresentationmillsjk
 
Rph pencemaran udara
Rph pencemaran udaraRph pencemaran udara
Rph pencemaran udaraNuriy Nurhane
 
Enfermedades renales
Enfermedades renalesEnfermedades renales
Enfermedades renalesleidydu
 

Viewers also liked (17)

Soc fundraising presentation
Soc fundraising presentationSoc fundraising presentation
Soc fundraising presentation
 
Car2go
Car2goCar2go
Car2go
 
Teknofikir hizmetler
Teknofikir hizmetlerTeknofikir hizmetler
Teknofikir hizmetler
 
קריאייטיב
קריאייטיבקריאייטיב
קריאייטיב
 
Windows live sky drive
Windows live sky driveWindows live sky drive
Windows live sky drive
 
Desarrolla competencias personales
Desarrolla competencias personalesDesarrolla competencias personales
Desarrolla competencias personales
 
Trabajo sobre los plasmas
Trabajo sobre los plasmasTrabajo sobre los plasmas
Trabajo sobre los plasmas
 
Ordenadores de bolsillo u organisador personal digital
Ordenadores de bolsillo u organisador personal digitalOrdenadores de bolsillo u organisador personal digital
Ordenadores de bolsillo u organisador personal digital
 
03 isi gabungan (updated)
03 isi gabungan (updated)03 isi gabungan (updated)
03 isi gabungan (updated)
 
SSIS ibvahandbook
SSIS ibvahandbookSSIS ibvahandbook
SSIS ibvahandbook
 
Desarrollo de competencias personales
Desarrollo de competencias personalesDesarrollo de competencias personales
Desarrollo de competencias personales
 
Question 6
Question 6 Question 6
Question 6
 
Question 4
Question 4 Question 4
Question 4
 
Ib exhibition
Ib exhibitionIb exhibition
Ib exhibition
 
Stridepresentation
StridepresentationStridepresentation
Stridepresentation
 
Rph pencemaran udara
Rph pencemaran udaraRph pencemaran udara
Rph pencemaran udara
 
Enfermedades renales
Enfermedades renalesEnfermedades renales
Enfermedades renales
 

Similar to Dsc -session01_introduction_to_data_structures_v2_1_.2

Programming Assignment Help
Programming Assignment HelpProgramming Assignment Help
Programming Assignment Help#essaywriting
 
Software_Engineering_Presentation (1).pptx
Software_Engineering_Presentation (1).pptxSoftware_Engineering_Presentation (1).pptx
Software_Engineering_Presentation (1).pptxArifaMehreen1
 
System analysis and design
System analysis and designSystem analysis and design
System analysis and designRobinsonObura
 
P209 leithiser-relationaldb-formal-specifications
P209 leithiser-relationaldb-formal-specificationsP209 leithiser-relationaldb-formal-specifications
P209 leithiser-relationaldb-formal-specificationsBob Leithiser
 
01VD062009003760042.pdf
01VD062009003760042.pdf01VD062009003760042.pdf
01VD062009003760042.pdfSunilMatsagar1
 
FORMALIZATION & DATA ABSTRACTION DURING USE CASE MODELING IN OBJECT ORIENTED ...
FORMALIZATION & DATA ABSTRACTION DURING USE CASE MODELING IN OBJECT ORIENTED ...FORMALIZATION & DATA ABSTRACTION DURING USE CASE MODELING IN OBJECT ORIENTED ...
FORMALIZATION & DATA ABSTRACTION DURING USE CASE MODELING IN OBJECT ORIENTED ...cscpconf
 
Formalization & data abstraction during use case modeling in object oriented ...
Formalization & data abstraction during use case modeling in object oriented ...Formalization & data abstraction during use case modeling in object oriented ...
Formalization & data abstraction during use case modeling in object oriented ...csandit
 
IRJET- Plug-In based System for Data Visualization
IRJET- Plug-In based System for Data VisualizationIRJET- Plug-In based System for Data Visualization
IRJET- Plug-In based System for Data VisualizationIRJET Journal
 
Cs 1023 lec 13 web (week 4)
Cs 1023 lec 13 web (week 4)Cs 1023 lec 13 web (week 4)
Cs 1023 lec 13 web (week 4)stanbridge
 
Review on Automation Tool for ERD Normalization
Review on Automation Tool for ERD NormalizationReview on Automation Tool for ERD Normalization
Review on Automation Tool for ERD NormalizationIRJET Journal
 
database concepts pdf :BEMIT
database concepts pdf :BEMITdatabase concepts pdf :BEMIT
database concepts pdf :BEMITUsman Mchinja
 
employee turnover prediction document.docx
employee turnover prediction document.docxemployee turnover prediction document.docx
employee turnover prediction document.docxrohithprabhas1
 

Similar to Dsc -session01_introduction_to_data_structures_v2_1_.2 (20)

Programming Assignment Help
Programming Assignment HelpProgramming Assignment Help
Programming Assignment Help
 
IT6701-Information management question bank
IT6701-Information management question bankIT6701-Information management question bank
IT6701-Information management question bank
 
Ds new
Ds newDs new
Ds new
 
Software_Engineering_Presentation (1).pptx
Software_Engineering_Presentation (1).pptxSoftware_Engineering_Presentation (1).pptx
Software_Engineering_Presentation (1).pptx
 
System analysis and design
System analysis and designSystem analysis and design
System analysis and design
 
P209 leithiser-relationaldb-formal-specifications
P209 leithiser-relationaldb-formal-specificationsP209 leithiser-relationaldb-formal-specifications
P209 leithiser-relationaldb-formal-specifications
 
01VD062009003760042.pdf
01VD062009003760042.pdf01VD062009003760042.pdf
01VD062009003760042.pdf
 
FORMALIZATION & DATA ABSTRACTION DURING USE CASE MODELING IN OBJECT ORIENTED ...
FORMALIZATION & DATA ABSTRACTION DURING USE CASE MODELING IN OBJECT ORIENTED ...FORMALIZATION & DATA ABSTRACTION DURING USE CASE MODELING IN OBJECT ORIENTED ...
FORMALIZATION & DATA ABSTRACTION DURING USE CASE MODELING IN OBJECT ORIENTED ...
 
Formalization & data abstraction during use case modeling in object oriented ...
Formalization & data abstraction during use case modeling in object oriented ...Formalization & data abstraction during use case modeling in object oriented ...
Formalization & data abstraction during use case modeling in object oriented ...
 
IRJET- Plug-In based System for Data Visualization
IRJET- Plug-In based System for Data VisualizationIRJET- Plug-In based System for Data Visualization
IRJET- Plug-In based System for Data Visualization
 
Chapter 1- IT.pptx
Chapter 1- IT.pptxChapter 1- IT.pptx
Chapter 1- IT.pptx
 
Cs 1023 lec 13 web (week 4)
Cs 1023 lec 13 web (week 4)Cs 1023 lec 13 web (week 4)
Cs 1023 lec 13 web (week 4)
 
Mrithyunjaya_V_Sarangmath
Mrithyunjaya_V_SarangmathMrithyunjaya_V_Sarangmath
Mrithyunjaya_V_Sarangmath
 
Oop obj c
Oop obj cOop obj c
Oop obj c
 
Review on Automation Tool for ERD Normalization
Review on Automation Tool for ERD NormalizationReview on Automation Tool for ERD Normalization
Review on Automation Tool for ERD Normalization
 
OOP ppt.pdf
OOP ppt.pdfOOP ppt.pdf
OOP ppt.pdf
 
RDBMS to NoSQL. An overview.
RDBMS to NoSQL. An overview.RDBMS to NoSQL. An overview.
RDBMS to NoSQL. An overview.
 
database concepts pdf :BEMIT
database concepts pdf :BEMITdatabase concepts pdf :BEMIT
database concepts pdf :BEMIT
 
employee turnover prediction document.docx
employee turnover prediction document.docxemployee turnover prediction document.docx
employee turnover prediction document.docx
 
lecture7.ppt
lecture7.pptlecture7.ppt
lecture7.ppt
 

Recently uploaded

ROLES IN A STAGE PRODUCTION in arts.pptx
ROLES IN A STAGE PRODUCTION in arts.pptxROLES IN A STAGE PRODUCTION in arts.pptx
ROLES IN A STAGE PRODUCTION in arts.pptxVanesaIglesias10
 
Activity 2-unit 2-update 2024. English translation
Activity 2-unit 2-update 2024. English translationActivity 2-unit 2-update 2024. English translation
Activity 2-unit 2-update 2024. English translationRosabel UA
 
Keynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designKeynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designMIPLM
 
ICS2208 Lecture6 Notes for SL spaces.pdf
ICS2208 Lecture6 Notes for SL spaces.pdfICS2208 Lecture6 Notes for SL spaces.pdf
ICS2208 Lecture6 Notes for SL spaces.pdfVanessa Camilleri
 
Karra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptxKarra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptxAshokKarra1
 
Music 9 - 4th quarter - Vocal Music of the Romantic Period.pptx
Music 9 - 4th quarter - Vocal Music of the Romantic Period.pptxMusic 9 - 4th quarter - Vocal Music of the Romantic Period.pptx
Music 9 - 4th quarter - Vocal Music of the Romantic Period.pptxleah joy valeriano
 
What is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPWhat is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPCeline George
 
Q4-PPT-Music9_Lesson-1-Romantic-Opera.pptx
Q4-PPT-Music9_Lesson-1-Romantic-Opera.pptxQ4-PPT-Music9_Lesson-1-Romantic-Opera.pptx
Q4-PPT-Music9_Lesson-1-Romantic-Opera.pptxlancelewisportillo
 
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATIONTHEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATIONHumphrey A Beña
 
ENG 5 Q4 WEEk 1 DAY 1 Restate sentences heard in one’s own words. Use appropr...
ENG 5 Q4 WEEk 1 DAY 1 Restate sentences heard in one’s own words. Use appropr...ENG 5 Q4 WEEk 1 DAY 1 Restate sentences heard in one’s own words. Use appropr...
ENG 5 Q4 WEEk 1 DAY 1 Restate sentences heard in one’s own words. Use appropr...JojoEDelaCruz
 
AUDIENCE THEORY -CULTIVATION THEORY - GERBNER.pptx
AUDIENCE THEORY -CULTIVATION THEORY -  GERBNER.pptxAUDIENCE THEORY -CULTIVATION THEORY -  GERBNER.pptx
AUDIENCE THEORY -CULTIVATION THEORY - GERBNER.pptxiammrhaywood
 
Student Profile Sample - We help schools to connect the data they have, with ...
Student Profile Sample - We help schools to connect the data they have, with ...Student Profile Sample - We help schools to connect the data they have, with ...
Student Profile Sample - We help schools to connect the data they have, with ...Seán Kennedy
 
Integumentary System SMP B. Pharm Sem I.ppt
Integumentary System SMP B. Pharm Sem I.pptIntegumentary System SMP B. Pharm Sem I.ppt
Integumentary System SMP B. Pharm Sem I.pptshraddhaparab530
 
4.16.24 21st Century Movements for Black Lives.pptx
4.16.24 21st Century Movements for Black Lives.pptx4.16.24 21st Century Movements for Black Lives.pptx
4.16.24 21st Century Movements for Black Lives.pptxmary850239
 
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)lakshayb543
 
4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptx4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptxmary850239
 
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17Celine George
 
Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Celine George
 

Recently uploaded (20)

ROLES IN A STAGE PRODUCTION in arts.pptx
ROLES IN A STAGE PRODUCTION in arts.pptxROLES IN A STAGE PRODUCTION in arts.pptx
ROLES IN A STAGE PRODUCTION in arts.pptx
 
Activity 2-unit 2-update 2024. English translation
Activity 2-unit 2-update 2024. English translationActivity 2-unit 2-update 2024. English translation
Activity 2-unit 2-update 2024. English translation
 
Keynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designKeynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-design
 
YOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptx
YOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptxYOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptx
YOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptx
 
ICS2208 Lecture6 Notes for SL spaces.pdf
ICS2208 Lecture6 Notes for SL spaces.pdfICS2208 Lecture6 Notes for SL spaces.pdf
ICS2208 Lecture6 Notes for SL spaces.pdf
 
FINALS_OF_LEFT_ON_C'N_EL_DORADO_2024.pptx
FINALS_OF_LEFT_ON_C'N_EL_DORADO_2024.pptxFINALS_OF_LEFT_ON_C'N_EL_DORADO_2024.pptx
FINALS_OF_LEFT_ON_C'N_EL_DORADO_2024.pptx
 
Karra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptxKarra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptx
 
Music 9 - 4th quarter - Vocal Music of the Romantic Period.pptx
Music 9 - 4th quarter - Vocal Music of the Romantic Period.pptxMusic 9 - 4th quarter - Vocal Music of the Romantic Period.pptx
Music 9 - 4th quarter - Vocal Music of the Romantic Period.pptx
 
What is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPWhat is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERP
 
Q4-PPT-Music9_Lesson-1-Romantic-Opera.pptx
Q4-PPT-Music9_Lesson-1-Romantic-Opera.pptxQ4-PPT-Music9_Lesson-1-Romantic-Opera.pptx
Q4-PPT-Music9_Lesson-1-Romantic-Opera.pptx
 
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATIONTHEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
 
ENG 5 Q4 WEEk 1 DAY 1 Restate sentences heard in one’s own words. Use appropr...
ENG 5 Q4 WEEk 1 DAY 1 Restate sentences heard in one’s own words. Use appropr...ENG 5 Q4 WEEk 1 DAY 1 Restate sentences heard in one’s own words. Use appropr...
ENG 5 Q4 WEEk 1 DAY 1 Restate sentences heard in one’s own words. Use appropr...
 
AUDIENCE THEORY -CULTIVATION THEORY - GERBNER.pptx
AUDIENCE THEORY -CULTIVATION THEORY -  GERBNER.pptxAUDIENCE THEORY -CULTIVATION THEORY -  GERBNER.pptx
AUDIENCE THEORY -CULTIVATION THEORY - GERBNER.pptx
 
Student Profile Sample - We help schools to connect the data they have, with ...
Student Profile Sample - We help schools to connect the data they have, with ...Student Profile Sample - We help schools to connect the data they have, with ...
Student Profile Sample - We help schools to connect the data they have, with ...
 
Integumentary System SMP B. Pharm Sem I.ppt
Integumentary System SMP B. Pharm Sem I.pptIntegumentary System SMP B. Pharm Sem I.ppt
Integumentary System SMP B. Pharm Sem I.ppt
 
4.16.24 21st Century Movements for Black Lives.pptx
4.16.24 21st Century Movements for Black Lives.pptx4.16.24 21st Century Movements for Black Lives.pptx
4.16.24 21st Century Movements for Black Lives.pptx
 
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
 
4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptx4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptx
 
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
 
Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17
 

Dsc -session01_introduction_to_data_structures_v2_1_.2

  • 1. Module: Data Structures with C Introduction to Data Structures C3: Protected
  • 2. Icons Used Hands on Questions Tools Exercise Coding Test Your Reference Standards Understanding A Welcome Demonstration Contacts Break 2 ©Copyright 2007, Cognizant Technology Solutions, All Rights Reserved
  • 3. Introduction to Data Structures: Overview Introduction: The session briefly explains about what a data structure is, what are the different data structures available, and how to decide on the data structure to be used for a particular application. 3 ©Copyright 2007, Cognizant Technology Solutions, All Rights Reserved
  • 4. Introduction to Data Structures: Objectives Objective: After completing this session, you will be able to: Define a data structure List the types of data structures Identify how to analyze and select data structure for a particular application 4 ©Copyright 2007, Cognizant Technology Solutions, All Rights Reserved
  • 5. Overview Data type - specification of a set of data and the characteristics for that data. Data structure - actual implementation of the data type. Examples: Arrays Stack Queue Lists 5 ©Copyright 2007, Cognizant Technology Solutions, All Rights Reserved
  • 6. Abstract Data Type Definition - a data type together with the operations, whose properties are specified independently of any particular implementation. Implementation details are not considered. The definition can be mathematical or can be programmed as an interface. 6 ©Copyright 2007, Cognizant Technology Solutions, All Rights Reserved
  • 7. Types of Data Structures Linear structures: A data structure is said to be linear if its elements form a sequence or a linear list. Hash tables: A hash table, or a hash map, is a data structure that associates keys with values. Trees: A tree can be viewed as a branching structure with no loops Graph: A graph is a data structure, that consists of a set of nodes and a set of edges that establish relationships (connections) between the nodes. 7 ©Copyright 2007, Cognizant Technology Solutions, All Rights Reserved
  • 8. Selecting a Data Structure Selecting a Data Structure begins from choice of an appropriate Abstract Data Type ADT. Abstract Data Structure: An abstract storage for data defined in terms of the set of operations to be performed on the data and computational complexity for performing these operations. This is regardless of the implementation in a concrete data structure. 8 ©Copyright 2007, Cognizant Technology Solutions, All Rights Reserved
  • 9. Selecting a Data Structure (Contd.) Selection of an abstract data structure is crucial in the design of efficient algorithms and in estimating their computational complexity. Selection of concrete data structures is important for efficient implementation of algorithms. 9 ©Copyright 2007, Cognizant Technology Solutions, All Rights Reserved
  • 10. Performance Analysis and Measurements Space and time complexity: Space complexity: The amount of main memory needed to execute a program (space for program and data) till it produces output. Time complexity: Total CPU time taken by a program during execution till it produces output. Complexity can be classified into the following three categories. Best Case: The minimum CPU time taken by a program. Worst Case: The maximum CPU time taken by a program. Average Case: The average CPU time taken by a program. 10 ©Copyright 2007, Cognizant Technology Solutions, All Rights Reserved
  • 11. Big O Notation Big O notation: A mathematical notation used to describe the asymptotic behavior of functions. Used to characterize a function's behavior for very large / very small inputs in a simple but rigorous way that enables comparison to other functions. Notations: O Ω Θ 11 ©Copyright 2007, Cognizant Technology Solutions, All Rights Reserved
  • 12. Big O Notation (Contd.) The Big O notation is used to measure: The complexity of algorithms The efficiency of algorithms Used to express an ordering property among functions. T(N) – gives the amount of the resource (usually time or the count of some specific operation) consumed when the input to the algorithm is of size N. 12 ©Copyright 2007, Cognizant Technology Solutions, All Rights Reserved
  • 13. Questions from participants 13 ©Copyright 2007, Cognizant Technology Solutions, All Rights Reserved
  • 14. Test Your Understanding 1. What is the difference between a data type and a data structure? 2. What is the complexity of the following program? Calculation of average mark of the students in a class. 14 ©Copyright 2007, Cognizant Technology Solutions, All Rights Reserved
  • 15. Introduction to Data Structures: Summary Study of data structure deals with the actual implementation of the data type and gives a way of storing data in an efficient manner. An Abstract Data Type (ADT) is a data type together with the operations, whose properties are specified independently of any particular implementation. The different types of data structure available are: Linear Hash table Trees Graphs 15 ©Copyright 2007, Cognizant Technology Solutions, All Rights Reserved
  • 16. Introduction to Data Structures: Source Fundamentals of Data Structures by Ellis Horowitz Data structures through C by G.S. Baluja www.wikipedia.com http://www.macs.hw.ac.uk/~alison/ds98/ds98.html http://www.idevelopment.info/data/Programming/data_structure s/overview/Data_Structures_Algorithms_Introduction.shtml http://www.cs.auckland.ac.nz/software/AlgAnim/lists.html http://students.washington.edu/mukundn/courses/cse490b/ove rview.html Disclaimer: Parts of the content of this course is based on the materials available from the Web sites and books listed above. The materials that can be accessed from linked sites are not maintained by Cognizant Academy and we are not responsible for the contents thereof. All trademarks, service marks, and trade names in this course are the marks of the respective owner(s). 16 ©Copyright 2007, Cognizant Technology Solutions, All Rights Reserved
  • 17. You have successfully completed Introduction to Data Structures