School Assignment? Project Due Tomorrow? Chat LIVE With A Programming Expert!

Welcome to Dream.In.Code
Become an Expert!

Join 307,083 Programmers for FREE! Get instant access to thousands of experts, tutorials, code snippets, and more! There are 2,241 people online right now. Registration is fast and FREE... Join Now!




word games

 

word games, How is it done

IngeniousHax

4 Nov, 2009 - 07:53 AM
Post #1

D.I.C Addict
****

Joined: 28 Mar, 2009
Posts: 630



Thanked: 15 times
My Contributions
Recently I have been playing a lot of word games on the iTouch, and I seem to have a few questions...

Now a dictionary database holding all possible words can run >20Gb's (probably more). But how does the iTouch hold all the possible word values with-out taking up much space at all? Infact significantly <1Gb.

Many of the words are over 5 letters and I can't seem to wrap m head around this. Does it have to do with the fact that there are usually only 5x4 squares on the screen? Or how is it done, because I know in C++ it's a fairly large sized memory program... Any ideas?

User is offlineProfile CardPM
+Quote Post


markhazlett9

RE: Word Games

4 Nov, 2009 - 10:14 PM
Post #2

Coding is a lifestyle
Group Icon

Joined: 12 Jul, 2008
Posts: 1,463



Thanked: 48 times
Dream Kudos: 25
My Contributions
compression an a very efficient database access utility lol.. thats how they do it

User is online!Profile CardPM
+Quote Post

IngeniousHax

RE: Word Games

5 Nov, 2009 - 11:38 AM
Post #3

D.I.C Addict
****

Joined: 28 Mar, 2009
Posts: 630



Thanked: 15 times
My Contributions
Oh, that sounds legit. But damn, that is one hell of a compression ratio... like 4000:1
User is offlineProfile CardPM
+Quote Post

born2c0de

RE: Word Games

6 Nov, 2009 - 06:05 AM
Post #4

printf("I'm a %XR",195936478);
Group Icon

Joined: 26 Nov, 2004
Posts: 4,550



Thanked: 98 times
Dream Kudos: 2825
Expert In: J2ME, 80x86 Assembly, C/C++, VB6, VB.NET, C#, J2SE, Win32 API, Reversing

My Contributions
Yeah, but in such scenarios, it's expected from a [url=http://en.wikibooks.org/wiki/Data_Compression/Dictionary_compressiondictionary based compression algorithm[/url].
A dictionary database is placed on the device natively (it's space can be loosely approximated as expected_device_storage - actual_available_disk_space - device_firmware_size - device_other_resources)
Since the dictionary is already present on a device, the algorithm simply stores pointers to the dictionary file hence decreasing the file size substantially.
User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic

Time is now: 11/21/09 10:40AM

Live Help!

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter Fan Us On Facebook

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month