r/compsci • u/TopcatTomki • Aug 14 '13
Algorithims Everyone Should Know?
What are some of you're favourite algoritms or concepts that you think everyone should know, whether they solve problems that crop up frequently, or are just beautiful in their construction?
379
Upvotes
View all comments
Show parent comment
2
u/Porges Aug 14 '13
Under Automata and parsing, I'd suggest Brzozowski's minimization algorithm, solely because it's easy to remember, and way cool.
You can obtain a reversed minimal DFA from an input by doing
So Brzozowski's algorithm is... just do this twice to obtain a minimal DFA from the original input: