Geschreven door studenten die geslaagd zijn Direct beschikbaar na je betaling Online lezen of als PDF Verkeerd document? Gratis ruilen 4,6 TrustPilot
logo-home
Tentamen (uitwerkingen)

CS6515 Graduate Algorithm Exam 3 Practice Questions with Answers 2026 Guide

Beoordeling
-
Verkocht
-
Pagina's
9
Cijfer
A+
Geüpload op
05-04-2026
Geschreven in
2025/2026

CS6515 Graduate Algorithm Exam 3 Practice Questions with Answers 2026 Guide

Instelling
CS6515 Graduate Algorithm
Vak
CS6515 Graduate Algorithm

Voorbeeld van de inhoud

CS6515 Graduate Algorithm Exam 3 Practice
Questions with Answers 2026 Guide
1. What does "efficiently" mean Polynomial in the input size
in the context of NP-com-
pleteness?

2. What is the class NP? The set of search problems for which we can verify a solution in
polynomial time

3. What is the class P? The set of search problems that we can solve in polynomial time

4. What is the relationship be- P †N P
tween P and NP?
P is certainly a subset of NP, but it's unknown whether P = NP.
Phrased another way, if NP is all search problems, and P is all
search problems that can be solved in polynomial time, then P is
a subset of NP.

5. How long does it take to veri- O(nm), as each clause has up to n literals, and there are m
fy an assignment to SAT? clauses.

This implies that SAT is in NP.

6. How long does it take to veri- O(m). For each of the m edges (u, v), check that color(u) !=
fy a k-coloring? color(v).

7. How long does it take to ver- O(m log n).
ify whether T is an MST of a
graph G? 1. Run BFS on T to check that it is in fact a tree, in O(n + m)
2. Run Kruskal's or Prim's on G and check that the weight of the
produced tree is that same as that of T, in O(m log n)

Note that this implies that not only is MST in NP, but also P. We
can produce the MST of a graph in O(m log n) as well.

8. Is knapsack in NP or P?
1/9

, CS6515 Graduate Algorithm Exam 3 Practice
Questions with Answers 2026 Guide
Neither.

It's not in NP as given a solution, we don't know whether the sum
of the values is in fact maximized.

It's not in P as the best algorithm we have runs in O(nB), where
B is the budget. B is exponential in the size of the budget, log B.
(This is pseudopolynomial).

9. Is knapsack search in NP? Yes. Sum the n items, check that the total weight <= B and total
value >= g.

10. If knapsack search were solv- Binary search on [1, V] where V = sum of all item values. For
able in polynomial time, how each candidate goal g, use the knapsack search black box to
could we use it to solve the determine whether g is achievable. We run a polynomial time
knapsack optimization prob- algorithm log V times.
lem?

11. What is NP-complete? This is the set of the hardest problems in NP. If P != NP, then these
problems would lie in NP but not P.

If a problem A is NP complete, then 1) it is in NP 2) if a polynomial
time algorithm for A exists, then that algorithm could be used to
solve all NP complete problems.

If a problem A is NP complete, then any problem in NP can be
reduced to it. A is at least as hard as any problem in NP.

12. What does it mean to reduce A ’B means B >= A, B is at least as hard as A.
a problem A to B?
If we can solve B in polynomial time, we can use that algorithm
to solve A in polynomial time.

Solving A would be no harder than solving B, because if we could
2/9

Geschreven voor

Instelling
CS6515 Graduate Algorithm
Vak
CS6515 Graduate Algorithm

Documentinformatie

Geüpload op
5 april 2026
Aantal pagina's
9
Geschreven in
2025/2026
Type
Tentamen (uitwerkingen)
Bevat
Vragen en antwoorden

Onderwerpen

$13.49
Krijg toegang tot het volledige document:

Verkeerd document? Gratis ruilen Binnen 14 dagen na aankoop en voor het downloaden kun je een ander document kiezen. Je kunt het bedrag gewoon opnieuw besteden.
Geschreven door studenten die geslaagd zijn
Direct beschikbaar na je betaling
Online lezen of als PDF

Maak kennis met de verkoper

Seller avatar
De reputatie van een verkoper is gebaseerd op het aantal documenten dat iemand tegen betaling verkocht heeft en de beoordelingen die voor die items ontvangen zijn. Er zijn drie niveau’s te onderscheiden: brons, zilver en goud. Hoe beter de reputatie, hoe meer de kwaliteit van zijn of haar werk te vertrouwen is.
Schopenhauer Johns Hopkins University
Bekijk profiel
Volgen Je moet ingelogd zijn om studenten of vakken te kunnen volgen
Verkocht
34
Lid sinds
11 maanden
Aantal volgers
0
Documenten
3135
Laatst verkocht
1 dag geleden
Excellence\'s Lair ༄

We offer a collection of real exams, study guides and test banks, that ranged from a variety of courses from different schools and university. #

4.8

8 beoordelingen

5
7
4
0
3
1
2
0
1
0

Waarom studenten kiezen voor Stuvia

Gemaakt door medestudenten, geverifieerd door reviews

Kwaliteit die je kunt vertrouwen: geschreven door studenten die slaagden en beoordeeld door anderen die dit document gebruikten.

Niet tevreden? Kies een ander document

Geen zorgen! Je kunt voor hetzelfde geld direct een ander document kiezen dat beter past bij wat je zoekt.

Betaal zoals je wilt, start meteen met leren

Geen abonnement, geen verplichtingen. Betaal zoals je gewend bent via iDeal of creditcard en download je PDF-document meteen.

Student with book image

“Gekocht, gedownload en geslaagd. Zo makkelijk kan het dus zijn.”

Alisha Student

Bezig met je bronvermelding?

Maak nauwkeurige citaten in APA, MLA en Harvard met onze gratis bronnengenerator.

Bezig met je bronvermelding?

Veelgestelde vragen