Profile picture.

Peter Macgregor

Lecturer (Assistant Professor)
School of Computer Science
University of St Andrews



I’m a Lecturer in the School of Computer Science at the University of St Andrews. My research interests are broadly in algorithms for data science and machine learning and I always aim to develop theoretically sound algorithms which work well in practice.

Previously I was a PhD student and postdoctoral researcher at the University of Edinburgh working with He Sun, and I spent a semester at the Simons Institute for the Theory of Computing at UC Berkeley.

Please see my research page to learn more about what I work on.


Please feel free to get in touch at prm4<at>

Alternatively, you can also find me in the real world.

0.21a Jack Cole Building
π Potato Ave.
St Andrews, UK
KY16 9SX

© 2024 Peter Macgregor