Efficient solutions to some known algorithm problems