CPSC 490 - Student Presentations 1
For your student presentation, you must either
- choose one problem below and present its solution
- choose an algorithm/problem we have not talked about in class and introduce it
The presentation should be 7-9 minutes long, and will be worth 10% of your grade (everyone will do two presentations this term).
Presentations should describe the problem, present an algorithm, and prove/justify its correctness and running time.
As soon as you choose a problem, post a private message on Piazza. Problems and time slots go by first come first serve :)
You may choose the same topic as someone else if you're in different sections.
Also, feel free to ask us for hints/resources to solve any of the problems below.
Presentation Dates
Feburary 12th (Tuesday)
February 14th (Thursday)
Problem List (more to be added)
-
★★ Let G be an undirected graph. Give two algorithms to colour each node of G black or white, so that every white node has at least half its neighbours coloured black, and every black node has at least half its neighbours coloured white. The algorithm must run in O(V+E) time. (Trevin Wong (202))
-
★★ Given an undirected graph, find the edges that are part of ALL minimum spanning trees. For full marks, you can present two or more approaches that run in O(E^2 log E) or one approach that runs in O(E log E). (Ryan Knauer (202))
-
★★ Given an undirected tree, in O(n) or O(n log n) find a vertex such that when removed, it disconnects the tree into multiple pieces each with fewer than half of the vertices of the original tree. If you do this recursively into those pieces, what is the maximum depth of recursion and total run time? Justify your answer. (Juan Lee (202))
-
★★ Given a rooted tree, find a O(n) or O(n log n) algorithm to classify every edge as either heavy or light. A heavy edge is one that points to a subtree at least half the size of the subtree at the parent node; a light edge is any edge that is not heavy. In any path in the tree, what is the maximum number of light edges? Justify your answer.
-
★★★ In class we learned an algorithm for the longest common subsequence problem that ran in O(n^2) time (where both sequences have length n). Suppose you know that the longest common subsequence is upper bounded by n^(1/2). Give an O(n^(3/2)) time algorithm to compute the length of the longest common subsequence. (Ben Zheng (201))
-
★★★ Consider a gambling game with K types of bets of the following type: for the i-th type of bet, you bet one chip, and you win w_i chips (w_i is an integer) with probability p_i, and you lose the chip you wagered with probability 1 - p_i. Given that you start with n chips, compute the maximum probability that you will eventually make a profit using an optimal betting strategy; you stop playing if you run out of chips. (Lauren Bentley (201))
-
★★★★ Give a data structure that represents an "array" but supports the following operations in O(log n) time: insert/delete/get element at any index, reversing a subarray.
-
★★★★ A clique is a complete subgraph. Given an undirected graph, partition the vertices into two sets A and B, such that vertices in A forms a clique, and vertices in B have no edges between them, or determine that this is impossible. What is the lowest time complexity you can get for your solution? Hint: it can be done in polynomial time.
-
★★★★ An alternating permutation of size n is a rearrangement of the array [1, 2, ..., n] that alternates between increase and decrease in adjacent elements (e.g. 15243). Give a dynamic programming algorithm to count the number of alternating permutations of size n that runs in polynomial time. (Edwin Zhou (201))
-
★★★★ Find the number of permutations of size n such that the longest increasing subsequence does not have length 3, in polynomial time.
-
★★★★★ A tandem repeat in a string is two adjacent copies of the same substring (e.g. CATCAT). Give an algorithm to detect the presence of at least one tandem repeat in O(n log^2 n) or better.
-
★★★★★ We learned in class how to solve the path of maximum bandwidth problem and how to efficiently answer many queries. We will turn to the problem of efficient updates. Given an undirected graph, construct a data structure that supports the following queries in O(log V) time: get bandwidth of the path of maximum bandwidth between two nodes, increase the bandwidth of an edge.
Algorithms (more to be added)
-
Johnson’s algorithm. (Michelle Lee (202))
-
Suurballe’s algorithm.
-
Any polynomial time algorithm to find k-th shortest path in graph with non-negative weights. (Karan Grover (201))
-
Any linear time algorithm to find biconnected components.
-
Tarjan’s bridge and articulation point detection algorithm.
-
Any linear time algorithm to find an euler tour (or report that no tour exists). (Justin Oh (201))
-
Push-relabel algorithm for maximum flow
-
Gomory-Hu Tree and all-pairs min cut
-
Hungarian algorithm for maximum weight bipartite matching (Andrew Bolyachevets (201))
-
Blossoms algorithm for general matching (Kenny Park (201))
-
One of these DP optimization techniques: convex hull (Rehim Memmedli (201)), divide and conquer, Knuth.
-
Knuth-Morris-Pratt algorithm for string matching. (Arian Naderi-Azad (202))
-
Boyer-Moore string matching. (Elad Michaeli (201))
-
Applications of hashing and the Rabin-Karp algorithm. (Barak Jacob (201))
-
How to implement and when use an LL parser, or recursive descent parser (pick one).
-
Any dynamic programming parsing algorithm for context-free grammars (e.g. the CYK algorithm). (Sam Sung (202))
-
Longest common substring of n strings.
-
Fast Fourier Transform. (Victor Pineda (201))
-
Fast Walsh-Hadamard transform
-
Heavy light decomposition
-
Games and Grundy numbers (Daniel Brodsky (202))