Escrito por estudiantes que aprobaron Inmediatamente disponible después del pago Leer en línea o como PDF ¿Documento equivocado? Cámbialo gratis 4,6 TrustPilot
logo-home
Document preview thumbnail
Vista previa 3 fuera de 21 páginas
Examen

CS6515 EXAM 2 2025| BRAND NEW ACTUAL EXAM WITH 100% VERIFIED QUESTIONS AND CORRECT SOLUTIONS| GUARANTEED VALUE PACK| ACE YOUR GRADES.

Document preview thumbnail
Vista previa 3 fuera de 21 páginas

CS6515 EXAM 2 2025| BRAND NEW ACTUAL EXAM WITH 100% VERIFIED QUESTIONS AND CORRECT SOLUTIONS| GUARANTEED VALUE PACK| ACE YOUR GRADES.

Vista previa del contenido

Page | 1

CS6515 EXAM 2 2025| BRAND NEW ACTUAL
EXAM WITH 100% VERIFIED QUESTIONS AND
CORRECT SOLUTIONS| GUARANTEED VALUE
PACK| ACE YOUR GRADES.


Kruskal Algorithm - correct answer - 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 - correct answer - 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.

, Page | 2

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




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




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




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




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

, Page | 3

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 - correct answer - When there is no
augmenting path in the residual graph




Size(flow) = - correct answer - F_out(L) - f_in(L)




How to construct a min cut - correct answer - - 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 - correct answer - FF:
- Finds augmenting paths using DFS or BFS
- O(mC) time, where C is the size of the max flow

Información del documento

Subido en
17 de marzo de 2025
Número de páginas
21
Escrito en
2024/2025
Tipo
Examen
Contiene
Preguntas y respuestas
$12.99

¿Documento equivocado? Cámbialo gratis Dentro de los 14 días posteriores a la compra y antes de descargarlo, puedes elegir otro documento. Puedes gastar el importe de nuevo.
Escrito por estudiantes que aprobaron
Inmediatamente disponible después del pago
Leer en línea o como PDF

Seller avatar
Los indicadores de reputación están sujetos a la cantidad de artículos vendidos por una tarifa y las reseñas que ha recibido por esos documentos. Hay tres niveles: Bronce, Plata y Oro. Cuanto mayor reputación, más podrás confiar en la calidad del trabajo del vendedor.
Savvynurse
3.6
(58)
Vendido
251
Seguidores
7
Artículos
7848
Última venta
4 semanas hace



Por qué los estudiantes eligen Stuvia

Creado por compañeros estudiantes, verificado por reseñas

Calidad en la que puedes confiar: escrito por estudiantes que aprobaron y evaluado por otros que han usado estos resúmenes.

¿No estás satisfecho? Elige otro documento

¡No te preocupes! Puedes elegir directamente otro documento que se ajuste mejor a lo que buscas.

Paga como quieras, empieza a estudiar al instante

Sin suscripción, sin compromisos. Paga como estés acostumbrado con tarjeta de crédito y descarga tu documento PDF inmediatamente.

Student with book image

“Comprado, descargado y aprobado. Así de fácil puede ser.”

Alisha Student

Preguntas frecuentes