No description
Find a file
2024-11-12 13:46:19 +01:00
solution1 multiple drones 2024-11-11 16:03:51 +01:00
solution2 ditched the multiple threads, because that wasn't valid 2024-11-12 13:46:19 +01:00
.gitignore een heel eind gekomen 2024-11-07 22:24:54 +01:00
README.md ditched the multiple threads, because that wasn't valid 2024-11-12 13:46:19 +01:00

find optimal optimal path for drones in a grid of assigned values

solution1

  • written in java
  • single drone solution
  • employs a floodfill algorithm
  • where possible paths are always sorted in descending order of value (so far) of the points in the path
  • and which uses backtracking to find alternative paths that may be of higher value
  • non-recursivity ensures no issues for large grids
  • the algorithm is embedded in a rest api
  • it also has a html canvas frontend that draws the path on the grid

running:

  • install jdk22, and apache maven
  • run mvn spring-boot:run
  • go to http://localhost:8080
  • in the console in the ui type fly [enter]
  • input values for the algorithm can be updated, eg T=2000 or x=10 etc.
  • use clear to refresh

solution2

  • written in rust
  • single and multiple drones
  • uses basically the same method, but after a definitive flight path is calculated, the grid is updated for the next drone
  • see tests and main for validity of the algorithm