Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
shiift
· 12y ago · 0 comments
Is there a reason why it will continue searching "down" once it hits the right edge (and "left" if it hits the top edge)? I'm just curious.
Comments
[–]
tyotypic
12y ago
Imagine you're in a maze. Do you know where you are in relation to the maze's boundaries at any point?
[–]
shiift
OP
12y ago
I guess that makes sense. I was thinking of it as a maze that someone would using a pencil on paper, but if it were a real maze with high walls it would make sense that you wouldn't necessarily know when you've reached a side.
[–]
spikels
12y ago
Exactly - this seems like an obvious and easy improvement to the algorithm.