Terminé

Artificial intelligence with 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:

1) C, number of test cases

2) For each test case:

a. K, number of people

b. 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:

1) Sequence of trips taken by the group along with direction of each trip for each strategy (solution)

2) Total time required to have all K people crossing using each strategy (solution cost).

3) Total number of generated nodes (Search time) for each strategy

4) Maximum number of nodes concurrently stored in the system (Space requirement) for each strategy.

2 What to submit

A report containing problem description, problem formulation and experimental results (minimum of 5 samples).

3 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

Compétences : Java, AI (Artificial Intelligence) HW/SW, Intelligence Artificielle

en voir plus : source code artificial intelligence game snake, artificial intelligence code reverse engineering, projects java artificial intelligence, artificial intelligence connect code, java code longest common sequence, code java hamilton cycle problem, j2me artificial intelligence code, java code containerloading problem, artificial intelligence checkers java, artificial intelligence constraint satisfaction problem, artificial intelligence resolution java, practical artificial intelligence programming with java source code, how to program artificial intelligence in java, artificial intelligence in java tutorial, artificial intelligence projects in java with source code, map coloring problem in artificial intelligence code, hands-on artificial intelligence with java for beginners pdf, artificial intelligence code project, 8 puzzle problem in artificial intelligence code in python, human compatible: artificial intelligence and the problem of control pdf

Concernant l'employeur :
( 0 commentaires ) Riyadh, Saudi Arabia

Nº du projet : #29410591

Décerné à:

codeFrz

I’m Java full stack developer. I can take up this task and give you a quality code at the earliest for you.

%selectedBids___i_sum_sub_4% %project_currencyDetails_sign_sub_5% USD en 1 jour
(3 Commentaires)
3.3

4 freelances font une offre moyenne de 24 $ pour ce travail

devvitaliy

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 Plus

%bids___i_sum_sub_32% %project_currencyDetails_sign_sub_33% USD en 1 jour
(36 Commentaires)
5.0
baltickriscoder

----------------------------------------------------------------------- Dear Client, Nice to meet you. I have read your description and I am so interested in your project. I am 5+yrs experience in Java Eclipse, Intelli Plus

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% USD en 7 jours
(19 Commentaires)
4.6
Wageita

I will handle your java AI problem. I am a telecommunications engineer with over 3 years of experience in technical writing. I handle report, thesis and dissertation writing in the broader telecommunications niche and Plus

%bids___i_sum_sub_32% %project_currencyDetails_sign_sub_33% USD en 1 jour
(0 Commentaires)
0.0