Introduction to NetEase public class _ algorithm _ Note a

Source: Internet
Author: User

Http://open.163.com/special/opencourse/algorithms.html

Personal understanding

Progressive analysis is to ignore Machine-dependent constants and, instead of the actual running time

Look at the growth of the running time

(The following = Table approximation, a = B = C, A is not directly associated with C)

Algorithmic complexity = time complexity = number of program executions

= is expressed as a function, preserving the highest exponent, representing the number of executions required by the algorithm. The constant term K, which is understood as an external fixation factor, is linearly related. (such as computer performance)

(Time complexity mainly considers the use of memory, maybe will ignore the number of CPU executions)

Performance adjectives, quantifiers, the most evaluated benchmark, are located at the bottom of the consideration.

Weighted average

Tc (time of each input run) * TP (probability of occurrence)

Insertion sort, time complexity n^2

Arithmetic progression

Continuous integer summation (linear sum)

Theta Notation (n^2)

Merge sort, time complexity nlgn

2 fork Tree and return, length NLG, Width n (n number of iteration)

The last layer of the tree, not necessarily full, may is another constant

    

Introduction to NetEase public class _ algorithm _ Note a

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.