Computer Science I / Graphs and Trees
Practice question · Sort into groups

Sort each term or description by what it is a property of.

Groups: A property of a single vertex · A description of a path or cycle · A property of the whole graph

Hints
  1. Ask what you would have to look at to check each one: a single point, a route through the graph, or everything at once.
  2. Two items are the same idea stated once as a word and once as a definition.
Show the answer

A property of a single vertex: Degree, The number of edges meeting at this point

A description of a path or cycle: A route that returns to the vertex it started from, A sequence of vertices in which each is joined to the next by an edge

A property of the whole graph: Connected, Acyclic

Why

Degree is local, measured at one vertex. Paths and cycles are routes through the graph. Connectedness and acyclicity are global: you cannot confirm either by inspecting one vertex. Sorting terms this way is the fastest way to keep graph vocabulary straight, because the level a term lives at determines what you must examine to test it.

Read the lesson: Graphs and Trees →

Practise Graphs and Trees

The app has 4 more questions on this lesson, and keeps your place in the course. Computer Science I is free to start.

More questions on Graphs and Trees