You are not logged in. Please login at www.codechef.com to post your questions!

×

Iarcs Problem Archive - Number of Routings(NUMROUTE)

link NUMROUTE

Can someone please tell me the algorithm I should use to solve this problem. My algorithm is giving TLE error.

asked 12 Jan '15, 08:26

rahulthebest's gravatar image

0★rahulthebest
11
accept rate: 0%


Fast Matrix Exponentiation will be used to reduce the complexity to O(N^3*logK).

http://stackoverflow.com/questions/14272119/finding-the-number-of-paths-of-given-length-in-a-undirected-unweighted-graph

link

answered 12 Jan '15, 11:37

roxtar123's gravatar image

2★roxtar123
262
accept rate: 0%

toggle preview
Preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported
  • mathemetical formulas in Latex between $ symbol

Question tags:

×109

question asked: 12 Jan '15, 08:26

question was seen: 1,006 times

last updated: 12 Jan '15, 11:37