{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

quiz4 - Quiz 4 CS 2110 April 7 Name NetId The rst three...

Info icon This preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
Quiz 4 CS 2110 April 7 Name: NetId: The first three questions will refer to the following graph: 1. Is the alphabetical ordering of the nodes in the graph above consistent with a topological sort of the graph? (a) Yes. (b) No. (c) This is not Directed Acyclic Graph (DAG), so the question does not make sense. (d) Yes, but only on a full moon. 2. In which order will Breadth-First Search (BFS) starting at node A visit the nodes in the graph above? In case of ties, assume that BFS explores nodes closer towards the front of the alphabet first, and that it never visits a node more than once. (a) A B C D E F (b) A D F C E B (c) A B D F C E (d) A B C D F E 3. In which order will Depth-First Search (DFS) starting at node A visit the nodes in the
Image of page 1
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern