This week's book giveaway is in the Android forum.
We're giving away four copies of Head First Android and have Dawn & David Griffiths on-line!
See this thread for details.
The moose likes C / C++ and the fly likes Handling large input sets in C Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Head First Android this week in the Android forum!
JavaRanch » Java Forums » Languages » C / C++
Bookmark "Handling large input sets in C" Watch "Handling large input sets in C" New topic
Author

Handling large input sets in C

Rachit Kumar Saxena
Ranch Hand

Joined: Dec 24, 2011
Posts: 50
How to handle large input sets,of the order of 10^100 in C?
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 43377
    
  32
I presume you mean 10¹⁰⁰? he answer is the same as “how do you eat an elephant”? One byte at a time. You would have to get that dataset into a Stream, which would probably be larger than the whole of the known universe, and read it sequentially. Don't panic if the program hasn't terminated after twenty minutes
Rachit Kumar Saxena
Ranch Hand

Joined: Dec 24, 2011
Posts: 50
Sir any links to any code illustrating the above concept?
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 43377
    
  32
Afraid not.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Handling large input sets in C
 
It's not a secret anymore!