Algorithm (4th edition) -1.4.8 processing dependency on input

Source: Internet
Author: User

Summary: Title.

Focus:

1. An effective way to handle dependencies on input:

· More careful modeling of inputs processed by the problem we are addressing

· Guaranteed performance for worst-case scenarios

The worst case scenario in a computer system is a very real concern, because the input of the program may come from another (possibly malicious) user rather than the nature. For example, a Web site that does not provide a performance assurance algorithm is not able to withstand a denial of service attack, an attack by hackers flooding a server with a large number of requests, which can make the site run faster than normal.

· Introducing Randomness

· Sequence of actions performed by analyzing a use case

· Averaging analysis (the cost of a small amount of expensive operations is amortized through a variety of inexpensive operations)

2. The task of the algorithm analyst is to reveal more information about an algorithm as much as possible, while the programmer's task is to use this information to develop programs that effectively solve real-world problems.

Algorithm (4th edition) -1.4.8 processing dependency on input

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.