Find Jobs
Hire Freelancers

Write a Python program that accepts stacks of balls

₹1500-12500 INR

Closed
Posted over 2 years ago

₹1500-12500 INR

Paid on delivery
Write a Python program that accepts stacks of balls as input, conducts a Uniform-Cost Graph Search, and displays a solution as shown in the following example. The program should output “No solution” when a given puzzle cannot be solved. Ball Sort Puzzle: We have 16 balls. Each ball is labeled by either A, B, C, or D. We also have 6 stacks. Each stack can contain 4 balls. The 16 balls are randomly placed in 4 stacks. Two stacks are left empty. The goal of this puzzle is to sort the balls by label, so that 4 non-empty stacks contain 4 balls of the same label. There are two restrictions: 1. Only the top ball of each stack can be moved, and 2. A ball can only be placed on top of another ball of the same label or in an empty stack. The following figure shows an example of the ball sort puzzle with an initial state and a possible goal state. Note that given an initial state, there may be multiple goal states. Here are additional information 1) Your program must accept four lines of input using Python input() function. The first line is the top of the four stacks, the second line is the second element of the four stacks, etc. For example, the following input shows an initial state that is also a goal state. A B C D A B C D A B C D A B C D 2) Your program does not need to validate the input values. You can assume that the input values contain 4 As, 4 Bs, 4 Cs, and 4 Ds arranged in random order placed is the first four stacks.
Project ID: 31542093

About the project

5 proposals
Remote project
Active 2 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
5 freelancers are bidding on average ₹5,900 INR for this job
User Avatar
Hi there yes I am python expert and | am sure I can do this one ASAP Kindly send me a message we'll discuss further Looking forward to hear you Thank you.
₹3,500 INR in 1 day
5.0 (13 reviews)
3.2
3.2
User Avatar
Hi, I have extensive experience working with Python and Machine Learning. I can do task within budget and timeline. Please ping to discuss further.
₹8,000 INR in 1 day
0.0 (1 review)
1.7
1.7
User Avatar
I would like to apply for this job. I have a firm grip on the concepts of Python, and I have 2+ years of experience in this programming language. I have worked on several projects. I assure you that you will be satisfied with my work. You can trust me. I would be very grateful if you accept me for this role, and we can have a further discussion about the project. Looking forward to hearing from you. Thanks
₹1,500 INR in 2 days
0.0 (0 reviews)
0.0
0.0
User Avatar
Hi, It is easy,I can do on time.I work online, where you can track progress of your project.I have 6 years of experience in development(websites,web applications,mobile apps, desktop applications,UI/UX), using PHP, WordPress, Java, Python, JavaScript, ReactJs, Bootstrap, I can start now, please come to chat, to discuss more.
₹12,500 INR in 2 days
0.0 (0 reviews)
0.0
0.0

About the client

Flag of INDIA
New Delhi, India
0.0
0
Member since Sep 18, 2021

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.