Skip to content
Embercode
✕
Advanced graphsQuick quiz

Flow, matching and tours

8 questions. Covers Euler tours: walks through every edge, and tree tours as ranges.

Questions 1 to 5 of 8

  1. 1. Which statements about one phase of Dinic's method are true?

    Pick every answer that is true.

  2. 2. A network has vertices 0 to 3, source 0 and sink 3. The edges are 0 to 1 with capacity 3, 0 to 2 with capacity 2, 1 to 2 with capacity 5, 1 to 3 with capacity 2, and 2 to 3 with capacity 3. What is the maximum flow from 0 to 3?

    Type a number.

  3. 3. An AI writes a matching for workers and jobs. It goes through the edges in input order and takes an edge when neither end is used yet. For the edges 0-0, 0-1 and 1-0 it prints 1. What is the best answer, and what is wrong with the code?
  4. 4. Which statements about König's theorem are true for a bipartite graph?

    Pick every answer that is true.

  5. 5. Match each edge in a min cut construction with what it means.

    Choose the matching item for each row.

5 question(s) left on this page.

Typed answers ignore extra spaces and, for most questions, capital letters.