Skip to content

Instantly share code, notes, and snippets.

@cn007b
Last active May 26, 2020 14:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cn007b/0070f326055b0a7ae6b55b52d587e9b0 to your computer and use it in GitHub Desktop.
Save cn007b/0070f326055b0a7ae6b55b52d587e9b0 to your computer and use it in GitHub Desktop.
Mutual Recursion

Mutual Recursion

Recursion - when function A calls function A (itself).
Mutual recursion - when function A calls function B, and function B calls function A.

Examples

js (node v13.0.1)

Code:

function f1() {
  console.log('*');
  f2();
}

function f2() {
  console.log('.');
  f1();
}

f1();

Result:

.
*
.
*
internal/tty.js:165
        /^[0-2]\./.test(env.TERM_PROGRAM_VERSION)) {
                   ^

RangeError: Maximum call stack size exceeded
    at WriteStream.getColorDepth (internal/tty.js:165:20)
    at Object.Console.<computed> (internal/console/constructor.js:260:16)
    at Object.Console.<computed> (internal/console/constructor.js:275:40)
    at Object.log (internal/console/constructor.js:286:61)
    at f2 (/Users/kovpakvolodymyr/web/kovpak/gh/x.js:7:11)
    at f1 (/Users/kovpakvolodymyr/web/kovpak/gh/x.js:3:3)
    at f2 (/Users/kovpakvolodymyr/web/kovpak/gh/x.js:8:3)
    at f1 (/Users/kovpakvolodymyr/web/kovpak/gh/x.js:3:3)
    at f2 (/Users/kovpakvolodymyr/web/kovpak/gh/x.js:8:3)
    at f1 (/Users/kovpakvolodymyr/web/kovpak/gh/x.js:3:3)

c (gcc 4.2.1)

Code:

#include <stdio.h>

void f1()
{
    printf("*");
    f2();
}

void f2()
{
    printf(".");
    f1();
}

int main()
{
    f1();
    return 0;
}

Result:

x.c:6:5: warning: implicit declaration of function 'f2' is invalid in C99 [-Wimplicit-function-declaration]
    f2();
    ^
x.c:9:6: error: conflicting types for 'f2'
void f2()
     ^
x.c:6:5: note: previous implicit declaration is here
    f2();
    ^
1 warning and 1 error generated.

python (python 3.7.7)

Code:

def f1():
  print('*')
  f2()

def f2():
  print('.')
  f1()

f1()

Result:

*
.
*
.
Traceback (most recent call last):
  File "x.py", line 9, in <module>
    f1()
  File "x.py", line 3, in f1
    f2()
  File "x.py", line 7, in f2
    f1()
  File "x.py", line 3, in f1
    f2()
...
    f1()
  File "x.py", line 3, in f1
    f2()
  File "x.py", line 6, in f2
    print('.')
RecursionError: maximum recursion depth exceeded while calling a Python object

php (php 7.3.11)

Code:

<?php

function f1()
{
  print('*');
  f2();
}

function f2()
{
  print('.');
  f1();
}

f1();

Result:

.*.*
Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 262144 bytes) in /Users/kovpakvolodymyr/web/kovpak/gh/x.php on line 6

ruby (ruby 2.6.3p62)

Code:

def f1()
  print '*'
  f2()
end

def f2()
  print '.'
  f1()
end

f1()

Result:

.*.*.*Traceback (most recent call last):
  11913: from x.rb:11:in `<main>'
  11912: from x.rb:3:in `f1'
  11911: from x.rb:8:in `f2'
  11910: from x.rb:3:in `f1'
  11909: from x.rb:8:in `f2'
  11908: from x.rb:3:in `f1'
  11907: from x.rb:8:in `f2'
  11906: from x.rb:3:in `f1'
   ... 11901 levels...
      4: from x.rb:3:in `f1'
      3: from x.rb:8:in `f2'
      2: from x.rb:3:in `f1'
      1: from x.rb:7:in `f2'
x.rb:7:in `print': stack level too deep (SystemStackError)

rust (rustc 1.40.0)

Code:

fn f1() {
    println!("*");
    f2();
}

fn f2() {
    println!(".");
    f1();
}

fn main() {
    f1();
}

Result:

.
*
.
*

thread 'main' has overflowed its stack
fatal runtime error: stack overflow
zsh: abort      ./x

scala (scala 2.13.2)

Code:

def f1 (): Unit = {
    println("*");
    f2();
}

def f2 (): Unit = {
    println(".");
    f1();
}

f1();

Result:

*
.
*
.
Exception in thread "main" java.lang.StackOverflowError
  at java.base/java.nio.CharBuffer.limit(CharBuffer.java:1313)
  at java.base/java.nio.CharBuffer.limit(CharBuffer.java:265)
  at java.base/java.nio.Buffer.<init>(Buffer.java:223)
  at java.base/java.nio.CharBuffer.<init>(CharBuffer.java:284)
  at java.base/java.nio.HeapCharBuffer.<init>(HeapCharBuffer.java:77)
  at java.base/java.nio.CharBuffer.wrap(CharBuffer.java:396)
  at java.base/sun.nio.cs.StreamEncoder.implWrite(StreamEncoder.java:289)
  at java.base/sun.nio.cs.StreamEncoder.write(StreamEncoder.java:131)
  at java.base/java.io.OutputStreamWriter.write(OutputStreamWriter.java:211)
  at java.base/java.io.BufferedWriter.flushBuffer(BufferedWriter.java:120)
  at java.base/java.io.PrintStream.writeln(PrintStream.java:653)
  at java.base/java.io.PrintStream.println(PrintStream.java:981)
  at scala.Console$.println(Console.scala:268)
  at scala.Predef$.println(Predef.scala:422)
  at Main$$anon$1.f1(x.scala:2)
  at Main$$anon$1.f2(x.scala:8)
  at Main$$anon$1.f1(x.scala:3)
  at Main$$anon$1.f2(x.scala:8)
...

bash (GNU bash, version 3.2.57(1)-release)

Code:

#!/bin/bash

f1() {
  printf '*'
  f2
}

f2() {
  printf '.'
  f1
}

f1

Result:

.*.*zsh: segmentation fault  ./x.sh

go (go version go1.13.4)

Code:

package main

func f1() {
  print("*")
  f2()
}

func f2() {
  print(".")
  f1()
}

func main() {
  f1()
}

Result:

*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*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*.*.*.*.*.*.*.*.

PS

You can find more stuff like this in my demo repo.
Please check out demo video on youtube.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment