algorithm dots