HNHacker News
TopNewBestAskShowJobs

jacksontale

128 karma · joined February 13, 2015

submissionscomments
jacksontale··on Pearl No. 4 – Kth Smallest in the Union of Two Sorted Collections
Edited the post and added your comment
jacksontale··on Pearl No. 4 – Kth Smallest in the Union of Two Sorted Collections
Good thought, and also if k < N / 2
jacksontale··on Pearl No. 4 – Kth Smallest in the Union of Two Sorted Collections
This blog post is about using OCaml to solve the Pearl No. 4 in the book of "Pearls of Functional Algorithm Design, by Richard Bird".

I am very keen to OCaml and so using OCaml to solve various algorithm problems to have some fun.

jacksontale··on Pearl No. 4 – Kth Smallest in the Union of Two Sorted Collections
Sorry for the confusion. You are absolutely right. I just copy/paste the original problem statement in the book.

Will change

jacksontale··on Visualize Randomness in OCaml
But anyway, I updated teh post, so people could be aware of this diff.
jacksontale··on Visualize Randomness in OCaml
ah ok, thanks.
jacksontale··on Visualize Randomness in OCaml
Just tried, but seems not that different

----------------

PNG:

https://raw.githubusercontent.com/MassD/typeocaml_code/maste...

-------------

JPG:

https://raw.githubusercontent.com/MassD/typeocaml_code/maste...

jacksontale··on Visualize Randomness in OCaml
Can I know why?
jacksontale··on Generating Permutations
Yeah, factoradic is awesome.
jacksontale··on Binomial Heap in OCaml
I think its SML in the book
jacksontale··on Binomial Heap in OCaml
Yeah that book is one of the most important book in functional world
jacksontale··on Functional Pearl No.2 – The Max Number of Surpassers
Yeah, you are right, the example number list in the post was not that awesome. If I am free at any time, i will modify the example. Just refining the diagram will be quite painful.
jacksontale··on Functional Pearl No.2 – The Max Number of Surpassers
Yeah, I formally introduced the book when I presented the pearl 1: http://typeocaml.com/2015/02/02/functional-pearl-no-1-the-mi...
jacksontale··on Functional Pearl 1 – The Min Missing Natural Number
Hi, I was using pure functional programming style, so list only.
jacksontale··on Functional Pearl 1 – The Min Missing Natural Number
Yeah, you are right, I should have mentioned that.