L1 · 演算法與圖:Euler circuit
演算法規格、圖的六個詞彙、Euler vs Hamiltonian、七橋、Euler 定理與圈拼接、adjacency list/matrix。
CS4335 · DESIGN AND ANALYSIS OF ALGORITHMS · 完整課程頁
每講一頁,按課件的節→頁碼寫;推導每一步附「依據」,頁碼以 PDF 頁序(等於投影片頁尾的 N / M)為準。符號第一次出現就定義,已定義過的連到 math/ 模組。零外鏈、零依賴,離線可讀。
原件:/Users/kifuko/dev/cityu_cs/cs4335/files/,9 講共 395 頁(43 + 32 + 55 + 53 + 34 + 59 + 32 + 37 + 50)+ 7 份 tutorial + 2 份 assignment + 期中卷。原件唯讀。
順序照課件:L1 圖論與可計算性、L2 貪心、L3 MST、L4 最短路、L5 背包與排程(期中前)、L6 分治、L7–L9 動態規劃。期中考範圍是貪心與分治(L1–L6),L5 p2 明寫「Dynamic programming will NOT be tested」;期末含 L7–L9。
演算法規格、圖的六個詞彙、Euler vs Hamiltonian、七橋、Euler 定理與圈拼接、adjacency list/matrix。
貪心的定義、interval scheduling 的三條失敗規則與 EFT、交換論證、interval partitioning 的 depth 下界。
tree/forest、spanning tree/MST、generic method、cut property 的證明、Kruskal(disjoint set)、Prim(priority queue)。
SSP 規格、w(p)/δ、optimal substructure、relaxation、Dijkstra 逐步表、|S| 歸納正確性、陣列/堆成本、Boat Rescue。
分數背包的單價排序與交換證明、0-1 反例、最大遲到(EDF)、總等待時間(SJF)、no idle 與 inversion。
分治三步、merge sort 與合併、遞迴式的展開與望遠鏡、counting inversions、Karatsuba、iteration method。
optimal substructure 與 overlapping、p(j)、OPT(j) 二選一、記憶化 M[j]/B[j]、六工作例、Manhattan tourist。
LCS/SCS 的二維表、0-1 背包 OPT(i,w)、pseudo-polynomial 與 input size 的位元算法、billboard(not required)。
OPT(i,v)、負環判斷、Bellman–Ford、背包回顧、longest palindromic subsequence/substring 與三個變體。
一頁集中對照:每題列原件題目、解法步驟、答案與缺口。答案照原件;原件沒解答的數值標「自算」。
講稿引用的每個「預備概念」都在 math/00-index.md 有對應節;索引含 9 講 × 7 模組的覆蓋矩陣與每講逐條對照。模組:00 記號、01 圖、02 遞迴式、03 證明、04 DP、05 計數、06 資料結構。
p.N 就是課件頁碼。math/ 的定義;不要在講稿與 math/ 之間來回猜同一個符號的意思。lectures/index.html;不需要伺服器、沒有外部字體或腳本。T6-26docx.docx 題目檔是空的;T6 的資料取自解答。planning/00-asset-inventory.md;沒有新增或改寫頁碼。