# Thread: Quality Control Algorithm

1. ## Quality Control Algorithm

Newb here. What is the best algorithm to use when calculating quality control?

Scenario --
I am making widgets, and I want to check 5% of all widgets for accuracy. How do I calculate if the widget needs to be checked, or if it can pass without a check?

2. ## Re: Quality Control Algorithm

Are these software widgets?

3. ## Re: Quality Control Algorithm

Are you asking in the right place? This is a software forum. I've yet to see any meaningful (realistic?) algorhytms pulled from manufacturing to software development that translated well.

4. ## Re: Quality Control Algorithm

Sorry, Algorithm is a bit of a strong word. I should have said logic.

I am thinking about trying the following sloppy pseudocode
__________________________________________________ _________
integer notCheckedWidgets = 0;
integer percentageToCheck = .05;

While GetWidget() &lt;&gt; 0

notCheckedWidgets = notCheckedWidget + 1

if ((notCheckWidgets / 100)&gt;= percentageToCheck then
CheckThatWidget() And notCheckedWidget = 0

__________________________________________________ _________
Let me know if this doesn't make sense, and I'll try to spell it out. Any thoughts?

5. ## Re: Quality Control Algorithm

Doesn't make any sense to me.

Is this a coding question? Or a Quality Methodologies question?

Is this an exam question?

"integer percentageToCheck = .05;"
Is .05 an integer in your language of choice?

6. ## Re: Quality Control Algorithm

1. If there is a way to count total widgets it is simple to get 5% and check only those in loop and exit when you crossed 5%.
2.The percentage in your logic should be (NotChecked/TotalWidgetsToCheck)*100 Not "NotChecked/100". As per current logic it will not check any widget as 1/100=0.1 is greater then 0.05.

Is it some gating criteria OR accepted defected widget %?

#### Posting Permissions

• You may not post new threads
• You may not post replies
• You may not post attachments
• You may not edit your posts
•

vBulletin Optimisation provided by vB Optimise v2.6.0 Beta 4 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging v3.0.9 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Questions / Answers Form provided by vBAnswers (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
vBNominatevBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Feedback Buttons provided by Advanced Post Thanks / Like (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Username Changing provided by Username Change (Free) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
BetaSoft Inc.
Digital Point modules: Sphinx-based search
All times are GMT -8. The time now is 06:50 AM.