2. (a) Give two alternative algorithms which solve a simple problem (both should solve the same one) and which illustrat

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
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

Post by answerhappygod »

2 A Give Two Alternative Algorithms Which Solve A Simple Problem Both Should Solve The Same One And Which Illustrat 1
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 35 times
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)
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply