Algorithm Designa57_f4_journey

Journey

eb058312-7ace-4ce5-9062-ec9a1bd3ed20.cppC++
1// Loading code...

Selected Submission

40 / 100
0.537s
1460 KB
BFS/DFSGreedy
Time Comp.
O(n!)
Space Comp.
O(n)
Readability
5/10

"The code implements a Depth-First Search (DFS) algorithm with a heuristic to find the maximum cost path visiting all stations exactly once, starting from station 0 and ending at station 'station-1'. The heuristic function attempts to estimate the remaining cost, and the code uses branch and bound to prune the search space."

History

AttemptPoints Time
Try #39404/22/2025
Try #381004/22/2025
Try #371004/22/2025
Try #3604/22/2025
Try #35704/22/2025
Try #34804/22/2025
Try #33804/22/2025
Try #32404/22/2025
Try #31104/22/2025
Try #301004/22/2025
Try #291004/19/2025
Try #281004/19/2025
Try #271004/19/2025
Try #2604/16/2025
Try #251004/16/2025
Try #241004/16/2025
Try #2304/16/2025
Try #2204/16/2025
Try #21604/16/2025
Try #20204/16/2025
Try #19804/16/2025
Try #18804/16/2025
Try #17804/16/2025
Try #1604/16/2025
Try #1504/16/2025
Try #14504/16/2025
Try #13504/16/2025
Try #12404/16/2025
Try #11504/16/2025
Try #10504/16/2025
Try #91004/16/2025
Try #8804/16/2025
Try #7504/16/2025
Try #604/16/2025
Try #5204/16/2025
Try #4304/16/2025
Try #3304/16/2025
Try #2304/16/2025
Try #1304/16/2025