- 2 A Give Two Alternative Algorithms Which Solve A Simple Problem Both Should Solve The Same One And Which Illustrat 1 (235.01 KiB) Viewed 36 times
2. (a) Give two alternative algorithms which solve a simple problem (both should solve the same one) and which illustrat
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am
2. (a) Give two alternative algorithms which solve a simple problem (both should solve the same one) and which illustrat
2. (a) Give two alternative algorithms which solve a simple problem (both should solve the same one) and which illustrate time and space tradeoff. Give the time and space complexity of each. (10 marks) (b) What is meant by saying that an algorithm can solve a problem in polynomial time? Mention an algorithm which has polynomial running time and describe a simple problem which is not solvable in polynomial time. (c) Briefly explain what is meant by the following terms, mentioning any relevant examples: i) ii) iii) iv) v) tractable and intractable problems P NP NP-complete decidability and the halting problem (8 marks) (15 marks)