Suppose $A$ has the following sparsity pattern
$$
\left[\begin{array}{llllll}
0 & x & x & 0 & 0 & x \\
x & 0 & 0 & 0 & x & 0 \\
0 & 0 & x & 0 & 0 & x \\
0 & x & 0 & 0 & 0 & x \\
x & 0 & 0 & x & 0 & 0 \\
x & 0 & x & 0 & 0 & 0
\end{array}\right]
$$
(a) Find a pivoting strategy based on the criterion of putting the sparser rows at the top. What is the fill-in?
(b) Is your pivoting strategy in part (a) optimal? If so, explain why you think it is. If not, can you find an optimal strategy?