SlideShare a Scribd company logo
1 of 37
DATA
STRUCTURES
“Above all else, show the data.” – Edward R. Tufte
Who is the Speaker ?
Hello, I am currently a sophomore here at
symbiosis institute of technology,
I am just another geeky guy, who is into
development, blogging, music, basketball,
swimming. But most importantly into community
building
What do you mean by data
structures?
Memory representation of
Data Structures
02INTRODUCTION MEMORY PRESENTATION
01
SUMMING UP THE
PRESENTATION
CONCLUSION
04TYPES OF DATA STRUCTURES
A BRIEF SUMMARY
03
What is
an
Algorithm ?00.
An algorithm is the set of instructions that defines not just what needs to be done
but how to do it.
What is an Algorithm ?
What is
Data
Structure ?01.
For example
1..You can either Store data in tuple or list ,
2..You can either use store data in Stack and
Queue..
Data structure refers to
methods of organizing units of
data within larger data sets.
Memory
Representation .02
A Byte at a time !
It has proved difficult to develop devices that can understand natural
language directly due to the complexity of natural languages. However,
it is easier to construct electric circuits based on the binary or ON and
OFF logic.
● Bits: can be defined as either a binary, which can be 0, or 1.It is the
basic unit of data or information in digital computers.
● Byte: a group of bits (8 bits) used to represent a character. A byte is
considered as the basic unit of measuring memory size in computer.
● A nibble: is half a byte, which is usually a grouping of 4 bits.
How does Memory look like ?
You can think ram as a box ,divided into smaller cells ,each cell holds equal data .
When you store data in a variable it gets converted into byte's , and each byte =8
bits , each block can hold 4 bits .
For example : When you write int a =2 , a gets stored with binary value of 2
=0000 0010 , first four bits are stored in one cell and other four bits in next
adjacent cell.
Picturize this as Memory division
A typical memory representation of C program consists of following
sections.
1. Text Segment:
It is one of the sections of a program in an object file or in memory, which contains
executable instructions.
2. Initialized Data Segment:
It contains the global variables and static variables that are initialized by the programmer.
3. Uninitialized Data Segment:
Data in this segment is initialized by the kernel to arithmetic 0 before the program starts
executing
4.Stack:it's where some of your processor's information gets saved, for ex: functions,
structures etc.
5.Heap: Used to allocate big data of memory, this is what we call Dynamic Memory. This
memory is managed by the programmer. for ex: Class
Types of
Data
Structures03.
Linear - Static Data Structures
1.Fast access to elements
2.Have fixed maximum size
3.Memory is reserved at the time of compilation.
Eg: Arrays, Records
Array Implementation
Memory Representation
linear - Dynamic Data Structures
1.Fast insertion/deletion of element
2.Have flexible size
3.Memory allocation for the data structure takes place at the runtime, only required amount
of memory is allocated.
Eg: Link lists, Stacks & Queues.
Stack (LIFO)
Now stack works on the concept of LIFO , which means last element in will be the first
element out . For only understanding purpose we take stack to be horizontal ,
For our conceptual understanding consider a stack of plates example , you have to put plate
one after another and can only take the top most plate out .
Queue (FIFO)
Now Queue works on the concept of first element entered will be first element pushed , for
conceptual reasons we use queue to be Vertical,
Now Queue works on the concept of first element pushed will be last element to be first out
, for conceptual reasons we use queue to be Vertical,
linked list may be defined if all the block are linked to each other ,using address of
other blocks . It’s different from an array , as an array is a collection of simultaneous
boxes , where as list is collection of boxes which are connected by a conceptual string
.
Linked list
Difference Between Array and Linked List
Non linear
The data structure where data items are not organized sequentially is called non linear
data structure. In other words, A data elements of the non linear data structure could be
connected to more than one elements to reflect a special relationship among them. All the
data elements in non linear data structure can not be traversed in single run.
Trees
A tree is a finite set of nodes with one specially designated node called the root and the
remaining notes are partitioned into n>=0 disjoint sets T1 and Tn where each of those sets is a
tree, T1 to Tn are called the sub trees of the root.
Here A is the root and other characters are each of the sets or nodes or sub trees of the root. A
simple understanding of root would be like head pointer in link list ,It holds the very initial
address of the Data Structure .
Tree Structure
An Implementation can be found in the directory structure
Graph
A Graph is a non-linear data structure consisting of nodes and edges. The nodes are sometimes
also referred to as vertices and the edges are lines or arcs that connect any two nodes in the
graph.
A graph data structure (V, E) consists of:
1. A collection of vertices (V) or nodes.
2. A collection of edges (E) or paths.
Graph Structure
Graph data structures are said to contain graph data, often stored in graph databases.
Graph data tends towards intricate connections with high-value relationships. They are
implemented in Google maps, Facebook’s Friend suggestion algorithm these two are
the prominent examples.
CONCLUSION
&
Questions ? .04
THANKS!
To contact me reach out on
1.
https://twitter.com/hridyesh_bi
sht.
2.
https://www.linkedin.com/in/h
ridyesh-bisht-223406133/
3.
https://programmerprodigy.code.blog/
4
.hridyesh.bisht.btech2018@sitpune.edu.in
Bit by bit into data structures
Bit by bit into data structures

More Related Content

What's hot

Data Structure & Algorithms | Computer Science
Data Structure & Algorithms | Computer ScienceData Structure & Algorithms | Computer Science
Data Structure & Algorithms | Computer ScienceTransweb Global Inc
 
Programming & Data Structure Lecture Notes
Programming & Data Structure Lecture NotesProgramming & Data Structure Lecture Notes
Programming & Data Structure Lecture NotesFellowBuddy.com
 
File Types in Data Structure
File Types in Data StructureFile Types in Data Structure
File Types in Data StructureProf Ansari
 
Linked list (introduction) 1
Linked list (introduction) 1Linked list (introduction) 1
Linked list (introduction) 1DrSudeshna
 
data structures and algorithms Unit 1
data structures and algorithms Unit 1data structures and algorithms Unit 1
data structures and algorithms Unit 1infanciaj
 
Data structure
Data structureData structure
Data structureMohd Arif
 
Introduction of Data Structures and Algorithms by GOWRU BHARATH KUMAR
Introduction of Data Structures and Algorithms by GOWRU BHARATH KUMARIntroduction of Data Structures and Algorithms by GOWRU BHARATH KUMAR
Introduction of Data Structures and Algorithms by GOWRU BHARATH KUMARBHARATH KUMAR
 
Chapter 1( intro & overview)
Chapter 1( intro & overview)Chapter 1( intro & overview)
Chapter 1( intro & overview)MUHAMMAD AAMIR
 
Data Structure the Basic Structure for Programming
Data Structure the Basic Structure for ProgrammingData Structure the Basic Structure for Programming
Data Structure the Basic Structure for Programmingpaperpublications3
 
1.1 core programming [understand computer storage and data types]
1.1 core programming [understand computer storage and data types]1.1 core programming [understand computer storage and data types]
1.1 core programming [understand computer storage and data types]tototo147
 
Data structures and algorithms short note (version 14).pd
Data structures and algorithms short note (version 14).pdData structures and algorithms short note (version 14).pd
Data structures and algorithms short note (version 14).pdNimmi Weeraddana
 
Introduction to data structure
Introduction to data structureIntroduction to data structure
Introduction to data structuresunilchute1
 
Ii pu cs practical viva voce questions
Ii pu cs  practical viva voce questionsIi pu cs  practical viva voce questions
Ii pu cs practical viva voce questionsProf. Dr. K. Adisesha
 
Tree data structure in java
Tree data structure in javaTree data structure in java
Tree data structure in javaIrfan CH
 

What's hot (20)

Data Structure & Algorithms | Computer Science
Data Structure & Algorithms | Computer ScienceData Structure & Algorithms | Computer Science
Data Structure & Algorithms | Computer Science
 
Programming & Data Structure Lecture Notes
Programming & Data Structure Lecture NotesProgramming & Data Structure Lecture Notes
Programming & Data Structure Lecture Notes
 
File Types in Data Structure
File Types in Data StructureFile Types in Data Structure
File Types in Data Structure
 
Data structures
Data structuresData structures
Data structures
 
Linked list (introduction) 1
Linked list (introduction) 1Linked list (introduction) 1
Linked list (introduction) 1
 
data structures and algorithms Unit 1
data structures and algorithms Unit 1data structures and algorithms Unit 1
data structures and algorithms Unit 1
 
Lecture1 data structure(introduction)
Lecture1 data structure(introduction)Lecture1 data structure(introduction)
Lecture1 data structure(introduction)
 
Data structure
Data structureData structure
Data structure
 
Introduction of Data Structures and Algorithms by GOWRU BHARATH KUMAR
Introduction of Data Structures and Algorithms by GOWRU BHARATH KUMARIntroduction of Data Structures and Algorithms by GOWRU BHARATH KUMAR
Introduction of Data Structures and Algorithms by GOWRU BHARATH KUMAR
 
Chapter 1( intro & overview)
Chapter 1( intro & overview)Chapter 1( intro & overview)
Chapter 1( intro & overview)
 
Trees
TreesTrees
Trees
 
Data Structure the Basic Structure for Programming
Data Structure the Basic Structure for ProgrammingData Structure the Basic Structure for Programming
Data Structure the Basic Structure for Programming
 
1.1 core programming [understand computer storage and data types]
1.1 core programming [understand computer storage and data types]1.1 core programming [understand computer storage and data types]
1.1 core programming [understand computer storage and data types]
 
Data structures
Data structuresData structures
Data structures
 
104333 sri vidhya eng notes
104333 sri vidhya eng notes104333 sri vidhya eng notes
104333 sri vidhya eng notes
 
Data structures and algorithms short note (version 14).pd
Data structures and algorithms short note (version 14).pdData structures and algorithms short note (version 14).pd
Data structures and algorithms short note (version 14).pd
 
Introduction to data structure
Introduction to data structureIntroduction to data structure
Introduction to data structure
 
Data struters
Data strutersData struters
Data struters
 
Ii pu cs practical viva voce questions
Ii pu cs  practical viva voce questionsIi pu cs  practical viva voce questions
Ii pu cs practical viva voce questions
 
Tree data structure in java
Tree data structure in javaTree data structure in java
Tree data structure in java
 

Similar to Bit by bit into data structures

2. Introduction to Data Structure.pdf
2. Introduction to Data Structure.pdf2. Introduction to Data Structure.pdf
2. Introduction to Data Structure.pdfSulabhPawaia
 
Data Structure using c language for beginners
Data Structure using c language for beginners Data Structure using c language for beginners
Data Structure using c language for beginners Vinayak SofTech
 
Data Structure
Data Structure Data Structure
Data Structure Ibrahim MH
 
DataStructurePpt.pptx
DataStructurePpt.pptxDataStructurePpt.pptx
DataStructurePpt.pptxssuser031f35
 
Introduction to data structures (ss)
Introduction to data structures (ss)Introduction to data structures (ss)
Introduction to data structures (ss)Madishetty Prathibha
 
DS Module 1.pptx
DS Module 1.pptxDS Module 1.pptx
DS Module 1.pptxSaralaT3
 
Data Structures & Recursion-Introduction.pdf
Data Structures & Recursion-Introduction.pdfData Structures & Recursion-Introduction.pdf
Data Structures & Recursion-Introduction.pdfMaryJacob24
 
DATA STRUCTURE AND ALGORITJM POWERPOINT.ppt
DATA STRUCTURE AND ALGORITJM POWERPOINT.pptDATA STRUCTURE AND ALGORITJM POWERPOINT.ppt
DATA STRUCTURE AND ALGORITJM POWERPOINT.pptyarotos643
 
DS Module 1.pptx
DS Module 1.pptxDS Module 1.pptx
DS Module 1.pptxsarala9
 
DataStructurePpt.pptx
DataStructurePpt.pptxDataStructurePpt.pptx
DataStructurePpt.pptxDCABCA
 
Data structure
Data structureData structure
Data structuresnaya
 
Notes of bca Question paper for exams and tests
Notes of bca Question paper for exams and testsNotes of bca Question paper for exams and tests
Notes of bca Question paper for exams and testspriyanshukumar97908
 
Classification of datastructure.ppt
Classification of datastructure.pptClassification of datastructure.ppt
Classification of datastructure.pptLakshmiSamivel
 
2 marks- DS using python
2 marks- DS using python2 marks- DS using python
2 marks- DS using pythonLavanyaJ28
 
Data structures - Introduction
Data structures - IntroductionData structures - Introduction
Data structures - IntroductionDeepaThirumurugan
 
09c-DataStructuresListsArrays.ppt
09c-DataStructuresListsArrays.ppt09c-DataStructuresListsArrays.ppt
09c-DataStructuresListsArrays.pptNagarajuNaveena1
 
Data Structures
Data StructuresData Structures
Data Structureshmwwfv1
 
09c-DataStructuresListsArrays.ppt
09c-DataStructuresListsArrays.ppt09c-DataStructuresListsArrays.ppt
09c-DataStructuresListsArrays.pptMeenakshiPatel13
 

Similar to Bit by bit into data structures (20)

2. Introduction to Data Structure.pdf
2. Introduction to Data Structure.pdf2. Introduction to Data Structure.pdf
2. Introduction to Data Structure.pdf
 
Data Structure using c language for beginners
Data Structure using c language for beginners Data Structure using c language for beginners
Data Structure using c language for beginners
 
Data Structure
Data Structure Data Structure
Data Structure
 
DataStructurePpt.pptx
DataStructurePpt.pptxDataStructurePpt.pptx
DataStructurePpt.pptx
 
Introduction to data structures (ss)
Introduction to data structures (ss)Introduction to data structures (ss)
Introduction to data structures (ss)
 
DS Module 1.pptx
DS Module 1.pptxDS Module 1.pptx
DS Module 1.pptx
 
Data Structures & Recursion-Introduction.pdf
Data Structures & Recursion-Introduction.pdfData Structures & Recursion-Introduction.pdf
Data Structures & Recursion-Introduction.pdf
 
1597380885789.ppt
1597380885789.ppt1597380885789.ppt
1597380885789.ppt
 
DATA STRUCTURE AND ALGORITJM POWERPOINT.ppt
DATA STRUCTURE AND ALGORITJM POWERPOINT.pptDATA STRUCTURE AND ALGORITJM POWERPOINT.ppt
DATA STRUCTURE AND ALGORITJM POWERPOINT.ppt
 
DS Module 1.pptx
DS Module 1.pptxDS Module 1.pptx
DS Module 1.pptx
 
DataStructurePpt.pptx
DataStructurePpt.pptxDataStructurePpt.pptx
DataStructurePpt.pptx
 
Data structure
Data structureData structure
Data structure
 
Notes of bca Question paper for exams and tests
Notes of bca Question paper for exams and testsNotes of bca Question paper for exams and tests
Notes of bca Question paper for exams and tests
 
Classification of datastructure.ppt
Classification of datastructure.pptClassification of datastructure.ppt
Classification of datastructure.ppt
 
2 marks- DS using python
2 marks- DS using python2 marks- DS using python
2 marks- DS using python
 
Data structures - Introduction
Data structures - IntroductionData structures - Introduction
Data structures - Introduction
 
data structures
data structuresdata structures
data structures
 
09c-DataStructuresListsArrays.ppt
09c-DataStructuresListsArrays.ppt09c-DataStructuresListsArrays.ppt
09c-DataStructuresListsArrays.ppt
 
Data Structures
Data StructuresData Structures
Data Structures
 
09c-DataStructuresListsArrays.ppt
09c-DataStructuresListsArrays.ppt09c-DataStructuresListsArrays.ppt
09c-DataStructuresListsArrays.ppt
 

More from Hridyesh Bisht

Machine learning Algorithms with a Sagemaker demo
Machine learning Algorithms with a Sagemaker demoMachine learning Algorithms with a Sagemaker demo
Machine learning Algorithms with a Sagemaker demoHridyesh Bisht
 
Distributed Systems for Blockchain using Cloud
Distributed  Systems for Blockchain  using CloudDistributed  Systems for Blockchain  using Cloud
Distributed Systems for Blockchain using CloudHridyesh Bisht
 
Data streaming algorithms
Data streaming algorithmsData streaming algorithms
Data streaming algorithmsHridyesh Bisht
 

More from Hridyesh Bisht (6)

Tech-Writing-101
Tech-Writing-101Tech-Writing-101
Tech-Writing-101
 
Machine learning Algorithms with a Sagemaker demo
Machine learning Algorithms with a Sagemaker demoMachine learning Algorithms with a Sagemaker demo
Machine learning Algorithms with a Sagemaker demo
 
Distributed Systems for Blockchain using Cloud
Distributed  Systems for Blockchain  using CloudDistributed  Systems for Blockchain  using Cloud
Distributed Systems for Blockchain using Cloud
 
Data streaming algorithms
Data streaming algorithmsData streaming algorithms
Data streaming algorithms
 
Intro to web dev
Intro to web devIntro to web dev
Intro to web dev
 
Do you git it
Do you git it Do you git it
Do you git it
 

Recently uploaded

Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions
 
Pigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationRidwan Fadjar
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Alan Dix
 
Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Enterprise Knowledge
 
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphSIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphNeo4j
 
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr LapshynFwdays
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationSafe Software
 
Unlocking the Potential of the Cloud for IBM Power Systems
Unlocking the Potential of the Cloud for IBM Power SystemsUnlocking the Potential of the Cloud for IBM Power Systems
Unlocking the Potential of the Cloud for IBM Power SystemsPrecisely
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 3652toLead Limited
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...shyamraj55
 
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupFlorian Wilhelm
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticscarlostorres15106
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Patryk Bandurski
 
Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024BookNet Canada
 
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024BookNet Canada
 
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersEnhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersThousandEyes
 
Artificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning eraArtificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning eraDeakin University
 

Recently uploaded (20)

Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping Elbows
 
Pigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food Manufacturing
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 Presentation
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
 
Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024
 
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphSIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
 
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
 
Unlocking the Potential of the Cloud for IBM Power Systems
Unlocking the Potential of the Cloud for IBM Power SystemsUnlocking the Potential of the Cloud for IBM Power Systems
Unlocking the Potential of the Cloud for IBM Power Systems
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
 
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project Setup
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
 
The transition to renewables in India.pdf
The transition to renewables in India.pdfThe transition to renewables in India.pdf
The transition to renewables in India.pdf
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
 
Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
 
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
 
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersEnhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
 
Artificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning eraArtificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning era
 
Vulnerability_Management_GRC_by Sohang Sengupta.pptx
Vulnerability_Management_GRC_by Sohang Sengupta.pptxVulnerability_Management_GRC_by Sohang Sengupta.pptx
Vulnerability_Management_GRC_by Sohang Sengupta.pptx
 

Bit by bit into data structures

  • 1. DATA STRUCTURES “Above all else, show the data.” – Edward R. Tufte
  • 2. Who is the Speaker ? Hello, I am currently a sophomore here at symbiosis institute of technology, I am just another geeky guy, who is into development, blogging, music, basketball, swimming. But most importantly into community building
  • 3. What do you mean by data structures? Memory representation of Data Structures 02INTRODUCTION MEMORY PRESENTATION 01 SUMMING UP THE PRESENTATION CONCLUSION 04TYPES OF DATA STRUCTURES A BRIEF SUMMARY 03
  • 5. An algorithm is the set of instructions that defines not just what needs to be done but how to do it. What is an Algorithm ?
  • 7. For example 1..You can either Store data in tuple or list , 2..You can either use store data in Stack and Queue.. Data structure refers to methods of organizing units of data within larger data sets.
  • 8.
  • 10. A Byte at a time ! It has proved difficult to develop devices that can understand natural language directly due to the complexity of natural languages. However, it is easier to construct electric circuits based on the binary or ON and OFF logic. ● Bits: can be defined as either a binary, which can be 0, or 1.It is the basic unit of data or information in digital computers. ● Byte: a group of bits (8 bits) used to represent a character. A byte is considered as the basic unit of measuring memory size in computer. ● A nibble: is half a byte, which is usually a grouping of 4 bits.
  • 11.
  • 12. How does Memory look like ? You can think ram as a box ,divided into smaller cells ,each cell holds equal data . When you store data in a variable it gets converted into byte's , and each byte =8 bits , each block can hold 4 bits . For example : When you write int a =2 , a gets stored with binary value of 2 =0000 0010 , first four bits are stored in one cell and other four bits in next adjacent cell.
  • 13. Picturize this as Memory division
  • 14. A typical memory representation of C program consists of following sections.
  • 15. 1. Text Segment: It is one of the sections of a program in an object file or in memory, which contains executable instructions. 2. Initialized Data Segment: It contains the global variables and static variables that are initialized by the programmer. 3. Uninitialized Data Segment: Data in this segment is initialized by the kernel to arithmetic 0 before the program starts executing 4.Stack:it's where some of your processor's information gets saved, for ex: functions, structures etc. 5.Heap: Used to allocate big data of memory, this is what we call Dynamic Memory. This memory is managed by the programmer. for ex: Class
  • 17.
  • 18. Linear - Static Data Structures 1.Fast access to elements 2.Have fixed maximum size 3.Memory is reserved at the time of compilation. Eg: Arrays, Records
  • 21. linear - Dynamic Data Structures 1.Fast insertion/deletion of element 2.Have flexible size 3.Memory allocation for the data structure takes place at the runtime, only required amount of memory is allocated. Eg: Link lists, Stacks & Queues.
  • 22. Stack (LIFO) Now stack works on the concept of LIFO , which means last element in will be the first element out . For only understanding purpose we take stack to be horizontal , For our conceptual understanding consider a stack of plates example , you have to put plate one after another and can only take the top most plate out .
  • 23. Queue (FIFO) Now Queue works on the concept of first element entered will be first element pushed , for conceptual reasons we use queue to be Vertical, Now Queue works on the concept of first element pushed will be last element to be first out , for conceptual reasons we use queue to be Vertical,
  • 24. linked list may be defined if all the block are linked to each other ,using address of other blocks . It’s different from an array , as an array is a collection of simultaneous boxes , where as list is collection of boxes which are connected by a conceptual string . Linked list
  • 25. Difference Between Array and Linked List
  • 26. Non linear The data structure where data items are not organized sequentially is called non linear data structure. In other words, A data elements of the non linear data structure could be connected to more than one elements to reflect a special relationship among them. All the data elements in non linear data structure can not be traversed in single run.
  • 27. Trees A tree is a finite set of nodes with one specially designated node called the root and the remaining notes are partitioned into n>=0 disjoint sets T1 and Tn where each of those sets is a tree, T1 to Tn are called the sub trees of the root. Here A is the root and other characters are each of the sets or nodes or sub trees of the root. A simple understanding of root would be like head pointer in link list ,It holds the very initial address of the Data Structure .
  • 29. An Implementation can be found in the directory structure
  • 30. Graph A Graph is a non-linear data structure consisting of nodes and edges. The nodes are sometimes also referred to as vertices and the edges are lines or arcs that connect any two nodes in the graph. A graph data structure (V, E) consists of: 1. A collection of vertices (V) or nodes. 2. A collection of edges (E) or paths.
  • 32. Graph data structures are said to contain graph data, often stored in graph databases. Graph data tends towards intricate connections with high-value relationships. They are implemented in Google maps, Facebook’s Friend suggestion algorithm these two are the prominent examples.
  • 34.
  • 35. THANKS! To contact me reach out on 1. https://twitter.com/hridyesh_bi sht. 2. https://www.linkedin.com/in/h ridyesh-bisht-223406133/ 3. https://programmerprodigy.code.blog/ 4 .hridyesh.bisht.btech2018@sitpune.edu.in

Editor's Notes

  1. Good afternoon guys, I am hridyesh singh bisht, So we will try to get a byte of Data Structures in this seminar. No worries if you didn’t get the pun there, you will get it eventually. Remember bit by bit we can progress.
  2. Who am I ?
  3. The topics we will be covering in today’s session
  4. What is an algorithm ?
  5. Now according to wikipedia an Algorithm is a set of instructions that defines not just what needs to be done but how to do it. Let me explain with the help of a flow chart and a cake
  6. 1.Explain data structure 2.Difference between tuple and list
  7. Okay so you won’t generally have such amazing use cases to help you, let me give you a real life example. If i tell you to make a grocery list, there are multiple ways people can do this 1.Alphabetically 2.Priority 3.Random , There can be various ways to organise your data.
  8. Now how is data stored in memory ?, So, Back in early days when programming was still being developed, guys were thinking how can we make a machine understand natural language as most languages are complex, So as rick sanchez said everything is Uncertainty is inherently unsustainable .Eventually, everything either is or isn't. So these guys went with true or false, 0 or 1. Consider the example of a switch
  9. Okay so let me explain you a bit, a nibble and a byte.
  10. Ram as a box, with division into small equal cells.When ever you store data in the computer it gets converted to machine language or 0 and 1, Lets take an exaple of int a =2, so binary value of 2 is 0000 0010, so if each block stores a nibble then we will require two cells to store this value.
  11. Imagine this shelf as a box and each compartment as a cell, each cell can hold four bits or nibble.
  12. Kernel space is occupied by OS, Like Windows or ubuntu, that space is occupied to provide basic functionality of the OS
  13. What is linear data Structure ? what is array ? Array always index always starts at 0
  14. I could have gone with a better implementation but i was hungry so, any linear storage implementation can be considered as an array
  15. Now how can you plot elements in an array ?, let us take example of int a[1,2,3,4,5,6,7,7,7] .
  16. Linear Dynamic Data Structures A Line of people trying to get something, the size is variable you can’t predict the size of the data.
  17. What is Stack ? An example of plates The actual representation of Stack
  18. What is queue ? An example of line The actual representation of Queue
  19. What is Linked list ? The use of pointers in linked list An example of linked list
  20. Actual memory representation difference between array and linked list, Use value of 65.
  21. What is Non- Linear data structure ? basically connected to more than one elements to reflect a specail relationship among them
  22. What is a tree ? What is subtree ? What is a root node ?
  23. What is Root Node ? What is Parent Node, child Node ? What are siblings, leaf Node also Sub tree ?
  24. A directory System in your Computer System.
  25. What is Graph ? Vertices and edges ? An example of a graph ?
  26. Now the Structure of a Graph ?
  27. An example will be Facebook friend suggestion algorithm, let’s call the center lady linda her friend karen and the guy as kyle. Google maps as it has to take a lot of relations into considerations for it to form a path from Point A to E.
  28. Now The question why do we need data structure and algorithm ? If you think in small scale optimizing a process in your code by few seconds won’t affect you that much but try considering a large code with a lot of processes, even if we can optimize 10 seconds in 100 process, 10 * 100 =1000 seconds saved in total, this was still a small example
  29. Any Questions ?
  30. Useful Links and ppt will be provided to you, for any further questions reach me out on the following plat forms