study some algorithms