This site is no longer active and is available for archival purposes only. Registration and login is disabled.

How to save a tree in memory to disk


How to save a tree in memory to disk

Postby kaiton » Jul 9, 2002 @ 11:54am

Last edited by kaiton on Jul 9, 2002 @ 12:58pm, edited 2 times in total.
kaiton
pm Member
 
Posts: 116
Joined: Jan 15, 2002 @ 11:34am


Postby BurningSheep » Jul 9, 2002 @ 12:32pm

Do you want custom Snails levels? Click
User avatar
BurningSheep
pm Insider
 
Posts: 1226
Joined: Apr 12, 2002 @ 11:49pm
Location: The Netherlands


Postby refractor » Jul 9, 2002 @ 1:06pm

(Beware, rambling coder text ahead)

I'd be tempted to work out a data structure to store the suffix trie / patricia trie in a structure that didn't rely on actual pointers (i.e. make it so it can be referenced from where-ever it is loaded into memory ... relocatable).

That way you can just build the data structure once, dump it to disk, then re-load it and use that. The interesting part will be working out how to then add to it (I'm assuming you'll need to).

Have you thought about using bit-sets at each trie node rather than a series of pointers? It'll be far more compact in memory if you can do that.

Have a look at this:



And see if it helps any.

( is *great* for research like this since the the other reference site went belly-up .. can't even remember what that one was called now).

Cheers,

Refractor
User avatar
refractor
pm Insider
 
Posts: 2304
Joined: Feb 5, 2002 @ 1:12pm
Location: Luxembourg


Postby kaiton » Jul 9, 2002 @ 7:02pm

He Refractor!

That site is great!
Thanks!
kaiton
pm Member
 
Posts: 116
Joined: Jan 15, 2002 @ 11:34am


Return to Windows Mobile


Sort


Forum Description

A discussion forum for mobile device developers on the Windows Mobile platform. Any platform specific topics are welcome.

Moderators:

Dan East, sponge, Digby, David Horn, Kevin Gelso, RICoder

Forum permissions

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum