• 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 2 out of 9 pages
Exam (elaborations)

Cs 6515 Graph Algorithms Actual Exam Questions With Complete Solution Guide (A+ Graded 100% Verified) Latest Version 2025!!

Document preview thumbnail
Preview 2 out of 9 pages

CS 6515 GRAPH ALGORITHMS ACTUAL EXAM QUESTIONS WITH COMPLETE SOLUTION GUIDE (A+ GRADED 100% VERIFIED) LATEST VERSION 2025!!

Content preview

CS 6515 Graph Algorithms

Components of a complete solution

(a) Describe your algorithm
NO PSEUDOCODE - use words
What changes you may need for the in-
put
What black box you will feed your input to
What changes you may need for the out-
put
Repeat with more black boxes as needed

(b) Justify why your algorithm is correct
Explain how your problem is solved by
the black boxes used
What are the components of a graph
Explain how changing the inputs and/or
theory solution?
outputs gets what you want

(c) Analyze the runtime
Must be presented in Big O notation
Can explain/analyze in words
Can use known black box runtime with-
out explanation. Must include run time
analysis for any pre/post processing, as
well as any modifications to the black box
(if permitted by the problem)
Again, if we give you a run time, you
must meet that for full credit. If we do not
specify a run time, faster (and correct) in
Big O notation are worth more credit.
Rules
NO PSEUDOCODE - YOU WILL LOSE
A LOT OF POINTS
Only black boxes of known algorithms
What are the rules for writing a graph are allowed
theory solution? One or more graph black box must be
used to solve problems in this section
Do not make changes to black boxes
unless explicitly allowed. This is very rare
and may not happen during the semester
1/9

, CS 6515 Graph Algorithms

We consider all Graphs to be provided as
G=(V,E)
V is an array of vertices
E is an adjacency list
When a graph is provided as input, you
are also given n=#V# and m=#E#
Size of Max-flow = min capacity of a
Max-flow = Min st-cut
st-cut
A variation of Ford-Fulkerson Algorithm
that uses BFS instead of DFS to ensure
the algorithm terminates even if loops
exist.
It takes longer though, running at
O(|V|*|E|^2) time and using O(|E|+|V|)
space.

Edmonds-Karp Algorithm inputs:
outputs:
runtime:




Input: Graph G unweighted
Output:
1. prev[z] - parent index of vertex z
2. pre[z] - pre number of vertex z
DFS Algorithm
3. post[z] - post number of vertex z
4. ccnum[z] - connected component
number of z
Runtime: O(m+n)
Tree Edge
Back Edge
Types of Edges from DFS
Forward
Cross
2/9

Document information

Uploaded on
May 24, 2025
Number of pages
9
Written in
2024/2025
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.
Antitest
5.0
(514)
Sold
9632
Followers
5
Items
4344
Last sold
14 hours 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