Prüfer Sequence Algorithm in Clojure

Because implementing it is the best way of studying for an exam. Yeah. Ok, I'll go and do some work now.

Edit: Thanks to Rasmus Svensson for suggesting I store the adjacent vertices as sets.

Filed under  //   algorithms   clojure  

Comments (0)

Leave a comment...