Skip to content
KALANBLON
Show contents

Chapter 7 of 7 · 10 min

Quiz: graphs and optimisation

Graphs, traversals, dynamic programming and shortest paths: the last quiz of this course. You need 70% correct answers to pass it.

Quiz

6 questions · pass mark: 70%

  1. 1.Which data structure does breadth-first search use?

    One answer

  2. 2.Why mark the vertices already visited?

    One answer

  3. 3.What does memoisation do?

    One answer

  4. 4.With coins of 1, 3 and 4, what does the greedy algorithm give for 6?

    One answer

  5. 5.Which statements about Dijkstra's algorithm are true? (several answers)

    Several answers possible

  6. 6.Complete the name of the Python module that provides a priority queue.

    Complete the code

    import _____

Your progress is saved on this device. Create a free account to keep your progress on all your devices.