Re: Looking for tree-like structure
- From: "Gene" <gene.ressler@xxxxxxxxx>
- Date: 20 May 2006 07:44:21 -0700
mathieu wrote:
I am looking for the proper structure for the following problem. I
would like to read in memory a file that has the following structure:
k1, v1
k2, v2
k3, v3
k4 /
k1, v11
k3, v33
k5, v5
k6/
k2, v22
k9/
k1, v111
k2, v222
k7, v7
In the previous example k(i) is an uint32_t where 0 < k1 < k2 < ...
< k8 < k9 and v(i) is just some data associated with the k(i). Note
that there is no data associated with k4, k6 or k9 for instance (k4,k6
and k9 are special keys). There can be gap (k8 is missing), and the
tree can be any level deep. I understand that most tree structure (B,
multi-way) cannot deal with the fact that k9 (>k7) was introduced under
k6.
Why not use XML as the text representation and an XML parse tree for
your data?
.
- Follow-Ups:
- Re: Looking for tree-like structure
- From: mathieu
- Re: Looking for tree-like structure
- References:
- Looking for tree-like structure
- From: mathieu
- Looking for tree-like structure
- Prev by Date: Re: Looking for tree-like structure
- Next by Date: Re: A newbie help question
- Previous by thread: Re: Looking for tree-like structure
- Next by thread: Re: Looking for tree-like structure
- Index(es):
Relevant Pages
|