SlideShare a Scribd company logo
1 of 22
Lecture 1
 Data Structures By Seymour Lipschutz
[Schaum’s Outline]
 An Introduction to Data structures with
Applications by Tremblay and Sorenson
 Introduction to Data Structure
 Data Structures
 Data Structure Operations
 Data are values or a set of values
 Data item refers to single unit of values
 Data item
 Group item :
Data item that can be subdivided into sub item.
Ex Name : First Name, Middle initial and Last Name
 Elementary item:
Data item that can not be sub divided into sub item
Ex : PAN card number / Bank Pass Book Number is
treated as single item
Collection of data are frequently organized
into a hierarchy of fields, records and files
 Entity :
 Something that has certain attributes or properties
which may be assigned values
 Values may be numeric or non-numeric
 Ex: The employee of an organization
Attributes Name Age Gen Employee Code
Values John 33 M 13472
 Entity with similar attributes ( e.g all employees
of an organization) form an entity set
 Each attribute of an entity set has a range of
values [ the set of possible values that could be
assigned to the particular attribute]
 Information: Data with given attribute or
processed data
 Field is a single elementary unit of information
representing an attribute of an entity
 Record is the collection of field values of a given
entity
 File is the collection of records of the entities in a
given entity set
Nam
e
Age Gen Roll Number Branch
A 17 M 109cs0132 CSE
B 18 M 109ee1234 EE
C 19 F 109ce0012 CE
D 20 F 108mm0132 MM
 Record
 Fixed Length
 Variable Length
 Study of Data Structure includes the following
three steps
 Logical or Mathematical description of the structure
 Implementation of the structure on a computer
 Quantitative analysis of the structure, which includes
determining the amount of memory needed to store the
structure and the time required to process the structure
 A data type is a term which refers to the kind of
data that may appear in computation.
 Ex: in C
int, float, char, double, long double, etc.
 Data Structure
The logical or mathematical model of a particular
organization of data
 Choice of a model depends on two factor
It must be rich enough in structure to mirror the actual
relationships of the data in the real world
The structure should be simple enough that one can
effectively process the data when necessary
Customer Salesperson
Adams Smith
Brown Ray
Clark Jones
Drew Ray
Evans Smith
Farmer Jones
Geller Ray
Hill Smith
Customer Pointer
Adams 3
Brown 2
Clark 1
Drew 2
Evans 3
Farmer 1
Geller 2
Hill 3
Salesperson
Jones
Ray
Smith
Customer Pointer
Adams 3
Brown 2
Clark 1
Drew 2
Evans 3
Farmer 1
Geller 2
Hill 3
Salesperson Pointer
Jones 3,6
Ray 2,4,7
Smith 1,5,8
 A data structure is a way to logically organize
data that specifies:
 A set of data elements i.e., a data object and
 A set of operations which may legally be applied
to elements of this data object.
 Data appearing in DS are processed by means of
certain operation
 Particular DS one chooses for a given situation
depends largely on the frequency with which
specific operations are performed
 Traversing: Accessing each record exactly once so
that certain items in the record may be processed
[ Also known as Visiting the record]
 Searching: Finding the location of the record with
a given key value, or finding the locations of all
record which satisfy one or more conditions
 Inserting : Adding a new record to the structure
 Deleting : Removing a record from the structure
 In real life applications, various kind of data
other than the primitive data are involved.
 Manipulation of real-life data (user data)
requires the following essential tasks:
a) Storage representation of user data: User data
should be stored in such a way that computer can
understand
b) Retrieval of stored data: Data stored in a
computer should be retrieved in such a way that user
can understand.
c) Transformation of user data: Various operations
which require to be performed on user data so that it
can be transformed from one form to another.
Introduction to DSA

More Related Content

Similar to Introduction to DSA

Similar to Introduction to DSA (20)

chapter 1 Introduction to Ds and Algorithm Anyasis.pptx
chapter 1 Introduction to Ds and Algorithm Anyasis.pptxchapter 1 Introduction to Ds and Algorithm Anyasis.pptx
chapter 1 Introduction to Ds and Algorithm Anyasis.pptx
 
UNIT II.docx
UNIT II.docxUNIT II.docx
UNIT II.docx
 
Lect 1-2 Zaheer Abbas
Lect 1-2 Zaheer AbbasLect 1-2 Zaheer Abbas
Lect 1-2 Zaheer Abbas
 
Datastructures Notes
Datastructures NotesDatastructures Notes
Datastructures Notes
 
New
NewNew
New
 
Business Analytics Project Example
Business Analytics Project ExampleBusiness Analytics Project Example
Business Analytics Project Example
 
Introduction to Data structure and algorithm.pptx
Introduction to Data structure and algorithm.pptxIntroduction to Data structure and algorithm.pptx
Introduction to Data structure and algorithm.pptx
 
dbms notes.ppt
dbms notes.pptdbms notes.ppt
dbms notes.ppt
 
Database Concepts
Database ConceptsDatabase Concepts
Database Concepts
 
Ch1- Introduction to dbms
Ch1- Introduction to dbmsCh1- Introduction to dbms
Ch1- Introduction to dbms
 
dbms-1.pptx
dbms-1.pptxdbms-1.pptx
dbms-1.pptx
 
Chapter 1
Chapter 1Chapter 1
Chapter 1
 
UNIT I - Data Structures.pdf
UNIT I - Data Structures.pdfUNIT I - Data Structures.pdf
UNIT I - Data Structures.pdf
 
Dsa unit 1
Dsa unit 1Dsa unit 1
Dsa unit 1
 
Systems Analyst and Design - Data Dictionary
Systems Analyst and Design -  Data DictionarySystems Analyst and Design -  Data Dictionary
Systems Analyst and Design - Data Dictionary
 
Lecture 3 note.pptx
Lecture 3 note.pptxLecture 3 note.pptx
Lecture 3 note.pptx
 
Chapter 1( intro & overview)
Chapter 1( intro & overview)Chapter 1( intro & overview)
Chapter 1( intro & overview)
 
DS-UNIT 1 FINAL (2).pptx
DS-UNIT 1 FINAL (2).pptxDS-UNIT 1 FINAL (2).pptx
DS-UNIT 1 FINAL (2).pptx
 
Data Structures_Introduction
Data Structures_IntroductionData Structures_Introduction
Data Structures_Introduction
 
DBMS Database Management System
DBMS Database Management SystemDBMS Database Management System
DBMS Database Management System
 

More from jamilmalik19

Evolution of Database Technology.pptx
Evolution of Database Technology.pptxEvolution of Database Technology.pptx
Evolution of Database Technology.pptxjamilmalik19
 
Evolution of Database Technology.pptx
Evolution of Database Technology.pptxEvolution of Database Technology.pptx
Evolution of Database Technology.pptxjamilmalik19
 
CD Store Management.pptx
CD Store Management.pptxCD Store Management.pptx
CD Store Management.pptxjamilmalik19
 
bankers-algorithm2.pptx
bankers-algorithm2.pptxbankers-algorithm2.pptx
bankers-algorithm2.pptxjamilmalik19
 
Exception Handling ,templates in C++
Exception Handling ,templates in C++Exception Handling ,templates in C++
Exception Handling ,templates in C++jamilmalik19
 
Wildcard In database
Wildcard In databaseWildcard In database
Wildcard In databasejamilmalik19
 
What is IDE in C++?
What is IDE in C++?What is IDE in C++?
What is IDE in C++?jamilmalik19
 
introduction to C++.pptx
introduction to C++.pptxintroduction to C++.pptx
introduction to C++.pptxjamilmalik19
 
Data Types and variables in C++.pptx
Data Types and variables in C++.pptxData Types and variables in C++.pptx
Data Types and variables in C++.pptxjamilmalik19
 

More from jamilmalik19 (11)

Evolution of Database Technology.pptx
Evolution of Database Technology.pptxEvolution of Database Technology.pptx
Evolution of Database Technology.pptx
 
Deadlocks.ppt
Deadlocks.pptDeadlocks.ppt
Deadlocks.ppt
 
Evolution of Database Technology.pptx
Evolution of Database Technology.pptxEvolution of Database Technology.pptx
Evolution of Database Technology.pptx
 
CD Store Management.pptx
CD Store Management.pptxCD Store Management.pptx
CD Store Management.pptx
 
bankers-algorithm2.pptx
bankers-algorithm2.pptxbankers-algorithm2.pptx
bankers-algorithm2.pptx
 
Exception Handling ,templates in C++
Exception Handling ,templates in C++Exception Handling ,templates in C++
Exception Handling ,templates in C++
 
Wildcard In database
Wildcard In databaseWildcard In database
Wildcard In database
 
Angular momentum
Angular momentumAngular momentum
Angular momentum
 
What is IDE in C++?
What is IDE in C++?What is IDE in C++?
What is IDE in C++?
 
introduction to C++.pptx
introduction to C++.pptxintroduction to C++.pptx
introduction to C++.pptx
 
Data Types and variables in C++.pptx
Data Types and variables in C++.pptxData Types and variables in C++.pptx
Data Types and variables in C++.pptx
 

Recently uploaded

Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactPECB
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdfQucHHunhnh
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdfQucHHunhnh
 
Disha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfDisha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfchloefrazer622
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3JemimahLaneBuaron
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104misteraugie
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Sapana Sha
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformChameera Dedduwage
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfsanyamsingh5019
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfJayanti Pande
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpinRaunakKeshri1
 
9548086042 for call girls in Indira Nagar with room service
9548086042  for call girls in Indira Nagar  with room service9548086042  for call girls in Indira Nagar  with room service
9548086042 for call girls in Indira Nagar with room servicediscovermytutordmt
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphThiyagu K
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfchloefrazer622
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeThiyagu K
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...EduSkills OECD
 

Recently uploaded (20)

Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
 
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
 
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptxINDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
 
Disha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfDisha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdf
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy Reform
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdf
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpin
 
9548086042 for call girls in Indira Nagar with room service
9548086042  for call girls in Indira Nagar  with room service9548086042  for call girls in Indira Nagar  with room service
9548086042 for call girls in Indira Nagar with room service
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot Graph
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdf
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 

Introduction to DSA

  • 2.  Data Structures By Seymour Lipschutz [Schaum’s Outline]  An Introduction to Data structures with Applications by Tremblay and Sorenson
  • 3.  Introduction to Data Structure  Data Structures  Data Structure Operations
  • 4.  Data are values or a set of values  Data item refers to single unit of values  Data item  Group item : Data item that can be subdivided into sub item. Ex Name : First Name, Middle initial and Last Name  Elementary item: Data item that can not be sub divided into sub item Ex : PAN card number / Bank Pass Book Number is treated as single item
  • 5. Collection of data are frequently organized into a hierarchy of fields, records and files
  • 6.  Entity :  Something that has certain attributes or properties which may be assigned values  Values may be numeric or non-numeric  Ex: The employee of an organization Attributes Name Age Gen Employee Code Values John 33 M 13472
  • 7.  Entity with similar attributes ( e.g all employees of an organization) form an entity set  Each attribute of an entity set has a range of values [ the set of possible values that could be assigned to the particular attribute]  Information: Data with given attribute or processed data
  • 8.  Field is a single elementary unit of information representing an attribute of an entity  Record is the collection of field values of a given entity  File is the collection of records of the entities in a given entity set
  • 9. Nam e Age Gen Roll Number Branch A 17 M 109cs0132 CSE B 18 M 109ee1234 EE C 19 F 109ce0012 CE D 20 F 108mm0132 MM
  • 10.  Record  Fixed Length  Variable Length
  • 11.  Study of Data Structure includes the following three steps  Logical or Mathematical description of the structure  Implementation of the structure on a computer  Quantitative analysis of the structure, which includes determining the amount of memory needed to store the structure and the time required to process the structure
  • 12.  A data type is a term which refers to the kind of data that may appear in computation.  Ex: in C int, float, char, double, long double, etc.
  • 13.  Data Structure The logical or mathematical model of a particular organization of data  Choice of a model depends on two factor It must be rich enough in structure to mirror the actual relationships of the data in the real world The structure should be simple enough that one can effectively process the data when necessary
  • 14. Customer Salesperson Adams Smith Brown Ray Clark Jones Drew Ray Evans Smith Farmer Jones Geller Ray Hill Smith
  • 15. Customer Pointer Adams 3 Brown 2 Clark 1 Drew 2 Evans 3 Farmer 1 Geller 2 Hill 3 Salesperson Jones Ray Smith
  • 16. Customer Pointer Adams 3 Brown 2 Clark 1 Drew 2 Evans 3 Farmer 1 Geller 2 Hill 3 Salesperson Pointer Jones 3,6 Ray 2,4,7 Smith 1,5,8
  • 17.  A data structure is a way to logically organize data that specifies:  A set of data elements i.e., a data object and  A set of operations which may legally be applied to elements of this data object.
  • 18.  Data appearing in DS are processed by means of certain operation  Particular DS one chooses for a given situation depends largely on the frequency with which specific operations are performed
  • 19.  Traversing: Accessing each record exactly once so that certain items in the record may be processed [ Also known as Visiting the record]  Searching: Finding the location of the record with a given key value, or finding the locations of all record which satisfy one or more conditions
  • 20.  Inserting : Adding a new record to the structure  Deleting : Removing a record from the structure
  • 21.  In real life applications, various kind of data other than the primitive data are involved.  Manipulation of real-life data (user data) requires the following essential tasks: a) Storage representation of user data: User data should be stored in such a way that computer can understand b) Retrieval of stored data: Data stored in a computer should be retrieved in such a way that user can understand. c) Transformation of user data: Various operations which require to be performed on user data so that it can be transformed from one form to another.