r/6thForm • KCL | Computer Science Y2 • Jul 18 '22

🎓 UNI / UCAS Computing Interview prep - Does anyone have a list of questions for Oxford, Imperial etc.

56 Upvotes

40 comments sorted by

View all comments

8

u/[deleted] Jul 18 '22

I can give you one of my interviews:

Question 1: A composition is the number of ways you can write a positive integers as a sum of other positive integers (for example, you can write 3 as 1+1+1, 1+2, 2+1 and 3 so there are 4 compositions of the number 3). How many compositions are there of the number 12? Try it by writing out 1+1+1+1+1+1+1+1+1+1+1+1

Question 2: A partition is the same thing as a composition, except order doesn't matter, so for example for the number 3 has 3 partitions as it can be written as 1+1+1, 1+2 and 3. Come up with a formula for the number of partitions of n.

After some attempting, the tutor interrupted me by saying "it's acually very hard to come up with a formula for that" (in fact I believe it's an unsolved problem in mathematics).

Question 3: The coefficient of x^n in (1+x+x²+x³..)(1+x²+x⁴+x⁶..)(1+x³+x⁶+x⁹..)... is the number of partitions of n. Why?

7

u/Potential_Class_7532 Jul 18 '22

After some attempting, the tutor interrupted me by saying "it's acually very hard to come up with a formula for that" (in fact I believe it's an unsolved problem in mathematics).

Partition function?

4

u/[deleted] Jul 18 '22

Yes, there's no closed form expression for it.

5

u/IngenuityBroad595 KCL | Computer Science Y2 Jul 18 '22 edited Jul 18 '22

Great thank you so much! You have been a great help

4

u/Yoshi8767 Year 12 | Maths | FM | Physics | CS Jul 18 '22

What is the answer to the last question?

9

u/[deleted] Jul 18 '22

I'll try my best to explain it lol so you can describe a partition as something like the sum of x amount of 1s, y amount of 2s and so on, and you can rewrite the expansion as (x⁰+x¹+x²+x³..)((x²)⁰+(x²)¹+(x²)²+(x²)³...)((x³)⁰+(x³)¹+(x³)²+(x³)³...)... and for each partition you choose how many of each integer you want by 'choosing' the appropriate x^n value in each bracket. I know that's a really trash and very not rigorous explanation lol but I hope it's clear enough I haven't done maths for a month lmao and I'm tired. For what it's worth, I didn't get that in the interview and I got in to that college.

2

u/Yoshi8767 Year 12 | Maths | FM | Physics | CS Jul 18 '22

That actually helped me a lot. Thank you

2

u/Slow_Associate_5426 Jul 18 '22

Wouldn't you be able to do q1 with dynamic programming in like O(n2)?

1

u/Y-Woo Oxford - PhysPhil Jul 18 '22

Hey just heads up most colleges don’t change their questions at all from year to year and while you didn’t state your college OP and others could coincidentally be interviewed at the same college or find out from your post history if you happened to mention it anywhere and it could throw off the admissions process

11

u/[deleted] Jul 18 '22

I mean my tutor (who gave me this interview) literally said "we don't reuse questions, go tell everyone" when I asked him. So I think it's fine lol

1

u/Y-Woo Oxford - PhysPhil Jul 18 '22

Oh okie cool of him. We asked all 4 years of students at my college on my course and all of them got the exact questions lol.

9

u/InspectorWarren Jul 18 '22

If the admissions people want to minimise that risk, they should come up with new questions. It’s not the job of the student to keep that information secret.