Some algorithm studies