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

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
 
DATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersDATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersSabitha Banu
 
How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17Celine George
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTiammrhaywood
 
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...JhezDiaz1
 
Full Stack Web Development Course for Beginners
Full Stack Web Development Course  for BeginnersFull Stack Web Development Course  for Beginners
Full Stack Web Development Course for BeginnersSabitha Banu
 
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...Nguyen Thanh Tu Collection
 
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
 
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptxMULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptxAnupkumar Sharma
 
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdfAMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdfphamnguyenenglishnb
 
Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Celine George
 
Choosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for ParentsChoosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for Parentsnavabharathschool99
 
ENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choomENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choomnelietumpap1
 
ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4MiaBumagat1
 
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxiammrhaywood
 
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
 
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptxINTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptxHumphrey A Beña
 

Recently uploaded (20)

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
 
DATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersDATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginners
 
How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
 
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
 
Full Stack Web Development Course for Beginners
Full Stack Web Development Course  for BeginnersFull Stack Web Development Course  for Beginners
Full Stack Web Development Course for Beginners
 
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
 
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
 
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptxMULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
 
OS-operating systems- ch04 (Threads) ...
OS-operating systems- ch04 (Threads) ...OS-operating systems- ch04 (Threads) ...
OS-operating systems- ch04 (Threads) ...
 
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdfAMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
 
Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17
 
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdfTataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
 
Choosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for ParentsChoosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for Parents
 
ENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choomENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choom
 
ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4
 
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
 
YOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptx
YOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptxYOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptx
YOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.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)
 
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptxINTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
 

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