Competitive Programming
Computer Architecture
Machine Learning / Reinforcement learning
Robotics
100

How large is an 'int' variable?

32 bits / 4 byte

100

What is one piece of hardware that every PC has?

CPU, memory

100

What does AI stand for?

Artificial Intelligence

100

What is a sumobot?

When two robots attempt to push each other out of a circle

200

What is one sorting algorithm with a guaranteed time complexity of O(n log n)?

Merge sort, Heap sort (quick sort is not a correct answer!)

200

List 4 types of logic gates

AND, OR, NOT, XOR, NAND, NOR, ...

200

If I wanted to develop an algorithm to predict whether an audio file is from a cat or a dog, what type of learning would I use?

Supervised (classification)

200

What is the computer/control center?

EV3 Brick

300

Explain how we can use binary search to approximate the positive solution of x^2=2?

Check if x^2-2 is negative or not during the binary search
300

Explain the difference between fixed-point and floating-point data types.

Fixed-point data types fixed the number of digits after the decimal point, while floating-point data types do not have such restriction.

300

What are the four essential components of a MDP (markov decision process)

States, available actions at a defined state, the probability an action will lead from one state to another, immediate rewards for states

300

What is differential drive?

2 wheels driven separately by a motor, allows it to move back and forth but not sideways

400

Define trees in a single sentence without using any words similar to "vertex" or "edge".

A graph is a tree if and only if it is connected and does not contain any cycles.

400

Explain why GPUs can be faster than CPUs in certain applications.

GPUs have many more processing units that can be ran parallel.

400

What is a Q-Table in reinforcement learning

A map of all rewards resulting from action a at state s.

400

How to get a robot to follow a line?

Using a color sensor choose left side line following or right side. For right side: if the sensor detects black, turn right & if it detects white, turn left

500

Explain how to use segment trees to find the number of inversions in an array in O(n log n) time.

(too long)

500

Explain why FPGAs can be faster than GPUs in certain applications.

FPGAs allow engineers to create custom circuits, so they can be highly optimized for a specific application. On the other hand, GPUs do not have such low-level control.

500

Explain how policy iteration works.

1. Define a random policy and set (any) values for states

2. Loop the following until updated policy = previous policy:  

 a. Policy Evaluation (update all values for states)
 b. Policy Improvement (find new best actions for states)

500

What is the process of determining the position of a robot based on distance and speed over a period of time?

Dead recknoning

M
e
n
u