YOUR SUBJECT ENG503 Introduction to English Language TeachingChange subject ↗
Fundamentals of Algorithms

Question #114

Read the question, compare the options, and review the correct answer below.

CS502 · Final-term only#114

Suppose that a graph G = (V,E) is implemented using adjacency lists. What is the complexity of a breadth-first
traversal of G?

  1. A
    ?O(|V |^2)
  2. B
    ?O(|V | |E|)
  3. C
    ?O(|V |^2|E|)
  4. D
    ?O(|V | + |E|) pg 116
Show correct answer

Correct answer: D. ?O(|V | + |E|) pg 116

Check community answers against your course notes.
← More practice questionsTake a timed test