SlideShare a Scribd company logo
Introduction
 Values or sets of values
 A “Data Item” refers to a single set of values
 Group Items
 Elementary Items
 Collections of data are frequently organized
into a hierarchy of fields, records, and files.
 An entity is something that has certain
attributes.
 Entities with similar attributes form an entity
set.
 Each attribute of an entity set has a range of
values.
 Data with given attributes
 Meaningful or processed data
Data Processing Information
 The logical or mathematical model of a
particular organization is called data
structure.
OR
 A data structure is the arrangement of data in
a computer’s memory (or sometimes on a
disk)
It should have two qualities:
1. It should be able to create the model as close
to reality as possible.
2. It should be simple enough to process the
data efficiently when needed.
 There are two types of data:
1. Primitive: integers, real, character, Boolean.
2. Non-primitive: Linked-lists, stacks, queues,
trees & graphs
Data structure & algorithms introduction
 Linear: elements form a sequence or a linear
list. Examples:Arrays, Linked Lists, Stacks,
Queues.
 Non-linear: Data is not arranged in sequence.
The insertion and deletion of data is not
possible in a linear fashion. Examples:Trees &
Graphs
 A list of a finite number “n” of similar data.
 If elements of an array are referenced as
“1,2,3, … ,n”
 The array is called “A”.
 Then the elements of “A” are denoted by
subscript notation “a₁, a₂, a₃, … an
 Or by the parenthesis notation
A(1), A(2), A(3), … , A(N)
 Or by the bracket notation
A[1], A[2], A[3], … , A[N]
 A linked list is a linear data structure where
each element is a separate object
 A linked list has two parts: one is info and the
other is link part. Info part gives information
and link part is address of next node.
 Each element has two items : the data and a
reference to next node
 The last node has reference to null
 The first node is called the head. It is not a
separate node but reference to first node.
 If the list is empty then the head is a null
reference.
 It is dynamic data structure.
 The nodes can grow and shrink on demand.
 Good for applications dealing with unknown
number of objects.
 Tree or branched data structure consists of
sets of elements (nodes) which could be
linked to other elements.
 Trees represent hierarchies, while graphs
represent more general relations such as
maps of city.
Tree Graph
 Every circle in a tree is called a node, and every
line an edge.
 Root is the node without parent
 Leaf is a node without child.
 Internal nodes are neither leaf or root.
 Path is called a sequence of nodes connecting
with edges.
 Stacks also called a last in first out system.
 Queue also called a first in first out system
 Graphs contain a relationship between pairs
of elements which is not necessarily
hierarchical in nature.
1. Traversing: Assessing each record exactly
once so that certain items in the record may
be processed. Also called visiting the record.
2. Searching: Finding the location of the record
with a given key value, or finding the
locations of all records which satisfy one or
more conditions.
3. Inserting: Adding a new record to the structure.
4. Deleting: Removing a record from the structure.
5. Sorting: Arranging the records in some logical
order.
6. Merging: Combing the records in two different
sorted files into a single sorted file.
 Data type defined in terms of operations on
it, and its implementation is hidden.
 It is easier to replace the implementation and
it will not interfere with anything in the
program.
 An ADT has 2 parts:
1. A name or type specifying a set of data
(dictionary)
2. Descriptions of all the operations (or methods)
that do things with that type (e.g., find, insert,
remove).The descriptions indicate what the
operations do, not how they do it.
 Examples: Interfaces in Java
(roughly) header files and typedef in C
Data structure & algorithms introduction
 An Algorithm is a well defined list of steps for
solving a particular problem.
 The time and space it uses are two major
measures of the efficiency of an algorithm.
 The complexity of an algorithm is the
function which gives the running time and/or
space in terms of the input size.
 Refers to a choice between algorithmic
solutions of a data processing problems that
allows one to decrease the running time of an
algorithmic solution by increasing the space
to store that data and vice versa.
 Linear search searches for a specified value in
a list by checking every element in the list.
 Binary search method halves the number of
elements checked (in each iteration),
reducing the time taken to locate the given
item in the list.
Binary Search Linear Search
Works only on sorted items. such as
1,2,3,4,5,6 etc.
Works on sorted as well as unsorted
items.
12,4,5,3,2,1 etc.
Very efficient if the items are sorted Very efficient if the items are less
and present in the beginning of the
list. such as
Suppose your list items are :
12,3,4,5,1
and you want to search 12 number
then you get beginning in the list.
Works well with arrays and not on
linked lists.
Works with arrays and linked lists.
Number of comparisons are less More number of comparisons are
required if the items are present in
the later part of the array or its
elements are more.

More Related Content

PPTX
Data structure,abstraction,abstract data type,static and dynamic,time and spa...
PPTX
Data Structure
PPT
Data Structure In C#
PDF
Data structures (introduction)
PPT
Basic data-structures-v.1.1
PDF
Data structures
PDF
Data structures Basics
PDF
Data Structures Notes 2021
Data structure,abstraction,abstract data type,static and dynamic,time and spa...
Data Structure
Data Structure In C#
Data structures (introduction)
Basic data-structures-v.1.1
Data structures
Data structures Basics
Data Structures Notes 2021

What's hot (20)

PPT
Data structure lecture 1
PPT
Unit 1 introduction to data structure
PPT
Data structures using c
PPTX
Bca ii dfs u-1 introduction to data structure
PPTX
Data Structures (CS8391)
PPTX
Data Structure & Algorithms | Computer Science
PPTX
Data structure
PPT
Data structures
PDF
Data structure ppt
PDF
Data structure
PPTX
Lecture 01 Intro to DSA
PDF
Introduction to Data Structure
PPT
Unit 4 tree
PPT
Data structures & algorithms lecture 3
PPT
linked list (c#)
PDF
Data structure using c++
PPT
Introduction of data structure
PDF
Datastructure
PPT
Introduction to data structure by anil dutt
PDF
Introduction of data structures and algorithms
Data structure lecture 1
Unit 1 introduction to data structure
Data structures using c
Bca ii dfs u-1 introduction to data structure
Data Structures (CS8391)
Data Structure & Algorithms | Computer Science
Data structure
Data structures
Data structure ppt
Data structure
Lecture 01 Intro to DSA
Introduction to Data Structure
Unit 4 tree
Data structures & algorithms lecture 3
linked list (c#)
Data structure using c++
Introduction of data structure
Datastructure
Introduction to data structure by anil dutt
Introduction of data structures and algorithms
Ad

Viewers also liked (17)

PPTX
Data structure and algorithm All in One
PPT
Lecture 1 data structures and algorithms
PPTX
Apt 502 a1 m1 powerpoint,,,
PPT
QUE SON LAS RUBRICASx
PDF
Editable honduras power point map with capital and flag templates slides outl...
PPT
L6 structure
PDF
01 05 - introduction xml
PDF
linked list
PDF
Funny Money
PPTX
Computer hardware
PPT
Keyboarding skills
PPTX
Method overloading
PPTX
‫Chapter3 inheritance
DOCX
PLAN DE ACCIÓN
PPTX
5 Array List, data structure course
PDF
Metal Bronze Brass Valves
Data structure and algorithm All in One
Lecture 1 data structures and algorithms
Apt 502 a1 m1 powerpoint,,,
QUE SON LAS RUBRICASx
Editable honduras power point map with capital and flag templates slides outl...
L6 structure
01 05 - introduction xml
linked list
Funny Money
Computer hardware
Keyboarding skills
Method overloading
‫Chapter3 inheritance
PLAN DE ACCIÓN
5 Array List, data structure course
Metal Bronze Brass Valves
Ad

Similar to Data structure & algorithms introduction (20)

PPTX
project on data structures and algorithm
PPT
Ch 1 intriductions
PPTX
Array Data StructureData StructureData Structure.pptx
PPT
DATA STRUCTURE AND ALGORITHMS
PPTX
DS Module 1.pptx
PPT
ds 1 Introduction to Data Structures.ppt
PDF
Chapter 1 Introduction to Data Structures and Algorithms.pdf
DOCX
3rd-Sem_CSE_Data-Structures and Applications.docx
PPTX
Data structure Assignment Help
PPTX
DS Module 1.pptx
PDF
Lec01-Algorithems - Introduction and Overview.pdf
PPT
1.1 introduction to Data Structures.ppt
PPTX
Data Structures unit I Introduction - data types
PDF
MCA_Data Structure_Notes_of_UNIT_I & II.pdf
PPTX
Data Structures and algoithms Unit - 1.pptx
PPTX
UNIT 1 Memory ManagementMemory Management.pptx
PDF
Iare ds lecture_notes_2
PPTX
Unit 1 dsuc
PDF
U nit i data structure-converted
DOCX
Data structure and algorithm.
project on data structures and algorithm
Ch 1 intriductions
Array Data StructureData StructureData Structure.pptx
DATA STRUCTURE AND ALGORITHMS
DS Module 1.pptx
ds 1 Introduction to Data Structures.ppt
Chapter 1 Introduction to Data Structures and Algorithms.pdf
3rd-Sem_CSE_Data-Structures and Applications.docx
Data structure Assignment Help
DS Module 1.pptx
Lec01-Algorithems - Introduction and Overview.pdf
1.1 introduction to Data Structures.ppt
Data Structures unit I Introduction - data types
MCA_Data Structure_Notes_of_UNIT_I & II.pdf
Data Structures and algoithms Unit - 1.pptx
UNIT 1 Memory ManagementMemory Management.pptx
Iare ds lecture_notes_2
Unit 1 dsuc
U nit i data structure-converted
Data structure and algorithm.

Recently uploaded (20)

PPTX
Lecture 3: Operating Systems Introduction to Computer Hardware Systems
PPTX
Materi-Enum-and-Record-Data-Type (1).pptx
PDF
Softaken Excel to vCard Converter Software.pdf
PDF
System and Network Administration Chapter 2
PDF
How to Choose the Right IT Partner for Your Business in Malaysia
PPTX
ISO 45001 Occupational Health and Safety Management System
PPTX
VVF-Customer-Presentation2025-Ver1.9.pptx
PDF
Multi-factor Authentication (MFA) requirement for Microsoft 365 Admin Center_...
PPTX
Online Work Permit System for Fast Permit Processing
PDF
How Creative Agencies Leverage Project Management Software.pdf
PDF
Claude Code: Everyone is a 10x Developer - A Comprehensive AI-Powered CLI Tool
PDF
System and Network Administraation Chapter 3
PPTX
Transform Your Business with a Software ERP System
PDF
T3DD25 TYPO3 Content Blocks - Deep Dive by André Kraus
PDF
How to Confidently Manage Project Budgets
PDF
Best Practices for Rolling Out Competency Management Software.pdf
PPTX
ManageIQ - Sprint 268 Review - Slide Deck
PDF
QAware_Mario-Leander_Reimer_Architecting and Building a K8s-based AI Platform...
PDF
PTS Company Brochure 2025 (1).pdf.......
PDF
IEEE-CS Tech Predictions, SWEBOK and Quantum Software: Towards Q-SWEBOK
Lecture 3: Operating Systems Introduction to Computer Hardware Systems
Materi-Enum-and-Record-Data-Type (1).pptx
Softaken Excel to vCard Converter Software.pdf
System and Network Administration Chapter 2
How to Choose the Right IT Partner for Your Business in Malaysia
ISO 45001 Occupational Health and Safety Management System
VVF-Customer-Presentation2025-Ver1.9.pptx
Multi-factor Authentication (MFA) requirement for Microsoft 365 Admin Center_...
Online Work Permit System for Fast Permit Processing
How Creative Agencies Leverage Project Management Software.pdf
Claude Code: Everyone is a 10x Developer - A Comprehensive AI-Powered CLI Tool
System and Network Administraation Chapter 3
Transform Your Business with a Software ERP System
T3DD25 TYPO3 Content Blocks - Deep Dive by André Kraus
How to Confidently Manage Project Budgets
Best Practices for Rolling Out Competency Management Software.pdf
ManageIQ - Sprint 268 Review - Slide Deck
QAware_Mario-Leander_Reimer_Architecting and Building a K8s-based AI Platform...
PTS Company Brochure 2025 (1).pdf.......
IEEE-CS Tech Predictions, SWEBOK and Quantum Software: Towards Q-SWEBOK

Data structure & algorithms introduction

  • 2.  Values or sets of values  A “Data Item” refers to a single set of values  Group Items  Elementary Items
  • 3.  Collections of data are frequently organized into a hierarchy of fields, records, and files.  An entity is something that has certain attributes.  Entities with similar attributes form an entity set.  Each attribute of an entity set has a range of values.
  • 4.  Data with given attributes  Meaningful or processed data Data Processing Information
  • 5.  The logical or mathematical model of a particular organization is called data structure. OR  A data structure is the arrangement of data in a computer’s memory (or sometimes on a disk)
  • 6. It should have two qualities: 1. It should be able to create the model as close to reality as possible. 2. It should be simple enough to process the data efficiently when needed.
  • 7.  There are two types of data: 1. Primitive: integers, real, character, Boolean. 2. Non-primitive: Linked-lists, stacks, queues, trees & graphs
  • 9.  Linear: elements form a sequence or a linear list. Examples:Arrays, Linked Lists, Stacks, Queues.  Non-linear: Data is not arranged in sequence. The insertion and deletion of data is not possible in a linear fashion. Examples:Trees & Graphs
  • 10.  A list of a finite number “n” of similar data.
  • 11.  If elements of an array are referenced as “1,2,3, … ,n”  The array is called “A”.  Then the elements of “A” are denoted by subscript notation “a₁, a₂, a₃, … an
  • 12.  Or by the parenthesis notation A(1), A(2), A(3), … , A(N)  Or by the bracket notation A[1], A[2], A[3], … , A[N]
  • 13.  A linked list is a linear data structure where each element is a separate object  A linked list has two parts: one is info and the other is link part. Info part gives information and link part is address of next node.
  • 14.  Each element has two items : the data and a reference to next node  The last node has reference to null  The first node is called the head. It is not a separate node but reference to first node.  If the list is empty then the head is a null reference.
  • 15.  It is dynamic data structure.  The nodes can grow and shrink on demand.  Good for applications dealing with unknown number of objects.
  • 16.  Tree or branched data structure consists of sets of elements (nodes) which could be linked to other elements.  Trees represent hierarchies, while graphs represent more general relations such as maps of city.
  • 18.  Every circle in a tree is called a node, and every line an edge.  Root is the node without parent  Leaf is a node without child.  Internal nodes are neither leaf or root.  Path is called a sequence of nodes connecting with edges.
  • 19.  Stacks also called a last in first out system.  Queue also called a first in first out system  Graphs contain a relationship between pairs of elements which is not necessarily hierarchical in nature.
  • 20. 1. Traversing: Assessing each record exactly once so that certain items in the record may be processed. Also called visiting the record. 2. Searching: Finding the location of the record with a given key value, or finding the locations of all records which satisfy one or more conditions.
  • 21. 3. Inserting: Adding a new record to the structure. 4. Deleting: Removing a record from the structure. 5. Sorting: Arranging the records in some logical order. 6. Merging: Combing the records in two different sorted files into a single sorted file.
  • 22.  Data type defined in terms of operations on it, and its implementation is hidden.  It is easier to replace the implementation and it will not interfere with anything in the program.
  • 23.  An ADT has 2 parts: 1. A name or type specifying a set of data (dictionary) 2. Descriptions of all the operations (or methods) that do things with that type (e.g., find, insert, remove).The descriptions indicate what the operations do, not how they do it.  Examples: Interfaces in Java (roughly) header files and typedef in C
  • 25.  An Algorithm is a well defined list of steps for solving a particular problem.  The time and space it uses are two major measures of the efficiency of an algorithm.
  • 26.  The complexity of an algorithm is the function which gives the running time and/or space in terms of the input size.
  • 27.  Refers to a choice between algorithmic solutions of a data processing problems that allows one to decrease the running time of an algorithmic solution by increasing the space to store that data and vice versa.
  • 28.  Linear search searches for a specified value in a list by checking every element in the list.  Binary search method halves the number of elements checked (in each iteration), reducing the time taken to locate the given item in the list.
  • 29. Binary Search Linear Search Works only on sorted items. such as 1,2,3,4,5,6 etc. Works on sorted as well as unsorted items. 12,4,5,3,2,1 etc. Very efficient if the items are sorted Very efficient if the items are less and present in the beginning of the list. such as Suppose your list items are : 12,3,4,5,1 and you want to search 12 number then you get beginning in the list. Works well with arrays and not on linked lists. Works with arrays and linked lists. Number of comparisons are less More number of comparisons are required if the items are present in the later part of the array or its elements are more.

Editor's Notes

  • #8: Basic data types such as integer, real, character, and boolean are known as primitive data structures. These data types consist of characters that cannot be divided. Simple data types. These data structures are normally directly operated upon by machine-level instructions. Non-primitive data structures are more complex data structures. These data structures are derived from the primitive data structures. They stress on formation of sets of homogeneous and heterogeneous data elements.
  • #13: Linear arrays are called one-dimensional arrays because each element in such an array is referenced by one subscript. A two dimensional array is collection of similar data elements where each element is referenced by two subscripts. (such arrays are called matrices in mathematics, and tables in business applications.)