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, applications (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)

DOCX
573137875-Attendance-Management-System-original
PPTX
Infosys Presentation by1.Riyan Bagwan 2.Samadhan Naiknavare 3.Gaurav Shinde 4...
PDF
Unit I ESSENTIAL OF DIGITAL MARKETING.pdf
PDF
PPT on Performance Review to get promotions
PDF
Embodied AI: Ushering in the Next Era of Intelligent Systems
PDF
Automation-in-Manufacturing-Chapter-Introduction.pdf
PPTX
CARTOGRAPHY AND GEOINFORMATION VISUALIZATION chapter1 NPTE (2).pptx
PPTX
Artificial Intelligence
PPTX
bas. eng. economics group 4 presentation 1.pptx
PDF
Mohammad Mahdi Farshadian CV - Prospective PhD Student 2026
PDF
Evaluating the Democratization of the Turkish Armed Forces from a Normative P...
PPTX
Safety Seminar civil to be ensured for safe working.
PPTX
UNIT-1 - COAL BASED THERMAL POWER PLANTS
PDF
BMEC211 - INTRODUCTION TO MECHATRONICS-1.pdf
PDF
TFEC-4-2020-Design-Guide-for-Timber-Roof-Trusses.pdf
PDF
PRIZ Academy - 9 Windows Thinking Where to Invest Today to Win Tomorrow.pdf
PPT
Mechanical Engineering MATERIALS Selection
PPTX
MET 305 2019 SCHEME MODULE 2 COMPLETE.pptx
PPTX
CH1 Production IntroductoryConcepts.pptx
PPTX
OOP with Java - Java Introduction (Basics)
573137875-Attendance-Management-System-original
Infosys Presentation by1.Riyan Bagwan 2.Samadhan Naiknavare 3.Gaurav Shinde 4...
Unit I ESSENTIAL OF DIGITAL MARKETING.pdf
PPT on Performance Review to get promotions
Embodied AI: Ushering in the Next Era of Intelligent Systems
Automation-in-Manufacturing-Chapter-Introduction.pdf
CARTOGRAPHY AND GEOINFORMATION VISUALIZATION chapter1 NPTE (2).pptx
Artificial Intelligence
bas. eng. economics group 4 presentation 1.pptx
Mohammad Mahdi Farshadian CV - Prospective PhD Student 2026
Evaluating the Democratization of the Turkish Armed Forces from a Normative P...
Safety Seminar civil to be ensured for safe working.
UNIT-1 - COAL BASED THERMAL POWER PLANTS
BMEC211 - INTRODUCTION TO MECHATRONICS-1.pdf
TFEC-4-2020-Design-Guide-for-Timber-Roof-Trusses.pdf
PRIZ Academy - 9 Windows Thinking Where to Invest Today to Win Tomorrow.pdf
Mechanical Engineering MATERIALS Selection
MET 305 2019 SCHEME MODULE 2 COMPLETE.pptx
CH1 Production IntroductoryConcepts.pptx
OOP with Java - Java Introduction (Basics)
Ad

Hashing_and_Graphs_Presentation, applications

  • 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