Algorithm Designa67_q4a_strange_house

Strange House

9c4201da-18b6-46db-971e-ddd9007bf8ca.cppC++
1// Loading code...

Selected Submission

70 / 100
0.002s
1860 KB
BFS/DFSGreedy
Time Comp.
O(b^d) where b is the branching factor and d is the depth of the search.
Space Comp.
O(b^d) due to the priority queue and memoization.
Readability
5/10

"The code implements a search algorithm, likely A* search, to find a sequence of swaps that transforms an initial board configuration to a goal state. It uses a priority queue to explore promising states based on a heuristic function. The core logic revolves around state representation, neighbor generation (swaps), and heuristic evaluation."

History

AttemptPoints Time
Try #72704/26/2025
Try #71804/26/2025
Try #70904/26/2025
Try #69904/26/2025
Try #68704/26/2025
Try #67704/26/2025
Try #66904/23/2025
Try #65704/23/2025
Try #64804/23/2025
Try #63604/23/2025
Try #62904/23/2025
Try #611004/23/2025
Try #60604/23/2025
Try #591004/23/2025
Try #581004/23/2025
Try #571004/23/2025
Try #561004/23/2025
Try #551004/23/2025
Try #54804/23/2025
Try #53704/23/2025
Try #52704/23/2025
Try #51504/23/2025
Try #50704/23/2025
Try #49704/23/2025
Try #48404/23/2025
Try #47404/23/2025
Try #46404/23/2025
Try #45404/23/2025
Try #44304/23/2025
Try #43304/23/2025
Try #42304/23/2025
Try #41304/23/2025
Try #40404/23/2025
Try #39404/23/2025
Try #38504/23/2025
Try #37504/23/2025
Try #36304/23/2025
Try #35404/23/2025
Try #34404/23/2025
Try #3304/23/2025
Try #32404/23/2025
Try #31504/23/2025
Try #30404/23/2025
Try #29304/23/2025
Try #28404/23/2025
Try #27504/23/2025
Try #26504/23/2025
Try #25304/23/2025
Try #24304/23/2025
Try #23504/23/2025
Try #22504/23/2025
Try #21304/23/2025
Try #20504/23/2025
Try #19304/23/2025
Try #18404/23/2025
Try #17404/23/2025
Try #16304/23/2025
Try #1504/23/2025
Try #1404/23/2025
Try #13404/23/2025
Try #12504/23/2025
Try #11404/23/2025
Try #10304/23/2025
Try #9304/23/2025
Try #804/23/2025
Try #704/23/2025
Try #604/23/2025
Try #504/23/2025
Try #404/23/2025
Try #304/23/2025
Try #204/23/2025
Try #104/23/2025