Algorithms by dart