I'm planning a trip to the UK in May. I will stay in London, Edinburgh and Dundee. It would be very interesting for me to attend a lecture in computer science there. Am I allowed to do this as I am not a student in the UK? Where can I find information where and when the lectures take places?
TLDR They won't post public timetables, so find someone at the university to suggest one and turn up, because people are in academica because they love their subject, love talking about their subject even more, and are highly likely to help you out even if its unofficially. /TLDR
No University I know of has a 'public listing' for 'normal' lectures (not that that's saying much its not like I go round looking for them!) but you still have a good few options:
*Bear in mind that most lecturers are very busy, and only ever get busier, so if you do want to contact one, best do it well in advance and don't be disheartened if you don't receive any response.
In theory yes, lectures are controlled and not open to the public because priority must be given to the fee paying students, but your request is so far removed in spirit from what that rule** is meant to protect against no-one will give it a second thought. Case in point, I know one lecturer who often brings her daughter along as the subject is of particular interest to her.
**With regards to comments above, I may of course be proven wrong, but I highly doubt its illegal in any sense, just against regulations of a particular institution. If you really care that much about doing it by the book, there will be some mechanism for prospective students to sit in mid-term for various reasons, find some way to use that (contact the admissions department or the student services).
I think this is a great idea, Good luck!
(EDIT: Universities like anything that boosts their profile so another way if you want to do it officially is say you are documenting your trip in some way (blog, for a school, etc) and contact their press office.)
Universities generally have
You should check the University Department, which are closed to the place you will be staying at OR intend to travel.