1. Home
  2. Computing & Technology
  3. C / C++ / C#
photo of David Bolton
David's C / C++ / C# Blog

By David Bolton, About.com Guide to C / C++ / C#

Programming Challenge Eight Closing and Nine Starts Tomorrow

Thursday January 31, 2008
We've a couple of entries to mark so I'll have those done over the weekend. As I won't be marking until then, I'll allow late entries until Sunday morning.

With the new month comes a new challenge and this one is to see how imaginatively you can store 50,000 English words with an associated value. The values are random, provided in a text file with one value for each word. The harder bit is then to retrieve 10,000 of these values as fast as possible. You are given a list of 10,000 words, fetch the associated values and sum them up and output the total along with how long it took. Easy? Well yes, but to make it that bit more challenging, you cannot use any 3rd party libraries and that includes Boost/STL or .NET containers. Have fun! You've 29 days and counting...

Comments

February 3, 2008 at 9:51 am
(1) st0le says:

Mr Bolton,

For the Example File You have offered for Challenge9…I’ve got these stats on my PC

Elapsed Time : 0.021004
Total : 496637501

@ Win2k, PIII 700MHz,256MB Ram

I just wanted to know if the total is correct and also whether my time is “good enough” for the competetion…

Leave a Comment

Line and paragraph breaks are automatic. Some HTML allowed: <a href="" title="">, <b>, <i>, <strike>

Explore C / C++ / C#
About.com Special Features

Stay connected and entertained with reviews on tips on the latest HDTVs, cellphones and more. More >

Easy ways to connect two computers for networking purposes. More >

  1. Home
  2. Computing & Technology
  3. C / C++ / C#

©2009 About.com, a part of The New York Times Company.

All rights reserved.