Lab 10

Graphs

Goals

  • Implement a graph data structure to better understand the Graph ADT
  • Design our own implementation of an ADT
  • Continue practicing using unit tests to help us debug our code
  • Explore the application of Graphs for a real-world problem finding connections between actors based on the TV shows and movies they have acted in

Welcome to your tenth and final CSCI 151 lab! The lab can be started by following this link to create a copy of the assignment for you on GitHub: https://classroom.github.com/a/J3DR9Rv0

In this week’s lab, we will be exploring graphs by (1) designing and creating our own implementation of the Graph ADT (as collections of vertices and edges), and (2) applying graphs in a real-world application finding connections between actors based on their IMDB histories. We will also continue practicing using unit tests for testing our code piecewise as we develop it (rather than waiting until we’ve written a lot of intertwined code that is difficult to debug).

We will once again begin with a Warmup designed to help reinforce some of the key concepts needed to complete the lab assignment. You are strongly encouraged to work with a partner on the Warmup during the lab period.

As a friendly reminder, there is also lab helping available outside of your regularly scheduled lab time. A calendar and description can be found here. Please make use of the lab helping available as much or as little as you need; it is there to assist you as we learn together this semester. Please also feel free to reach out to your professor by email or stop by office hours with any questions.