CSCE Quiz 3 - Graphs

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

1/36

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 2:47 AM on 4/12/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai

No analytics yet

Send a link to your students to track their progress

37 Terms

1
New cards

graph

collection of vertices, edges, and functions.

2
New cards

undirected graph

AB = BA

3
New cards

connected graph

at least one path between every pair of vertices

4
New cards

complete graph

an edge connects every pair of vertices; every vertex is connected

5
New cards

trail

a walk with no repeated edges

6
New cards

path

a walk with no repeated edges or vertices

7
New cards

graphs are isomorphic when:

  • same # of vertices

  • same # of edges

  • # same degree sequence

8
New cards

cyclic graph

has atleast ONE cycle

9
New cards

cycle

path that begins and ends at the same vertex

  • no repeated edges or vertices

10
New cards

directed acyclic graph (DAG)

directed graph without a cycle

11
New cards

circuit

closed walk ; starts and ends at the same vertex

  • can repeat vertices

  • CANNOT repeat edges

12
New cards

euler trail

contains every edge exactly ONCE

  • can only contain 2 odd deg vertices at beg or end

13
New cards

euler circuit

every edge appears exactly ONCE

14
New cards

hamilton path

valid walk that contains every vertex exactly ONCE

15
New cards

planar graph

no edge crossings

16
New cards

chromatic number

min # of colors needed in a graph

17
New cards

greedy algorithm

  • doesn’t guarantee the min # of colors

  • guarantees an upper bound on the number of colors

  • BA never uses more than d+1 colors where d is the max degree of a vertex in the given graph

18
New cards

adj matrix

0 & 1 corresponding to relationship

19
New cards

adj list

list in ascending order

20
New cards

weighted graoh

0 → 1|10 → 2|20 → 3|7

21
New cards

graph traversal

visiting every edge exactly once in a well-defined order

22
New cards

breadth first search BFS

start traversing from a selected node (source) and explore all nodes at the present depth prior to moving on to the nodes at the next depth level.

23
New cards

depth first search DFS

start traversing from a selected node (source) and explore as far as possible along each branch before backtracking.

24
New cards

in DFS, vertices from which exploring is incomplete are processed in what type of order?

LAST IN FIRST OUT (STACK)

25
New cards

in BFS, vertices are explored and organized in what type of order?

FIRST IN FIRST OUT (QUEUE)

26
New cards

DFS contains two processing opportunities for each vertex v, when it

is “discovered” and when it is “finished”

TRUE

27
New cards

BFS contains only one processing opportunity for each vertex v, and

then it is dequeued.

TRUE

28
New cards

tree

a graph that is connected but has no cycles

  • only one unique path between any two vertices

29
New cards

spanning tree

subgraph that includes all the vertices of G and connects

them using the minimum possible number of edges.

30
New cards

a spanning tree is connected and contains no cycles.

TRUE

31
New cards

properties of spanning trees

  • does not exist for a disconnected graph.

  • For a connected graph with N vertices the number of edges in a spanning tree for that graph will be N-1.

  • does not have any cycle.

  • We can construct a spanning tree for a connected graph by removing E-N+1 edges

32
New cards

cayleys theorem

nUMBER OF SPANNING TREES POSSIBLE : N = VERTICES

states that the number of spanning trees in a complete

graph with N vertices is N^(N-2)

33
New cards

adjacent

vertex a is adjacent to vertex b if there is an edge connecting the two

34
New cards

hamilton cycle

cycle that contains every vertex

35
New cards

real world situations for topological sorting

  • event scheduling

  • program dependencies

  • assembly instructions

36
New cards

minimum spanning tree

spanning tree with skinniest waist

37
New cards

real world uses for min spanning tree

  • network design

  • clustering of data