100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached
logo-home
CS6515 EXAM 3 (ACTUAL EXAM) WITH CORRECT 150+ QUESTIONS AND CORRECTLY WELL DEFINED ANSWERS LATEST 2024 ALREADY GRADED A+ $13.99   Add to cart

Exam (elaborations)

CS6515 EXAM 3 (ACTUAL EXAM) WITH CORRECT 150+ QUESTIONS AND CORRECTLY WELL DEFINED ANSWERS LATEST 2024 ALREADY GRADED A+

 9 views  0 purchase
  • Course
  • CS6515
  • Institution
  • CS6515

CS6515 EXAM 3 (ACTUAL EXAM) WITH CORRECT 150+ QUESTIONS AND CORRECTLY WELL DEFINED ANSWERS LATEST 2024 ALREADY GRADED A+

Preview 4 out of 48  pages

  • June 5, 2024
  • 48
  • 2023/2024
  • Exam (elaborations)
  • Questions & answers
  • CS6515
  • CS6515
avatar-seller
NurseLNJ
CS6515 EXAM 3 (ACTUAL EX AM) WITH CORRECT 150+ QUESTIONS AND CORRECTLY WELL DEFINED ANSWERS LATEST 2024 ALREADY GRADED A+ LP Duality Formulation - ANSWERS -1. Add 1 variable for each constraint in primal - objective function is to minimize sum product of these constraints 2. Add 1 constraint for each variable in primal - constrained value comes from objective function - values to be constrained come from the constraints in the primal NP-Hard - ANSWERS -We are yet to find a polynomial time solution NP-Complete - ANSWERS -Both in NP and at least as hard as NP -Hard problems NP Reduction - Steps - ANSWERS -1. Demonstrate that problem B is in the class of NP Problems - validate a solution in polynomial time The Class P - ANSWERS -A solution may be found in polynomial time The Class NP - ANSWERS -A solution may be verified in polynomial time 2. Demonstrate that problem B is at least as ha rd as a problem believed to be NP -Complete. This is done via a reduction from a known problem A (A->B) a) Show how an instance of A is converted to B in polynomial time b) Show how a solution to B can be converted to a solution for A, again in polynomial time c) Show that a solution for B exists IF AND ONLY IF a solution to A exists - most prove both parts: if you you have a solution to B, you have a solution to A - If there is no solution to B, then no solution exists to A LP: Why optimum occurs at a v ertex - ANSWERS -Feasible region is convex LP: Optimum achieved at a vertex except: - ANSWERS -1. Infeasible - feasible region is empty 2. Unbounded - optimal value of objective function is arbitrarily large Independent Set -> Vertex Cover - ANSWERS -Lemma: I is an independent set of G(V, E) iff V - I is a vertex cover of G Simply check if there is a vertex cover of size V - b in G(V, E). If there is, output V - S 3SAT -> Independent Set - ANSWERS -Lemma: f is satisfiable iff the resulting set has an independent set of size m (# of clauses in f) in G(V, E). To construct G(V, E), create a node for each literal in each clause and connect them by an edge. Also connect any literal with it's negation. Independent Set -> Clique - ANSWERS -Lemma: G(V, E) has an independent set of size g iff G'(V, E) has a clique of size g. To construct G'(V, E), add all the vertices in G(V, E) to G'(V, E) and add edges to G'(V, E) if there is no edge in G(V, E) SAT - ANSWERS -Input: C is a CNF with any # of variables (n) and clauses (m) Output: assignment of each variable s.t. the CNF is True 3SAT - ANSWERS -Input: C is a CNF whose clauses have at most 3 literals Output: Assignment of eac h variable s.t. the CNF is True Clique - ANSWERS -Input: G is an undirected, unweighted graph, k is the size of the clique Output: A Clique in G with at least k vertices

The benefits of buying summaries with Stuvia:

Guaranteed quality through customer reviews

Guaranteed quality through customer reviews

Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.

Quick and easy check-out

Quick and easy check-out

You can quickly pay through credit card or Stuvia-credit for the summaries. There is no membership needed.

Focus on what matters

Focus on what matters

Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!

Frequently asked questions

What do I get when I buy this document?

You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.

Satisfaction guarantee: how does it work?

Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.

Who am I buying these notes from?

Stuvia is a marketplace, so you are not buying this document from us, but from seller NurseLNJ. Stuvia facilitates payment to the seller.

Will I be stuck with a subscription?

No, you only buy these notes for $13.99. You're not tied to anything after your purchase.

Can Stuvia be trusted?

4.6 stars on Google & Trustpilot (+1000 reviews)

76202 documents were sold in the last 30 days

Founded in 2010, the go-to place to buy study notes for 14 years now

Start selling
$13.99
  • (0)
  Add to cart