GithubHelp home page GithubHelp logo

graph's Introduction

Graph

This repository consists of Graph problems which are implemented using Java.

Problems Covered:

  1. Adjacency matrix creation (Normal case)
  2. Adjacency matrix creation (Weight case with single edge between the nodes)
  3. Adjacency matrix creation (Weight case with multiple edge between the nodes)
  4. Adjacency List creation (normal case)
  5. Adjacency list creation (with weights)
  6. BFS traversal
  7. DFS traversal
  8. Cycle detection in undirected graph using BFS
  9. Cycle detection in undirected graph using DFS
  10. Check Bipartite graph using BFS
  11. Check Bipartite graph using DFS
  12. Cycle detection in directed graph using DFS
  13. Topological sort using DFS
  14. Topological sort using BFS (Kahn's Algorithm)
  15. Cycle detection in directed graph using BFS (Kahn's Algorithm)
  16. Number of islands (Leetcode-200 : https://leetcode.com/problems/number-of-islands/)
  17. Shortest path in undirected graph with unit weights
  18. Shortest path in weighted DAG(Directed Acyclic Graph)
  19. Dijkstra's Algorithm (Shortest path in undirected graph)
  20. Prim's algorithm (Brute force & Optimised approach) for MST
  21. Disjoint set data structure implementation (will use in Kruskal's algorithm)
  22. Kruskal's algorithm for MST
  23. Bridges (Cut edges) in graph
  24. Articulation point in a graph
  25. Kosaraju's Algorithm (for finding Strongly connected component)
  26. Bellman ford algorithm (works for -ve weight as well)

graph's People

Contributors

adv11 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.