Lecture 8 CSE 331 Sep 12, 2014.

Slides:



Advertisements
Similar presentations
Lecture 30 CSE 331 Nov 8, HW 7 due today Place Q1, Q2 and Q3 in separate piles I will not accept HWs after 1:15pm DO NOT FORGET TO WRITE DOWN YOUR.
Advertisements

Lecture 30 CSE 331 Nov 13, To be strictly enforced For the rest of the semester on Fridays SUBMIT your HOMEWORKS by 1:10 PM.
Lecture 38 CSE 331 Dec 7, The last few days Today: Solutions to HW 9 (end of lecture) Wednesday: Graded HW 9 (?), Sample final, Blog post on the.
Lecture 33 CSE 331 Nov 20, Homeworks Submit HW 9 by 1:10PM HW 8 solutions at the end of the lecture.
Lecture 7 CSE 331 Sep 16, Feedback forms VOLUNTARY Last 5 mins of the lecture.
CS2420: Lecture 4 Vladimir Kulyukin Computer Science Department Utah State University.
Lecture 24 CSE 331 Oct 30, Homework stuff Please turn in your HW 6 Graded HW 5 and HW 7 at the END of the lecture.
Lecture 8 CSE 331 Sep 18, Homeworks Hand in your HW 1 HW 2 and solutions to HW 1 out at the end of class Not naming your collaborators is same as.
Analysis of Algorithms CPS212 Gordon College. Measuring the efficiency of algorithms There are 2 algorithms: algo1 and algo2 that produce the same results.
CSCI-256 Data Structures & Algorithm Analysis Lecture Note: Some slides by Kevin Wayne. Copyright © 2005 Pearson-Addison Wesley. All rights reserved. 4.
Lecture 3 CSE 331. Stable Matching Problem Problem Statement Algorithm Problem Definition Implementation Analysis.
Lecture 28 CSE 331 Nov 9, Mini project report due WED.
Asymptotic Analysis CSE 331. Definition of Efficiency An algorithm is efficient if, when implemented, it runs quickly on real instances Implemented where?
Analysis of Algorithms: Math Review Richard Kelley, Lecture 2.
Lecture 33 CSE 331 Nov 20, HW 8 due today Place Q1, Q2 and Q3 in separate piles I will not accept HWs after 1:15pm Submit your HWs to the side of.
CSE 332: NP Completeness, Part II Richard Anderson Spring 2016.
Lecture 32 CSE 331 Nov 16, 2016.
Lecture 8 CSE 331 Sep 14, 2011.
Lecture 6 CSE 331 Sep 9, 2013.
CS 3343: Analysis of Algorithms
Lecture 17 CSE 331 Oct 3, 2014.
Lecture 34 CSE 331 Nov 26, 2012.
Lecture 15 CSE 331 Oct 5, 2012.
Lecture 7 CSE 331 Sep 14, 2016.
Lecture 6 CSE 331 Sep 11, 2017.
Lecture 9 CSE 331 Sep 20, 2010.
Objective of This Course
Lecture 33 CSE 331 Nov 18, 2016.
Lecture 14 CSE 331 Sep 30, 2011.
Lecture 27 CSE 331 Nov 3, 2017.
Lecture 26 CSE 331 Nov 2, 2012.
Lecture 7 CSE 331 Sep 13, 2017.
Lecture 9 CSE 331 Sep 19, 2012.
Lecture 2 CSE 331 Sep 1, 2011.
Lecture 37 CSE 331 Nov 30, 2011.
Lecture 32 CSE 331 Nov 15, 2017.
Lecture 33 CSE 331 Nov 14, 2014.
Lecture 27 CSE 331 Oct 31, 2014.
Lecture 33 CSE 331 Nov 15, 2013.
Lecture 34 CSE 331 Nov 18, 2011.
Lecture 3 CSE 331 Aug 31, 2012.
CSE 373 Data Structures and Algorithms
Lecture 8 CSE 331 Sep 16, 2016.
Lecture 7 CSE 331 Sep 13, 2011.
Lecture 18 CSE 331 Oct 9, 2017.
Lecture 31 CSE 331 Nov 14, 2012.
Lecture 31 CSE 331 Nov 12, 2010.
Lecture 11 CSE 331 Sep 23, 2011.
Lecture 8 CSE 331 Sep 15, 2017.
Lecture 11 CSE 331 Sep 19, 2014.
Lecture 10 CSE 331 Sep 21, 2012.
Lecture 24 CSE 331 Oct 24, 2014.
Lecture 36 CSE 331 Nov 28, 2011.
Lecture 36 CSE 331 Nov 30, 2012.
Lecture 8 CSE 331 Sep 15, 2011.
Lecture 9 CSE 331 Sep 15, 2014.
Lecture 9 CSE 331 Sep 20, 2010.
Lecture 6 CSE 331 Sep 12, 2016.
Lecture 7 CSE 331 Sep 10, 2014.
Lecture 9 CSE 331 Sep 19, 2011.
Lecture 31 CSE 331 Nov 11, 2011.
Lecture 25 CSE 331 Oct 28, 2011.
Lecture 7 CSE 331 Sep 11, 2013.
Lecture 30 CSE 331 Nov 9, 2011.
Lecture 19 CSE 331 Oct 10, 2016.
Lecture 27 CSE 331 Nov 4, 2016.
Lecture 11 CSE 331 Sep 20, 2013.
Lecture 27 CSE 331 Nov 1, 2013.
Lecture 36 CSE 331 Nov 22, 2013.
Lecture 37 CSE 331 Dec 3, 2018.
Presentation transcript:

Lecture 8 CSE 331 Sep 12, 2014

HW 1 due today I will not accept HWs after 1:15pm Place Q1, Q2 and Q3 in separate piles I will not accept HWs after 1:15pm

Other HW related stuff HW 2 has been posted online: see piazza Solutions to HW 1 at the END of the lecture

Clarification on collaboration You can collaborate with up to 2 other folks in each HW You can change your group from one HW to another HW but not on the same HW Collaboration is interpreted as any discussion on the HW problems beyond the problem definition even if you ignore the discussion in your final writeup

Main Steps in Algorithm Design Problem Statement Problem Definition n! Algorithm “Implementation” Analysis Correctness Analysis

HW 1 due today I will not accept HWs after 1:15pm Place Q1, Q2 and Q3 in separate piles I will not accept HWs after 1:15pm

Definition of Efficiency An algorithm is efficient if, when implemented, it runs quickly on real instances Implemented where? Platform independent definition What are real instances? Worst-case Inputs N = 2n2 for SMP Efficient in terms of what? Input size N

Definition-II n! How much better? By a factor of 2? Analytically better than brute force How much better? By a factor of 2?

At most c.Nd steps (c>0, d>0 absolute constants) Definition-III Should scale with input size If N increases by a constant factor, so should the measure Polynomial running time At most c.Nd steps (c>0, d>0 absolute constants) Step: “primitive computational step”

More on polynomial time Problem centric tractability Can talk about problems that are not efficient!

Reading Assignments Sections 1.2, 2.1, 2.2 and 2.4 in [KT]

Asymptotic Analysis Travelling Salesman Problem (http://xkcd.com/399/)

Which one is better?

Now?

And now?

The actual run times n! 100n2 Asymptotic View n2

Asymptotic Notation ≤ is O with glasses ≥ is Ω with glasses

Another view © Aleksandra Patrzalek, 2012