Mark Nelson

Programming, mostly.

  • Home
  • About Mark Nelson
  • Archives
  • Liberal Code Use Policy

A Big Problem That Doesn’t Need a Bignum

Posted in February 14th, 2011
by Mark Nelson in Mathematics

Calculating a probability that involves k-step Fibonacci numbers can be done without resorting to Bignum classes – and the C++ deque container is a perfect class for the job.

read more from this topic.....

5 Comments

20 Heads In a Row – What Are the Odds?

Posted in January 17th, 2011
by Mark Nelson in Mathematics, Programming

An exercise in probability demonstrates the exact chances of flipping a fair coin k times in a row given n tosses.

read more from this topic.....

18 Comments

Combinatorial Data Compression

Posted in January 9th, 2011
by Mark Nelson in Computer Science, Data Compression, Mathematics

Newcomers to the world of data compression often stumble on this old idea in hopes of creating a novel and powerful algorithm. In a nutshell, the idea is to create an enumerative coding system that uses combinatorial numbering to identify a message, in hopes of providing a more compact representation . Unfortunately, these schemes always [...]

read more from this topic.....

4 Comments

Innumeracy Revisited

Posted in September 12th, 2010
by Mark Nelson in Computer Science, Culture, Humor, Mathematics, Snarkiness

The New York Times has an interesting article today examining the curious fact that certain types of terrorist organizations have an unusually high ratio of engineers among their members. An interesting point to study, no doubt, but what caught my eye was this little blunder: William A. Wulf, a former president of the National Academy [...]

read more from this topic.....

11 Comments

P ≠ NP?

Posted in August 10th, 2010
by Mark Nelson in Computer Science, Mathematics, People

You may have never heard of Vinay Deolalikar, but there is a chance that he may become next year’s Turing Award winner, not to mention an overnight millionaire. It seems that Vinay dropped the news at the start of this week that he had proven that P does not equal NP. In short, this proof [...]

read more from this topic.....

No Comments

5 Trillion Digits of Pi

Posted in August 6th, 2010
by Mark Nelson in Computer Science, Mathematics

Back in 1981, fresh out of school, I was awestruck by Steve Wozniak’s program that calculated over 100,000 digits of e on an Apple II. (Anyone who has a scan of his article in the June 1981 issue of Byte, please email me a copy!) Shortly after reading the article, I ported his program to [...]

read more from this topic.....

2 Comments

Innumeracy Part N

Posted in July 20th, 2008
by Mark Nelson in Complaining, Mathematics, Snarkiness

This isn’t the first time I’ve complained about innumeracy, and I’m sure it won’t be the last. Just to get off on the right foot, let me give the definition of the word from thesite innumeracy.com: A term meant to convey a person’s inability to make sense of the numbers that run their lives. Innumeracy [...]

read more from this topic.....

5 Comments

A Floating Point Problem

Posted in April 1st, 1996
by Mark Nelson in Magazine Articles, Mathematics, Programming

An example of how you can run into trouble when performing floating point comparisons.

read more from this topic.....

No Comments

Links From Google


Popular Posts

  • Fast String Searching With Suffix Trees
  • C+11 - Threading Made Easy
  • LZW Data Compression
  • Arithmetic Coding + Statistical Modeling = Data Compression
  • Hash Functions for C++ Unordered Containers
  • Data Compression with the Burrows-Wheeler Transform
  • 20 Heads In a Row - What Are the Odds?
  • DNS Service Discovery On Windows
  • The Byzantine Generals Problem
  • C++ Algorithms: next_permutation()
  • The Random Compression Challenge Turns Ten
  • zlib - Looking the Gift Code in the Mouth

Recent Comments

  • Ernst in The Random Compression Challenge Tu…
  • Ernst in The Random Compression Challenge Tu…
  • Ernst in The Random Compression Challenge Tu…
  • bloodIce in The Random Compression Challenge Tu…
  • Zen in The Random Compression Challenge Tu…
  • Mark Nelson in Arithmetic Coding + Statistical Mod…
  • Alan in The Random Compression Challenge Tu…
  • robin92 in Arithmetic Coding + Statistical Mod…
  • Ernst in The Random Compression Challenge Tu…
  • Ernst in The Random Compression Challenge Tu…

Feeds

Main Feed
Main Comment Feed
This Article's Comment Feed

Categories

Security Cisco Standards Hackery VoIP Humor Networking Serial Communications Uncategorized Video Work Scams Puzzles Culture Linux Graphics Writing Audio Mathematics Snarkiness Web Articles People Business C/C++ Programming Complaining Computer Science Magazine Articles Data Compression

Recent Entries

  • How I Spent My Last Few Weeks
  • The Random Compression Challenge Turns Ten
  • C++11: unique_ptr<T>
  • C+11 – Threading Made Easy
  • C++11: Range-based for and auto
  • Visual Studio 11 and Modern C++
  • C++ – Where’s the Hate?
  • Streambuf Iterators Are a Big Help
  • I’m In the Money
  • Mark’s Travel Guide to New Zealand

My Books

  • The Data Compression Book
  • Serial Communications: A C++ Developer's Guide, 1st. ed.
  • Serial Communications: A C++ Developer's Guide, 2nd ed.
  • C++ Programmer's Guide to the Standard Template Library
  • Developing Cisco IP Phone Services: A Cisco AVVID Solution

Archives

©1996 Mark Nelson
Powered by WordPress | Talian designed by VA4Business, Virtual Assistance for Business who's blog can be found at Steve Arun's Virtual Marketing Blog