• Mauvais document ? Échangez-le gratuitement
  • Rédigé par des étudiants ayant réussi
  • Disponible immédiatement après paiement
  • Lire en ligne ou en PDF
Vendre
Où étudie-tu ?
La langue
Document preview thumbnail
Aperçu 2 sur 11 pages
Examen

CS6515 Exam 3 Questions with Verified Correct Answers

Document preview thumbnail
Aperçu 2 sur 11 pages

CS6515 Exam 3 Questions with Verified Correct Answers

Aperçu du contenu

CS6515 Exam 3 Questions with Verified Correct
Answers
The Class P

A solution may be found in polynomial time

The Class NP

A solution may be verified in polynomial time

NP-Hard

We are yet to find a polynomial time solution

NP-Complete

Both in NP and at least as hard as NP-Hard problems

NP Reduction - Steps

1. Demonstrate that problem B is in the class of NP Problems

- validate a solution in polynomial time



2. Demonstrate that problem B is at least as hard 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 vertex

, Feasible region is convex

LP: Optimum achieved at a vertex except:

1. Infeasible - feasible region is empty

2. Unbounded - optimal value of objective function is arbitrarily large

Independent Set -> Vertex Cover

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

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

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

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

Infos sur le Document

Publié le
12 octobre 2026
Nombre de pages
11
Écrit en
2026/2027
Type
Examen
Contenu
Questions et réponses
$12.99

Mauvais document ? Échangez-le gratuitement Dans les 14 jours suivant votre achat et avant le téléchargement, vous pouvez choisir un autre document. Vous pouvez simplement dépenser le montant à nouveau.
Rédigé par des étudiants ayant réussi
Disponible immédiatement après paiement
Lire en ligne ou en PDF

Seller avatar
Les scores de réputation sont basés sur le nombre de documents qu'un vendeur a vendus contre paiement ainsi que sur les avis qu'il a reçu pour ces documents. Il y a trois niveaux: Bronze, Argent et Or. Plus la réputation est bonne, plus vous pouvez faire confiance sur la qualité du travail des vendeurs.
KenAli
2.6
(18)
Vendu
120
Abonnés
5
Éléments
25622
Dernière vente
3 jours de cela




Pourquoi les étudiants choisissent Stuvia

Créé par d'autres étudiants, vérifié par les avis

Une qualité sur laquelle compter : rédigé par des étudiants qui ont réussi et évalué par d'autres qui ont utilisé ce document.

Le document ne convient pas ? Choisis un autre document

Aucun souci ! Tu peux sélectionner directement un autre document qui correspond mieux à ce que tu cherches.

Paye comme tu veux, apprends aussitôt

Aucun abonnement, aucun engagement. Paye selon tes habitudes par carte de crédit et télécharge ton document PDF instantanément.

Student with book image

“Acheté, téléchargé et réussi. C'est aussi simple que ça.”

Alisha Student

Vous travaillez sur vos références ?

Créez des citations précises en APA, MLA et Harvard avec notre générateur de sources gratuit.

Vous travaillez sur vos références ?

Foire aux questions