Skip to content

dmitoiu/CM3038-Artificial-Intelligence-for-Problem-Solving

Repository files navigation

CM3038: Artificial Intelligence for Problem-Solving

The CM3038: Artificial Intelligence for Problem-Solving Project is a console application designed to solve the Bridge and Torch Problem using the A* Algorithm written in Java. It supports Static and Dynamic User Input.

Problem Definition

The bridge and torch problem (also known as The Midnight Train and Dangerous crossing) is a logic puzzle that deals with four people, a bridge and a torch. It is in the category of river crossing puzzles, where a number of objects must move across a river, with some constraints.

Story

Four people come to a river in the night. There is a narrow bridge, and it can only hold two people at a time. They have one torch and, because it's night, the torch has to be used when crossing the bridge. Person A can cross the bridge in 1 minute, B in 2 minutes, C in 5 minutes, and D in 8 minutes. When two people cross the bridge together, they must move at the slower person's pace. The question is, can they all get across the bridge if the torch lasts only 15 minutes?

CM3038 Artificial Intelligence for Problem Solving Report

Coursework Report

CM3038: Artificial Intelligence Project Compile-time Dependencies

Installation

The [CM3038: Artificial Intelligence for Problem-Solving installation guides] includes instructions for installing the project as part of a local application.

Running CM3038: Artificial Intelligence for Problem-Solving Project

Run-time options:

  • java --classpath "<path/to/lib/cm3038.jar>" <path/to/cm3038.Main> - Path to entry point file. If unspecified, the current working directory is used.

About

A Solution to the Bridge and Torch Problem using A* Searching Algorithm

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published