Question: Quick and Dirty How do you calculate the prime numbers below 1 0 ? 5 0 ? 1 0 0 ? Use Excel to try
Quick and Dirty How do you calculate the prime numbers below Use Excel to try to produce a solution. Count how many additions, subtractions, divisions and multiplications.
Can we make it more efficient? After you did s do you have to do sss How do you track them? Are there any other rules of thumb observations you can see to improve your algorithm?
What if you were told that division and multiplication are times slower more expensive than addition and subtraction? Can that effect your program?
To Do:
Create a Quick and Dirty pseudocode to solve this problem. Version
Copy and paste version one and call it version Modify version in the next step.
Revisit your code to see if it can be done more efficiently. Version
Copy and paste version and call it version Modify version in the next step.
In a Breakout room with one or two classmates, compare solutions by talking about them. No showing your solution. Version
Write the names of the other people in your breakout room.
What were the observations you had?
Were there any observations you can apply to your algorithm?
Critical thinking: how do you measure your algorithms efficiency? We call this a metric.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
