Алгоритм Беллмана — Форда Лабораторная
Need to implement All Pairs Shortest Paths (APSP) Bellman-Ford algorithm on weighted graphs. Create path tracing algorithm for any pair of vertices.
In addition, generate a random graphs based on edge density p and weight w and explain the meaning of your weights.
Generate graph classes for adjacency matrix.
Create path tracing algorithm for any pair of vertices
Compute min distance matrix M from given matrix and shortest path matrix P using Bell-Ford algorithm.
Show the results using any random pair of vertices using cost of edges.
Implement loop invariants and asserts.
______________________________
APSP: All Pairs Shortest Paths due to Bellman-Ford ,
Bellman-Ford Algorithm allows only positive weights.
Floy-Warshal’s Algorithm allows negative weights, but not negative cycles.
Brutforce Approach: repeat Dijkstra’s algorithm on each vertex.
Complexity
O(|V|) ) * O(|E| lg |V|) == O(|V||E|)lg |V|) ),
Since |E| = O(|V|2),
O(|V||E|)lg |V|) ) = O(|V|3)lg |V|) )
Question can we do better than that?
APSP: Bellman-Ford, Floyd-Warshall’s All Pairs Shortest Paths
For both directed and undirected graphs, APSP graph not tree.
For each k, consider the kth row and kth column to fill all other entries.
If the sum (in red) i-row, j-th column is less than the value in (i,j)-th place, replace the entry and record it.


Current freelance projects in the category C & C++
Reverse engineering of console utilities for querying SSD controllers (Flash ID)1. Purpose of the work Extraction of the application programming interface (API) for interaction with SSD/NVMe controllers from the provided set of console utilities (Phison, Silicon Motion, Realtek, Maxiotek, Marvell, JMicron, etc.). The result should be working code in C/C++… C & C++, Desktop Apps ∙ 7 days 3 hours back ∙ 6 proposals |
Development of a Minecraft Java Seed Map / Seed Viewer for the websiteDevelopment of Minecraft Java Seed Map / Seed Viewer for the websiteProject Description A browser-based tool Minecraft Java Seed Map / Seed Viewer needs to be developed, which will work on our website and allow the user to enter a seed from Minecraft Java Edition and view an… C & C++, HTML & CSS ∙ 7 days 10 hours back ∙ 15 proposals |
Comparative analysis of the effectiveness of custom software (v2.2-field) and reference software (Meshtastic v2.x)
22 USD
Comparative analysis of the effectiveness of custom software (v2.2-field) and reference software (Meshtastic v2.x) on the identical hardware platform (ESP32 + SX1268, 2W) based on the criteria of range, throughput, link stability, and power consumption. Conduct tests with… C & C++, C# ∙ 11 days 17 hours back ∙ 2 proposals |



