Framwork and Algorithms to Solve Computer Science Problems