/ITMO_Algorithms2

Second semestre labs

Primary LanguageC++

ITMO algorithms second semestr

A - Adjacency Matrix

B - Is unoriented

C - Parallel edges

D - Connected component

E - Shortest path in unweighted graph

F - Labyrinth

A - Top sort

B - Find cycle

C - Is bipatite

D - Graph condensation

E - Hamilton way

F - Game

A - Top's degree

B - Spanning tree (Prim's algorithm O(V^2 + E))

C - Spanning tree 3 (Prim's algorithm O(E * LogV))

A - Shortest path between two vertexes (Dijkstra O(V^2 + E))

B - Shortest path from all to all vertexes (Belman Ford algorithm O(V * E))

C - Shortest path from first vertex to all (Dijkstra O(E * logV))

D - Shortest path and etc (Belman Ford algorithm O(V * E))

E - Negative cycle (Belman Ford algorithm O(V * E))

A - Max flow

B - Max matching

C - Decomposition of the flow (Dinic's algorithm)

D - Graph's circulation

A - Naive substring search

B - Fast substring search (KMT algorithm)

C - Prefix function

D - KMT machine