Skip to content

salma-elshafey/coast-guard

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CoastGuard

Coast guard search problem using Java

CoastGuard implements several seach algorithms to solve a problem using Java.

Problem Description: You are a member of the coast guard force in charge of a rescue boat that goes into the sea to rescue other sinking ships. When rescuing a ship, you need to rescue any living people on it and to retrieve its black box after there are no more passengers thereon to rescue. If a ship sinks completely, it becomes a wreck and you still have to retrieve the black box before it is damaged. Each ship loses one passenger every time step. Additionally, each black box incurs an additional damage point every time step once the ship becomes a wreck. One time step is counted every time an action is performed. You reach your goal when there are no living passengers who are not rescued, there are no undamaged boxes which have not been retrieved, and the rescue boat is not carrying any passengers. You would also like to rescue as many people as possible and retrieve as many black boxes as possible.

Search algorithms implemented:

  1. Breadth-first search.
  2. Depth-first search.
  3. Uniform-cost search.
  4. Iterative deepening depth-first search.
  5. Greedy search.
  6. A* search.

About

Coast guard search problem using Java

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages