Find Jobs
Hire Freelancers

C++ simple task - tree search

$10-30 USD

Completed
Posted over 10 years ago

$10-30 USD

Paid on delivery
I need a programmer to write a program to solve the following bridge and torch problem: Four people come to a river in the night. There is a narrow bridge, but 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 4 minutes, and D in 5 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 in 12 minutes or less? Answer: Elapsed Time Starting Side Action Ending Side 0 minutes A B C D 2 minutes C D A and B cross forward, taking 2 minutes A B 3 minutes A C D A returns, taking 1 minute B 8 minutes A C and D cross forward, taking 5 minutes B C D 10 minutes A B B returns, taking 2 minutes C D 12 minutes A and B cross forward, taking 2 minutes A B C D The program should represent the different paths in a search tree. Its goal is to count the number of situations (leafs) until it gets the right answer (and print to screen) in every one of these searches: a. DFS search b. BFS search c. Best First search + Heuristic that attempts to predict how close the end of a path is to a solution and go that way. Please deliver 3 *.cpp files + 3 *.EXE files with the answer (one file for each search). BFS - [login to view URL] DFS - [login to view URL] Best First - [login to view URL] VERY IMPORTANT – it should be done until Nov. 12th at midnight!! Don’t take this project if you are unable to meet the time requirements!! If you have any question, don’t hesitate to ask me.
Project ID: 5106835

About the project

12 proposals
Remote project
Active 10 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
Awarded to:
User Avatar
Hello benporter, I have started the program for you. I have implemented bread first for now, see the following screenshot: [login to view URL] Implementing depth first and heuristic search will take only a few extra lines of code, which I will be able to do directly after acceptance of my bid. Having studied AI, I have a lot of experience with search algorithms, and have taught practicals on this subject. My code is clean, using standard C++ features, and well documented and formatted. Looking forward to hear from you soon. Sander
$30 USD in 1 day
5.0 (5 reviews)
4.9
4.9
12 freelancers are bidding on average $38 USD for this job
User Avatar
I am very proficient in c, c++. I have 15 years c++ developing experience now, and I have worked for 5 years. My work is online game developing, and mainly focus on server side, the lauguage is c++ under linux os. So, programming in c++ is never a problem. I used c++ to make many great projects, for example, I made the tools which can convert java files to c++ with the same meaning, ofcourse garbage collection included. I made our own mobile game using c++, I even can show you the demo of client. Trust me, please let expert help you.
$35 USD in 1 day
4.9 (142 reviews)
7.0
7.0
User Avatar
Hello there! I am proficient in C/C++ and I am interested in offering you a professional solution to this project. I only need to know if there are any specifications for the implementation of the trees and the heuristic function, or it is up to me to do whatever I believe is best. Thank you in advance and looking forward to working with you. Alex
$30 USD in 1 day
5.0 (21 reviews)
5.2
5.2
User Avatar
Hi Sir, I want to work for you. Please see my profile i have already worked on many C and C++ project. Please let me know to start immediately. thanks.
$50 USD in 3 days
4.6 (23 reviews)
4.6
4.6
User Avatar
Hi, I am well experienced in Intelligent Agent Systems including BFS, DFS,A* search algorithms. I can do this in best quality. Thank you.
$40 USD in 2 days
4.2 (13 reviews)
4.9
4.9
User Avatar
HI Sir. I have a BS degree in Computer sciences from a renowned university. i also have a market experience of 2 years working on C,C++. I have a good grip on Data Structures,Aritificial Inteligence and Algorithms. I can do your work efficiently. Please consider my bid. Thank you
$35 USD in 1 day
5.0 (14 reviews)
3.9
3.9
User Avatar
let expert do this https://www.freelancer.com/u/pivn.html https://www.freelancer.com/u/pivn.html https://www.freelancer.com/u/pivn.html
$55 USD in 3 days
5.0 (5 reviews)
2.3
2.3
User Avatar
Hello , I am a software engineer with 3+ yrs of experience . I am confident of completing it. Please open the chatbox so we can discuss. I am ready to start right now.
$40 USD in 1 day
0.0 (0 reviews)
0.0
0.0
User Avatar
Hi, I am IIT delhi graduate. I have 5 years of coding experience. I am very good in algorithms and data structures. I can do this assignment in C++ and provide you the solution in 1 day. Cheers.
$35 USD in 3 days
0.0 (0 reviews)
0.9
0.9
User Avatar
Hi, Thanks for such posting. I read your requirements. I can solve it. Please check my profile. Let me help you. Rgds Shafiq
$35 USD in 4 days
0.0 (0 reviews)
0.0
0.0
User Avatar
hello ..!!! I have done projects for my college in past and got success in it. i understand your project and will be doing with full effort. M sure that you will b fully satisfied with my work. If it will be possible then i can also include graphics in this program ..
$45 USD in 2 days
0.0 (0 reviews)
0.0
0.0
User Avatar
Hello. I already completed your project, three c++ files and three .exe files are ready for you. If you contact me, I will give you these files and the details. If you see my files and you have any opinion for my codes, I will just modify under your demand. I see you dont have a lot of time. dont waste our time. Please contact me. Thank you.
$25 USD in 0 day
0.0 (0 reviews)
0.0
0.0

About the client

Flag of ISRAEL
Auckland, Israel
5.0
2
Payment method verified
Member since May 22, 2013

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.