Graph is used to represent the flow of computation or elements that share connections. Examples : Google maps, Social Network , Resource Allocation Graph in operating system
Graph-related questions are very common during Interview of product companies like Google, Facebook, Uber etc. One thing all these companies have in common is their heavy reliance on the graph data structure.
Understanding the idea of Graph Representation is also an important part in solving graph problems. There are two types of representation :
| # | Title | Difficulty | Companies |
|---|---|---|---|
1. | Graph : Structures, Properties and Types | ||
2. | Graph Representation : Adjacency Matrix | ||
3. | Graph Representation : Adjacency List | ||
4. | Depth first search(DFS) and its properties | ||
5. | Breadth first search(BFS) and its properties | ||
6. | Application of DFS and BFS | ||
7. | Topological Sorting | ||
8. | Shortest Path - Dijkstra Algorithms | ||
9. | Minimum Spanning Tree | ||
10. | Example 1 : Is Graph Bipartite? | MEDIUM | Google |
11. | Example 2 : Number of Islands | MEDIUM | Microsoft Amazon LinkedIn |