IOM 2021, Блиц — Задача 10
The Blitz-contest of IOM-2021
Условие
Consider a graph with vertices in all lattice points of a 3d space with , and edges between all pairs of vertices that have Euclidean distance 1 from each other. First, a breadth-first search is run to find the distance from to . Then, a breadth-first search with the meet-in-the-middle approach is run for the same task. What is the ratio of the number of vertices processed by the first BFS to the number of vertices processed by the second BFS?
Give the answer rounded to the nearest integer.
(Both BFSs terminate when the desired distance is known.)
Отговори
- 4
Решение
Informatics(2). Answer: 4
Оригинал в Архива: iom-2021-blitz-tasks-eng.pdf · официални решения: iom-2021-blitz-answers-eng.pdf