Python Forum
How to solve pancake flip with Python
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to solve pancake flip with Python
#6
It is your best guess at how far you are from the solution? Is it how many flips you think might be required? Is it how many pancakes are wrong? There must be something in your assignment that says what heuristic means for this particular problem. My guess is it is the count of pancakes in the wrong position.

Now I really find it odd that you are not using the heuristic value since it it is part of the equations that helps you choose the best route to the solution.

I also find the A_Star_Node.__gt__() method very odd. This should make some kind of comparison and return a True or False value. Yours returns None an does some kind of list update operation. Not good coding in my opinion.
Reply


Messages In This Thread
How to solve pancake flip with Python - by longmen - May-09-2022, 03:23 PM
RE: How to solve pancake flip with Python - by deanhystad - May-09-2022, 05:16 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  How to solve this problem Python configuration? magomes 5 1,039 Mar-22-2024, 11:11 PM
Last Post: magomes
  Two Python problems to solve djzsp 1 647 Mar-17-2024, 01:18 AM
Last Post: deanhystad
Star Interesting Intro to python problem I can't solve. Honestworker 5 12,748 Mar-04-2021, 02:05 AM
Last Post: BashBedlam
  solve probability problem by python Dreammer 1 1,999 Dec-24-2020, 09:51 AM
Last Post: Larz60+
  Cross word puzzle solve using python constraint library aliyark145 1 3,440 Nov-29-2018, 10:53 AM
Last Post: Larz60+

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020