Skip to content

Commit

Permalink
data473 next lecture scaffold
Browse files Browse the repository at this point in the history
  • Loading branch information
gavryushkin committed Oct 9, 2023
1 parent 5fa6d9d commit eba173e
Showing 1 changed file with 52 additions and 28 deletions.
80 changes: 52 additions & 28 deletions teaching/DATA473.html
Original file line number Diff line number Diff line change
Expand Up @@ -43,37 +43,24 @@ <h5>
<h3>Table of contents</h3>

<ul>
<li> <a href="#/P0">Part 0: Introduction</a>
<ul>
<li> <a href="#/L1">Lecture 1: Background</a>
<li> <a href="#/L2">Lecture 2: Turing machines</a>
<li> <a href="#/L3">Lecture 3: Universal Turing machine</a>
</ul>
<li> <a href="#/P1">Part 1: Classical approaches to scalability</a>
<ul>
<li> <a href="#/L4">Lecture 4: Recursive functions, halting problem</a>
<li> <a href="#/L5">Lecture 5: Kolmogorov complexity</a>
<li> <a href="#/L6">Lecture 6: Properties of Kolmogorov complexity</a>
<li> <a href="#/L7">Lecture 7: Basic algorithms recap</a>
<li> <a href="#/L8">Lecture 8: Sorting</a>
<li> <a href="#/L9">Lecture 9: NP-hard problems</a>
<li> <a href="#/L10">Lecture 10: Proving NP-hardness</a>
</ul>
<!--
<li> <a href="#/P2">Part 2: Scalability in statistical learning</a>
<li> <a href="#/P3">Part 3: Scalability in modern machine learning</a>
-->
<li> <a href="#/L1">Lecture 1: Background</a>
<li> <a href="#/L2">Lecture 2: Turing machines</a>
<li> <a href="#/L3">Lecture 3: Universal Turing machine</a>
<li> <a href="#/L4">Lecture 4: Recursive functions, halting problem</a>
<li> <a href="#/L5">Lecture 5: Kolmogorov complexity</a>
<li> <a href="#/L6">Lecture 6: Properties of Kolmogorov complexity</a>
<li> <a href="#/L7">Lecture 7: Basic algorithms recap</a>
<li> <a href="#/L8">Lecture 8: Sorting</a>
<li> <a href="#/L9">Lecture 9: NP-hard problems</a>
<li> <a href="#/L10">Lecture 10: Proving NP-hardness</a>
<li> <a href="#/L11">Lecture 11: AI for discovering new algorithms</a>
</ul>
</section>

<section>
<font size="6">
<h3>Literature, resources</h3>
<ul>
<li> <a href="https://youtube.com">YouTube</a>
<ul>
<li><a href="https://youtu.be/XfpMkf4rD6E?t=614">Introduction to transformers</a> <a href="#/P#">#P3</a>
</ul>
<li> <a href="COSC341">These slides</a>
<li> <a href="https://docs.google.com/document/d/1YkzpoqHQvIJTTDRF9bGhYUt43vKXMnYz95n3hyLkw1Q/edit">Complementary (rapidly evolving) lecture notes</a>
<li> <a href="https://timroughgarden.org/">Tim Roughgarden</a>: <a href="http://www.algorithmsilluminated.org/">Algorithms Illuminated</a>
Expand All @@ -97,8 +84,8 @@ <h3><a href="https://biods.org/people/">Biological Data Science Lab @UCNZ</a></h
</section>
</section>

<section id="P0">
<h3>Part 0: Introduction</h3>
<section>
<h3>Introduction</h3>
</section>

<section>
Expand Down Expand Up @@ -701,13 +688,40 @@ <h3>The divide-and-conquer paradigm</h3>
<section>
<section data-markdown>
### Cook-Levine Theorem
The 3-SAT problem is NP-hard.
</section>

<section data-markdown>
### Problem: Satisfiability
- **Input**: A list of Boolean decision variables $x_1, x_2,\ldots, x_n$; and a list of constraints, each a disjunction of one or more literals.
### Problem: $k$-SAT
- **Input**: A list of Boolean decision variables $x_1, x_2,\ldots, x_n$; and a list of constraints, each a disjunction of at most $k$ literals.
- **Output**: A truth assignment to $x_1, x_2,\ldots, x_n$ that satisfies every constraint, or a correct declaration that no such truth assignment exists.
</section>

<section>
<h3>Example</h3>
\begin{align}
& x_1 \vee x_2 \vee x_3 & \neg x_1 \vee \neg x_2 \vee x_3 \\
& \neg x_1 \vee x_2 \vee x_3 & \neg x_1 \vee x_2 \vee \neg x_3 \\
& x_1 \vee \neg x_2 \vee x_3 & x_1 \vee \neg x_2 \vee \neg x_3 \\
& x_1 \vee x_2 \neg \vee x_3 & \neg x_1 \vee \neg x_2 \vee \neg x_3 \\
\end{align}
</section>

<section data-markdown>
### Independent set in NP-hard

**Theorem:** The 3-SAT problem reduces to the independent set problem.

**Corollary:** The independent set problem is NP-hard.

**Proof:** Let's consider an example first:

$x_1 \vee x_2 \vee x_3$

$\neg x_1 \vee x_2 \vee x_3$

$\neg x_1 \vee \neg x_2 \vee \neg x_3$
</section>
</section>

<section data-markdown>
Expand Down Expand Up @@ -758,6 +772,16 @@ <h3>Acceptable inaccuracies</h3>
</ol>
</section>

<section data-markdown id="L11">
## Lecture 11: AI for discovering new algorithms
</section>

<section data-markdown>
[Mankowitz, Faster Sorting Algorithms, 2023](https://paperpile.com/app/p/1b25b93d-5ced-0e44-b477-965813bf4561)

![](images/alphadev_abstract.png)
</section>

<section id="LX">
<h2>Lecture X: <a href="https://youtu.be/733m6qBH-jI?t=57">How to read papers</a></h2>
</section>
Expand Down

0 comments on commit eba173e

Please sign in to comment.