Sebastian Thrun, a research professor of computer science at Stanford, revealed today that he had given up his teaching role at the institution to found Udacity, a start-up offering low-cost online classes.