Subject

    Computer Science

    Topic

    Artificial Intelligence

    In the figure, using alphabetical tie-breaking, what is the depth-first preorder from A?

    Illustration for In the figure, using alphabetical tie-breaking, what is the depth-first preorder from A?
    a)
    A-B-D-E-C-F
    b)
    A-C-B-F-D-E
    c)
    A-B-C-E-D-F
    d)
    A-C-F-B-E-D

    Explanation

    DFS goes as deep as possible first: A, B, D, then back up to E, then C and finally F.

    Find Tutors

    View all Tutors