CST 370 - Week 3 - BFS made me think of LinkedIn
This week in class once of the algorithms we covered was Breadth-First Search (BFS). Unlike other search methods that traverse down a single path until they hit a dead end (like DFS), BFS explores like a more intentionally. It checks every single immediate neighbor first, and only when that layer is done does it move on to the neighbors of those neighbors. This made me think about how connections work on LinkedIn and its massive social graph. Think of LinkedIn as a giant graph, where each person is a "node" and every mutual friendship is an "edge." It starts with you as the root node and scans your immediate circle—your 1st-degree connections. It places all of them into a holding area called a "queue." Then, the algorithm moves to the next layer, pulling from the queue to check the direct connections of your friends these are your 2nd-degree connections. For these type of graphs it feels like BFS is a great way to analyze and search.