Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask Computer Engineering Expert

Assignment - Josephus Problem - Linked Lists

Objectives:

• Fully implement an linked list from scratch
• Show understanding of using algorithms of a linked list

o Dynamic allocation
o Deletion
o Etc.

• Use Object Oriented skills to create a templated linked list class

Outcomes:

• Understand structured programming techniques in-depth.
• To learn data abstraction and object-oriented programming.
• To learn the fundamental data structures including stacks, queues, linked lists, and trees.
• To obtain a good foundation for further study in computer science.

Description:

Josephus Problem

"There are people standing in a circle waiting to be executed. After the first man is executed, certain number of people are skipped and one man is executed. Then again, people are skipped and a man is executed. The elimination proceeds around the circle (which is becoming smaller and smaller as the executed people are removed), until only the last man remains, who is given freedom.

The task is to choose the place in the initial circle so that you survive (are the last one remaining)."

-- Wikipedia, http://en.wikipedia.org/wiki/Josephus_problem

Assume that the number of people, P, in the circle may be any number between zero and one hundred.

Assume that every Nth person around the circle is killed each turn, where N is an integer between one and twenty.

Specifications:

• Create an application in C++ that uses a linked list to represent the circle of people, numbered from 1 to P.
• Acquire the values P and N from the user at runtime via console input.
• Output the the individual that survives the mass execution.

Flash Version

• http://webspace.ship.edu/deensley/flash/JosephusProblem.html

There are several Java applet versions of this problem to check your work as you debug.

• http://www.wou.edu/~burtonl/josephus.html

Computer Engineering, Engineering

  • Category:- Computer Engineering
  • Reference No.:- M91869737
  • Price:- $40

Priced at Now at $40, Verified Solution

Have any Question?


Related Questions in Computer Engineering

Question you are to write a report on the malware assigned

Question: You are to write a report on the malware assigned to you in the "Week 6 Malware assignment by individual student" document. Your report, written in Microsoft Word with 12 point type and 1 in margins, must have ...

On a multiple choice test there are 8 questions worth 125

On a multiple choice test, there are 8 questions worth 12.5 points each. There are four choices for each question (a,b,c,d). Robin has not studied for the quiz and decides to randomly guess on all of the questions. 1. Th ...

You are required to carry out an analysis of the it

You are required to carry out an analysis of the IT requirements of a software company and design a virtualisation solution to satisfy these requirements. You will need to produce a report outlining your design and provi ...

Develop a hypothesis that could explain why a soap created

Develop a hypothesis that could explain why a soap created from the acid CH 3 CH 2 CH 2 CH 2 COOH has poorer cleaning properties than soap made from palmitic acid. Develop a hypothesis that could explain why a soap creat ...

Restaurant management database project the restaurant

Restaurant Management Database Project : The restaurant maintains the catalog for the list of food and beverage items that it provides. Apart from providing food facility at their own premises, the restaurant takes order ...

What are some of the skill sets required for the various

What are some of the skill sets required for the various aspects of cloud administration. Are there any certifications related to cloud computing? Is there value in obtaining one of these certifications?

Explain that when an unauthorized individual gains access

Explain that when an unauthorized individual gains access to the information an organization trying to protect, that act is categorized as a deliberate act of espionage or trespass.

Michelle walker is looking to invest in a three-year bond

Michelle Walker is looking to invest in a three-year bond that makes semi-annual coupon payments at a rate of 5.225 percent. If these bonds have a market price of $990.00, what yield to maturity can she expect to earn?  ...

Similar to problem 10 on page 282 assume we have an 8g

Similar to problem 10 on page 282, assume we have an 8G times 64 word addressable computer built using 512M times 32 chips. Memory is addressed using low-order interleave. Answer the following questions. a. How many RAM ...

What are the implications of the shift from medical care to

What are the implications of the shift from medical care to the focus on overall health conditions?

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As