Skip to content

Alanine42/Graph-Meets-4yr-Plan

Repository files navigation

Graph-Meets-4yr-Plan

Interactive graph data structure that helps new UC San Diego students to explore various pathways in their major (along with an instant search bar)!

Have you ever had this Lost moment on WebReg (UC San Diego's course registration site), where you really liked a course, but haven't completed all its prerequisites? You dig deeper, only to realize that the prerequisite courses also have their own prerequistes that you haven't completed...

Prerequisites

We can model the prerequisite relationship with a Directed Acyclic Graph (DAG), where each vertex is a course, and each edge (u,v) represents course u is a prerequisite of v.

Approach

Scraping

Scrap the UCSD course catalog (courses' description and prerequisites) using Selenium.

Student's Input

Theoretically: Build a Directed Acyclic Graph. (deprecated, waste space) Take in student's "Done" courses Take in student's "Wanna" courses

Build Subgraph of Interest

Run reverse BFS on each vertex in {"Wanna" courses} to build the subgraph. Turn back when we searched a vertex that's "Done"

Topology Sort

Use a Hashtable to keep track of all vertices' indegrees (during BFS). For all outgoing vertices of the "Done" vertices', decrement indegree by 1.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published