Subject

    Computer Science

    Topic

    Artificial Intelligence

    What is the time complexity of breadth-first search with branching factor b and solution depth d?

    a)
    O(b^d)
    b)
    O(b × d)
    c)
    O(d^b)
    d)
    O(log b)

    Explanation

    BFS may generate all nodes up to depth d: 1 + b + b^2 + ... + b^d, which is O(b^d).

    Find Tutors

    View all Tutors