• Wrong document? Swap it for free
  • Written by students who passed
  • Immediately available after payment
  • Read online or as PDF
Sell
Where do you study
Your language
Document preview thumbnail
Preview 4 out of 104 pages
Exam (elaborations)

CS 6515 Exam 2 | Actual Questions and Answers Latest Updated 2025/2026 (Graded A+)

Document preview thumbnail
Preview 4 out of 104 pages

CS 6515 Exam 2 | Actual Questions and Answers Latest Updated 2025/2026 (Graded A+)

Content preview

CS 6515 Exam 2 | Actual Questions
and Answers Latest Updated
2025/2026 (Graded A+)

Correct 147

Incorrect



CS 6515 Exam 2




What does Dijkstra's algorithm do?




What is the output of the 2SAT
Karp Algorithm solve?

, Don't know?




2 of 147

Definition



Pre/post/ccnum



Give this one a try later!



What is the input for topo sort? What is the output for SCC algo?




What is the output for DFS? What is the input for DFS?


Don't know?




3 of 147

Definition



O(m log n)



Give this one a try later!



What is the output of Prim's What is the runtime of the Bellman-
Algorithm? Ford Algorithm?

, What is the runtime complexity of the What is the runtime of Prim's
Edmunds-Karp Algorithm? Algorithm?


Don't know?




4 of 147

Definition



O(|V| + |E|)



Give this one a try later!



What is the output of Prim's What is the runtime of the Bellman-
Algorithm? Ford Algorithm?




What is the runtime of the SCC What is the runtime of the Ford-
Algorithm? Fulkerson Algorithm?


Don't know?




5 of 147

Definition



O(n+m)



Give this one a try later!

, What is the runtime for
What is the output for SCC algo?
reversing a graph?




What is the runtime of the Ford- What is the input for building a
Fulkerson algo? residual graph?


Don't know?




6 of 147

Term



Goal of Flow Problem



Give this one a try later!



- Find sink SCC, output it, remove it, and repeat
- Why Sink?
- Since it's a sink SCC, then you only visit the other nodes in that sink SCC when you
run explore




- z where gcd(z, r) = 1 that also passes Fermat's Test (z^(r-1) ::: 1 mod r)
- if this is the case, then a composite number has many Fermat Witnesses; thus they
are easy to find




- Pseudoprimes
- Composite # with No nontrivial Fermat Witnesses
- Inefficient to use Fermat's Test to prove a number is a composite number

Document information

Uploaded on
October 28, 2025
Number of pages
104
Written in
2025/2026
Type
Exam (elaborations)
Contains
Questions & answers
$15.99

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
professoraxel
3.8
(494)
Sold
2670
Followers
1586
Items
20700
Last sold
1 day ago



Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions