Linear Data Structures
Trees
Graphs, Hashes, Heaps, oh my!
Get to know Milod
Tufts CS Trivia
100

This is the ordering principle for a queue

What is FIFO?

100

These are the 4 types of tree traversals

What are pre-order, in-order, post-order, and level-order?

100

True/False: Dijkstra's algorithm requires all edges to be non-negative weights

What is True?

100

Milod also teaches this core CS course

What is 105?

100

These 7 classes make up the core curriculum for the CS major

What are 10, 11, 15, 40, 105, 160, 170?

200

Typewriter, our new project focusing on stacks, replaced this old project

What is CalcYouLater?

200

This is the time complexity for searching in a BST

What is O(n)?

200

This is the formula to calculate load factor

What is number of elements / number of buckets?

200

Milod earned his PhD from this university

What is University of Maryland, College Park?

200

This professor has been the head of the CS department since Sept 2021

Who is Jeff Foster?

300

This is the time complexity of removing an element at the front of an Array List

What is O(n)?

300

This is the definition of 'height' when discussing nodes in a tree

What is the number of edges on the longest path from the node to a leaf?

300

This is the main tradeoff between representing a graph as an adjacency matrix vs an adjacency list

What is an adjacency matrix takes more space, but gives faster edge lookup time?

300

Milod has a child with this name

What is Ramin?

300

This person taught CS15 in Spring 2024

Who is Marty Allen?

400

This is why you can't search in O(log n) in a sorted Linked List, even though the elements are in order

What is lack of random access?

400

The game Minecraft has this many types of trees

What is 10? (or 13 if we count Nether Fungi)

400

These are the formulas for finding the index of the left and right children of a node in a heap

What are left = 2i and right = 2i+1?

400

This semester was Milod's first time teaching CS15

What is Fall 2021?

400

Tufts recently introduced these 2 new CS minors

What are "AI Development" and "Application of AI"?

500

This is how std::list is implemented

What is a doubly-linked list?

500

This is the level order after inserting 27 into this AVL tree

50

/      \

20        80

/  \      /  \

10    30  70    90

/      

25      

What is 50, 20, 80, 10, 27, 70, 90, 25, 30?

50

/      \

20         80

/  \       /   \

10    27    70    90

/  \      

25    30      

500

This is why deleting an entry from an open-addressing (linear probing) table is trickier than deleting from a chained table

What is needing to leave tombstone markers?

500

Spell Milod's last name

What is KAZEROUNIAN?

500
Tufts began offering the CS major in this year

What is 1981?

M
e
n
u