Assignment 0
Assignment 0
11. Find the maximum number of regions in which a plane can be divided by 100 straight lines.
Drive a recurrence relation to solve this problem.
12. Write a C/C++/Python recursive-code to find the resistance between A and B. Consider an
infinite network consisting of resistors (r =1 Ω) as shown in Fig. Find the resultant resistance
between points A and B.
Solve for the following cases: -
A. The required accuracy of your answer <= 0.001
B. The required accuracy of your answer <= 0.00001
C. What is the complexity of your code?
(this problem can be solved mathematically in a constant time)
Parallel Thinking