Maze traversal is an awesome way of kind of illustrating the difference between depth first search and breath first search. Instead of just dumbly saying, what are the next things next to where i am right now? Let's instead say, looking at my next possibilities, which one do i think will get me closest to the goal? And so we can then put all those next nodes into the priority cue, ordered by how long is that line. How long that line is is what the priority is. And we just take the ones out that have the shortest lines next. That gets us to an algorithm that will actually get us very efficiently from the start to the goal.

Get the Snipd
podcast app

Unlock the knowledge in podcasts with the podcast player of the future.
App store bannerPlay store banner

AI-powered
podcast player

Listen to all your favourite podcasts with AI-powered features

Discover
highlights

Listen to the best highlights from the podcasts you love and dive into the full episode

Save any
moment

Hear something you like? Tap your headphones to save it with AI-generated key takeaways

Share
& Export

Send highlights to Twitter, WhatsApp or export them to Notion, Readwise & more

AI-powered
podcast player

Listen to all your favourite podcasts with AI-powered features

Discover
highlights

Listen to the best highlights from the podcasts you love and dive into the full episode