From the course: Python Data Structures and Algorithms
Unlock the full course today
Join today to access over 24,800 courses taught by industry experts.
Use the Grid Tracer app - Python Tutorial
From the course: Python Data Structures and Algorithms
Use the Grid Tracer app
- [Instructor] So I'm just going to quickly talk you through that grid tracer app, in case you want to use it yourself. So you'll find it in the GUI Code under grid tracer, and if you just click on index.html then if you hover over here in PyCharm, you'll get the option to open it using whatever browser you like. But just before we do that, let's just look at the other files. We got script, that's the js, and we got some styling as well, you don't need to touch that really. Script, the only time you might want to touch that is a couple of things, one is you might want to change the size of the grid. So it's always going to be square, the way I set it up, but you might want more than three cells by three. So let's change that to four for example. And then I've just got some different options down here for display. So later on in the course, there's going to be a situation where I want to start my grid from K rather than A, and there's a reason for that I'll go into then. But if you…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
-
(Locked)
Understand the depth-first search algorithm3m 28s
-
(Locked)
Visualize depth-first search on a grid5m 21s
-
(Locked)
Use the Grid Tracer app2m 35s
-
(Locked)
Code a depth-first search in Python12m 10s
-
(Locked)
Challenge: Trace the path of a depth-first search44s
-
(Locked)
Solution: Trace the path of a depth-first search34s
-
(Locked)
-
-
-
-
-