Форум программистов
 

Восстановите пароль или Зарегистрируйтесь на форуме, о проблемах и с заказом рекламы пишите сюда - alarforum@yandex.ru, проверяйте папку спам!

Вернуться   Форум программистов > IT форум > Помощь студентам
Регистрация

Восстановить пароль

Купить рекламу на форуме - 42 тыс руб за месяц

Ответ
 
Опции темы Поиск в этой теме
Старый 09.12.2011, 23:02   #1
Жандарбекова
Новичок
Джуниор
 
Регистрация: 09.12.2011
Сообщений: 1
По умолчанию :(Tree hierarchy problem. Можете решить их

License to Match
In preparation of a highly dangerous mission, the participating agents of the gargantuan Liecht-ensteinian secret service (LSS) need to work in pairs of two for safety reasons. All members in the LSS are organized in a tree hierarchy. Communication is only possible via the official channel: an agent has a secure phone line to his direct superior and a secure phone line to each of his direct subordinates. Initially, each agent knows whether or not he is taking part in this mission. The goal is for each agent to find a partner.
Devise an algorithm that will match up a participating agent with another participating agent given the constrained communication scenario. A \match" consists of an agent knowing the identity of his partner and the path in the hierarchy connecting them. Assume that there is an even number of participating agents so that each one is guaranteed a partner. Furthermore, observe that the phone links connecting two paired-up agents need to remain open at all times. Therefore, you cannot use the same link (i.e., an edge) twice when connecting agents with their partners.

License to Distribute
We consider another day at the office of the LSS as in Exercise 13. After the above mission was successful, the involved agents collected a large number of sensitive documents. Some agents might have a lot of them and others have none. Now they need to distribute the documents throughout the agency such that each person in the LSS has the same amount of data to process.
Assume that there are n agents in the LSS and that there is also a total of n documents. Devise a way for the agents to distribute their sensitive data: In the end, each agent should have exactly one document. The communication scheme is the same as above.

Последний раз редактировалось Жандарбекова; 10.12.2011 в 02:02.
Жандарбекова вне форума Ответить с цитированием
Ответ


Купить рекламу на форуме - 42 тыс руб за месяц



Похожие темы
Тема Автор Раздел Ответов Последнее сообщение
Можете решить задачу? Марина* Паскаль, Turbo Pascal, PascalABC.NET 0 06.06.2009 20:24
2 задачи на Массив и матрицу посмотрите пжл) Jereme Паскаль, Turbo Pascal, PascalABC.NET 2 17.12.2008 23:56
Решить 4 задачи по си versetty Фриланс 1 28.05.2008 20:14
Системы счисления помогите решить и посмотрите ошибки vdv08 Паскаль, Turbo Pascal, PascalABC.NET 1 13.05.2008 15:58
Решить задачи Дарья Русанова Помощь студентам 3 30.03.2008 16:15