I'm having issues formatting a table with certain merged cells. This is the code I have so far:
\begin{table}[h] \caption{Results} \label{table_example} \begin{center} \begin{tabular}{ | *{9}{c|} } \hline & \multicolumn{3}{c|}{PMX} & \multicolumn{3}{c|}{CX} \\ \cline{4-9} Number of Nodes in Graph & Heuristic Cost (NN) & Iterations & Average Cost & Cost Difference & Iterations & Average Cost & Cost Difference \\ \hline 10 &230.60& 0 & 0 & 0 & 0 & 0 & 0 \\ \hline 50 &260.88& 0 & 0 & 0 & 0 & 0 & 0 \\ \hline 100 &349.65& 0 & 0 & 0 & 0 & 0 & 0 \\ \hline 500 & 442.81& 0 & 0 & 0 & 0 & 0 & 0 \\ \hline 1000 & 488.13 & 0 & 0 & 0 & 0 & 0 & 0 \\ \hline \end{tabular} \end{center} \end{table} But this is what I get when what I want is for the PMX heading to be over the "Iterations", "Average Cost", "Cost Difference" and the CX heading to be over the same as well. I'm also not sure why it's missing a lot of the horizontal lines in the table.


