I need to represent a recursive function on a flow chart. My problem is that I don't know how to indicate that the function may call itself over multiple elements at a time (think for example to a function which scans graphs). Someone has any suggestion?
Asked
Active
Viewed 3.2k times
1 Answers
6
In a flow chart, you don't normally add multiple invocations for things like loops, you would just indicate that the code may be repetitively called until a condition is met. So, for a recursive function, it would be similar - the base case is a regular step and the recursive step is the same as loop. See this for an example.

manku
- 1,268
- 10
- 9
-
1This is only really only effective for tail recursion. Otherwise you need to combine results from the recursive call and you just bumped into the limits of flow charts. – wcochran Aug 04 '19 at 03:09