Find Jobs
Hire Freelancers

Write a Python program that accepts stacks of balls

₹1500-12500 INR

Fermé
Publié il y a plus de 2 ans

₹1500-12500 INR

Payé lors de la livraison
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.
N° de projet : 31542093

Concernant le projet

5 propositions
Projet à distance
Actif à il y a 3 ans

Cherchez-vous à gagner de l'argent ?

Avantages de faire une offre sur Freelancer

Fixez votre budget et vos délais
Soyez payé pour votre travail
Surlignez votre proposition
Il est gratuit de s'inscrire et de faire des offres sur des travaux
5 freelances proposent en moyenne ₹5 900 INR pour ce travail
Avatar de l'utilisateur
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 en 1 jour
5,0 (13 commentaires)
3,2
3,2
Avatar de l'utilisateur
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 en 1 jour
0,0 (1 commentaire)
1,7
1,7
Avatar de l'utilisateur
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 en 2 jours
0,0 (0 commentaires)
0,0
0,0
Avatar de l'utilisateur
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 en 2 jours
0,0 (0 commentaires)
0,0
0,0

À propos du client

Drapeau de INDIA
New Delhi, India
0,0
0
Membre depuis sept. 18, 2021

Vérification du client

Merci ! Nous vous avons envoyé un lien par e-mail afin de réclamer votre crédit gratuit.
Une erreur a eu lieu lors de l'envoi de votre e-mail. Veuillez réessayer.
Utilisateurs enregistrés Total des travaux publiés
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Chargement de l'aperçu
Permission donnée pour la géolocalisation.
Votre session de connexion a expiré et vous avez été déconnecté. Veuillez vous connecter à nouveau.