473,473 Members | 1,893 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

implementation of trie & file index

I implemented a TRIE in memory by myself in C.

But, as you know, when a size of data increases, loading time of data
becomes longer.

I want to implement a TRIE in file, which means division of INDEX &
DATA in file and

whenever a user asks a data, TRIE accesses a disk according to INDEX.

Would you recommend a good book or web site that can show a practical
implementation in C?

Thanks for your reading.

Best Regards.

Jul 26 '08 #1
5 3377
iaminsik wrote:
I implemented a TRIE in memory by myself in C.

But, as you know, when a size of data increases, loading time of data
becomes longer.

I want to implement a TRIE in file, which means division of INDEX &
DATA in file and

whenever a user asks a data, TRIE accesses a disk according to INDEX.

Would you recommend a good book or web site that can show a practical
implementation in C?
http://dev.mysql.com/doc/refman/5.0/en/c.html

Don't reinvent the wheel, use a database.

--
Ian Collins.
Jul 26 '08 #2
On 7¿ù26ÀÏ, ¿ÀÈÄ5½Ã18ºÐ, Ian Collins <ian-n...@hotmail.comwrote:
iaminsik wrote:
I implemented a TRIE in memory by myself in C.
But, as you know, when a size of data increases, loading time of data
becomes longer.
I want to implement a TRIE in file, which means division of INDEX &
DATA in file and
whenever a user asks a data, TRIE accesses a disk according to INDEX.
Would you recommend a good book or web site that can show a practical
implementation in C?

http://dev.mysql.com/doc/refman/5.0/en/c.html

Don't reinvent the wheel, use a database.

--
Ian Collins.
Thanks a lot, I'll try it.
I visited this web site right after reading it.
I couldn't know how to build the database when I distribute my
program.
But, I'll try.

If you can recommend some sample codes, I'll be happy.
In addition, please, anybody, recommend a good book, too.

Thanks Collins.

Best Regards.
Remi.
Jul 26 '08 #3
On 7¿ù26ÀÏ, ¿ÀÈÄ5½Ã18ºÐ, Ian Collins <ian-n...@hotmail.comwrote:
iaminsik wrote:
I implemented a TRIE in memory by myself in C.
But, as you know, when a size of data increases, loading time of data
becomes longer.
I want to implement a TRIE in file, which means division of INDEX &
DATA in file and
whenever a user asks a data, TRIE accesses a disk according to INDEX.
Would you recommend a good book or web site that can show a practical
implementation in C?

http://dev.mysql.com/doc/refman/5.0/en/c.html

Don't reinvent the wheel, use a database.

--
Ian Collins.
Oh, I should tell you one more thing.
I want to distribute my program with database file itself.
In other words, I don't want my program to connect so-called server.

Thanks.

Best Regards.
Remi.
Jul 26 '08 #4
iaminsik wrote:
On 7?26?, ??5?18?, Ian Collins <ian-n...@hotmail.comwrote:
>iaminsik wrote:
I implemented a TRIE in memory by myself in C.
But, as you know, when a size of data increases, loading time of
data becomes longer.
I want to implement a TRIE in file, which means division of INDEX &
DATA in file and
whenever a user asks a data, TRIE accesses a disk according to
INDEX.
Would you recommend a good book or web site that can show a
practical implementation in C?

http://dev.mysql.com/doc/refman/5.0/en/c.html

Don't reinvent the wheel, use a database.

--
Ian Collins.

Thanks a lot, I'll try it.
I visited this web site right after reading it.
I couldn't know how to build the database when I distribute my
program.
But, I'll try.

If you can recommend some sample codes, I'll be happy.
In addition, please, anybody, recommend a good book, too.

Thanks Collins.
If you want to embed your database routines within your program (so that
a separate dependency is avoided) investigate both "Berkeley DB"
and "SQLite". MySQL would be overkill for a trivial program.

Jul 26 '08 #5
On 7¿ù26ÀÏ, ¿ÀÈÄ6½Ã04ºÐ, santosh <santosh....@gmail..comwrote:
iaminsik wrote:
On 7?26?, ??5?18?, Ian Collins <ian-n...@hotmail.comwrote:
iaminsik wrote:
I implemented a TRIE in memory by myself in C.
But, as you know, when a size of data increases, loading time of
data becomes longer.
I want to implement a TRIE in file, which means division of INDEX &
DATA in file and
whenever a user asks a data, TRIE accesses a disk according to
INDEX.
Would you recommend a good book or web site that can show a
practical implementation in C?
>http://dev.mysql.com/doc/refman/5.0/en/c.html
Don't reinvent the wheel, use a database.
--
Ian Collins.
Thanks a lot, I'll try it.
I visited this web site right after reading it.
I couldn't know how to build the database when I distribute my
program.
But, I'll try.
If you can recommend some sample codes, I'll be happy.
In addition, please, anybody, recommend a good book, too.
Thanks Collins.

If you want to embed your database routines within your program (so that
a separate dependency is avoided) investigate both "Berkeley DB"
and "SQLite". MySQL would be overkill for a trivial program.- µû¿Â ÅؽºÆ® ¼û±â±â -

- µû¿Â ÅؽºÆ® º¸±â -
Thanks Santosh!
I'll try.

Best Regards.
Remi.
Jul 26 '08 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Lab309 | last post by:
The problem I'm trying to solve is as follows: The website has two subdirectories: /ordinary and /phpstuff. Users typing hostname/ordinary get the file index.htm by default, and this works fine. ...
3
by: Joseph | last post by:
Hi all, I want to build a compressed suffix trie from a string for string matching.instead of doing like: input:a string with 10 chars insert char array 10 insert char array 9,10 insert...
0
by: Polar | last post by:
Hi! Do you know a C library for trie data structures (a particular type of tree)? And some link about trie with C language? Thank you Polar
3
by: Paul | last post by:
Does anyone have an example of a trie data structure implemented in c#? I'm looking for a string trie to use to hold the word list for my spell checker. Any examples or suggestions would be great....
3
by: Ivan P | last post by:
Hello! I have a index.php that on one click calls via AJAX a file.php. index.php looks like this: <html > <head> <script language="javascript" type="text/javascript" >
9
by: sonal | last post by:
Hi all, I hv started with python just recently... and have been assigned to make an utility which would be used for data validations... In short we take up various comma separated data files for...
5
by: jhurrell | last post by:
I have been having some trouble getting my XSL style sheet to parse correctly. I have some XML outputted from an SQL-Server, that I then need to turn into multiple HTML files. This I have done...
5
by: weidongtom | last post by:
Hi, I tried to implement the Universal Machine as described in http://www.boundvariable.org/task.shtml, and I managed to get one implemented (After looking at what other's have done.) But when I...
0
by: clintp | last post by:
I've seen a few people asking for this elsewhere, so here's a basic implementation of a string trie in C#. I'm using this to load and search a dictionary of about two hundred thousand words. It's...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.