views:

142

answers:

1

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