Save this video free

COMP 3200 - Intro to Artificial Intelligence - Lecture 07 - Assignment 2

Dave Churchill · 1:32:01 · Watch on YouTube

Part of Memorial University of Newfoundland COMP 3200. See all 21 lectures and search them

These notes were made with YouTube Collector. Paste any YouTube link and get the same: a summary, chapters and a searchable transcript.

Overview

Dave Churchill introduces COMP 3200 Assignment 2, which replaces Assignment 1's simpler search algorithms with A* search over grid environments containing 1x1, 2x2, and 3x3 objects, four- or eight-directional actions, variable action costs, and selectable heuristics. The lecture explains collision-aware movement, connectivity precomputation with cardinal BFS, heuristic admissibility, A* data structures, tie-breaking, and a step-by-step JavaScript implementation and testing workflow, while explicitly excluding bidirectional search for COMP 3200.

Key takeaways

Chapters

0:00 Assignment 2 Scope, Deadlines, and Course Roadmap
2:00 Assignment 2 Interface and A* Search Demonstration
6:00 Four- versus Eight-Directional Movement and Object Sizes
9:00 Selectable Heuristics and Connected-State Visualization
12:00 Using Zero Heuristic to Debug A*
14:00 A* Node Data and Variable Action Costs
19:00 Why Breadth-First Search Is Not Optimal with Diagonals
22:00 Collision Rules for 1x1, 2x2, and 3x3 Objects
26:00 Diagonal Movement Cannot Jump Over Obstacles
30:00 Deriving Diagonal Legality from Cardinal Actions
33:00 A* Path Costs and Legal Route Geometry
36:00 Implementing the Four Assignment Heuristics
40:00 Connectivity and Connected Sectors
44:00 Precomputing Connectivity with Cardinal BFS
50:00 Multi-Size Sector Grids and Reusing Visited Data
58:00 Precomputed Sector and Legal-Action Optimizations
1:04:00 Closed Lists, Priority Queues, and A* Tie-Breaking
1:10:00 Recommended JavaScript Implementation Order
1:18:00 Testing Heuristics, Action Arrays, and Object Size
1:25:00 Optional Binary Heap Integration and Final Assignment Checklist

Keep these chapters and the full searchable transcript in your own library.

Transcript excerpt

0:01 So today, just before I get started with the lecture, I just wanted to go over the spreadsheet to have a little recap of where we are. So um you can sort of see how the course is working by now. Uh assignment one was given out on the 22nd and it's due uh this evening at 11:59. So make sure you submit that with uh plenty of time remaining. And uh assignment two is going to be given out today. And um what I did last time was I explained sort of a demo of the assignment and then I went through all the files and I did some sort of live coding etc in the class. Um but then what I found was I still had a bunch of questions um about the assignment and some programming

0:48 related things. So what I did was did was I recorded recorded and released that secondary like tutorial lecture. And so what I think I'm going to do going forward is just leave all of the live coding stuff out of the class. So I will explain um the whole assignment and that'll take probably 50 minutes or so depending on how fast or slow that I talk. But uh from now on with the assignments, I'll do that secondary live coding part at home where I have more time and then I'll just edit it on to the end of the lecture. So that way there'll be more help available to you. Yes, the lecture will be a little bit longer, but for those of you who want that little bit of extra context or help, that'll be there. So, rather than, you know, keep you here for like 15 minutes of really rushed um live coding where I might forget to say something,

This is the start of the transcript. Save this video free for the whole transcript, searchable and time-coded.

In this course

Related notes

Summary, takeaways, and chapters were generated by AI from the video's transcript and may contain errors. The video belongs to its creator, Dave Churchill.

Want the full transcript?

Save this video in YouTube Collector to get its complete searchable transcript, your own AI summaries, and a library that keeps every video you collect in one place.