Computer Execution Time Problem

Click For Summary
SUMMARY

The discussion centers on the calculation of CPU time and the implications of percentage reductions in execution time. The formula used is CPU Time = Σ(individual IC time), with a specific example where the integer time is calculated as 100 = 75 + X, leading to X being 25. The percentage reduction is calculated as 12.5%, but participants caution about the context of the percentage, comparing it to sales tax calculations where the base value can change the percentage outcome. This highlights the importance of clarity in defining the base for percentage calculations.

PREREQUISITES
  • Understanding of CPU time calculations
  • Familiarity with percentage reduction formulas
  • Knowledge of integer time concepts
  • Basic principles of sales tax calculations
NEXT STEPS
  • Research CPU time optimization techniques
  • Learn about the implications of percentage calculations in different contexts
  • Study integer arithmetic and its applications in computing
  • Explore the differences in tax calculation methods across jurisdictions
USEFUL FOR

Students in computer science, software engineers, and anyone involved in performance optimization and mathematical calculations in programming.

kosmocomet
Messages
11
Reaction score
0

Homework Statement


upload_2019-2-23_11-20-42.png


Homework Equations


  • CPU Time= Σ(individual IC time)

The Attempt at a Solution


What I did was first find the integer time, which is 100=75+X, and X is 25. To find the percent reduced,
I did 100(1-x)=75+25(1-0.5). This means x is 0.125 or 12.5 %.

Is this correct?
 

Attachments

  • upload_2019-2-23_11-20-42.png
    upload_2019-2-23_11-20-42.png
    14.1 KB · Views: 514
Physics news on Phys.org
Yes
 
I agree with @phinds. But beware the trap, percentage of what?

It is like the sales tax problem. An item sells for $1. The tax is $0.10. so the total is $1.10. Is the tax 10/100=10% or 10/110=9.08%. Different states and different countries require one of those definitions by law and forbid the other definition.
 

Similar threads

  • · Replies 2 ·
Replies
2
Views
5K
  • · Replies 23 ·
Replies
23
Views
3K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 22 ·
Replies
22
Views
4K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 9 ·
Replies
9
Views
3K
  • · Replies 1 ·
Replies
1
Views
1K