Wednesday, 23 March 2016

SLOG Week 10



Now that the exam is over I turn my attention to the project. I am on one hand invigorated to take on the challenge of implementing the Puzzle and puzzle tool superclasses but on the other hand am completely terrified. I still don't understand the SENSE in which depth first and breadth first searches are recursive and don't know the best way I should be thinking of their creation of different orders of the subsequent extensions in the Sudoku, MN, PegSolitaire, and WordLadder instances of puzzle class. I am not really comfortable with the drawing out of recursive calls but moreover don't really understand how one would arrive at a is_solved solution faster or slower than the other. I SEE how they iterate but feel overwhelmed by the context in which it will iterate in certain instances of the puzzle class. The implied reflexiveness of recursive superclasses necessitates a large amount of understanding about how the subclasses/instances of superclass works... there are so many references to __eq__, __str__ and other conditional helper functions that I can't keep track. For days i've been trying to draw out a flow chart like i did for the previous assignment for RideShare where I was able to show the passing of objects between classes by drawing a diagram.







I had origianlly drawn this for the RideShare program to better uderstand how the information all connected and I think it helped me quite a bit!

Alas I still dont know how I could draw this program... I am trying to write the __repr__ for depth and breadth right now, and while it helps visualize iteration it doesn't fully explain the way in which this will yield correct extensions faster than with the other given the puzzle instance in question.... arrgghh idk...

Onward and upward..?

J

No comments:

Post a Comment