Photo credit: Hector Garcia-Molina

Mehran Sahami

Professor (Teaching) of Computer Science
Associate Chair for Education and Director of Educational Affairs, Computer Science
Robert and Ruth Halperin University Fellow in Undergraduate Education

Gates Building, Room 180
Computer Science Department
Stanford University
Stanford, CA 94305

Email: sahami at
Office Phone: (650) 723-6059

My office hours for Autumn 2015-16 are Wednesdays 2:30-4:30pm in Gates 180.


In 2007, I joined the faculty in the Computer Science Department at Stanford University. From 2001 to 2006, I also taught in the CS department at Stanford as a Lecturer. From 2002-2007, I was a full-time Senior Research Scientist at Google. After moving to Stanford, I continued to consult at Google part-time until 2010. My research interests include computer science education, machine learning, and information retrieval on the Web. Please see my publications web page for more information.

Previously, I worked for several years as a Senior Engineering Manager at Epiphany. Prior to working at Epiphany, I completed my PhD in the Computer Science Department at Stanford. I was also an undergrad at Stanford and I loved it so much that I didn't want to leave.

Outside of work, I enjoy spending time with family, playing the guitar, going on outdoor excursions, and sleeping (which seems to be getting rarer and rarer these days). I also continue to maintain a foot in the start-up world by serving on advisory boards to various companies.

Undergraduate Computer Science Major

Current Stuff O' Interest (i.e., Professional Activities)

Older Stuff That You Might Still Want Links To