1. A method for generating a compressed representation of digital documents on a handheld device, the method comprising: periodically obtaining one or more digital documents stored in a memory of a handheld device; extracting one or more words from each of the one or more digital documents; and generating a compressed representation of the one or more digital documents stored in the memory of the handheld device using one or more balanced trees, wherein the one or more balanced trees include at least one of a word balanced tree including a plurality of nodes, each of the plurality of nodes representing a word from among the one or more extracted words, and a document balanced tree including a plurality of nodes, each of the plurality of nodes representing a digital document from among the one or more digital documents, wherein each node of the word balanced tree comprises a position of the represented word in the digital document, wherein the generating of the compressed representation of the one or more digital documents using the one or more balanced trees comprises: storing the one or more extracted words in the word balanced tree including the plurality of nodes, such that each of the plurality of nodes represents a word in the one or more extracted words, and such that a word is associated with a node and includes pointer information associated with a first digital document including the associated word from a set of digital documents, a position of the associated word in the first digital document, and number occurrences of the associated word in the set of digital documents; storing the one or more digital documents in the document balanced tree including the plurality of nodes, such that each of the plurality of nodes represents a digital document in the one or more digital documents and includes the document header information; and generating a document map table including at least one entry in at least one list of entries representing the digital documents, wherein each of the at least one entry in the list of entries includes pointer information associated with one of the digital documents corresponding to one of the plurality of nodes in the document balanced tree, wherein the at least one entry in the list of entries represents an ordered sequence of words associated with one of the one or more digital documents, and wherein the first digital document is one of the one or more digital documents.
1. A method for generating a compressed representation of digital documents on a handheld device, the method comprising: periodically obtaining one or more digital documents stored in a memory of a handheld device; extracting one or more words from each of the one or more digital documents; and generating a compressed representation of the one or more digital documents stored in the memory of the handheld device using one or more balanced trees, wherein the one or more balanced trees include at least one of a word balanced tree including a plurality of nodes, each of the plurality of nodes representing a word from among the one or more extracted words, and a document balanced tree including a plurality of nodes, each of the plurality of nodes representing a digital document from among the one or more digital documents, wherein each node of the word balanced tree comprises a position of the represented word in the digital document, wherein the generating of the compressed representation of the one or more digital documents using the one or more balanced trees comprises: storing the one or more extracted words in the word balanced tree including the plurality of nodes, such that each of the plurality of nodes represents a word in the one or more extracted words, and such that a word is associated with a node and includes pointer information associated with a first digital document including the associated word from a set of digital documents, a position of the associated word in the first digital document, and number occurrences of the associated word in the set of digital documents; storing the one or more digital documents in the document balanced tree including the plurality of nodes, such that each of the plurality of nodes represents a digital document in the one or more digital documents and includes the document header information; and generating a document map table including at least one entry in at least one list of entries representing the digital documents, wherein each of the at least one entry in the list of entries includes pointer information associated with one of the digital documents corresponding to one of the plurality of nodes in the document balanced tree, wherein the at least one entry in the list of entries represents an ordered sequence of words associated with one of the one or more digital documents, and wherein the first digital document is one of the one or more digital documents. 2. The method of claim 1 , wherein the one or more digital documents are at least one of music documents, image documents, word processor documents, email documents, and portable document format documents.