Advertisement
Guest User

Untitled

a guest
Jun 29th, 2017
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.42 KB | None | 0 0
  1. Napoleon Bonaparte, the great French Emperor and ruthless military genius1 seeks to
  2. establish efficient administrative communication between Paris and N other provinces
  3. in France through one-way broadcast messages from Paris along pre-specified paths.
  4. There are K different languages spoken across the French empire, and thus a lot of
  5. consecutive translations may need to happen along the way to a remote province when
  6. a message is sent, causing unwanted delays. Each province speaks just one of K
  7. languages. Napoleon’s messengers carry message scrolls from Paris (in French) along
  8. a graph G = (V,E) of roads and sailing routes. All roads lead to Paris and only
  9. three-way intersections are present. At each intersection, lies a checkpost where scrolls
  10. come and the message is translated to the language required of the next node in the
  11. path. The emperor has a K × K matrix, C, of positive numbers for the cost C(i, j)
  12. of translating from language i to language j. The translation costs in the matrix are
  13. optimal for each pair and are not symmetric.
  14. (a) Design the efficient algorithm that is in Napoleon’s mind (Assume that you can
  15. read the mind of the genius) to select the language of the scrolls to be used on
  16. each segment (and the translations done at each checkpost) in order to minimize
  17. the total cost of the translations.
  18. (b) Analyze the running time and space requirements of Napoleon’s algorithm and
  19. prove correctness.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement