FlashKeepers

Computer Science · College · College and University

Data Structures, Unit 8: Graphs and Graph Traversal

Data Structures, unit: Graphs and Graph Traversal. Core concepts, terminology, and worked-example cues a college student meets for this unit, building on prior units without repeating them. Front: a term, concept, or short problem cue. Back: the definition, explanation, or answer.

About this set

38 basic cards for College Computer Science. Set 8 of 10 in Data Structures. It opens with "What is a graph?" and "What is a vertex in a graph?". Study it alongside the other College sets below.

38 cards · basic cards · AI-written, checked twice. Edit anything.

Study this set free Look inside first Get FlashKeepers for iPhone

Opens in your browser, no account. Get the iPhone and iPad app · Android app

What is a graph?
Show answerA collection of nodes (vertices) connected by edges
What is a vertex in a graph?
Show answerA node representing an entity
What is an edge in a graph?
Show answerA connection between two vertices
What is a directed graph?
Show answerA graph where edges have a direction, going from one vertex to another
What is an undirected graph?
Show answerA graph where edges have no direction, representing a two-way connection
What is a weighted graph?
Show answerA graph where each edge has an associated numeric cost or weight
What is an adjacency list?
Show answerA graph representation storing each vertex's neighbors in a list
What is an adjacency matrix?
Show answerA graph representation using a 2D array to indicate which vertices are connected
What is the space complexity of an adjacency matrix for a graph with V vertices?
Show answerO(V^2)
What is the space complexity of an adjacency list for a graph with V vertices and E edges?
Show answerO(V + E)
What is breadth-first search (BFS)?
Show answerA graph traversal algorithm that explores all neighbors at the current depth before moving deeper
What data structure does BFS use to track which nodes to visit next?
Show answerA queue
What is depth-first search (DFS)?
Show answerA graph traversal algorithm that explores as far as possible along a branch before backtracking
What data structure does DFS typically use, explicitly or via recursion?
Show answerA stack (or the call stack, if implemented recursively)
What is a connected graph?
Show answerA graph where a path exists between every pair of vertices

23 more cards in the app

Study this set free