411
351
Misc
250
330
100

What is the bisection bandwidth of a ring?

2
100

What is the time complexity of selection sort?

O(n^2)

100

Who is the best CS professor?

Our goat Larry Herman

100

What does it mean if sets A and B are disjoint?

They don't have elements in common

100

What is map(fun x -> x*4) [1;2;3]

[4;8;12]

200

What is the AMAT of a 4-way set associative TLB with an access time of 8 cycles, a page access translation that takes 100 cycles, and a hit rate of 20%? (Can leave unsimplified).

8 + 0.8 * 100

200

Describe the best case (time complexity) for heap sort and also give the time complexity

The nodes are all the same, O(n)

200

What is the name of the application TA's use for office hours?

Docket

200

What is ∼ (p∨q)?

(~p) ^ (~q)

200

Which fold method utilizes tail recursion?

fold_left

300

How do you avoid aliasing when using VIPT?

Cache Size <= page size * associativity

300

What is the goal of Floyd's Algorithm? (Floyd-Warshall)

It finds the least-weight path between each pair of vertices in a directed, weighted, simple, connected graph

300

How old is Kruskal?

70 years old

300

If set A has n elements, how many elements does its power set have?

2^n

300

What does the regex "e?" represent?

exactly zero or one e

400

When using Node IDs instead of 1 bit per core for reducing directory overhead, what is the inequality you want to satisfy?

N * log(P) < P

400

What is the definition of the set NP?

The set NP is the set of decision problems such that there exists a polytime algorithm on a NTM which takes an input/instance I and: Q(I) = Yes, Q(I) = No

400

What is the University of Maryland CS ranking according to USNews?

16th

400

What is the formula for the permutation of n items of k types?

n! / (n1! * n2! * .. * nk!)

400

Does this function type check?

fn f(n:[u32]) -> u32 { 

n[0] 

}

No (array length is not known. Need to fill in len)

500

What is the Iron Law?

CPU time = instruction count * cycles per instruction * clock cycle time

500

Radix sort:

312 321 633 313 623 223 213

213 223 312 313 321 623 633

500

What is the course number for Operating Systems?

CMSC412

500

How many bits does a full adder add?

3

500

What is Church's encoding for true?

lambda x. lambda y. x

M
e
n
u