l i n u x - u s e r s - g r o u p - o f - d a v i s
Next Meeting:
July 7: Social gathering
Next Installfest:
Latest News:
Jun. 14: June LUGOD meeting cancelled
Page last updated:
2010 Feb 18 01:04

The following is an archive of a post made to our 'vox-tech mailing list' by one of its subscribers.

Report this post as spam:

(Enter your email address)
[vox-tech] least number of operations to find modulo (trickquestion)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[vox-tech] least number of operations to find modulo (trickquestion)

So, we were at Crepeville at last meeting and I was telling another
member I was using glib-2.0 to do hash tables because it appeared that
they did some things to optimize things. So, there was a feature I
mentioned and he questioned why they would have that for the use with
hash tables. I couldn't justify why at the time. Looked back and it
clicked exactly why. It's an interesting phenomenom, especially in the
field of crypto.

Here is a little trick question relating to it. 

What is the least number of clock cycles you can do the following
operation (Regular CPU of course)?
20 % 7

There is something special about the number 7 that makes this problem

Brian Lavender

"About 3 million computers get sold every year in China, but people don't
pay for the software. Someday they will, though. As long as they are going
to steal it, we want them to steal ours. They'll get sort of addicted, and
then we'll somehow figure out how to collect sometime in the next decade."

-- Bill Gates (Microsoft) 1998
vox-tech mailing list

LUGOD Group on LinkedIn
Sign up for LUGOD event announcements
Your email address:
LUGOD Group on Facebook
'Like' LUGOD on Facebook:

Hosting provided by:
Sunset Systems
Sunset Systems offers preconfigured Linux systems, remote system administration and custom software development.

LUGOD: Linux Users' Group of Davis
PO Box 2082, Davis, CA 95617
Contact Us

LUGOD is a 501(c)7 non-profit organization
based in Davis, California
and serving the Sacramento area.
"Linux" is a trademark of Linus Torvalds.

Sponsored in part by:
EDGE Tech Corp.
For donating some give-aways for our meetings.