- Дано:
- таблиця з іменами і відповідними IP адресами (бінарне дерево, ключ - ім’я, значення - список/масив).
- граф з IP і вказано, де включений поточний комп’ютер;
- в графі вказано відстань між роутерами (затримка часу) Розробити програму, яка:
- Визначає шлях для заданого хосту (BFS, DFS).
- Визначає мінімальну відстань до хосту з врахуванням відстані (алгоритм Дейкстрі).
- Емулює розірвання деяких вершин графу і перерахунок шляхів.
ENGLISH:
- Given:
- table with names and corresponding IP addresses (binary tree, key - name, value - list / array).
- graph with IP and indicates where the current computer is turned on;
- the distance between routers (time delay) is specified in the column Develop a program that:
- Defines the path for a given host (BFS, DFS).
- Determines the minimum distance to the host, taking into account the distance (Dijkstri algorithm).
- Emulates the rupture of some vertices of the graph and the recalculation of paths.