100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached 4.2 TrustPilot
logo-home
Exam (elaborations)

CS6515 ACTUAL FINAL PAPER 2025 QUESTIONS WITH ANSWERS GUARANTEE A+

Rating
-
Sold
-
Pages
9
Grade
A+
Uploaded on
22-04-2025
Written in
2024/2025

CS6515 ACTUAL FINAL PAPER 2025 QUESTIONS WITH ANSWERS GUARANTEE A+ DFS Algorithm - Input: Graph G Output: 1. prev[z] - parent index of vertex z 2. pre[z] - pre number of vertex z 3. post[z] - post number of vertex z 4. ccnum[z] - connected component number of z Runtime: O(m+n) Dijkstra's Algorithm - Input: Graph (directed/un-directed), Start vertex. Output: 1. dist[u] - distance from s to u if s can reach u 2. prev[z] - parent index of vertex z Runtime: O( (n + m) * log(n) ) More sophisticated BFS that utilizes miniheap data structure. Such requires an additional log(n) time over BFS because of this

Show more Read less
Institution
CS6515
Course
CS6515









Whoops! We can’t load your doc right now. Try again or contact support.

Written for

Institution
CS6515
Course
CS6515

Document information

Uploaded on
April 22, 2025
Number of pages
9
Written in
2024/2025
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

Content preview

CS6515 ACTUAL FINAL PAPER 2025 QUESTIONS WITH
ANSWERS GUARANTEE A+
✔✔DFS Algorithm - ✔✔Input: Graph G

Output:
1. prev[z] - parent index of vertex z
2. pre[z] - pre number of vertex z
3. post[z] - post number of vertex z
4. ccnum[z] - connected component number of z

Runtime: O(m+n)

✔✔Dijkstra's Algorithm - ✔✔Input: Graph (directed/un-directed), Start vertex.

Output:
1. dist[u] - distance from s to u if s can reach u
2. prev[z] - parent index of vertex z

Runtime: O( (n + m) * log(n) )

More sophisticated BFS that utilizes miniheap data structure. Such requires an
additional log(n) time over BFS because of this

✔✔SCC Algorithm - ✔✔Input: Directed Graph

Output:
1. Metagraph of G.
2. Connected Component Numbers for each vertex (this comes from DFS, explained
above)

Runtime: O(n + m)

✔✔Kruskal Algorithm - ✔✔Input: connected undirected graph G, edge weights w

Output: minimum spanning tree defined by the edges

Runtime: O(m log(m)) or O(m log(n))
Input: Connected, undirected graph. (Must have edge weights... basis of algo)


How it works: Basically Sorts edges from least to greatest and starts building the tree.

✔✔Prim's Algorithm - ✔✔Runtime: O(m log(m)) or O(m log(n))
Input: Connected, undirected graph. (Must have edge weights... basis of algo)
Output: The Minimum Spanning Tree of the graph.

, How it works: Starts at a vertex and adds the smallest connecting edge to unvisited
node.

✔✔Ford Fulkerson Algorithm - ✔✔Runtime: O(mC)
Input: Graph with integer edge weights. (Note: Does not work with Infinity)
Output: max flow f*

✔✔Edmonds-Karp Algorithm - ✔✔Runtime: O(nm^2)
Input: Graph with integer edge weights. (Note: Works with Infinity!)
Output: max flow f*

✔✔Orlin Max Flow Algorithm - ✔✔- Current best solution to max flow problem
- Run Time: O(mn)

✔✔Augmenting Path - ✔✔A path that exists on the residual graph from s -> t.

This type of path implies there exists more flow that can be pushed through the graph.

This occurs when there exists a path through which the minimum residual capacity F
among all edges in the path is greater than 0.

✔✔When is a flow a max flow - ✔✔When there is no augmenting path in the residual
graph

✔✔Size(flow) = - ✔✔F_out(L) - f_in(L)

✔✔How to construct a min cut - ✔✔- construct a max flow
- set L to be those vertices reachable from s in the residual graph
- This st cut then has a capacity equal to the max flow
- maxflow = mincut

✔✔Ford-Fulkerson vs Edmonds-Karp - ✔✔FF:
- Finds augmenting paths using DFS or BFS
- O(mC) time, where C is the size of the max flow
- assumes integer capacities
- capacities cannot be infinity

EK:
- Finds augmenting paths using BFS (is an example of FF)
- O(nm^2)
- No assumptions on integer capacities
- Only requires positive capacities

✔✔Edmonds-Karp Number of rounds is at most - ✔✔- mn
- Every round residual graph changes by > 1 edge

Get to know the seller

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.
ULTRASCORES Havard School
View profile
Follow You need to be logged in order to follow users or courses
Sold
12
Member since
8 months
Number of followers
0
Documents
5245
Last sold
2 months ago
morales

your go-to shop for all things study-related! Whether you need notebooks, study guides, or stress-relief gear, we've got the tools to help you crush your exams like a boss. Our exclusive collection is designed for the modern student who’s ready to take on the academic world and rise to the challenge.

3.0

1 reviews

5
0
4
0
3
1
2
0
1
0

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

Frequently asked questions