SlideShare a Scribd company logo
2
Most read
4
Most read
11
Most read
Lecture 1 data structures and algorithms
 Data

Structures
[Schaum’s Outline]

 An

By

Seymour

Lipschutz

Introduction to Data structures with
Applications by Tremblay and Sorenson
 Data
 Structure
 Algorithm
 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
Values
John

Age Sex Employee Code
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:

processed data

Data with given attribute or
 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 Age
e

Sex

Roll Number Branch

A
B

17
18

M
M

109cs0132
109ee1234

CSE
EE

C
D

19
20

F
F

109ce0012
108mm0132

CE
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
 It

of a model depends on two factor

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

Salesperson

Adams

3

Jones

Brown

2

Ray

Clark

1

Smith

Drew

2

Evans

3

Farmer

1

Geller

2

Hill

3
Customer

Pointer

Salesperson

Pointer

Adams

3

Jones

3,6

Brown

2

Ray

2,4,5,7

Clark

1

Smith

1,5,8

Drew

2

Evans

3

Farmer

1

Geller

2

Hill

3
Customer

Pointer

Salesperson

Pointer

Adams

5

Jones

3

Brown

4

Ray

2

Clark

6

Smith

1

Drew

7

Evans

8

Farmer

0

Geller

0

Hill

0


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.
Lecture 1 data structures and algorithms

More Related Content

PPT
DATA STRUCTURE AND ALGORITHMS
PPT
Elementary data organisation
PPTX
Stack and Queue
PPTX
Unit I- Data structures Introduction, Evaluation of Algorithms, Arrays, Spars...
PDF
BCA DATA STRUCTURES LINEAR ARRAYS MRS.SOWMYA JYOTHI
PDF
Data structures chapter 1
PPTX
Unit 5 internal sorting & files
PPTX
Data structure and algorithm
DATA STRUCTURE AND ALGORITHMS
Elementary data organisation
Stack and Queue
Unit I- Data structures Introduction, Evaluation of Algorithms, Arrays, Spars...
BCA DATA STRUCTURES LINEAR ARRAYS MRS.SOWMYA JYOTHI
Data structures chapter 1
Unit 5 internal sorting & files
Data structure and algorithm

What's hot (20)

PPTX
Data structure & its types
PPSX
Data Structure (Queue)
PPT
Abstract data types
PPTX
Linked List
PDF
C++ chapter 1
PPT
Infix prefix postfix
PPT
Lossless decomposition
PPTX
Normalization in a Database
PPTX
Queue ppt
PDF
Expression trees
PPTX
Stacks IN DATA STRUCTURES
PPTX
Queue in Data Structure
PDF
Algorithms Lecture 4: Sorting Algorithms I
PPTX
stack & queue
PPTX
Stack and Queue
PPTX
Binary search
PDF
Database Normalization
PPTX
Searching and sorting
PPTX
Tree in data structure
Data structure & its types
Data Structure (Queue)
Abstract data types
Linked List
C++ chapter 1
Infix prefix postfix
Lossless decomposition
Normalization in a Database
Queue ppt
Expression trees
Stacks IN DATA STRUCTURES
Queue in Data Structure
Algorithms Lecture 4: Sorting Algorithms I
stack & queue
Stack and Queue
Binary search
Database Normalization
Searching and sorting
Tree in data structure
Ad

Viewers also liked (11)

PPTX
Data structure and its types
PPTX
Subsidence in coal mines
PPTX
Lecture 6 data structures and algorithms
PPTX
Lecture 7 data structures and algorithms
PPTX
Lecture 8 data structures and algorithms
PPTX
Data Structures - Lecture 7 [Linked List]
PPT
មេរៀនៈ Data Structure and Algorithm in C/C++
DOC
Student record
PDF
Data structures / C++ Program examples
PPTX
STACKS IN DATASTRUCTURE
PPT
DATA STRUCTURES
Data structure and its types
Subsidence in coal mines
Lecture 6 data structures and algorithms
Lecture 7 data structures and algorithms
Lecture 8 data structures and algorithms
Data Structures - Lecture 7 [Linked List]
មេរៀនៈ Data Structure and Algorithm in C/C++
Student record
Data structures / C++ Program examples
STACKS IN DATASTRUCTURE
DATA STRUCTURES
Ad

Similar to Lecture 1 data structures and algorithms (20)

PPT
Introduction to DSA
PDF
Data structures introduction
PPTX
DSA Ch1(Introduction) [Recovered].pptx
PPTX
DSA - Copy.pptx
PPTX
Data Structure - Elementary Data Organization
PPTX
UNIT 3.pptx-Data Structures definition with examples
PPT
Data Structures.ppt
PDF
BCA DATA STRUCTURES INTRODUCTION AND OVERVIEW SOWMYA JYOTHI
PPT
The Stack in Data structure and algorithm
PDF
Data Structure and its Fundamentals
PPTX
Introduction to Data Structure
PPT
Lect 1-2
PPT
Chapter 1( intro & overview)
PPTX
Dsa unit 1
PPTX
Lecture 01 Intro to DSA
PPTX
Data structure unitfirst part1
PPTX
Data structure unitfirst part1
PPT
Lect 1-2 Zaheer Abbas
PDF
Data Structures And Applications A Simple And Systematic Approach Padma Reddy
PPTX
Introduction to Data Structures and their importance
Introduction to DSA
Data structures introduction
DSA Ch1(Introduction) [Recovered].pptx
DSA - Copy.pptx
Data Structure - Elementary Data Organization
UNIT 3.pptx-Data Structures definition with examples
Data Structures.ppt
BCA DATA STRUCTURES INTRODUCTION AND OVERVIEW SOWMYA JYOTHI
The Stack in Data structure and algorithm
Data Structure and its Fundamentals
Introduction to Data Structure
Lect 1-2
Chapter 1( intro & overview)
Dsa unit 1
Lecture 01 Intro to DSA
Data structure unitfirst part1
Data structure unitfirst part1
Lect 1-2 Zaheer Abbas
Data Structures And Applications A Simple And Systematic Approach Padma Reddy
Introduction to Data Structures and their importance

More from Aakash deep Singhal (12)

PPTX
Lecture 15 data structures and algorithms
PPTX
Lecture 14 data structures and algorithms
PPTX
Lecture 13 data structures and algorithms
PPTX
Lecture 12 data structures and algorithms
PPTX
Lecture 11 data structures and algorithms
PPTX
Lecture 10 data structures and algorithms
PPTX
Lecture 9 data structures and algorithms
PPTX
Lecture 5 data structures and algorithms
PPTX
Lecture 4 data structures and algorithms
PPTX
Lecture 3 data structures and algorithms
PPTX
Lecture 2 data structures and algorithms
PPTX
Lecture 16 data structures and algorithms
Lecture 15 data structures and algorithms
Lecture 14 data structures and algorithms
Lecture 13 data structures and algorithms
Lecture 12 data structures and algorithms
Lecture 11 data structures and algorithms
Lecture 10 data structures and algorithms
Lecture 9 data structures and algorithms
Lecture 5 data structures and algorithms
Lecture 4 data structures and algorithms
Lecture 3 data structures and algorithms
Lecture 2 data structures and algorithms
Lecture 16 data structures and algorithms

Recently uploaded (20)

PPTX
Pharmacology of Heart Failure /Pharmacotherapy of CHF
PPTX
Cell Structure & Organelles in detailed.
PPTX
master seminar digital applications in india
PDF
Microbial disease of the cardiovascular and lymphatic systems
PDF
Weekly quiz Compilation Jan -July 25.pdf
PPTX
Tissue processing ( HISTOPATHOLOGICAL TECHNIQUE
PDF
Yogi Goddess Pres Conference Studio Updates
PDF
2.FourierTransform-ShortQuestionswithAnswers.pdf
PDF
Anesthesia in Laparoscopic Surgery in India
PPTX
Final Presentation General Medicine 03-08-2024.pptx
PPTX
human mycosis Human fungal infections are called human mycosis..pptx
PDF
O5-L3 Freight Transport Ops (International) V1.pdf
PPTX
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
PPTX
202450812 BayCHI UCSC-SV 20250812 v17.pptx
DOC
Soft-furnishing-By-Architect-A.F.M.Mohiuddin-Akhand.doc
PDF
VCE English Exam - Section C Student Revision Booklet
PDF
Complications of Minimal Access Surgery at WLH
PDF
Chinmaya Tiranga quiz Grand Finale.pdf
PDF
STATICS OF THE RIGID BODIES Hibbelers.pdf
PDF
Module 4: Burden of Disease Tutorial Slides S2 2025
Pharmacology of Heart Failure /Pharmacotherapy of CHF
Cell Structure & Organelles in detailed.
master seminar digital applications in india
Microbial disease of the cardiovascular and lymphatic systems
Weekly quiz Compilation Jan -July 25.pdf
Tissue processing ( HISTOPATHOLOGICAL TECHNIQUE
Yogi Goddess Pres Conference Studio Updates
2.FourierTransform-ShortQuestionswithAnswers.pdf
Anesthesia in Laparoscopic Surgery in India
Final Presentation General Medicine 03-08-2024.pptx
human mycosis Human fungal infections are called human mycosis..pptx
O5-L3 Freight Transport Ops (International) V1.pdf
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
202450812 BayCHI UCSC-SV 20250812 v17.pptx
Soft-furnishing-By-Architect-A.F.M.Mohiuddin-Akhand.doc
VCE English Exam - Section C Student Revision Booklet
Complications of Minimal Access Surgery at WLH
Chinmaya Tiranga quiz Grand Finale.pdf
STATICS OF THE RIGID BODIES Hibbelers.pdf
Module 4: Burden of Disease Tutorial Slides S2 2025

Lecture 1 data structures and algorithms