Subject

    Computer Science

    Topic

    Artificial Intelligence

    For edges P-Q-1,P-R-1,Q-S-1,R-T-1,S-U-1, what order does DFS preorder produce from P with alphabetical tie-breaking?

    a)
    P-Q-S-U-R-T
    b)
    T-R-U-S-Q-P
    c)
    P-T-R-U-S-Q
    d)
    P-S-Q-U-R-T

    Explanation

    DFS from P goes P, Q, S, U to the end of that branch, then backs up to try R and T.

    Find Tutors

    View all Tutors