Find Jobs
Hire Freelancers

programming needed to be done

$10-50 USD

Zamknięte
Opublikowano około 8 lat temu

$10-50 USD

Płatne przy odbiorze
Three black mountain goats one direction on a narrow mountain ledge and encounter three white mountain goats going in the opposite direction. They stop with the space of a goat between the two lead animals. Mountain goats cannot (for the purposes of the puzzle) move backwards, but they are good jumpers. A mountain goat can either move forward into an empty space, jump over one mountain goat to an empty space, or jump over two mountain goats to an empty space. How can they all continue on their way? We can abstract this to the following: B B B _ W W W Where each B represents a black mountain goat, each W represents a white mountain goat, and _ represents a blank space. Each B may move right into an adjacent _, jump over an intervening B or W into an _, or jump over two intervening B or W into an _. Each W may similarly move left the same way. The goal is to get all of the Bs to the right of all of the Ws. Use the graph search program provided in class to build a state space solution to the problem. Is there a difference in the solution for a breadth-first versus depth-first traversal of the graph? What is the difference in the number of node generated and explored? Extend your representation to handle any number of black and white goats – they don’t have to be the same number. Is the problem solvable for all such combinations? ======================== I want to include a graph in this problem (define (towers-search initial-state goal-state merge-method) (printf "(towers-search '~a '~a '~a)~n" initial-state goal-state merge-method) (define (towers-value state cost) cost) (define (goal? state) (equal? state goal-state)) (define solution (graph-search towers-rules initial-state goal? #:merge-method merge-method)) (cond (solution (printf "Solution (~a states): ~n" (length solution)) (for ((state (in-list solution))) (printf "~s~n" state))) (else (printf "No solution found.~n"))) (printf "---~n~n")) attached [login to view URL] as an example
Identyfikator projektu: 9901236

Informację o projekcie

5 ofert
Zdalny projekt
Aktywny 8 lat temu

Szukasz sposobu na zarobienie pieniędzy?

Korzyści ze składania ofert na Freelancer.com

Ustal budżet i ramy czasowe
Otrzymuj wynagrodzenie za swoją pracę
Przedstaw swoją propozycję
Rejestracja i składanie ofert jest bezpłatne
5 freelancerzy składają oferty o średniej wysokości $45 USD dla tej pracy
Awatar Użytkownika
I am very proficient in c and c++. I have 16 years c++ developing experience now, and have worked for more than 6 years. My work is online game developing, and mainly focus on server side, using c++ under linux environment. I used c++ to make many great projects, for example, I made the tools which can convert java files into c++ scripts, of course garbage collection included, this job is very similiar to a compiler, and is very complex. I also made our own mobile game using c++, I can show you the demo of client, if you like. I am very proficient in java also. I have a very good review on Freelancer.com, I never miss a project once I accept the job, you can check my review. Trust me, please let expert help you.
$50 USD w 1 dzień
4,9 (84 opinii)
6,5
6,5
Awatar Użytkownika
-------------Nice job. I am math expert and high program developer. No problem. Best result in time-------
$100 USD w 1 dzień
4,7 (45 opinii)
5,7
5,7
Awatar Użytkownika
I can do this task for you.I can do this task for you.I can do this task for you.I can do this task for you.I can do this task for you.I can do this task for you.
$55 USD w 1 dzień
4,8 (19 opinii)
4,4
4,4
Awatar Użytkownika
I am ready to do this task for you for a very little time. I'll spend all my free time on it. Because l love codding.
$35 USD w 10 dni
0,0 (0 opinii)
0,0
0,0

O kliencie

Flaga OMAN
Mutrah, Oman
4,9
359
Zweryfikowana metoda płatności
Członek od lis 17, 2009

Weryfikacja Klienta

Dziękujemy! Przesłaliśmy Ci e-mailem link do odebrania darmowego bonusu.
Coś poszło nie tak podczas wysyłania wiadomości e-mail. Proszę spróbować ponownie.
Zarejestrowani Użytkownicy Całkowita Liczba Opublikowanych Projektów
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Wczytywanie podglądu
Udzielono pozwolenia na Geolokalizację.
Twoja sesja logowania wygasła i zostałeś wylogowany. Proszę, zalogować się ponownie.