GithubHelp home page GithubHelp logo

barannmeisterr / optimal-pathfinding-in-a-coastal-island-network-with-state-dependent-ports- Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 14 KB

This project aims to solve the problem of finding the lexicographically smallest path that takes the minimum amount of time to travel between two islands in a coastal city.

License: MIT License

Java 100.00%
bfs dfs java oop optimization-algorithms pathfinding queue singly-linked-list stack undirected-graph

optimal-pathfinding-in-a-coastal-island-network-with-state-dependent-ports-'s Introduction

Optimal Pathfinding in a Coastal Island Network with State-Dependent Ports

This project aims to solve the problem of finding the lexicographically smallest path that takes the minimum amount of time to travel between two islands in a coastal city. The city consists of N islands connected by M undirected boat routes. Each island has a port that alternates between two states: loading and running.

Loading State: Passengers board the boats. Running State: Boats depart to the next island. All ports switch states simultaneously every T minutes, starting in the running state. The travel time between any two connected islands is a constant C minutes.

Given the initial configuration of the islands, connections, and the specified starting and ending islands, the objective is to determine the optimal path in terms of both time efficiency and lexicographical order.

Author

  • Arda Baran

Features

  • Parsing the input to extract the number of islands, connections, state-switch interval, and travel time.
  • Modeling the network of islands and their connections.
  • Implementing an algorithm to find the lexicographically smallest path that minimizes travel time,considering the alternating port states.
  • Careful attention to the timing of port state changes and the synchronization of travel plans to ensure the minimal and optimal path is found.

Technologies And Data Structures Used

  • Java
  • Undirected Graph
  • Array
  • Two Dimensional Array For Adjacency Matrix
  • Stack Array Implementation
  • Queue Array Implementation
  • BFS Algorithm
  • DFS Algorithm
  • Object Oriented Programming

File Structure

  • src/: Contains the Java source code

optimal-pathfinding-in-a-coastal-island-network-with-state-dependent-ports-'s People

Contributors

barannmeisterr 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.