# Logicians: if this affirming the consequent?

**URL:** <https://boards.straightdope.com/t/logicians-if-this-affirming-the-consequent/296468>\
**Category:** Factual Questions\
**Created:** [March 27, 2005, 4:51pm UTC](https://boards.straightdope.com/t/logicians-if-this-affirming-the-consequent/296468 "2005-03-27T16:51:41Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Capt.Ridley\_s\_Shooting\_Party](https://avatars.discourse-cdn.com/v4/letter/c/cc9497/32.png) [@Capt.Ridley\_s\_Shooting\_Party](https://boards.straightdope.com/u/Capt.Ridley_s_Shooting_Party)\
**Post date:** [March 27, 2005, 4:51pm UTC](https://boards.straightdope.com/t/logicians-if-this-affirming-the-consequent/296468/1 "2005-03-27T16:51:41Z")

</div>

Is the following argument a case of the logical fallacy of affirming the consequent?

“A problem may have multiple efficient solutions, GIF and JPEG are two solutions to the same problem, therefore all problems have multiple solutions.”

I’m not exactly red hot when it comes to recognising these fallacies, so any help would be appreciated.

Thanks.

---

<div class="post-metadata">

**Author:** ![ouryL](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/ouryl/32/6067_2.png) [@ouryL](https://boards.straightdope.com/u/ouryL)\
**Post date:** [March 27, 2005, 5:04pm UTC](https://boards.straightdope.com/t/logicians-if-this-affirming-the-consequent/296468/2 "2005-03-27T17:04:55Z")

</div>

I think it’s attributing to the whole what is true of a part…

---

<div class="post-metadata">

**Author:** ![David\_Simmons](https://avatars.discourse-cdn.com/v4/letter/d/9de053/32.png) [@David\_Simmons](https://boards.straightdope.com/u/David_Simmons)\
**Post date:** [March 27, 2005, 5:08pm UTC](https://boards.straightdope.com/t/logicians-if-this-affirming-the-consequent/296468/3 "2005-03-27T17:08:14Z")

</div>

> [@ouryL](#):
>
> I think it’s attributing to the whole what is true of a part…

Is that the fallacy of composition?

---

<div class="post-metadata">

**Author:** ![Squink](https://avatars.discourse-cdn.com/v4/letter/s/b5e925/32.png) [@Squink](https://boards.straightdope.com/u/Squink)\
**Post date:** [March 27, 2005, 5:16pm UTC](https://boards.straightdope.com/t/logicians-if-this-affirming-the-consequent/296468/4 "2005-03-27T17:16:34Z")

</div>

> [@David Simmons](#):
>
> Is that the fallacy of composition?

I don’t think it rises above a hasty generalization. There’s not even an _attempt_ at induction.

---

<div class="post-metadata">

**Author:** ![Mathochist](https://avatars.discourse-cdn.com/v4/letter/m/c89c15/32.png) [@Mathochist](https://boards.straightdope.com/u/Mathochist)\
**Post date:** [March 27, 2005, 5:27pm UTC](https://boards.straightdope.com/t/logicians-if-this-affirming-the-consequent/296468/5 "2005-03-27T17:27:10Z")

</div>

> [@+MDI](#):
>
> Is the following argument a case of the logical fallacy of affirming the consequent?
> 
> “A problem may have multiple efficient solutions, GIF and JPEG are two solutions to the same problem, therefore all problems have multiple solutions.”
> 
> I’m not exactly red hot when it comes to recognising these fallacies, so any help would be appreciated.
> 
> Thanks.

Fancy name or not, it’s simply _stunningly_ wrong.

---

<div class="post-metadata">

**Author:** ![rfgdxm](https://avatars.discourse-cdn.com/v4/letter/r/c0e974/32.png) [@rfgdxm](https://boards.straightdope.com/u/rfgdxm)\
**Post date:** [March 27, 2005, 5:27pm UTC](https://boards.straightdope.com/t/logicians-if-this-affirming-the-consequent/296468/6 "2005-03-27T17:27:55Z")

</div>

> [@Squink](#):
>
> I don’t think it rises above a hasty generalization. There’s not even an _attempt_ at induction.

Yep. This is just silly. The logic problem with that is going from “may have multiple efficient solutions” to “therefore all problems have multiple solutions.” “Some” does not equal “all”.

## Some cats are orange. Felix is an orange cat.

Therefore all cats are orange.

---

<div class="post-metadata">

**Author:** ![David\_Simmons](https://avatars.discourse-cdn.com/v4/letter/d/9de053/32.png) [@David\_Simmons](https://boards.straightdope.com/u/David_Simmons)\
**Post date:** [March 27, 2005, 5:29pm UTC](https://boards.straightdope.com/t/logicians-if-this-affirming-the-consequent/296468/7 "2005-03-27T17:29:41Z")

</div>

> [@+MDI](#):
>
> Is the following argument a case of the logical fallacy of affirming the consequent?
> 
> “A problem may have multiple efficient solutions, GIF and JPEG are two solutions to the same problem, therefore all problems have multiple solutions.”
> 
> I’m not exactly red hot when it comes to recognising these fallacies, so any help would be appreciated.
> 
> Thanks.

No it’s not. I refreshed my memory by looking in a book, of all things.

The fallacy of affirming the consequent looks like this:

If S1 then S2. S2, therefore S1.

In words"

If you take cyanide you will die. John died. Therefore John took cyanide.

Obvious nonsense since John actually drowned.

I think **Squink’s** hasty generalization is right.

---

<div class="post-metadata">

**Author:** ![Capt.Ridley\_s\_Shooting\_Party](https://avatars.discourse-cdn.com/v4/letter/c/cc9497/32.png) [@Capt.Ridley\_s\_Shooting\_Party](https://boards.straightdope.com/u/Capt.Ridley_s_Shooting_Party)\
**Post date:** [March 27, 2005, 5:36pm UTC](https://boards.straightdope.com/t/logicians-if-this-affirming-the-consequent/296468/8 "2005-03-27T17:36:33Z")

</div>

> [@](#):
>
> Fancy name or not, it’s simply stunningly wrong.

Yep, this is what the debate is over. The guy who I’m debating with is under the impression that there’s multiple eficient solutions to the same problem.

Thanks for the replies, everyone.

---

<div class="post-metadata">

**Author:** ![Mathochist](https://avatars.discourse-cdn.com/v4/letter/m/c89c15/32.png) [@Mathochist](https://boards.straightdope.com/u/Mathochist)\
**Post date:** [March 27, 2005, 5:52pm UTC](https://boards.straightdope.com/t/logicians-if-this-affirming-the-consequent/296468/9 "2005-03-27T17:52:18Z")

</div>

> [@+MDI](#):
>
> Yep, this is what the debate is over. The guy who I’m debating with is under the impression that there’s multiple eficient solutions to the same problem.
> 
> Thanks for the replies, everyone.

Whoa whoa whoa… Hold up there, chief.

Just because the argument was flawed doesn’t mean the conclusion is. From my experience, most problems do have more than one good solution unless they were constructed specifically to force a solution.

---

<div class="post-metadata">

**Author:** ![Capt.Ridley\_s\_Shooting\_Party](https://avatars.discourse-cdn.com/v4/letter/c/cc9497/32.png) [@Capt.Ridley\_s\_Shooting\_Party](https://boards.straightdope.com/u/Capt.Ridley_s_Shooting_Party)\
**Post date:** [March 27, 2005, 6:00pm UTC](https://boards.straightdope.com/t/logicians-if-this-affirming-the-consequent/296468/10 "2005-03-27T18:00:10Z")

</div>

No, I explained wrong. Not problems as in maths problems, but as in algorithms to solve a specific task. By good, I mean “most efficient”, i.e. there may be multiple algorithms to solve a specific task, but it’s possible that there’ only a single most efficient algorithm to solve it. Or is that incorrect, too?

---

<div class="post-metadata">

**Author:** ![David\_Simmons](https://avatars.discourse-cdn.com/v4/letter/d/9de053/32.png) [@David\_Simmons](https://boards.straightdope.com/u/David_Simmons)\
**Post date:** [March 27, 2005, 6:04pm UTC](https://boards.straightdope.com/t/logicians-if-this-affirming-the-consequent/296468/11 "2005-03-27T18:04:11Z")

</div>

> [@+MDI](#):
>
> No, I explained wrong. Not problems as in maths problems, but as in algorithms to solve a specific task. By good, I mean “most efficient”, i.e. there may be multiple algorithms to solve a specific task, but it’s possible that there’ only a single most efficient algorithm to solve it. Or is that incorrect, too?

There might be a single most efficient algorithm but the difference between that and the next best might be so small as to not make it worthwhile spending the time to find it.

I’m not sure that the question you’re trying to answer is subject to a strictly logical resolution.

---

<div class="post-metadata">

**Author:** ![ultrafilter](https://avatars.discourse-cdn.com/v4/letter/u/3d9bf3/32.png) [@ultrafilter](https://boards.straightdope.com/u/ultrafilter)\
**Post date:** [March 27, 2005, 6:18pm UTC](https://boards.straightdope.com/t/logicians-if-this-affirming-the-consequent/296468/12 "2005-03-27T18:18:39Z")

</div>

> [@+MDI](#):
>
> No, I explained wrong. Not problems as in maths problems, but as in algorithms to solve a specific task. By good, I mean “most efficient”, i.e. there may be multiple algorithms to solve a specific task, but it’s possible that there’ only a single most efficient algorithm to solve it. Or is that incorrect, too?

It’s possible, but it’s considerably more complicated than you might think. Some problems have a sequence of algorithms for them that asymptotically approach a bound on performance, but there’s no single best. I’m no expert on complexity theory, so I don’t want to comment any further.

---

<div class="post-metadata">

**Author:** ![daffyduck](https://avatars.discourse-cdn.com/v4/letter/d/ec9cab/32.png) [@daffyduck](https://boards.straightdope.com/u/daffyduck)\
**Post date:** [March 27, 2005, 6:31pm UTC](https://boards.straightdope.com/t/logicians-if-this-affirming-the-consequent/296468/13 "2005-03-27T18:31:06Z")

</div>

> [@+MDI](#):
>
> No, I explained wrong. Not problems as in maths problems, but as in algorithms to solve a specific task. By good, I mean “most efficient”, i.e. there may be multiple algorithms to solve a specific task, but it’s possible that there’ only a single most efficient algorithm to solve it. Or is that incorrect, too?

It is possible, but there is no reason to belive that it exists or even that “efficiency” as you define it is a valid criterion for evaluation.

Your example is also my example. Gif and jpg may seem like different soultions to the same problem but they are not. One works best in some circumstances and the other works best in other circumstances, so to compare them in terms of “efficiency” may be making a comparison that is meaningless. Good logic built on a false premise yields unknown results. You may get it right, but not because of your logic.

---

<div class="post-metadata">

**Author:** ![Mathochist](https://avatars.discourse-cdn.com/v4/letter/m/c89c15/32.png) [@Mathochist](https://boards.straightdope.com/u/Mathochist)\
**Post date:** [March 27, 2005, 6:40pm UTC](https://boards.straightdope.com/t/logicians-if-this-affirming-the-consequent/296468/14 "2005-03-27T18:40:57Z")

</div>

> [@+MDI](#):
>
> No, I explained wrong. Not problems as in maths problems, but as in algorithms to solve a specific task. By good, I mean “most efficient”, i.e. there may be multiple algorithms to solve a specific task, but it’s possible that there’ only a single most efficient algorithm to solve it. Or is that incorrect, too?

You’re far from defining “efficient” rigorously enough to come close to the question having a definitive answer.

---

<div class="post-metadata">

**Author:** ![Excalibre](https://avatars.discourse-cdn.com/v4/letter/e/898d66/32.png) [@Excalibre](https://boards.straightdope.com/u/Excalibre)\
**Post date:** [March 27, 2005, 7:17pm UTC](https://boards.straightdope.com/t/logicians-if-this-affirming-the-consequent/296468/15 "2005-03-27T19:17:09Z")

</div>

> [@David Simmons](#):
>
> Obvious nonsense since John actually drowned.

That’s what they _want_ you to think.

---

<div class="post-metadata">

**Author:** ![Squink](https://avatars.discourse-cdn.com/v4/letter/s/b5e925/32.png) [@Squink](https://boards.straightdope.com/u/Squink)\
**Post date:** [March 27, 2005, 7:37pm UTC](https://boards.straightdope.com/t/logicians-if-this-affirming-the-consequent/296468/16 "2005-03-27T19:37:09Z")

</div>

> [@ultrafilter](#):
>
> Some problems have a sequence of algorithms for them that asymptotically approach a bound on performance, but there’s no single best. I’m no expert on complexity theory, so I don’t want to comment any further.

If you limit yourself to problems with ‘most efficient solutions’ (however you define efficiency) that can be viewed as the minima of a function, the question becomes “do all those functions have a single global minima?”.  
It would be hurtful to think that such a big class has that property, and if it’s not true for a subset of problems, it can’t be true for _all_ problems.

–Of course, that _hurtful_ bit needs a little expansion.

---

<div class="post-metadata">

**Author:** ![spingears](https://avatars.discourse-cdn.com/v4/letter/s/ebca7d/32.png) [@spingears](https://boards.straightdope.com/u/spingears)\
**Post date:** [March 27, 2005, 7:52pm UTC](https://boards.straightdope.com/t/logicians-if-this-affirming-the-consequent/296468/17 "2005-03-27T19:52:43Z")

</div>

> [@+MDI](#):
>
> Is the following argument a case of the logical fallacy of affirming the consequent?

\*\* YES!  
\*\*

> [@](#):
>
> “A problem may have multiple efficient solutions, GIF and JPEG are two solutions to the same problem, therefore all problems have multiple solutions.”

“Two swallows doth not a summer make”  
Simply put, “Two solutions to one problem” are just that, “Two solutions to one problem.”  
FYI Tfhere are some problems that have no solutions.  
That which proves too much proves nothing.

---

<div class="post-metadata">

**Author:** ![David\_Simmons](https://avatars.discourse-cdn.com/v4/letter/d/9de053/32.png) [@David\_Simmons](https://boards.straightdope.com/u/David_Simmons)\
**Post date:** [March 28, 2005, 12:11am UTC](https://boards.straightdope.com/t/logicians-if-this-affirming-the-consequent/296468/18 "2005-03-28T00:11:42Z")

</div>

> [@Excalibre](#):
>
> That’s what they _want_ you to think.

SSHH. They don’t want us to know that the guy on the grassy knoll shot him.

---

<div class="post-metadata">

**Author:** ![ultrafilter](https://avatars.discourse-cdn.com/v4/letter/u/3d9bf3/32.png) [@ultrafilter](https://boards.straightdope.com/u/ultrafilter)\
**Post date:** [March 28, 2005, 2:10am UTC](https://boards.straightdope.com/t/logicians-if-this-affirming-the-consequent/296468/19 "2005-03-28T02:10:52Z")

</div>

> [@Squink](#):
>
> If you limit yourself to problems with ‘most efficient solutions’ (however you define efficiency) that can be viewed as the minima of a function, the question becomes “do all those functions have a single global minima?”.  
> It would be hurtful to think that such a big class has that property, and if it’s not true for a subset of problems, it can’t be true for _all_ problems.

Well, the trick is in exactly what you mean by “efficiency”. Contrary to **Mathochist** ’s assertion, there is a standard notion of efficiency with respect to a particular resource as a function of the input size, but again there can be complications. For some problems, there are bounds on the product of their running times and memory usage…

That said, if you limit yourself to a specific resource–generally time–and you take a problem where there is an algorithm that obtains the lower asymptotic bound, then yes, there is a single most efficient resource, as we’re dealing with integer-valued functions on the integers.

---

<div class="post-metadata">

**Author:** ![Chronos](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/chronos/32/134_2.png) [@Chronos](https://boards.straightdope.com/u/Chronos)\
**Post date:** [March 28, 2005, 10:09pm UTC](https://boards.straightdope.com/t/logicians-if-this-affirming-the-consequent/296468/20 "2005-03-28T22:09:22Z")

</div>

> [@](#):
>
> That said, if you limit yourself to a specific resource–generally time–and you take a problem where there is an algorithm that obtains the lower asymptotic bound, then yes, there is a single most efficient resource, as we’re dealing with integer-valued functions on the integers.

Even so, it’s possible that there might be multiple algorithms which are all equally efficient, but more efficient than any other algorithm. A tie for first place, in other words.

As far as image formats, GIF and JPEG are somewhat complimentary. Of images which humans are likely to want to render, most will be rendered well and efficiently by JPEG or GIF, but few will do well under both.
