Algorithmic Problems Related To Trees