understanding-search / maze-dataset

maze datasets for investigating OOD behavior of ML systems
16 stars 3 forks source link

fix prim's algorithm implementation #12

Open mivanit opened 1 year ago

mivanit commented 1 year ago

currently, gen_prim simply passes randomized_stack=True to gen_dfs. Prim's algorithm requires randomly selecting from the neighboring cells at random, but because a cell can have more than one neighbor, selecting from the stack at random causes a bias (at least that's what I think is happening). In any cases, the generated mazes look weird and have long hallways where they shouldn't.