资源
Spring 2018: https://sp18.datastructur.es
by “Disjoint Sets”, you should finish Project 2, Phase 2, and everything before.
Project 1: Gold
HW 1
2 Labs
Project 2, Phase 1
作业中做错的地方:
- disc02: Scope; Pass-by-Value; Static:
笔记
-
Week 7 (2/26 - 3/2) : Asymptotics I, II, III
- Asymptotics 1: Writing Efficient Programs
- Efficiency comes in two flavors:
- Programming cost (course to date).
- How long does it take to develop your programs?
- How easy is it to read, modify, and maintain your code?
- More important than you might think!
- Majority of cost is in maintenance, not development!
- Execution cost (from today to the end of the course)/
- How much time does your program take to execute?
- How much memory does your program require?
- Programming cost (course to date).
- Efficiency comes in two flavors:
- Asymptotics 1: Characterization 1 Clock Time
- How Do I Runtime Characterization?
- Our goal is to somehow characterize the runtimes of the functions below
- Characterization should be simple and mathematically rigorous.
- Characterization should demonstrate superiority
- Our goal is to somehow characterize the runtimes of the functions below
- How Do I Runtime Characterization?
- Asymptotics 1: Techniques for Measuring Computation Cost
- Technique 1: Measuring execution time. (however, may require large amounts of computation time. Result varies with machine, compiler, input data, etc)
- Asymptotics 1: Technique 2: Operation Counting (symbolic count)
- Asymptotics 1: Why Scaling Matters?
- Asymptotic Behavior
- Parabolas vs. Lines
- Asymptotics 1: Worst Case Orders of Growth
- Duplicate Finding: Our goal is to somehow characterize the runtimes of the functions below.
- Asymptotics 1: Simplified Analysis
- Analysis of Nested For Loops
- Asymptotics 1: Big-Theta
- belongs to big theta with N to the 4th (big-theta(N^4))
- Big-Theta: Formal Definition: R(N)
- Asymptotics 2: Simple Nested Loops in Big-Theta
- Asymptotics 2: Nested For Loops in Big-Theta with Geometric Outer Loop
public
- Asymptotics 1: Writing Efficient Programs