SlideShare a Scribd company logo
WHY ON EARTH YOU SHOULD KNOW DATA
STRUCTURES
NISHANT KUMAR BEHL
CONTENT
 WHY WHY WHY SHOULD u KNOW Data Structure
 Smartest Engineers like you definitely knows
 Arrays
 Stacks
 Queues
 Linked lists
 Trees
 Hash Tables
 Graphs
WHY WHY WHY… SHOULD U KNOW DATA STRUCTURE
 Smartest Engineers are the ones who understand how things work internally
 Smartest Engineers are the ones who gets advantages and disadvantages of various things
 Smartest Engineers build code that is readable and scalable
 Smartest Engineers build code that is fastest and yet accurate
 Smartest Engineers knows Data Structure IN & Out
ARE YOU THE SMARTEST ENGINNER ???
ARRAYS
FeaturesProperties
 Collection of Items, more or less of similar type together
 Items are stored in continuous memory location
 Each Item has an index associated with it
 Each Item has an memory location associated to it
Operations
 Lookup , Delete, Insert and Push
Real-life Application
A E U F N
151
0
152
1
153
2
154
3
155
4
Memory
Indices
STACKS
FeaturesProperties
 Items are put up one after another
 Last Item to go Inside will be the First one to come outside – LIFO
Operations
 Lookup , Peek, pop and Push
Real-life Application
 Back and forward buttonoperations are good example of using Stacks
QUEUES
FeaturesProperties
 Frist one to get inside will be the first one to go out
 FIFO
Operations
 Peek, lookup, enqueue dequeue
Real-life Application
 Prioritization while allocating cab to a requestor within small radius, Person to request first will get cab first
LINKED LIST
FeaturesProperties
 Each item hashave pointers to another items
 Uses less memory than array
 Faster lookup, insert & delete operations than array
 Each list has head and tail, tail points to nothing
Operations
 Insert , lookup, delete, append, prepend
Real-life Application
 Versatile, e.g; replaces use of arrays for faster execution
TREES
FeaturesProperties
Hierarchical structure – Root, Parent,Child ,leaf, sibling
Non-Linear traversal paths due to hierarchy
Real-life Application
 DOM-Document object model implements tree data structure i.e; fb html web page, fb comments
 Chess game
 Zomato as example can use tree data structure to narrow down resteraunt search on the map
HASH TABLESHASH MAPS
FeaturesProperties
 Key-Value pair storage mapped to a memory address
 Extremely Fast in operations
 Md5,SHA-1,SHA-256 can be used to Hash a value
 Extremely useful in scalability system design principal
 Consistent Hashing is one of highest used methodology
Real-life Application
 Large scale distributed application, KeyGenerator app, database shards, session maps, caches
GRAPHS
FeaturesProperties
Network of Nodes and Edges
Great in modelling real world relationships
Graph in a way encompass Trees and linked lists
Real-life Application
Good to represent relationships, family tree, network, friendships…like in fb family groups, roads in maps
Facebook uses to create social network & recommendation engines (friends suggestions)
Google uses it to find the optimumshortest path to reach your request
WHAT DOES THIS DECK GIVE YOU
 Well, you can use it as Cheat sheet
 You can use it to brush up :
 Features
 Operations
 Real-life applications

More Related Content

Similar to Why on earth you should know data structures

Centralized logging
Centralized loggingCentralized logging
Centralized logging
blessYahu
 
State of Play. Data Science on Hadoop in 2015 by SEAN OWEN at Big Data Spain ...
State of Play. Data Science on Hadoop in 2015 by SEAN OWEN at Big Data Spain ...State of Play. Data Science on Hadoop in 2015 by SEAN OWEN at Big Data Spain ...
State of Play. Data Science on Hadoop in 2015 by SEAN OWEN at Big Data Spain ...
Big Data Spain
 
Papyrus Digital Asset Management
Papyrus Digital Asset ManagementPapyrus Digital Asset Management
Papyrus Digital Asset Management
mjpucher
 
E-Docs Asset GIS
E-Docs Asset GISE-Docs Asset GIS
E-Docs Asset GIS
Aerial Services
 
New Directions in Metadata
New Directions in MetadataNew Directions in Metadata
New Directions in Metadata
suyu22
 
Fundamental data structure
Fundamental data structureFundamental data structure
Fundamental data structure
Vrushali Dhanokar
 
EPrints and the Cloud
EPrints and the CloudEPrints and the Cloud
EPrints and the Cloud
Leslie Carr
 
Hadoop - A big data initiative
Hadoop - A big data initiativeHadoop - A big data initiative
Hadoop - A big data initiative
Mansi Mehra
 
Chapter 2.ppt on Types of Digital f Data
Chapter 2.ppt on Types of Digital f DataChapter 2.ppt on Types of Digital f Data
Chapter 2.ppt on Types of Digital f Data
FatimaNaqvi47
 
Ledingkart Meetup #4: Data pipeline @ lk
Ledingkart Meetup #4: Data pipeline @ lkLedingkart Meetup #4: Data pipeline @ lk
Ledingkart Meetup #4: Data pipeline @ lk
Mukesh Singh
 
Big Data with Azure
Big Data with AzureBig Data with Azure
Big Data with Azure
Aaron (Ari) Bornstein
 
Interactive SQL-on-Hadoop and JethroData
Interactive SQL-on-Hadoop and JethroDataInteractive SQL-on-Hadoop and JethroData
Interactive SQL-on-Hadoop and JethroData
Ofir Manor
 
Introduction to data structures (ss)
Introduction to data structures (ss)Introduction to data structures (ss)
Introduction to data structures (ss)
Madishetty Prathibha
 
IT webinar 2016
IT webinar 2016IT webinar 2016
IT webinar 2016
PR Cell, IIM Rohtak
 
MEIS 2015 : A Multilayered Model for Artificial Intelligence of Game Characte...
MEIS 2015 : A Multilayered Model for Artificial Intelligence of Game Characte...MEIS 2015 : A Multilayered Model for Artificial Intelligence of Game Characte...
MEIS 2015 : A Multilayered Model for Artificial Intelligence of Game Characte...
Youichiro Miyake
 
Presentaion on data structure mms-a-28
Presentaion on  data structure mms-a-28Presentaion on  data structure mms-a-28
Presentaion on data structure mms-a-28
KhanSayeed2
 
Opetus Education ERP Database Design Concept
Opetus Education ERP Database Design ConceptOpetus Education ERP Database Design Concept
Opetus Education ERP Database Design Concept
Gyani Feku
 
Chapter-OBDD.pptx
Chapter-OBDD.pptxChapter-OBDD.pptx
Chapter-OBDD.pptx
XanGwaps
 
Filebeat Elastic Search Presentation.pptx
Filebeat Elastic Search Presentation.pptxFilebeat Elastic Search Presentation.pptx
Filebeat Elastic Search Presentation.pptx
Knoldus Inc.
 
Prague data management meetup 2018-03-27
Prague data management meetup 2018-03-27Prague data management meetup 2018-03-27
Prague data management meetup 2018-03-27
Martin Bém
 

Similar to Why on earth you should know data structures (20)

Centralized logging
Centralized loggingCentralized logging
Centralized logging
 
State of Play. Data Science on Hadoop in 2015 by SEAN OWEN at Big Data Spain ...
State of Play. Data Science on Hadoop in 2015 by SEAN OWEN at Big Data Spain ...State of Play. Data Science on Hadoop in 2015 by SEAN OWEN at Big Data Spain ...
State of Play. Data Science on Hadoop in 2015 by SEAN OWEN at Big Data Spain ...
 
Papyrus Digital Asset Management
Papyrus Digital Asset ManagementPapyrus Digital Asset Management
Papyrus Digital Asset Management
 
E-Docs Asset GIS
E-Docs Asset GISE-Docs Asset GIS
E-Docs Asset GIS
 
New Directions in Metadata
New Directions in MetadataNew Directions in Metadata
New Directions in Metadata
 
Fundamental data structure
Fundamental data structureFundamental data structure
Fundamental data structure
 
EPrints and the Cloud
EPrints and the CloudEPrints and the Cloud
EPrints and the Cloud
 
Hadoop - A big data initiative
Hadoop - A big data initiativeHadoop - A big data initiative
Hadoop - A big data initiative
 
Chapter 2.ppt on Types of Digital f Data
Chapter 2.ppt on Types of Digital f DataChapter 2.ppt on Types of Digital f Data
Chapter 2.ppt on Types of Digital f Data
 
Ledingkart Meetup #4: Data pipeline @ lk
Ledingkart Meetup #4: Data pipeline @ lkLedingkart Meetup #4: Data pipeline @ lk
Ledingkart Meetup #4: Data pipeline @ lk
 
Big Data with Azure
Big Data with AzureBig Data with Azure
Big Data with Azure
 
Interactive SQL-on-Hadoop and JethroData
Interactive SQL-on-Hadoop and JethroDataInteractive SQL-on-Hadoop and JethroData
Interactive SQL-on-Hadoop and JethroData
 
Introduction to data structures (ss)
Introduction to data structures (ss)Introduction to data structures (ss)
Introduction to data structures (ss)
 
IT webinar 2016
IT webinar 2016IT webinar 2016
IT webinar 2016
 
MEIS 2015 : A Multilayered Model for Artificial Intelligence of Game Characte...
MEIS 2015 : A Multilayered Model for Artificial Intelligence of Game Characte...MEIS 2015 : A Multilayered Model for Artificial Intelligence of Game Characte...
MEIS 2015 : A Multilayered Model for Artificial Intelligence of Game Characte...
 
Presentaion on data structure mms-a-28
Presentaion on  data structure mms-a-28Presentaion on  data structure mms-a-28
Presentaion on data structure mms-a-28
 
Opetus Education ERP Database Design Concept
Opetus Education ERP Database Design ConceptOpetus Education ERP Database Design Concept
Opetus Education ERP Database Design Concept
 
Chapter-OBDD.pptx
Chapter-OBDD.pptxChapter-OBDD.pptx
Chapter-OBDD.pptx
 
Filebeat Elastic Search Presentation.pptx
Filebeat Elastic Search Presentation.pptxFilebeat Elastic Search Presentation.pptx
Filebeat Elastic Search Presentation.pptx
 
Prague data management meetup 2018-03-27
Prague data management meetup 2018-03-27Prague data management meetup 2018-03-27
Prague data management meetup 2018-03-27
 

Recently uploaded

Open Channel Flow: fluid flow with a free surface
Open Channel Flow: fluid flow with a free surfaceOpen Channel Flow: fluid flow with a free surface
Open Channel Flow: fluid flow with a free surface
Indrajeet sahu
 
Introduction to Artificial Intelligence.
Introduction to Artificial Intelligence.Introduction to Artificial Intelligence.
Introduction to Artificial Intelligence.
supriyaDicholkar1
 
一比一原版(osu毕业证书)美国俄勒冈州立大学毕业证如何办理
一比一原版(osu毕业证书)美国俄勒冈州立大学毕业证如何办理一比一原版(osu毕业证书)美国俄勒冈州立大学毕业证如何办理
一比一原版(osu毕业证书)美国俄勒冈州立大学毕业证如何办理
upoux
 
Determination of Equivalent Circuit parameters and performance characteristic...
Determination of Equivalent Circuit parameters and performance characteristic...Determination of Equivalent Circuit parameters and performance characteristic...
Determination of Equivalent Circuit parameters and performance characteristic...
pvpriya2
 
Accident detection system project report.pdf
Accident detection system project report.pdfAccident detection system project report.pdf
Accident detection system project report.pdf
Kamal Acharya
 
Introduction to Computer Networks & OSI MODEL.ppt
Introduction to Computer Networks & OSI MODEL.pptIntroduction to Computer Networks & OSI MODEL.ppt
Introduction to Computer Networks & OSI MODEL.ppt
Dwarkadas J Sanghvi College of Engineering
 
UNIT 4 LINEAR INTEGRATED CIRCUITS-DIGITAL ICS
UNIT 4 LINEAR INTEGRATED CIRCUITS-DIGITAL ICSUNIT 4 LINEAR INTEGRATED CIRCUITS-DIGITAL ICS
UNIT 4 LINEAR INTEGRATED CIRCUITS-DIGITAL ICS
vmspraneeth
 
DELTA V MES EMERSON EDUARDO RODRIGUES ENGINEER
DELTA V MES EMERSON EDUARDO RODRIGUES ENGINEERDELTA V MES EMERSON EDUARDO RODRIGUES ENGINEER
DELTA V MES EMERSON EDUARDO RODRIGUES ENGINEER
EMERSON EDUARDO RODRIGUES
 
Object Oriented Analysis and Design - OOAD
Object Oriented Analysis and Design - OOADObject Oriented Analysis and Design - OOAD
Object Oriented Analysis and Design - OOAD
PreethaV16
 
OOPS_Lab_Manual - programs using C++ programming language
OOPS_Lab_Manual - programs using C++ programming languageOOPS_Lab_Manual - programs using C++ programming language
OOPS_Lab_Manual - programs using C++ programming language
PreethaV16
 
一比一原版(USF毕业证)旧金山大学毕业证如何办理
一比一原版(USF毕业证)旧金山大学毕业证如何办理一比一原版(USF毕业证)旧金山大学毕业证如何办理
一比一原版(USF毕业证)旧金山大学毕业证如何办理
uqyfuc
 
Asymmetrical Repulsion Magnet Motor Ratio 6-7.pdf
Asymmetrical Repulsion Magnet Motor Ratio 6-7.pdfAsymmetrical Repulsion Magnet Motor Ratio 6-7.pdf
Asymmetrical Repulsion Magnet Motor Ratio 6-7.pdf
felixwold
 
Sri Guru Hargobind Ji - Bandi Chor Guru.pdf
Sri Guru Hargobind Ji - Bandi Chor Guru.pdfSri Guru Hargobind Ji - Bandi Chor Guru.pdf
Sri Guru Hargobind Ji - Bandi Chor Guru.pdf
Balvir Singh
 
3rd International Conference on Artificial Intelligence Advances (AIAD 2024)
3rd International Conference on Artificial Intelligence Advances (AIAD 2024)3rd International Conference on Artificial Intelligence Advances (AIAD 2024)
3rd International Conference on Artificial Intelligence Advances (AIAD 2024)
GiselleginaGloria
 
openshift technical overview - Flow of openshift containerisatoin
openshift technical overview - Flow of openshift containerisatoinopenshift technical overview - Flow of openshift containerisatoin
openshift technical overview - Flow of openshift containerisatoin
snaprevwdev
 
SENTIMENT ANALYSIS ON PPT AND Project template_.pptx
SENTIMENT ANALYSIS ON PPT AND Project template_.pptxSENTIMENT ANALYSIS ON PPT AND Project template_.pptx
SENTIMENT ANALYSIS ON PPT AND Project template_.pptx
b0754201
 
Impartiality as per ISO /IEC 17025:2017 Standard
Impartiality as per ISO /IEC 17025:2017 StandardImpartiality as per ISO /IEC 17025:2017 Standard
Impartiality as per ISO /IEC 17025:2017 Standard
MuhammadJazib15
 
Beckhoff Programmable Logic Control Overview Presentation
Beckhoff Programmable Logic Control Overview PresentationBeckhoff Programmable Logic Control Overview Presentation
Beckhoff Programmable Logic Control Overview Presentation
VanTuDuong1
 
Properties of Fluids, Fluid Statics, Pressure Measurement
Properties of Fluids, Fluid Statics, Pressure MeasurementProperties of Fluids, Fluid Statics, Pressure Measurement
Properties of Fluids, Fluid Statics, Pressure Measurement
Indrajeet sahu
 
Digital Twins Computer Networking Paper Presentation.pptx
Digital Twins Computer Networking Paper Presentation.pptxDigital Twins Computer Networking Paper Presentation.pptx
Digital Twins Computer Networking Paper Presentation.pptx
aryanpankaj78
 

Recently uploaded (20)

Open Channel Flow: fluid flow with a free surface
Open Channel Flow: fluid flow with a free surfaceOpen Channel Flow: fluid flow with a free surface
Open Channel Flow: fluid flow with a free surface
 
Introduction to Artificial Intelligence.
Introduction to Artificial Intelligence.Introduction to Artificial Intelligence.
Introduction to Artificial Intelligence.
 
一比一原版(osu毕业证书)美国俄勒冈州立大学毕业证如何办理
一比一原版(osu毕业证书)美国俄勒冈州立大学毕业证如何办理一比一原版(osu毕业证书)美国俄勒冈州立大学毕业证如何办理
一比一原版(osu毕业证书)美国俄勒冈州立大学毕业证如何办理
 
Determination of Equivalent Circuit parameters and performance characteristic...
Determination of Equivalent Circuit parameters and performance characteristic...Determination of Equivalent Circuit parameters and performance characteristic...
Determination of Equivalent Circuit parameters and performance characteristic...
 
Accident detection system project report.pdf
Accident detection system project report.pdfAccident detection system project report.pdf
Accident detection system project report.pdf
 
Introduction to Computer Networks & OSI MODEL.ppt
Introduction to Computer Networks & OSI MODEL.pptIntroduction to Computer Networks & OSI MODEL.ppt
Introduction to Computer Networks & OSI MODEL.ppt
 
UNIT 4 LINEAR INTEGRATED CIRCUITS-DIGITAL ICS
UNIT 4 LINEAR INTEGRATED CIRCUITS-DIGITAL ICSUNIT 4 LINEAR INTEGRATED CIRCUITS-DIGITAL ICS
UNIT 4 LINEAR INTEGRATED CIRCUITS-DIGITAL ICS
 
DELTA V MES EMERSON EDUARDO RODRIGUES ENGINEER
DELTA V MES EMERSON EDUARDO RODRIGUES ENGINEERDELTA V MES EMERSON EDUARDO RODRIGUES ENGINEER
DELTA V MES EMERSON EDUARDO RODRIGUES ENGINEER
 
Object Oriented Analysis and Design - OOAD
Object Oriented Analysis and Design - OOADObject Oriented Analysis and Design - OOAD
Object Oriented Analysis and Design - OOAD
 
OOPS_Lab_Manual - programs using C++ programming language
OOPS_Lab_Manual - programs using C++ programming languageOOPS_Lab_Manual - programs using C++ programming language
OOPS_Lab_Manual - programs using C++ programming language
 
一比一原版(USF毕业证)旧金山大学毕业证如何办理
一比一原版(USF毕业证)旧金山大学毕业证如何办理一比一原版(USF毕业证)旧金山大学毕业证如何办理
一比一原版(USF毕业证)旧金山大学毕业证如何办理
 
Asymmetrical Repulsion Magnet Motor Ratio 6-7.pdf
Asymmetrical Repulsion Magnet Motor Ratio 6-7.pdfAsymmetrical Repulsion Magnet Motor Ratio 6-7.pdf
Asymmetrical Repulsion Magnet Motor Ratio 6-7.pdf
 
Sri Guru Hargobind Ji - Bandi Chor Guru.pdf
Sri Guru Hargobind Ji - Bandi Chor Guru.pdfSri Guru Hargobind Ji - Bandi Chor Guru.pdf
Sri Guru Hargobind Ji - Bandi Chor Guru.pdf
 
3rd International Conference on Artificial Intelligence Advances (AIAD 2024)
3rd International Conference on Artificial Intelligence Advances (AIAD 2024)3rd International Conference on Artificial Intelligence Advances (AIAD 2024)
3rd International Conference on Artificial Intelligence Advances (AIAD 2024)
 
openshift technical overview - Flow of openshift containerisatoin
openshift technical overview - Flow of openshift containerisatoinopenshift technical overview - Flow of openshift containerisatoin
openshift technical overview - Flow of openshift containerisatoin
 
SENTIMENT ANALYSIS ON PPT AND Project template_.pptx
SENTIMENT ANALYSIS ON PPT AND Project template_.pptxSENTIMENT ANALYSIS ON PPT AND Project template_.pptx
SENTIMENT ANALYSIS ON PPT AND Project template_.pptx
 
Impartiality as per ISO /IEC 17025:2017 Standard
Impartiality as per ISO /IEC 17025:2017 StandardImpartiality as per ISO /IEC 17025:2017 Standard
Impartiality as per ISO /IEC 17025:2017 Standard
 
Beckhoff Programmable Logic Control Overview Presentation
Beckhoff Programmable Logic Control Overview PresentationBeckhoff Programmable Logic Control Overview Presentation
Beckhoff Programmable Logic Control Overview Presentation
 
Properties of Fluids, Fluid Statics, Pressure Measurement
Properties of Fluids, Fluid Statics, Pressure MeasurementProperties of Fluids, Fluid Statics, Pressure Measurement
Properties of Fluids, Fluid Statics, Pressure Measurement
 
Digital Twins Computer Networking Paper Presentation.pptx
Digital Twins Computer Networking Paper Presentation.pptxDigital Twins Computer Networking Paper Presentation.pptx
Digital Twins Computer Networking Paper Presentation.pptx
 

Why on earth you should know data structures

  • 1. WHY ON EARTH YOU SHOULD KNOW DATA STRUCTURES NISHANT KUMAR BEHL
  • 2. CONTENT  WHY WHY WHY SHOULD u KNOW Data Structure  Smartest Engineers like you definitely knows  Arrays  Stacks  Queues  Linked lists  Trees  Hash Tables  Graphs
  • 3. WHY WHY WHY… SHOULD U KNOW DATA STRUCTURE  Smartest Engineers are the ones who understand how things work internally  Smartest Engineers are the ones who gets advantages and disadvantages of various things  Smartest Engineers build code that is readable and scalable  Smartest Engineers build code that is fastest and yet accurate  Smartest Engineers knows Data Structure IN & Out ARE YOU THE SMARTEST ENGINNER ???
  • 4. ARRAYS FeaturesProperties  Collection of Items, more or less of similar type together  Items are stored in continuous memory location  Each Item has an index associated with it  Each Item has an memory location associated to it Operations  Lookup , Delete, Insert and Push Real-life Application A E U F N 151 0 152 1 153 2 154 3 155 4 Memory Indices
  • 5. STACKS FeaturesProperties  Items are put up one after another  Last Item to go Inside will be the First one to come outside – LIFO Operations  Lookup , Peek, pop and Push Real-life Application  Back and forward buttonoperations are good example of using Stacks
  • 6. QUEUES FeaturesProperties  Frist one to get inside will be the first one to go out  FIFO Operations  Peek, lookup, enqueue dequeue Real-life Application  Prioritization while allocating cab to a requestor within small radius, Person to request first will get cab first
  • 7. LINKED LIST FeaturesProperties  Each item hashave pointers to another items  Uses less memory than array  Faster lookup, insert & delete operations than array  Each list has head and tail, tail points to nothing Operations  Insert , lookup, delete, append, prepend Real-life Application  Versatile, e.g; replaces use of arrays for faster execution
  • 8. TREES FeaturesProperties Hierarchical structure – Root, Parent,Child ,leaf, sibling Non-Linear traversal paths due to hierarchy Real-life Application  DOM-Document object model implements tree data structure i.e; fb html web page, fb comments  Chess game  Zomato as example can use tree data structure to narrow down resteraunt search on the map
  • 9. HASH TABLESHASH MAPS FeaturesProperties  Key-Value pair storage mapped to a memory address  Extremely Fast in operations  Md5,SHA-1,SHA-256 can be used to Hash a value  Extremely useful in scalability system design principal  Consistent Hashing is one of highest used methodology Real-life Application  Large scale distributed application, KeyGenerator app, database shards, session maps, caches
  • 10. GRAPHS FeaturesProperties Network of Nodes and Edges Great in modelling real world relationships Graph in a way encompass Trees and linked lists Real-life Application Good to represent relationships, family tree, network, friendships…like in fb family groups, roads in maps Facebook uses to create social network & recommendation engines (friends suggestions) Google uses it to find the optimumshortest path to reach your request
  • 11. WHAT DOES THIS DECK GIVE YOU  Well, you can use it as Cheat sheet  You can use it to brush up :  Features  Operations  Real-life applications