1 / 2

Josephus Problem - Example

Use slideshow mode for animation. Josephus Problem - Example. M=2, N=5. Initial state:. Round 1. Round 2. X. 0. 0. 0. 0. 4. 1. 4. 1. 4. 1. 4. 1. X. X. 3. 2. 3. 2. X. 3. 2. 3. 2. Person removed so far: {2, 0, . Use slideshow mode for animation.

graceland
Download Presentation

Josephus Problem - Example

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Use slideshow mode for animation Josephus Problem - Example M=2, N=5 Initial state: Round 1 Round 2 X 0 0 0 0 4 1 4 1 4 1 4 1 X X 3 2 3 2 X 3 2 3 2 Person removed so far: {2, 0,

  2. Use slideshow mode for animation Josephus Problem - Example M=2, N=5 Round 3 Round 2 X X X X 0 0 0 X 0 X 4 1 4 1 X X 4 1 4 1 X X 3 2 3 2 X 3 2 3 2 X Person removed so far: {2, 0, 4, 1 } Winner is 3

More Related