edited by
2,312 views
1 votes
1 votes

Which of the following problem cannot be solved without recursion?

  1. Tower of Hanoi
  2. Fibonacci series
  3. Tree Traversal
  4. None of the above
edited by

2 Answers

1 votes
1 votes

Tower of Hanoi: Has Recursive solution as well as Non-Recursive Solution

Fibonacci Series : can be solved by Recursion and without Recursion

Tree Traversal : Has Recursive, Iterative solutions

None of the above will be the answer

edited by
0 votes
0 votes

Answer is none of these. All three can be solved using both recursive and iteration.

Few extra points

Not all function that can be solved with recursion cannot be solved without recursive.

The Ackermann function cannot be expressed without recursion.

 

 

Related questions

0 votes
0 votes
1 answer
1
gatecse asked Mar 2, 2018
339 views
If there is a graph such that there is a unique path between any pair of vertices. The graph is a ________MeshGridTreeBipartite graph
0 votes
0 votes
1 answer
2
gatecse asked Mar 2, 2018
5,991 views
Which of the following is not used for hash function?Mid-square methodDivision methodFolding methodProbe method
0 votes
0 votes
2 answers
3
gatecse asked Mar 2, 2018
449 views
If the post order traversal of treegives $ab - cd * +$, then the label of the nodes A, B, C, ......, G will bea, -, b, +, c, *, d+, -, *, a, b, c, d-, a, +, b, c, d, *a, ...
0 votes
0 votes
1 answer
4
gatecse asked Mar 2, 2018
1,325 views
Which of the following search method takes less memory ? Depth-first search Breadth-first search Linear search None of the above