tree

0.0(0)
Studied by 0 people
call kaiCall Kai
Locked
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/12

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 10:15 PM on 8/10/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai
Chat

No analytics yet

Send a link to your students to track their progress

13 Terms

1
New cards

tree

an undirected, connected, acyclic graph

2
New cards

depth-first tree search

starts at the root vertex and explores as far as possible along each branch before backtracking (we don't have to know the steps yet)

3
New cards

breadth-first tree search

starts at the root vertex and explores all adjacent vertices at the present depth before moving onto the next depth level

4
New cards

forest

an undirected, acyclic graph- unlike trees they don't have to be connected (essentially a graph of multiple trees and/or disconnected individual vertices)

5
New cards

cayley's formula

for a graph with n vertices, the number of trees that can be created from it is: NT = n^(n-2)

6
New cards

cayley's formula and non-isomorphic trees

cayley's formula counts all trees within isomorphisms, the number of non-isomorphic trees is smaller for low-order graphs the number of NITs can be found by systematically considering the trees with the highest possible maximum degree (n-1 which is a star where one root vertex connects to all other vertices) to the lowest possible maximum degree (2 which is a chain)

7
New cards

trees size and order

E = #V - 1

any connected graph with n vertices and n - 1 edges is a tree the removal of any edge disconnects T, and the addition of any edge creates a cycle any two vertices of T are connected by exactly one path

8
New cards

rooted tree

a hierarchical tree where one vertex is chosen as the "root" all vertices have parent except the root vertex, all vertices have child vertices except the "leaf" vertices at the end

9
New cards

binary tree

a tree where each vertex has at most two children

10
New cards

spanning tree

the spanning tree for a graph is a subgraph that includes every vertex

11
New cards

minimum spanning tree

the spanning tree with the smallest possible sum of edge weights

12
New cards

primm's algorithm

a greedy (fast but doesn't always find the optimal solution) algorithm to find minimum spanning trees -start at any vertex and add that to the MST -add the vertex across the adjacent edge with the lowest weight to the MST -add the vertex across the lowest-weighted edge adjacent to any vertex in the MST, to the MST (only for vertices that aren't already in the MST) -repeat the last step untill all vertice are in the MST

13
New cards

directed acyclic graphs

a connected, directed, acyclic graph with a topological order (every edge is directed from earlier to later in the sequence) a vertex is defined as a source vertex if all adjacent edges are leaving it, and as a sink vertex if all adjacent edges are entering it