SlideShare a Scribd company logo
Hashing and Graphs
• Presented by: [Your Name]
• Date: [Presentation Date]
Contents
• 1. Hashing
• - Introduction
• - Hashing Key
• - Types of Hashing Key
• - Applications
• 2. Graph
• - Introduction
• - Terminology
• - Representation
Hashing - Introduction
• • Hashing maps data of arbitrary size to fixed-
size values.
• • Used for efficient storage and retrieval.
• • Hash function converts input into a hash
value (index).
• • Common in databases, caches, and data
structures.
Hashing Key
• • Key is the input to the hash function.
• • Hash function maps the key to an index in a
table.
• • Good keys minimize collisions.
Types of Hashing Key
• 1. Simple Modular Hashing: index = key %
table_size
• 2. Multiplicative Hashing: index =
floor(table_size * (key * A % 1))
• 3. Folding Method: Break key and combine
parts
• 4. Mid-Square Method: Square key and take
middle digits
• 5. Universal Hashing: Random hash functions
to avoid worst cases
Applications of Hashing
• • Hash Tables
• • Symbol Tables in compilers
• • Caching (e.g., DNS Cache)
• • Cryptography (SHA, MD5)
• • Database Indexing
Graph - Introduction
• • Graph = Set of nodes (vertices) + edges
• • Directed or Undirected
• • Weighted or Unweighted
Graph Terminology
• • Vertex (Node): Graph unit
• • Edge: Connects two nodes
• • Degree: Number of edges per node
• • Path: Sequence of edges
• • Cycle: Path that starts and ends at same
node
Graph Representation
• 1. Adjacency Matrix:
• - matrix[i][j] = 1 if edge exists from i to j
• - Space: O(V^2)
• 2. Adjacency List:
• - List of connected nodes
• - Space: O(V + E)
Graph Traversals
• 1. Breadth-First Search (BFS):
• - Uses Queue
• - Explores neighbors first
• 2. Depth-First Search (DFS):
• - Uses Stack/Recursion
• - Explores deeply before backtracking
Applications of Graph
• • Social Networks
• • GPS/Google Maps
• • Network Routing
• • Dependency Analysis
• • Scheduling
Thank You
• Questions & Answers

More Related Content

PPTX
Hash table
PPTX
Graph Databases & OrientDB
PPTX
hashing in data structures and its applications
PDF
Multi-Label Graph Analysis and Computations Using GraphX with Qiang Zhu and Q...
PDF
UNit4d.pdf
PDF
Hadoop Overview & Architecture
 
PDF
Essentials of R
Hash table
Graph Databases & OrientDB
hashing in data structures and its applications
Multi-Label Graph Analysis and Computations Using GraphX with Qiang Zhu and Q...
UNit4d.pdf
Hadoop Overview & Architecture
 
Essentials of R

Similar to Hashing_and_Graphs_Presentation_with_Background.pptx (20)

PDF
Graph Algorithms - Map-Reduce Graph Processing
PPTX
Multi-label graph analysis and computations using GraphX
PDF
KNOWAGE CUSTOM CHART WIDGET: a technical guide
PPTX
Hive @ Bucharest Java User Group
PDF
DataBaseManagementSystems-BTECH--UNIT-5.pdf
PPTX
04 standard class library c#
PPTX
Hashing in data structure is presented in these slides
PDF
Editors l21 l24
PPT
Efficient Query Processing in Geographic Web Search Engines
PDF
managing big data
PDF
Hadoop Overview kdd2011
PPTX
Everything About Graphs in Data Structures.pptx
PPTX
Hashing And Hashing Tables
PPTX
Data Structures-Topic-Hashing, Collision
PPTX
Graph Databases
PDF
Presentation shexer
PPTX
Graph Databases in the Microsoft Ecosystem
PDF
hashtableeeeeeeeeeeeeeeeeeeeeeeeeeee.pdf
PPTX
Large Scale Graph Analytics with JanusGraph
PPTX
Large Scale Graph Analytics with JanusGraph
Graph Algorithms - Map-Reduce Graph Processing
Multi-label graph analysis and computations using GraphX
KNOWAGE CUSTOM CHART WIDGET: a technical guide
Hive @ Bucharest Java User Group
DataBaseManagementSystems-BTECH--UNIT-5.pdf
04 standard class library c#
Hashing in data structure is presented in these slides
Editors l21 l24
Efficient Query Processing in Geographic Web Search Engines
managing big data
Hadoop Overview kdd2011
Everything About Graphs in Data Structures.pptx
Hashing And Hashing Tables
Data Structures-Topic-Hashing, Collision
Graph Databases
Presentation shexer
Graph Databases in the Microsoft Ecosystem
hashtableeeeeeeeeeeeeeeeeeeeeeeeeeee.pdf
Large Scale Graph Analytics with JanusGraph
Large Scale Graph Analytics with JanusGraph
Ad

Recently uploaded (20)

PPTX
Final Presentation General Medicine 03-08-2024.pptx
PPTX
Pharma ospi slides which help in ospi learning
PDF
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
PPTX
Tissue processing ( HISTOPATHOLOGICAL TECHNIQUE
PDF
Anesthesia in Laparoscopic Surgery in India
PDF
OBE - B.A.(HON'S) IN INTERIOR ARCHITECTURE -Ar.MOHIUDDIN.pdf
PDF
2.FourierTransform-ShortQuestionswithAnswers.pdf
PDF
O7-L3 Supply Chain Operations - ICLT Program
PDF
FourierSeries-QuestionsWithAnswers(Part-A).pdf
PPTX
Microbial diseases, their pathogenesis and prophylaxis
PPTX
Lesson notes of climatology university.
PDF
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
PDF
VCE English Exam - Section C Student Revision Booklet
PPTX
Presentation on HIE in infants and its manifestations
PDF
Computing-Curriculum for Schools in Ghana
PPTX
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
PDF
Abdominal Access Techniques with Prof. Dr. R K Mishra
PPTX
master seminar digital applications in india
PDF
A systematic review of self-coping strategies used by university students to ...
PDF
RMMM.pdf make it easy to upload and study
Final Presentation General Medicine 03-08-2024.pptx
Pharma ospi slides which help in ospi learning
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
Tissue processing ( HISTOPATHOLOGICAL TECHNIQUE
Anesthesia in Laparoscopic Surgery in India
OBE - B.A.(HON'S) IN INTERIOR ARCHITECTURE -Ar.MOHIUDDIN.pdf
2.FourierTransform-ShortQuestionswithAnswers.pdf
O7-L3 Supply Chain Operations - ICLT Program
FourierSeries-QuestionsWithAnswers(Part-A).pdf
Microbial diseases, their pathogenesis and prophylaxis
Lesson notes of climatology university.
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
VCE English Exam - Section C Student Revision Booklet
Presentation on HIE in infants and its manifestations
Computing-Curriculum for Schools in Ghana
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
Abdominal Access Techniques with Prof. Dr. R K Mishra
master seminar digital applications in india
A systematic review of self-coping strategies used by university students to ...
RMMM.pdf make it easy to upload and study
Ad

Hashing_and_Graphs_Presentation_with_Background.pptx

  • 1. Hashing and Graphs • Presented by: [Your Name] • Date: [Presentation Date]
  • 2. Contents • 1. Hashing • - Introduction • - Hashing Key • - Types of Hashing Key • - Applications • 2. Graph • - Introduction • - Terminology • - Representation
  • 3. Hashing - Introduction • • Hashing maps data of arbitrary size to fixed- size values. • • Used for efficient storage and retrieval. • • Hash function converts input into a hash value (index). • • Common in databases, caches, and data structures.
  • 4. Hashing Key • • Key is the input to the hash function. • • Hash function maps the key to an index in a table. • • Good keys minimize collisions.
  • 5. Types of Hashing Key • 1. Simple Modular Hashing: index = key % table_size • 2. Multiplicative Hashing: index = floor(table_size * (key * A % 1)) • 3. Folding Method: Break key and combine parts • 4. Mid-Square Method: Square key and take middle digits • 5. Universal Hashing: Random hash functions to avoid worst cases
  • 6. Applications of Hashing • • Hash Tables • • Symbol Tables in compilers • • Caching (e.g., DNS Cache) • • Cryptography (SHA, MD5) • • Database Indexing
  • 7. Graph - Introduction • • Graph = Set of nodes (vertices) + edges • • Directed or Undirected • • Weighted or Unweighted
  • 8. Graph Terminology • • Vertex (Node): Graph unit • • Edge: Connects two nodes • • Degree: Number of edges per node • • Path: Sequence of edges • • Cycle: Path that starts and ends at same node
  • 9. Graph Representation • 1. Adjacency Matrix: • - matrix[i][j] = 1 if edge exists from i to j • - Space: O(V^2) • 2. Adjacency List: • - List of connected nodes • - Space: O(V + E)
  • 10. Graph Traversals • 1. Breadth-First Search (BFS): • - Uses Queue • - Explores neighbors first • 2. Depth-First Search (DFS): • - Uses Stack/Recursion • - Explores deeply before backtracking
  • 11. Applications of Graph • • Social Networks • • GPS/Google Maps • • Network Routing • • Dependency Analysis • • Scheduling