I am wondering about the following: Assume you have a linear equation system of the form: $$Ax = b$$, where $A \in \mathbb{Z}_q^{n \times m}$, $x \in \mathbb{Z}_q^m$, $b \in \mathbb{Z}_q^n$ and we want to solve for $x$. I know that in the $\mathbb{R}$, one can do this via Gaussian Elimination for example. Do such algorithms also exists for linear equation systems in $\mathbb{Z}_q$, where $q$ prime (which should guarantee that every element in $Z_q$ has an inverse, correct?). It seems to me we can directly transfer the Gaussian Elimination algorithm directly, because the division operation is not defined in $\mathbb{Z}_q$.
Asked
Active
Viewed 36 times
1
-
1As long as division by anything non-zero is defined (which is the case modulo a prime) the algorithms from linear algebra work out the same way. See this oldie for an example of $q=29$. It's about finding the inverse of a 3x3 matrix, but it's all row operations, so... – Jyrki Lahtonen Mar 15 '21 at 16:20