473,387 Members | 1,859 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Missing Tomes of Data Structures

Hello:

I have spent the last week or more looking for an implementation (open
source) for a deterministic skip lists. I am currently approaching the
completion of a data structure library I am implementing.

I have a randomized skip list completed; however, I require a
deterministic skip list. No matter how hard I look I can't seem to
find an implementation, or even the details to make my own.

In addition, there is a data structure called a forward-balancing B-
Tree that lets implementors lock sub-trees instead of the entire tree
itself. It does this by ensuring the tree is balanced ahead of time so
it can lock as little as possible.

Any ideas?

Sep 28 '07 #1
5 1142
je**********@gmail.com wrote:
I have spent the last week or more looking for an implementation (open
source) for a deterministic skip lists. I am currently approaching the
completion of a data structure library I am implementing.

I have a randomized skip list completed; however, I require a
deterministic skip list. No matter how hard I look I can't seem to
find an implementation, or even the details to make my own.

In addition, there is a data structure called a forward-balancing B-
Tree that lets implementors lock sub-trees instead of the entire tree
itself. It does this by ensuring the tree is balanced ahead of time so
it can lock as little as possible.

Any ideas?
Google?

I admit, I had not heard of either. Google provides nothing relevant
when using "forward-balancing b-tree" as the search time, so I'm
wondering if you got the term right. You say one exists; why do you
think it does? Why does it appear that there's no one else on the
Internet who's ever heard of it?

As far as the skip-list goes, as near as I can tell from the
descriptions of the algorithm (including Pugh's own paper where he
published it), randomization is a key element of the data structure.
When you write "deterministic", what exactly is it that you want to be
deterministic about the skip-list? And what sort of trouble are you
having in applying that goal to your current implementation?

For both of your questions above, it's almost as if you are asking for
help implementing something that doesn't (or can't) exist. If that's
actually what's going on, then obviously you won't get an answer. If
it's not what's going on, then at the very least there seems to be some
ambiguities and/or inaccuracies in your question that you might want to
explore, to see if you can rephrase the question in a way more likely to
get the help you need.

Pete
Sep 28 '07 #2
je**********@gmail.com wrote:
I have spent the last week or more looking for an implementation (open
source) for a deterministic skip lists. I am currently approaching the
completion of a data structure library I am implementing.

I have a randomized skip list completed; however, I require a
deterministic skip list. No matter how hard I look I can't seem to
find an implementation, or even the details to make my own.
Oh, and reading further in Pugh's paper, I'm not really clear on why a
data structure library needs a skip list implementation.

By his own analysis, the value in the skip list data structure is
primarily in ease of implementation. So it's apparently worth knowing
about if you are implementing the structure from scratch. But a data
structure library should have instead an optimized b-tree data
structure, obviating any need for a skip list.

Just a thought.

Pete
Sep 28 '07 #3

<je**********@gmail.comwrote in message
news:11**********************@k79g2000hse.googlegr oups.com...
Hello:

I have spent the last week or more looking for an implementation (open
source) for a deterministic skip lists.
Why?
I am currently approaching the
completion of a data structure library I am implementing.

I have a randomized skip list completed; however, I require a
deterministic skip list. No matter how hard I look I can't seem to
find an implementation, or even the details to make my own.
Maybe because 'skiplist' is a funny programming-task
to hand out to students. Not so fun to sit and correct them
when code was still handwritten or printed on paper. *S*

I say this with no disrespect nor laughter.
I've written a skiplist in c, and that was fun.
I learned a lot about linked list.
In addition, there is a data structure called a forward-balancing B-
Tree that lets implementors lock sub-trees instead of the entire tree
itself. It does this by ensuring the tree is balanced ahead of time so
it can lock as little as possible.
Woo...Now you are digging deep
Are you talking about a B-Tree, or a Binary-Tree?

And why do this is C#?
This is what I would do

var my12345Thingy = thingies.Single(t =t.ID == 12345);

That might not look as if it is what you want,
but with plinq, and give the code a few years,
I am sure my code above will outperform
anything you can 'skip' in pure asm

Are you sure you are in the right forum?
Any ideas?
Do you feeling lucky, punk. Well do ya'?
- Michael Starberg


Sep 28 '07 #4
"Peter Duniho" <Np*********@NnOwSlPiAnMk.comwrote in message
news:13*************@corp.supernews.com...
je**********@gmail.com wrote:

I admit, I had not heard of either. Google provides nothing relevant when
using "forward-balancing b-tree" as the search time, so I'm wondering if
you got the term right. You say one exists; why do you think it does?
Why does it appear that there's no one else on the Internet who's ever
heard of it?
I think he means a BTree, not a binary-tree.
BTrees are always balanced, and pretty cool.

>
As far as the skip-list goes, as near as I can tell from the descriptions
of the algorithm (including Pugh's own paper where he published it),
randomization is a key element of the data structure. When you write
"deterministic", what exactly is it that you want to be deterministic
about the skip-list? And what sort of trouble are you having in applying
that goal to your current implementation?
Haha. Nice catch. A non-destermistic skiplist
is what QA-people would rename a frekkin bug
>
For both of your questions above, it's almost as if you are asking for
help implementing something that doesn't (or can't) exist. If that's
actually what's going on, then obviously you won't get an answer. If it's
not what's going on, then at the very least there seems to be some
ambiguities and/or inaccuracies in your question that you might want to
explore, to see if you can rephrase the question in a way more likely to
get the help you need.
Pete, note how your are spanking someone
who obviously wants her homework done for her.
>
Pete
- Mike
Sep 28 '07 #5
"Peter Duniho" <Np*********@NnOwSlPiAnMk.comwrote in message
news:13*************@corp.supernews.com...
je**********@gmail.com wrote:

Oh, and reading further in Pugh's paper, I'm not really clear on why a
data structure library needs a skip list implementation.
Did I say I respect your stamina and patience, Pete?
I think you have earned your MVP.

Jon Skeet: If atleast two MCPD thinks someone deserves the 'i aMVery
imPaired' status,
how do one promote one with such an honor. I know, poke skeet and let stuff
happen..

Mr. Duniho so deserve it.

- Michael Starberg


Sep 28 '07 #6

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

Similar topics

11
by: Innocence | last post by:
Hi I've been considering how to optimize map data structures for a tile based Python game. However, since I'm a Python newbie I lack experience with Pythons 'exotic' data types like lists and...
2
by: hzy_104 | last post by:
Please recommend book on data structures for searching(c++)?
1
by: Amit | last post by:
Hello, Can any of you recommend a really good book on data structures and more so, if it relates to STL data structures, and how they are used to build far more complex data structures. ...
5
by: el_roachmeister | last post by:
For being a good web programmer, is a course on data structures important? It seems php already has built-in functions for what they teach in a data structures course. On the other hand all...
4
by: Thomas Paul Diffenbach | last post by:
Can anyone point me to an open source library of /statically allocated/ data structures? I'm writing some code that would benefit from trees, preferably self balancing, but on an embedded system...
5
by: utab | last post by:
Dear all, I was reading something on data structures on c++ and in that chapter it was telling that the same components will be more efficiently substituted with the STL ones. So can somebody...
3
by: osp | last post by:
hi to every one.... i just started out with c++ and i think i am doing well.i use Robert Laffore to study. which book should i use for data structures ? please help. thank you with regards ...
11
by: efrat | last post by:
Hello, I'm planning to use Python in order to teach a DSA (data structures and algorithms) course in an academic institute. If you could help out with the following questions, I'd sure...
29
by: Mik0b0 | last post by:
Hallo to everyone. This fall I am going to start data structures as a part of C language course. The problem is I could not find any satisfying tutorial about structures in C. There are plenty of...
4
by: jehugaleahsa | last post by:
Hello: When developing data structures for C#, there is an obvious performance hit when utilizing primitive types. For instance, a recent hash table implementation I wrote works exceedingly fast...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.