1. Trang chủ
  2. » Giáo án - Bài giảng

8 1 bigoh tủ tài liệu training pdf

17 61 0

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

THÔNG TIN TÀI LIỆU

Thông tin cơ bản

Định dạng
Số trang 17
Dung lượng 1,88 MB

Các công cụ chuyển đổi và chỉnh sửa cho tài liệu này

Nội dung

Asymptotic Analysis Big-‐Oh: Basic Examples Design and Analysis of Algorithms I... Example #1then Claim : if Proof : Choose Need to show that We have, for every and Nextcore AI -Gopal Sh

Trang 1

Asymptotic Analysis

Big-‐Oh: Definition

Design and Analysis

of Algorithms I

Trang 2

Nextcore AI -Gopal Shangari

Trang 3

Nextcore AI -Gopal Shangari

Trang 4

Asymptotic Analysis

Big-‐Oh: Basic Examples

Design and Analysis

of Algorithms I

Trang 5

Example #1

then Claim : if

Proof : Choose

Need to show that

We have, for every

and

Nextcore AI -Gopal Shangari

Trang 6

Claim : for every

Example #2

is not

Proof : by contradiction Suppose

Then there exist constants such that

But then [cancelling from both sides]:

Which is clearly False [contradict i o n ]

Nextcore AI -Gopal Shangari

Trang 7

Nextcore AI -Gopal Shangari

Asymptotic Analysis

Big Oh: Relatives (Omega & Theta)

Design and Analysis

of Algorithms I

Trang 8

OMEGA NOTATION

Definition :

If and only if there exist

constants such that

Picture

Nextcore AI -Gopal Shangari

Trang 9

Theta Notation

if and only if

Defini4on :

and

Equivalent : there exist constants such that

Nextcore AI -Gopal Shangari

Trang 10

WHICH IS TRUE? CHECK ALL

Trang 11

LIMLE8OH NOTA4ON

Defini4on : if and only if for all constants c>0, there exists a constant

such that

Exercise :

Trang 12

Where Does Notation Come From?

Trang 13

Asymptotic Analysis

Additional Examples

Design and Analysis

of Algorithms I

Trang 14

EXAMPLE #1

Nextcore AI -Gopal Shangari

Claim :

Proof : need to pick constants

Note :

So if we choose

Q.E.D

such that

then (*) holds

Trang 15

Claim :

Proof : by contradiction If

constants such that

then there exist

But then [cancelling ]

Which is certainly false

Q.E.D

EXAMPLE #2

Nextcore AI -Gopal Shangari

Trang 16

Example #3

Claim : for every pair of (posi( veti func( ons f(nti,

g(nti,

Nextcore AI -Gopal Shangari

Trang 17

EXAMPLE #3 (CON( NUEDTI

Nextcore AI -Gopal Shangari

Proof :

For every n, we have

And

Thus

Q.E.D

Ngày đăng: 17/11/2019, 07:36

TỪ KHÓA LIÊN QUAN