Algorithm (4th edition) -1.4.7 considerations

Source: Internet
Author: User

Summary: Title.

Focus:

1. The following points are noted:

· Large constant

We need to be sensitive to the possible large constants.

· Non-deterministic inner loop

The assumption that the inner loop is the determinant is not always correct.

· Instruction time

It is not always correct to assume that the time required for each instruction execution is always the same.

· System factors

A garbage collector or a JIT compiler, or a download being made from the Internet, can greatly affect the results of the experiment.

· Pitches

When we compare two programs that perform the same task, it often happens that one of them is faster in some scenarios and slower in other scenarios.

· Strong reliance on input

The run time should be relative to the input.

· Multiple problem parameters

Multiple parameters are also possible.

Algorithm (4th edition) -1.4.7 considerations

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.