I need BFS and DFS sml code. does anyone how should I write it?
A:
Since it's SML, I suggest you write a higher-order function that can be passed either stack operations or queue operations.
Norman Ramsey
2010-01-28 23:08:29