dbTalk Databases Forums  

Nested interval tree encoding

comp.databases.theory comp.databases.theory


Discuss Nested interval tree encoding in the comp.databases.theory forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Eric DeCosta
 
Posts: n/a

Default Nested interval tree encoding - 07-03-2008 , 12:04 PM






I'e been tring to develop a workable implementation of nested interval tree
encoding using continued fractions:
http://arxiv.org/ftp/cs/papers/0402/0402051.pdf

However, I'm running into a snag when I try to decode the materialzed path
of certain nodes using the Euclidean algorithm. The first child node of any
parent does not decode properly; for instance: 3.12.5.21.1 which is
correctly encoded as the continued fraction of 4173/1354 is decoded as
3.12.5.22:

4173 = 1354 * 3 + 111
1354 = 111 * 12 + 22
111 = 22 * 5 + 1
22 = 1 * 22 + 0

Other nodes like 3.12.5.21, 3.12.5.22, and 3.12.5.21.2 are correctly
decoded; so this looking like a special case involving the first child node.

Is there any way to detect and handle this without looking-up the parent
node? Would using reversed continued fractions avoid this?

-Eric



Reply With Quote
  #2  
Old   
Eric DeCosta
 
Posts: n/a

Default Re: Nested interval tree encoding - 07-03-2008 , 01:38 PM






Quote:
Other nodes like 3.12.5.21, 3.12.5.22, and 3.12.5.21.2 are correctly
decoded; so this looking like a special case involving the first child
node.

Is there any way to detect and handle this without looking-up the parent
node? Would using reversed continued fractions avoid this?
One possible answer, which is inelegant, but wroks is to re-compute the node
as the materialzed path is extracted and perform a check at the end and
adjust the 'tail' of the path as needed.

I'm hoping for something less brute-force...

-Eric




Reply With Quote
  #3  
Old   
Eric DeCosta
 
Posts: n/a

Default Re: Nested interval tree encoding - 07-03-2008 , 01:38 PM



Quote:
Other nodes like 3.12.5.21, 3.12.5.22, and 3.12.5.21.2 are correctly
decoded; so this looking like a special case involving the first child
node.

Is there any way to detect and handle this without looking-up the parent
node? Would using reversed continued fractions avoid this?
One possible answer, which is inelegant, but wroks is to re-compute the node
as the materialzed path is extracted and perform a check at the end and
adjust the 'tail' of the path as needed.

I'm hoping for something less brute-force...

-Eric




Reply With Quote
  #4  
Old   
Eric DeCosta
 
Posts: n/a

Default Re: Nested interval tree encoding - 07-03-2008 , 01:38 PM



Quote:
Other nodes like 3.12.5.21, 3.12.5.22, and 3.12.5.21.2 are correctly
decoded; so this looking like a special case involving the first child
node.

Is there any way to detect and handle this without looking-up the parent
node? Would using reversed continued fractions avoid this?
One possible answer, which is inelegant, but wroks is to re-compute the node
as the materialzed path is extracted and perform a check at the end and
adjust the 'tail' of the path as needed.

I'm hoping for something less brute-force...

-Eric




Reply With Quote
  #5  
Old   
Eric DeCosta
 
Posts: n/a

Default Re: Nested interval tree encoding - 07-03-2008 , 01:38 PM



Quote:
Other nodes like 3.12.5.21, 3.12.5.22, and 3.12.5.21.2 are correctly
decoded; so this looking like a special case involving the first child
node.

Is there any way to detect and handle this without looking-up the parent
node? Would using reversed continued fractions avoid this?
One possible answer, which is inelegant, but wroks is to re-compute the node
as the materialzed path is extracted and perform a check at the end and
adjust the 'tail' of the path as needed.

I'm hoping for something less brute-force...

-Eric




Reply With Quote
  #6  
Old   
Eric DeCosta
 
Posts: n/a

Default Re: Nested interval tree encoding - 07-03-2008 , 01:38 PM



Quote:
Other nodes like 3.12.5.21, 3.12.5.22, and 3.12.5.21.2 are correctly
decoded; so this looking like a special case involving the first child
node.

Is there any way to detect and handle this without looking-up the parent
node? Would using reversed continued fractions avoid this?
One possible answer, which is inelegant, but wroks is to re-compute the node
as the materialzed path is extracted and perform a check at the end and
adjust the 'tail' of the path as needed.

I'm hoping for something less brute-force...

-Eric




Reply With Quote
  #7  
Old   
Eric DeCosta
 
Posts: n/a

Default Re: Nested interval tree encoding - 07-03-2008 , 01:38 PM



Quote:
Other nodes like 3.12.5.21, 3.12.5.22, and 3.12.5.21.2 are correctly
decoded; so this looking like a special case involving the first child
node.

Is there any way to detect and handle this without looking-up the parent
node? Would using reversed continued fractions avoid this?
One possible answer, which is inelegant, but wroks is to re-compute the node
as the materialzed path is extracted and perform a check at the end and
adjust the 'tail' of the path as needed.

I'm hoping for something less brute-force...

-Eric




Reply With Quote
  #8  
Old   
Eric DeCosta
 
Posts: n/a

Default Re: Nested interval tree encoding - 07-03-2008 , 01:38 PM



Quote:
Other nodes like 3.12.5.21, 3.12.5.22, and 3.12.5.21.2 are correctly
decoded; so this looking like a special case involving the first child
node.

Is there any way to detect and handle this without looking-up the parent
node? Would using reversed continued fractions avoid this?
One possible answer, which is inelegant, but wroks is to re-compute the node
as the materialzed path is extracted and perform a check at the end and
adjust the 'tail' of the path as needed.

I'm hoping for something less brute-force...

-Eric




Reply With Quote
  #9  
Old   
Eric DeCosta
 
Posts: n/a

Default Re: Nested interval tree encoding - 07-03-2008 , 01:38 PM



Quote:
Other nodes like 3.12.5.21, 3.12.5.22, and 3.12.5.21.2 are correctly
decoded; so this looking like a special case involving the first child
node.

Is there any way to detect and handle this without looking-up the parent
node? Would using reversed continued fractions avoid this?
One possible answer, which is inelegant, but wroks is to re-compute the node
as the materialzed path is extracted and perform a check at the end and
adjust the 'tail' of the path as needed.

I'm hoping for something less brute-force...

-Eric




Reply With Quote
  #10  
Old   
Eric DeCosta
 
Posts: n/a

Default Re: Nested interval tree encoding - 07-03-2008 , 01:38 PM



Quote:
Other nodes like 3.12.5.21, 3.12.5.22, and 3.12.5.21.2 are correctly
decoded; so this looking like a special case involving the first child
node.

Is there any way to detect and handle this without looking-up the parent
node? Would using reversed continued fractions avoid this?
One possible answer, which is inelegant, but wroks is to re-compute the node
as the materialzed path is extracted and perform a check at the end and
adjust the 'tail' of the path as needed.

I'm hoping for something less brute-force...

-Eric




Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.