FlashKeepers

Discrete Math · College · College and University

Discrete Math: Trees and Algorithms

Tree structures and basic graph algorithms such as shortest path and minimum spanning tree, from an intro discrete mathematics course.

About this set

29 basic cards for College Discrete Math. Set 11 of 11 in Discrete Math. It opens with "What is a tree in graph theory?" and "What is a leaf node in a tree?". Study it alongside the other College sets below.

29 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 tree in graph theory?
Show answerA connected undirected graph with no cycles
What is a leaf node in a tree?
Show answerA node with degree 1 (connected by exactly one edge)
What is the height of a tree?
Show answerThe length of the longest path from the root to any leaf
What is the depth of a node in a rooted tree?
Show answerThe number of edges from the root to that node
How many edges does a tree with n vertices have?
Show answerExactly n - 1 edges
What is a spanning tree of a connected graph G?
Show answerA subgraph that is a tree and includes all vertices of G
What is a minimum spanning tree (MST)?
Show answerA spanning tree with the smallest possible sum of edge weights
What problem does Dijkstra's algorithm solve?
Show answerFinding the shortest path from a source vertex to all other vertices
What problem does Kruskal's algorithm solve?
Show answerFinding a minimum spanning tree
What problem does Prim's algorithm solve?
Show answerFinding a minimum spanning tree
What is a binary tree?
Show answerA tree where each node has at most two children
What is a complete binary tree?
Show answerA binary tree where all levels are fully filled except the last, which fills from left to right
What is the time complexity of depth-first search (DFS)?
Show answerO(V + E), where V is vertices and E is edges
What is the time complexity of breadth-first search (BFS)?
Show answerO(V + E), where V is vertices and E is edges
What is a rooted tree?
Show answerA tree with one distinguished node designated as the root

14 more cards in the app

Study this set free