Hot Search : Source embeded web remote control p2p game More...
Location : Home Downloads SourceCode Mathimatics-Numerical algorithms Data structs

Josephus

  • Category : Data structs
  • Tags :
  • Update : 2015-12-22
  • Size : 1.63mb
  • Downloaded :0次
  • Author :Ji***
  • About : Nobody
  • PS : If download it fails, try it again. Download again for free!
Introduction - If you have any usage issues, please Google them yourself
Given any positive integer n, k, can be obtained as described below arrangement 1,2, ......, a permutation of n: the digital 1,2, ......, n arranged in a ring (as shown in Figure 2-36), press Clockwise 1 starts counting, output figures in this position (and delete the number the ring) at the expiration of k, then resumes counting the next number, until all numbers are output in the ring so far. Try to write an algorithm to enter any positive integer n, k, outputs a corresponding displacement sequence of numbers.
Packet file list
(Preview for download)


Josephus 环\ConsoleApplication1\ConsoleApplication1\ConsoleApplication1.vcxproj
...........\...................\...................\ConsoleApplication1.vcxproj.filters
...........\...................\...................\Debug\ConsoleA.7D2FBF12.tlog\CL.read.1.tlog
...........\...................\...................\.....\......................\CL.write.1.tlog
...........\...................\...................\.....\......................\ConsoleApplication1.lastbuildstate
...........\...................\...................\.....\......................\link.read.1.tlog
...........\...................\...................\.....\......................\link.write.1.tlog
...........\...................\...................\.....\ConsoleApplication1.log
...........\...................\...................\.....\Source.obj
...........\...................\...................\.....\vc120.idb
...........\...................\...................\.....\vc120.pdb
...........\...................\...................\Source.cpp
...........\...................\ConsoleApplication1.sdf
...........\...................\ConsoleApplication1.sln
...........\...................\ConsoleApplication1.v12.suo
...........\...................\Debug\ConsoleApplication1.exe
...........\...................\.....\ConsoleApplication1.ilk
...........\...................\.....\ConsoleApplication1.pdb
...........\...................\ConsoleApplication1\Debug\ConsoleA.7D2FBF12.tlog
...........\...................\...................\Debug
...........\...................\ConsoleApplication1
...........\...................\Debug
...........\ConsoleApplication1
Josephus 环
Related instructions
  • We are an exchange download platform that only provides communication channels. The downloaded content comes from the internet. Except for download issues, please Google on your own.
  • The downloaded content is provided for members to upload. If it unintentionally infringes on your copyright, please contact us.
  • Please use Winrar for decompression tools
  • If download fail, Try it againg or Feedback to us.
  • If downloaded content did not match the introduction, Feedback to us,Confirm and will be refund.
  • Before downloading, you can inquire through the uploaded person information

Nothing.

Post Comment
*Quick comment Recommend Not bad Password Unclear description Not source
Lost files Unable to decompress Bad
*Content :
*Captcha :
CodeBus is the largest source code store in internet!
Contact us :
1999-2046 CodeBus All Rights Reserved.