Coder Social home page Coder Social logo

dijkstras-shortest-path's Introduction

Dijkstra's Shortest Path

Introduction

This project implements Dijkstra's shortest path algorithm in OCaml. It is a work in progress and aims to provide a simple and efficient implementation of this algorithm.

Why?

I wanted to introduce myself to basic graph theory concepts. Additionally, understanding Dijkstra's algorithm serves as a foundation for implementing more advanced algorithms like A*, which is an extension of Dijkstra's algorithm.

Features

  • Implementation of Dijkstra's algorithm.
  • Support for weighted graphs.
  • Utilizes OCaml for efficient and expressive programming.
  • Utilizes Nix Flakes as the package manager for dependency management.

Installation

To build and run the project, ensure you have Nix Flakes installed on your system. Then, follow these steps:

  1. Clone the repository:
    git clone https://github.com/hnrbs/dijkstras-shortest-path.git
  2. Navigate to the project directory:
    cd dijkstras-shortest-path
  3. Build the project using Nix Flakes:
    nix develop '.#'
  4. Run the project:
    dune exec src/main.exe

Usage

Once the project is built and running, you can use it to find the shortest path in a graph by providing the appropriate input.

Example usage:

TODO: write an example of how to use it. (I told you it's still a WIP)

Contributions

Contributions to this project are welcome. If you find any issues or have suggestions for improvements, please open an issue or submit a pull request.

License

This project is licensed under the MIT License.

dijkstras-shortest-path's People

Contributors

nothenrin avatar

Watchers

 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.