HBC52020GoodGame,GG,数学,博弈论Train Driver题解

一天到晚红烧的鱼 算法基础篇 38 0
挑战自我,勇攀编程高峰!全网最全C++题库,助您成为编程达人。
WJJ, DYX and ZZH from the team Nonsense Time want to find a place in BUAA to hold their team training. BUAA can be regarded as an undirected connected graph G = with n nodes as places and m edges as routes, where the length of each edge is 1.Since there is no fixed place in BUAA for programming competition training, they have to find a meeting place and make training at that place. They always want to minimize the total distance they need to consume from their previous locations to the meeting place so that they save more energy for training.In this model, DYX may show up with equal probability at a node randomly chosen from the set A, ZZH may show up with equal probability at a node randomly chosen from the set B, and WJJ may show up with equal probability at a node randomly chosen from BUAA. When they want training, they will find a place to meet such that the total distance can be minimized.As the coach of Nonsense Time, please help them to calculate the expected minimum total distance based on this model.

It's time for training! WJJ, DYX and ZZH from the team Nonsense Time want to find a place in BUAA (shorten for Beihang University) to hold their team training. BUAA can be regarded as an undirected connected graph G = (V, E) with n nodes as places and m edges as routes, where the length of each edge is 1. Since there is no fixed place in BUAA for programming competition training, they have to find a meeting place and make training at that place. They always want to minimize the total distance they need to consume from their previous locations to the meeting place so that they save more energy for training. However, their previous locations are not always fixed as well. As we know, each of DYX and ZZH is always at one of the places they usually stay at, such as dormitory, canteen, etc., but WJJ may be at anywhere inside BUAA! They constantly need to estimate the total distance they would consume, so they build a statistic model for themselves. In this model, DYX may show up with equal probability at a node randomly chosen from the set A, ZZH may show up with equal probability at a node randomly chosen from the set B, and WJJ may show up with equal probability at a node randomly chosen from BUAA. When they want training, they will find a place to meet such that the total distance can be minimized. As the coach of Nonsense Time, please help them to calculate the expected minimum total distance based on this model.

HBC52020GoodGame,GG,数学,博弈论Train Driver题解
-第1张图片-东莞河马信息技术
(图片来源网络,侵删)
不断学习,不断挑战,才能在编程领域中脱颖而出!全网最全C++题库,助您成为编程高手!

标签: HBC52020GoodGame GG 数学 博弈论Train Driver题解