Data Journey

International Studies Grad. racing for AI Engineer

Download as .zip Download as .tar.gz View on GitHub
22 December 2020

Asymptotic Annalysis_01

by mervyn

Background

Suppose that we have two algorithms, how can we tell which is better?

Asymptotic Analysis

In general, we will always analyze algorithms with respect to one or more variables Examples with one variable:

There are other algorithms which are significantly faster as the problem size increases

Quadratic Growth

Consider the two functions

Polynomial Growth

To demonstrate with another example,

Counting Instructions

Suppose that we had two algorithms which sorted a list of size n and the runtime (in the number of instructions) is given by:

countins

Is this a serious difference between these two algorithms?

Weak Ordering

Consider the following definitions: We will consider two functions to be equivalent, \(f\sim g\), if \(\lim_{n \rightarrow \infty}\frac{f(n)}{g(n)}=c\) where, \(0 < c <\infty\) We will state that \(f<g\) if \(\lim_{n \rightarrow \infty}\frac{f(n)}{g(n)}=0\)

source “K-MOOC 허재필 교수님의 <인공지능을 위한 알고리즘과 자료구조: 이론, 코딩, 그리고 컴퓨팅 사고> 강좌의 5-1 함수의 점근적 분석법 중(http://www.kmooc.kr/courses/course-v1:SKKUk+SKKU_46+2020_T1)”

back next

tags:

Comments

Post comment
Loading...

Share this: