{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

quiz5 - (d Daemon threads cannot cause deadlocks or race...

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

View Full Document Right Arrow Icon
Quiz 5 CS 2110 April 28 Name: NetId: 1. Given a graph G = (V,E) whose MST weight(the sum of the weight of its edges) is w , how will w be affected if we remove an edge from G? (a) w will stay the same. (b) w will stay the same or decrease. (c) w will stay the same or increase. (d) It is impossible to say without knowing which edge is being removed. 2. What is the difference between a daemon thread and a normal thread? (a) There is no difference. (b) An application will halt when all normal threads have terminated even if there are daemon threads still running. (c) Daemon threads are evil whereas normal threads are good
Image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: (d) Daemon threads cannot cause deadlocks or race conditions as oppossed to normal threads. 3. Select the tightest statement for the recurrence T (0) = 0, T ( n ) = T ( n-1) + n (a) T ( n ) is O (2 n ) (b) T ( n ) is O ( n 2 ) (c) T ( n ) is O ( n ) (d) T ( n ) is O (1) 4. Select the statement that is true. (a) One base case is enough when doing a proof by Weak Induction. (b) Strong Induction is more powerful than Weak Induction. (c) Weak Induction is more powerful than Strong Induction. (d) The correctness of MergeSort cannot be proved using an Induction. 1...
View Full 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