Question: Let T(n) be the number of processes this program creates when its input is n. Write an recursive formula (i.e., a recurrence relation ) that

Let T(n) be the number of processes this program creates when its input is n.
Write an recursive formula (i.e., a recurrence relation) that gives T(i) as a function of one or more values of T for smaller input (i.e., smaller i). Explain your reasoning.
Feel free to double-check your formula by actually running the program and possibly augmenting it so that it allows you to count processes in whichever way you want.
The C code might have a few errors but this is more of a conceptual problem with the use of fork().
1 | #include
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
