I don't understand why "Missing $ inserted error" is occurring. The output table won't even show. At first, the output was fine with $$ inserted at both ends. and now it's messed up all the tables in the file. and it is not even in the output.
\begin{table}
\centering
\caption{Lexical Unification of Roman Urdu}
\begin{tabular}{l}
\hline
Algorithm: \\ \hline
\begin{tabular}[c]{@{}l@{}}1.~~~~~ Maintain a CSV file of scrapped data \\2.~~~~~ Clean the data by removing \\~ ~ ~ ~ ~a.~~~~~ @mentions, \#hashtags, URLs, and Unicode characters. \\~ ~ ~ ~ ~b.~~~~~ White spaces and from the start and end of the line. \\~ ~ ~ ~ ~c.~~~~~ Non-English, numeric values, and special symbols. \\3.~~~~~ Read the CSV file \\4.~~~~~ Compute a list F of the most frequently occurring words \\~ ~ ~ ~ ~a.~~~~~
$$\sum_{i=1}^n(\text{string}S)$$
\\5.~~~~~ Select strings with the highest frequency \\~ ~ ~ ~ ~a.~~~~~
\begin{equation}
\operatorname{MAX}\left[\sum_{i=1}^n(\operatorname{string} S)\right]
\end{equation}
\\6.~~~~~ Create a list of vowels V \\7.~~~~~ Compare each string to the list of vowels \\~ ~ ~ ~ ~a.~~~~~ Convert strings to lowercase \\~ ~ ~ ~ ~b.~~~~~ For each x in input string S \\~ ~ ~ ~ ~c.~~~~~ If x is in V \\~ ~ ~ ~ ~ ~ ~ ~ ~ i.~~~~ Replace it with empty space \\~ ~ ~ ~ ~d.~~~~~ Else \\~ ~ ~ ~ ~ ~ ~ ~ ~ i.~~~~ Retain it as it is \\8.~~~~~ Replace all instances of the original string in the CSV file \\ ~ ~ ~ ~ ~ with the resultant string with vowels removed.\end{tabular} \\
\hline
\end{tabular}
\label{tab: 100}
\end{table}
\parbox
or use a cell type that introduces paragraph mode (p
,m
, tabularx'sX
, etc.). Inline math should also work. Why are you using a tabular at all though? Wouldn't just nested enumerate environments make more sense for this kind of list? Or even use one of the packages specifically for algorithms? Incidentally, you should never use$$
at all in LaTeX; use\[
..\]
instead: see here.\\ ~ ~ ~ ~
what is the intention there?