COMP5270 Assignment 3 Feedback-only 中文详细题解
来源: Assignment 3 (Feedback-only) Solutions.pdf
主题: Hamming ANN/LSH, Knapsack approximation, streaming max coverage, AMS sketch, reservoir sampling
这份 feedback-only assignment 有 5 个问题:
| 题目 | 类型 | 核心内容 | 复习建议 |
|---|---|---|---|
| Problem 1 | Programming | 实现 Hamming ANN / LSH,并用 ANN Benchmarks 比较性能 | PDF 没给理论 solution;实现和 benchmark 不是优先复习重点 |
| Problem 2 | Theoretical | Knapsack 的 2-approximation 和 streaming 版本 | 重点,贪心 + fractional knapsack relaxation |
| Problem 3 | Theoretical | 只选 |
重点,threshold greedy + guessing optimum |
| Problem 4 | Theoretical | 用 Tug-of-War / AMS sketch 估计 |
很重要,streaming sketch + 4-wise independence |
| Problem 5 | Theoretical | 不知道 stream 长度时,均匀随机抽 |
重点,reservoir sampling |
PDF 开头说明:Problem 1 是 programming,Problem 2-5 是 theoretical,并且 solutions 只提供 theoretical questions。 所以下面不会写 ANN Benchmarks 的代码实现,只整理它的任务目标和复习取舍;后面四题会详细写。
统一背景与符号
故事背景是 D&D / magical items。
有
含义: