SlideShare a Scribd company logo
1 of 11
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 loggingblessYahu
 
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 Managementmjpucher
 
New Directions in Metadata
New Directions in MetadataNew Directions in Metadata
New Directions in Metadatasuyu22
 
EPrints and the Cloud
EPrints and the CloudEPrints and the Cloud
EPrints and the CloudLeslie Carr
 
Hadoop - A big data initiative
Hadoop - A big data initiativeHadoop - A big data initiative
Hadoop - A big data initiativeMansi 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 DataFatimaNaqvi47
 
Ledingkart Meetup #4: Data pipeline @ lk
Ledingkart Meetup #4: Data pipeline @ lkLedingkart Meetup #4: Data pipeline @ lk
Ledingkart Meetup #4: Data pipeline @ lkMukesh Singh
 
Interactive SQL-on-Hadoop and JethroData
Interactive SQL-on-Hadoop and JethroDataInteractive SQL-on-Hadoop and JethroData
Interactive SQL-on-Hadoop and JethroDataOfir Manor
 
Introduction to data structures (ss)
Introduction to data structures (ss)Introduction to data structures (ss)
Introduction to data structures (ss)Madishetty Prathibha
 
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-28KhanSayeed2
 
Opetus Education ERP Database Design Concept
Opetus Education ERP Database Design ConceptOpetus Education ERP Database Design Concept
Opetus Education ERP Database Design ConceptGyani Feku
 
Chapter-OBDD.pptx
Chapter-OBDD.pptxChapter-OBDD.pptx
Chapter-OBDD.pptxXanGwaps
 
Filebeat Elastic Search Presentation.pptx
Filebeat Elastic Search Presentation.pptxFilebeat Elastic Search Presentation.pptx
Filebeat Elastic Search Presentation.pptxKnoldus 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-27Martin 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

Study on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube ExchangerStudy on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube ExchangerAnamika Sarkar
 
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdfCCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdfAsst.prof M.Gokilavani
 
Effects of rheological properties on mixing
Effects of rheological properties on mixingEffects of rheological properties on mixing
Effects of rheological properties on mixingviprabot1
 
Arduino_CSE ece ppt for working and principal of arduino.ppt
Arduino_CSE ece ppt for working and principal of arduino.pptArduino_CSE ece ppt for working and principal of arduino.ppt
Arduino_CSE ece ppt for working and principal of arduino.pptSAURABHKUMAR892774
 
Call Girls Narol 7397865700 Independent Call Girls
Call Girls Narol 7397865700 Independent Call GirlsCall Girls Narol 7397865700 Independent Call Girls
Call Girls Narol 7397865700 Independent Call Girlsssuser7cb4ff
 
EduAI - E learning Platform integrated with AI
EduAI - E learning Platform integrated with AIEduAI - E learning Platform integrated with AI
EduAI - E learning Platform integrated with AIkoyaldeepu123
 
Risk Assessment For Installation of Drainage Pipes.pdf
Risk Assessment For Installation of Drainage Pipes.pdfRisk Assessment For Installation of Drainage Pipes.pdf
Risk Assessment For Installation of Drainage Pipes.pdfROCENODodongVILLACER
 
main PPT.pptx of girls hostel security using rfid
main PPT.pptx of girls hostel security using rfidmain PPT.pptx of girls hostel security using rfid
main PPT.pptx of girls hostel security using rfidNikhilNagaraju
 
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort serviceGurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort servicejennyeacort
 
pipeline in computer architecture design
pipeline in computer architecture  designpipeline in computer architecture  design
pipeline in computer architecture designssuser87fa0c1
 
Call Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile serviceCall Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile servicerehmti665
 
Biology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptxBiology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptxDeepakSakkari2
 
Heart Disease Prediction using machine learning.pptx
Heart Disease Prediction using machine learning.pptxHeart Disease Prediction using machine learning.pptx
Heart Disease Prediction using machine learning.pptxPoojaBan
 
UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)
UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)
UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)Dr SOUNDIRARAJ N
 
What are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptxWhat are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptxwendy cai
 

Recently uploaded (20)

Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCRCall Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
 
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube ExchangerStudy on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
 
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdfCCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
 
Effects of rheological properties on mixing
Effects of rheological properties on mixingEffects of rheological properties on mixing
Effects of rheological properties on mixing
 
Arduino_CSE ece ppt for working and principal of arduino.ppt
Arduino_CSE ece ppt for working and principal of arduino.pptArduino_CSE ece ppt for working and principal of arduino.ppt
Arduino_CSE ece ppt for working and principal of arduino.ppt
 
Call Girls Narol 7397865700 Independent Call Girls
Call Girls Narol 7397865700 Independent Call GirlsCall Girls Narol 7397865700 Independent Call Girls
Call Girls Narol 7397865700 Independent Call Girls
 
🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...
🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...
🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...
 
EduAI - E learning Platform integrated with AI
EduAI - E learning Platform integrated with AIEduAI - E learning Platform integrated with AI
EduAI - E learning Platform integrated with AI
 
Risk Assessment For Installation of Drainage Pipes.pdf
Risk Assessment For Installation of Drainage Pipes.pdfRisk Assessment For Installation of Drainage Pipes.pdf
Risk Assessment For Installation of Drainage Pipes.pdf
 
young call girls in Rajiv Chowk🔝 9953056974 🔝 Delhi escort Service
young call girls in Rajiv Chowk🔝 9953056974 🔝 Delhi escort Serviceyoung call girls in Rajiv Chowk🔝 9953056974 🔝 Delhi escort Service
young call girls in Rajiv Chowk🔝 9953056974 🔝 Delhi escort Service
 
young call girls in Green Park🔝 9953056974 🔝 escort Service
young call girls in Green Park🔝 9953056974 🔝 escort Serviceyoung call girls in Green Park🔝 9953056974 🔝 escort Service
young call girls in Green Park🔝 9953056974 🔝 escort Service
 
main PPT.pptx of girls hostel security using rfid
main PPT.pptx of girls hostel security using rfidmain PPT.pptx of girls hostel security using rfid
main PPT.pptx of girls hostel security using rfid
 
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort serviceGurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
 
pipeline in computer architecture design
pipeline in computer architecture  designpipeline in computer architecture  design
pipeline in computer architecture design
 
Call Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile serviceCall Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile service
 
Biology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptxBiology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptx
 
Heart Disease Prediction using machine learning.pptx
Heart Disease Prediction using machine learning.pptxHeart Disease Prediction using machine learning.pptx
Heart Disease Prediction using machine learning.pptx
 
UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)
UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)
UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)
 
What are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptxWhat are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptx
 
POWER SYSTEMS-1 Complete notes examples
POWER SYSTEMS-1 Complete notes  examplesPOWER SYSTEMS-1 Complete notes  examples
POWER SYSTEMS-1 Complete notes examples
 

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