한양대학교 정보보호 및 알고리즘 연구실 이재준 담당교수님 : 박희진 교수님

Slides:



Advertisements
Similar presentations
Numbers Treasure Hunt Following each question, click on the answer. If correct, the next page will load with a graphic first – these can be used to check.
Advertisements

한양대학교 정보보호 및 알고리즘 연구실 이재준 담당교수님 : 박희진 교수님
한양대학교 정보보호 및 알고리즘 연구실 이재준 담당교수님 : 박희진 교수님
Introduction to Algorithms
AP STUDY SESSION 2.
1
Feichter_DPG-SYKL03_Bild-01. Feichter_DPG-SYKL03_Bild-02.
1 Vorlesung Informatik 2 Algorithmen und Datenstrukturen (Parallel Algorithms) Robin Pomplun.
© 2008 Pearson Addison Wesley. All rights reserved Chapter Seven Costs.
Copyright © 2003 Pearson Education, Inc. Slide 1 Computer Systems Organization & Architecture Chapters 8-12 John D. Carpinelli.
Chapter 1 The Study of Body Function Image PowerPoint
Copyright © 2011, Elsevier Inc. All rights reserved. Chapter 6 Author: Julia Richards and R. Scott Hawley.
Author: Julia Richards and R. Scott Hawley
1 Copyright © 2013 Elsevier Inc. All rights reserved. Appendix 01.
1 Copyright © 2013 Elsevier Inc. All rights reserved. Chapter 3 CPUs.
Properties Use, share, or modify this drill on mathematic properties. There is too much material for a single class, so you’ll have to select for your.
UNITED NATIONS Shipment Details Report – January 2006.
October 17, 2005 Copyright© Erik D. Demaine and Charles E. Leiserson L2.1 Introduction to Algorithms 6.046J/18.401J LECTURE9 Randomly built binary.
Introduction to Algorithms 6.046J/18.401J
1 RA I Sub-Regional Training Seminar on CLIMAT&CLIMAT TEMP Reporting Casablanca, Morocco, 20 – 22 December 2005 Status of observing programmes in RA I.
Properties of Real Numbers CommutativeAssociativeDistributive Identity + × Inverse + ×
Custom Services and Training Provider Details Chapter 4.
Mean, Median, Mode & Range
FACTORING ax2 + bx + c Think “unfoil” Work down, Show all steps.
Year 6 mental test 10 second questions
REVIEW: Arthropod ID. 1. Name the subphylum. 2. Name the subphylum. 3. Name the order.
Recurrences : 1 Chapter 3. Growth of function Chapter 4. Recurrences.
PP Test Review Sections 6-1 to 6-6
EU market situation for eggs and poultry Management Committee 20 October 2011.
Bright Futures Guidelines Priorities and Screening Tables
Copyright © 2013, 2009, 2005 Pearson Education, Inc.
MAT 205 F08 Chapter 12 Complex Numbers.
4.6 Perform Operations with Complex Numbers
Bellwork Do the following problem on a ½ sheet of paper and turn in.
2 |SharePoint Saturday New York City
Exarte Bezoek aan de Mediacampus Bachelor in de grafische en digitale media April 2014.
VOORBLAD.
Copyright © 2012, Elsevier Inc. All rights Reserved. 1 Chapter 7 Modeling Structure with Blocks.
Constant, Linear and Non-Linear Constant, Linear and Non-Linear
1 RA III - Regional Training Seminar on CLIMAT&CLIMAT TEMP Reporting Buenos Aires, Argentina, 25 – 27 October 2006 Status of observing programmes in RA.
Factor P 16 8(8-5ab) 4(d² + 4) 3rs(2r – s) 15cd(1 + 2cd) 8(4a² + 3b²)
Basel-ICU-Journal Challenge18/20/ Basel-ICU-Journal Challenge8/20/2014.
1..
CONTROL VISION Set-up. Step 1 Step 2 Step 3 Step 5 Step 4.
© 2012 National Heart Foundation of Australia. Slide 2.
Understanding Generalist Practice, 5e, Kirst-Ashman/Hull
1 10 pt 15 pt 20 pt 25 pt 5 pt 10 pt 15 pt 20 pt 25 pt 5 pt 10 pt 15 pt 20 pt 25 pt 5 pt 10 pt 15 pt 20 pt 25 pt 5 pt 10 pt 15 pt 20 pt 25 pt 5 pt Synthetic.
Model and Relationships 6 M 1 M M M M M M M M M M M M M M M M
25 seconds left…...
Rational Functions and Models
1 hi at no doifpi me be go we of at be do go hi if me no of pi we Inorder Traversal Inorder traversal. n Visit the left subtree. n Visit the node. n Visit.
Analyzing Genes and Genomes
©Brooks/Cole, 2001 Chapter 12 Derived Types-- Enumerated, Structure and Union.
Essential Cell Biology
Intracellular Compartments and Transport
PSSA Preparation.
Essential Cell Biology
Immunobiology: The Immune System in Health & Disease Sixth Edition
1 Chapter 13 Nuclear Magnetic Resonance Spectroscopy.
Energy Generation in Mitochondria and Chlorplasts
Murach’s OS/390 and z/OS JCLChapter 16, Slide 1 © 2002, Mike Murach & Associates, Inc.
Asymptotics Section 3.2 of Rosen Spring 2010 CSCE 235 Introduction to Discrete Structures Course web-page: cse.unl.edu/~cse235 Questions:
1 Decidability continued…. 2 Theorem: For a recursively enumerable language it is undecidable to determine whether is finite Proof: We will reduce the.
Math Review with Matlab:

Introduction to Algorithms Lecture 2 Chapter 3: Growth of Functions.
Asymptotic Notation Faculty Name: Ruhi Fatima
Presentation transcript:

한양대학교 정보보호 및 알고리즘 연구실 2008. 1. 28 이재준 담당교수님 : 박희진 교수님 Growth of function Chapter 3. Growth of function 한양대학교 정보보호 및 알고리즘 연구실 2008. 1. 28 이재준 담당교수님 : 박희진 교수님

Contents of Table Asymptotic notation O-notation Ω-notation Θ-notation Asymptotically lager/smaller notation o-notation ω-notation 3. Relationship between this notations

Asymptotic notation 1. Asymptotic notation - Which one is better algorithm for enough inputs? we are studing asymptotic efficiency of algorithms ( size of the input in the limit, as the size of the inputs increases without bound. )

g(n) is asymptotically upper bound for f(n) 1. Asymptotic notation O-notation Asymptotically upper bound - Definition for all n, n ≥ n0 , 0 ≤ f(n) ≤ c g(n), the function f(n) is smaller or equal to g(n) to within constant factor. g(n) is asymptotically upper bound for f(n)

O-notation 1. Asymptotic notation - Definition O(g(n)) = { f(n) : there exist positive constant c and n0 such that 0 ≤ f(n) ≤ c g(n) for all n ≥ n0 } f(n) cg(n) n0 n

O-notation 1. Asymptotic notation - f(n) = O(g(n)) means f(n) ∈ O(g(n)) - means f(n) = θ(g(n)) implies f(n) = O(g(n)). since θ-notation stronger notation than O-notation O(g(n)) f(n)

O-notation Example 1. Asymptotic notation , ( ) , ( ) Use the definition of O-notation to prove the following property.

O-notation Solution to example 1. Asymptotic notation O-notation Solution to example To show that , we need to find c and n0 For maximize value of , we make n0 = 1 Thus, c=a+\b\ and, n0 = 1 (because c is positive contant)

g(n) is asymptotically lower bound for f(n) 1. Asymptotic notation Ω-notation Asymptotically lower bound - Definition for all n, n ≥ n0 , 0≤ c g(n) ≤ f(n) , the function f(n) is larger or equal to g(n) to within constant factor. g(n) is asymptotically lower bound for f(n)

Ω-notation 1. Asymptotic notation - Definition Ω (g(n)) = { f(n) : there exist positive constant c and n0 such that 0 ≤ c g(n) ≤ f(n) for all n ≥ n0 } n0 cg(n) f(n) n

g(n) is asymptotically tight bound for f(n) 1. Asymptotic notation θ-notation Asymptotically tight bound - Definition for all n, n ≥ n0 , 0≤ c1g(n) ≤ f(n) ≤ c2g(n), the function f(n) is equal to g(n) to within constant factor. g(n) is asymptotically tight bound for f(n)

θ-notation - Definition 1. Asymptotic notation θ(g(n)) = { f(n) : there exist positive constant c1, c2 and n0 such that 0 ≤ c1 g(n) ≤ f(n) ≤ c2 g(n) for all n ≥ n0 } c1g(n) n0 f(n) c2g(n) n

θ-notation 1. Asymptotic notation - f(n) = θ(g(n)) means f(n) ∈ Θ(g(n)) - Definition of θ(g(n)) requires that every member f(n) ∈ Θ(g(n)) be asymptotically nonnegative (=asymptotically positive) θ(g(n)) f(n) f(n) n0

θ-notation Example 1. Asymptotic notation , Use the definition of θ-notation to prove the following property.

θ-notation Solution to example 1. Asymptotic notation θ-notation Solution to example When n0=6 then c1 ≤ 0 c1 need to be positive constant so n0=6 is wrong. When n0=1 then ≤ 1/2 (n0=1) When n0=7 then c1 ≤ 1/14 (n0=7) thus, (n0=7)

θ-notation Example 1. Asymptotic notation , Use the definition of θ-notation to prove the following property.

θ-notation Solution to example 1. Asymptotic notation θ-notation Solution to example To show that , we need to find c1 , c2 and n0 so, the more value of n is larger, the more value of is smaller So, value of will be smaller than 6. Thus,

Theorem 3.1 Relationship 1. Asymptotic notation For any two functions f(n) and g(n), we have f(n) = Θ(g(n)) if and only if f(n) = O(g(n)) and f(n) = Ω(g(n)). θ(g(n)) O(g(n)) Ω(g(n))

equal sign to mean set membership 1. Asymptotic notation Asymptotic notation in equations and inequalities - Stands alone on the right-hand side of an equation equal sign to mean set membership n ∈ O(n2)

interpret is as standing for some anonymous function 1. Asymptotic notation Asymptotic notation in equations and inequalities - Asymptotic notation appears in a formula interpret is as standing for some anonymous function f(n) ∈ Θ(n)

Eliminate inessential detail and clutter 1. Asymptotic notation Asymptotic notation in equations and inequalities - Asymptotic notation appears in a formula There is no point in specifying all lower-order terms exactly Eliminate inessential detail and clutter

Number of anonymous functions Number of times the asymptotic notation Asymptotic notation in equations and inequalities - Number of anonymous functions Number of anonymous functions Number of times the asymptotic notation

Asymptotic notation in equations and inequalities - Asymptotic notation appears in left-hand side of an equation right-hand side of an equation provides a coarser level of detail than the left-hand side. There is a way to choose the anonymous functions on the right of the equal sign to make the equation valid. <수학> 하나의 위상(位相) 공간의 위상에 있어서 그 개집합(開集合)이 그 공간의 다른 특정한 위상을 가진 개집합에 포함되어 있는. 이 말은 , 등호의 왼쪽에서 anonymous function을 골라냄으로써, 등호를 valid 하게 할수 있습니다.

Asymptotic notation in equations and inequalities - A number of such relationships can be chained together f(n) ∈ Θ(n) h(n) ∈ Θ (n2) <수학> 하나의 위상(位相) 공간의 위상에 있어서 그 개집합(開集合)이 그 공간의 다른 특정한 위상을 가진 개집합에 포함되어 있는. g(n) ∈ Θ(n)

f(n) is asymptotically smaller than g(n) 2. Asymptotically larger/smaller notation o-notation Asymptotically smaller - Definition for all n, n ≥ n0 , any positive constant c, c>0, 0 ≤ f(n)< cg(n), the function f(n) is smaller to g(n) to within constant factor. f(n) is asymptotically smaller than g(n)

o-notation 2. Asymptotically larger/smaller notation - Definition o(g(n)) = { f(n) : for any positive constant c>0, there exist a constant n0 >0 such that 0 ≤ f(n) < cg(n) for all n ≥ n0 } f(n) o(g(n)) n0

o-notation 2. Asymptotically larger/smaller notation - We use o-notation to denote an upper bound that is not asymptotically tight. - this limit shows the function f(n) becomes insignificant relative to g(n) as n approaches infinity

o-notation Example 1. Asymptotic notation Use the definition of o-notation to prove the following property. f(n) = o(n2)

o-notation Solution to example 2. Asymptotically larger/smaller notation o-notation Solution to example 2n = o(n2) If f(n) = o((g(n)) then

f(n) is asymptotically larger than g(n) 2. Asymptotically larger/smaller notation ω -notation Asymptotically larger - Definition for all n, n ≥ n0 , any positive constant c, c>0, 0 ≤ cg(n) < f(n), the function f(n) is larger to g(n) to within constant factor. f(n) is asymptotically larger than g(n)

ω-notation 2. Asymptotically larger/smaller notation - Definition ω(g(n)) = { f(n) : for any positive constant c>0, there exist a constant n0 >0 such that 0 ≤ cg(n) < f(n) for all n ≥ n0 } f(n) ω(g(n))

ω -notation 2. Asymptotically larger/smaller notation - We use ω-notation to denote a lower bound that is not asymptotically tight. - f(n) ∈ ω(g(n)) if and only if g(n) ∈ o(f(n)). - if the limit exists. That is, f(n) becomes arbitrarily large relative to g(n) as n approaches infinity. Arbitrarily : 독단적으로, 제멋대로, 마음대로

ω -notation Example 2. Asymptotically larger/smaller notation Use the definition of o-notation to prove the following property. f(n) = ω(n)

ω -notation Solution to example 2. Asymptotically larger/smaller notation ω -notation Solution to example =ω(n) If f(n) = ω((g(n)) then

3. Relationship between this notations f(n) O(g(n)) o(g(n)) ω(g(n)) Ω(g(n)) θ(g(n)) O(g(n)) Ω(g(n)) ω(g(n)) o(g(n))

Transitivity Transpose symmetry 3. Relationship between this notations f(n) = Θ(g(n)) and g(n) = Θ(h(n)) imply f(n) = Θ(h(n)) , f(n) = O(g(n)) and g(n) = O(h(n)) imply f(n) = O(h(n)) , f(n) = Ω(g(n)) and g(n) = Ω(h(n)) imply f(n) = Ω(h(n)) , f(n) = o(g(n)) and g(n) = o(h(n)) imply f(n) = o(h(n)) , f(n) = ω(g(n)) and g(n) = ω(h(n)) imply f(n) = ω(h(n)). f(n) O(g(n)) o(g(n)) ω(g(n)) Ω(g(n)) f(n) = O(g(n)) if and only if g(n) = Ω(f(n)), f(n) = o(g(n)) if and only if g(n) = ω(f(n)).

Reflexivity Symmetry f(n) = Θ(f(n)) f(n) = O(f(n)) f(n) = Ω(f(n)) 3. Relationship between this notations Reflexivity f(n) = Θ(f(n)) f(n) = O(f(n)) f(n) = Ω(f(n)) Symmetry f(n) = Θ(g(n)) if and only if g(n) = Θ(f(n)). θ(g(n)) O(g(n)) Ω(g(n))

4. Question and Answer Q&A