Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

MAC281 Discrete Structures Project (Integrative learning, written) Goal: The main goal of the project is to let students use their prior knowledge, try to use

MAC281 Discrete Structures Project (Integrative learning, written) Goal: The main goal of the project is to let students use their prior knowledge, try to use the skills they have learnt to solve real world problems. Using this assignment students are required to learn to use the skills they have learned in their previous classes, solve the problems given and reflect on how they can apply it to solve real world issues. Deliverables: The students are required to submit a written report along with the programs they have written. The report has to address all the prompts mentioned. The report should be properly presented by using appropriate font (Time new roman, preferably font size 12). Please keep the report ANONYMOUS without adding any name or course information. Tasks: 1. Write an iterative C++ function that inputs a nonnegative integer n and returns the nth Fibonacci number. 2. Write a recursive C++ function that inputs a nonnegative integer n and returns the nth Fibonacci number. 3. Compare the number of operations and time taken to compute Fibonacci numbers recursively versus that needed to compute them iteratively. 4. Use the above functions to write a C++ program for solving each of the following computational problems. I. Find the exact value of f100, f500, and f1000, where fn is the nth Fibonacci number. What are times taken to find out the exact values? II. Find the smallest Fibonacci number (1) greater than 1,000,000, and (2) greater than 1,000,000,000. III. Find as many prime Fibonacci numbers as you can. It is unknown whether there are infinitely many of these. Find out the times taken to find first 10, 20, 30, 40up to 200 and draw a graph and see the pattern. Initial report submission to Discussions, due on Sunday April 16: 1. Prepare a project report in WORD document to describe how you implement above tasks, including (1) problem analysis and solution plan, (2) source code, (3) discussion on experimental results in tables or graphs, (4) reflection and conclusion. 2. Your reflection should address all of the below mentioned questions a) Describe the Fibonacci series and write briefly what you have done in the assignment. b) What are the different skills, programming techniques have you used in order to run the experiments? c) What did you observe when you did the comparisons in Task 3 and Task 4? Explain the graph that you have drawn from Task 4.III? d) List at least three different applications of the Fibonacci numbers to sciences and describe one of them in details. Think of situation or a real world problem where you can apply concept of Fibonacci numbers to solve it. Explain? e) Write a paragraph, explaining what you have done in this assignment. What were the challenges you have faced when solving these problems. How can you improve the programs you have written to solve these problems? Peer review at Discussions, due on Wednesday April 19: 3. Check at least two other students reflection, and post your comments to others work, by Monday April 17. 4. Read other students comments, and provide feedback to the comments. Final report revision and resubmission based on feedback, due on April 24: 5. Prepare a WORD document including the revised project report, remove all information related to the names, or class information, and submit the final version to Assessment.

Discrete structures.

image text in transcribed

I got it so far. Please help me to finish it.

If you are sure , then answer please.

Thank you.

image text in transcribed

Goal: The main goal of the project is to let students use their prior knowledge, try to use the skills they have learnt to solve real world problems. Using this assignment students are required to learn to use the skills they have learned in their previous classes, solve the problems given and reflect on how they can apply it to solve real world issues, Deliverables: The students are required to submit a written report along with the programs they have written. The report has to address all the prompts mentioned. The report should be properly presented by using appropriate font (Time new roman, preferably font size 12). Please keep the report ANONYMOUS without adding any name or course information Tasks: 1. Write an iterative C++ function that inputs a negative integer nand returns he nth Fibonacci number. 2. write a recursive c++function that inputs a nonnegative integer nand returns the nth Fibonacci number, 3. Compare the number of operations and time taken to compute Fibonacci numbers recursively versus that needed to compute them iteratively 4. Use the above functions to write a C++ program for solving each of the following computational problems l. Find the exact value of foo, foo, and fooo, where feis the nth Fibonacci number. What are times taken to find out the exact values? ll. Find the smallest Fibonacci number (1)greater than 1,000,000, and (2) greater than 1,000,000,000. Ill. Find as many prime Fibonacci numbers as you can. It is unknown whether there are infinitely many of these. Find out the times taken to find first 10, 20,30, 40...up to 200 and draw a graph and see the pattern. Initial report submission to "Discussions", due on Sunday April 16: 1. Prepare a project report in WORD document to describe how you implement above tasks, including (1) problem analysis and solution plan, (2) source code, (3) discussion on experimental results in tables or graphs, (4) reflection and conclusion. 2. Your reflection should address all of the below mentioned questions a) Describe the Fibonacci series and write briefly what you have done in the assignment. b) What are the different skills, programming techniques have you used in order to run the experiments? c) What did you observe when you did the comparisons in Task 3 and Task 4? Explain the graph that you have drawn from Task 4.ll? d) List at least three different applications of the Fibonacci numbers to sciences and describe one of them in details. Think of situation or a real world problem where you can apply concept of Fibonacci numbers to solve it. Explain? e) Write a paragraph, explaining what you have done in this assignment. What were the challenges you have faced when solving these problems. How can you improve the programs you have written to solve these problems

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions