Talk:Recursion/Archive 2

From Wikipedia, the free encyclopedia

Archive 1Archive 2

Semi-protected edit request on 18 January 2018

The paragraph before the contents end as follows:

where a function being defined is applied within its own definition. While this apparently defines an infinite number of instances (function values), it is often done in such a way that no loop or infinite chain of references can occur.

the last part of the last sentence that reads "no loop or infinite chain of references can occur" is not clear. I suggest that we remove the word "loop" altogether and restate it as "no infinite chain of self references can occur". Owino (talk) 13:40, 18 January 2018 (UTC)

Not done: An Infinite loop is described lower in the article. Spintendo ᔦᔭ 15:05, 18 January 2018 (UTC)

Edit request

I think that Center embedding should be added to the See Also section. 169.228.157.89 (talk) 03:02, 19 January 2018 (UTC)

Sloppy caption edit skirmish


The woman in this image holds an object that contains a smaller image of her holding an identical object, which in turn—at least conceptually, if not in resolvable pigment—contains a smaller image of herself holding an identical object, and so forth.

User:Joel B. Lewis just reverted my change in bold. He describes himself on his talk page as a mathematician, but seems not to realize that a painting is not a set: mathematical sets being nearly the only object where we take unlimited recursion seriously. (Gödel, Escher, Bach has a high time with René Magritte's "this is not a pipe".)

Nearly every other form of mooted recursion is exponentially degradational. Even in computer science, recursion is not a panacea in working systems. (It's nice in formal design, but there we're back again to mathematics again.)

In linguistics, languages are theoretically recursive, but you can barely find any natural utterances (out of trillions) where the recursive depth can't be counted on one hand (in English, you start to sound stiff, wonky, roundabout, or formal by the time you get to three).

I think it's a rudeness and disservice to the reader to be unclear about the distinction between conceptual recursion and practical recursion, but I only made this edit in passing, and this is my final two cents on the subject. MaxEnt 14:08, 4 March 2018 (UTC)

What is rude here is the unwarranted and baseless personal remark in your edit: please strike it. What is a disservice to the reader to over-burden a clear and well-made point in an image caption with irrelevant and uninteresting asides. No one has ever been confused about whether there *really are* infinitely many cocoa tins on that one cocoa tin. --JBL (talk) 14:27, 4 March 2018 (UTC)

Semi-protected edit request on 7 June 2018

Makes the first or second word of recursion a link to itself. Guymanforget (talk) 16:29, 7 June 2018 (UTC)

 Not done: Amusing, but unencyclopedic. And also done multiple times before. ElHef (Meep?) 16:41, 7 June 2018 (UTC)

Semi-protected edit request on 20 October 2018

Wanted to add reference for Everett's 2005 paper

Everett, D. 2005, "Cultural Constraints on Grammar and Cognition in Pirahã: Another Look at the Design Features of Human Language", Current Anthropology, vol. 46, no. 4, pp. 621-646.

And possibly his response to Nevins, Pesetsky, and Rodrigues.
Everett, D.L. 2009, "Piraha Culture and Grammar: A Response to Some Criticisms", Language, vol. 85, no. 2, pp. 405.

But then I suppose N,P, & R's response to his response should be cited as well....
Nevins, A., Pesetsky, D. & Rodrigues, C. 2009, "Evidence and argumentation: A reply to Everett (2009)", Language, vol. 85, no. 3, pp. 671.

There is also this paper:
Futrell, R., Stearns, L., Everett, D.L., Piantadosi, S.T. & Gibson, E. 2016, "A Corpus Investigation of Syntactic Embedding in Pirahã", PLoS One, vol. 11, no. 3, pp. e0145289.

So perhaps just his 2005 paper!

(I'm looking into this topic as I consider the language dependence of universal classification schemes) 2.31.134.66 (talk) 12:09, 20 October 2018 (UTC)

how about a section on film since there is one on art?

Its a very popular trope in film, groundhog Day, Synecdoche New York etc etc  Preceding unsigned comment added by 222.152.243.85 (talk) 09:22, 12 March 2019 (UTC)

Provable propositions

I removed the following paragraph: ″in non-constructive approaches to the foundations of mathematics, the set of true propositions may be larger than the set inductively defined from the axioms and rules of inference. See also Gödel's incompleteness theorems.

For the following reasons: The fact that a proof method might be incomplete (as it is the case with second-order logic) is not the issue here. The fact that an axiomatic system (like Peano Arithmetic) might5 be incomplete (as has been established by Gödel's First Incompleteness Theorem) is not the issue here.

The issue of an article on recursion is that in mathematical logic, proofs are formalized as recursive functions or relations. There is also, in my opinion, no need to raise the philosophical issue of how provability in a formal system relates to truth in an article on recursion.  Preceding unsigned comment added by Bbbaat (talkcontribs) 07:25, 10 June 2019 (UTC)

I agree. --JBL (talk) 11:31, 10 June 2019 (UTC)

Programming Language

C is not necessarily the best language to describe recursion in. A functional language such as [Haskell] would appear neater and be easier to follow: for example the function for describing factorial in Haskell is:

factorial :: Int -> Int factorial 1 = 1 factorial n = n * factorial (n-1) —Preceding unsigned comment added by Abhorsen666 (talkcontribs) 01:25, 25 November 2009 (UTC)

The problem is that few people know Haskell. The C code will be readable by many people, even if they don't know C, since it is just basic imperative programming. In particular, one typical reader here is someone who is just learning to program in college; that person is not likely to learn Haskell as the first language.  Carl (CBM · talk) 01:57, 29 November 2009 (UTC)
I agree. C and similarly structured languages such as C++, JavaScript, C#, Java, etc... are pretty much a de facto standard for code examples.

Steinm07 (talk) 19:43, 21 July 2019 (UTC)

I think that C is fine because of its simplicity and common usage. However, I'd also like to see the code written in some sort of English-like pseudo code that would make it easy to convert into whatever computing language one would like. DerekP (talk) 11:33, 6 December 2009 (UTC)

e.g.

 define function Factorial
    that receives: Integer n
    and gives:
      0 when n is less than 0.
      1 when n is less than 2.
      n times Factorial(n minus 1) when n is greater 1.
 end of definition.
I think that is harder to read than C, actually. Because I have to realize that "receives" and "gives" are supposed to be keywords in some pseudocode language, and I have to accept that the "when" structure works like it should. So I don't find that pesudocode very English-like, I find it like a functional programming language. At least C is widely known, and people can generally pretend it is any other imperative langauge without having to learn new control structures.  Carl (CBM · talk) 03:13, 4 January 2010 (UTC)
The idea was for the pseudocode to read as almost English such that one could read it out loud and, although it sounds a bit formal, it would still make sense to, say 80%, of the English-speaking population; the so-called telephone code test. There is no heavy reliance of 'keywords', just a bit of common (English) sense. However, I understand that you might be hindered by this, but I'm sure a lot of other programmers would not be, so I would still encourage its usage in Wikipedia. Anyhow, here is the equivalent C code for comparison.
 int Factorial( int n )
 {
    if (n < 0) return 0;
    if (n < 2) return 1;
    return n * Factorial(n-1);
 }

DerekP (talk) 09:31, 4 January 2010 (UTC)

That's pretty much the C code that is already in the article. But the test for negative numbers seems to be unnecessary; most people think of factorial for nonnegative numbers only, and adding a test for negative numbers just distracts from the point of demonstrating recursion.  Carl (CBM · talk) 12:43, 4 January 2010 (UTC)

How about switching to Python? It's shorter, and doesn't have types. Example code:

 def factorial(n):
   if n <= 1:
     return 1
   else:
     return n * factorial(n - 1)

This eliminates the extra lines for the braces, as well as the extra cognitive load imposed by the twice-repeated "unsigned int". I'm assuming C is more broadly known than Python, but no one who understood C could be confused about this code; and I think few people who didn't would find the C clearer. 71.198.47.81 (talk) 06:33, 21 November 2010 (UTC)

I agree with the previous comment, and intend to replace the C with Python if no one comments against that idea within a week from now. JumpDiscont (talk) 07:27, 20 September 2013 (UTC)

Layman's question

Pls forgive me for asking a general question which may not be relevant to the article ... I might have found the answer if I already knew it ... but - starting out with "definition by higher genus and lower species" - is there a higher genus or class of phenomena that encompasses recursion (like recursion can be said to encompass self-reference)? Like ... is there a general phenomenon of, say "things that work upon themselves", which then might include e.g. physics, at least on the lower level of mechanics? And if not, is there a criterion for excluding these or similar types of phenomena? TiA! T 85.166.160.249 (talk) 04:57, 12 October 2019 (UTC)

Another example of recursion in art

The YouTuber, cyriak, has plenty of recursive elements in his surreal music videos. I don't have the ability (yet) to edit semi-protected pages though. May I request help adding this in?  Preceding unsigned comment added by Aarondeobell (talkcontribs) 12:06, 5 July 2020 (UTC)

Is there a reliable, secondary source that mentions this? Many people use recursion in various ways, but unless there is a quality source that discusses it, it won't be appropriate to include. --JBL (talk) 12:18, 5 July 2020 (UTC)
In cyriak's Know Your Meme page, he's specifically tagged with "recursion". He has a post on the Recursion subreddit. and his 1.5 million subscriber channel has an intro video with recursive elements that are as obvious as shown in the art of the wiki. And as a bonus, this popular meme, whose humor is entirely based on the premise of recursion, has an article that specifically mentions "recursive". Man, I need semi-protected privileges! Thank you very much for your time :D  Preceding unsigned comment added by Aarondeobell (talkcontribs) 12:50, 5 July 2020 (UTC)
Please see the page WP:RS that I linked in my previous comment: none of these are "reliable sources" in the sense that is relevant here. (I put these words in quotation marks because the meaning of the words in the context of Wikipedia is not necessarily what one would expect -- you can see more details at the link. The subsection on Questionable and self-published sources is particularly relevant.) All the other examples in that section are sourced to academic or museum sources.
In order to be able to edit semi-protected pages, all that is required is to have an account for sufficiently long and make sufficiently many contributions to Wikipedia articles. However, if your edits are things like adding unsourced content, or content sourced to websites like knowyourmeme, then it is likely that someone will revert them fairly quickly. --JBL (talk) 13:40, 5 July 2020 (UTC)

Section: Recursion in Language

Recursive Definition Compromise

I know why this page is semi-protected.

Add learnrecursion.com to the recursion humor section

Recursion in Giotto's Stefaneschi Triptych

Recursive redirects

Another example of recursion

Semi-protected edit request on 16 July 2022

Semi-protected edit request on 26 October 2022

Related Articles

Wikiwand AI