Methods for Accelerating Conway's Doomsday Algorithm (part 1)

Computer Science – Data Structures and Algorithms

Scientific paper

Rate now

  [ 0.00 ] – not rated yet Voters 0   Comments 0

Details

added references to Lewis Carroll's early work on a perpetual calendar algorithm

Scientific paper

We propose a modification of a key component in the Doomsday Algorithm for calculating the day of the week of any calendar date. In particular, we propose to replace the calculation of the required term: \lfloor \frac{x}{12} \rfloor + x \bmod 12 + \lfloor \frac{x \bmod 12}{4} \rfloor with the term 2y + 10 \, (y \bmod 2) + z + \lfloor \frac{2 \, (y \bmod 2) + z}{4} \rfloor where x is an input 2-digit year; y is the tens digit of x; z is the ones digit of x; We argue the fact that our modification operates on individual base-10 digits makes the algorithm easier to calculate mentally.

No associations

LandOfFree

Say what you really think

Search LandOfFree.com for scientists and scientific papers. Rate them and share your experience with other people.

Rating

Methods for Accelerating Conway's Doomsday Algorithm (part 1) does not yet have a rating. At this time, there are no reviews or comments for this scientific paper.

If you have personal experience with Methods for Accelerating Conway's Doomsday Algorithm (part 1), we encourage you to share that experience with our LandOfFree.com community. Your opinion is very important and Methods for Accelerating Conway's Doomsday Algorithm (part 1) will most certainly appreciate the feedback.

Rate now

     

Profile ID: LFWR-SCP-O-185963

  Search
All data on this website is collected from public sources. Our data reflects the most accurate information available at the time of publication.