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
 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
 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

What's hot

Data structure lecture 1
Data structure lecture 1Data structure lecture 1
Data structure lecture 1Kumar
 
Unit 1 introduction to data structure
Unit 1   introduction to data structureUnit 1   introduction to data structure
Unit 1 introduction to data structure
kalyanineve
 
Data structures using c
Data structures using cData structures using c
Data structures using c
Prof. Dr. K. Adisesha
 
Bca ii dfs u-1 introduction to data structure
Bca ii dfs u-1 introduction to data structureBca ii dfs u-1 introduction to data structure
Bca ii dfs u-1 introduction to data structure
Rai University
 
Data Structures (CS8391)
Data Structures (CS8391)Data Structures (CS8391)
Data Structures (CS8391)
Elavarasi K
 
Data Structure & Algorithms | Computer Science
Data Structure & Algorithms | Computer ScienceData Structure & Algorithms | Computer Science
Data Structure & Algorithms | Computer Science
Transweb Global Inc
 
Data structure ppt
Data structure pptData structure ppt
Data structure ppt
Prof. Dr. K. Adisesha
 
Data structure
Data structureData structure
Data structure
Prof. Dr. K. Adisesha
 
Lecture 01 Intro to DSA
Lecture 01 Intro to DSALecture 01 Intro to DSA
Lecture 01 Intro to DSA
Nurjahan Nipa
 
Introduction to Data Structure
Introduction to Data Structure Introduction to Data Structure
Introduction to Data Structure
Prof Ansari
 
Unit 4 tree
Unit 4   treeUnit 4   tree
Unit 4 tree
kalyanineve
 
Data structures & algorithms lecture 3
Data structures & algorithms lecture 3Data structures & algorithms lecture 3
Data structures & algorithms lecture 3
Poojith Chowdhary
 
linked list (c#)
 linked list (c#) linked list (c#)
linked list (c#)
swajahatr
 
Data structure using c++
Data structure using c++Data structure using c++
Data structure using c++
Prof. Dr. K. Adisesha
 
Introduction of data structure
Introduction of data structureIntroduction of data structure
Introduction of data structureeShikshak
 
Datastructure
DatastructureDatastructure
Datastructure
Griffinder VinHai
 
Introduction to data structure by anil dutt
Introduction to data structure by anil duttIntroduction to data structure by anil dutt
Introduction to data structure by anil dutt
Anil Dutt
 
Introduction of data structures and algorithms
Introduction of data structures and algorithmsIntroduction of data structures and algorithms
Introduction of data structures and algorithms
VinayKumarV16
 

What's hot (20)

Data structure lecture 1
Data structure lecture 1Data structure lecture 1
Data structure lecture 1
 
Unit 1 introduction to data structure
Unit 1   introduction to data structureUnit 1   introduction to data structure
Unit 1 introduction to data structure
 
Data structures using c
Data structures using cData structures using c
Data structures using c
 
Bca ii dfs u-1 introduction to data structure
Bca ii dfs u-1 introduction to data structureBca ii dfs u-1 introduction to data structure
Bca ii dfs u-1 introduction to data structure
 
Data Structures (CS8391)
Data Structures (CS8391)Data Structures (CS8391)
Data Structures (CS8391)
 
Data Structure & Algorithms | Computer Science
Data Structure & Algorithms | Computer ScienceData Structure & Algorithms | Computer Science
Data Structure & Algorithms | Computer Science
 
Data structure
Data structureData structure
Data structure
 
Data structures
Data structuresData structures
Data structures
 
Data structure ppt
Data structure pptData structure ppt
Data structure ppt
 
Data structure
Data structureData structure
Data structure
 
Lecture 01 Intro to DSA
Lecture 01 Intro to DSALecture 01 Intro to DSA
Lecture 01 Intro to DSA
 
Introduction to Data Structure
Introduction to Data Structure Introduction to Data Structure
Introduction to Data Structure
 
Unit 4 tree
Unit 4   treeUnit 4   tree
Unit 4 tree
 
Data structures & algorithms lecture 3
Data structures & algorithms lecture 3Data structures & algorithms lecture 3
Data structures & algorithms lecture 3
 
linked list (c#)
 linked list (c#) linked list (c#)
linked list (c#)
 
Data structure using c++
Data structure using c++Data structure using c++
Data structure using c++
 
Introduction of data structure
Introduction of data structureIntroduction of data structure
Introduction of data structure
 
Datastructure
DatastructureDatastructure
Datastructure
 
Introduction to data structure by anil dutt
Introduction to data structure by anil duttIntroduction to data structure by anil dutt
Introduction to data structure by anil dutt
 
Introduction of data structures and algorithms
Introduction of data structures and algorithmsIntroduction of data structures and algorithms
Introduction of data structures and algorithms
 

Viewers also liked

Data structure and algorithm All in One
Data structure and algorithm All in OneData structure and algorithm All in One
Data structure and algorithm All in One
jehan1987
 
Lecture 1 data structures and algorithms
Lecture 1 data structures and algorithmsLecture 1 data structures and algorithms
Lecture 1 data structures and algorithmsAakash deep Singhal
 
Apt 502 a1 m1 powerpoint,,,
Apt 502 a1 m1 powerpoint,,,Apt 502 a1 m1 powerpoint,,,
Apt 502 a1 m1 powerpoint,,,
cloder6416
 
QUE SON LAS RUBRICASx
QUE SON LAS RUBRICASxQUE SON LAS RUBRICASx
QUE SON LAS RUBRICASxSergd
 
MCB c60
MCB c60MCB c60
Editable honduras power point map with capital and flag templates slides outl...
Editable honduras power point map with capital and flag templates slides outl...Editable honduras power point map with capital and flag templates slides outl...
Editable honduras power point map with capital and flag templates slides outl...SlideTeam.net
 
01 05 - introduction xml
01  05 - introduction xml01  05 - introduction xml
01 05 - introduction xml
Siva Kumar reddy Vasipally
 
linked list
linked listlinked list
linked list
Abbott
 
Funny Money
Funny MoneyFunny Money
Funny Money
Cowry Consulting
 
Computer hardware
Computer hardwareComputer hardware
Computer hardware
Veronica Alejandro
 
Keyboarding skills
Keyboarding skillsKeyboarding skills
Keyboarding skills
joy grace bagui
 
Method overloading
Method overloadingMethod overloading
Method overloading
Lovely Professional University
 
‫Chapter3 inheritance
‫Chapter3 inheritance‫Chapter3 inheritance
‫Chapter3 inheritance
Mahmoud Alfarra
 
PLAN DE ACCIÓN
PLAN DE ACCIÓN PLAN DE ACCIÓN
PLAN DE ACCIÓN
Angiee Garcia
 
5 Array List, data structure course
5 Array List, data structure course5 Array List, data structure course
5 Array List, data structure course
Mahmoud Alfarra
 
Metal Bronze Brass Valves
Metal Bronze Brass ValvesMetal Bronze Brass Valves
Metal Bronze Brass Valves
BENRY APRIANTO HUTAPEA
 

Viewers also liked (17)

Data structure and algorithm All in One
Data structure and algorithm All in OneData structure and algorithm All in One
Data structure and algorithm All in One
 
Lecture 1 data structures and algorithms
Lecture 1 data structures and algorithmsLecture 1 data structures and algorithms
Lecture 1 data structures and algorithms
 
Apt 502 a1 m1 powerpoint,,,
Apt 502 a1 m1 powerpoint,,,Apt 502 a1 m1 powerpoint,,,
Apt 502 a1 m1 powerpoint,,,
 
QUE SON LAS RUBRICASx
QUE SON LAS RUBRICASxQUE SON LAS RUBRICASx
QUE SON LAS RUBRICASx
 
MCB c60
MCB c60MCB c60
MCB c60
 
Editable honduras power point map with capital and flag templates slides outl...
Editable honduras power point map with capital and flag templates slides outl...Editable honduras power point map with capital and flag templates slides outl...
Editable honduras power point map with capital and flag templates slides outl...
 
L6 structure
L6 structureL6 structure
L6 structure
 
01 05 - introduction xml
01  05 - introduction xml01  05 - introduction xml
01 05 - introduction xml
 
linked list
linked listlinked list
linked list
 
Funny Money
Funny MoneyFunny Money
Funny Money
 
Computer hardware
Computer hardwareComputer hardware
Computer hardware
 
Keyboarding skills
Keyboarding skillsKeyboarding skills
Keyboarding skills
 
Method overloading
Method overloadingMethod overloading
Method overloading
 
‫Chapter3 inheritance
‫Chapter3 inheritance‫Chapter3 inheritance
‫Chapter3 inheritance
 
PLAN DE ACCIÓN
PLAN DE ACCIÓN PLAN DE ACCIÓN
PLAN DE ACCIÓN
 
5 Array List, data structure course
5 Array List, data structure course5 Array List, data structure course
5 Array List, data structure course
 
Metal Bronze Brass Valves
Metal Bronze Brass ValvesMetal Bronze Brass Valves
Metal Bronze Brass Valves
 

Similar to Data structure & algorithms introduction

DS Module 1.pptx
DS Module 1.pptxDS Module 1.pptx
DS Module 1.pptx
sarala9
 
DS Module 1.pptx
DS Module 1.pptxDS Module 1.pptx
DS Module 1.pptx
SaralaT3
 
Introduction to Data Structure
Introduction to Data StructureIntroduction to Data Structure
Introduction to Data StructureJazz Jinia Bhowmik
 
Datastructures and algorithms prepared by M.V.Brehmanada Reddy
Datastructures and algorithms prepared by M.V.Brehmanada ReddyDatastructures and algorithms prepared by M.V.Brehmanada Reddy
Datastructures and algorithms prepared by M.V.Brehmanada ReddyMalikireddy Bramhananda Reddy
 
ARRAYS IN C++ CBSE AND STATE +2 COMPUTER SCIENCE
ARRAYS IN C++ CBSE AND STATE +2 COMPUTER SCIENCEARRAYS IN C++ CBSE AND STATE +2 COMPUTER SCIENCE
ARRAYS IN C++ CBSE AND STATE +2 COMPUTER SCIENCE
Venugopalavarma Raja
 
UNITIII LDS.pdf
UNITIII LDS.pdfUNITIII LDS.pdf
UNITIII LDS.pdf
meenamadhuvandhi2
 
DATA STRUCTURE AND ALGORITHMS
DATA STRUCTURE AND ALGORITHMS DATA STRUCTURE AND ALGORITHMS
DATA STRUCTURE AND ALGORITHMS
Adams Sidibe
 
Data Structures and algoithms Unit - 1.pptx
Data Structures and algoithms Unit - 1.pptxData Structures and algoithms Unit - 1.pptx
Data Structures and algoithms Unit - 1.pptx
mexiuro901
 
2. Introduction to Data Structure.pdf
2. Introduction to Data Structure.pdf2. Introduction to Data Structure.pdf
2. Introduction to Data Structure.pdf
SulabhPawaia
 
DSA - Copy.pptx
DSA - Copy.pptxDSA - Copy.pptx
DSA - Copy.pptx
BishalChowdhury10
 
introduction about data structure_i.pptx
introduction about data structure_i.pptxintroduction about data structure_i.pptx
introduction about data structure_i.pptx
poonamsngr
 
Data_structure.pptx
Data_structure.pptxData_structure.pptx
Data_structure.pptx
priya415376
 
Data structures introduction
Data structures   introductionData structures   introduction
Data structures introduction
maamir farooq
 
Which data structure is it? What are the various data structure kinds and wha...
Which data structure is it? What are the various data structure kinds and wha...Which data structure is it? What are the various data structure kinds and wha...
Which data structure is it? What are the various data structure kinds and wha...
Tutort Academy
 
Chapter 1
Chapter 1Chapter 1
Chapter 1
Radhika Puttewar
 
data structures
data structuresdata structures
data structures
Owolabi Shalom
 
Ch 1 intriductions
Ch 1 intriductionsCh 1 intriductions
Ch 1 intriductionsirshad17
 
09c-DataStructuresListsArrays.ppt
09c-DataStructuresListsArrays.ppt09c-DataStructuresListsArrays.ppt
09c-DataStructuresListsArrays.ppt
NagarajuNaveena1
 

Similar to Data structure & algorithms introduction (20)

DS Module 1.pptx
DS Module 1.pptxDS Module 1.pptx
DS Module 1.pptx
 
DS Module 1.pptx
DS Module 1.pptxDS Module 1.pptx
DS Module 1.pptx
 
Introduction to Data Structure
Introduction to Data StructureIntroduction to Data Structure
Introduction to Data Structure
 
Datastructures and algorithms prepared by M.V.Brehmanada Reddy
Datastructures and algorithms prepared by M.V.Brehmanada ReddyDatastructures and algorithms prepared by M.V.Brehmanada Reddy
Datastructures and algorithms prepared by M.V.Brehmanada Reddy
 
ARRAYS IN C++ CBSE AND STATE +2 COMPUTER SCIENCE
ARRAYS IN C++ CBSE AND STATE +2 COMPUTER SCIENCEARRAYS IN C++ CBSE AND STATE +2 COMPUTER SCIENCE
ARRAYS IN C++ CBSE AND STATE +2 COMPUTER SCIENCE
 
UNITIII LDS.pdf
UNITIII LDS.pdfUNITIII LDS.pdf
UNITIII LDS.pdf
 
DATA STRUCTURE AND ALGORITHMS
DATA STRUCTURE AND ALGORITHMS DATA STRUCTURE AND ALGORITHMS
DATA STRUCTURE AND ALGORITHMS
 
Data Structures and algoithms Unit - 1.pptx
Data Structures and algoithms Unit - 1.pptxData Structures and algoithms Unit - 1.pptx
Data Structures and algoithms Unit - 1.pptx
 
2. Introduction to Data Structure.pdf
2. Introduction to Data Structure.pdf2. Introduction to Data Structure.pdf
2. Introduction to Data Structure.pdf
 
DSA - Copy.pptx
DSA - Copy.pptxDSA - Copy.pptx
DSA - Copy.pptx
 
Intro ds
Intro dsIntro ds
Intro ds
 
introduction about data structure_i.pptx
introduction about data structure_i.pptxintroduction about data structure_i.pptx
introduction about data structure_i.pptx
 
Data_structure.pptx
Data_structure.pptxData_structure.pptx
Data_structure.pptx
 
M v bramhananda reddy dsa complete notes
M v bramhananda reddy dsa complete notesM v bramhananda reddy dsa complete notes
M v bramhananda reddy dsa complete notes
 
Data structures introduction
Data structures   introductionData structures   introduction
Data structures introduction
 
Which data structure is it? What are the various data structure kinds and wha...
Which data structure is it? What are the various data structure kinds and wha...Which data structure is it? What are the various data structure kinds and wha...
Which data structure is it? What are the various data structure kinds and wha...
 
Chapter 1
Chapter 1Chapter 1
Chapter 1
 
data structures
data structuresdata structures
data structures
 
Ch 1 intriductions
Ch 1 intriductionsCh 1 intriductions
Ch 1 intriductions
 
09c-DataStructuresListsArrays.ppt
09c-DataStructuresListsArrays.ppt09c-DataStructuresListsArrays.ppt
09c-DataStructuresListsArrays.ppt
 

Recently uploaded

A Comprehensive Look at Generative AI in Retail App Testing.pdf
A Comprehensive Look at Generative AI in Retail App Testing.pdfA Comprehensive Look at Generative AI in Retail App Testing.pdf
A Comprehensive Look at Generative AI in Retail App Testing.pdf
kalichargn70th171
 
Vitthal Shirke Microservices Resume Montevideo
Vitthal Shirke Microservices Resume MontevideoVitthal Shirke Microservices Resume Montevideo
Vitthal Shirke Microservices Resume Montevideo
Vitthal Shirke
 
Gamify Your Mind; The Secret Sauce to Delivering Success, Continuously Improv...
Gamify Your Mind; The Secret Sauce to Delivering Success, Continuously Improv...Gamify Your Mind; The Secret Sauce to Delivering Success, Continuously Improv...
Gamify Your Mind; The Secret Sauce to Delivering Success, Continuously Improv...
Shahin Sheidaei
 
Quarkus Hidden and Forbidden Extensions
Quarkus Hidden and Forbidden ExtensionsQuarkus Hidden and Forbidden Extensions
Quarkus Hidden and Forbidden Extensions
Max Andersen
 
Enhancing Research Orchestration Capabilities at ORNL.pdf
Enhancing Research Orchestration Capabilities at ORNL.pdfEnhancing Research Orchestration Capabilities at ORNL.pdf
Enhancing Research Orchestration Capabilities at ORNL.pdf
Globus
 
WSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital Transformation
WSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital TransformationWSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital Transformation
WSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital Transformation
WSO2
 
De mooiste recreatieve routes ontdekken met RouteYou en FME
De mooiste recreatieve routes ontdekken met RouteYou en FMEDe mooiste recreatieve routes ontdekken met RouteYou en FME
De mooiste recreatieve routes ontdekken met RouteYou en FME
Jelle | Nordend
 
BoxLang: Review our Visionary Licenses of 2024
BoxLang: Review our Visionary Licenses of 2024BoxLang: Review our Visionary Licenses of 2024
BoxLang: Review our Visionary Licenses of 2024
Ortus Solutions, Corp
 
Into the Box 2024 - Keynote Day 2 Slides.pdf
Into the Box 2024 - Keynote Day 2 Slides.pdfInto the Box 2024 - Keynote Day 2 Slides.pdf
Into the Box 2024 - Keynote Day 2 Slides.pdf
Ortus Solutions, Corp
 
Beyond Event Sourcing - Embracing CRUD for Wix Platform - Java.IL
Beyond Event Sourcing - Embracing CRUD for Wix Platform - Java.ILBeyond Event Sourcing - Embracing CRUD for Wix Platform - Java.IL
Beyond Event Sourcing - Embracing CRUD for Wix Platform - Java.IL
Natan Silnitsky
 
Prosigns: Transforming Business with Tailored Technology Solutions
Prosigns: Transforming Business with Tailored Technology SolutionsProsigns: Transforming Business with Tailored Technology Solutions
Prosigns: Transforming Business with Tailored Technology Solutions
Prosigns
 
Lecture 1 Introduction to games development
Lecture 1 Introduction to games developmentLecture 1 Introduction to games development
Lecture 1 Introduction to games development
abdulrafaychaudhry
 
top nidhi software solution freedownload
top nidhi software solution freedownloadtop nidhi software solution freedownload
top nidhi software solution freedownload
vrstrong314
 
Large Language Models and the End of Programming
Large Language Models and the End of ProgrammingLarge Language Models and the End of Programming
Large Language Models and the End of Programming
Matt Welsh
 
Cracking the code review at SpringIO 2024
Cracking the code review at SpringIO 2024Cracking the code review at SpringIO 2024
Cracking the code review at SpringIO 2024
Paco van Beckhoven
 
Providing Globus Services to Users of JASMIN for Environmental Data Analysis
Providing Globus Services to Users of JASMIN for Environmental Data AnalysisProviding Globus Services to Users of JASMIN for Environmental Data Analysis
Providing Globus Services to Users of JASMIN for Environmental Data Analysis
Globus
 
How Recreation Management Software Can Streamline Your Operations.pptx
How Recreation Management Software Can Streamline Your Operations.pptxHow Recreation Management Software Can Streamline Your Operations.pptx
How Recreation Management Software Can Streamline Your Operations.pptx
wottaspaceseo
 
Globus Compute Introduction - GlobusWorld 2024
Globus Compute Introduction - GlobusWorld 2024Globus Compute Introduction - GlobusWorld 2024
Globus Compute Introduction - GlobusWorld 2024
Globus
 
SOCRadar Research Team: Latest Activities of IntelBroker
SOCRadar Research Team: Latest Activities of IntelBrokerSOCRadar Research Team: Latest Activities of IntelBroker
SOCRadar Research Team: Latest Activities of IntelBroker
SOCRadar
 
In 2015, I used to write extensions for Joomla, WordPress, phpBB3, etc and I ...
In 2015, I used to write extensions for Joomla, WordPress, phpBB3, etc and I ...In 2015, I used to write extensions for Joomla, WordPress, phpBB3, etc and I ...
In 2015, I used to write extensions for Joomla, WordPress, phpBB3, etc and I ...
Juraj Vysvader
 

Recently uploaded (20)

A Comprehensive Look at Generative AI in Retail App Testing.pdf
A Comprehensive Look at Generative AI in Retail App Testing.pdfA Comprehensive Look at Generative AI in Retail App Testing.pdf
A Comprehensive Look at Generative AI in Retail App Testing.pdf
 
Vitthal Shirke Microservices Resume Montevideo
Vitthal Shirke Microservices Resume MontevideoVitthal Shirke Microservices Resume Montevideo
Vitthal Shirke Microservices Resume Montevideo
 
Gamify Your Mind; The Secret Sauce to Delivering Success, Continuously Improv...
Gamify Your Mind; The Secret Sauce to Delivering Success, Continuously Improv...Gamify Your Mind; The Secret Sauce to Delivering Success, Continuously Improv...
Gamify Your Mind; The Secret Sauce to Delivering Success, Continuously Improv...
 
Quarkus Hidden and Forbidden Extensions
Quarkus Hidden and Forbidden ExtensionsQuarkus Hidden and Forbidden Extensions
Quarkus Hidden and Forbidden Extensions
 
Enhancing Research Orchestration Capabilities at ORNL.pdf
Enhancing Research Orchestration Capabilities at ORNL.pdfEnhancing Research Orchestration Capabilities at ORNL.pdf
Enhancing Research Orchestration Capabilities at ORNL.pdf
 
WSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital Transformation
WSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital TransformationWSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital Transformation
WSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital Transformation
 
De mooiste recreatieve routes ontdekken met RouteYou en FME
De mooiste recreatieve routes ontdekken met RouteYou en FMEDe mooiste recreatieve routes ontdekken met RouteYou en FME
De mooiste recreatieve routes ontdekken met RouteYou en FME
 
BoxLang: Review our Visionary Licenses of 2024
BoxLang: Review our Visionary Licenses of 2024BoxLang: Review our Visionary Licenses of 2024
BoxLang: Review our Visionary Licenses of 2024
 
Into the Box 2024 - Keynote Day 2 Slides.pdf
Into the Box 2024 - Keynote Day 2 Slides.pdfInto the Box 2024 - Keynote Day 2 Slides.pdf
Into the Box 2024 - Keynote Day 2 Slides.pdf
 
Beyond Event Sourcing - Embracing CRUD for Wix Platform - Java.IL
Beyond Event Sourcing - Embracing CRUD for Wix Platform - Java.ILBeyond Event Sourcing - Embracing CRUD for Wix Platform - Java.IL
Beyond Event Sourcing - Embracing CRUD for Wix Platform - Java.IL
 
Prosigns: Transforming Business with Tailored Technology Solutions
Prosigns: Transforming Business with Tailored Technology SolutionsProsigns: Transforming Business with Tailored Technology Solutions
Prosigns: Transforming Business with Tailored Technology Solutions
 
Lecture 1 Introduction to games development
Lecture 1 Introduction to games developmentLecture 1 Introduction to games development
Lecture 1 Introduction to games development
 
top nidhi software solution freedownload
top nidhi software solution freedownloadtop nidhi software solution freedownload
top nidhi software solution freedownload
 
Large Language Models and the End of Programming
Large Language Models and the End of ProgrammingLarge Language Models and the End of Programming
Large Language Models and the End of Programming
 
Cracking the code review at SpringIO 2024
Cracking the code review at SpringIO 2024Cracking the code review at SpringIO 2024
Cracking the code review at SpringIO 2024
 
Providing Globus Services to Users of JASMIN for Environmental Data Analysis
Providing Globus Services to Users of JASMIN for Environmental Data AnalysisProviding Globus Services to Users of JASMIN for Environmental Data Analysis
Providing Globus Services to Users of JASMIN for Environmental Data Analysis
 
How Recreation Management Software Can Streamline Your Operations.pptx
How Recreation Management Software Can Streamline Your Operations.pptxHow Recreation Management Software Can Streamline Your Operations.pptx
How Recreation Management Software Can Streamline Your Operations.pptx
 
Globus Compute Introduction - GlobusWorld 2024
Globus Compute Introduction - GlobusWorld 2024Globus Compute Introduction - GlobusWorld 2024
Globus Compute Introduction - GlobusWorld 2024
 
SOCRadar Research Team: Latest Activities of IntelBroker
SOCRadar Research Team: Latest Activities of IntelBrokerSOCRadar Research Team: Latest Activities of IntelBroker
SOCRadar Research Team: Latest Activities of IntelBroker
 
In 2015, I used to write extensions for Joomla, WordPress, phpBB3, etc and I ...
In 2015, I used to write extensions for Joomla, WordPress, phpBB3, etc and I ...In 2015, I used to write extensions for Joomla, WordPress, phpBB3, etc and I ...
In 2015, I used to write extensions for Joomla, WordPress, phpBB3, etc and I ...
 

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
  • 8.
  • 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
  • 24.
  • 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

  1. 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.
  2. 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.)