Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions hw1/YushengZhao/p9_16.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# min(b') s.t A' x' + b' = b x'>= 0 and b' >= 0
# trivial solution is x' = 0 and b' = b
2 changes: 2 additions & 0 deletions hw1/YushengZhao/p9_6.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# standard DP problem
# needs $log(v_max)$ bits to describe $v_max$. Exponential time
7 changes: 7 additions & 0 deletions hw1/YushengZhao/p9_7.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# floor division of K rounds some weights to 0, such weights maybe added in correctly to solution
# very roughly
# ϵ ∝ Σ_i floor(v_i / K)
# ϵ ∝ floor(v_i / K) * l
# K ∝ l/ϵ
# but also need to supress v_max to be small, let
# K = v_max * l / ϵ