I am given an $n \times n$ matrix ${\bf A}$, with the following properties: It's diagonals elements are all $0$'s, it is symmetric, and any element of ${\bf A}$ have value either $0$ or $1$. How do I find $k$th power of ${\bf A}$ given constraint on $k = 3000$ and $n = 3000$?
I was trying out with matrix exponentiation, but it's computation complexity is ${\cal O}(n^3 \log(k))$ which is too high with such constraints.
But looking at it again, I didn't see the "$3bn^3+$" part before $O(n^2)$.
– Joe Wells Oct 16 '18 at 17:49