Jump to content

Talk:In-place algorithm: Difference between revisions

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia
Content deleted Content added
SineBot (talk | contribs)
m Signing comment by 66.109.35.41 - ""
→‎QuickSort: new section
Line 19: Line 19:
==Latin?==
==Latin?==
Why Latin? <span style="font-size: smaller;" class="autosigned">—Preceding [[Wikipedia:Signatures|unsigned]] comment added by [[Special:Contributions/66.109.35.41|66.109.35.41]] ([[User talk:66.109.35.41|talk]]) 13:53, 25 January 2010 (UTC)</span><!-- Template:UnsignedIP --> <!--Autosigned by SineBot-->
Why Latin? <span style="font-size: smaller;" class="autosigned">—Preceding [[Wikipedia:Signatures|unsigned]] comment added by [[Special:Contributions/66.109.35.41|66.109.35.41]] ([[User talk:66.109.35.41|talk]]) 13:53, 25 January 2010 (UTC)</span><!-- Template:UnsignedIP --> <!--Autosigned by SineBot-->

== QuickSort ==

Allo.
<br/>The reason QuickSort is sometimes referred to as an in-place sort is because there's more than one definition of "in-place". Some reference materials will strictly mandate "constant" additional space, while others define it as meaning "constant or logarithmic" (O(N) or O(log N)) additional space.
<br/>So, depending on which definition you use, QuickSort can be in-place, or not. [[Special:Contributions/139.57.100.63|139.57.100.63]] ([[User talk:139.57.100.63|talk]]) 21:37, 30 June 2011 (UTC)

Revision as of 21:37, 30 June 2011

Proposed move

According to Wikipedia: Naming conventions, I propose moving this page to the noun phrase In-place algorithm. Sound good? There shouldn't be a hyphen between "work" and "in" anyway. Deco 02:28, 24 Feb 2005 (UTC)

Sounds good. I vote in favour :) --Clausen 22:09, 28 Feb 2005 (UTC)

In-Place is ambiguous?

It seems to me that there are two different meanings for "in-place": algorithms which modify their inputs so that the output is put in the same place as where the input was, and algorithms that only require constant additional space.

In a theoretical settting, I think the latter is standard. I think we should either decide that the first one is wrong, or emphasis the ambiguity.

--Clausen 05:47, 6 Jun 2005 (UTC)

This is a tricky ambiguity. I thought about this and added a paragraph regarding it. I think it's outright wrong to say that an algorithm which replaces its input with its output is in-place even if it uses large amounts of auxilary storage (although this is done informally). More ambiguous is whether the output space should be counted in determining the auxilary space used, which is never done in theory but sometimes done in practice. Deco 08:20, 6 Jun 2005 (UTC)


Latin?

Why Latin? —Preceding unsigned comment added by 66.109.35.41 (talk) 13:53, 25 January 2010 (UTC)[reply]

QuickSort

Allo.
The reason QuickSort is sometimes referred to as an in-place sort is because there's more than one definition of "in-place". Some reference materials will strictly mandate "constant" additional space, while others define it as meaning "constant or logarithmic" (O(N) or O(log N)) additional space.
So, depending on which definition you use, QuickSort can be in-place, or not. 139.57.100.63 (talk) 21:37, 30 June 2011 (UTC)[reply]