solve puzzle use Artificial Intelligence code java
Bütçe $10-30 USD
- Freelancer
- İşler
- Java
- solve puzzle use Artificial Intelligence code java
Problem description:
A group of K persons (K > 1) want to cross a bridge from East to West during the
night. The persons that are crossing the bridge must use a flashlight. There is only
one flashlight. The bridge is very narrow and allows two persons to cross
it at the same time at most. Two persons go from east to west and one person returns with
the flashlight from west to east. If the two persons are crossing the bridge together,
they are crossing it at the speed of the slower one. These people are trying to cross
the bridge as quickly as possible.
Use 3 search strategies (UCS, IDS and A*) to find the best order for these persons to cross the bridge.
Input file:
C, number of test cases
For each test case:
K, number of people
A list of K numbers, showing the time required by each person to pass to the other side.
Output:
Your program should printout the following information for each search strategy:
Sequence of trips taken by the group along with direction of each trip for each strategy (solution)
Total time required to have all K people crossing using each strategy (solution cost).
Total number of generated nodes (Search time) for each strategy
Maximum number of nodes concurrently stored in the system (Space requirement) for each strategy.
Example:
Input:
1
3
3, 2, 5
Description:
There is one test case, C=1
There are three people, K=3.
The first person (a) needs 3 (time units) to pass to from one side to the other
The second person (b) needs 2 time units
The third person (c) needs 5 time units
Output:
Test case #1:
UCS
Solution
1. (a,b) move to the west side
2. (b) returns with the flashlight
3. (b,c) move to the west side
Solution Cost
10
Search Cost
14
Space Requirement
9
**code in java***
Bu iş için 3 freelancer ortalamada $27 teklif veriyor
Hello JAVA EXPERT I have read your description and I am so interested in your project. You can see well experienced and skillful Java +15 years of experience in software development. Confident in your project and I can Daha Fazla
Hi I am Ahmed from Palestine living in Turkey, we are an integrated team working in several fields like building a Websites, APPs, creating Videos and Designs. I read your project ''solve puzzle use Artificial Intellig Daha Fazla
Hello, I’m Java Software Engineer. I can help you to solve you problem. I have a large experience in computer science